N.B. ligature in Latex The 2019 Stack Overflow Developer Survey Results Are Inaccess all characters in an OpenType font with LuaLaTeXSuppression of a ligature in XeLaTeXHow can I suppress a terminal ligature?Use ae ligature in bibliographyAccessing the Fancy /es/ Ligature Without Lua-/Xe-LatexRemoving “st” ligature in Humanist fontSuppress 2-letter ligature when 3-letter ligature would applySuppress specific ligature in XeLaTeXHow to keep a “rare” ligature from interfering with a “common” ligature?How change emdash ligature?“native” math ligature with OpenType feature

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

Why can Shazam fly?

How to answer pointed "are you quitting" questioning when I don't want them to suspect

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

Why is the Constellation's nose gear so long?

Am I thawing this London Broil safely?

How come people say “Would of”?

Why did Acorn's A3000 have red function keys?

Shouldn't "much" here be used instead of "more"?

How to save as into a customized destination on macOS?

slides for 30min~1hr skype tenure track application interview

How to type this arrow in math mode?

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

What do hard-Brexiteers want with respect to the Irish border?

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

How to support a colleague who finds meetings extremely tiring?

Does the shape of a die affect the probability of a number being rolled?

Are spiders unable to hurt humans, especially very small spiders?

Can we generate random numbers using irrational numbers like π and e?

Right tool to dig six foot holes?

Identify boardgame from Big movie

Falsification in Math vs Science

What is the accessibility of a package's `Private` context variables?

Delete all lines which don't have n characters before delimiter



N.B. ligature in Latex



The 2019 Stack Overflow Developer Survey Results Are Inaccess all characters in an OpenType font with LuaLaTeXSuppression of a ligature in XeLaTeXHow can I suppress a terminal ligature?Use ae ligature in bibliographyAccessing the Fancy /es/ Ligature Without Lua-/Xe-LatexRemoving “st” ligature in Humanist fontSuppress 2-letter ligature when 3-letter ligature would applySuppress specific ligature in XeLaTeXHow to keep a “rare” ligature from interfering with a “common” ligature?How change emdash ligature?“native” math ligature with OpenType feature










13















Wikipedia mentions a ligature for NB (nota bene), however I can't seem to find any reference to this in the latex literature. Is there a way to use this ligature in my latex document?



An example of the ligature:
Nota Bene ligature










share|improve this question


























    13















    Wikipedia mentions a ligature for NB (nota bene), however I can't seem to find any reference to this in the latex literature. Is there a way to use this ligature in my latex document?



    An example of the ligature:
    Nota Bene ligature










    share|improve this question
























      13












      13








      13


      1






      Wikipedia mentions a ligature for NB (nota bene), however I can't seem to find any reference to this in the latex literature. Is there a way to use this ligature in my latex document?



      An example of the ligature:
      Nota Bene ligature










      share|improve this question














      Wikipedia mentions a ligature for NB (nota bene), however I can't seem to find any reference to this in the latex literature. Is there a way to use this ligature in my latex document?



      An example of the ligature:
      Nota Bene ligature







      ligatures






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 7 at 8:10









      David PoxonDavid Poxon

      1906




      1906




















          2 Answers
          2






          active

          oldest

          votes


















          14














          To the best of my knowledge, there are no fonts out there (not even Junicode!) that provide a ready-made NB ligature.



          It's actually not too difficult to create a composite NB glyph (not to be confused with a "true" ligature) by inserting a negative kern between N and B. However, for many font families the N-B composite is quite unattractive. It's a vivid reminder, IMNSHO, of the fact that creating a good-looking ligature requires a lot more work than just "snugging up" two or more glyphs.



          The following screenshot shows possible NB candidates for 4 serif fonts and 3 sans-serif fonts. (If you wanted to use this in "real work", be sure to omit the textcolorred... wrapper in the definition of NB.)



          enter image description here



          documentclassarticle
          usepackagexcolor % for 'textcolor' macro
          newcommandNB[1][0.3]Nkern-#1emtextcolorredB % default kern amount: -0.3em
          usepackagefontspec
          begindocument

          setmainfontLatin Modern Roman
          NB --- Latin Modern Roman

          setmainfontTimes Roman
          NB[0.265] --- Times Roman

          setmainfontEB Garamond
          NB[0.275] --- EB Garamond

          setmainfontTrajan Pro
          NB[0.385] --- Trajan Pro

          setmainfontLatin Modern Sans
          NB[0.27] --- Latin Modern Sans

          setmainfontHelvetica
          NB[0.24] --- Helvetica

          setmainfontFutura
          NB[0.295] --- Futura

          enddocument





          share|improve this answer


















          • 2





            You can never find a Monk when you need one

            – David Carlisle
            Apr 7 at 9:27






          • 2





            It might be worth noting that this is the same workaround which is also used on the linked Wikipedia page: The "ligature" is $mathrmN!!mathrmB$ which should be the same as NB[0.33333] with Computer Modern Roman.

            – Marcel Krüger
            Apr 7 at 11:23











          • Thank you! The Latin Modern Roman looks pretty good!

            – David Poxon
            Apr 7 at 12:02











          • One way to improve this might be to clip the N glyph where the B begins to avoid the N poking out from the bottom like in Garamond or Futura. No idea whether that's possible though (although it's LaTeX, so arbitrary vector graphics operations on arbitrary font glyphs should be no problem, from what I've seen so far).

            – Joey
            2 days ago











          • @Joey - Feel free to post a new answer in which you implement the ideas outlined in your comment. :-)

            – Mico
            2 days ago


















          8














          Even among commercial fonts with many unusual ligatures, this ligature is rare. The only one in my large collection is found in P22 Hoy Pro, and it hasn’t been made readily accessible through any defined feature:



          documentclassarticle
          usepackagefontspec,luacode
          setmainfontP22 Hoy Pro[
          Contextuals=Alternate,
          Ligatures=Rare]
          % https://tex.stackexchange.com/a/120762:
          beginluacode


           documentdata = documentdata or 

          local stringformat = string.format
          local texsprint = tex.sprint
          local slot_of_name = luaotfload.aux.slot_of_name

          documentdata.fontchar = function (chr)
          local chr = slot_of_name(font.current(), chr, false)
          if chr and type(chr) == "number" then
          texsprint
          (stringformat ([[char"%X]], chr))
          end
          end


          endluacode
          deffontchar#1directluadocumentdata.fontchar "#1"
          begindocument
          fontcharN_B: This is P22 Hoy Pro.
          enddocument


          output






          share|improve this answer




















          • 2





            +1. P22 Hoy Pro is a truly remarkable font face! :-)

            – Mico
            Apr 7 at 14:31











          • I've taken the liberty of inserting some meta-code to pretty-print the Lua code chunk. Feel free to revert if it's not to your liking.

            – Mico
            Apr 7 at 15:15






          • 1





            @Mico Thanks. Neat trick — how do you do that?

            – Thérèse
            Apr 7 at 15:19






          • 1





            I inserted the directives <!-- language: lang-lua --> and <!-- language: lang-tex --> on lines by themselves, not indented by four spaces. (I can’t remember off-hand who taught me this trick — I certainly didn’t come up with it on my own.)

            – Mico
            Apr 7 at 16:24












          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%2f483627%2fn-b-ligature-in-latex%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          14














          To the best of my knowledge, there are no fonts out there (not even Junicode!) that provide a ready-made NB ligature.



          It's actually not too difficult to create a composite NB glyph (not to be confused with a "true" ligature) by inserting a negative kern between N and B. However, for many font families the N-B composite is quite unattractive. It's a vivid reminder, IMNSHO, of the fact that creating a good-looking ligature requires a lot more work than just "snugging up" two or more glyphs.



          The following screenshot shows possible NB candidates for 4 serif fonts and 3 sans-serif fonts. (If you wanted to use this in "real work", be sure to omit the textcolorred... wrapper in the definition of NB.)



          enter image description here



          documentclassarticle
          usepackagexcolor % for 'textcolor' macro
          newcommandNB[1][0.3]Nkern-#1emtextcolorredB % default kern amount: -0.3em
          usepackagefontspec
          begindocument

          setmainfontLatin Modern Roman
          NB --- Latin Modern Roman

          setmainfontTimes Roman
          NB[0.265] --- Times Roman

          setmainfontEB Garamond
          NB[0.275] --- EB Garamond

          setmainfontTrajan Pro
          NB[0.385] --- Trajan Pro

          setmainfontLatin Modern Sans
          NB[0.27] --- Latin Modern Sans

          setmainfontHelvetica
          NB[0.24] --- Helvetica

          setmainfontFutura
          NB[0.295] --- Futura

          enddocument





          share|improve this answer


















          • 2





            You can never find a Monk when you need one

            – David Carlisle
            Apr 7 at 9:27






          • 2





            It might be worth noting that this is the same workaround which is also used on the linked Wikipedia page: The "ligature" is $mathrmN!!mathrmB$ which should be the same as NB[0.33333] with Computer Modern Roman.

            – Marcel Krüger
            Apr 7 at 11:23











          • Thank you! The Latin Modern Roman looks pretty good!

            – David Poxon
            Apr 7 at 12:02











          • One way to improve this might be to clip the N glyph where the B begins to avoid the N poking out from the bottom like in Garamond or Futura. No idea whether that's possible though (although it's LaTeX, so arbitrary vector graphics operations on arbitrary font glyphs should be no problem, from what I've seen so far).

            – Joey
            2 days ago











          • @Joey - Feel free to post a new answer in which you implement the ideas outlined in your comment. :-)

            – Mico
            2 days ago















          14














          To the best of my knowledge, there are no fonts out there (not even Junicode!) that provide a ready-made NB ligature.



          It's actually not too difficult to create a composite NB glyph (not to be confused with a "true" ligature) by inserting a negative kern between N and B. However, for many font families the N-B composite is quite unattractive. It's a vivid reminder, IMNSHO, of the fact that creating a good-looking ligature requires a lot more work than just "snugging up" two or more glyphs.



          The following screenshot shows possible NB candidates for 4 serif fonts and 3 sans-serif fonts. (If you wanted to use this in "real work", be sure to omit the textcolorred... wrapper in the definition of NB.)



          enter image description here



          documentclassarticle
          usepackagexcolor % for 'textcolor' macro
          newcommandNB[1][0.3]Nkern-#1emtextcolorredB % default kern amount: -0.3em
          usepackagefontspec
          begindocument

          setmainfontLatin Modern Roman
          NB --- Latin Modern Roman

          setmainfontTimes Roman
          NB[0.265] --- Times Roman

          setmainfontEB Garamond
          NB[0.275] --- EB Garamond

          setmainfontTrajan Pro
          NB[0.385] --- Trajan Pro

          setmainfontLatin Modern Sans
          NB[0.27] --- Latin Modern Sans

          setmainfontHelvetica
          NB[0.24] --- Helvetica

          setmainfontFutura
          NB[0.295] --- Futura

          enddocument





          share|improve this answer


















          • 2





            You can never find a Monk when you need one

            – David Carlisle
            Apr 7 at 9:27






          • 2





            It might be worth noting that this is the same workaround which is also used on the linked Wikipedia page: The "ligature" is $mathrmN!!mathrmB$ which should be the same as NB[0.33333] with Computer Modern Roman.

            – Marcel Krüger
            Apr 7 at 11:23











          • Thank you! The Latin Modern Roman looks pretty good!

            – David Poxon
            Apr 7 at 12:02











          • One way to improve this might be to clip the N glyph where the B begins to avoid the N poking out from the bottom like in Garamond or Futura. No idea whether that's possible though (although it's LaTeX, so arbitrary vector graphics operations on arbitrary font glyphs should be no problem, from what I've seen so far).

            – Joey
            2 days ago











          • @Joey - Feel free to post a new answer in which you implement the ideas outlined in your comment. :-)

            – Mico
            2 days ago













          14












          14








          14







          To the best of my knowledge, there are no fonts out there (not even Junicode!) that provide a ready-made NB ligature.



          It's actually not too difficult to create a composite NB glyph (not to be confused with a "true" ligature) by inserting a negative kern between N and B. However, for many font families the N-B composite is quite unattractive. It's a vivid reminder, IMNSHO, of the fact that creating a good-looking ligature requires a lot more work than just "snugging up" two or more glyphs.



          The following screenshot shows possible NB candidates for 4 serif fonts and 3 sans-serif fonts. (If you wanted to use this in "real work", be sure to omit the textcolorred... wrapper in the definition of NB.)



          enter image description here



          documentclassarticle
          usepackagexcolor % for 'textcolor' macro
          newcommandNB[1][0.3]Nkern-#1emtextcolorredB % default kern amount: -0.3em
          usepackagefontspec
          begindocument

          setmainfontLatin Modern Roman
          NB --- Latin Modern Roman

          setmainfontTimes Roman
          NB[0.265] --- Times Roman

          setmainfontEB Garamond
          NB[0.275] --- EB Garamond

          setmainfontTrajan Pro
          NB[0.385] --- Trajan Pro

          setmainfontLatin Modern Sans
          NB[0.27] --- Latin Modern Sans

          setmainfontHelvetica
          NB[0.24] --- Helvetica

          setmainfontFutura
          NB[0.295] --- Futura

          enddocument





          share|improve this answer













          To the best of my knowledge, there are no fonts out there (not even Junicode!) that provide a ready-made NB ligature.



          It's actually not too difficult to create a composite NB glyph (not to be confused with a "true" ligature) by inserting a negative kern between N and B. However, for many font families the N-B composite is quite unattractive. It's a vivid reminder, IMNSHO, of the fact that creating a good-looking ligature requires a lot more work than just "snugging up" two or more glyphs.



          The following screenshot shows possible NB candidates for 4 serif fonts and 3 sans-serif fonts. (If you wanted to use this in "real work", be sure to omit the textcolorred... wrapper in the definition of NB.)



          enter image description here



          documentclassarticle
          usepackagexcolor % for 'textcolor' macro
          newcommandNB[1][0.3]Nkern-#1emtextcolorredB % default kern amount: -0.3em
          usepackagefontspec
          begindocument

          setmainfontLatin Modern Roman
          NB --- Latin Modern Roman

          setmainfontTimes Roman
          NB[0.265] --- Times Roman

          setmainfontEB Garamond
          NB[0.275] --- EB Garamond

          setmainfontTrajan Pro
          NB[0.385] --- Trajan Pro

          setmainfontLatin Modern Sans
          NB[0.27] --- Latin Modern Sans

          setmainfontHelvetica
          NB[0.24] --- Helvetica

          setmainfontFutura
          NB[0.295] --- Futura

          enddocument






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 7 at 8:46









          MicoMico

          286k32390779




          286k32390779







          • 2





            You can never find a Monk when you need one

            – David Carlisle
            Apr 7 at 9:27






          • 2





            It might be worth noting that this is the same workaround which is also used on the linked Wikipedia page: The "ligature" is $mathrmN!!mathrmB$ which should be the same as NB[0.33333] with Computer Modern Roman.

            – Marcel Krüger
            Apr 7 at 11:23











          • Thank you! The Latin Modern Roman looks pretty good!

            – David Poxon
            Apr 7 at 12:02











          • One way to improve this might be to clip the N glyph where the B begins to avoid the N poking out from the bottom like in Garamond or Futura. No idea whether that's possible though (although it's LaTeX, so arbitrary vector graphics operations on arbitrary font glyphs should be no problem, from what I've seen so far).

            – Joey
            2 days ago











          • @Joey - Feel free to post a new answer in which you implement the ideas outlined in your comment. :-)

            – Mico
            2 days ago












          • 2





            You can never find a Monk when you need one

            – David Carlisle
            Apr 7 at 9:27






          • 2





            It might be worth noting that this is the same workaround which is also used on the linked Wikipedia page: The "ligature" is $mathrmN!!mathrmB$ which should be the same as NB[0.33333] with Computer Modern Roman.

            – Marcel Krüger
            Apr 7 at 11:23











          • Thank you! The Latin Modern Roman looks pretty good!

            – David Poxon
            Apr 7 at 12:02











          • One way to improve this might be to clip the N glyph where the B begins to avoid the N poking out from the bottom like in Garamond or Futura. No idea whether that's possible though (although it's LaTeX, so arbitrary vector graphics operations on arbitrary font glyphs should be no problem, from what I've seen so far).

            – Joey
            2 days ago











          • @Joey - Feel free to post a new answer in which you implement the ideas outlined in your comment. :-)

            – Mico
            2 days ago







          2




          2





          You can never find a Monk when you need one

          – David Carlisle
          Apr 7 at 9:27





          You can never find a Monk when you need one

          – David Carlisle
          Apr 7 at 9:27




          2




          2





          It might be worth noting that this is the same workaround which is also used on the linked Wikipedia page: The "ligature" is $mathrmN!!mathrmB$ which should be the same as NB[0.33333] with Computer Modern Roman.

          – Marcel Krüger
          Apr 7 at 11:23





          It might be worth noting that this is the same workaround which is also used on the linked Wikipedia page: The "ligature" is $mathrmN!!mathrmB$ which should be the same as NB[0.33333] with Computer Modern Roman.

          – Marcel Krüger
          Apr 7 at 11:23













          Thank you! The Latin Modern Roman looks pretty good!

          – David Poxon
          Apr 7 at 12:02





          Thank you! The Latin Modern Roman looks pretty good!

          – David Poxon
          Apr 7 at 12:02













          One way to improve this might be to clip the N glyph where the B begins to avoid the N poking out from the bottom like in Garamond or Futura. No idea whether that's possible though (although it's LaTeX, so arbitrary vector graphics operations on arbitrary font glyphs should be no problem, from what I've seen so far).

          – Joey
          2 days ago





          One way to improve this might be to clip the N glyph where the B begins to avoid the N poking out from the bottom like in Garamond or Futura. No idea whether that's possible though (although it's LaTeX, so arbitrary vector graphics operations on arbitrary font glyphs should be no problem, from what I've seen so far).

          – Joey
          2 days ago













          @Joey - Feel free to post a new answer in which you implement the ideas outlined in your comment. :-)

          – Mico
          2 days ago





          @Joey - Feel free to post a new answer in which you implement the ideas outlined in your comment. :-)

          – Mico
          2 days ago











          8














          Even among commercial fonts with many unusual ligatures, this ligature is rare. The only one in my large collection is found in P22 Hoy Pro, and it hasn’t been made readily accessible through any defined feature:



          documentclassarticle
          usepackagefontspec,luacode
          setmainfontP22 Hoy Pro[
          Contextuals=Alternate,
          Ligatures=Rare]
          % https://tex.stackexchange.com/a/120762:
          beginluacode


           documentdata = documentdata or 

          local stringformat = string.format
          local texsprint = tex.sprint
          local slot_of_name = luaotfload.aux.slot_of_name

          documentdata.fontchar = function (chr)
          local chr = slot_of_name(font.current(), chr, false)
          if chr and type(chr) == "number" then
          texsprint
          (stringformat ([[char"%X]], chr))
          end
          end


          endluacode
          deffontchar#1directluadocumentdata.fontchar "#1"
          begindocument
          fontcharN_B: This is P22 Hoy Pro.
          enddocument


          output






          share|improve this answer




















          • 2





            +1. P22 Hoy Pro is a truly remarkable font face! :-)

            – Mico
            Apr 7 at 14:31











          • I've taken the liberty of inserting some meta-code to pretty-print the Lua code chunk. Feel free to revert if it's not to your liking.

            – Mico
            Apr 7 at 15:15






          • 1





            @Mico Thanks. Neat trick — how do you do that?

            – Thérèse
            Apr 7 at 15:19






          • 1





            I inserted the directives <!-- language: lang-lua --> and <!-- language: lang-tex --> on lines by themselves, not indented by four spaces. (I can’t remember off-hand who taught me this trick — I certainly didn’t come up with it on my own.)

            – Mico
            Apr 7 at 16:24
















          8














          Even among commercial fonts with many unusual ligatures, this ligature is rare. The only one in my large collection is found in P22 Hoy Pro, and it hasn’t been made readily accessible through any defined feature:



          documentclassarticle
          usepackagefontspec,luacode
          setmainfontP22 Hoy Pro[
          Contextuals=Alternate,
          Ligatures=Rare]
          % https://tex.stackexchange.com/a/120762:
          beginluacode


           documentdata = documentdata or 

          local stringformat = string.format
          local texsprint = tex.sprint
          local slot_of_name = luaotfload.aux.slot_of_name

          documentdata.fontchar = function (chr)
          local chr = slot_of_name(font.current(), chr, false)
          if chr and type(chr) == "number" then
          texsprint
          (stringformat ([[char"%X]], chr))
          end
          end


          endluacode
          deffontchar#1directluadocumentdata.fontchar "#1"
          begindocument
          fontcharN_B: This is P22 Hoy Pro.
          enddocument


          output






          share|improve this answer




















          • 2





            +1. P22 Hoy Pro is a truly remarkable font face! :-)

            – Mico
            Apr 7 at 14:31











          • I've taken the liberty of inserting some meta-code to pretty-print the Lua code chunk. Feel free to revert if it's not to your liking.

            – Mico
            Apr 7 at 15:15






          • 1





            @Mico Thanks. Neat trick — how do you do that?

            – Thérèse
            Apr 7 at 15:19






          • 1





            I inserted the directives <!-- language: lang-lua --> and <!-- language: lang-tex --> on lines by themselves, not indented by four spaces. (I can’t remember off-hand who taught me this trick — I certainly didn’t come up with it on my own.)

            – Mico
            Apr 7 at 16:24














          8












          8








          8







          Even among commercial fonts with many unusual ligatures, this ligature is rare. The only one in my large collection is found in P22 Hoy Pro, and it hasn’t been made readily accessible through any defined feature:



          documentclassarticle
          usepackagefontspec,luacode
          setmainfontP22 Hoy Pro[
          Contextuals=Alternate,
          Ligatures=Rare]
          % https://tex.stackexchange.com/a/120762:
          beginluacode


           documentdata = documentdata or 

          local stringformat = string.format
          local texsprint = tex.sprint
          local slot_of_name = luaotfload.aux.slot_of_name

          documentdata.fontchar = function (chr)
          local chr = slot_of_name(font.current(), chr, false)
          if chr and type(chr) == "number" then
          texsprint
          (stringformat ([[char"%X]], chr))
          end
          end


          endluacode
          deffontchar#1directluadocumentdata.fontchar "#1"
          begindocument
          fontcharN_B: This is P22 Hoy Pro.
          enddocument


          output






          share|improve this answer















          Even among commercial fonts with many unusual ligatures, this ligature is rare. The only one in my large collection is found in P22 Hoy Pro, and it hasn’t been made readily accessible through any defined feature:



          documentclassarticle
          usepackagefontspec,luacode
          setmainfontP22 Hoy Pro[
          Contextuals=Alternate,
          Ligatures=Rare]
          % https://tex.stackexchange.com/a/120762:
          beginluacode


           documentdata = documentdata or 

          local stringformat = string.format
          local texsprint = tex.sprint
          local slot_of_name = luaotfload.aux.slot_of_name

          documentdata.fontchar = function (chr)
          local chr = slot_of_name(font.current(), chr, false)
          if chr and type(chr) == "number" then
          texsprint
          (stringformat ([[char"%X]], chr))
          end
          end


          endluacode
          deffontchar#1directluadocumentdata.fontchar "#1"
          begindocument
          fontcharN_B: This is P22 Hoy Pro.
          enddocument


          output







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 7 at 15:14









          Mico

          286k32390779




          286k32390779










          answered Apr 7 at 13:38









          ThérèseThérèse

          9,67732343




          9,67732343







          • 2





            +1. P22 Hoy Pro is a truly remarkable font face! :-)

            – Mico
            Apr 7 at 14:31











          • I've taken the liberty of inserting some meta-code to pretty-print the Lua code chunk. Feel free to revert if it's not to your liking.

            – Mico
            Apr 7 at 15:15






          • 1





            @Mico Thanks. Neat trick — how do you do that?

            – Thérèse
            Apr 7 at 15:19






          • 1





            I inserted the directives <!-- language: lang-lua --> and <!-- language: lang-tex --> on lines by themselves, not indented by four spaces. (I can’t remember off-hand who taught me this trick — I certainly didn’t come up with it on my own.)

            – Mico
            Apr 7 at 16:24













          • 2





            +1. P22 Hoy Pro is a truly remarkable font face! :-)

            – Mico
            Apr 7 at 14:31











          • I've taken the liberty of inserting some meta-code to pretty-print the Lua code chunk. Feel free to revert if it's not to your liking.

            – Mico
            Apr 7 at 15:15






          • 1





            @Mico Thanks. Neat trick — how do you do that?

            – Thérèse
            Apr 7 at 15:19






          • 1





            I inserted the directives <!-- language: lang-lua --> and <!-- language: lang-tex --> on lines by themselves, not indented by four spaces. (I can’t remember off-hand who taught me this trick — I certainly didn’t come up with it on my own.)

            – Mico
            Apr 7 at 16:24








          2




          2





          +1. P22 Hoy Pro is a truly remarkable font face! :-)

          – Mico
          Apr 7 at 14:31





          +1. P22 Hoy Pro is a truly remarkable font face! :-)

          – Mico
          Apr 7 at 14:31













          I've taken the liberty of inserting some meta-code to pretty-print the Lua code chunk. Feel free to revert if it's not to your liking.

          – Mico
          Apr 7 at 15:15





          I've taken the liberty of inserting some meta-code to pretty-print the Lua code chunk. Feel free to revert if it's not to your liking.

          – Mico
          Apr 7 at 15:15




          1




          1





          @Mico Thanks. Neat trick — how do you do that?

          – Thérèse
          Apr 7 at 15:19





          @Mico Thanks. Neat trick — how do you do that?

          – Thérèse
          Apr 7 at 15:19




          1




          1





          I inserted the directives <!-- language: lang-lua --> and <!-- language: lang-tex --> on lines by themselves, not indented by four spaces. (I can’t remember off-hand who taught me this trick — I certainly didn’t come up with it on my own.)

          – Mico
          Apr 7 at 16:24






          I inserted the directives <!-- language: lang-lua --> and <!-- language: lang-tex --> on lines by themselves, not indented by four spaces. (I can’t remember off-hand who taught me this trick — I certainly didn’t come up with it on my own.)

          – Mico
          Apr 7 at 16:24


















          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%2f483627%2fn-b-ligature-in-latex%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

          Hidroelektrana Sadržaj Povijest | Podjela hidroelektrana | Snaga dobivena u hidroelektranama | Dijelovi hidroelektrane | Uloga hidroelektrana u suvremenom svijetu | Prednosti hidroelektrana | Nedostaci hidroelektrana | Države s najvećom proizvodnjom hidro-električne energije | Deset najvećih hidroelektrana u svijetu | Hidroelektrane u Hrvatskoj | Izvori | Poveznice | Vanjske poveznice | Navigacijski izbornikTechnical Report, Version 2Zajedničkom poslužiteljuHidroelektranaHEP Proizvodnja d.o.o. - Hidroelektrane u Hrvatskoj

          Bosc Connection Yimello Approaching Angry The produce zaps the market. 구성 기록되다 변경...

          WordPress Information needed