Why does additional encoding T2A make text fonts lighter weight?Conflict between color, graphicx and libertineTeXLive/PDFTeX fonts loading problemWhy does usepackage[T2A]fontenc take over?What fonts are compatible with T2A (Cyrillic) encoding?Using a handwriting font from myscriptfont.comHow to make math text lighterNaming files for Adobe Times-Roman small capsWhat about cyrdash in EU1 and EU2 encodings?Is there a replacement/solution for `erewhon`?Who changed my Chinese character?
How to sort human readable size
How to make all magic-casting innate, but still rare?
Background for black and white chart
SQL Server has encountered occurences of I/O requests taking longer than 15 seconds
How do I gain the trust of other PCs?
High-end PC graphics circa 1990?
My student in one course asks for paid tutoring in another course. Appropriate?
How to address players struggling with simple controls?
What is this plant I saw for sale at a Romanian farmer's market?
Numerical second order differentiation
Print the phrase "And she said, 'But that's his.'" using only the alphabet
How to ask if I can mow my neighbor's lawn
Why should the equality of mixed partials be "intuitively obvious"?
How to search for Android apps without ads?
Will users know a CardView is clickable?
Using roof rails to set up hammock
How to prevent cables getting intertwined
Co-worker is now managing my team. Does this mean that I'm being demoted?
First occurrence in the Sixers sequence
How useful is the GRE Exam?
How would Japanese people react to someone refusing to say “itadakimasu” for religious reasons?
How can I maintain game balance while allowing my player to craft genuinely useful items?
Is my research statement supposed to lead to papers in top journals?
What does a/.b[c][[1]] mean?
Why does additional encoding T2A make text fonts lighter weight?
Conflict between color, graphicx and libertineTeXLive/PDFTeX fonts loading problemWhy does usepackage[T2A]fontenc take over?What fonts are compatible with T2A (Cyrillic) encoding?Using a handwriting font from myscriptfont.comHow to make math text lighterNaming files for Adobe Times-Roman small capsWhat about cyrdash in EU1 and EU2 encodings?Is there a replacement/solution for `erewhon`?Who changed my Chinese character?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I need to use the T2A
encoding along with babel
to include some Russian names in an English-language document. However, including
usepackage[T1,T2A]fontenc
in the preamble makes all the text fonts, including English, lighter in weight, as in the following:
documentclass[12pt]article
usepackagelipsum
usepackagetimes
usepackage[T1,T2A]fontenc
%usepackage[T1]fontenc
begindocument
Large
lipsum[1]
enddocument
Compare the preceding output with that from when I use T1
encoding alone:
documentclass[12pt]article
usepackagelipsum
usepackagetimes
%usepackage[T1,T2A]fontenc
usepackage[T1]fontenc
begindocument
Large
lipsum[1]
enddocument
This heavier-weight is what I see when I don't use fontenc
at all.
Questions:
- Why does the
T2A
encoding cause this? - What is the remedy — so that the weight will be the same as normally, when
fontenc
is not used at all?
Composite solution:
The following was suggested by @Davislor's answer (https://tex.stackexchange.com/a/494900/13492) along with the discussion of Tempora-TLF
in https://tex.stackexcange.com/questions/473057/russian-language-bold-font-problem-with-newtxtext.
documentclass[12pt]article
usepackagelipsum
usepackage[T2A,T1]fontenc
usepackage[russian,main=english]babel
usepackagesubstitutefont
substitutefontT2ArmdefaultTempora-TLF
usepackage[lucidasmallscale]lucidabr
begindocument
Large
noindent The names are Russian Алекс'андров, Russian Т'ихонов, and Russian Урыс'oн.
lipsum[1]
enddocument
Notice that I'm using now Lucida Bright fonts (the ones my actual, book-length document employs), and even for that the font weight of the Russian names matches that of the surrounding English text — even though the Tempora-TLF fonts were intended for use with others.
fonts font-encodings
|
show 1 more comment
I need to use the T2A
encoding along with babel
to include some Russian names in an English-language document. However, including
usepackage[T1,T2A]fontenc
in the preamble makes all the text fonts, including English, lighter in weight, as in the following:
documentclass[12pt]article
usepackagelipsum
usepackagetimes
usepackage[T1,T2A]fontenc
%usepackage[T1]fontenc
begindocument
Large
lipsum[1]
enddocument
Compare the preceding output with that from when I use T1
encoding alone:
documentclass[12pt]article
usepackagelipsum
usepackagetimes
%usepackage[T1,T2A]fontenc
usepackage[T1]fontenc
begindocument
Large
lipsum[1]
enddocument
This heavier-weight is what I see when I don't use fontenc
at all.
Questions:
- Why does the
T2A
encoding cause this? - What is the remedy — so that the weight will be the same as normally, when
fontenc
is not used at all?
Composite solution:
The following was suggested by @Davislor's answer (https://tex.stackexchange.com/a/494900/13492) along with the discussion of Tempora-TLF
in https://tex.stackexcange.com/questions/473057/russian-language-bold-font-problem-with-newtxtext.
documentclass[12pt]article
usepackagelipsum
usepackage[T2A,T1]fontenc
usepackage[russian,main=english]babel
usepackagesubstitutefont
substitutefontT2ArmdefaultTempora-TLF
usepackage[lucidasmallscale]lucidabr
begindocument
Large
noindent The names are Russian Алекс'андров, Russian Т'ихонов, and Russian Урыс'oн.
lipsum[1]
enddocument
Notice that I'm using now Lucida Bright fonts (the ones my actual, book-length document employs), and even for that the font weight of the Russian names matches that of the surrounding English text — even though the Tempora-TLF fonts were intended for use with others.
fonts font-encodings
2
I can't answer why the T2A encoding causes this effect, but it's a fact that the "lighter" font is Computer Modern, not Times. As far as I know, nobody has ever created a TeX-compatible Cyrillic font using T2 encoding.*except* for the one compatible with CM. Also, I believe that thetimes
package has been superseded, but others can address that more authoritatively.
– barbara beeton
Jun 9 at 1:27
@barbarabeeton: In my actual document, I'll be using Lucida Bright fonts (usepackagelucidabr
), and exactly the same issue occurs with them.
– murray
Jun 9 at 2:41
@murray Unfortunately, Lucida Bright doesn’t support Cyrillic.
– Davislor
Jun 9 at 4:16
@barbarabeeton There are a few other T2A fonts (ctan.org/topic/font-cyrillic), including: Tempora (Times), Heuristica (Utopia), DejaVu, Gentium and Libertine. There’s also thesubstitutefont
package, which could be used to select Tempora as the replacement for Times, or Heuristica for Lucida Bright.
– Davislor
Jun 9 at 8:56
@barbarabeeton Unless you mean that all those fonts were created in some other encoding, and then someone made a T2A version in FontForge later.
– Davislor
Jun 9 at 9:08
|
show 1 more comment
I need to use the T2A
encoding along with babel
to include some Russian names in an English-language document. However, including
usepackage[T1,T2A]fontenc
in the preamble makes all the text fonts, including English, lighter in weight, as in the following:
documentclass[12pt]article
usepackagelipsum
usepackagetimes
usepackage[T1,T2A]fontenc
%usepackage[T1]fontenc
begindocument
Large
lipsum[1]
enddocument
Compare the preceding output with that from when I use T1
encoding alone:
documentclass[12pt]article
usepackagelipsum
usepackagetimes
%usepackage[T1,T2A]fontenc
usepackage[T1]fontenc
begindocument
Large
lipsum[1]
enddocument
This heavier-weight is what I see when I don't use fontenc
at all.
Questions:
- Why does the
T2A
encoding cause this? - What is the remedy — so that the weight will be the same as normally, when
fontenc
is not used at all?
Composite solution:
The following was suggested by @Davislor's answer (https://tex.stackexchange.com/a/494900/13492) along with the discussion of Tempora-TLF
in https://tex.stackexcange.com/questions/473057/russian-language-bold-font-problem-with-newtxtext.
documentclass[12pt]article
usepackagelipsum
usepackage[T2A,T1]fontenc
usepackage[russian,main=english]babel
usepackagesubstitutefont
substitutefontT2ArmdefaultTempora-TLF
usepackage[lucidasmallscale]lucidabr
begindocument
Large
noindent The names are Russian Алекс'андров, Russian Т'ихонов, and Russian Урыс'oн.
lipsum[1]
enddocument
Notice that I'm using now Lucida Bright fonts (the ones my actual, book-length document employs), and even for that the font weight of the Russian names matches that of the surrounding English text — even though the Tempora-TLF fonts were intended for use with others.
fonts font-encodings
I need to use the T2A
encoding along with babel
to include some Russian names in an English-language document. However, including
usepackage[T1,T2A]fontenc
in the preamble makes all the text fonts, including English, lighter in weight, as in the following:
documentclass[12pt]article
usepackagelipsum
usepackagetimes
usepackage[T1,T2A]fontenc
%usepackage[T1]fontenc
begindocument
Large
lipsum[1]
enddocument
Compare the preceding output with that from when I use T1
encoding alone:
documentclass[12pt]article
usepackagelipsum
usepackagetimes
%usepackage[T1,T2A]fontenc
usepackage[T1]fontenc
begindocument
Large
lipsum[1]
enddocument
This heavier-weight is what I see when I don't use fontenc
at all.
Questions:
- Why does the
T2A
encoding cause this? - What is the remedy — so that the weight will be the same as normally, when
fontenc
is not used at all?
Composite solution:
The following was suggested by @Davislor's answer (https://tex.stackexchange.com/a/494900/13492) along with the discussion of Tempora-TLF
in https://tex.stackexcange.com/questions/473057/russian-language-bold-font-problem-with-newtxtext.
documentclass[12pt]article
usepackagelipsum
usepackage[T2A,T1]fontenc
usepackage[russian,main=english]babel
usepackagesubstitutefont
substitutefontT2ArmdefaultTempora-TLF
usepackage[lucidasmallscale]lucidabr
begindocument
Large
noindent The names are Russian Алекс'андров, Russian Т'ихонов, and Russian Урыс'oн.
lipsum[1]
enddocument
Notice that I'm using now Lucida Bright fonts (the ones my actual, book-length document employs), and even for that the font weight of the Russian names matches that of the surrounding English text — even though the Tempora-TLF fonts were intended for use with others.
fonts font-encodings
fonts font-encodings
edited Jun 9 at 15:04
murray
asked Jun 9 at 1:18
murraymurray
2,2381135
2,2381135
2
I can't answer why the T2A encoding causes this effect, but it's a fact that the "lighter" font is Computer Modern, not Times. As far as I know, nobody has ever created a TeX-compatible Cyrillic font using T2 encoding.*except* for the one compatible with CM. Also, I believe that thetimes
package has been superseded, but others can address that more authoritatively.
– barbara beeton
Jun 9 at 1:27
@barbarabeeton: In my actual document, I'll be using Lucida Bright fonts (usepackagelucidabr
), and exactly the same issue occurs with them.
– murray
Jun 9 at 2:41
@murray Unfortunately, Lucida Bright doesn’t support Cyrillic.
– Davislor
Jun 9 at 4:16
@barbarabeeton There are a few other T2A fonts (ctan.org/topic/font-cyrillic), including: Tempora (Times), Heuristica (Utopia), DejaVu, Gentium and Libertine. There’s also thesubstitutefont
package, which could be used to select Tempora as the replacement for Times, or Heuristica for Lucida Bright.
– Davislor
Jun 9 at 8:56
@barbarabeeton Unless you mean that all those fonts were created in some other encoding, and then someone made a T2A version in FontForge later.
– Davislor
Jun 9 at 9:08
|
show 1 more comment
2
I can't answer why the T2A encoding causes this effect, but it's a fact that the "lighter" font is Computer Modern, not Times. As far as I know, nobody has ever created a TeX-compatible Cyrillic font using T2 encoding.*except* for the one compatible with CM. Also, I believe that thetimes
package has been superseded, but others can address that more authoritatively.
– barbara beeton
Jun 9 at 1:27
@barbarabeeton: In my actual document, I'll be using Lucida Bright fonts (usepackagelucidabr
), and exactly the same issue occurs with them.
– murray
Jun 9 at 2:41
@murray Unfortunately, Lucida Bright doesn’t support Cyrillic.
– Davislor
Jun 9 at 4:16
@barbarabeeton There are a few other T2A fonts (ctan.org/topic/font-cyrillic), including: Tempora (Times), Heuristica (Utopia), DejaVu, Gentium and Libertine. There’s also thesubstitutefont
package, which could be used to select Tempora as the replacement for Times, or Heuristica for Lucida Bright.
– Davislor
Jun 9 at 8:56
@barbarabeeton Unless you mean that all those fonts were created in some other encoding, and then someone made a T2A version in FontForge later.
– Davislor
Jun 9 at 9:08
2
2
I can't answer why the T2A encoding causes this effect, but it's a fact that the "lighter" font is Computer Modern, not Times. As far as I know, nobody has ever created a TeX-compatible Cyrillic font using T2 encoding.*except* for the one compatible with CM. Also, I believe that the
times
package has been superseded, but others can address that more authoritatively.– barbara beeton
Jun 9 at 1:27
I can't answer why the T2A encoding causes this effect, but it's a fact that the "lighter" font is Computer Modern, not Times. As far as I know, nobody has ever created a TeX-compatible Cyrillic font using T2 encoding.*except* for the one compatible with CM. Also, I believe that the
times
package has been superseded, but others can address that more authoritatively.– barbara beeton
Jun 9 at 1:27
@barbarabeeton: In my actual document, I'll be using Lucida Bright fonts (
usepackagelucidabr
), and exactly the same issue occurs with them.– murray
Jun 9 at 2:41
@barbarabeeton: In my actual document, I'll be using Lucida Bright fonts (
usepackagelucidabr
), and exactly the same issue occurs with them.– murray
Jun 9 at 2:41
@murray Unfortunately, Lucida Bright doesn’t support Cyrillic.
– Davislor
Jun 9 at 4:16
@murray Unfortunately, Lucida Bright doesn’t support Cyrillic.
– Davislor
Jun 9 at 4:16
@barbarabeeton There are a few other T2A fonts (ctan.org/topic/font-cyrillic), including: Tempora (Times), Heuristica (Utopia), DejaVu, Gentium and Libertine. There’s also the
substitutefont
package, which could be used to select Tempora as the replacement for Times, or Heuristica for Lucida Bright.– Davislor
Jun 9 at 8:56
@barbarabeeton There are a few other T2A fonts (ctan.org/topic/font-cyrillic), including: Tempora (Times), Heuristica (Utopia), DejaVu, Gentium and Libertine. There’s also the
substitutefont
package, which could be used to select Tempora as the replacement for Times, or Heuristica for Lucida Bright.– Davislor
Jun 9 at 8:56
@barbarabeeton Unless you mean that all those fonts were created in some other encoding, and then someone made a T2A version in FontForge later.
– Davislor
Jun 9 at 9:08
@barbarabeeton Unless you mean that all those fonts were created in some other encoding, and then someone made a T2A version in FontForge later.
– Davislor
Jun 9 at 9:08
|
show 1 more comment
1 Answer
1
active
oldest
votes
In the Modern Toolchain
To answer your second question first, here is what I recommend. If possible, replace fontenc
with fontspec
and use a modern TrueType or OpenType font.
documentclass[12pt]article
usepackagebabel
usepackagefontspec
usepackage[paperwidth=11cm]geometry % To fit into the allowed width.
babelprovide[main, import=en]english
babelprovide[import=ru]russian
setmainfontTimes New Roman
begindocument
Large
Fyodor Dostoevsky (foreignlanguagerussianФёдор Достоевский) and
Alexander Pushkin (foreignlanguagerussianАлександр Пушкин).
enddocument
As you can see, that sample uses Times rather than Computer Modern and loads Russian hyphenation patterns. babelprovide[import]
converts the font encoding for you. Either choose a font that supports Cyrillic, or use babelfont
to change fonts.
Depending on how useful the hyphenation patterns are to you, you might even be able to drop the babel
package, and just type in Cyrillic letters. Another method of loading a different font for a different script, which doesn’t require markup in the document body, is ucharclasses
, but this doesn’t hyphenate. Also consider usepackagemicrotype
in LuaLaTeX to dramatically cut down on the amount of hyphenation your document needs.
In the Legacy Toolchain
If you cannot change to LuaLaTeX or XeLaTeX, you will need to actually fix problem 1. That’s simple. The last encoding you give to fontenc
becomes the default encoding. The Times font (ptm*
) does not come in T2A, so LaTeX falls back to Computer Modern. PDFLaTeX gives me the following error message on your first MWE:
LaTeX Font Warning: Font shape `T2A/ptm/m/n' undefined
(Font) using `T2A/cmr/m/n' instead on input line 8.
In this case, you want to use only a few Russian names. So, you want to load English as the main language, Russian as a second language, and use babel
to switch between the encodings of these two languages. One legacy font based on Times that covers Cyrillic is Tempora.
documentclass[12pt]article
usepackage[X2, T1]fontenc
usepackagetextcomp
usepackagetempora
usepackage[russian, main=english]babel
usepackage[paperwidth=11cm]geometry % To fit into the allowed width.
begindocument
Large
Fyodor Dostoevsky (foreignlanguagerussianФёдор Достоевский) and
Alexander Pushkin (foreignlanguagerussianАлександр Пушкин).
enddocument
In order to use a font family with an encoding that it does not support, you would need to switch fonts whenever you switch languages. You can do this with the substitutefont
package (or by declaring a new textrussian
command that changes both the language and the fontfamily
). E.g.:
usepackagetempora
usepackagetimes
usepackagesubstitutefont
substitutefontT2AfamilydefaultTempora-TLF
There are not many fonts that support T2A, and nearly all are extensions of an existing font: including Computer Modern Unicode, Tempora (Times), Heuristica (Utopia), DejaVu, Libertine and Gentium.
Using the option orderT2A, T1
tofontenc
solves the problem of the main, English, font being made too light — even withlucidabr
. Alas, because Lucida bright fonts are heavier than many others, still the bit of Cyrillic will have a noticeably lighter weight.
– murray
Jun 9 at 14:33
I do want to continue to use the "legacy" toolchain, with Type 1 fonts. Your solution for that, to usetempora
, led me to tex.stackexcange.com/questions/473057/… and to usingsubstitutefontT2ArmdefaultTempora-TLF
. For the very occasional mention of Russian names in Cyrillic characters, this gives, to my eye, satisfactory results even with Lucida Bright as the main text font. (For the sake of completeness, I'm going to amend my question to show this)
– murray
Jun 9 at 14:36
@murray I don’t have Lucida Bright on my system to check, but you might also try out Heuristica or DejaVu Serif as the substitute font.
– Davislor
Jun 9 at 20:52
My preference for math-heavy documents has been for for Lucida Bright, among other reasons for the single family for text, including typewriter and sans-serif, and math. (If I want a lighter, tighter look, then generally I use Times together with MathTime Pro 2.) It looks like using Heuristica involves combining Utopia, the Heuristica extensions, Cabin, and newtxmath. But I will get around to trying it, and thanks for the suggestion. Definitely I do not like a sans-serif body font such as DejaVue. (So many fonts, so little time!)
– murray
Jun 9 at 21:46
@murray There’s a DejaVu Serif, and you can use the Heuristica family as asubstitutefont
withoutnewtxtext
.
– Davislor
Jun 9 at 22:43
|
show 1 more 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%2f494886%2fwhy-does-additional-encoding-t2a-make-text-fonts-lighter-weight%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
In the Modern Toolchain
To answer your second question first, here is what I recommend. If possible, replace fontenc
with fontspec
and use a modern TrueType or OpenType font.
documentclass[12pt]article
usepackagebabel
usepackagefontspec
usepackage[paperwidth=11cm]geometry % To fit into the allowed width.
babelprovide[main, import=en]english
babelprovide[import=ru]russian
setmainfontTimes New Roman
begindocument
Large
Fyodor Dostoevsky (foreignlanguagerussianФёдор Достоевский) and
Alexander Pushkin (foreignlanguagerussianАлександр Пушкин).
enddocument
As you can see, that sample uses Times rather than Computer Modern and loads Russian hyphenation patterns. babelprovide[import]
converts the font encoding for you. Either choose a font that supports Cyrillic, or use babelfont
to change fonts.
Depending on how useful the hyphenation patterns are to you, you might even be able to drop the babel
package, and just type in Cyrillic letters. Another method of loading a different font for a different script, which doesn’t require markup in the document body, is ucharclasses
, but this doesn’t hyphenate. Also consider usepackagemicrotype
in LuaLaTeX to dramatically cut down on the amount of hyphenation your document needs.
In the Legacy Toolchain
If you cannot change to LuaLaTeX or XeLaTeX, you will need to actually fix problem 1. That’s simple. The last encoding you give to fontenc
becomes the default encoding. The Times font (ptm*
) does not come in T2A, so LaTeX falls back to Computer Modern. PDFLaTeX gives me the following error message on your first MWE:
LaTeX Font Warning: Font shape `T2A/ptm/m/n' undefined
(Font) using `T2A/cmr/m/n' instead on input line 8.
In this case, you want to use only a few Russian names. So, you want to load English as the main language, Russian as a second language, and use babel
to switch between the encodings of these two languages. One legacy font based on Times that covers Cyrillic is Tempora.
documentclass[12pt]article
usepackage[X2, T1]fontenc
usepackagetextcomp
usepackagetempora
usepackage[russian, main=english]babel
usepackage[paperwidth=11cm]geometry % To fit into the allowed width.
begindocument
Large
Fyodor Dostoevsky (foreignlanguagerussianФёдор Достоевский) and
Alexander Pushkin (foreignlanguagerussianАлександр Пушкин).
enddocument
In order to use a font family with an encoding that it does not support, you would need to switch fonts whenever you switch languages. You can do this with the substitutefont
package (or by declaring a new textrussian
command that changes both the language and the fontfamily
). E.g.:
usepackagetempora
usepackagetimes
usepackagesubstitutefont
substitutefontT2AfamilydefaultTempora-TLF
There are not many fonts that support T2A, and nearly all are extensions of an existing font: including Computer Modern Unicode, Tempora (Times), Heuristica (Utopia), DejaVu, Libertine and Gentium.
Using the option orderT2A, T1
tofontenc
solves the problem of the main, English, font being made too light — even withlucidabr
. Alas, because Lucida bright fonts are heavier than many others, still the bit of Cyrillic will have a noticeably lighter weight.
– murray
Jun 9 at 14:33
I do want to continue to use the "legacy" toolchain, with Type 1 fonts. Your solution for that, to usetempora
, led me to tex.stackexcange.com/questions/473057/… and to usingsubstitutefontT2ArmdefaultTempora-TLF
. For the very occasional mention of Russian names in Cyrillic characters, this gives, to my eye, satisfactory results even with Lucida Bright as the main text font. (For the sake of completeness, I'm going to amend my question to show this)
– murray
Jun 9 at 14:36
@murray I don’t have Lucida Bright on my system to check, but you might also try out Heuristica or DejaVu Serif as the substitute font.
– Davislor
Jun 9 at 20:52
My preference for math-heavy documents has been for for Lucida Bright, among other reasons for the single family for text, including typewriter and sans-serif, and math. (If I want a lighter, tighter look, then generally I use Times together with MathTime Pro 2.) It looks like using Heuristica involves combining Utopia, the Heuristica extensions, Cabin, and newtxmath. But I will get around to trying it, and thanks for the suggestion. Definitely I do not like a sans-serif body font such as DejaVue. (So many fonts, so little time!)
– murray
Jun 9 at 21:46
@murray There’s a DejaVu Serif, and you can use the Heuristica family as asubstitutefont
withoutnewtxtext
.
– Davislor
Jun 9 at 22:43
|
show 1 more comment
In the Modern Toolchain
To answer your second question first, here is what I recommend. If possible, replace fontenc
with fontspec
and use a modern TrueType or OpenType font.
documentclass[12pt]article
usepackagebabel
usepackagefontspec
usepackage[paperwidth=11cm]geometry % To fit into the allowed width.
babelprovide[main, import=en]english
babelprovide[import=ru]russian
setmainfontTimes New Roman
begindocument
Large
Fyodor Dostoevsky (foreignlanguagerussianФёдор Достоевский) and
Alexander Pushkin (foreignlanguagerussianАлександр Пушкин).
enddocument
As you can see, that sample uses Times rather than Computer Modern and loads Russian hyphenation patterns. babelprovide[import]
converts the font encoding for you. Either choose a font that supports Cyrillic, or use babelfont
to change fonts.
Depending on how useful the hyphenation patterns are to you, you might even be able to drop the babel
package, and just type in Cyrillic letters. Another method of loading a different font for a different script, which doesn’t require markup in the document body, is ucharclasses
, but this doesn’t hyphenate. Also consider usepackagemicrotype
in LuaLaTeX to dramatically cut down on the amount of hyphenation your document needs.
In the Legacy Toolchain
If you cannot change to LuaLaTeX or XeLaTeX, you will need to actually fix problem 1. That’s simple. The last encoding you give to fontenc
becomes the default encoding. The Times font (ptm*
) does not come in T2A, so LaTeX falls back to Computer Modern. PDFLaTeX gives me the following error message on your first MWE:
LaTeX Font Warning: Font shape `T2A/ptm/m/n' undefined
(Font) using `T2A/cmr/m/n' instead on input line 8.
In this case, you want to use only a few Russian names. So, you want to load English as the main language, Russian as a second language, and use babel
to switch between the encodings of these two languages. One legacy font based on Times that covers Cyrillic is Tempora.
documentclass[12pt]article
usepackage[X2, T1]fontenc
usepackagetextcomp
usepackagetempora
usepackage[russian, main=english]babel
usepackage[paperwidth=11cm]geometry % To fit into the allowed width.
begindocument
Large
Fyodor Dostoevsky (foreignlanguagerussianФёдор Достоевский) and
Alexander Pushkin (foreignlanguagerussianАлександр Пушкин).
enddocument
In order to use a font family with an encoding that it does not support, you would need to switch fonts whenever you switch languages. You can do this with the substitutefont
package (or by declaring a new textrussian
command that changes both the language and the fontfamily
). E.g.:
usepackagetempora
usepackagetimes
usepackagesubstitutefont
substitutefontT2AfamilydefaultTempora-TLF
There are not many fonts that support T2A, and nearly all are extensions of an existing font: including Computer Modern Unicode, Tempora (Times), Heuristica (Utopia), DejaVu, Libertine and Gentium.
Using the option orderT2A, T1
tofontenc
solves the problem of the main, English, font being made too light — even withlucidabr
. Alas, because Lucida bright fonts are heavier than many others, still the bit of Cyrillic will have a noticeably lighter weight.
– murray
Jun 9 at 14:33
I do want to continue to use the "legacy" toolchain, with Type 1 fonts. Your solution for that, to usetempora
, led me to tex.stackexcange.com/questions/473057/… and to usingsubstitutefontT2ArmdefaultTempora-TLF
. For the very occasional mention of Russian names in Cyrillic characters, this gives, to my eye, satisfactory results even with Lucida Bright as the main text font. (For the sake of completeness, I'm going to amend my question to show this)
– murray
Jun 9 at 14:36
@murray I don’t have Lucida Bright on my system to check, but you might also try out Heuristica or DejaVu Serif as the substitute font.
– Davislor
Jun 9 at 20:52
My preference for math-heavy documents has been for for Lucida Bright, among other reasons for the single family for text, including typewriter and sans-serif, and math. (If I want a lighter, tighter look, then generally I use Times together with MathTime Pro 2.) It looks like using Heuristica involves combining Utopia, the Heuristica extensions, Cabin, and newtxmath. But I will get around to trying it, and thanks for the suggestion. Definitely I do not like a sans-serif body font such as DejaVue. (So many fonts, so little time!)
– murray
Jun 9 at 21:46
@murray There’s a DejaVu Serif, and you can use the Heuristica family as asubstitutefont
withoutnewtxtext
.
– Davislor
Jun 9 at 22:43
|
show 1 more comment
In the Modern Toolchain
To answer your second question first, here is what I recommend. If possible, replace fontenc
with fontspec
and use a modern TrueType or OpenType font.
documentclass[12pt]article
usepackagebabel
usepackagefontspec
usepackage[paperwidth=11cm]geometry % To fit into the allowed width.
babelprovide[main, import=en]english
babelprovide[import=ru]russian
setmainfontTimes New Roman
begindocument
Large
Fyodor Dostoevsky (foreignlanguagerussianФёдор Достоевский) and
Alexander Pushkin (foreignlanguagerussianАлександр Пушкин).
enddocument
As you can see, that sample uses Times rather than Computer Modern and loads Russian hyphenation patterns. babelprovide[import]
converts the font encoding for you. Either choose a font that supports Cyrillic, or use babelfont
to change fonts.
Depending on how useful the hyphenation patterns are to you, you might even be able to drop the babel
package, and just type in Cyrillic letters. Another method of loading a different font for a different script, which doesn’t require markup in the document body, is ucharclasses
, but this doesn’t hyphenate. Also consider usepackagemicrotype
in LuaLaTeX to dramatically cut down on the amount of hyphenation your document needs.
In the Legacy Toolchain
If you cannot change to LuaLaTeX or XeLaTeX, you will need to actually fix problem 1. That’s simple. The last encoding you give to fontenc
becomes the default encoding. The Times font (ptm*
) does not come in T2A, so LaTeX falls back to Computer Modern. PDFLaTeX gives me the following error message on your first MWE:
LaTeX Font Warning: Font shape `T2A/ptm/m/n' undefined
(Font) using `T2A/cmr/m/n' instead on input line 8.
In this case, you want to use only a few Russian names. So, you want to load English as the main language, Russian as a second language, and use babel
to switch between the encodings of these two languages. One legacy font based on Times that covers Cyrillic is Tempora.
documentclass[12pt]article
usepackage[X2, T1]fontenc
usepackagetextcomp
usepackagetempora
usepackage[russian, main=english]babel
usepackage[paperwidth=11cm]geometry % To fit into the allowed width.
begindocument
Large
Fyodor Dostoevsky (foreignlanguagerussianФёдор Достоевский) and
Alexander Pushkin (foreignlanguagerussianАлександр Пушкин).
enddocument
In order to use a font family with an encoding that it does not support, you would need to switch fonts whenever you switch languages. You can do this with the substitutefont
package (or by declaring a new textrussian
command that changes both the language and the fontfamily
). E.g.:
usepackagetempora
usepackagetimes
usepackagesubstitutefont
substitutefontT2AfamilydefaultTempora-TLF
There are not many fonts that support T2A, and nearly all are extensions of an existing font: including Computer Modern Unicode, Tempora (Times), Heuristica (Utopia), DejaVu, Libertine and Gentium.
In the Modern Toolchain
To answer your second question first, here is what I recommend. If possible, replace fontenc
with fontspec
and use a modern TrueType or OpenType font.
documentclass[12pt]article
usepackagebabel
usepackagefontspec
usepackage[paperwidth=11cm]geometry % To fit into the allowed width.
babelprovide[main, import=en]english
babelprovide[import=ru]russian
setmainfontTimes New Roman
begindocument
Large
Fyodor Dostoevsky (foreignlanguagerussianФёдор Достоевский) and
Alexander Pushkin (foreignlanguagerussianАлександр Пушкин).
enddocument
As you can see, that sample uses Times rather than Computer Modern and loads Russian hyphenation patterns. babelprovide[import]
converts the font encoding for you. Either choose a font that supports Cyrillic, or use babelfont
to change fonts.
Depending on how useful the hyphenation patterns are to you, you might even be able to drop the babel
package, and just type in Cyrillic letters. Another method of loading a different font for a different script, which doesn’t require markup in the document body, is ucharclasses
, but this doesn’t hyphenate. Also consider usepackagemicrotype
in LuaLaTeX to dramatically cut down on the amount of hyphenation your document needs.
In the Legacy Toolchain
If you cannot change to LuaLaTeX or XeLaTeX, you will need to actually fix problem 1. That’s simple. The last encoding you give to fontenc
becomes the default encoding. The Times font (ptm*
) does not come in T2A, so LaTeX falls back to Computer Modern. PDFLaTeX gives me the following error message on your first MWE:
LaTeX Font Warning: Font shape `T2A/ptm/m/n' undefined
(Font) using `T2A/cmr/m/n' instead on input line 8.
In this case, you want to use only a few Russian names. So, you want to load English as the main language, Russian as a second language, and use babel
to switch between the encodings of these two languages. One legacy font based on Times that covers Cyrillic is Tempora.
documentclass[12pt]article
usepackage[X2, T1]fontenc
usepackagetextcomp
usepackagetempora
usepackage[russian, main=english]babel
usepackage[paperwidth=11cm]geometry % To fit into the allowed width.
begindocument
Large
Fyodor Dostoevsky (foreignlanguagerussianФёдор Достоевский) and
Alexander Pushkin (foreignlanguagerussianАлександр Пушкин).
enddocument
In order to use a font family with an encoding that it does not support, you would need to switch fonts whenever you switch languages. You can do this with the substitutefont
package (or by declaring a new textrussian
command that changes both the language and the fontfamily
). E.g.:
usepackagetempora
usepackagetimes
usepackagesubstitutefont
substitutefontT2AfamilydefaultTempora-TLF
There are not many fonts that support T2A, and nearly all are extensions of an existing font: including Computer Modern Unicode, Tempora (Times), Heuristica (Utopia), DejaVu, Libertine and Gentium.
edited Jun 9 at 23:19
answered Jun 9 at 3:36
DavislorDavislor
8,4921535
8,4921535
Using the option orderT2A, T1
tofontenc
solves the problem of the main, English, font being made too light — even withlucidabr
. Alas, because Lucida bright fonts are heavier than many others, still the bit of Cyrillic will have a noticeably lighter weight.
– murray
Jun 9 at 14:33
I do want to continue to use the "legacy" toolchain, with Type 1 fonts. Your solution for that, to usetempora
, led me to tex.stackexcange.com/questions/473057/… and to usingsubstitutefontT2ArmdefaultTempora-TLF
. For the very occasional mention of Russian names in Cyrillic characters, this gives, to my eye, satisfactory results even with Lucida Bright as the main text font. (For the sake of completeness, I'm going to amend my question to show this)
– murray
Jun 9 at 14:36
@murray I don’t have Lucida Bright on my system to check, but you might also try out Heuristica or DejaVu Serif as the substitute font.
– Davislor
Jun 9 at 20:52
My preference for math-heavy documents has been for for Lucida Bright, among other reasons for the single family for text, including typewriter and sans-serif, and math. (If I want a lighter, tighter look, then generally I use Times together with MathTime Pro 2.) It looks like using Heuristica involves combining Utopia, the Heuristica extensions, Cabin, and newtxmath. But I will get around to trying it, and thanks for the suggestion. Definitely I do not like a sans-serif body font such as DejaVue. (So many fonts, so little time!)
– murray
Jun 9 at 21:46
@murray There’s a DejaVu Serif, and you can use the Heuristica family as asubstitutefont
withoutnewtxtext
.
– Davislor
Jun 9 at 22:43
|
show 1 more comment
Using the option orderT2A, T1
tofontenc
solves the problem of the main, English, font being made too light — even withlucidabr
. Alas, because Lucida bright fonts are heavier than many others, still the bit of Cyrillic will have a noticeably lighter weight.
– murray
Jun 9 at 14:33
I do want to continue to use the "legacy" toolchain, with Type 1 fonts. Your solution for that, to usetempora
, led me to tex.stackexcange.com/questions/473057/… and to usingsubstitutefontT2ArmdefaultTempora-TLF
. For the very occasional mention of Russian names in Cyrillic characters, this gives, to my eye, satisfactory results even with Lucida Bright as the main text font. (For the sake of completeness, I'm going to amend my question to show this)
– murray
Jun 9 at 14:36
@murray I don’t have Lucida Bright on my system to check, but you might also try out Heuristica or DejaVu Serif as the substitute font.
– Davislor
Jun 9 at 20:52
My preference for math-heavy documents has been for for Lucida Bright, among other reasons for the single family for text, including typewriter and sans-serif, and math. (If I want a lighter, tighter look, then generally I use Times together with MathTime Pro 2.) It looks like using Heuristica involves combining Utopia, the Heuristica extensions, Cabin, and newtxmath. But I will get around to trying it, and thanks for the suggestion. Definitely I do not like a sans-serif body font such as DejaVue. (So many fonts, so little time!)
– murray
Jun 9 at 21:46
@murray There’s a DejaVu Serif, and you can use the Heuristica family as asubstitutefont
withoutnewtxtext
.
– Davislor
Jun 9 at 22:43
Using the option order
T2A, T1
to fontenc
solves the problem of the main, English, font being made too light — even with lucidabr
. Alas, because Lucida bright fonts are heavier than many others, still the bit of Cyrillic will have a noticeably lighter weight.– murray
Jun 9 at 14:33
Using the option order
T2A, T1
to fontenc
solves the problem of the main, English, font being made too light — even with lucidabr
. Alas, because Lucida bright fonts are heavier than many others, still the bit of Cyrillic will have a noticeably lighter weight.– murray
Jun 9 at 14:33
I do want to continue to use the "legacy" toolchain, with Type 1 fonts. Your solution for that, to use
tempora
, led me to tex.stackexcange.com/questions/473057/… and to using substitutefontT2ArmdefaultTempora-TLF
. For the very occasional mention of Russian names in Cyrillic characters, this gives, to my eye, satisfactory results even with Lucida Bright as the main text font. (For the sake of completeness, I'm going to amend my question to show this)– murray
Jun 9 at 14:36
I do want to continue to use the "legacy" toolchain, with Type 1 fonts. Your solution for that, to use
tempora
, led me to tex.stackexcange.com/questions/473057/… and to using substitutefontT2ArmdefaultTempora-TLF
. For the very occasional mention of Russian names in Cyrillic characters, this gives, to my eye, satisfactory results even with Lucida Bright as the main text font. (For the sake of completeness, I'm going to amend my question to show this)– murray
Jun 9 at 14:36
@murray I don’t have Lucida Bright on my system to check, but you might also try out Heuristica or DejaVu Serif as the substitute font.
– Davislor
Jun 9 at 20:52
@murray I don’t have Lucida Bright on my system to check, but you might also try out Heuristica or DejaVu Serif as the substitute font.
– Davislor
Jun 9 at 20:52
My preference for math-heavy documents has been for for Lucida Bright, among other reasons for the single family for text, including typewriter and sans-serif, and math. (If I want a lighter, tighter look, then generally I use Times together with MathTime Pro 2.) It looks like using Heuristica involves combining Utopia, the Heuristica extensions, Cabin, and newtxmath. But I will get around to trying it, and thanks for the suggestion. Definitely I do not like a sans-serif body font such as DejaVue. (So many fonts, so little time!)
– murray
Jun 9 at 21:46
My preference for math-heavy documents has been for for Lucida Bright, among other reasons for the single family for text, including typewriter and sans-serif, and math. (If I want a lighter, tighter look, then generally I use Times together with MathTime Pro 2.) It looks like using Heuristica involves combining Utopia, the Heuristica extensions, Cabin, and newtxmath. But I will get around to trying it, and thanks for the suggestion. Definitely I do not like a sans-serif body font such as DejaVue. (So many fonts, so little time!)
– murray
Jun 9 at 21:46
@murray There’s a DejaVu Serif, and you can use the Heuristica family as a
substitutefont
without newtxtext
.– Davislor
Jun 9 at 22:43
@murray There’s a DejaVu Serif, and you can use the Heuristica family as a
substitutefont
without newtxtext
.– Davislor
Jun 9 at 22:43
|
show 1 more 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%2f494886%2fwhy-does-additional-encoding-t2a-make-text-fonts-lighter-weight%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
2
I can't answer why the T2A encoding causes this effect, but it's a fact that the "lighter" font is Computer Modern, not Times. As far as I know, nobody has ever created a TeX-compatible Cyrillic font using T2 encoding.*except* for the one compatible with CM. Also, I believe that the
times
package has been superseded, but others can address that more authoritatively.– barbara beeton
Jun 9 at 1:27
@barbarabeeton: In my actual document, I'll be using Lucida Bright fonts (
usepackagelucidabr
), and exactly the same issue occurs with them.– murray
Jun 9 at 2:41
@murray Unfortunately, Lucida Bright doesn’t support Cyrillic.
– Davislor
Jun 9 at 4:16
@barbarabeeton There are a few other T2A fonts (ctan.org/topic/font-cyrillic), including: Tempora (Times), Heuristica (Utopia), DejaVu, Gentium and Libertine. There’s also the
substitutefont
package, which could be used to select Tempora as the replacement for Times, or Heuristica for Lucida Bright.– Davislor
Jun 9 at 8:56
@barbarabeeton Unless you mean that all those fonts were created in some other encoding, and then someone made a T2A version in FontForge later.
– Davislor
Jun 9 at 9:08