Why `parskip` package makes margin notes misaligned?
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I have to merge two lengthy files, one of which is using the marginnote
package and the other needs the parskip
package. If I use them at the same time the command I use to label years in the margin, say years
, doesn't work as It should.
Following I am showing a code for example.
documentclassarticle
usepackagemarginnote,parskip
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[5][in]years#2textsc#3 #1 emph#4, textsc#5\
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
You can compare the result of the code above and the result of the following code:
documentclassarticle
usepackagemarginnote
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[5][in]years#2textsc#3 #1 emph#4, textsc#5\
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
Can anyone help?
incompatibility marginpar marginnote parskip cv
add a comment |Â
up vote
3
down vote
favorite
I have to merge two lengthy files, one of which is using the marginnote
package and the other needs the parskip
package. If I use them at the same time the command I use to label years in the margin, say years
, doesn't work as It should.
Following I am showing a code for example.
documentclassarticle
usepackagemarginnote,parskip
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[5][in]years#2textsc#3 #1 emph#4, textsc#5\
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
You can compare the result of the code above and the result of the following code:
documentclassarticle
usepackagemarginnote
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[5][in]years#2textsc#3 #1 emph#4, textsc#5\
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
Can anyone help?
incompatibility marginpar marginnote parskip cv
Your both codes looks identical to me. Where is the difference?
â Ulrike Fischer
Aug 11 at 10:33
@UlrikeFischer I edited the question... they should be different in having parskip in line 2.
â Omid Ghayour
Aug 11 at 17:07
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have to merge two lengthy files, one of which is using the marginnote
package and the other needs the parskip
package. If I use them at the same time the command I use to label years in the margin, say years
, doesn't work as It should.
Following I am showing a code for example.
documentclassarticle
usepackagemarginnote,parskip
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[5][in]years#2textsc#3 #1 emph#4, textsc#5\
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
You can compare the result of the code above and the result of the following code:
documentclassarticle
usepackagemarginnote
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[5][in]years#2textsc#3 #1 emph#4, textsc#5\
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
Can anyone help?
incompatibility marginpar marginnote parskip cv
I have to merge two lengthy files, one of which is using the marginnote
package and the other needs the parskip
package. If I use them at the same time the command I use to label years in the margin, say years
, doesn't work as It should.
Following I am showing a code for example.
documentclassarticle
usepackagemarginnote,parskip
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[5][in]years#2textsc#3 #1 emph#4, textsc#5\
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
You can compare the result of the code above and the result of the following code:
documentclassarticle
usepackagemarginnote
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[5][in]years#2textsc#3 #1 emph#4, textsc#5\
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
Can anyone help?
incompatibility marginpar marginnote parskip cv
incompatibility marginpar marginnote parskip cv
edited Aug 11 at 20:34
asked Aug 11 at 10:12
Omid Ghayour
32419
32419
Your both codes looks identical to me. Where is the difference?
â Ulrike Fischer
Aug 11 at 10:33
@UlrikeFischer I edited the question... they should be different in having parskip in line 2.
â Omid Ghayour
Aug 11 at 17:07
add a comment |Â
Your both codes looks identical to me. Where is the difference?
â Ulrike Fischer
Aug 11 at 10:33
@UlrikeFischer I edited the question... they should be different in having parskip in line 2.
â Omid Ghayour
Aug 11 at 17:07
Your both codes looks identical to me. Where is the difference?
â Ulrike Fischer
Aug 11 at 10:33
Your both codes looks identical to me. Where is the difference?
â Ulrike Fischer
Aug 11 at 10:33
@UlrikeFischer I edited the question... they should be different in having parskip in line 2.
â Omid Ghayour
Aug 11 at 17:07
@UlrikeFischer I edited the question... they should be different in having parskip in line 2.
â Omid Ghayour
Aug 11 at 17:07
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
5
down vote
In your example you are missing one of the arguments of your degree command: It has 5 mandatory arguments but are only giving 4.
Beside this, it is normally better not to issue marginnote
in vertical mode, when the paragraph hasn't started yet. Move the command behind the first word, or use e.g. leavevmode
. I would also end the degree
with par
and not \
:
documentclassarticle
usepackagemarginnote,parskip
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[6][in]leavevmodeyears#2textsc#3 #1 emph#4, #5, textsc#6par
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
I edited the question... and also removed the 6th argument in the command definition... my question still exists if you remove the parskip you will see the result will change to what I really dislike, WHY?
â Omid Ghayour
Aug 11 at 17:12
As I already wrote: use leavevmode.
â Ulrike Fischer
Aug 11 at 17:20
As I said... If you use leavevmode at the beginning and par at the end of the command you will still see the outputs are different when using parskip and not.
â Omid Ghayour
Aug 11 at 17:39
I used leavevmode at the beginning and \ at the end of the command... and found the results are same using or not using parskip except an extra blankspace after the section title, say Degrees. this should have a little care for cure, too.
â Omid Ghayour
Aug 11 at 17:42
You have different dashes in your code. the first one is shorter.
â Ulrike Fischer
Aug 11 at 17:46
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
In your example you are missing one of the arguments of your degree command: It has 5 mandatory arguments but are only giving 4.
Beside this, it is normally better not to issue marginnote
in vertical mode, when the paragraph hasn't started yet. Move the command behind the first word, or use e.g. leavevmode
. I would also end the degree
with par
and not \
:
documentclassarticle
usepackagemarginnote,parskip
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[6][in]leavevmodeyears#2textsc#3 #1 emph#4, #5, textsc#6par
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
I edited the question... and also removed the 6th argument in the command definition... my question still exists if you remove the parskip you will see the result will change to what I really dislike, WHY?
â Omid Ghayour
Aug 11 at 17:12
As I already wrote: use leavevmode.
â Ulrike Fischer
Aug 11 at 17:20
As I said... If you use leavevmode at the beginning and par at the end of the command you will still see the outputs are different when using parskip and not.
â Omid Ghayour
Aug 11 at 17:39
I used leavevmode at the beginning and \ at the end of the command... and found the results are same using or not using parskip except an extra blankspace after the section title, say Degrees. this should have a little care for cure, too.
â Omid Ghayour
Aug 11 at 17:42
You have different dashes in your code. the first one is shorter.
â Ulrike Fischer
Aug 11 at 17:46
 |Â
show 2 more comments
up vote
5
down vote
In your example you are missing one of the arguments of your degree command: It has 5 mandatory arguments but are only giving 4.
Beside this, it is normally better not to issue marginnote
in vertical mode, when the paragraph hasn't started yet. Move the command behind the first word, or use e.g. leavevmode
. I would also end the degree
with par
and not \
:
documentclassarticle
usepackagemarginnote,parskip
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[6][in]leavevmodeyears#2textsc#3 #1 emph#4, #5, textsc#6par
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
I edited the question... and also removed the 6th argument in the command definition... my question still exists if you remove the parskip you will see the result will change to what I really dislike, WHY?
â Omid Ghayour
Aug 11 at 17:12
As I already wrote: use leavevmode.
â Ulrike Fischer
Aug 11 at 17:20
As I said... If you use leavevmode at the beginning and par at the end of the command you will still see the outputs are different when using parskip and not.
â Omid Ghayour
Aug 11 at 17:39
I used leavevmode at the beginning and \ at the end of the command... and found the results are same using or not using parskip except an extra blankspace after the section title, say Degrees. this should have a little care for cure, too.
â Omid Ghayour
Aug 11 at 17:42
You have different dashes in your code. the first one is shorter.
â Ulrike Fischer
Aug 11 at 17:46
 |Â
show 2 more comments
up vote
5
down vote
up vote
5
down vote
In your example you are missing one of the arguments of your degree command: It has 5 mandatory arguments but are only giving 4.
Beside this, it is normally better not to issue marginnote
in vertical mode, when the paragraph hasn't started yet. Move the command behind the first word, or use e.g. leavevmode
. I would also end the degree
with par
and not \
:
documentclassarticle
usepackagemarginnote,parskip
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[6][in]leavevmodeyears#2textsc#3 #1 emph#4, #5, textsc#6par
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
In your example you are missing one of the arguments of your degree command: It has 5 mandatory arguments but are only giving 4.
Beside this, it is normally better not to issue marginnote
in vertical mode, when the paragraph hasn't started yet. Move the command behind the first word, or use e.g. leavevmode
. I would also end the degree
with par
and not \
:
documentclassarticle
usepackagemarginnote,parskip
reversemarginpar
newcommandyears[1]marginnote#1
newcommanddegree[6][in]leavevmodeyears#2textsc#3 #1 emph#4, #5, textsc#6par
begindocument
section*Degrees
degree[on]2017--2018Postdoctoral ResearchComputational MathematicsSomewhere
degree2011--2017PhDComputational Commutative AlgebraSomewhere
degree1999--2002M.Sc.General TopologySomewhere
degree1995--1999B.Sc.Pure Mathematics w/ minor in physicsSomewhere
enddocument
edited Aug 11 at 10:47
Zarko
112k861150
112k861150
answered Aug 11 at 10:42
Ulrike Fischer
179k7283652
179k7283652
I edited the question... and also removed the 6th argument in the command definition... my question still exists if you remove the parskip you will see the result will change to what I really dislike, WHY?
â Omid Ghayour
Aug 11 at 17:12
As I already wrote: use leavevmode.
â Ulrike Fischer
Aug 11 at 17:20
As I said... If you use leavevmode at the beginning and par at the end of the command you will still see the outputs are different when using parskip and not.
â Omid Ghayour
Aug 11 at 17:39
I used leavevmode at the beginning and \ at the end of the command... and found the results are same using or not using parskip except an extra blankspace after the section title, say Degrees. this should have a little care for cure, too.
â Omid Ghayour
Aug 11 at 17:42
You have different dashes in your code. the first one is shorter.
â Ulrike Fischer
Aug 11 at 17:46
 |Â
show 2 more comments
I edited the question... and also removed the 6th argument in the command definition... my question still exists if you remove the parskip you will see the result will change to what I really dislike, WHY?
â Omid Ghayour
Aug 11 at 17:12
As I already wrote: use leavevmode.
â Ulrike Fischer
Aug 11 at 17:20
As I said... If you use leavevmode at the beginning and par at the end of the command you will still see the outputs are different when using parskip and not.
â Omid Ghayour
Aug 11 at 17:39
I used leavevmode at the beginning and \ at the end of the command... and found the results are same using or not using parskip except an extra blankspace after the section title, say Degrees. this should have a little care for cure, too.
â Omid Ghayour
Aug 11 at 17:42
You have different dashes in your code. the first one is shorter.
â Ulrike Fischer
Aug 11 at 17:46
I edited the question... and also removed the 6th argument in the command definition... my question still exists if you remove the parskip you will see the result will change to what I really dislike, WHY?
â Omid Ghayour
Aug 11 at 17:12
I edited the question... and also removed the 6th argument in the command definition... my question still exists if you remove the parskip you will see the result will change to what I really dislike, WHY?
â Omid Ghayour
Aug 11 at 17:12
As I already wrote: use leavevmode.
â Ulrike Fischer
Aug 11 at 17:20
As I already wrote: use leavevmode.
â Ulrike Fischer
Aug 11 at 17:20
As I said... If you use leavevmode at the beginning and par at the end of the command you will still see the outputs are different when using parskip and not.
â Omid Ghayour
Aug 11 at 17:39
As I said... If you use leavevmode at the beginning and par at the end of the command you will still see the outputs are different when using parskip and not.
â Omid Ghayour
Aug 11 at 17:39
I used leavevmode at the beginning and \ at the end of the command... and found the results are same using or not using parskip except an extra blankspace after the section title, say Degrees. this should have a little care for cure, too.
â Omid Ghayour
Aug 11 at 17:42
I used leavevmode at the beginning and \ at the end of the command... and found the results are same using or not using parskip except an extra blankspace after the section title, say Degrees. this should have a little care for cure, too.
â Omid Ghayour
Aug 11 at 17:42
You have different dashes in your code. the first one is shorter.
â Ulrike Fischer
Aug 11 at 17:46
You have different dashes in your code. the first one is shorter.
â Ulrike Fischer
Aug 11 at 17:46
 |Â
show 2 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f445622%2fwhy-parskip-package-makes-margin-notes-misaligned%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Your both codes looks identical to me. Where is the difference?
â Ulrike Fischer
Aug 11 at 10:33
@UlrikeFischer I edited the question... they should be different in having parskip in line 2.
â Omid Ghayour
Aug 11 at 17:07