Looking for Fira Sans by file name using the metropolis beamer theme (e.g. for Overleaf)
up vote
0
down vote
favorite
I'm using the metropolis
beamer theme. In beamerfontthememetropolis.sty
, the fonts are loaded by font name, e.g.:
setsansfont[ItalicFont={Fira Sans Light Italic},%
BoldFont={Fira Sans},%
BoldItalicFont={Fira Sans Italic}]%
{Fira Sans Light}
however, I need to look up the fonts by file name since I don't have them installed globally. The situation arises for example when using Overleaf. The Overleaf documentation just suggests to change the setXXXfont
commands so to tell fontspec
to look up the font by file name instead of by font name, and this makes sense.
However, I'm not setting the fonts myself, but rather I'm loading the metropolis theme, which loads the fonts and sets lots of beamer options. I could of course take the font settings from the metropolis
code, paste it in my own theme and change the code, but that looks dirty.
So is there a way to tell metropolis
to load specific file names for the Fira Sans font, without copy/pasting code from the theme itself?
Another way could be to issue the setsansfont
command after the loading the theme. But in this case, is there a way to temporarily suppress the "font not found" errors?
beamer fontspec
add a comment |
up vote
0
down vote
favorite
I'm using the metropolis
beamer theme. In beamerfontthememetropolis.sty
, the fonts are loaded by font name, e.g.:
setsansfont[ItalicFont={Fira Sans Light Italic},%
BoldFont={Fira Sans},%
BoldItalicFont={Fira Sans Italic}]%
{Fira Sans Light}
however, I need to look up the fonts by file name since I don't have them installed globally. The situation arises for example when using Overleaf. The Overleaf documentation just suggests to change the setXXXfont
commands so to tell fontspec
to look up the font by file name instead of by font name, and this makes sense.
However, I'm not setting the fonts myself, but rather I'm loading the metropolis theme, which loads the fonts and sets lots of beamer options. I could of course take the font settings from the metropolis
code, paste it in my own theme and change the code, but that looks dirty.
So is there a way to tell metropolis
to load specific file names for the Fira Sans font, without copy/pasting code from the theme itself?
Another way could be to issue the setsansfont
command after the loading the theme. But in this case, is there a way to temporarily suppress the "font not found" errors?
beamer fontspec
Why do you need to load font by filename on overleaf? If metropolis is compiled with xelatex or lualatex, it uses fira font by default, even on overleaf
– samcarter
17 hours ago
So do you mean Overleaf has Fira Fonts installed and the metropolis theme finds them out of the box?
– gigabytes
17 hours ago
Yes, as long as you compile with xelatex or lualatex.
– samcarter
17 hours ago
That's good news. Is this something that changed (relatively) recently?
– gigabytes
16 hours ago
I don't know. After reading your question I tested it and it worked.
– samcarter
16 hours ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using the metropolis
beamer theme. In beamerfontthememetropolis.sty
, the fonts are loaded by font name, e.g.:
setsansfont[ItalicFont={Fira Sans Light Italic},%
BoldFont={Fira Sans},%
BoldItalicFont={Fira Sans Italic}]%
{Fira Sans Light}
however, I need to look up the fonts by file name since I don't have them installed globally. The situation arises for example when using Overleaf. The Overleaf documentation just suggests to change the setXXXfont
commands so to tell fontspec
to look up the font by file name instead of by font name, and this makes sense.
However, I'm not setting the fonts myself, but rather I'm loading the metropolis theme, which loads the fonts and sets lots of beamer options. I could of course take the font settings from the metropolis
code, paste it in my own theme and change the code, but that looks dirty.
So is there a way to tell metropolis
to load specific file names for the Fira Sans font, without copy/pasting code from the theme itself?
Another way could be to issue the setsansfont
command after the loading the theme. But in this case, is there a way to temporarily suppress the "font not found" errors?
beamer fontspec
I'm using the metropolis
beamer theme. In beamerfontthememetropolis.sty
, the fonts are loaded by font name, e.g.:
setsansfont[ItalicFont={Fira Sans Light Italic},%
BoldFont={Fira Sans},%
BoldItalicFont={Fira Sans Italic}]%
{Fira Sans Light}
however, I need to look up the fonts by file name since I don't have them installed globally. The situation arises for example when using Overleaf. The Overleaf documentation just suggests to change the setXXXfont
commands so to tell fontspec
to look up the font by file name instead of by font name, and this makes sense.
However, I'm not setting the fonts myself, but rather I'm loading the metropolis theme, which loads the fonts and sets lots of beamer options. I could of course take the font settings from the metropolis
code, paste it in my own theme and change the code, but that looks dirty.
So is there a way to tell metropolis
to load specific file names for the Fira Sans font, without copy/pasting code from the theme itself?
Another way could be to issue the setsansfont
command after the loading the theme. But in this case, is there a way to temporarily suppress the "font not found" errors?
beamer fontspec
beamer fontspec
asked 17 hours ago
gigabytes
1,3561018
1,3561018
Why do you need to load font by filename on overleaf? If metropolis is compiled with xelatex or lualatex, it uses fira font by default, even on overleaf
– samcarter
17 hours ago
So do you mean Overleaf has Fira Fonts installed and the metropolis theme finds them out of the box?
– gigabytes
17 hours ago
Yes, as long as you compile with xelatex or lualatex.
– samcarter
17 hours ago
That's good news. Is this something that changed (relatively) recently?
– gigabytes
16 hours ago
I don't know. After reading your question I tested it and it worked.
– samcarter
16 hours ago
add a comment |
Why do you need to load font by filename on overleaf? If metropolis is compiled with xelatex or lualatex, it uses fira font by default, even on overleaf
– samcarter
17 hours ago
So do you mean Overleaf has Fira Fonts installed and the metropolis theme finds them out of the box?
– gigabytes
17 hours ago
Yes, as long as you compile with xelatex or lualatex.
– samcarter
17 hours ago
That's good news. Is this something that changed (relatively) recently?
– gigabytes
16 hours ago
I don't know. After reading your question I tested it and it worked.
– samcarter
16 hours ago
Why do you need to load font by filename on overleaf? If metropolis is compiled with xelatex or lualatex, it uses fira font by default, even on overleaf
– samcarter
17 hours ago
Why do you need to load font by filename on overleaf? If metropolis is compiled with xelatex or lualatex, it uses fira font by default, even on overleaf
– samcarter
17 hours ago
So do you mean Overleaf has Fira Fonts installed and the metropolis theme finds them out of the box?
– gigabytes
17 hours ago
So do you mean Overleaf has Fira Fonts installed and the metropolis theme finds them out of the box?
– gigabytes
17 hours ago
Yes, as long as you compile with xelatex or lualatex.
– samcarter
17 hours ago
Yes, as long as you compile with xelatex or lualatex.
– samcarter
17 hours ago
That's good news. Is this something that changed (relatively) recently?
– gigabytes
16 hours ago
That's good news. Is this something that changed (relatively) recently?
– gigabytes
16 hours ago
I don't know. After reading your question I tested it and it worked.
– samcarter
16 hours ago
I don't know. After reading your question I tested it and it worked.
– samcarter
16 hours ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
The answer is simple: just do nothing.
As long as the document is compiled with xelatex or lualatex it will use fira fonts per default which also works on overleaf.
The following image shows how to select the engine on overleaf:
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
The answer is simple: just do nothing.
As long as the document is compiled with xelatex or lualatex it will use fira fonts per default which also works on overleaf.
The following image shows how to select the engine on overleaf:
add a comment |
up vote
2
down vote
accepted
The answer is simple: just do nothing.
As long as the document is compiled with xelatex or lualatex it will use fira fonts per default which also works on overleaf.
The following image shows how to select the engine on overleaf:
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
The answer is simple: just do nothing.
As long as the document is compiled with xelatex or lualatex it will use fira fonts per default which also works on overleaf.
The following image shows how to select the engine on overleaf:
The answer is simple: just do nothing.
As long as the document is compiled with xelatex or lualatex it will use fira fonts per default which also works on overleaf.
The following image shows how to select the engine on overleaf:
answered 16 hours ago
samcarter
80.9k789257
80.9k789257
add a comment |
add a comment |
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
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459617%2flooking-for-fira-sans-by-file-name-using-the-metropolis-beamer-theme-e-g-for-o%23new-answer', 'question_page');
}
);
Post as a guest
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
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
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
Why do you need to load font by filename on overleaf? If metropolis is compiled with xelatex or lualatex, it uses fira font by default, even on overleaf
– samcarter
17 hours ago
So do you mean Overleaf has Fira Fonts installed and the metropolis theme finds them out of the box?
– gigabytes
17 hours ago
Yes, as long as you compile with xelatex or lualatex.
– samcarter
17 hours ago
That's good news. Is this something that changed (relatively) recently?
– gigabytes
16 hours ago
I don't know. After reading your question I tested it and it worked.
– samcarter
16 hours ago