Math equation in non italic fontblackboard italic fontNon italic text in theorems, definitions, examplesIs there a way to set math mode font non-italic?Is there a bold italic sigma and a sans serif bold italic sigma?How to make a vector bold and italic inside an equationNon italic math mode symbols?Upright math in italic lemmaMath modes non-italic and arial fontlatin modern math italic fontNon italic text in equations

Are all passive ability checks floors for active ability checks?

How could a scammer know the apps on my phone / iTunes account?

How to explain that I do not want to visit a country due to personal safety concern?

Are Roman Catholic priests ever addressed as pastor

combinatorics floor summation

Is it insecure to send a password in a `curl` command?

Have the tides ever turned twice on any open problem?

Passing arguments from one script to another

Can I use USB data pins as power source

Is it normal that my co-workers at a fitness company criticize my food choices?

Book about superhumans hiding among normal humans

Is there a symmetric-key algorithm which we can use for creating a signature?

Simplify an interface for flexibly applying rules to periods of time

Violin - Can double stops be played when the strings are not next to each other?

Why Choose Less Effective Armour Types?

This word with a lot of past tenses

Is a party consisting of only a bard, a cleric, and a warlock functional long-term?

Why is the President allowed to veto a cancellation of emergency powers?

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Why does energy conservation give me the wrong answer in this inelastic collision problem?

Converting a variable frequency to TTL HIGH and LOW levels, based on a fixed (possible non-fixed?) frequency

Do the common programs (for example: "ls", "cat") in Linux and BSD come from the same source code?

Print a physical multiplication table

My adviser wants to be the first author



Math equation in non italic font


blackboard italic fontNon italic text in theorems, definitions, examplesIs there a way to set math mode font non-italic?Is there a bold italic sigma and a sans serif bold italic sigma?How to make a vector bold and italic inside an equationNon italic math mode symbols?Upright math in italic lemmaMath modes non-italic and arial fontlatin modern math italic fontNon italic text in equations













1















I am trying to write the following $T_E$ but it appears in italic font. I tried also $textT_E$ but LaTeX gives me error.










share|improve this question









New contributor




Gina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to TeX.SE! Can you explain what you want to do? Can you show a short compilable code you have so far?

    – Kurt
    2 hours ago







  • 1





    Do you want all math in upright font or only this specific expression?

    – samcarter
    2 hours ago















1















I am trying to write the following $T_E$ but it appears in italic font. I tried also $textT_E$ but LaTeX gives me error.










share|improve this question









New contributor




Gina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to TeX.SE! Can you explain what you want to do? Can you show a short compilable code you have so far?

    – Kurt
    2 hours ago







  • 1





    Do you want all math in upright font or only this specific expression?

    – samcarter
    2 hours ago













1












1








1








I am trying to write the following $T_E$ but it appears in italic font. I tried also $textT_E$ but LaTeX gives me error.










share|improve this question









New contributor




Gina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am trying to write the following $T_E$ but it appears in italic font. I tried also $textT_E$ but LaTeX gives me error.







math-mode italic






share|improve this question









New contributor




Gina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Gina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 hours ago









Kurt

39.4k850164




39.4k850164






New contributor




Gina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









GinaGina

61




61




New contributor




Gina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Gina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Gina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Welcome to TeX.SE! Can you explain what you want to do? Can you show a short compilable code you have so far?

    – Kurt
    2 hours ago







  • 1





    Do you want all math in upright font or only this specific expression?

    – samcarter
    2 hours ago

















  • Welcome to TeX.SE! Can you explain what you want to do? Can you show a short compilable code you have so far?

    – Kurt
    2 hours ago







  • 1





    Do you want all math in upright font or only this specific expression?

    – samcarter
    2 hours ago
















Welcome to TeX.SE! Can you explain what you want to do? Can you show a short compilable code you have so far?

– Kurt
2 hours ago






Welcome to TeX.SE! Can you explain what you want to do? Can you show a short compilable code you have so far?

– Kurt
2 hours ago





1




1





Do you want all math in upright font or only this specific expression?

– samcarter
2 hours ago





Do you want all math in upright font or only this specific expression?

– samcarter
2 hours ago










3 Answers
3






active

oldest

votes


















3














The following examples illustrates several possible solutions.



documentclassscrartcl
usepackageamsmath

newcommandtestlineText $mathrmT_mathrmE$ or $textT_textE$ or $textupT_textupE$ or Ttextsubscript E

begindocument

testline

itshapetestline

sffamilyupshapetestline

itshapetestline

rmfamilyupshapebfseries%as before but bold

testline

itshapetestline

sffamilyupshapetestline

itshapetestline

enddocument


enter image description here



Observe that some of them adopt the style and font of the text.






share|improve this answer

























  • I'd rather use mathrm

    – Bernard
    2 hours ago







  • 1





    It works!! Thanks a lot :)

    – Gina
    2 hours ago











  • @Gina: Just out of curiosity: must all your capital letters in formulæ be in uprightshape?

    – Bernard
    2 hours ago






  • 1





    @Gina You are welcome. Please consider to upvote one or both answers and accept one of the two.

    – CampanIgnis
    2 hours ago


















2














Depending of if you are actually writing math or text:



 documentclassarticle

begindocument
$mathrmT_mathrmE$ or TtextsubscriptE

enddocument


enter image description here






share|improve this answer






























    0














    With the Modern Toolchain



    With the unicode-math package (which I personally recommend, although not everyone agrees), mathrm is still supported for backwards compatibility, but so is the synonym mathup, and the closely-related symup.



    If you use symup, you can specify a different upright font from the regular text font, and from operator names like log, sin and lim. My go-to example is setting Euler’s identity in ISO style, that is, with symbolic constants set in an upright font, with the constants e, π and i in Euler and everything else in Palatino. It’s a good example of why you might want a different upright font for math variables.



    documentclass[varwidth, preview]standalone

    usepackagemathtools
    usepackage[math-style=ISO]unicode-math

    setmainfontTeX Gyre Pagella
    defaultfontfeaturesScale=MatchLowercase

    setmathfontAsana Math
    setmathfont[range=up/Latin,latin,Greek,greek,
    bfup/Latin,latin,Greek,greek,
    script-features=, sscript-features=
    ]Neo Euler

    newcommandupesymupe
    newcommandupisymupi

    begindocument
    beginalign*
    upe^upi x &= cosx + upi sinx \
    upe^upi uppi + 1 &= 0
    endalign*
    enddocument


    Neo Euler sample



    (If you want to do something like this with the default font, you can try either Latin Modern Roman Unslanted or CMU Serif Upright Italic. Here’s a sample of the latter:



    documentclass[varwidth, preview]standalone

    usepackageamsmath
    usepackage[math-style=ISO]unicode-math
    setmathfontLatin Modern Math
    setmathfont[range=up/Latin,latin,Greek,greek]CMU Serif Upright Italic

    begindocument
    beginalign*
    symupe^symupi x &= cosx + symupi sinx \
    symupe^symupi pi + 1 &= 0
    endalign*
    enddocument


    CMU Serif Upright Italic Sample



    The symup command is intended to be used this way. The mathrm and mathup commands are more for words in equations, like naming variables TIME and ENERGY. Another good alternative for whole words is to use operatorname from amsmath. This formats the text like log or sin, that is, inserts spacing like 2 log x rather than 2logx.



    There are similarly mathtt and mathsfup for monospaced and sans-serif letters.



    You could also, for example, do newcommandTIMEmathopmboxscshape time to get TIME in small caps, with the spacing of an operator.



    You can make upright math variables the default by loading the package with usepackage[math-style=upright]unicode-math.



    With the Legacy Toolchain



    The eulerpx package implements the popular combination of Euler math variables and Palatino text, along with symbols from newpxmath. If you want upright letters in PDFLaTeX, this in my opinion is the most attractive package for them.



    The cfr-lm package makes upright italics easily available; with this package, you could write DeclareRobusTCommandmathui[1]mboxuishape #1 to get upright italics. The example I gave earlier with scshape for small-caps would work as well.



    To format a variable name in the default font, operatorname from amsmath is a good option.



    For a more complicated use case, there are DeclareMathAlphabet and DeclareMathSymbol.






    share|improve this answer
























      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
      );



      );






      Gina is a new contributor. Be nice, and check out our Code of Conduct.









      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479833%2fmath-equation-in-non-italic-font%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      The following examples illustrates several possible solutions.



      documentclassscrartcl
      usepackageamsmath

      newcommandtestlineText $mathrmT_mathrmE$ or $textT_textE$ or $textupT_textupE$ or Ttextsubscript E

      begindocument

      testline

      itshapetestline

      sffamilyupshapetestline

      itshapetestline

      rmfamilyupshapebfseries%as before but bold

      testline

      itshapetestline

      sffamilyupshapetestline

      itshapetestline

      enddocument


      enter image description here



      Observe that some of them adopt the style and font of the text.






      share|improve this answer

























      • I'd rather use mathrm

        – Bernard
        2 hours ago







      • 1





        It works!! Thanks a lot :)

        – Gina
        2 hours ago











      • @Gina: Just out of curiosity: must all your capital letters in formulæ be in uprightshape?

        – Bernard
        2 hours ago






      • 1





        @Gina You are welcome. Please consider to upvote one or both answers and accept one of the two.

        – CampanIgnis
        2 hours ago















      3














      The following examples illustrates several possible solutions.



      documentclassscrartcl
      usepackageamsmath

      newcommandtestlineText $mathrmT_mathrmE$ or $textT_textE$ or $textupT_textupE$ or Ttextsubscript E

      begindocument

      testline

      itshapetestline

      sffamilyupshapetestline

      itshapetestline

      rmfamilyupshapebfseries%as before but bold

      testline

      itshapetestline

      sffamilyupshapetestline

      itshapetestline

      enddocument


      enter image description here



      Observe that some of them adopt the style and font of the text.






      share|improve this answer

























      • I'd rather use mathrm

        – Bernard
        2 hours ago







      • 1





        It works!! Thanks a lot :)

        – Gina
        2 hours ago











      • @Gina: Just out of curiosity: must all your capital letters in formulæ be in uprightshape?

        – Bernard
        2 hours ago






      • 1





        @Gina You are welcome. Please consider to upvote one or both answers and accept one of the two.

        – CampanIgnis
        2 hours ago













      3












      3








      3







      The following examples illustrates several possible solutions.



      documentclassscrartcl
      usepackageamsmath

      newcommandtestlineText $mathrmT_mathrmE$ or $textT_textE$ or $textupT_textupE$ or Ttextsubscript E

      begindocument

      testline

      itshapetestline

      sffamilyupshapetestline

      itshapetestline

      rmfamilyupshapebfseries%as before but bold

      testline

      itshapetestline

      sffamilyupshapetestline

      itshapetestline

      enddocument


      enter image description here



      Observe that some of them adopt the style and font of the text.






      share|improve this answer















      The following examples illustrates several possible solutions.



      documentclassscrartcl
      usepackageamsmath

      newcommandtestlineText $mathrmT_mathrmE$ or $textT_textE$ or $textupT_textupE$ or Ttextsubscript E

      begindocument

      testline

      itshapetestline

      sffamilyupshapetestline

      itshapetestline

      rmfamilyupshapebfseries%as before but bold

      testline

      itshapetestline

      sffamilyupshapetestline

      itshapetestline

      enddocument


      enter image description here



      Observe that some of them adopt the style and font of the text.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited 44 mins ago

























      answered 3 hours ago









      CampanIgnisCampanIgnis

      2,7542932




      2,7542932












      • I'd rather use mathrm

        – Bernard
        2 hours ago







      • 1





        It works!! Thanks a lot :)

        – Gina
        2 hours ago











      • @Gina: Just out of curiosity: must all your capital letters in formulæ be in uprightshape?

        – Bernard
        2 hours ago






      • 1





        @Gina You are welcome. Please consider to upvote one or both answers and accept one of the two.

        – CampanIgnis
        2 hours ago

















      • I'd rather use mathrm

        – Bernard
        2 hours ago







      • 1





        It works!! Thanks a lot :)

        – Gina
        2 hours ago











      • @Gina: Just out of curiosity: must all your capital letters in formulæ be in uprightshape?

        – Bernard
        2 hours ago






      • 1





        @Gina You are welcome. Please consider to upvote one or both answers and accept one of the two.

        – CampanIgnis
        2 hours ago
















      I'd rather use mathrm

      – Bernard
      2 hours ago






      I'd rather use mathrm

      – Bernard
      2 hours ago





      1




      1





      It works!! Thanks a lot :)

      – Gina
      2 hours ago





      It works!! Thanks a lot :)

      – Gina
      2 hours ago













      @Gina: Just out of curiosity: must all your capital letters in formulæ be in uprightshape?

      – Bernard
      2 hours ago





      @Gina: Just out of curiosity: must all your capital letters in formulæ be in uprightshape?

      – Bernard
      2 hours ago




      1




      1





      @Gina You are welcome. Please consider to upvote one or both answers and accept one of the two.

      – CampanIgnis
      2 hours ago





      @Gina You are welcome. Please consider to upvote one or both answers and accept one of the two.

      – CampanIgnis
      2 hours ago











      2














      Depending of if you are actually writing math or text:



       documentclassarticle

      begindocument
      $mathrmT_mathrmE$ or TtextsubscriptE

      enddocument


      enter image description here






      share|improve this answer



























        2














        Depending of if you are actually writing math or text:



         documentclassarticle

        begindocument
        $mathrmT_mathrmE$ or TtextsubscriptE

        enddocument


        enter image description here






        share|improve this answer

























          2












          2








          2







          Depending of if you are actually writing math or text:



           documentclassarticle

          begindocument
          $mathrmT_mathrmE$ or TtextsubscriptE

          enddocument


          enter image description here






          share|improve this answer













          Depending of if you are actually writing math or text:



           documentclassarticle

          begindocument
          $mathrmT_mathrmE$ or TtextsubscriptE

          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          Ulrike FischerUlrike Fischer

          195k8302689




          195k8302689





















              0














              With the Modern Toolchain



              With the unicode-math package (which I personally recommend, although not everyone agrees), mathrm is still supported for backwards compatibility, but so is the synonym mathup, and the closely-related symup.



              If you use symup, you can specify a different upright font from the regular text font, and from operator names like log, sin and lim. My go-to example is setting Euler’s identity in ISO style, that is, with symbolic constants set in an upright font, with the constants e, π and i in Euler and everything else in Palatino. It’s a good example of why you might want a different upright font for math variables.



              documentclass[varwidth, preview]standalone

              usepackagemathtools
              usepackage[math-style=ISO]unicode-math

              setmainfontTeX Gyre Pagella
              defaultfontfeaturesScale=MatchLowercase

              setmathfontAsana Math
              setmathfont[range=up/Latin,latin,Greek,greek,
              bfup/Latin,latin,Greek,greek,
              script-features=, sscript-features=
              ]Neo Euler

              newcommandupesymupe
              newcommandupisymupi

              begindocument
              beginalign*
              upe^upi x &= cosx + upi sinx \
              upe^upi uppi + 1 &= 0
              endalign*
              enddocument


              Neo Euler sample



              (If you want to do something like this with the default font, you can try either Latin Modern Roman Unslanted or CMU Serif Upright Italic. Here’s a sample of the latter:



              documentclass[varwidth, preview]standalone

              usepackageamsmath
              usepackage[math-style=ISO]unicode-math
              setmathfontLatin Modern Math
              setmathfont[range=up/Latin,latin,Greek,greek]CMU Serif Upright Italic

              begindocument
              beginalign*
              symupe^symupi x &= cosx + symupi sinx \
              symupe^symupi pi + 1 &= 0
              endalign*
              enddocument


              CMU Serif Upright Italic Sample



              The symup command is intended to be used this way. The mathrm and mathup commands are more for words in equations, like naming variables TIME and ENERGY. Another good alternative for whole words is to use operatorname from amsmath. This formats the text like log or sin, that is, inserts spacing like 2 log x rather than 2logx.



              There are similarly mathtt and mathsfup for monospaced and sans-serif letters.



              You could also, for example, do newcommandTIMEmathopmboxscshape time to get TIME in small caps, with the spacing of an operator.



              You can make upright math variables the default by loading the package with usepackage[math-style=upright]unicode-math.



              With the Legacy Toolchain



              The eulerpx package implements the popular combination of Euler math variables and Palatino text, along with symbols from newpxmath. If you want upright letters in PDFLaTeX, this in my opinion is the most attractive package for them.



              The cfr-lm package makes upright italics easily available; with this package, you could write DeclareRobusTCommandmathui[1]mboxuishape #1 to get upright italics. The example I gave earlier with scshape for small-caps would work as well.



              To format a variable name in the default font, operatorname from amsmath is a good option.



              For a more complicated use case, there are DeclareMathAlphabet and DeclareMathSymbol.






              share|improve this answer





























                0














                With the Modern Toolchain



                With the unicode-math package (which I personally recommend, although not everyone agrees), mathrm is still supported for backwards compatibility, but so is the synonym mathup, and the closely-related symup.



                If you use symup, you can specify a different upright font from the regular text font, and from operator names like log, sin and lim. My go-to example is setting Euler’s identity in ISO style, that is, with symbolic constants set in an upright font, with the constants e, π and i in Euler and everything else in Palatino. It’s a good example of why you might want a different upright font for math variables.



                documentclass[varwidth, preview]standalone

                usepackagemathtools
                usepackage[math-style=ISO]unicode-math

                setmainfontTeX Gyre Pagella
                defaultfontfeaturesScale=MatchLowercase

                setmathfontAsana Math
                setmathfont[range=up/Latin,latin,Greek,greek,
                bfup/Latin,latin,Greek,greek,
                script-features=, sscript-features=
                ]Neo Euler

                newcommandupesymupe
                newcommandupisymupi

                begindocument
                beginalign*
                upe^upi x &= cosx + upi sinx \
                upe^upi uppi + 1 &= 0
                endalign*
                enddocument


                Neo Euler sample



                (If you want to do something like this with the default font, you can try either Latin Modern Roman Unslanted or CMU Serif Upright Italic. Here’s a sample of the latter:



                documentclass[varwidth, preview]standalone

                usepackageamsmath
                usepackage[math-style=ISO]unicode-math
                setmathfontLatin Modern Math
                setmathfont[range=up/Latin,latin,Greek,greek]CMU Serif Upright Italic

                begindocument
                beginalign*
                symupe^symupi x &= cosx + symupi sinx \
                symupe^symupi pi + 1 &= 0
                endalign*
                enddocument


                CMU Serif Upright Italic Sample



                The symup command is intended to be used this way. The mathrm and mathup commands are more for words in equations, like naming variables TIME and ENERGY. Another good alternative for whole words is to use operatorname from amsmath. This formats the text like log or sin, that is, inserts spacing like 2 log x rather than 2logx.



                There are similarly mathtt and mathsfup for monospaced and sans-serif letters.



                You could also, for example, do newcommandTIMEmathopmboxscshape time to get TIME in small caps, with the spacing of an operator.



                You can make upright math variables the default by loading the package with usepackage[math-style=upright]unicode-math.



                With the Legacy Toolchain



                The eulerpx package implements the popular combination of Euler math variables and Palatino text, along with symbols from newpxmath. If you want upright letters in PDFLaTeX, this in my opinion is the most attractive package for them.



                The cfr-lm package makes upright italics easily available; with this package, you could write DeclareRobusTCommandmathui[1]mboxuishape #1 to get upright italics. The example I gave earlier with scshape for small-caps would work as well.



                To format a variable name in the default font, operatorname from amsmath is a good option.



                For a more complicated use case, there are DeclareMathAlphabet and DeclareMathSymbol.






                share|improve this answer



























                  0












                  0








                  0







                  With the Modern Toolchain



                  With the unicode-math package (which I personally recommend, although not everyone agrees), mathrm is still supported for backwards compatibility, but so is the synonym mathup, and the closely-related symup.



                  If you use symup, you can specify a different upright font from the regular text font, and from operator names like log, sin and lim. My go-to example is setting Euler’s identity in ISO style, that is, with symbolic constants set in an upright font, with the constants e, π and i in Euler and everything else in Palatino. It’s a good example of why you might want a different upright font for math variables.



                  documentclass[varwidth, preview]standalone

                  usepackagemathtools
                  usepackage[math-style=ISO]unicode-math

                  setmainfontTeX Gyre Pagella
                  defaultfontfeaturesScale=MatchLowercase

                  setmathfontAsana Math
                  setmathfont[range=up/Latin,latin,Greek,greek,
                  bfup/Latin,latin,Greek,greek,
                  script-features=, sscript-features=
                  ]Neo Euler

                  newcommandupesymupe
                  newcommandupisymupi

                  begindocument
                  beginalign*
                  upe^upi x &= cosx + upi sinx \
                  upe^upi uppi + 1 &= 0
                  endalign*
                  enddocument


                  Neo Euler sample



                  (If you want to do something like this with the default font, you can try either Latin Modern Roman Unslanted or CMU Serif Upright Italic. Here’s a sample of the latter:



                  documentclass[varwidth, preview]standalone

                  usepackageamsmath
                  usepackage[math-style=ISO]unicode-math
                  setmathfontLatin Modern Math
                  setmathfont[range=up/Latin,latin,Greek,greek]CMU Serif Upright Italic

                  begindocument
                  beginalign*
                  symupe^symupi x &= cosx + symupi sinx \
                  symupe^symupi pi + 1 &= 0
                  endalign*
                  enddocument


                  CMU Serif Upright Italic Sample



                  The symup command is intended to be used this way. The mathrm and mathup commands are more for words in equations, like naming variables TIME and ENERGY. Another good alternative for whole words is to use operatorname from amsmath. This formats the text like log or sin, that is, inserts spacing like 2 log x rather than 2logx.



                  There are similarly mathtt and mathsfup for monospaced and sans-serif letters.



                  You could also, for example, do newcommandTIMEmathopmboxscshape time to get TIME in small caps, with the spacing of an operator.



                  You can make upright math variables the default by loading the package with usepackage[math-style=upright]unicode-math.



                  With the Legacy Toolchain



                  The eulerpx package implements the popular combination of Euler math variables and Palatino text, along with symbols from newpxmath. If you want upright letters in PDFLaTeX, this in my opinion is the most attractive package for them.



                  The cfr-lm package makes upright italics easily available; with this package, you could write DeclareRobusTCommandmathui[1]mboxuishape #1 to get upright italics. The example I gave earlier with scshape for small-caps would work as well.



                  To format a variable name in the default font, operatorname from amsmath is a good option.



                  For a more complicated use case, there are DeclareMathAlphabet and DeclareMathSymbol.






                  share|improve this answer















                  With the Modern Toolchain



                  With the unicode-math package (which I personally recommend, although not everyone agrees), mathrm is still supported for backwards compatibility, but so is the synonym mathup, and the closely-related symup.



                  If you use symup, you can specify a different upright font from the regular text font, and from operator names like log, sin and lim. My go-to example is setting Euler’s identity in ISO style, that is, with symbolic constants set in an upright font, with the constants e, π and i in Euler and everything else in Palatino. It’s a good example of why you might want a different upright font for math variables.



                  documentclass[varwidth, preview]standalone

                  usepackagemathtools
                  usepackage[math-style=ISO]unicode-math

                  setmainfontTeX Gyre Pagella
                  defaultfontfeaturesScale=MatchLowercase

                  setmathfontAsana Math
                  setmathfont[range=up/Latin,latin,Greek,greek,
                  bfup/Latin,latin,Greek,greek,
                  script-features=, sscript-features=
                  ]Neo Euler

                  newcommandupesymupe
                  newcommandupisymupi

                  begindocument
                  beginalign*
                  upe^upi x &= cosx + upi sinx \
                  upe^upi uppi + 1 &= 0
                  endalign*
                  enddocument


                  Neo Euler sample



                  (If you want to do something like this with the default font, you can try either Latin Modern Roman Unslanted or CMU Serif Upright Italic. Here’s a sample of the latter:



                  documentclass[varwidth, preview]standalone

                  usepackageamsmath
                  usepackage[math-style=ISO]unicode-math
                  setmathfontLatin Modern Math
                  setmathfont[range=up/Latin,latin,Greek,greek]CMU Serif Upright Italic

                  begindocument
                  beginalign*
                  symupe^symupi x &= cosx + symupi sinx \
                  symupe^symupi pi + 1 &= 0
                  endalign*
                  enddocument


                  CMU Serif Upright Italic Sample



                  The symup command is intended to be used this way. The mathrm and mathup commands are more for words in equations, like naming variables TIME and ENERGY. Another good alternative for whole words is to use operatorname from amsmath. This formats the text like log or sin, that is, inserts spacing like 2 log x rather than 2logx.



                  There are similarly mathtt and mathsfup for monospaced and sans-serif letters.



                  You could also, for example, do newcommandTIMEmathopmboxscshape time to get TIME in small caps, with the spacing of an operator.



                  You can make upright math variables the default by loading the package with usepackage[math-style=upright]unicode-math.



                  With the Legacy Toolchain



                  The eulerpx package implements the popular combination of Euler math variables and Palatino text, along with symbols from newpxmath. If you want upright letters in PDFLaTeX, this in my opinion is the most attractive package for them.



                  The cfr-lm package makes upright italics easily available; with this package, you could write DeclareRobusTCommandmathui[1]mboxuishape #1 to get upright italics. The example I gave earlier with scshape for small-caps would work as well.



                  To format a variable name in the default font, operatorname from amsmath is a good option.



                  For a more complicated use case, there are DeclareMathAlphabet and DeclareMathSymbol.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 1 hour ago

























                  answered 1 hour ago









                  DavislorDavislor

                  6,6771429




                  6,6771429




















                      Gina is a new contributor. Be nice, and check out our Code of Conduct.









                      draft saved

                      draft discarded


















                      Gina is a new contributor. Be nice, and check out our Code of Conduct.












                      Gina is a new contributor. Be nice, and check out our Code of Conduct.











                      Gina is a new contributor. Be nice, and check out our Code of Conduct.














                      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%2f479833%2fmath-equation-in-non-italic-font%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

                      名間水力發電廠 目录 沿革 設施 鄰近設施 註釋 外部連結 导航菜单23°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.7113923°50′10″N 120°42′41″E / 23.83611°N 120.71139°E / 23.83611; 120.71139計畫概要原始内容臺灣第一座BOT 模式開發的水力發電廠-名間水力電廠名間水力發電廠 水利署首件BOT案原始内容《小檔案》名間電廠 首座BOT水力發電廠原始内容名間電廠BOT - 經濟部水利署中區水資源局

                      Prove that NP is closed under karp reduction?Space(n) not closed under Karp reductions - what about NTime(n)?Class P is closed under rotation?Prove or disprove that $NL$ is closed under polynomial many-one reductions$mathbfNC_2$ is closed under log-space reductionOn Karp reductionwhen can I know if a class (complexity) is closed under reduction (cook/karp)Check if class $PSPACE$ is closed under polyonomially space reductionIs NPSPACE also closed under polynomial-time reduction and under log-space reduction?Prove PSPACE is closed under complement?Prove PSPACE is closed under union?

                      Is my guitar’s action too high? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Strings too stiff on a recently purchased acoustic guitar | Cort AD880CEIs the action of my guitar really high?Μy little finger is too weak to play guitarWith guitar, how long should I give my fingers to strengthen / callous?When playing a fret the guitar sounds mutedPlaying (Barre) chords up the guitar neckI think my guitar strings are wound too tight and I can't play barre chordsF barre chord on an SG guitarHow to find to the right strings of a barre chord by feel?High action on higher fret on my steel acoustic guitar