Change font chemfig on LaTeXLatex with chemfig to Word documentHow do I selectively change bond length in...

1960's book about a plague that kills all white people

Neighboring nodes in the network

Western buddy movie with a supernatural twist where a woman turns into an eagle at the end

Doing something right before you need it - expression for this?

Arrow those variables!

How can I tell someone that I want to be his or her friend?

Assassin's bullet with mercury

Emailing HOD to enhance faculty application

Theorems that impeded progress

Why are electrically insulating heatsinks so rare? Is it just cost?

Can I use a neutral wire from another outlet to repair a broken neutral?

Is it legal for company to use my work email to pretend I still work there?

Is Lorentz symmetry broken if SUSY is broken?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

Has there ever been an airliner design involving reducing generator load by installing solar panels?

Etiquette around loan refinance - decision is going to cost first broker a lot of money

Twin primes whose sum is a cube

Combinations of multiple lists

What does it mean to describe someone as a butt steak?

Is the Joker left-handed?

Is there a hemisphere-neutral way of specifying a season?

Anagram holiday

Took a trip to a parallel universe, need help deciphering

Can I ask the recruiters in my resume to put the reason why I am rejected?



Change font chemfig on LaTeX


Latex with chemfig to Word documentHow do I selectively change bond length in chemfig?chemfig: reaction above arrowfont size in chemfigUsing sans-serif font for chemfigWhy does this chemfig bond with a hook start in the middle of the atom?Shift Doublebond in chemfigHow to change distance within a reversible edge and increase the font size in chemfig?chemfig: NAD+ chemical structurechemfig: molecule vibration













1















Is it possible to change the font that chemfig uses (for example to Helvetica) without using XeLaTeX or LuaTeX, but keep the normal math font throughout the document?



I tried usepackage[helvet]{sfmath} and redefining printatom as renewcommand*printatom[1]{ensuremath{mathsf{#1}}} but of course all the math text in the document switches to the Helvetica font (as expected):



documentclass{article}
usepackage{chemfig}
usepackage[helvet]{sfmath}

renewcommand*printatom[1]{ensuremath{mathsf{#1}}}

begin{document}
Text text text
chemfig{-CO_2H}
More text, and the following equation should use the normal math font $E = mc^2$
end{document}









share|improve this question





























    1















    Is it possible to change the font that chemfig uses (for example to Helvetica) without using XeLaTeX or LuaTeX, but keep the normal math font throughout the document?



    I tried usepackage[helvet]{sfmath} and redefining printatom as renewcommand*printatom[1]{ensuremath{mathsf{#1}}} but of course all the math text in the document switches to the Helvetica font (as expected):



    documentclass{article}
    usepackage{chemfig}
    usepackage[helvet]{sfmath}

    renewcommand*printatom[1]{ensuremath{mathsf{#1}}}

    begin{document}
    Text text text
    chemfig{-CO_2H}
    More text, and the following equation should use the normal math font $E = mc^2$
    end{document}









    share|improve this question



























      1












      1








      1








      Is it possible to change the font that chemfig uses (for example to Helvetica) without using XeLaTeX or LuaTeX, but keep the normal math font throughout the document?



      I tried usepackage[helvet]{sfmath} and redefining printatom as renewcommand*printatom[1]{ensuremath{mathsf{#1}}} but of course all the math text in the document switches to the Helvetica font (as expected):



      documentclass{article}
      usepackage{chemfig}
      usepackage[helvet]{sfmath}

      renewcommand*printatom[1]{ensuremath{mathsf{#1}}}

      begin{document}
      Text text text
      chemfig{-CO_2H}
      More text, and the following equation should use the normal math font $E = mc^2$
      end{document}









      share|improve this question
















      Is it possible to change the font that chemfig uses (for example to Helvetica) without using XeLaTeX or LuaTeX, but keep the normal math font throughout the document?



      I tried usepackage[helvet]{sfmath} and redefining printatom as renewcommand*printatom[1]{ensuremath{mathsf{#1}}} but of course all the math text in the document switches to the Helvetica font (as expected):



      documentclass{article}
      usepackage{chemfig}
      usepackage[helvet]{sfmath}

      renewcommand*printatom[1]{ensuremath{mathsf{#1}}}

      begin{document}
      Text text text
      chemfig{-CO_2H}
      More text, and the following equation should use the normal math font $E = mc^2$
      end{document}






      chemfig






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 31 mins ago







      ralk912

















      asked 49 mins ago









      ralk912ralk912

      21519




      21519






















          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%2f483274%2fchange-font-chemfig-on-latex%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%2f483274%2fchange-font-chemfig-on-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

          Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

          How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

          Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...