Glossaries-extra without sectioning












0















I'm creating a document with two glossaries (using glossaries-extra and bib2gls). I would like to print each glossary without any automatic sectioning (without creating a new chapter or section), so that I can manually add and manipulate the sectioning i.e using chapter{...}. A MWE is below:



NeedsTeXFormat{LaTeX2e}
documentclass[11pt]{book}
usepackage[utf8]{inputenc}
usepackage{CJKutf8}
usepackage{graphicx,color}
usepackage[record,style=mcoltree,stylemods=mcols,nomain]{glossaries-extra}
usepackage[T1]{fontenc}
usepackage{lipsum}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Glossaries code %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

newglossary*{japanese}{Japanese to English}
newglossary*{english}{English to Japanese}

glsnoexpandfields

GlsXtrLoadResources[
src={defs-nointerpret}, % bib file containing @preamble
interpret-preamble=false % write the @preamble contents but don't try to interpret
]

GlsXtrLoadResources[
src=JPEntries,% bib file
selection=all,% select all entries provided in this 'src' list
sort={ja-JP},
type=japanese
]

GlsXtrLoadResources[
src=EngEntries,% bib file
selection=all,% select all entries provided in this 'src' list
sort={en-GB},
type=english
%label-prefix={en.}
]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Glossaries code end %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


begin{document}
mainmatter

tableofcontents

printunsrtglossaries


end{document}


Which will require the bib file "defs-nointerpret"



@preamble{"providerobustcmd{cjkname}[1]{begin{CJK}{UTF8}{ipxm}#1end{CJK}}
providecommand*{englishlettergroup}[1]{#1}
providecommand*{japaneselettergroup}{cjklettergroup}
providecommand*{cjklettergroup}[1]{cjkname{#1}}
providecommand{bibglslettergrouptitle}[4]{%
unexpanded{%
ifcsdef{#4lettergroup}%
{csuse{#4lettergroup}{#1}}%
{cjklettergroup{#1}}%
}%

}"}


And something in the two bib files EngEntries and JPEntries. Anything is fine, but for example:



EngEntries:



@entry{en.acutetriangle,
name={Acute triangle}},
sort={acute triangle},
description={cjkname{急性三角} - cjkname{きゅうせいさんかく}}
}

@entry{en.obtusetriangle,
name={Obtuse triangle},
sort={obtuse triangle},
description={cjkname{鈍角三角形} - cjkname{どんかくさんかっけい}}
}


and JPEntries:



@entry{jp.acutetriangle,
name={cjkname{急性三角}},
sort={cjkname{きゅうせいさんかく}},
description={- cjkname{きゅうせいさんかく}newlinehspace*{1cm} Acute triangle}
}

@entry{jp.obtusetriangle,
name={cjkname{鈍角三角形}},
sort={cjkname{どんかくさんかっけい}},
description={- cjkname{どんかくさんかっけい}newlinehspace*{1cm} Obtuse triangle}
}


The code can then be compiled using



pdflatex MWE
bib2gls MWE
pdflatex MWE









share|improve this question





























    0















    I'm creating a document with two glossaries (using glossaries-extra and bib2gls). I would like to print each glossary without any automatic sectioning (without creating a new chapter or section), so that I can manually add and manipulate the sectioning i.e using chapter{...}. A MWE is below:



    NeedsTeXFormat{LaTeX2e}
    documentclass[11pt]{book}
    usepackage[utf8]{inputenc}
    usepackage{CJKutf8}
    usepackage{graphicx,color}
    usepackage[record,style=mcoltree,stylemods=mcols,nomain]{glossaries-extra}
    usepackage[T1]{fontenc}
    usepackage{lipsum}

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    % Glossaries code %
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    newglossary*{japanese}{Japanese to English}
    newglossary*{english}{English to Japanese}

    glsnoexpandfields

    GlsXtrLoadResources[
    src={defs-nointerpret}, % bib file containing @preamble
    interpret-preamble=false % write the @preamble contents but don't try to interpret
    ]

    GlsXtrLoadResources[
    src=JPEntries,% bib file
    selection=all,% select all entries provided in this 'src' list
    sort={ja-JP},
    type=japanese
    ]

    GlsXtrLoadResources[
    src=EngEntries,% bib file
    selection=all,% select all entries provided in this 'src' list
    sort={en-GB},
    type=english
    %label-prefix={en.}
    ]

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    % Glossaries code end %
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    begin{document}
    mainmatter

    tableofcontents

    printunsrtglossaries


    end{document}


    Which will require the bib file "defs-nointerpret"



    @preamble{"providerobustcmd{cjkname}[1]{begin{CJK}{UTF8}{ipxm}#1end{CJK}}
    providecommand*{englishlettergroup}[1]{#1}
    providecommand*{japaneselettergroup}{cjklettergroup}
    providecommand*{cjklettergroup}[1]{cjkname{#1}}
    providecommand{bibglslettergrouptitle}[4]{%
    unexpanded{%
    ifcsdef{#4lettergroup}%
    {csuse{#4lettergroup}{#1}}%
    {cjklettergroup{#1}}%
    }%

    }"}


    And something in the two bib files EngEntries and JPEntries. Anything is fine, but for example:



    EngEntries:



    @entry{en.acutetriangle,
    name={Acute triangle}},
    sort={acute triangle},
    description={cjkname{急性三角} - cjkname{きゅうせいさんかく}}
    }

    @entry{en.obtusetriangle,
    name={Obtuse triangle},
    sort={obtuse triangle},
    description={cjkname{鈍角三角形} - cjkname{どんかくさんかっけい}}
    }


    and JPEntries:



    @entry{jp.acutetriangle,
    name={cjkname{急性三角}},
    sort={cjkname{きゅうせいさんかく}},
    description={- cjkname{きゅうせいさんかく}newlinehspace*{1cm} Acute triangle}
    }

    @entry{jp.obtusetriangle,
    name={cjkname{鈍角三角形}},
    sort={cjkname{どんかくさんかっけい}},
    description={- cjkname{どんかくさんかっけい}newlinehspace*{1cm} Obtuse triangle}
    }


    The code can then be compiled using



    pdflatex MWE
    bib2gls MWE
    pdflatex MWE









    share|improve this question



























      0












      0








      0








      I'm creating a document with two glossaries (using glossaries-extra and bib2gls). I would like to print each glossary without any automatic sectioning (without creating a new chapter or section), so that I can manually add and manipulate the sectioning i.e using chapter{...}. A MWE is below:



      NeedsTeXFormat{LaTeX2e}
      documentclass[11pt]{book}
      usepackage[utf8]{inputenc}
      usepackage{CJKutf8}
      usepackage{graphicx,color}
      usepackage[record,style=mcoltree,stylemods=mcols,nomain]{glossaries-extra}
      usepackage[T1]{fontenc}
      usepackage{lipsum}

      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      % Glossaries code %
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

      newglossary*{japanese}{Japanese to English}
      newglossary*{english}{English to Japanese}

      glsnoexpandfields

      GlsXtrLoadResources[
      src={defs-nointerpret}, % bib file containing @preamble
      interpret-preamble=false % write the @preamble contents but don't try to interpret
      ]

      GlsXtrLoadResources[
      src=JPEntries,% bib file
      selection=all,% select all entries provided in this 'src' list
      sort={ja-JP},
      type=japanese
      ]

      GlsXtrLoadResources[
      src=EngEntries,% bib file
      selection=all,% select all entries provided in this 'src' list
      sort={en-GB},
      type=english
      %label-prefix={en.}
      ]

      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      % Glossaries code end %
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


      begin{document}
      mainmatter

      tableofcontents

      printunsrtglossaries


      end{document}


      Which will require the bib file "defs-nointerpret"



      @preamble{"providerobustcmd{cjkname}[1]{begin{CJK}{UTF8}{ipxm}#1end{CJK}}
      providecommand*{englishlettergroup}[1]{#1}
      providecommand*{japaneselettergroup}{cjklettergroup}
      providecommand*{cjklettergroup}[1]{cjkname{#1}}
      providecommand{bibglslettergrouptitle}[4]{%
      unexpanded{%
      ifcsdef{#4lettergroup}%
      {csuse{#4lettergroup}{#1}}%
      {cjklettergroup{#1}}%
      }%

      }"}


      And something in the two bib files EngEntries and JPEntries. Anything is fine, but for example:



      EngEntries:



      @entry{en.acutetriangle,
      name={Acute triangle}},
      sort={acute triangle},
      description={cjkname{急性三角} - cjkname{きゅうせいさんかく}}
      }

      @entry{en.obtusetriangle,
      name={Obtuse triangle},
      sort={obtuse triangle},
      description={cjkname{鈍角三角形} - cjkname{どんかくさんかっけい}}
      }


      and JPEntries:



      @entry{jp.acutetriangle,
      name={cjkname{急性三角}},
      sort={cjkname{きゅうせいさんかく}},
      description={- cjkname{きゅうせいさんかく}newlinehspace*{1cm} Acute triangle}
      }

      @entry{jp.obtusetriangle,
      name={cjkname{鈍角三角形}},
      sort={cjkname{どんかくさんかっけい}},
      description={- cjkname{どんかくさんかっけい}newlinehspace*{1cm} Obtuse triangle}
      }


      The code can then be compiled using



      pdflatex MWE
      bib2gls MWE
      pdflatex MWE









      share|improve this question
















      I'm creating a document with two glossaries (using glossaries-extra and bib2gls). I would like to print each glossary without any automatic sectioning (without creating a new chapter or section), so that I can manually add and manipulate the sectioning i.e using chapter{...}. A MWE is below:



      NeedsTeXFormat{LaTeX2e}
      documentclass[11pt]{book}
      usepackage[utf8]{inputenc}
      usepackage{CJKutf8}
      usepackage{graphicx,color}
      usepackage[record,style=mcoltree,stylemods=mcols,nomain]{glossaries-extra}
      usepackage[T1]{fontenc}
      usepackage{lipsum}

      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      % Glossaries code %
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

      newglossary*{japanese}{Japanese to English}
      newglossary*{english}{English to Japanese}

      glsnoexpandfields

      GlsXtrLoadResources[
      src={defs-nointerpret}, % bib file containing @preamble
      interpret-preamble=false % write the @preamble contents but don't try to interpret
      ]

      GlsXtrLoadResources[
      src=JPEntries,% bib file
      selection=all,% select all entries provided in this 'src' list
      sort={ja-JP},
      type=japanese
      ]

      GlsXtrLoadResources[
      src=EngEntries,% bib file
      selection=all,% select all entries provided in this 'src' list
      sort={en-GB},
      type=english
      %label-prefix={en.}
      ]

      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      % Glossaries code end %
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


      begin{document}
      mainmatter

      tableofcontents

      printunsrtglossaries


      end{document}


      Which will require the bib file "defs-nointerpret"



      @preamble{"providerobustcmd{cjkname}[1]{begin{CJK}{UTF8}{ipxm}#1end{CJK}}
      providecommand*{englishlettergroup}[1]{#1}
      providecommand*{japaneselettergroup}{cjklettergroup}
      providecommand*{cjklettergroup}[1]{cjkname{#1}}
      providecommand{bibglslettergrouptitle}[4]{%
      unexpanded{%
      ifcsdef{#4lettergroup}%
      {csuse{#4lettergroup}{#1}}%
      {cjklettergroup{#1}}%
      }%

      }"}


      And something in the two bib files EngEntries and JPEntries. Anything is fine, but for example:



      EngEntries:



      @entry{en.acutetriangle,
      name={Acute triangle}},
      sort={acute triangle},
      description={cjkname{急性三角} - cjkname{きゅうせいさんかく}}
      }

      @entry{en.obtusetriangle,
      name={Obtuse triangle},
      sort={obtuse triangle},
      description={cjkname{鈍角三角形} - cjkname{どんかくさんかっけい}}
      }


      and JPEntries:



      @entry{jp.acutetriangle,
      name={cjkname{急性三角}},
      sort={cjkname{きゅうせいさんかく}},
      description={- cjkname{きゅうせいさんかく}newlinehspace*{1cm} Acute triangle}
      }

      @entry{jp.obtusetriangle,
      name={cjkname{鈍角三角形}},
      sort={cjkname{どんかくさんかっけい}},
      description={- cjkname{どんかくさんかっけい}newlinehspace*{1cm} Obtuse triangle}
      }


      The code can then be compiled using



      pdflatex MWE
      bib2gls MWE
      pdflatex MWE






      sectioning chapters glossaries glossaries-extra






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 7 mins ago







      James

















      asked Feb 18 at 23:24









      JamesJames

      856




      856






















          0






          active

          oldest

          votes











          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%2f475577%2fglossaries-extra-without-sectioning%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f475577%2fglossaries-extra-without-sectioning%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

          Accessing regular linux commands in Huawei's Dopra Linux

          Can't connect RFCOMM socket: Host is down

          Kernel panic - not syncing: Fatal Exception in Interrupt