Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

All punctuations should be in roman whereever it comes

57 views
Skip to first unread message

MadyYuvi

unread,
Jun 14, 2017, 8:38:24 AM6/14/17
to
Hi All,

Is there any way to make all the punctuations (comma, period, colon, semicolon, etc.) as in roman even it is in italic tag? I am using MikTeX V2.9 and mathtime package and its fonts for my setup and the tags are mentioned below:

\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[T1,mtbold]{mathtime}
\usepackage{times}
\begin{document}
....
\end{document}

Thanks,
MadyYuvi

Peter Wilson

unread,
Jun 14, 2017, 1:58:53 PM6/14/17
to
Punctuation should be in the same font as the text --- italic for italic
text, roman for roman text. Eg \textit {words,} not \textit{words},

Peter W.

Peter Flynn

unread,
Jun 14, 2017, 3:53:08 PM6/14/17
to
On 06/14/2017 06:58 PM, Peter Wilson wrote:
> Punctuation should be in the same font as the text --- italic for italic
> text, roman for roman text.

I agree with that.

> Eg \textit {words,} not \textit{words},

I hesitate to disagree with PW, but unfortunately I don't agree with
this example. I would set the second, not the first; eg ``because
they're \emph{my words}, not his.'' The punctuation is not part of the
italicised phrase in this case.

But if we take a longer example:

{\itshape
The quality of mercy is not strain'd,\\
It droppeth as the gentle rain from heaven\\
Upon the place beneath: it is twice blest;\\
It blesseth him that gives and him that takes:
\par}

all those punctuation marks should be italic because the whole passage
is in italics --- they are embedded inside it.

MadyYuvi, are you asking for them to be in upright type? It's possible,
but it's manual:

{\itshape
The quality of mercy is not strain'd{\upshape,}\\
It droppeth as the gentle rain from heaven\\
Upon the place beneath{\upshape:} it is twice blest{\upshape;}\\
It blesseth him that gives and him that takes{\upshape:}
\par}

///Peter

MadyYuvi

unread,
Jun 15, 2017, 2:07:03 AM6/15/17
to
Yes Peter, you are correct, I need all the punctuation should be in roman, but is it possible to fix the same by auto instead of giving {\upshape;}? Pl suggest...

Ulrike Fischer

unread,
Jun 15, 2017, 5:37:22 AM6/15/17
to
Am Wed, 14 Jun 2017 23:06:59 -0700 (PDT) schrieb MadyYuvi:

> Yes Peter, you are correct, I need all the punctuation should be in roman, but is it possible to fix the same by auto instead of giving {\upshape;}? Pl suggest...

It is possible with a virtual font: You can create one, that takes
its punctuation symbols from the roman font.

With pdflatex it would need a few hours work (more if you also want
to fine tune the kerning) and some knowledge about fonts in general
and fontinst in particular. With lualatex is could be done a bit
faster.

You can also make the punctuations symbols active and define them to
switch to upshape. But be aware that this is dangerous -- you can
break other commands. E.g. period and dot are often used in numbers.

\documentclass{book}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
%\usepackage[T1,mtbold]{mathtime}
\usepackage{times}
\defineshorthand{.}{\textup{.}}
\defineshorthand{,}{\textup{,}}
\defineshorthand{;}{\textup{;}}

\useshorthands*{,}
\useshorthands*{.}
\useshorthands*{;}
\begin{document}
\itshape abc, abc; abc.

\shorthandoff{,}\shorthandoff{.}\shorthandoff{;}
abc, abc; abc.

\end{document}




--
Ulrike Fischer
http://www.troubleshooting-tex.de/

Axel Berger

unread,
Jun 15, 2017, 7:21:40 AM6/15/17
to
Ulrike Fischer wrote:
> With pdflatex it would need a few hours work (more if you also want
> to fine tune the kerning) and some knowledge about fonts in general
> and fontinst in particular. With lualatex is could be done a bit
> faster.

It will also result in rather incompatible documents. My solution for
problems like these are editor makros. I'm confident that TeX users will
all have powerful (if different) editors in use.

--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --

MadyYuvi

unread,
Jun 15, 2017, 8:18:35 AM6/15/17
to
Ulrike really you are great...its working but with one concern, is it possible to achieve this without using the package "babel"? please suggest...

Note that Im using MikTeX V2.9 and dvips and ps2pdf for generating output....

Ulrike Fischer

unread,
Jun 15, 2017, 9:22:08 AM6/15/17
to
Am Thu, 15 Jun 2017 05:18:32 -0700 (PDT) schrieb MadyYuvi:

> Ulrike really you are great...its working but with one concern, is
> it possible to achieve this without using the package "babel"?
> please suggest...

Sure. Copy all the relevant code for the definitions from the babel
package or write equivalent definitions. But as I don't see any
reason not to use babel I won't spent my time to do it (I do find
the general idea rather dubious anyway).

Ulrike Fischer

unread,
Jun 15, 2017, 9:28:31 AM6/15/17
to
Am Thu, 15 Jun 2017 13:21:24 +0200 schrieb Axel Berger:

>> With pdflatex it would need a few hours work (more if you also want
>> to fine tune the kerning) and some knowledge about fonts in general
>> and fontinst in particular. With lualatex is could be done a bit
>> faster.
>
> It will also result in rather incompatible documents.

With lualatex it can be done on-the-fly in the document, see the
combofont package.

With pdflatex it is not much different to the use of local pictures
or a bib-file or input-files: if you pass the document to someone
else this additional files have to go with the main tex-document.
With a virtual font there would be only a few more.

Peter Flynn

unread,
Jun 15, 2017, 3:24:46 PM6/15/17
to
On 06/15/2017 07:06 AM, MadyYuvi wrote:
[snip]
> Yes Peter, you are correct, I need all the punctuation should be in
> roman,

I am very curious to know why. In 50 years of typesetting I have never
come across this before.

///Peter


Peter Flynn

unread,
Jun 26, 2017, 4:50:01 PM6/26/17
to
Barbara Beeton has provided me with an answer in email: apparently
it's only relevant in math, which the OP failed to mention.

>> [bb] In particular, in theorems, where the mixture of all upright
>> punctuation in the math expressions and the italic of the theorem
>> text [...] demands more uniformity. Since it's not feasible to make
>> the math punctuation (especially the delimiters) italic, setting all
>> the punctuation upright is much less jarring in the long run.

Makes perfect sense for math. It makes perfect nonsense for normal text,
I suspect :-)

///Peter

0 new messages