Linguistic glosses with Leipzig package including morpheme boundaries











up vote
1
down vote

favorite
1












I just started using LaTeX and am using the Leipzig-package for linguistic glosses, that I also want to appear in a glossary. In the Leipzig package only the glosses themselves are defined, while morpheme-boundaries (- and =) are placed manually in the text.



This is how the shortcuts are defined: newleipzig{attr}{attr}{at-tri-bu-ti-ve} %attributive



The first {attr} makes the shortcut, the second is what appears in the gloss and the glossary. If I add morpheme boundaries, e.g. newleipzig{attr}{=attr}{at-tri-bu-ti-ve} %attributive, they of course also appear in the glossary.



Is there a way to define 2 separate outputs, i.e. one for glossed examples inluding the morpheme boundary and another one for the glossary?



Here is an example, in this case with the morpheme-boundaries outside the glosses:



documentclass[11pt] {book}
usepackage[a4paper, twoside, top=3cm,bottom=3cm,left=3cm,right=4cm]{geometry}
usepackage{fontspec} usepackage{xltxtra} usepackage{xunicode}
setmainfont{Charis SIL}
usepackage[hidelinks]{hyperref}
usepackage[toc, nonumberlist, mcolblock]{leipzig}
makeglossaries
usepackage{gb4e}
usepackage{cgloss}
leteachwordone=itshape
leteachwordtwo=small
defgltoffset{-0ex}
newcommand{source}[1]{hfill {small sf #1}}
newleipzig{attr}{attr}{at-tri-bu-ti-ve} %attributive
newleipzig{an}{an}{adjectival noun} %adjectival noun
newleipzig{act}{act}{ac-tive} %active
newleipzig{cv}{cv}{con-verb} %converb
newcommand{Acv}{{Act}{Cv}}%
begin{document}
printglossary[type=leipzigtype,title=Abbreviations]
begin{exe}
ex label{ex-bad-ghost}
gll sulob ɖiʔke loʔ-gu=nu ɖuma bania=kaŋ\
tree from fall-Acv{}=Attr{} spirit bad=An{}\
glt `The spirit of someone who died from falling off a tree is a bad one.' \
end{exe}
end{document}


Thanks so much for your help :)










share|improve this question







New contributor




Judith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    1
    down vote

    favorite
    1












    I just started using LaTeX and am using the Leipzig-package for linguistic glosses, that I also want to appear in a glossary. In the Leipzig package only the glosses themselves are defined, while morpheme-boundaries (- and =) are placed manually in the text.



    This is how the shortcuts are defined: newleipzig{attr}{attr}{at-tri-bu-ti-ve} %attributive



    The first {attr} makes the shortcut, the second is what appears in the gloss and the glossary. If I add morpheme boundaries, e.g. newleipzig{attr}{=attr}{at-tri-bu-ti-ve} %attributive, they of course also appear in the glossary.



    Is there a way to define 2 separate outputs, i.e. one for glossed examples inluding the morpheme boundary and another one for the glossary?



    Here is an example, in this case with the morpheme-boundaries outside the glosses:



    documentclass[11pt] {book}
    usepackage[a4paper, twoside, top=3cm,bottom=3cm,left=3cm,right=4cm]{geometry}
    usepackage{fontspec} usepackage{xltxtra} usepackage{xunicode}
    setmainfont{Charis SIL}
    usepackage[hidelinks]{hyperref}
    usepackage[toc, nonumberlist, mcolblock]{leipzig}
    makeglossaries
    usepackage{gb4e}
    usepackage{cgloss}
    leteachwordone=itshape
    leteachwordtwo=small
    defgltoffset{-0ex}
    newcommand{source}[1]{hfill {small sf #1}}
    newleipzig{attr}{attr}{at-tri-bu-ti-ve} %attributive
    newleipzig{an}{an}{adjectival noun} %adjectival noun
    newleipzig{act}{act}{ac-tive} %active
    newleipzig{cv}{cv}{con-verb} %converb
    newcommand{Acv}{{Act}{Cv}}%
    begin{document}
    printglossary[type=leipzigtype,title=Abbreviations]
    begin{exe}
    ex label{ex-bad-ghost}
    gll sulob ɖiʔke loʔ-gu=nu ɖuma bania=kaŋ\
    tree from fall-Acv{}=Attr{} spirit bad=An{}\
    glt `The spirit of someone who died from falling off a tree is a bad one.' \
    end{exe}
    end{document}


    Thanks so much for your help :)










    share|improve this question







    New contributor




    Judith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I just started using LaTeX and am using the Leipzig-package for linguistic glosses, that I also want to appear in a glossary. In the Leipzig package only the glosses themselves are defined, while morpheme-boundaries (- and =) are placed manually in the text.



      This is how the shortcuts are defined: newleipzig{attr}{attr}{at-tri-bu-ti-ve} %attributive



      The first {attr} makes the shortcut, the second is what appears in the gloss and the glossary. If I add morpheme boundaries, e.g. newleipzig{attr}{=attr}{at-tri-bu-ti-ve} %attributive, they of course also appear in the glossary.



      Is there a way to define 2 separate outputs, i.e. one for glossed examples inluding the morpheme boundary and another one for the glossary?



      Here is an example, in this case with the morpheme-boundaries outside the glosses:



      documentclass[11pt] {book}
      usepackage[a4paper, twoside, top=3cm,bottom=3cm,left=3cm,right=4cm]{geometry}
      usepackage{fontspec} usepackage{xltxtra} usepackage{xunicode}
      setmainfont{Charis SIL}
      usepackage[hidelinks]{hyperref}
      usepackage[toc, nonumberlist, mcolblock]{leipzig}
      makeglossaries
      usepackage{gb4e}
      usepackage{cgloss}
      leteachwordone=itshape
      leteachwordtwo=small
      defgltoffset{-0ex}
      newcommand{source}[1]{hfill {small sf #1}}
      newleipzig{attr}{attr}{at-tri-bu-ti-ve} %attributive
      newleipzig{an}{an}{adjectival noun} %adjectival noun
      newleipzig{act}{act}{ac-tive} %active
      newleipzig{cv}{cv}{con-verb} %converb
      newcommand{Acv}{{Act}{Cv}}%
      begin{document}
      printglossary[type=leipzigtype,title=Abbreviations]
      begin{exe}
      ex label{ex-bad-ghost}
      gll sulob ɖiʔke loʔ-gu=nu ɖuma bania=kaŋ\
      tree from fall-Acv{}=Attr{} spirit bad=An{}\
      glt `The spirit of someone who died from falling off a tree is a bad one.' \
      end{exe}
      end{document}


      Thanks so much for your help :)










      share|improve this question







      New contributor




      Judith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I just started using LaTeX and am using the Leipzig-package for linguistic glosses, that I also want to appear in a glossary. In the Leipzig package only the glosses themselves are defined, while morpheme-boundaries (- and =) are placed manually in the text.



      This is how the shortcuts are defined: newleipzig{attr}{attr}{at-tri-bu-ti-ve} %attributive



      The first {attr} makes the shortcut, the second is what appears in the gloss and the glossary. If I add morpheme boundaries, e.g. newleipzig{attr}{=attr}{at-tri-bu-ti-ve} %attributive, they of course also appear in the glossary.



      Is there a way to define 2 separate outputs, i.e. one for glossed examples inluding the morpheme boundary and another one for the glossary?



      Here is an example, in this case with the morpheme-boundaries outside the glosses:



      documentclass[11pt] {book}
      usepackage[a4paper, twoside, top=3cm,bottom=3cm,left=3cm,right=4cm]{geometry}
      usepackage{fontspec} usepackage{xltxtra} usepackage{xunicode}
      setmainfont{Charis SIL}
      usepackage[hidelinks]{hyperref}
      usepackage[toc, nonumberlist, mcolblock]{leipzig}
      makeglossaries
      usepackage{gb4e}
      usepackage{cgloss}
      leteachwordone=itshape
      leteachwordtwo=small
      defgltoffset{-0ex}
      newcommand{source}[1]{hfill {small sf #1}}
      newleipzig{attr}{attr}{at-tri-bu-ti-ve} %attributive
      newleipzig{an}{an}{adjectival noun} %adjectival noun
      newleipzig{act}{act}{ac-tive} %active
      newleipzig{cv}{cv}{con-verb} %converb
      newcommand{Acv}{{Act}{Cv}}%
      begin{document}
      printglossary[type=leipzigtype,title=Abbreviations]
      begin{exe}
      ex label{ex-bad-ghost}
      gll sulob ɖiʔke loʔ-gu=nu ɖuma bania=kaŋ\
      tree from fall-Acv{}=Attr{} spirit bad=An{}\
      glt `The spirit of someone who died from falling off a tree is a bad one.' \
      end{exe}
      end{document}


      Thanks so much for your help :)







      glossaries acronyms leipzig






      share|improve this question







      New contributor




      Judith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Judith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Judith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked yesterday









      Judith

      61




      61




      New contributor




      Judith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Judith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Judith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























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


          }
          });






          Judith is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461315%2flinguistic-glosses-with-leipzig-package-including-morpheme-boundaries%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Judith is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          Judith is a new contributor. Be nice, and check out our Code of Conduct.













          Judith is a new contributor. Be nice, and check out our Code of Conduct.












          Judith is a new contributor. Be nice, and check out our Code of Conduct.















           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461315%2flinguistic-glosses-with-leipzig-package-including-morpheme-boundaries%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

          サソリ

          広島県道265号伴広島線

          Accessing regular linux commands in Huawei's Dopra Linux