XeLaTeX and fontspecXeLaTeX, small caps bfseriesmathbbm{1} not working well with XeLaTeX/mathspecCan I...

How can I play a serial killer in a party of good PCs?

Why didn't Tom Riddle take the presence of Fawkes and the Sorting Hat as more of a threat?

How should I handle players who ignore the session zero agreement?

Short story where statues have their heads replaced by those of carved insect heads

Hilchos Shabbos English Sefer

A Missing Symbol for This Logo

Saint abbreviation

Looking for a specific 6502 Assembler

Macro expansion inside href

Play Zip, Zap, Zop

Is there a verb that means to inject with poison?

Bash script to truncate subject line of incoming email

Why does photorec keep finding files after I have filled the disk free space as root?

Why are all my replica super soldiers young adults or old teenagers?

Why is Agricola named as such?

Why do we have to make "peinlich" start with a capital letter and also end with -s in this sentence?

How does Leonard in "Memento" remember reading and writing?

Do authors have to be politically correct in article-writing?

What is the difference between "...", '...', $'...', and $"..." quotes?

Which communication protocol is used in AdLib sound card?

Non-Cancer terminal illness that can affect young (age 10-13) girls?

Cat is tipping over bed-side lamps during the night

Is this ordinary workplace experiences for a job in Software Engineering?

Boss asked me to sign a resignation paper without a date on it along with my new contract



XeLaTeX and fontspec


XeLaTeX, small caps bfseriesmathbbm{1} not working well with XeLaTeX/mathspecCan I typeset greek letters in text mode using Latin Modern Fonts?Using both a double-story and single-story g in math modeHow does fontspec actually work with the no-math attribute?XeLaTeX, Latin Modern, mathbb and mathcalScreen Fonts -> Roman Font is Affecting math-mode's Font Suddenly!Parenthesized roman numerals in Latin ModernCan the standard math font be installed in Ubuntu to be used in inkscape?Error when merging Arial with Small Caps comptatible font within Xelatex on SharelatexHow do I use fontspec in TexPad for iOS?













0















I'm askin a very simple question. I'm using XeLaTeX on Linux, and it's working perfectly. I know that Latin Modern Roman is the default font used by usepackage{fontspec}. However I would like to know what is its name: I tried to use



setmainfont{Latin Modern Roman}


but it tells me that it couldn't find such a font. Even in ShareLaTeX I have the same problem. This can be useful if I decide to switch font and then to return to Latin Modern? Which name should I use?



thanks



EDIT



Performing fc-match -a modern | grep -i "latin modern" on the command shell I get



LatinModernMathJax_Alphabets-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Arrows-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_DoubleStruck-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Fraktur-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Latin-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Main-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Marks-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Misc-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Monospace-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_NonUnicode-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Normal-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Operators-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_SansSerif-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Script-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Shapes-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size1-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size2-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size3-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size4-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size5-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size6-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size7-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Symbols-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Variants-Regular.woff: "Latin Modern Math" "Regular"


it seems that all Latin Modern I have depend on MathJax, it's strange.










share|improve this question




















  • 1





    whether you can access a font by internal font name depends on where it is installed but for latin modern fontfamily{lmr}selectfont should always work

    – David Carlisle
    Dec 14 '16 at 15:56











  • Try setmainfont{LM Roman 10} (or 12 if your base size is 12pt).

    – Bernard
    Dec 14 '16 at 16:20











  • It doesn't work, while setmainfont{Latin Modern Roman} works with lualatex. How can I make it work also with xelatex?

    – MaPo
    Dec 14 '16 at 16:23











  • What do you get at a prompt with fc-match -a modern | grep -i "latin modern"?

    – Arash Esbati
    Dec 14 '16 at 17:06













  • @ArashEsbati I've just edited my question

    – MaPo
    Dec 14 '16 at 17:17
















0















I'm askin a very simple question. I'm using XeLaTeX on Linux, and it's working perfectly. I know that Latin Modern Roman is the default font used by usepackage{fontspec}. However I would like to know what is its name: I tried to use



setmainfont{Latin Modern Roman}


but it tells me that it couldn't find such a font. Even in ShareLaTeX I have the same problem. This can be useful if I decide to switch font and then to return to Latin Modern? Which name should I use?



thanks



EDIT



Performing fc-match -a modern | grep -i "latin modern" on the command shell I get



LatinModernMathJax_Alphabets-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Arrows-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_DoubleStruck-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Fraktur-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Latin-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Main-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Marks-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Misc-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Monospace-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_NonUnicode-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Normal-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Operators-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_SansSerif-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Script-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Shapes-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size1-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size2-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size3-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size4-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size5-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size6-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size7-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Symbols-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Variants-Regular.woff: "Latin Modern Math" "Regular"


it seems that all Latin Modern I have depend on MathJax, it's strange.










share|improve this question




















  • 1





    whether you can access a font by internal font name depends on where it is installed but for latin modern fontfamily{lmr}selectfont should always work

    – David Carlisle
    Dec 14 '16 at 15:56











  • Try setmainfont{LM Roman 10} (or 12 if your base size is 12pt).

    – Bernard
    Dec 14 '16 at 16:20











  • It doesn't work, while setmainfont{Latin Modern Roman} works with lualatex. How can I make it work also with xelatex?

    – MaPo
    Dec 14 '16 at 16:23











  • What do you get at a prompt with fc-match -a modern | grep -i "latin modern"?

    – Arash Esbati
    Dec 14 '16 at 17:06













  • @ArashEsbati I've just edited my question

    – MaPo
    Dec 14 '16 at 17:17














0












0








0


1






I'm askin a very simple question. I'm using XeLaTeX on Linux, and it's working perfectly. I know that Latin Modern Roman is the default font used by usepackage{fontspec}. However I would like to know what is its name: I tried to use



setmainfont{Latin Modern Roman}


but it tells me that it couldn't find such a font. Even in ShareLaTeX I have the same problem. This can be useful if I decide to switch font and then to return to Latin Modern? Which name should I use?



thanks



EDIT



Performing fc-match -a modern | grep -i "latin modern" on the command shell I get



LatinModernMathJax_Alphabets-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Arrows-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_DoubleStruck-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Fraktur-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Latin-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Main-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Marks-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Misc-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Monospace-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_NonUnicode-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Normal-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Operators-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_SansSerif-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Script-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Shapes-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size1-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size2-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size3-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size4-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size5-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size6-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size7-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Symbols-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Variants-Regular.woff: "Latin Modern Math" "Regular"


it seems that all Latin Modern I have depend on MathJax, it's strange.










share|improve this question
















I'm askin a very simple question. I'm using XeLaTeX on Linux, and it's working perfectly. I know that Latin Modern Roman is the default font used by usepackage{fontspec}. However I would like to know what is its name: I tried to use



setmainfont{Latin Modern Roman}


but it tells me that it couldn't find such a font. Even in ShareLaTeX I have the same problem. This can be useful if I decide to switch font and then to return to Latin Modern? Which name should I use?



thanks



EDIT



Performing fc-match -a modern | grep -i "latin modern" on the command shell I get



LatinModernMathJax_Alphabets-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Arrows-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_DoubleStruck-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Fraktur-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Latin-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Main-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Marks-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Misc-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Monospace-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_NonUnicode-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Normal-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Operators-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_SansSerif-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Script-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Shapes-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size1-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size2-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size3-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size4-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size5-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size6-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Size7-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Symbols-Regular.woff: "Latin Modern Math" "Regular"
LatinModernMathJax_Variants-Regular.woff: "Latin Modern Math" "Regular"


it seems that all Latin Modern I have depend on MathJax, it's strange.







fonts xetex latin-modern






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 14 '16 at 17:17







MaPo

















asked Dec 14 '16 at 15:14









MaPoMaPo

583213




583213








  • 1





    whether you can access a font by internal font name depends on where it is installed but for latin modern fontfamily{lmr}selectfont should always work

    – David Carlisle
    Dec 14 '16 at 15:56











  • Try setmainfont{LM Roman 10} (or 12 if your base size is 12pt).

    – Bernard
    Dec 14 '16 at 16:20











  • It doesn't work, while setmainfont{Latin Modern Roman} works with lualatex. How can I make it work also with xelatex?

    – MaPo
    Dec 14 '16 at 16:23











  • What do you get at a prompt with fc-match -a modern | grep -i "latin modern"?

    – Arash Esbati
    Dec 14 '16 at 17:06













  • @ArashEsbati I've just edited my question

    – MaPo
    Dec 14 '16 at 17:17














  • 1





    whether you can access a font by internal font name depends on where it is installed but for latin modern fontfamily{lmr}selectfont should always work

    – David Carlisle
    Dec 14 '16 at 15:56











  • Try setmainfont{LM Roman 10} (or 12 if your base size is 12pt).

    – Bernard
    Dec 14 '16 at 16:20











  • It doesn't work, while setmainfont{Latin Modern Roman} works with lualatex. How can I make it work also with xelatex?

    – MaPo
    Dec 14 '16 at 16:23











  • What do you get at a prompt with fc-match -a modern | grep -i "latin modern"?

    – Arash Esbati
    Dec 14 '16 at 17:06













  • @ArashEsbati I've just edited my question

    – MaPo
    Dec 14 '16 at 17:17








1




1





whether you can access a font by internal font name depends on where it is installed but for latin modern fontfamily{lmr}selectfont should always work

– David Carlisle
Dec 14 '16 at 15:56





whether you can access a font by internal font name depends on where it is installed but for latin modern fontfamily{lmr}selectfont should always work

– David Carlisle
Dec 14 '16 at 15:56













Try setmainfont{LM Roman 10} (or 12 if your base size is 12pt).

– Bernard
Dec 14 '16 at 16:20





Try setmainfont{LM Roman 10} (or 12 if your base size is 12pt).

– Bernard
Dec 14 '16 at 16:20













It doesn't work, while setmainfont{Latin Modern Roman} works with lualatex. How can I make it work also with xelatex?

– MaPo
Dec 14 '16 at 16:23





It doesn't work, while setmainfont{Latin Modern Roman} works with lualatex. How can I make it work also with xelatex?

– MaPo
Dec 14 '16 at 16:23













What do you get at a prompt with fc-match -a modern | grep -i "latin modern"?

– Arash Esbati
Dec 14 '16 at 17:06







What do you get at a prompt with fc-match -a modern | grep -i "latin modern"?

– Arash Esbati
Dec 14 '16 at 17:06















@ArashEsbati I've just edited my question

– MaPo
Dec 14 '16 at 17:17





@ArashEsbati I've just edited my question

– MaPo
Dec 14 '16 at 17:17










1 Answer
1






active

oldest

votes


















0














Just one has to write a file 70-prevent-MJ.conf in /etc/fonts/conf.d with the following content



<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<selectfont>
<rejectfont><glob>/usr/share/fonts/mathjax/*</glob></rejectfont>
</selectfont>
</fontconfig>


This prevent fontconfig to index MathJax font.





share























    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%2f344045%2fxelatex-and-fontspec%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









    0














    Just one has to write a file 70-prevent-MJ.conf in /etc/fonts/conf.d with the following content



    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <selectfont>
    <rejectfont><glob>/usr/share/fonts/mathjax/*</glob></rejectfont>
    </selectfont>
    </fontconfig>


    This prevent fontconfig to index MathJax font.





    share




























      0














      Just one has to write a file 70-prevent-MJ.conf in /etc/fonts/conf.d with the following content



      <?xml version="1.0"?>
      <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
      <fontconfig>
      <selectfont>
      <rejectfont><glob>/usr/share/fonts/mathjax/*</glob></rejectfont>
      </selectfont>
      </fontconfig>


      This prevent fontconfig to index MathJax font.





      share


























        0












        0








        0







        Just one has to write a file 70-prevent-MJ.conf in /etc/fonts/conf.d with the following content



        <?xml version="1.0"?>
        <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
        <fontconfig>
        <selectfont>
        <rejectfont><glob>/usr/share/fonts/mathjax/*</glob></rejectfont>
        </selectfont>
        </fontconfig>


        This prevent fontconfig to index MathJax font.





        share













        Just one has to write a file 70-prevent-MJ.conf in /etc/fonts/conf.d with the following content



        <?xml version="1.0"?>
        <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
        <fontconfig>
        <selectfont>
        <rejectfont><glob>/usr/share/fonts/mathjax/*</glob></rejectfont>
        </selectfont>
        </fontconfig>


        This prevent fontconfig to index MathJax font.






        share











        share


        share










        answered 4 mins ago









        MaPoMaPo

        583213




        583213






























            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%2f344045%2fxelatex-and-fontspec%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

            Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

            Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

            How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...