losing ligatures when switching font series or color in the middle of a wordHow to use fontspec with opentype...

How can animals be objects of ethics without being subjects as well?

How much mayhem could I cause as a sentient fish?

Early credit roll before the end of the film

Why avoid shared user accounts?

How to deal with an incendiary email that was recalled

What incentives do banks have to gather up loans into pools (backed by Ginnie Mae)and selling them?

I will be going to Sweden on business purpose .Can I visit London from Sweden and how much UK visa will cost?

Do authors have to be politically correct in article-writing?

Does theoretical physics suggest that gravity is the exchange of gravitons or deformation/bending of spacetime?

How can my powered armor quickly replace its ceramic plates?

What is the wife of a henpecked husband called?

What would the chemical name be for C13H8Cl3NO

A title for a history book

Does a phylactery of a lich have to be a box?

Why is working on the same position for more than 15 years not a red flag?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

How would an AI self awareness kill switch work?

What are "industrial chops"?

Difference between i++ and (i)++ in C

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

Can a long polymer chain interact with itself via van der Waals forces?

How to limit sight distance to 1 KM

Writing a character who is going through a civilizing process without overdoing it?

Why exactly do action photographers need high fps burst cameras?



losing ligatures when switching font series or color in the middle of a word


How to use fontspec with opentype fonts when ligatures are a separate fontHow to force use of a normal 's' and how to suppress ligatures when using Gothic font?Problem with r- ligatures in XeTeX (with the font Sanskrit 2003)













0















For pedagogical purposes, I would like to highlight some characters in a word, through bold or red color or whatever will work.



Because I use handwriting fonts (German Schulschriften wedn and French Cursive frcursive), I am bound to ligatures working well. Unfortunately, ligatures are blocked if you switch series or color in the middle of a word.



I would be happy with a XeLaTeX or LuaLaTeX solution. If needed, also with a PDFLaTeX solution. And as said, any kind of highlighting would be fine.



Here the MWE:



documentclass[varwidth]{standalone}
usepackage[ngerman,frenchb]{babel}
usepackage{fontspec}
setmainfont{Linux Libertine O}
setmonofont[Scale=.75]{Linux Libertine Mono O}
setsansfont[Scale=MatchLowercase]{Linux Biolinum O}
usepackage{wedn}
newcommand{schschrift}{selectlanguage{ngerman} wednupshape}
usepackage{frcursive}
usepackage{xcolor}

begin{document}
newcommand{fex}[3]{#1textbf{#2}#3}
% renewcommand{fex}[3]{#1{bfseries #2}#3}

{
schschrift
fex{W}{ö}{rter} -- Wörter
}
{
cursive
fex{incr}{oy}{able} -- incroyable
}

renewcommand{fex}[3]{#1textcolor{red}{#2}#3}

{
schschrift
fex{W}{ö}{rter} -- Wörter
}
{
cursive
fex{incr}{oy}{able} -- incroyable
}

renewcommand{fex}[3]{#1#2#3}

{
schschrift
fex{W}{ö}{rter} -- Wörter
}
{
cursive
fex{incr}{oy}{able} -- incroyable
}
end{document}


You can see that, in the first 2 lines, W and ö don't bind well, as well as the r and o + y and a, when put in bold or in red. Compare to the non-highlighted versions.
ligatures blocked










share|improve this question





























    0















    For pedagogical purposes, I would like to highlight some characters in a word, through bold or red color or whatever will work.



    Because I use handwriting fonts (German Schulschriften wedn and French Cursive frcursive), I am bound to ligatures working well. Unfortunately, ligatures are blocked if you switch series or color in the middle of a word.



    I would be happy with a XeLaTeX or LuaLaTeX solution. If needed, also with a PDFLaTeX solution. And as said, any kind of highlighting would be fine.



    Here the MWE:



    documentclass[varwidth]{standalone}
    usepackage[ngerman,frenchb]{babel}
    usepackage{fontspec}
    setmainfont{Linux Libertine O}
    setmonofont[Scale=.75]{Linux Libertine Mono O}
    setsansfont[Scale=MatchLowercase]{Linux Biolinum O}
    usepackage{wedn}
    newcommand{schschrift}{selectlanguage{ngerman} wednupshape}
    usepackage{frcursive}
    usepackage{xcolor}

    begin{document}
    newcommand{fex}[3]{#1textbf{#2}#3}
    % renewcommand{fex}[3]{#1{bfseries #2}#3}

    {
    schschrift
    fex{W}{ö}{rter} -- Wörter
    }
    {
    cursive
    fex{incr}{oy}{able} -- incroyable
    }

    renewcommand{fex}[3]{#1textcolor{red}{#2}#3}

    {
    schschrift
    fex{W}{ö}{rter} -- Wörter
    }
    {
    cursive
    fex{incr}{oy}{able} -- incroyable
    }

    renewcommand{fex}[3]{#1#2#3}

    {
    schschrift
    fex{W}{ö}{rter} -- Wörter
    }
    {
    cursive
    fex{incr}{oy}{able} -- incroyable
    }
    end{document}


    You can see that, in the first 2 lines, W and ö don't bind well, as well as the r and o + y and a, when put in bold or in red. Compare to the non-highlighted versions.
    ligatures blocked










    share|improve this question



























      0












      0








      0








      For pedagogical purposes, I would like to highlight some characters in a word, through bold or red color or whatever will work.



      Because I use handwriting fonts (German Schulschriften wedn and French Cursive frcursive), I am bound to ligatures working well. Unfortunately, ligatures are blocked if you switch series or color in the middle of a word.



      I would be happy with a XeLaTeX or LuaLaTeX solution. If needed, also with a PDFLaTeX solution. And as said, any kind of highlighting would be fine.



      Here the MWE:



      documentclass[varwidth]{standalone}
      usepackage[ngerman,frenchb]{babel}
      usepackage{fontspec}
      setmainfont{Linux Libertine O}
      setmonofont[Scale=.75]{Linux Libertine Mono O}
      setsansfont[Scale=MatchLowercase]{Linux Biolinum O}
      usepackage{wedn}
      newcommand{schschrift}{selectlanguage{ngerman} wednupshape}
      usepackage{frcursive}
      usepackage{xcolor}

      begin{document}
      newcommand{fex}[3]{#1textbf{#2}#3}
      % renewcommand{fex}[3]{#1{bfseries #2}#3}

      {
      schschrift
      fex{W}{ö}{rter} -- Wörter
      }
      {
      cursive
      fex{incr}{oy}{able} -- incroyable
      }

      renewcommand{fex}[3]{#1textcolor{red}{#2}#3}

      {
      schschrift
      fex{W}{ö}{rter} -- Wörter
      }
      {
      cursive
      fex{incr}{oy}{able} -- incroyable
      }

      renewcommand{fex}[3]{#1#2#3}

      {
      schschrift
      fex{W}{ö}{rter} -- Wörter
      }
      {
      cursive
      fex{incr}{oy}{able} -- incroyable
      }
      end{document}


      You can see that, in the first 2 lines, W and ö don't bind well, as well as the r and o + y and a, when put in bold or in red. Compare to the non-highlighted versions.
      ligatures blocked










      share|improve this question
















      For pedagogical purposes, I would like to highlight some characters in a word, through bold or red color or whatever will work.



      Because I use handwriting fonts (German Schulschriften wedn and French Cursive frcursive), I am bound to ligatures working well. Unfortunately, ligatures are blocked if you switch series or color in the middle of a word.



      I would be happy with a XeLaTeX or LuaLaTeX solution. If needed, also with a PDFLaTeX solution. And as said, any kind of highlighting would be fine.



      Here the MWE:



      documentclass[varwidth]{standalone}
      usepackage[ngerman,frenchb]{babel}
      usepackage{fontspec}
      setmainfont{Linux Libertine O}
      setmonofont[Scale=.75]{Linux Libertine Mono O}
      setsansfont[Scale=MatchLowercase]{Linux Biolinum O}
      usepackage{wedn}
      newcommand{schschrift}{selectlanguage{ngerman} wednupshape}
      usepackage{frcursive}
      usepackage{xcolor}

      begin{document}
      newcommand{fex}[3]{#1textbf{#2}#3}
      % renewcommand{fex}[3]{#1{bfseries #2}#3}

      {
      schschrift
      fex{W}{ö}{rter} -- Wörter
      }
      {
      cursive
      fex{incr}{oy}{able} -- incroyable
      }

      renewcommand{fex}[3]{#1textcolor{red}{#2}#3}

      {
      schschrift
      fex{W}{ö}{rter} -- Wörter
      }
      {
      cursive
      fex{incr}{oy}{able} -- incroyable
      }

      renewcommand{fex}[3]{#1#2#3}

      {
      schschrift
      fex{W}{ö}{rter} -- Wörter
      }
      {
      cursive
      fex{incr}{oy}{able} -- incroyable
      }
      end{document}


      You can see that, in the first 2 lines, W and ö don't bind well, as well as the r and o + y and a, when put in bold or in red. Compare to the non-highlighted versions.
      ligatures blocked







      highlighting ligatures






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 6 mins ago







      benjamin

















      asked 11 mins ago









      benjaminbenjamin

      868




      868






















          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%2f477143%2flosing-ligatures-when-switching-font-series-or-color-in-the-middle-of-a-word%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%2f477143%2flosing-ligatures-when-switching-font-series-or-color-in-the-middle-of-a-word%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

          Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

          Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

          How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...