Proper kerning in case the symbol with a subscript is a glossary term and a superscript is another glossary term The 2019 Stack Overflow Developer Survey Results Are InHow to get glossary terms to properly typeset subscripts/superscripts?Bug in svindd.ist?LaTeX fonts with proper kerning for characters with diacriticsHow to get proper kerning with XeTeX and special characters?Take the kerning of a font to make it the kerning of another oneText and scripts overlapped if subscript and superscript used at the same timeSymbol with overline and subscript leads to wrong kerningKerning between $uptau$ and subscript?Kerning issue between the letters “f” and “i”Which controls the kerning and position of superscript/subscript, LaTeX or font itself?Horizontal alignment of subscript and superscript - xetexKerning with `realscripts` and LuaLaTex

Why not take a picture of a closer black hole?

How to charge AirPods to keep battery healthy?

Computing the expectation of the number of balls in a box

I am an eight letter word. What am I?

Why “相同意思的词” is called “同义词” instead of "同意词"?

Can withdrawing asylum be illegal?

Is it correct to say the Neural Networks are an alternative way of performing Maximum Likelihood Estimation? if not, why?

Is it safe to harvest rainwater that fell on solar panels?

Get name of standard action overriden in Visualforce contorller

Output the Arecibo Message

Mathematics of imaging the black hole

What do these terms in Caesar's Gallic wars mean?

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

Keeping a retro style to sci-fi spaceships?

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

The phrase "to the numbers born"?

What is this business jet?

What is the most efficient way to store a numeric range?

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

How to support a colleague who finds meetings extremely tiring?

APIPA and LAN Broadcast Domain

Is it possible for absolutely everyone to attain enlightenment?

Why are there uneven bright areas in this photo of black hole?

How to notate time signature switching consistently every measure



Proper kerning in case the symbol with a subscript is a glossary term and a superscript is another glossary term



The 2019 Stack Overflow Developer Survey Results Are InHow to get glossary terms to properly typeset subscripts/superscripts?Bug in svindd.ist?LaTeX fonts with proper kerning for characters with diacriticsHow to get proper kerning with XeTeX and special characters?Take the kerning of a font to make it the kerning of another oneText and scripts overlapped if subscript and superscript used at the same timeSymbol with overline and subscript leads to wrong kerningKerning between $uptau$ and subscript?Kerning issue between the letters “f” and “i”Which controls the kerning and position of superscript/subscript, LaTeX or font itself?Horizontal alignment of subscript and superscript - xetexKerning with `realscripts` and LuaLaTex










0















Continuing How to get glossary terms to properly typeset subscripts/superscripts?, let's consider the following input:



documentclassbook
usepackagefontspec
usepackage[ngerman]babel
usepackagemathtoolsmathtoolssetmathic=true %%% See http://tex.stackexchange.com/a/3496/
usepackageamssymb
usepackageunicode-math
setmainfont[Ligatures=TeX]TeX Gyre Termes
setsansfontTeX Gyre Heros[Scale=0.88]
setmonofontTeX Gyre Cursor
setmathfont[Ligatures=TeX]TeX Gyre Termes Math
setmathfont[Ligatures=TeX,range=setminus]Asana Math
setmathfont[Ligatures=TeX,Extension=.otf,range="2A3E,BoldFont=XITSMath-Bold]XITSMath-Regular%%% The fat semicolon
usepackage[unicode,hidelinks]hyperref
usepackage[makeindex,toc,nogroupskip,nomain]glossaries-extra %%% glossaries-extra internally loads glossaries, and glossaries according to its documentation should be loaded after hyperref.
%%% The next hack improves how hyperref jives with svindd.ist, see https://tex.stackexchange.com/a/429446
makeatletter
def@commahyperpage#1@@commahyperpage#1,,,\
def@@commahyperpage#1,,#2,#3\%
ifx\#2\%
HyInd@pagelink#1%
else
HyInd@pagelink#1,,HyInd@pagelink#2%
fi

makeatother
setglossarystylelong3colrenewcommandglspagelistwidth10em
GlsSetQuote+ %%% Hack to work with makeindex
usepackage[babel=true,verbose=errors]microtype
newcommandNNZglsnot:nonnegativeNat% ℕ_
newcommandNNPglsnot:positiveNat
newcommandfiniteWordsSet[1]#1^glsnot:finiteWordsSymbol %%% Sequences
newglossary[nlg]notationnotntnSymbolverzeichnis
makeglossaries
newglossaryentrynot:positiveNattype=notation, name=(ℕ_mkern-2mu>0), text=ℕ_mkern-1mu>0, sort=Nplus, description=Die Menge positiver ganzer Zahlen.
newglossaryentrynot:nonnegativeNattype=notation, name=(ℕ_mkern-2muge 0), text=ℕ_mkern-1muge 0, sort=N0, description=Die Menge nichtnegativer ganzer Zahlen.
newglossaryentrynot:finiteWordsSymboltype=notation, name=(cdot^*), text=*, sort=*finiteWordsSymbol, description=Gegeben eine beliebige Menge (Z), bezeichnen wir mit (Z^*) die Menge aller endlichen Wörter (also, endlichen Sequenzen) über (Z).
begindocument
What we typeset is:
[finiteWordsSetNNZ finiteWordsSetNNP]
(finiteWordsSetNNZ finiteWordsSetNNP)

bigskip

However, the visual appearence leaves much to be desired. The star should better be closer to the double-struck capital N and a little bit higher, such as in
[ℕ^raisebox.1ex$scriptstyle *$_mkern-2mu>0 ℕ_mkern-2muge 0^raisebox.1ex$scriptstyle *$]
(ℕ_mkern-2mu>0^raisebox.1ex$scriptstyle *$ ℕ_mkern-2muge 0^raisebox.1ex$scriptstyle *$)\
and all the symbols should be still properly linked to the glossary.
printglossary
enddocument


Compiling with xelatex file && makeindex -g -s file.ist -t file.nlg -o file.not file.ntn && xelatex file gives us this:



output with unpleasant kerning



How to adapt the code in such a way that the macro calls finiteWordsSetNNZ and finiteWordsSetNNP produce a visually pleasant output without losing the links to the glossary and perform as before for the other actual arguments? If that's too difficult, I'd even appreciate single macros finiteWordsOverNaturalsZ and finiteWordsOverNaturalsP that would produce the visually pleasant representation of the notation for sequences of naturals with/without zero?









share


























    0















    Continuing How to get glossary terms to properly typeset subscripts/superscripts?, let's consider the following input:



    documentclassbook
    usepackagefontspec
    usepackage[ngerman]babel
    usepackagemathtoolsmathtoolssetmathic=true %%% See http://tex.stackexchange.com/a/3496/
    usepackageamssymb
    usepackageunicode-math
    setmainfont[Ligatures=TeX]TeX Gyre Termes
    setsansfontTeX Gyre Heros[Scale=0.88]
    setmonofontTeX Gyre Cursor
    setmathfont[Ligatures=TeX]TeX Gyre Termes Math
    setmathfont[Ligatures=TeX,range=setminus]Asana Math
    setmathfont[Ligatures=TeX,Extension=.otf,range="2A3E,BoldFont=XITSMath-Bold]XITSMath-Regular%%% The fat semicolon
    usepackage[unicode,hidelinks]hyperref
    usepackage[makeindex,toc,nogroupskip,nomain]glossaries-extra %%% glossaries-extra internally loads glossaries, and glossaries according to its documentation should be loaded after hyperref.
    %%% The next hack improves how hyperref jives with svindd.ist, see https://tex.stackexchange.com/a/429446
    makeatletter
    def@commahyperpage#1@@commahyperpage#1,,,\
    def@@commahyperpage#1,,#2,#3\%
    ifx\#2\%
    HyInd@pagelink#1%
    else
    HyInd@pagelink#1,,HyInd@pagelink#2%
    fi

    makeatother
    setglossarystylelong3colrenewcommandglspagelistwidth10em
    GlsSetQuote+ %%% Hack to work with makeindex
    usepackage[babel=true,verbose=errors]microtype
    newcommandNNZglsnot:nonnegativeNat% ℕ_
    newcommandNNPglsnot:positiveNat
    newcommandfiniteWordsSet[1]#1^glsnot:finiteWordsSymbol %%% Sequences
    newglossary[nlg]notationnotntnSymbolverzeichnis
    makeglossaries
    newglossaryentrynot:positiveNattype=notation, name=(ℕ_mkern-2mu>0), text=ℕ_mkern-1mu>0, sort=Nplus, description=Die Menge positiver ganzer Zahlen.
    newglossaryentrynot:nonnegativeNattype=notation, name=(ℕ_mkern-2muge 0), text=ℕ_mkern-1muge 0, sort=N0, description=Die Menge nichtnegativer ganzer Zahlen.
    newglossaryentrynot:finiteWordsSymboltype=notation, name=(cdot^*), text=*, sort=*finiteWordsSymbol, description=Gegeben eine beliebige Menge (Z), bezeichnen wir mit (Z^*) die Menge aller endlichen Wörter (also, endlichen Sequenzen) über (Z).
    begindocument
    What we typeset is:
    [finiteWordsSetNNZ finiteWordsSetNNP]
    (finiteWordsSetNNZ finiteWordsSetNNP)

    bigskip

    However, the visual appearence leaves much to be desired. The star should better be closer to the double-struck capital N and a little bit higher, such as in
    [ℕ^raisebox.1ex$scriptstyle *$_mkern-2mu>0 ℕ_mkern-2muge 0^raisebox.1ex$scriptstyle *$]
    (ℕ_mkern-2mu>0^raisebox.1ex$scriptstyle *$ ℕ_mkern-2muge 0^raisebox.1ex$scriptstyle *$)\
    and all the symbols should be still properly linked to the glossary.
    printglossary
    enddocument


    Compiling with xelatex file && makeindex -g -s file.ist -t file.nlg -o file.not file.ntn && xelatex file gives us this:



    output with unpleasant kerning



    How to adapt the code in such a way that the macro calls finiteWordsSetNNZ and finiteWordsSetNNP produce a visually pleasant output without losing the links to the glossary and perform as before for the other actual arguments? If that's too difficult, I'd even appreciate single macros finiteWordsOverNaturalsZ and finiteWordsOverNaturalsP that would produce the visually pleasant representation of the notation for sequences of naturals with/without zero?









    share
























      0












      0








      0








      Continuing How to get glossary terms to properly typeset subscripts/superscripts?, let's consider the following input:



      documentclassbook
      usepackagefontspec
      usepackage[ngerman]babel
      usepackagemathtoolsmathtoolssetmathic=true %%% See http://tex.stackexchange.com/a/3496/
      usepackageamssymb
      usepackageunicode-math
      setmainfont[Ligatures=TeX]TeX Gyre Termes
      setsansfontTeX Gyre Heros[Scale=0.88]
      setmonofontTeX Gyre Cursor
      setmathfont[Ligatures=TeX]TeX Gyre Termes Math
      setmathfont[Ligatures=TeX,range=setminus]Asana Math
      setmathfont[Ligatures=TeX,Extension=.otf,range="2A3E,BoldFont=XITSMath-Bold]XITSMath-Regular%%% The fat semicolon
      usepackage[unicode,hidelinks]hyperref
      usepackage[makeindex,toc,nogroupskip,nomain]glossaries-extra %%% glossaries-extra internally loads glossaries, and glossaries according to its documentation should be loaded after hyperref.
      %%% The next hack improves how hyperref jives with svindd.ist, see https://tex.stackexchange.com/a/429446
      makeatletter
      def@commahyperpage#1@@commahyperpage#1,,,\
      def@@commahyperpage#1,,#2,#3\%
      ifx\#2\%
      HyInd@pagelink#1%
      else
      HyInd@pagelink#1,,HyInd@pagelink#2%
      fi

      makeatother
      setglossarystylelong3colrenewcommandglspagelistwidth10em
      GlsSetQuote+ %%% Hack to work with makeindex
      usepackage[babel=true,verbose=errors]microtype
      newcommandNNZglsnot:nonnegativeNat% ℕ_
      newcommandNNPglsnot:positiveNat
      newcommandfiniteWordsSet[1]#1^glsnot:finiteWordsSymbol %%% Sequences
      newglossary[nlg]notationnotntnSymbolverzeichnis
      makeglossaries
      newglossaryentrynot:positiveNattype=notation, name=(ℕ_mkern-2mu>0), text=ℕ_mkern-1mu>0, sort=Nplus, description=Die Menge positiver ganzer Zahlen.
      newglossaryentrynot:nonnegativeNattype=notation, name=(ℕ_mkern-2muge 0), text=ℕ_mkern-1muge 0, sort=N0, description=Die Menge nichtnegativer ganzer Zahlen.
      newglossaryentrynot:finiteWordsSymboltype=notation, name=(cdot^*), text=*, sort=*finiteWordsSymbol, description=Gegeben eine beliebige Menge (Z), bezeichnen wir mit (Z^*) die Menge aller endlichen Wörter (also, endlichen Sequenzen) über (Z).
      begindocument
      What we typeset is:
      [finiteWordsSetNNZ finiteWordsSetNNP]
      (finiteWordsSetNNZ finiteWordsSetNNP)

      bigskip

      However, the visual appearence leaves much to be desired. The star should better be closer to the double-struck capital N and a little bit higher, such as in
      [ℕ^raisebox.1ex$scriptstyle *$_mkern-2mu>0 ℕ_mkern-2muge 0^raisebox.1ex$scriptstyle *$]
      (ℕ_mkern-2mu>0^raisebox.1ex$scriptstyle *$ ℕ_mkern-2muge 0^raisebox.1ex$scriptstyle *$)\
      and all the symbols should be still properly linked to the glossary.
      printglossary
      enddocument


      Compiling with xelatex file && makeindex -g -s file.ist -t file.nlg -o file.not file.ntn && xelatex file gives us this:



      output with unpleasant kerning



      How to adapt the code in such a way that the macro calls finiteWordsSetNNZ and finiteWordsSetNNP produce a visually pleasant output without losing the links to the glossary and perform as before for the other actual arguments? If that's too difficult, I'd even appreciate single macros finiteWordsOverNaturalsZ and finiteWordsOverNaturalsP that would produce the visually pleasant representation of the notation for sequences of naturals with/without zero?









      share














      Continuing How to get glossary terms to properly typeset subscripts/superscripts?, let's consider the following input:



      documentclassbook
      usepackagefontspec
      usepackage[ngerman]babel
      usepackagemathtoolsmathtoolssetmathic=true %%% See http://tex.stackexchange.com/a/3496/
      usepackageamssymb
      usepackageunicode-math
      setmainfont[Ligatures=TeX]TeX Gyre Termes
      setsansfontTeX Gyre Heros[Scale=0.88]
      setmonofontTeX Gyre Cursor
      setmathfont[Ligatures=TeX]TeX Gyre Termes Math
      setmathfont[Ligatures=TeX,range=setminus]Asana Math
      setmathfont[Ligatures=TeX,Extension=.otf,range="2A3E,BoldFont=XITSMath-Bold]XITSMath-Regular%%% The fat semicolon
      usepackage[unicode,hidelinks]hyperref
      usepackage[makeindex,toc,nogroupskip,nomain]glossaries-extra %%% glossaries-extra internally loads glossaries, and glossaries according to its documentation should be loaded after hyperref.
      %%% The next hack improves how hyperref jives with svindd.ist, see https://tex.stackexchange.com/a/429446
      makeatletter
      def@commahyperpage#1@@commahyperpage#1,,,\
      def@@commahyperpage#1,,#2,#3\%
      ifx\#2\%
      HyInd@pagelink#1%
      else
      HyInd@pagelink#1,,HyInd@pagelink#2%
      fi

      makeatother
      setglossarystylelong3colrenewcommandglspagelistwidth10em
      GlsSetQuote+ %%% Hack to work with makeindex
      usepackage[babel=true,verbose=errors]microtype
      newcommandNNZglsnot:nonnegativeNat% ℕ_
      newcommandNNPglsnot:positiveNat
      newcommandfiniteWordsSet[1]#1^glsnot:finiteWordsSymbol %%% Sequences
      newglossary[nlg]notationnotntnSymbolverzeichnis
      makeglossaries
      newglossaryentrynot:positiveNattype=notation, name=(ℕ_mkern-2mu>0), text=ℕ_mkern-1mu>0, sort=Nplus, description=Die Menge positiver ganzer Zahlen.
      newglossaryentrynot:nonnegativeNattype=notation, name=(ℕ_mkern-2muge 0), text=ℕ_mkern-1muge 0, sort=N0, description=Die Menge nichtnegativer ganzer Zahlen.
      newglossaryentrynot:finiteWordsSymboltype=notation, name=(cdot^*), text=*, sort=*finiteWordsSymbol, description=Gegeben eine beliebige Menge (Z), bezeichnen wir mit (Z^*) die Menge aller endlichen Wörter (also, endlichen Sequenzen) über (Z).
      begindocument
      What we typeset is:
      [finiteWordsSetNNZ finiteWordsSetNNP]
      (finiteWordsSetNNZ finiteWordsSetNNP)

      bigskip

      However, the visual appearence leaves much to be desired. The star should better be closer to the double-struck capital N and a little bit higher, such as in
      [ℕ^raisebox.1ex$scriptstyle *$_mkern-2mu>0 ℕ_mkern-2muge 0^raisebox.1ex$scriptstyle *$]
      (ℕ_mkern-2mu>0^raisebox.1ex$scriptstyle *$ ℕ_mkern-2muge 0^raisebox.1ex$scriptstyle *$)\
      and all the symbols should be still properly linked to the glossary.
      printglossary
      enddocument


      Compiling with xelatex file && makeindex -g -s file.ist -t file.nlg -o file.not file.ntn && xelatex file gives us this:



      output with unpleasant kerning



      How to adapt the code in such a way that the macro calls finiteWordsSetNNZ and finiteWordsSetNNP produce a visually pleasant output without losing the links to the glossary and perform as before for the other actual arguments? If that's too difficult, I'd even appreciate single macros finiteWordsOverNaturalsZ and finiteWordsOverNaturalsP that would produce the visually pleasant representation of the notation for sequences of naturals with/without zero?







      xetex hyperref kerning makeindex glossaries-extra





      share












      share










      share



      share










      asked 4 mins ago









      user49915user49915

      761122




      761122




















          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%2f484419%2fproper-kerning-in-case-the-symbol-with-a-subscript-is-a-glossary-term-and-a-supe%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%2f484419%2fproper-kerning-in-case-the-symbol-with-a-subscript-is-a-glossary-term-and-a-supe%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

          Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

          Join wedge with single bond in chemfigHow to make only one part of double bond bold with chemfig?Crossing bonds in chemfigjoining atoms in chemfig. Two adjacent molculesHow do I selectively change bond length in chemfig?Ugly bond joints in chemfigchemfig: reaction above arrowUsing the mhchem and chemfig packages in conjunctionBonding to specific element letter using chemfigResonance hybrids in chemfigScale chemfig molecule in beamer with tikzWhy does this chemfig bond with a hook start in the middle of the atom?

          Are small insurances worth itIs insurance worth it if you can afford to replace the item? If not, when is it?Is accident insurance worth it for my kids who play sportsIs insuring property for more than it is worth allowed?At what point does it become worth it to file an insurance claim?Are wage loss insurance programs worth the cost compared to having an emergency fund?When is an event worth insuring against?Is insurance worth it if you can afford to replace the item? If not, when is it?FHA loan just commenced : Any way to get any of the up-front mortgage insurance back?Which types of insurances do I need to buy?Should I carry less renter's insurance if I can self-insure?Mortgage Adviser Signed Me Up For Multiple Home and Life Insurances (UK)Why many travel insurances don't cover country of nationality?