Nomenclature groups in different pages
I wish I could have the groups inside nomenclature
in different pages each and their titles centered. So far I tried the following MWE:
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{etoolbox}
usepackage{nomencl}
makenomenclature
renewcommandnomgroup[1]{%
item[centeringnormalsizebfseries
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}}%
]thispagestyle{empty}}
renewcommand{nomname}{}
begin{document}
nomenclature[A]{H2O}{Water}
nomenclature[A]{CO2}{Chemical 1}
nomenclature[A]{CO}{Chemical 2}
nomenclature[A]{HC}{Chemical 3}
nomenclature[A]{kWp}{kilowatt-peak}
nomenclature[S]{EPE}{Research Electrical Company}
printnomenclature[1cm]
end{document}
I got this:
But I wish I have them in different pages and the titles centered like this:
The solution here seem to solve the different pages problem but it doesn't solve the title centered. Could anyone help me please?
lists nomenclature nomencl
add a comment |
I wish I could have the groups inside nomenclature
in different pages each and their titles centered. So far I tried the following MWE:
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{etoolbox}
usepackage{nomencl}
makenomenclature
renewcommandnomgroup[1]{%
item[centeringnormalsizebfseries
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}}%
]thispagestyle{empty}}
renewcommand{nomname}{}
begin{document}
nomenclature[A]{H2O}{Water}
nomenclature[A]{CO2}{Chemical 1}
nomenclature[A]{CO}{Chemical 2}
nomenclature[A]{HC}{Chemical 3}
nomenclature[A]{kWp}{kilowatt-peak}
nomenclature[S]{EPE}{Research Electrical Company}
printnomenclature[1cm]
end{document}
I got this:
But I wish I have them in different pages and the titles centered like this:
The solution here seem to solve the different pages problem but it doesn't solve the title centered. Could anyone help me please?
lists nomenclature nomencl
add a comment |
I wish I could have the groups inside nomenclature
in different pages each and their titles centered. So far I tried the following MWE:
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{etoolbox}
usepackage{nomencl}
makenomenclature
renewcommandnomgroup[1]{%
item[centeringnormalsizebfseries
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}}%
]thispagestyle{empty}}
renewcommand{nomname}{}
begin{document}
nomenclature[A]{H2O}{Water}
nomenclature[A]{CO2}{Chemical 1}
nomenclature[A]{CO}{Chemical 2}
nomenclature[A]{HC}{Chemical 3}
nomenclature[A]{kWp}{kilowatt-peak}
nomenclature[S]{EPE}{Research Electrical Company}
printnomenclature[1cm]
end{document}
I got this:
But I wish I have them in different pages and the titles centered like this:
The solution here seem to solve the different pages problem but it doesn't solve the title centered. Could anyone help me please?
lists nomenclature nomencl
I wish I could have the groups inside nomenclature
in different pages each and their titles centered. So far I tried the following MWE:
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{etoolbox}
usepackage{nomencl}
makenomenclature
renewcommandnomgroup[1]{%
item[centeringnormalsizebfseries
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}}%
]thispagestyle{empty}}
renewcommand{nomname}{}
begin{document}
nomenclature[A]{H2O}{Water}
nomenclature[A]{CO2}{Chemical 1}
nomenclature[A]{CO}{Chemical 2}
nomenclature[A]{HC}{Chemical 3}
nomenclature[A]{kWp}{kilowatt-peak}
nomenclature[S]{EPE}{Research Electrical Company}
printnomenclature[1cm]
end{document}
I got this:
But I wish I have them in different pages and the titles centered like this:
The solution here seem to solve the different pages problem but it doesn't solve the title centered. Could anyone help me please?
lists nomenclature nomencl
lists nomenclature nomencl
edited 55 mins ago
Kurt
40.2k850164
40.2k850164
asked Sep 25 '18 at 18:09
LevyLevy
418312
418312
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The issue here is that command nomgroup
needs to be an item
to be printed in the nomenclature. Therefore your try with centering
(that is inside item
could not work.
A workaround is to use the following code (see both used hfill
outside the label definition of item
; important code marked with <======
):
item% <=============================================================
{hfilnormalsizebfseries % <======================================
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}%
}%
hfil} % <==========================================================
Please see that this kind of centering is not really perfect because the length of the label is not included ... That is the reason I call it a workaround ...
With the following complete code
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{etoolbox}
usepackage{showframe}% <============ to visualize text area and margins
usepackage{nomencl}
makenomenclature
newififfirstglossaryfirstglossarytrue
renewcommandnomgroup[1]{%
iffirstglossary
firstglossaryfalse
else
clearpage
fi
item% <=============================================================
{hfilnormalsizebfseries % <======================================
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}%
}%
hfil} % <==========================================================
%] % <==================================================================
thispagestyle{empty}}
renewcommand{nomname}{}
begin{document}
nomenclature[A]{H2O}{Water}
nomenclature[A]{CO2}{Chemical 1}
nomenclature[A]{CO}{Chemical 2}
nomenclature[A]{HC}{Chemical 3}
nomenclature[A]{kWp}{kilowatt-peak}
nomenclature[S]{EPE}{Research Electrical Company}
printnomenclature[1cm]
end{document}
you get the following result:
add a comment |
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%2f452491%2fnomenclature-groups-in-different-pages%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The issue here is that command nomgroup
needs to be an item
to be printed in the nomenclature. Therefore your try with centering
(that is inside item
could not work.
A workaround is to use the following code (see both used hfill
outside the label definition of item
; important code marked with <======
):
item% <=============================================================
{hfilnormalsizebfseries % <======================================
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}%
}%
hfil} % <==========================================================
Please see that this kind of centering is not really perfect because the length of the label is not included ... That is the reason I call it a workaround ...
With the following complete code
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{etoolbox}
usepackage{showframe}% <============ to visualize text area and margins
usepackage{nomencl}
makenomenclature
newififfirstglossaryfirstglossarytrue
renewcommandnomgroup[1]{%
iffirstglossary
firstglossaryfalse
else
clearpage
fi
item% <=============================================================
{hfilnormalsizebfseries % <======================================
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}%
}%
hfil} % <==========================================================
%] % <==================================================================
thispagestyle{empty}}
renewcommand{nomname}{}
begin{document}
nomenclature[A]{H2O}{Water}
nomenclature[A]{CO2}{Chemical 1}
nomenclature[A]{CO}{Chemical 2}
nomenclature[A]{HC}{Chemical 3}
nomenclature[A]{kWp}{kilowatt-peak}
nomenclature[S]{EPE}{Research Electrical Company}
printnomenclature[1cm]
end{document}
you get the following result:
add a comment |
The issue here is that command nomgroup
needs to be an item
to be printed in the nomenclature. Therefore your try with centering
(that is inside item
could not work.
A workaround is to use the following code (see both used hfill
outside the label definition of item
; important code marked with <======
):
item% <=============================================================
{hfilnormalsizebfseries % <======================================
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}%
}%
hfil} % <==========================================================
Please see that this kind of centering is not really perfect because the length of the label is not included ... That is the reason I call it a workaround ...
With the following complete code
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{etoolbox}
usepackage{showframe}% <============ to visualize text area and margins
usepackage{nomencl}
makenomenclature
newififfirstglossaryfirstglossarytrue
renewcommandnomgroup[1]{%
iffirstglossary
firstglossaryfalse
else
clearpage
fi
item% <=============================================================
{hfilnormalsizebfseries % <======================================
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}%
}%
hfil} % <==========================================================
%] % <==================================================================
thispagestyle{empty}}
renewcommand{nomname}{}
begin{document}
nomenclature[A]{H2O}{Water}
nomenclature[A]{CO2}{Chemical 1}
nomenclature[A]{CO}{Chemical 2}
nomenclature[A]{HC}{Chemical 3}
nomenclature[A]{kWp}{kilowatt-peak}
nomenclature[S]{EPE}{Research Electrical Company}
printnomenclature[1cm]
end{document}
you get the following result:
add a comment |
The issue here is that command nomgroup
needs to be an item
to be printed in the nomenclature. Therefore your try with centering
(that is inside item
could not work.
A workaround is to use the following code (see both used hfill
outside the label definition of item
; important code marked with <======
):
item% <=============================================================
{hfilnormalsizebfseries % <======================================
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}%
}%
hfil} % <==========================================================
Please see that this kind of centering is not really perfect because the length of the label is not included ... That is the reason I call it a workaround ...
With the following complete code
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{etoolbox}
usepackage{showframe}% <============ to visualize text area and margins
usepackage{nomencl}
makenomenclature
newififfirstglossaryfirstglossarytrue
renewcommandnomgroup[1]{%
iffirstglossary
firstglossaryfalse
else
clearpage
fi
item% <=============================================================
{hfilnormalsizebfseries % <======================================
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}%
}%
hfil} % <==========================================================
%] % <==================================================================
thispagestyle{empty}}
renewcommand{nomname}{}
begin{document}
nomenclature[A]{H2O}{Water}
nomenclature[A]{CO2}{Chemical 1}
nomenclature[A]{CO}{Chemical 2}
nomenclature[A]{HC}{Chemical 3}
nomenclature[A]{kWp}{kilowatt-peak}
nomenclature[S]{EPE}{Research Electrical Company}
printnomenclature[1cm]
end{document}
you get the following result:
The issue here is that command nomgroup
needs to be an item
to be printed in the nomenclature. Therefore your try with centering
(that is inside item
could not work.
A workaround is to use the following code (see both used hfill
outside the label definition of item
; important code marked with <======
):
item% <=============================================================
{hfilnormalsizebfseries % <======================================
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}%
}%
hfil} % <==========================================================
Please see that this kind of centering is not really perfect because the length of the label is not included ... That is the reason I call it a workaround ...
With the following complete code
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{etoolbox}
usepackage{showframe}% <============ to visualize text area and margins
usepackage{nomencl}
makenomenclature
newififfirstglossaryfirstglossarytrue
renewcommandnomgroup[1]{%
iffirstglossary
firstglossaryfalse
else
clearpage
fi
item% <=============================================================
{hfilnormalsizebfseries % <======================================
ifstrequal{#1}{A}{%
MakeUppercase{List of Abbreviations and Acronyms}%
}{%
ifstrequal{#1}{S}{MakeUppercase{List of Symbols}}{}%
}%
hfil} % <==========================================================
%] % <==================================================================
thispagestyle{empty}}
renewcommand{nomname}{}
begin{document}
nomenclature[A]{H2O}{Water}
nomenclature[A]{CO2}{Chemical 1}
nomenclature[A]{CO}{Chemical 2}
nomenclature[A]{HC}{Chemical 3}
nomenclature[A]{kWp}{kilowatt-peak}
nomenclature[S]{EPE}{Research Electrical Company}
printnomenclature[1cm]
end{document}
you get the following result:
answered 57 mins ago
KurtKurt
40.2k850164
40.2k850164
add a comment |
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.
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%2f452491%2fnomenclature-groups-in-different-pages%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