Best way of using the full range of full fonts/styles/faces for Latin Modern Roman?
The following is what I've put together as a way of making sure the full(est) range of fonts/styles are available when using Latin Modern as the mainfont
using fontspec, including bold smallcaps, italics smallcaps, etc.:
setmainfont[
SmallCapsFont={Latin Modern Roman Caps},
SlantedFont={* Slanted},
ItalicFeatures = {
SmallCapsFont = {LMRomanCaps10-Oblique}
},
BoldFeatures = {
SmallCapsFont = {CMU Serif-Bold},
Letters=SmallCaps
}
]{Latin Modern Roman}
(Slightly cheating because it uses Computer Modern Unicode for the bold smallcaps.)
Is this reasonable, or is there a better way?
Full minimal example:
documentclass{article}[12pt]
usepackage[T1]{fontenc}
usepackage{fix-cm}
usepackage{fontspec}
defaultfontfeatures{Renderer=Full,Ligatures=TeX,Numbers=OldStyle,Scale=MatchLowercase}
setmainfont[
SmallCapsFont={Latin Modern Roman Caps},
SlantedFont={* Slanted},
ItalicFeatures = {
SmallCapsFont = {LMRomanCaps10-Oblique}
},
BoldFeatures = {
SmallCapsFont = {CMU Serif-Bold},
Letters=SmallCaps
}
]{Latin Modern Roman}
begin{document}
begin{tabular}{ll}
Plain roman & Hello, world.\
Bold roman & textbf{Hello, world.}\
Italics & textit{Hello, world.}\
Bold italics & textit{textbf{Hello, world.}}\
Plain smallcaps & textsc{Hello, world.}\
Bold smallcaps & textbf{textsc{Hello, world.}}\
Italics smallcaps & textit{textsc{Hello, world.}}\
Bold italic small caps & textit{textbf{textsc{Hello, world.}}} [doesn't work]\
&textbf{textit{textsc{Hello, world.}}} [doesn't work]\
Typewriter & texttt{Hello, world.}\
Italic typewriter & textit{texttt{Hello, world.}}\
Bold typewriter & textbf{texttt{Hello, world.}}\
Bold italic typewriter & textit{textbf{texttt{Hello, world.}}}\
Slanted & textsl{Hello, world.}\
Bold slanted & textbf{textsl{Hello, world.}}\
end{tabular}
end{document}
The bold, italics, smallcaps combos don't work (I don't know that I ever need that combination anyway), and I do get some warnings:
Package fontspec Warning: OpenType feature 'Letters=SmallCaps' (smcp) not
(fontspec) available for font 'Latin Modern Roman/B' with
(fontspec) script 'Latin' and language 'Default'.
(./test5.aux)
LaTeX Font Warning: Font shape `TU/lmtt/bx/it' in size <10> not available
(Font) Font shape `TU/lmtt/b/sl' tried instead on input line 38.
Is there any better way of setting up Latin Modern with fontspec?
fonts fontspec latin-modern computer-modern
add a comment |
The following is what I've put together as a way of making sure the full(est) range of fonts/styles are available when using Latin Modern as the mainfont
using fontspec, including bold smallcaps, italics smallcaps, etc.:
setmainfont[
SmallCapsFont={Latin Modern Roman Caps},
SlantedFont={* Slanted},
ItalicFeatures = {
SmallCapsFont = {LMRomanCaps10-Oblique}
},
BoldFeatures = {
SmallCapsFont = {CMU Serif-Bold},
Letters=SmallCaps
}
]{Latin Modern Roman}
(Slightly cheating because it uses Computer Modern Unicode for the bold smallcaps.)
Is this reasonable, or is there a better way?
Full minimal example:
documentclass{article}[12pt]
usepackage[T1]{fontenc}
usepackage{fix-cm}
usepackage{fontspec}
defaultfontfeatures{Renderer=Full,Ligatures=TeX,Numbers=OldStyle,Scale=MatchLowercase}
setmainfont[
SmallCapsFont={Latin Modern Roman Caps},
SlantedFont={* Slanted},
ItalicFeatures = {
SmallCapsFont = {LMRomanCaps10-Oblique}
},
BoldFeatures = {
SmallCapsFont = {CMU Serif-Bold},
Letters=SmallCaps
}
]{Latin Modern Roman}
begin{document}
begin{tabular}{ll}
Plain roman & Hello, world.\
Bold roman & textbf{Hello, world.}\
Italics & textit{Hello, world.}\
Bold italics & textit{textbf{Hello, world.}}\
Plain smallcaps & textsc{Hello, world.}\
Bold smallcaps & textbf{textsc{Hello, world.}}\
Italics smallcaps & textit{textsc{Hello, world.}}\
Bold italic small caps & textit{textbf{textsc{Hello, world.}}} [doesn't work]\
&textbf{textit{textsc{Hello, world.}}} [doesn't work]\
Typewriter & texttt{Hello, world.}\
Italic typewriter & textit{texttt{Hello, world.}}\
Bold typewriter & textbf{texttt{Hello, world.}}\
Bold italic typewriter & textit{textbf{texttt{Hello, world.}}}\
Slanted & textsl{Hello, world.}\
Bold slanted & textbf{textsl{Hello, world.}}\
end{tabular}
end{document}
The bold, italics, smallcaps combos don't work (I don't know that I ever need that combination anyway), and I do get some warnings:
Package fontspec Warning: OpenType feature 'Letters=SmallCaps' (smcp) not
(fontspec) available for font 'Latin Modern Roman/B' with
(fontspec) script 'Latin' and language 'Default'.
(./test5.aux)
LaTeX Font Warning: Font shape `TU/lmtt/bx/it' in size <10> not available
(Font) Font shape `TU/lmtt/b/sl' tried instead on input line 38.
Is there any better way of setting up Latin Modern with fontspec?
fonts fontspec latin-modern computer-modern
add a comment |
The following is what I've put together as a way of making sure the full(est) range of fonts/styles are available when using Latin Modern as the mainfont
using fontspec, including bold smallcaps, italics smallcaps, etc.:
setmainfont[
SmallCapsFont={Latin Modern Roman Caps},
SlantedFont={* Slanted},
ItalicFeatures = {
SmallCapsFont = {LMRomanCaps10-Oblique}
},
BoldFeatures = {
SmallCapsFont = {CMU Serif-Bold},
Letters=SmallCaps
}
]{Latin Modern Roman}
(Slightly cheating because it uses Computer Modern Unicode for the bold smallcaps.)
Is this reasonable, or is there a better way?
Full minimal example:
documentclass{article}[12pt]
usepackage[T1]{fontenc}
usepackage{fix-cm}
usepackage{fontspec}
defaultfontfeatures{Renderer=Full,Ligatures=TeX,Numbers=OldStyle,Scale=MatchLowercase}
setmainfont[
SmallCapsFont={Latin Modern Roman Caps},
SlantedFont={* Slanted},
ItalicFeatures = {
SmallCapsFont = {LMRomanCaps10-Oblique}
},
BoldFeatures = {
SmallCapsFont = {CMU Serif-Bold},
Letters=SmallCaps
}
]{Latin Modern Roman}
begin{document}
begin{tabular}{ll}
Plain roman & Hello, world.\
Bold roman & textbf{Hello, world.}\
Italics & textit{Hello, world.}\
Bold italics & textit{textbf{Hello, world.}}\
Plain smallcaps & textsc{Hello, world.}\
Bold smallcaps & textbf{textsc{Hello, world.}}\
Italics smallcaps & textit{textsc{Hello, world.}}\
Bold italic small caps & textit{textbf{textsc{Hello, world.}}} [doesn't work]\
&textbf{textit{textsc{Hello, world.}}} [doesn't work]\
Typewriter & texttt{Hello, world.}\
Italic typewriter & textit{texttt{Hello, world.}}\
Bold typewriter & textbf{texttt{Hello, world.}}\
Bold italic typewriter & textit{textbf{texttt{Hello, world.}}}\
Slanted & textsl{Hello, world.}\
Bold slanted & textbf{textsl{Hello, world.}}\
end{tabular}
end{document}
The bold, italics, smallcaps combos don't work (I don't know that I ever need that combination anyway), and I do get some warnings:
Package fontspec Warning: OpenType feature 'Letters=SmallCaps' (smcp) not
(fontspec) available for font 'Latin Modern Roman/B' with
(fontspec) script 'Latin' and language 'Default'.
(./test5.aux)
LaTeX Font Warning: Font shape `TU/lmtt/bx/it' in size <10> not available
(Font) Font shape `TU/lmtt/b/sl' tried instead on input line 38.
Is there any better way of setting up Latin Modern with fontspec?
fonts fontspec latin-modern computer-modern
The following is what I've put together as a way of making sure the full(est) range of fonts/styles are available when using Latin Modern as the mainfont
using fontspec, including bold smallcaps, italics smallcaps, etc.:
setmainfont[
SmallCapsFont={Latin Modern Roman Caps},
SlantedFont={* Slanted},
ItalicFeatures = {
SmallCapsFont = {LMRomanCaps10-Oblique}
},
BoldFeatures = {
SmallCapsFont = {CMU Serif-Bold},
Letters=SmallCaps
}
]{Latin Modern Roman}
(Slightly cheating because it uses Computer Modern Unicode for the bold smallcaps.)
Is this reasonable, or is there a better way?
Full minimal example:
documentclass{article}[12pt]
usepackage[T1]{fontenc}
usepackage{fix-cm}
usepackage{fontspec}
defaultfontfeatures{Renderer=Full,Ligatures=TeX,Numbers=OldStyle,Scale=MatchLowercase}
setmainfont[
SmallCapsFont={Latin Modern Roman Caps},
SlantedFont={* Slanted},
ItalicFeatures = {
SmallCapsFont = {LMRomanCaps10-Oblique}
},
BoldFeatures = {
SmallCapsFont = {CMU Serif-Bold},
Letters=SmallCaps
}
]{Latin Modern Roman}
begin{document}
begin{tabular}{ll}
Plain roman & Hello, world.\
Bold roman & textbf{Hello, world.}\
Italics & textit{Hello, world.}\
Bold italics & textit{textbf{Hello, world.}}\
Plain smallcaps & textsc{Hello, world.}\
Bold smallcaps & textbf{textsc{Hello, world.}}\
Italics smallcaps & textit{textsc{Hello, world.}}\
Bold italic small caps & textit{textbf{textsc{Hello, world.}}} [doesn't work]\
&textbf{textit{textsc{Hello, world.}}} [doesn't work]\
Typewriter & texttt{Hello, world.}\
Italic typewriter & textit{texttt{Hello, world.}}\
Bold typewriter & textbf{texttt{Hello, world.}}\
Bold italic typewriter & textit{textbf{texttt{Hello, world.}}}\
Slanted & textsl{Hello, world.}\
Bold slanted & textbf{textsl{Hello, world.}}\
end{tabular}
end{document}
The bold, italics, smallcaps combos don't work (I don't know that I ever need that combination anyway), and I do get some warnings:
Package fontspec Warning: OpenType feature 'Letters=SmallCaps' (smcp) not
(fontspec) available for font 'Latin Modern Roman/B' with
(fontspec) script 'Latin' and language 'Default'.
(./test5.aux)
LaTeX Font Warning: Font shape `TU/lmtt/bx/it' in size <10> not available
(Font) Font shape `TU/lmtt/b/sl' tried instead on input line 38.
Is there any better way of setting up Latin Modern with fontspec?
fonts fontspec latin-modern computer-modern
fonts fontspec latin-modern computer-modern
asked 3 mins ago
emacsomancer
1,0932926
1,0932926
add a comment |
add a comment |
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
});
}
});
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%2f468795%2fbest-way-of-using-the-full-range-of-full-fonts-styles-faces-for-latin-modern-rom%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
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f468795%2fbest-way-of-using-the-full-range-of-full-fonts-styles-faces-for-latin-modern-rom%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