Redefining math symbols in `mathspec` The Next CEO of Stack OverflowBold math using mathspecXeTeX/mathspec punctuation issuemathspec selects the wrong math fontXeTeX/mathspec math environment fontmathbbm1 not working well with XeLaTeX/mathspecReplace all standard LaTeX fonts with [arbitrary fonts] for journal submissionHow does fontspec actually work with the no-math attribute?Subscript scaling with Latin Modern MathUnder mathspec, use text font punctuation symbols in math modeMathspec and Dollar Symbols in Math Mode

Is it OK to decorate a log book cover?

How can the PCs determine if an item is a phylactery?

Can you teleport closer to a creature you are Frightened of?

Is a distribution that is normal, but highly skewed, considered Gaussian?

Physiological effects of huge anime eyes

Is a bad practice make variations on power's tracks width in pcb?

Read/write a pipe-delimited file line by line with some simple text manipulation

Salesforce opportunity stages

How dangerous is XSS

How can I force the size of an int for debugging purposes?

Ising model simulation

Masking layers by a vector polygon layer in QGIS

What are the unusually-enlarged wing sections on this P-38 Lightning?

Creating a script with console commands

Is it possible to create a QR code using text?

Why does freezing point matter when picking cooler ice packs?

Fastest algorithm to decide whether a (always halting) TM accepts a general string

How to find if SQL server backup is encrypted with TDE without restoring the backup

Are British MPs missing the point, with these 'Indicative Votes'?

Is it a bad idea to plug the other end of ESD strap to wall ground?

Percent Dissociated from Titration Curve

Variance of Monte Carlo integration with importance sampling

Prodigo = pro + ago?

Is it possible to make a 9x9 table fit within the default margins?



Redefining math symbols in `mathspec`



The Next CEO of Stack OverflowBold math using mathspecXeTeX/mathspec punctuation issuemathspec selects the wrong math fontXeTeX/mathspec math environment fontmathbbm1 not working well with XeLaTeX/mathspecReplace all standard LaTeX fonts with [arbitrary fonts] for journal submissionHow does fontspec actually work with the no-math attribute?Subscript scaling with Latin Modern MathUnder mathspec, use text font punctuation symbols in math modeMathspec and Dollar Symbols in Math Mode










0















I'm using the Skolar font for a work and I'm experimenting with mathspec just to match the fonts in regular and math text.



There's a latin character called "f with hook" (unicode 0192; ALT+131 on Windows) that I want instead of the italic f in math mode. The difference between the regular f, italic f and f with hook is shown in the next image. Interestingly, there's no italic correction.



I tried this



makeatlettter
DeclareMathSymbolfmathalphaeu@LatinLowercase@symfont`ƒ
makeatother


but prints nothing. I can write symbol"0192 and get ƒ in the pdf, so, I also tried



makeatlettter
DeclareMathSymbolfmathalphaeu@LatinLowercase@symfont"0192
makeatother


but does not print anything; and



makeatlettter
DeclareMathSymbolfmathalphaeu@LatinLowercase@symfontsymbol"0192
makeatother


crashes. In this site is pointed that the command DeclareMathSymbol must be invoked like this



DeclareMathSymbol <symbol> <type> <sym-font> <slot>


and I think the problem is in the way I'm writing the <slot> with a wrong format. So, my question is how I can solve this whithout defining f as symbol"0192 cuz I will need to replace every single f (in a math environment) in my code by f.



A MWE would be like this.



documentclassarticle

usepackagemathspec

defaultfontfeaturesLigatures=TeX

setmainfontTimes New Roman

setmathfont(Digits,Latin,Greek)Times New Roman

setmathrmTimes New Roman

begindocument
ftextitfsymbol"0192 $f(x)=f(x).$
enddocument


I don't know if Times New Roman is installed on Linux distributions but you can change Times New Roman for Ubuntu or anything else.









share


























    0















    I'm using the Skolar font for a work and I'm experimenting with mathspec just to match the fonts in regular and math text.



    There's a latin character called "f with hook" (unicode 0192; ALT+131 on Windows) that I want instead of the italic f in math mode. The difference between the regular f, italic f and f with hook is shown in the next image. Interestingly, there's no italic correction.



    I tried this



    makeatlettter
    DeclareMathSymbolfmathalphaeu@LatinLowercase@symfont`ƒ
    makeatother


    but prints nothing. I can write symbol"0192 and get ƒ in the pdf, so, I also tried



    makeatlettter
    DeclareMathSymbolfmathalphaeu@LatinLowercase@symfont"0192
    makeatother


    but does not print anything; and



    makeatlettter
    DeclareMathSymbolfmathalphaeu@LatinLowercase@symfontsymbol"0192
    makeatother


    crashes. In this site is pointed that the command DeclareMathSymbol must be invoked like this



    DeclareMathSymbol <symbol> <type> <sym-font> <slot>


    and I think the problem is in the way I'm writing the <slot> with a wrong format. So, my question is how I can solve this whithout defining f as symbol"0192 cuz I will need to replace every single f (in a math environment) in my code by f.



    A MWE would be like this.



    documentclassarticle

    usepackagemathspec

    defaultfontfeaturesLigatures=TeX

    setmainfontTimes New Roman

    setmathfont(Digits,Latin,Greek)Times New Roman

    setmathrmTimes New Roman

    begindocument
    ftextitfsymbol"0192 $f(x)=f(x).$
    enddocument


    I don't know if Times New Roman is installed on Linux distributions but you can change Times New Roman for Ubuntu or anything else.









    share
























      0












      0








      0








      I'm using the Skolar font for a work and I'm experimenting with mathspec just to match the fonts in regular and math text.



      There's a latin character called "f with hook" (unicode 0192; ALT+131 on Windows) that I want instead of the italic f in math mode. The difference between the regular f, italic f and f with hook is shown in the next image. Interestingly, there's no italic correction.



      I tried this



      makeatlettter
      DeclareMathSymbolfmathalphaeu@LatinLowercase@symfont`ƒ
      makeatother


      but prints nothing. I can write symbol"0192 and get ƒ in the pdf, so, I also tried



      makeatlettter
      DeclareMathSymbolfmathalphaeu@LatinLowercase@symfont"0192
      makeatother


      but does not print anything; and



      makeatlettter
      DeclareMathSymbolfmathalphaeu@LatinLowercase@symfontsymbol"0192
      makeatother


      crashes. In this site is pointed that the command DeclareMathSymbol must be invoked like this



      DeclareMathSymbol <symbol> <type> <sym-font> <slot>


      and I think the problem is in the way I'm writing the <slot> with a wrong format. So, my question is how I can solve this whithout defining f as symbol"0192 cuz I will need to replace every single f (in a math environment) in my code by f.



      A MWE would be like this.



      documentclassarticle

      usepackagemathspec

      defaultfontfeaturesLigatures=TeX

      setmainfontTimes New Roman

      setmathfont(Digits,Latin,Greek)Times New Roman

      setmathrmTimes New Roman

      begindocument
      ftextitfsymbol"0192 $f(x)=f(x).$
      enddocument


      I don't know if Times New Roman is installed on Linux distributions but you can change Times New Roman for Ubuntu or anything else.









      share














      I'm using the Skolar font for a work and I'm experimenting with mathspec just to match the fonts in regular and math text.



      There's a latin character called "f with hook" (unicode 0192; ALT+131 on Windows) that I want instead of the italic f in math mode. The difference between the regular f, italic f and f with hook is shown in the next image. Interestingly, there's no italic correction.



      I tried this



      makeatlettter
      DeclareMathSymbolfmathalphaeu@LatinLowercase@symfont`ƒ
      makeatother


      but prints nothing. I can write symbol"0192 and get ƒ in the pdf, so, I also tried



      makeatlettter
      DeclareMathSymbolfmathalphaeu@LatinLowercase@symfont"0192
      makeatother


      but does not print anything; and



      makeatlettter
      DeclareMathSymbolfmathalphaeu@LatinLowercase@symfontsymbol"0192
      makeatother


      crashes. In this site is pointed that the command DeclareMathSymbol must be invoked like this



      DeclareMathSymbol <symbol> <type> <sym-font> <slot>


      and I think the problem is in the way I'm writing the <slot> with a wrong format. So, my question is how I can solve this whithout defining f as symbol"0192 cuz I will need to replace every single f (in a math environment) in my code by f.



      A MWE would be like this.



      documentclassarticle

      usepackagemathspec

      defaultfontfeaturesLigatures=TeX

      setmainfontTimes New Roman

      setmathfont(Digits,Latin,Greek)Times New Roman

      setmathrmTimes New Roman

      begindocument
      ftextitfsymbol"0192 $f(x)=f(x).$
      enddocument


      I don't know if Times New Roman is installed on Linux distributions but you can change Times New Roman for Ubuntu or anything else.







      xetex mathspec





      share












      share










      share



      share










      asked 5 mins ago









      Diego D. R. RiveraDiego D. R. Rivera

      175




      175




















          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%2f482655%2fredefining-math-symbols-in-mathspec%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%2f482655%2fredefining-math-symbols-in-mathspec%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 should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

          Tender dossier with centered articlesHow can I get legal style indentation on section, subsection, subsubsec.. using titlesec?missing item with addtocontents before sectionsubsubsubsection, paragraph and subparagraph count not reset when starting a new section, subsection, etcTikZ won't support HSB color model hsb in article document classAdding a vskip1em before each section - won't compile with itHow to implement a customized hierarchical table of content using titletoc with changing number formatsSection title formatGrouped entries in index don't spill over to next columnParagraph spacing in documentclassarticle with Figure and ListingsRagged Right Index Entries

          inputenc: Unicode character … not set up for use with LaTeX The Next CEO of Stack OverflowEntering Unicode characters in LaTeXHow to solve the `Package inputenc Error: Unicode char not set up for use with LaTeX` problem?solve “Unicode char is not set up for use with LaTeX” without special handling of every new interesting UTF-8 characterPackage inputenc Error: Unicode character ² (U+B2)(inputenc) not set up for use with LaTeX. acroI2C[I²C]package inputenc error unicode char (u + 190) not set up for use with latexPackage inputenc Error: Unicode char u8:′ not set up for use with LaTeX. 3′inputenc Error: Unicode char u8: not set up for use with LaTeX with G-BriefPackage Inputenc Error: Unicode char u8: not set up for use with LaTeXPackage inputenc Error: Unicode char ́ (U+301)(inputenc) not set up for use with LaTeX. includePackage inputenc Error: Unicode char ̂ (U+302)(inputenc) not set up for use with LaTeX. … $widehatleft (OA,AA' right )$Package inputenc Error: Unicode char â„¡ (U+2121)(inputenc) not set up for use with LaTeX. printbibliography[heading=bibintoc]Package inputenc Error: Unicode char − (U+2212)(inputenc) not set up for use with LaTeXPackage inputenc Error: Unicode character α (U+3B1) not set up for use with LaTeXPackage inputenc Error: Unicode characterError: ! Package inputenc Error: Unicode char ⊘ (U+2298)(inputenc) not set up for use with LaTeX