Sans-Serif Font using Metropolis Theme and Physics Package
using the beamer class theme metropolis, I stumbled over the physics package's dv{} command. This MWE illustrates the issue:
documentclass{beamer}
usetheme{metropolis}
usepackage{physics}
begin{document}
begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.
Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
end{frame}
end{document}
Usually, the theme takes good care of its math font and typesetting everything sans-serif. Yet, the physics package seems to use a completely different, serif font. How do I fix this?
beamer fonts beamer-metropolis physics
add a comment |
using the beamer class theme metropolis, I stumbled over the physics package's dv{} command. This MWE illustrates the issue:
documentclass{beamer}
usetheme{metropolis}
usepackage{physics}
begin{document}
begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.
Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
end{frame}
end{document}
Usually, the theme takes good care of its math font and typesetting everything sans-serif. Yet, the physics package seems to use a completely different, serif font. How do I fix this?
beamer fonts beamer-metropolis physics
add a comment |
using the beamer class theme metropolis, I stumbled over the physics package's dv{} command. This MWE illustrates the issue:
documentclass{beamer}
usetheme{metropolis}
usepackage{physics}
begin{document}
begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.
Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
end{frame}
end{document}
Usually, the theme takes good care of its math font and typesetting everything sans-serif. Yet, the physics package seems to use a completely different, serif font. How do I fix this?
beamer fonts beamer-metropolis physics
using the beamer class theme metropolis, I stumbled over the physics package's dv{} command. This MWE illustrates the issue:
documentclass{beamer}
usetheme{metropolis}
usepackage{physics}
begin{document}
begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.
Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
end{frame}
end{document}
Usually, the theme takes good care of its math font and typesetting everything sans-serif. Yet, the physics package seems to use a completely different, serif font. How do I fix this?
beamer fonts beamer-metropolis physics
beamer fonts beamer-metropolis physics
edited Jan 17 at 16:45
samcarter
88k797281
88k797281
asked Aug 28 '18 at 18:01
Hans LolloHans Lollo
1005
1005
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The physics packages uses mathrm in the definition of diffd, this will force serif font even if the rest of the presentation is in sans serif. You could change the definition of diffd:
documentclass{beamer}
usetheme{metropolis}
usepackage{physics}
defdiffd{textup{d}}
begin{document}
begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.
Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
end{frame}
end{document}

According to this answer, it seems better to use this definition fordiffd:defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in$I=int_a^b f(x)dd x$.
– quark67
Jan 18 at 4:14
@quark67 That's the way thephysicspackage defines it. I'm not going to challenge that there are better ways to define it.
– samcarter
Jan 18 at 9:12
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%2f448203%2fsans-serif-font-using-metropolis-theme-and-physics-package%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
The physics packages uses mathrm in the definition of diffd, this will force serif font even if the rest of the presentation is in sans serif. You could change the definition of diffd:
documentclass{beamer}
usetheme{metropolis}
usepackage{physics}
defdiffd{textup{d}}
begin{document}
begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.
Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
end{frame}
end{document}

According to this answer, it seems better to use this definition fordiffd:defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in$I=int_a^b f(x)dd x$.
– quark67
Jan 18 at 4:14
@quark67 That's the way thephysicspackage defines it. I'm not going to challenge that there are better ways to define it.
– samcarter
Jan 18 at 9:12
add a comment |
The physics packages uses mathrm in the definition of diffd, this will force serif font even if the rest of the presentation is in sans serif. You could change the definition of diffd:
documentclass{beamer}
usetheme{metropolis}
usepackage{physics}
defdiffd{textup{d}}
begin{document}
begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.
Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
end{frame}
end{document}

According to this answer, it seems better to use this definition fordiffd:defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in$I=int_a^b f(x)dd x$.
– quark67
Jan 18 at 4:14
@quark67 That's the way thephysicspackage defines it. I'm not going to challenge that there are better ways to define it.
– samcarter
Jan 18 at 9:12
add a comment |
The physics packages uses mathrm in the definition of diffd, this will force serif font even if the rest of the presentation is in sans serif. You could change the definition of diffd:
documentclass{beamer}
usetheme{metropolis}
usepackage{physics}
defdiffd{textup{d}}
begin{document}
begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.
Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
end{frame}
end{document}

The physics packages uses mathrm in the definition of diffd, this will force serif font even if the rest of the presentation is in sans serif. You could change the definition of diffd:
documentclass{beamer}
usetheme{metropolis}
usepackage{physics}
defdiffd{textup{d}}
begin{document}
begin{frame}
Usual math is sans-serif: $12 + 4 = x^2$.
Physics package not necessarily: $dv{x}{y} neq pdv{i}{k}$.
end{frame}
end{document}

edited Aug 28 '18 at 18:39
answered Aug 28 '18 at 18:33
samcartersamcarter
88k797281
88k797281
According to this answer, it seems better to use this definition fordiffd:defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in$I=int_a^b f(x)dd x$.
– quark67
Jan 18 at 4:14
@quark67 That's the way thephysicspackage defines it. I'm not going to challenge that there are better ways to define it.
– samcarter
Jan 18 at 9:12
add a comment |
According to this answer, it seems better to use this definition fordiffd:defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in$I=int_a^b f(x)dd x$.
– quark67
Jan 18 at 4:14
@quark67 That's the way thephysicspackage defines it. I'm not going to challenge that there are better ways to define it.
– samcarter
Jan 18 at 9:12
According to this answer, it seems better to use this definition for
diffd: defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in $I=int_a^b f(x)dd x$.– quark67
Jan 18 at 4:14
According to this answer, it seems better to use this definition for
diffd: defdiffd{mathop{}!mathsf{d}}. Compare space before dx with your definition and with mine, in $I=int_a^b f(x)dd x$.– quark67
Jan 18 at 4:14
@quark67 That's the way the
physics package defines it. I'm not going to challenge that there are better ways to define it.– samcarter
Jan 18 at 9:12
@quark67 That's the way the
physics package defines it. I'm not going to challenge that there are better ways to define it.– samcarter
Jan 18 at 9:12
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%2f448203%2fsans-serif-font-using-metropolis-theme-and-physics-package%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