Use sans serif math operators with Roboto












1















Thanks to @HenriMenke, I know how to use Roboto font in math for letters (including Greek) and digits. Now, I'd like to use a sans serif font for math operators as well (say int or sum). AFAIK, Roboto does not provide such glyphs.



How can I do (I mostly use lualatex but I can use xelatex if necessary)?










share|improve this question





























    1















    Thanks to @HenriMenke, I know how to use Roboto font in math for letters (including Greek) and digits. Now, I'd like to use a sans serif font for math operators as well (say int or sum). AFAIK, Roboto does not provide such glyphs.



    How can I do (I mostly use lualatex but I can use xelatex if necessary)?










    share|improve this question



























      1












      1








      1








      Thanks to @HenriMenke, I know how to use Roboto font in math for letters (including Greek) and digits. Now, I'd like to use a sans serif font for math operators as well (say int or sum). AFAIK, Roboto does not provide such glyphs.



      How can I do (I mostly use lualatex but I can use xelatex if necessary)?










      share|improve this question
















      Thanks to @HenriMenke, I know how to use Roboto font in math for letters (including Greek) and digits. Now, I'd like to use a sans serif font for math operators as well (say int or sum). AFAIK, Roboto does not provide such glyphs.



      How can I do (I mostly use lualatex but I can use xelatex if necessary)?







      fonts mathspec kpfonts math-fonts






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 8 at 11:40







      cjorssen

















      asked Mar 29 '18 at 14:48









      cjorssencjorssen

      5,990225104




      5,990225104






















          1 Answer
          1






          active

          oldest

          votes


















          2





          +50









          You could use e.g. Fira Math:



          documentclass[12pt]{article}
          usepackage[sfdefault]{roboto}
          usepackage{amsmath}
          usepackage{unicode-math}
          setmathfont{Fira Math}
          setmathfont[range=up]{Roboto}
          setmathfont[range=it]{Roboto-Italic}
          setmathfont[range=int]{Fira Math}

          begin{document}
          Hello world! 12345 $12345$

          textit{abcdef} $abcdef$

          $gamma = G$
          [int sum a^2 + b^2 = c^2 ]
          end{document}


          enter image description here






          share|improve this answer
























          • Great (+1), thanks. That's clearly a very good alternative I did not think of at that time. But what's the problem with kpfonts? Is it too complex with non otf fonts?

            – cjorssen
            Feb 6 at 20:17











          • Why should I spent a lot of time trying to figure out how to at best mix legacy math fonts (kpfonts) with opentype font (roboto) when there exist sans-serif math fonts now?

            – Ulrike Fischer
            Feb 6 at 21:20











          • Sorry. No offense intented. So I guess the answer is: yes it is complex to mix legacy fonts and otf. It does not worth it. Thanks again.

            – cjorssen
            Feb 7 at 10:21











          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%2f423877%2fuse-sans-serif-math-operators-with-roboto%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2





          +50









          You could use e.g. Fira Math:



          documentclass[12pt]{article}
          usepackage[sfdefault]{roboto}
          usepackage{amsmath}
          usepackage{unicode-math}
          setmathfont{Fira Math}
          setmathfont[range=up]{Roboto}
          setmathfont[range=it]{Roboto-Italic}
          setmathfont[range=int]{Fira Math}

          begin{document}
          Hello world! 12345 $12345$

          textit{abcdef} $abcdef$

          $gamma = G$
          [int sum a^2 + b^2 = c^2 ]
          end{document}


          enter image description here






          share|improve this answer
























          • Great (+1), thanks. That's clearly a very good alternative I did not think of at that time. But what's the problem with kpfonts? Is it too complex with non otf fonts?

            – cjorssen
            Feb 6 at 20:17











          • Why should I spent a lot of time trying to figure out how to at best mix legacy math fonts (kpfonts) with opentype font (roboto) when there exist sans-serif math fonts now?

            – Ulrike Fischer
            Feb 6 at 21:20











          • Sorry. No offense intented. So I guess the answer is: yes it is complex to mix legacy fonts and otf. It does not worth it. Thanks again.

            – cjorssen
            Feb 7 at 10:21
















          2





          +50









          You could use e.g. Fira Math:



          documentclass[12pt]{article}
          usepackage[sfdefault]{roboto}
          usepackage{amsmath}
          usepackage{unicode-math}
          setmathfont{Fira Math}
          setmathfont[range=up]{Roboto}
          setmathfont[range=it]{Roboto-Italic}
          setmathfont[range=int]{Fira Math}

          begin{document}
          Hello world! 12345 $12345$

          textit{abcdef} $abcdef$

          $gamma = G$
          [int sum a^2 + b^2 = c^2 ]
          end{document}


          enter image description here






          share|improve this answer
























          • Great (+1), thanks. That's clearly a very good alternative I did not think of at that time. But what's the problem with kpfonts? Is it too complex with non otf fonts?

            – cjorssen
            Feb 6 at 20:17











          • Why should I spent a lot of time trying to figure out how to at best mix legacy math fonts (kpfonts) with opentype font (roboto) when there exist sans-serif math fonts now?

            – Ulrike Fischer
            Feb 6 at 21:20











          • Sorry. No offense intented. So I guess the answer is: yes it is complex to mix legacy fonts and otf. It does not worth it. Thanks again.

            – cjorssen
            Feb 7 at 10:21














          2





          +50







          2





          +50



          2




          +50





          You could use e.g. Fira Math:



          documentclass[12pt]{article}
          usepackage[sfdefault]{roboto}
          usepackage{amsmath}
          usepackage{unicode-math}
          setmathfont{Fira Math}
          setmathfont[range=up]{Roboto}
          setmathfont[range=it]{Roboto-Italic}
          setmathfont[range=int]{Fira Math}

          begin{document}
          Hello world! 12345 $12345$

          textit{abcdef} $abcdef$

          $gamma = G$
          [int sum a^2 + b^2 = c^2 ]
          end{document}


          enter image description here






          share|improve this answer













          You could use e.g. Fira Math:



          documentclass[12pt]{article}
          usepackage[sfdefault]{roboto}
          usepackage{amsmath}
          usepackage{unicode-math}
          setmathfont{Fira Math}
          setmathfont[range=up]{Roboto}
          setmathfont[range=it]{Roboto-Italic}
          setmathfont[range=int]{Fira Math}

          begin{document}
          Hello world! 12345 $12345$

          textit{abcdef} $abcdef$

          $gamma = G$
          [int sum a^2 + b^2 = c^2 ]
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 6 at 17:28









          Ulrike FischerUlrike Fischer

          192k8301682




          192k8301682













          • Great (+1), thanks. That's clearly a very good alternative I did not think of at that time. But what's the problem with kpfonts? Is it too complex with non otf fonts?

            – cjorssen
            Feb 6 at 20:17











          • Why should I spent a lot of time trying to figure out how to at best mix legacy math fonts (kpfonts) with opentype font (roboto) when there exist sans-serif math fonts now?

            – Ulrike Fischer
            Feb 6 at 21:20











          • Sorry. No offense intented. So I guess the answer is: yes it is complex to mix legacy fonts and otf. It does not worth it. Thanks again.

            – cjorssen
            Feb 7 at 10:21



















          • Great (+1), thanks. That's clearly a very good alternative I did not think of at that time. But what's the problem with kpfonts? Is it too complex with non otf fonts?

            – cjorssen
            Feb 6 at 20:17











          • Why should I spent a lot of time trying to figure out how to at best mix legacy math fonts (kpfonts) with opentype font (roboto) when there exist sans-serif math fonts now?

            – Ulrike Fischer
            Feb 6 at 21:20











          • Sorry. No offense intented. So I guess the answer is: yes it is complex to mix legacy fonts and otf. It does not worth it. Thanks again.

            – cjorssen
            Feb 7 at 10:21

















          Great (+1), thanks. That's clearly a very good alternative I did not think of at that time. But what's the problem with kpfonts? Is it too complex with non otf fonts?

          – cjorssen
          Feb 6 at 20:17





          Great (+1), thanks. That's clearly a very good alternative I did not think of at that time. But what's the problem with kpfonts? Is it too complex with non otf fonts?

          – cjorssen
          Feb 6 at 20:17













          Why should I spent a lot of time trying to figure out how to at best mix legacy math fonts (kpfonts) with opentype font (roboto) when there exist sans-serif math fonts now?

          – Ulrike Fischer
          Feb 6 at 21:20





          Why should I spent a lot of time trying to figure out how to at best mix legacy math fonts (kpfonts) with opentype font (roboto) when there exist sans-serif math fonts now?

          – Ulrike Fischer
          Feb 6 at 21:20













          Sorry. No offense intented. So I guess the answer is: yes it is complex to mix legacy fonts and otf. It does not worth it. Thanks again.

          – cjorssen
          Feb 7 at 10:21





          Sorry. No offense intented. So I guess the answer is: yes it is complex to mix legacy fonts and otf. It does not worth it. Thanks again.

          – cjorssen
          Feb 7 at 10:21


















          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%2f423877%2fuse-sans-serif-math-operators-with-roboto%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

          mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?