Why `parskip` package makes margin notes misaligned?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question























  • 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














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?










share|improve this question























  • 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












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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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
















  • 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










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


enter image description here






share|improve this answer






















  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























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


enter image description here






share|improve this answer






















  • 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














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


enter image description here






share|improve this answer






















  • 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












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


enter image description here






share|improve this answer














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


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








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
















  • 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

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay