Still want to use “ptm” in XeLaTeX
I'm using XeLaTeX typesetting Chinese fonts in my document. (So XeLaTeX is the only suitable way for me to do my stuff.) I want to use the LaTex original ptm font to typeset all English text.
I know there is a simple way to use Times-related fonts in XeLaTeX, like setmainfont{Times New Roman}. But in this way, the ligature doesn't work, even if using:
defaultfontfeatures{Ligatures=TeX}
setmainfont{Times New Roman}
And anyhow, I still want to use the original ptm font, not Times New Roman. There're still some essential designing difference if one look closer at it. I prefer ptm. So how can I use ptm?
I'd found
DeclareFixedFont{PTMtext}{OT1}{ptm}{m}{n}{12pt}
PTMtext{blah blah}
works, but only affects in a little region, i.e. cannot work in section title or math inline mode such like $a=0 text{if needed}$, in which 'if needed' is still in lmr style. And renewcommand{rmdefault}{ptm} doesn't work too.
fonts xetex fontspec
add a comment |
I'm using XeLaTeX typesetting Chinese fonts in my document. (So XeLaTeX is the only suitable way for me to do my stuff.) I want to use the LaTex original ptm font to typeset all English text.
I know there is a simple way to use Times-related fonts in XeLaTeX, like setmainfont{Times New Roman}. But in this way, the ligature doesn't work, even if using:
defaultfontfeatures{Ligatures=TeX}
setmainfont{Times New Roman}
And anyhow, I still want to use the original ptm font, not Times New Roman. There're still some essential designing difference if one look closer at it. I prefer ptm. So how can I use ptm?
I'd found
DeclareFixedFont{PTMtext}{OT1}{ptm}{m}{n}{12pt}
PTMtext{blah blah}
works, but only affects in a little region, i.e. cannot work in section title or math inline mode such like $a=0 text{if needed}$, in which 'if needed' is still in lmr style. And renewcommand{rmdefault}{ptm} doesn't work too.
fonts xetex fontspec
2
setmainfont{TeX Gyre Termes}
– egreg
Apr 9 '16 at 8:43
Ligatures should work on a font that has them. You’d wantLigatures={Common, TeX}or for some fonts, Discretionary, Rare or Contextual ligatures. Selecting onlyLigatures=TeXturns most ligatures off.
– Davislor
Jan 2 at 7:42
add a comment |
I'm using XeLaTeX typesetting Chinese fonts in my document. (So XeLaTeX is the only suitable way for me to do my stuff.) I want to use the LaTex original ptm font to typeset all English text.
I know there is a simple way to use Times-related fonts in XeLaTeX, like setmainfont{Times New Roman}. But in this way, the ligature doesn't work, even if using:
defaultfontfeatures{Ligatures=TeX}
setmainfont{Times New Roman}
And anyhow, I still want to use the original ptm font, not Times New Roman. There're still some essential designing difference if one look closer at it. I prefer ptm. So how can I use ptm?
I'd found
DeclareFixedFont{PTMtext}{OT1}{ptm}{m}{n}{12pt}
PTMtext{blah blah}
works, but only affects in a little region, i.e. cannot work in section title or math inline mode such like $a=0 text{if needed}$, in which 'if needed' is still in lmr style. And renewcommand{rmdefault}{ptm} doesn't work too.
fonts xetex fontspec
I'm using XeLaTeX typesetting Chinese fonts in my document. (So XeLaTeX is the only suitable way for me to do my stuff.) I want to use the LaTex original ptm font to typeset all English text.
I know there is a simple way to use Times-related fonts in XeLaTeX, like setmainfont{Times New Roman}. But in this way, the ligature doesn't work, even if using:
defaultfontfeatures{Ligatures=TeX}
setmainfont{Times New Roman}
And anyhow, I still want to use the original ptm font, not Times New Roman. There're still some essential designing difference if one look closer at it. I prefer ptm. So how can I use ptm?
I'd found
DeclareFixedFont{PTMtext}{OT1}{ptm}{m}{n}{12pt}
PTMtext{blah blah}
works, but only affects in a little region, i.e. cannot work in section title or math inline mode such like $a=0 text{if needed}$, in which 'if needed' is still in lmr style. And renewcommand{rmdefault}{ptm} doesn't work too.
fonts xetex fontspec
fonts xetex fontspec
asked Apr 9 '16 at 7:52
EricEric
767617
767617
2
setmainfont{TeX Gyre Termes}
– egreg
Apr 9 '16 at 8:43
Ligatures should work on a font that has them. You’d wantLigatures={Common, TeX}or for some fonts, Discretionary, Rare or Contextual ligatures. Selecting onlyLigatures=TeXturns most ligatures off.
– Davislor
Jan 2 at 7:42
add a comment |
2
setmainfont{TeX Gyre Termes}
– egreg
Apr 9 '16 at 8:43
Ligatures should work on a font that has them. You’d wantLigatures={Common, TeX}or for some fonts, Discretionary, Rare or Contextual ligatures. Selecting onlyLigatures=TeXturns most ligatures off.
– Davislor
Jan 2 at 7:42
2
2
setmainfont{TeX Gyre Termes}– egreg
Apr 9 '16 at 8:43
setmainfont{TeX Gyre Termes}– egreg
Apr 9 '16 at 8:43
Ligatures should work on a font that has them. You’d want
Ligatures={Common, TeX} or for some fonts, Discretionary, Rare or Contextual ligatures. Selecting only Ligatures=TeX turns most ligatures off.– Davislor
Jan 2 at 7:42
Ligatures should work on a font that has them. You’d want
Ligatures={Common, TeX} or for some fonts, Discretionary, Rare or Contextual ligatures. Selecting only Ligatures=TeX turns most ligatures off.– Davislor
Jan 2 at 7:42
add a comment |
2 Answers
2
active
oldest
votes
There's nothing more than a visual comparison, showing that ptm is exactly the same as what you get with TeX Gyre Termes.
documentclass{article}
usepackage{amsmath}
usepackage{fontspec}
setmainfont{TeX Gyre Termes}
newfontfamily{OTIMES}{Times New Roman}
deffn"#1/#2"{#1}%
begin{document}
{OTIMES abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont}
abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
abcdefghijklmnopqrstuvwxyzfifl fontnamefont}
{OTIMES ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont}
ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ fontnamefont}
itshape
{OTIMES abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont}
abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
abcdefghijklmnopqrstuvwxyzfifl fontnamefont}
{OTIMES ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont}
ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ fontnamefont}
end{document}

As you can also see, also the italic font in TeX Gyre Termes matches ptm, although there are small differences in kerning.
There is another advantage, which is the matchingTeX Gyre Termes Math.
– Henri Menke
Jun 8 '16 at 14:48
Thanks for replying. By the way, what is the benefit of usingTeX Gyre Termes Math? How does it compare toMTPro2?
– Eric
Jun 10 '16 at 6:34
@Eric MTPro2 has tons of bells and whistles, but is not a Unicode math font
– egreg
Jun 10 '16 at 8:02
I'm sorry but I have to downvote the answer because the result is different.Certainly the it looks similar but that is because we are seeing only the upright style. If we add to the code the italic shape, we will see some differences, specially in the zglyph.
– Dog_69
Jan 1 at 20:11
@Dog_69 The OP wants the same asptmand the italic z is the same in TeX Gyre Termes as inptm. It is different in Times New Roman. Please, read the question more carefully. It is true that there are tiny differences in kerning between Termes andptm, which is quite bad in that respect.
– egreg
Jan 1 at 20:38
|
show 3 more comments
Define an own fontface. If you are using one of the KOMA-Script classes
you can define the headers in an easy way to use Times.
documentclass{article}
usepackage{amsmath}
usepackage{unicode-math}
%setmainfont{what ever you want}
newfontfaceTimes{Times New Roman MT Std}% I have only this otf version
begin{document}
Latin Modern
{Times $a=0 text{ if needed}$}
section{LatinModern}
subsection{Times Times New Roman}
foo Times foo
end{document}
I want to useptm, not Times New Roman. And is there a way to set theptmfont as default style? Not always puts acommand{}arounding texts.
– Eric
Apr 9 '16 at 16:04
1
Then use theTeX Gyre Termesas main font end everything will be fine
– Herbert
Apr 9 '16 at 16:46
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%2f303320%2fstill-want-to-use-ptm-in-xelatex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
There's nothing more than a visual comparison, showing that ptm is exactly the same as what you get with TeX Gyre Termes.
documentclass{article}
usepackage{amsmath}
usepackage{fontspec}
setmainfont{TeX Gyre Termes}
newfontfamily{OTIMES}{Times New Roman}
deffn"#1/#2"{#1}%
begin{document}
{OTIMES abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont}
abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
abcdefghijklmnopqrstuvwxyzfifl fontnamefont}
{OTIMES ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont}
ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ fontnamefont}
itshape
{OTIMES abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont}
abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
abcdefghijklmnopqrstuvwxyzfifl fontnamefont}
{OTIMES ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont}
ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ fontnamefont}
end{document}

As you can also see, also the italic font in TeX Gyre Termes matches ptm, although there are small differences in kerning.
There is another advantage, which is the matchingTeX Gyre Termes Math.
– Henri Menke
Jun 8 '16 at 14:48
Thanks for replying. By the way, what is the benefit of usingTeX Gyre Termes Math? How does it compare toMTPro2?
– Eric
Jun 10 '16 at 6:34
@Eric MTPro2 has tons of bells and whistles, but is not a Unicode math font
– egreg
Jun 10 '16 at 8:02
I'm sorry but I have to downvote the answer because the result is different.Certainly the it looks similar but that is because we are seeing only the upright style. If we add to the code the italic shape, we will see some differences, specially in the zglyph.
– Dog_69
Jan 1 at 20:11
@Dog_69 The OP wants the same asptmand the italic z is the same in TeX Gyre Termes as inptm. It is different in Times New Roman. Please, read the question more carefully. It is true that there are tiny differences in kerning between Termes andptm, which is quite bad in that respect.
– egreg
Jan 1 at 20:38
|
show 3 more comments
There's nothing more than a visual comparison, showing that ptm is exactly the same as what you get with TeX Gyre Termes.
documentclass{article}
usepackage{amsmath}
usepackage{fontspec}
setmainfont{TeX Gyre Termes}
newfontfamily{OTIMES}{Times New Roman}
deffn"#1/#2"{#1}%
begin{document}
{OTIMES abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont}
abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
abcdefghijklmnopqrstuvwxyzfifl fontnamefont}
{OTIMES ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont}
ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ fontnamefont}
itshape
{OTIMES abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont}
abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
abcdefghijklmnopqrstuvwxyzfifl fontnamefont}
{OTIMES ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont}
ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ fontnamefont}
end{document}

As you can also see, also the italic font in TeX Gyre Termes matches ptm, although there are small differences in kerning.
There is another advantage, which is the matchingTeX Gyre Termes Math.
– Henri Menke
Jun 8 '16 at 14:48
Thanks for replying. By the way, what is the benefit of usingTeX Gyre Termes Math? How does it compare toMTPro2?
– Eric
Jun 10 '16 at 6:34
@Eric MTPro2 has tons of bells and whistles, but is not a Unicode math font
– egreg
Jun 10 '16 at 8:02
I'm sorry but I have to downvote the answer because the result is different.Certainly the it looks similar but that is because we are seeing only the upright style. If we add to the code the italic shape, we will see some differences, specially in the zglyph.
– Dog_69
Jan 1 at 20:11
@Dog_69 The OP wants the same asptmand the italic z is the same in TeX Gyre Termes as inptm. It is different in Times New Roman. Please, read the question more carefully. It is true that there are tiny differences in kerning between Termes andptm, which is quite bad in that respect.
– egreg
Jan 1 at 20:38
|
show 3 more comments
There's nothing more than a visual comparison, showing that ptm is exactly the same as what you get with TeX Gyre Termes.
documentclass{article}
usepackage{amsmath}
usepackage{fontspec}
setmainfont{TeX Gyre Termes}
newfontfamily{OTIMES}{Times New Roman}
deffn"#1/#2"{#1}%
begin{document}
{OTIMES abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont}
abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
abcdefghijklmnopqrstuvwxyzfifl fontnamefont}
{OTIMES ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont}
ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ fontnamefont}
itshape
{OTIMES abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont}
abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
abcdefghijklmnopqrstuvwxyzfifl fontnamefont}
{OTIMES ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont}
ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ fontnamefont}
end{document}

As you can also see, also the italic font in TeX Gyre Termes matches ptm, although there are small differences in kerning.
There's nothing more than a visual comparison, showing that ptm is exactly the same as what you get with TeX Gyre Termes.
documentclass{article}
usepackage{amsmath}
usepackage{fontspec}
setmainfont{TeX Gyre Termes}
newfontfamily{OTIMES}{Times New Roman}
deffn"#1/#2"{#1}%
begin{document}
{OTIMES abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont}
abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
abcdefghijklmnopqrstuvwxyzfifl fontnamefont}
{OTIMES ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont}
ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ fontnamefont}
itshape
{OTIMES abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont}
abcdefghijklmnopqrstuvwxyzfifl expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
abcdefghijklmnopqrstuvwxyzfifl fontnamefont}
{OTIMES ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont}
ABCDEFGHIJKLMNOPQRSTUVWXYZ expandafterfnfontnamefont
{fontencoding{OT1}fontfamily{ptm}selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ fontnamefont}
end{document}

As you can also see, also the italic font in TeX Gyre Termes matches ptm, although there are small differences in kerning.
edited Jan 1 at 21:36
answered Jun 8 '16 at 14:36
egregegreg
711k8618913174
711k8618913174
There is another advantage, which is the matchingTeX Gyre Termes Math.
– Henri Menke
Jun 8 '16 at 14:48
Thanks for replying. By the way, what is the benefit of usingTeX Gyre Termes Math? How does it compare toMTPro2?
– Eric
Jun 10 '16 at 6:34
@Eric MTPro2 has tons of bells and whistles, but is not a Unicode math font
– egreg
Jun 10 '16 at 8:02
I'm sorry but I have to downvote the answer because the result is different.Certainly the it looks similar but that is because we are seeing only the upright style. If we add to the code the italic shape, we will see some differences, specially in the zglyph.
– Dog_69
Jan 1 at 20:11
@Dog_69 The OP wants the same asptmand the italic z is the same in TeX Gyre Termes as inptm. It is different in Times New Roman. Please, read the question more carefully. It is true that there are tiny differences in kerning between Termes andptm, which is quite bad in that respect.
– egreg
Jan 1 at 20:38
|
show 3 more comments
There is another advantage, which is the matchingTeX Gyre Termes Math.
– Henri Menke
Jun 8 '16 at 14:48
Thanks for replying. By the way, what is the benefit of usingTeX Gyre Termes Math? How does it compare toMTPro2?
– Eric
Jun 10 '16 at 6:34
@Eric MTPro2 has tons of bells and whistles, but is not a Unicode math font
– egreg
Jun 10 '16 at 8:02
I'm sorry but I have to downvote the answer because the result is different.Certainly the it looks similar but that is because we are seeing only the upright style. If we add to the code the italic shape, we will see some differences, specially in the zglyph.
– Dog_69
Jan 1 at 20:11
@Dog_69 The OP wants the same asptmand the italic z is the same in TeX Gyre Termes as inptm. It is different in Times New Roman. Please, read the question more carefully. It is true that there are tiny differences in kerning between Termes andptm, which is quite bad in that respect.
– egreg
Jan 1 at 20:38
There is another advantage, which is the matching
TeX Gyre Termes Math.– Henri Menke
Jun 8 '16 at 14:48
There is another advantage, which is the matching
TeX Gyre Termes Math.– Henri Menke
Jun 8 '16 at 14:48
Thanks for replying. By the way, what is the benefit of using
TeX Gyre Termes Math? How does it compare to MTPro2?– Eric
Jun 10 '16 at 6:34
Thanks for replying. By the way, what is the benefit of using
TeX Gyre Termes Math? How does it compare to MTPro2?– Eric
Jun 10 '16 at 6:34
@Eric MTPro2 has tons of bells and whistles, but is not a Unicode math font
– egreg
Jun 10 '16 at 8:02
@Eric MTPro2 has tons of bells and whistles, but is not a Unicode math font
– egreg
Jun 10 '16 at 8:02
I'm sorry but I have to downvote the answer because the result is different.Certainly the it looks similar but that is because we are seeing only the upright style. If we add to the code the italic shape, we will see some differences, specially in the z
glyph.– Dog_69
Jan 1 at 20:11
I'm sorry but I have to downvote the answer because the result is different.Certainly the it looks similar but that is because we are seeing only the upright style. If we add to the code the italic shape, we will see some differences, specially in the z
glyph.– Dog_69
Jan 1 at 20:11
@Dog_69 The OP wants the same as
ptm and the italic z is the same in TeX Gyre Termes as in ptm. It is different in Times New Roman. Please, read the question more carefully. It is true that there are tiny differences in kerning between Termes and ptm, which is quite bad in that respect.– egreg
Jan 1 at 20:38
@Dog_69 The OP wants the same as
ptm and the italic z is the same in TeX Gyre Termes as in ptm. It is different in Times New Roman. Please, read the question more carefully. It is true that there are tiny differences in kerning between Termes and ptm, which is quite bad in that respect.– egreg
Jan 1 at 20:38
|
show 3 more comments
Define an own fontface. If you are using one of the KOMA-Script classes
you can define the headers in an easy way to use Times.
documentclass{article}
usepackage{amsmath}
usepackage{unicode-math}
%setmainfont{what ever you want}
newfontfaceTimes{Times New Roman MT Std}% I have only this otf version
begin{document}
Latin Modern
{Times $a=0 text{ if needed}$}
section{LatinModern}
subsection{Times Times New Roman}
foo Times foo
end{document}
I want to useptm, not Times New Roman. And is there a way to set theptmfont as default style? Not always puts acommand{}arounding texts.
– Eric
Apr 9 '16 at 16:04
1
Then use theTeX Gyre Termesas main font end everything will be fine
– Herbert
Apr 9 '16 at 16:46
add a comment |
Define an own fontface. If you are using one of the KOMA-Script classes
you can define the headers in an easy way to use Times.
documentclass{article}
usepackage{amsmath}
usepackage{unicode-math}
%setmainfont{what ever you want}
newfontfaceTimes{Times New Roman MT Std}% I have only this otf version
begin{document}
Latin Modern
{Times $a=0 text{ if needed}$}
section{LatinModern}
subsection{Times Times New Roman}
foo Times foo
end{document}
I want to useptm, not Times New Roman. And is there a way to set theptmfont as default style? Not always puts acommand{}arounding texts.
– Eric
Apr 9 '16 at 16:04
1
Then use theTeX Gyre Termesas main font end everything will be fine
– Herbert
Apr 9 '16 at 16:46
add a comment |
Define an own fontface. If you are using one of the KOMA-Script classes
you can define the headers in an easy way to use Times.
documentclass{article}
usepackage{amsmath}
usepackage{unicode-math}
%setmainfont{what ever you want}
newfontfaceTimes{Times New Roman MT Std}% I have only this otf version
begin{document}
Latin Modern
{Times $a=0 text{ if needed}$}
section{LatinModern}
subsection{Times Times New Roman}
foo Times foo
end{document}
Define an own fontface. If you are using one of the KOMA-Script classes
you can define the headers in an easy way to use Times.
documentclass{article}
usepackage{amsmath}
usepackage{unicode-math}
%setmainfont{what ever you want}
newfontfaceTimes{Times New Roman MT Std}% I have only this otf version
begin{document}
Latin Modern
{Times $a=0 text{ if needed}$}
section{LatinModern}
subsection{Times Times New Roman}
foo Times foo
end{document}
answered Apr 9 '16 at 8:23
HerbertHerbert
270k24408718
270k24408718
I want to useptm, not Times New Roman. And is there a way to set theptmfont as default style? Not always puts acommand{}arounding texts.
– Eric
Apr 9 '16 at 16:04
1
Then use theTeX Gyre Termesas main font end everything will be fine
– Herbert
Apr 9 '16 at 16:46
add a comment |
I want to useptm, not Times New Roman. And is there a way to set theptmfont as default style? Not always puts acommand{}arounding texts.
– Eric
Apr 9 '16 at 16:04
1
Then use theTeX Gyre Termesas main font end everything will be fine
– Herbert
Apr 9 '16 at 16:46
I want to use
ptm, not Times New Roman. And is there a way to set the ptm font as default style? Not always puts a command{} arounding texts.– Eric
Apr 9 '16 at 16:04
I want to use
ptm, not Times New Roman. And is there a way to set the ptm font as default style? Not always puts a command{} arounding texts.– Eric
Apr 9 '16 at 16:04
1
1
Then use the
TeX Gyre Termes as main font end everything will be fine– Herbert
Apr 9 '16 at 16:46
Then use the
TeX Gyre Termes as main font end everything will be fine– Herbert
Apr 9 '16 at 16:46
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.
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%2f303320%2fstill-want-to-use-ptm-in-xelatex%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
setmainfont{TeX Gyre Termes}– egreg
Apr 9 '16 at 8:43
Ligatures should work on a font that has them. You’d want
Ligatures={Common, TeX}or for some fonts, Discretionary, Rare or Contextual ligatures. Selecting onlyLigatures=TeXturns most ligatures off.– Davislor
Jan 2 at 7:42