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?

Right tool to dig six foot holes?

Where to refill my bottle in India?

Are there any other methods to apply to solving simultaneous equations?

Why do UK politicians seemingly ignore opinion polls on Brexit?

What is the meaning of the verb "bear" in this context?

What do the Banks children have against barley water?

I see my dog run

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

Is three citations per paragraph excessive for undergraduate research paper?

How to save as into a customized destination on macOS?

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

Is an up-to-date browser secure on an out-of-date OS?

What does "fetching by region is not available for SAM files" means?

Am I thawing this London Broil safely?

Falsification in Math vs Science

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

How to manage monthly salary

Is a "Democratic" Feudal System Possible?

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

Resizing object distorts it (Illustrator CC 2018)

Is flight data recorder erased after every flight?

Return to UK after being refused entry years previously



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

          Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

          Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?