Sans-Serif Font using Metropolis Theme and Physics Package












2















using the beamer class theme metropolis, I stumbled over the physics package's dv{} command. This MWE illustrates the issue:



documentclass{beamer}
usetheme{metropolis}
usepackage{physics}
begin{document}
begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.

Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
end{frame}
end{document}


Usually, the theme takes good care of its math font and typesetting everything sans-serif. Yet, the physics package seems to use a completely different, serif font. How do I fix this?










share|improve this question





























    2















    using the beamer class theme metropolis, I stumbled over the physics package's dv{} command. This MWE illustrates the issue:



    documentclass{beamer}
    usetheme{metropolis}
    usepackage{physics}
    begin{document}
    begin{frame}
    Usual math is sans-serif: $12 + 4 = x^2$.

    Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
    end{frame}
    end{document}


    Usually, the theme takes good care of its math font and typesetting everything sans-serif. Yet, the physics package seems to use a completely different, serif font. How do I fix this?










    share|improve this question



























      2












      2








      2








      using the beamer class theme metropolis, I stumbled over the physics package's dv{} command. This MWE illustrates the issue:



      documentclass{beamer}
      usetheme{metropolis}
      usepackage{physics}
      begin{document}
      begin{frame}
      Usual math is sans-serif: $12 + 4 = x^2$.

      Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
      end{frame}
      end{document}


      Usually, the theme takes good care of its math font and typesetting everything sans-serif. Yet, the physics package seems to use a completely different, serif font. How do I fix this?










      share|improve this question
















      using the beamer class theme metropolis, I stumbled over the physics package's dv{} command. This MWE illustrates the issue:



      documentclass{beamer}
      usetheme{metropolis}
      usepackage{physics}
      begin{document}
      begin{frame}
      Usual math is sans-serif: $12 + 4 = x^2$.

      Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
      end{frame}
      end{document}


      Usually, the theme takes good care of its math font and typesetting everything sans-serif. Yet, the physics package seems to use a completely different, serif font. How do I fix this?







      beamer fonts beamer-metropolis physics






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 17 at 16:45









      samcarter

      88k797281




      88k797281










      asked Aug 28 '18 at 18:01









      Hans LolloHans Lollo

      1005




      1005






















          1 Answer
          1






          active

          oldest

          votes


















          2














          The physics packages uses mathrm in the definition of diffd, this will force serif font even if the rest of the presentation is in sans serif. You could change the definition of diffd:



          documentclass{beamer}
          usetheme{metropolis}
          usepackage{physics}


          defdiffd{textup{d}}


          begin{document}
          begin{frame}
          Usual math is sans-serif: $12 + 4 = x^2$.

          Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
          end{frame}
          end{document}


          enter image description here






          share|improve this answer


























          • According to this answer, it seems better to use this definition for diffd: defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in $I=int_a^b f(x)dd x$.

            – quark67
            Jan 18 at 4:14











          • @quark67 That's the way the physics package defines it. I'm not going to challenge that there are better ways to define it.

            – samcarter
            Jan 18 at 9:12











          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%2f448203%2fsans-serif-font-using-metropolis-theme-and-physics-package%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














          The physics packages uses mathrm in the definition of diffd, this will force serif font even if the rest of the presentation is in sans serif. You could change the definition of diffd:



          documentclass{beamer}
          usetheme{metropolis}
          usepackage{physics}


          defdiffd{textup{d}}


          begin{document}
          begin{frame}
          Usual math is sans-serif: $12 + 4 = x^2$.

          Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
          end{frame}
          end{document}


          enter image description here






          share|improve this answer


























          • According to this answer, it seems better to use this definition for diffd: defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in $I=int_a^b f(x)dd x$.

            – quark67
            Jan 18 at 4:14











          • @quark67 That's the way the physics package defines it. I'm not going to challenge that there are better ways to define it.

            – samcarter
            Jan 18 at 9:12
















          2














          The physics packages uses mathrm in the definition of diffd, this will force serif font even if the rest of the presentation is in sans serif. You could change the definition of diffd:



          documentclass{beamer}
          usetheme{metropolis}
          usepackage{physics}


          defdiffd{textup{d}}


          begin{document}
          begin{frame}
          Usual math is sans-serif: $12 + 4 = x^2$.

          Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
          end{frame}
          end{document}


          enter image description here






          share|improve this answer


























          • According to this answer, it seems better to use this definition for diffd: defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in $I=int_a^b f(x)dd x$.

            – quark67
            Jan 18 at 4:14











          • @quark67 That's the way the physics package defines it. I'm not going to challenge that there are better ways to define it.

            – samcarter
            Jan 18 at 9:12














          2












          2








          2







          The physics packages uses mathrm in the definition of diffd, this will force serif font even if the rest of the presentation is in sans serif. You could change the definition of diffd:



          documentclass{beamer}
          usetheme{metropolis}
          usepackage{physics}


          defdiffd{textup{d}}


          begin{document}
          begin{frame}
          Usual math is sans-serif: $12 + 4 = x^2$.

          Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
          end{frame}
          end{document}


          enter image description here






          share|improve this answer















          The physics packages uses mathrm in the definition of diffd, this will force serif font even if the rest of the presentation is in sans serif. You could change the definition of diffd:



          documentclass{beamer}
          usetheme{metropolis}
          usepackage{physics}


          defdiffd{textup{d}}


          begin{document}
          begin{frame}
          Usual math is sans-serif: $12 + 4 = x^2$.

          Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
          end{frame}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 28 '18 at 18:39

























          answered Aug 28 '18 at 18:33









          samcartersamcarter

          88k797281




          88k797281













          • According to this answer, it seems better to use this definition for diffd: defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in $I=int_a^b f(x)dd x$.

            – quark67
            Jan 18 at 4:14











          • @quark67 That's the way the physics package defines it. I'm not going to challenge that there are better ways to define it.

            – samcarter
            Jan 18 at 9:12



















          • According to this answer, it seems better to use this definition for diffd: defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in $I=int_a^b f(x)dd x$.

            – quark67
            Jan 18 at 4:14











          • @quark67 That's the way the physics package defines it. I'm not going to challenge that there are better ways to define it.

            – samcarter
            Jan 18 at 9:12

















          According to this answer, it seems better to use this definition for diffd: defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in $I=int_a^b f(x)dd x$.

          – quark67
          Jan 18 at 4:14





          According to this answer, it seems better to use this definition for diffd: defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in $I=int_a^b f(x)dd x$.

          – quark67
          Jan 18 at 4:14













          @quark67 That's the way the physics package defines it. I'm not going to challenge that there are better ways to define it.

          – samcarter
          Jan 18 at 9:12





          @quark67 That's the way the physics package defines it. I'm not going to challenge that there are better ways to define it.

          – samcarter
          Jan 18 at 9:12


















          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%2f448203%2fsans-serif-font-using-metropolis-theme-and-physics-package%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

          How to send String Array data to Server using php in android

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Is anime1.com a legal site for watching anime?