XeLaTeX and fontspec
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
|
show 5 more comments
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
1
whether you can access a font by internal font name depends on where it is installed but for latin modernfontfamily{lmr}selectfont
should always work
– David Carlisle
Dec 14 '16 at 15:56
Trysetmainfont{LM Roman 10}
(or12
if your base size is 12pt).
– Bernard
Dec 14 '16 at 16:20
It doesn't work, whilesetmainfont{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 withfc-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
|
show 5 more comments
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
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
fonts xetex latin-modern
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 modernfontfamily{lmr}selectfont
should always work
– David Carlisle
Dec 14 '16 at 15:56
Trysetmainfont{LM Roman 10}
(or12
if your base size is 12pt).
– Bernard
Dec 14 '16 at 16:20
It doesn't work, whilesetmainfont{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 withfc-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
|
show 5 more comments
1
whether you can access a font by internal font name depends on where it is installed but for latin modernfontfamily{lmr}selectfont
should always work
– David Carlisle
Dec 14 '16 at 15:56
Trysetmainfont{LM Roman 10}
(or12
if your base size is 12pt).
– Bernard
Dec 14 '16 at 16:20
It doesn't work, whilesetmainfont{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 withfc-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
|
show 5 more comments
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered 23 mins ago
MaPoMaPo
583213
583213
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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}
(or12
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