Nomenclature groups in different pages












1















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:



enter image description here



But I wish I have them in different pages and the titles centered like this:



enter image description here



The solution here seem to solve the different pages problem but it doesn't solve the title centered. Could anyone help me please?










share|improve this question





























    1















    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:



    enter image description here



    But I wish I have them in different pages and the titles centered like this:



    enter image description here



    The solution here seem to solve the different pages problem but it doesn't solve the title centered. Could anyone help me please?










    share|improve this question



























      1












      1








      1








      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:



      enter image description here



      But I wish I have them in different pages and the titles centered like this:



      enter image description here



      The solution here seem to solve the different pages problem but it doesn't solve the title centered. Could anyone help me please?










      share|improve this question
















      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:



      enter image description here



      But I wish I have them in different pages and the titles centered like this:



      enter image description here



      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 55 mins ago









      Kurt

      40.2k850164




      40.2k850164










      asked Sep 25 '18 at 18:09









      LevyLevy

      418312




      418312






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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:



          result






          share|improve this answer
























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            0














            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:



            result






            share|improve this answer




























              0














              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:



              result






              share|improve this answer


























                0












                0








                0







                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:



                result






                share|improve this answer













                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:



                result







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 57 mins ago









                KurtKurt

                40.2k850164




                40.2k850164






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

                    Calculate evaluation metrics using cross_val_predict sklearn

                    Insert data from modal to MySQL (multiple modal on website)