Reduce line spacing in nomenclature
I am creating a nomenclature and would like to reduce line spacing. If I use the approach found online inserting the setlength{nomitemstep}{-parsep}
command, all line skips are removed including the ones before and after the sub-section headings of the nomenclature.
Is there a way of reducing the line space only for the individual items, however not for the headers?
Attached is an example code and a snapshot of the output:
documentclass[authoryear, preprint]{elsarticle}
usepackage{nomencl}
makenomenclature
renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{A}}{item[textbf{Greek Symbols}]}{%
ifthenelse{equal{#1}{B}}{item[textbf{Other Variables}]}{}}}
setlength{nomitemsep}{-parsep}
RequirePackage{ifthen}
begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}
Thanks a lot for any hints!
Christian
line-spacing nomenclature
add a comment |
I am creating a nomenclature and would like to reduce line spacing. If I use the approach found online inserting the setlength{nomitemstep}{-parsep}
command, all line skips are removed including the ones before and after the sub-section headings of the nomenclature.
Is there a way of reducing the line space only for the individual items, however not for the headers?
Attached is an example code and a snapshot of the output:
documentclass[authoryear, preprint]{elsarticle}
usepackage{nomencl}
makenomenclature
renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{A}}{item[textbf{Greek Symbols}]}{%
ifthenelse{equal{#1}{B}}{item[textbf{Other Variables}]}{}}}
setlength{nomitemsep}{-parsep}
RequirePackage{ifthen}
begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}
Thanks a lot for any hints!
Christian
line-spacing nomenclature
I think, the spacings is actually controlled in thenomencl.ist
file
– Christian Hupfer
Dec 14 '15 at 13:59
@ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
– Christian
Dec 14 '15 at 16:50
I'll try to do later on
– Christian Hupfer
Dec 14 '15 at 19:13
@ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
– Christian
Dec 16 '15 at 8:26
add a comment |
I am creating a nomenclature and would like to reduce line spacing. If I use the approach found online inserting the setlength{nomitemstep}{-parsep}
command, all line skips are removed including the ones before and after the sub-section headings of the nomenclature.
Is there a way of reducing the line space only for the individual items, however not for the headers?
Attached is an example code and a snapshot of the output:
documentclass[authoryear, preprint]{elsarticle}
usepackage{nomencl}
makenomenclature
renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{A}}{item[textbf{Greek Symbols}]}{%
ifthenelse{equal{#1}{B}}{item[textbf{Other Variables}]}{}}}
setlength{nomitemsep}{-parsep}
RequirePackage{ifthen}
begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}
Thanks a lot for any hints!
Christian
line-spacing nomenclature
I am creating a nomenclature and would like to reduce line spacing. If I use the approach found online inserting the setlength{nomitemstep}{-parsep}
command, all line skips are removed including the ones before and after the sub-section headings of the nomenclature.
Is there a way of reducing the line space only for the individual items, however not for the headers?
Attached is an example code and a snapshot of the output:
documentclass[authoryear, preprint]{elsarticle}
usepackage{nomencl}
makenomenclature
renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{A}}{item[textbf{Greek Symbols}]}{%
ifthenelse{equal{#1}{B}}{item[textbf{Other Variables}]}{}}}
setlength{nomitemsep}{-parsep}
RequirePackage{ifthen}
begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}
Thanks a lot for any hints!
Christian
line-spacing nomenclature
line-spacing nomenclature
asked Dec 14 '15 at 13:30
Christian
5917
5917
I think, the spacings is actually controlled in thenomencl.ist
file
– Christian Hupfer
Dec 14 '15 at 13:59
@ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
– Christian
Dec 14 '15 at 16:50
I'll try to do later on
– Christian Hupfer
Dec 14 '15 at 19:13
@ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
– Christian
Dec 16 '15 at 8:26
add a comment |
I think, the spacings is actually controlled in thenomencl.ist
file
– Christian Hupfer
Dec 14 '15 at 13:59
@ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
– Christian
Dec 14 '15 at 16:50
I'll try to do later on
– Christian Hupfer
Dec 14 '15 at 19:13
@ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
– Christian
Dec 16 '15 at 8:26
I think, the spacings is actually controlled in the
nomencl.ist
file– Christian Hupfer
Dec 14 '15 at 13:59
I think, the spacings is actually controlled in the
nomencl.ist
file– Christian Hupfer
Dec 14 '15 at 13:59
@ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
– Christian
Dec 14 '15 at 16:50
@ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
– Christian
Dec 14 '15 at 16:50
I'll try to do later on
– Christian Hupfer
Dec 14 '15 at 19:13
I'll try to do later on
– Christian Hupfer
Dec 14 '15 at 19:13
@ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
– Christian
Dec 16 '15 at 8:26
@ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
– Christian
Dec 16 '15 at 8:26
add a comment |
2 Answers
2
active
oldest
votes
Here's a small bypass solution: Restore the noitemsep
value temporarily in a nomgroup
and use the newer value afterwards.
documentclass[authoryear, preprint]{elsarticle}
usepackage{ifthen}
usepackage{nomencl}
usepackage{xpatch}
newlength{nomitemorigsep}
setlength{nomitemorigsep}{nomitemsep}
setlength{nomitemsep}{-parsep}
makenomenclature
renewcommand{nomgroup}[1]{%
itemsepnomitemorigsep%
ifthenelse{%
equal{#1}{A}%
}{%
item[textbf{Greek Symbols}]%
}{%
ifthenelse{equal{#1}{B}}{%
item[textbf{Other Variables}]%
}{}%
}%
itemsepnomitemsep% Restore spacing
}
begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}
how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
– Nick
Nov 20 at 7:17
add a comment |
I have been trying to use nomenclature in texstudio elsearticle.
Can you help me with settings to get it done.
No coding works in my case.. lots of time tried.
New contributor
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Werner
1 min ago
add a comment |
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f283019%2freduce-line-spacing-in-nomenclature%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here's a small bypass solution: Restore the noitemsep
value temporarily in a nomgroup
and use the newer value afterwards.
documentclass[authoryear, preprint]{elsarticle}
usepackage{ifthen}
usepackage{nomencl}
usepackage{xpatch}
newlength{nomitemorigsep}
setlength{nomitemorigsep}{nomitemsep}
setlength{nomitemsep}{-parsep}
makenomenclature
renewcommand{nomgroup}[1]{%
itemsepnomitemorigsep%
ifthenelse{%
equal{#1}{A}%
}{%
item[textbf{Greek Symbols}]%
}{%
ifthenelse{equal{#1}{B}}{%
item[textbf{Other Variables}]%
}{}%
}%
itemsepnomitemsep% Restore spacing
}
begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}
how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
– Nick
Nov 20 at 7:17
add a comment |
Here's a small bypass solution: Restore the noitemsep
value temporarily in a nomgroup
and use the newer value afterwards.
documentclass[authoryear, preprint]{elsarticle}
usepackage{ifthen}
usepackage{nomencl}
usepackage{xpatch}
newlength{nomitemorigsep}
setlength{nomitemorigsep}{nomitemsep}
setlength{nomitemsep}{-parsep}
makenomenclature
renewcommand{nomgroup}[1]{%
itemsepnomitemorigsep%
ifthenelse{%
equal{#1}{A}%
}{%
item[textbf{Greek Symbols}]%
}{%
ifthenelse{equal{#1}{B}}{%
item[textbf{Other Variables}]%
}{}%
}%
itemsepnomitemsep% Restore spacing
}
begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}
how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
– Nick
Nov 20 at 7:17
add a comment |
Here's a small bypass solution: Restore the noitemsep
value temporarily in a nomgroup
and use the newer value afterwards.
documentclass[authoryear, preprint]{elsarticle}
usepackage{ifthen}
usepackage{nomencl}
usepackage{xpatch}
newlength{nomitemorigsep}
setlength{nomitemorigsep}{nomitemsep}
setlength{nomitemsep}{-parsep}
makenomenclature
renewcommand{nomgroup}[1]{%
itemsepnomitemorigsep%
ifthenelse{%
equal{#1}{A}%
}{%
item[textbf{Greek Symbols}]%
}{%
ifthenelse{equal{#1}{B}}{%
item[textbf{Other Variables}]%
}{}%
}%
itemsepnomitemsep% Restore spacing
}
begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}
Here's a small bypass solution: Restore the noitemsep
value temporarily in a nomgroup
and use the newer value afterwards.
documentclass[authoryear, preprint]{elsarticle}
usepackage{ifthen}
usepackage{nomencl}
usepackage{xpatch}
newlength{nomitemorigsep}
setlength{nomitemorigsep}{nomitemsep}
setlength{nomitemsep}{-parsep}
makenomenclature
renewcommand{nomgroup}[1]{%
itemsepnomitemorigsep%
ifthenelse{%
equal{#1}{A}%
}{%
item[textbf{Greek Symbols}]%
}{%
ifthenelse{equal{#1}{B}}{%
item[textbf{Other Variables}]%
}{}%
}%
itemsepnomitemsep% Restore spacing
}
begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}
answered Dec 17 '15 at 14:42
Christian Hupfer
147k14191382
147k14191382
how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
– Nick
Nov 20 at 7:17
add a comment |
how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
– Nick
Nov 20 at 7:17
how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
– Nick
Nov 20 at 7:17
how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
– Nick
Nov 20 at 7:17
add a comment |
I have been trying to use nomenclature in texstudio elsearticle.
Can you help me with settings to get it done.
No coding works in my case.. lots of time tried.
New contributor
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Werner
1 min ago
add a comment |
I have been trying to use nomenclature in texstudio elsearticle.
Can you help me with settings to get it done.
No coding works in my case.. lots of time tried.
New contributor
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Werner
1 min ago
add a comment |
I have been trying to use nomenclature in texstudio elsearticle.
Can you help me with settings to get it done.
No coding works in my case.. lots of time tried.
New contributor
I have been trying to use nomenclature in texstudio elsearticle.
Can you help me with settings to get it done.
No coding works in my case.. lots of time tried.
New contributor
New contributor
answered 21 mins ago
Sridhar Sahoo
1
1
New contributor
New contributor
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Werner
1 min ago
add a comment |
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Werner
1 min ago
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Werner
1 min ago
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review
– Werner
1 min ago
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f283019%2freduce-line-spacing-in-nomenclature%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I think, the spacings is actually controlled in the
nomencl.ist
file– Christian Hupfer
Dec 14 '15 at 13:59
@ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
– Christian
Dec 14 '15 at 16:50
I'll try to do later on
– Christian Hupfer
Dec 14 '15 at 19:13
@ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
– Christian
Dec 16 '15 at 8:26