Fonts & Character SetsPackage times - no bold fonts

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
adkdk
Posts: 9
Joined: Sun Apr 18, 2010 11:39 am

Package times - no bold fonts

Post by adkdk »

To write my master's thesis, I have to use Times New Roman or Arial font. However, when adding

\usepackage{times}

to my document, I can see no bold fonts (e.g. in chapter titles). What's wrong?
I'm using MiKTeX 2.8 and report document class.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Package times - no bold fonts

Post by Montag »

http://www.tug.dk/FontCatalogue/
=>
"Serif Fonts"
=>
"Times"
=>

Code: Select all

\usepackage{mathptmx}
That should do it. :)
(It's a clone.)

But an answer for what might be wrong with the Times-package, I have no idea. I've never used that before. I always use command I quoted.

If the problem lies within your document class or your preamble, this answer in its whole might be useless to you. I don't know what have set up in your preamble. :)
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Package times - no bold fonts

Post by localghost »

The times package is obsolete. So, try an alternative as enrico already suggested [1]. Another possibilty is the txfonts(b) package.

[1] View topic: Obsolete packages and document classes - Avoid usage!


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
adkdk
Posts: 9
Joined: Sun Apr 18, 2010 11:39 am

Package times - no bold fonts

Post by adkdk »

OK. The culprit was package "polski". This is Polish internationalization package for LaTeX. With this package enabled, bold fonts work neither in times, nor in mathptmx. Only some font packages, like "helvet" are working.
Bold fonts are working properly when I'm using package [polish]{babel} instead of polski. However, I'm not satisfied, because "polski" has some extra functions, e.g. printing \tan function as tg - exactly like in Polish math textbooks.

A simple solution is:

Code: Select all

\renewcommand{\tan}{\mathrm{tg\,}}
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Package times - no bold fonts

Post by localghost »

Another solution could be to borrow the definition of the concerned command from latex.ltx and modify it.

Code: Select all

\makeatletter
\def\tg{\mathop{\operator@font tg}\nolimits}
\makeatother
These lines go into the preamble. If you want to keep the command name, replace the middle line as follows.

Code: Select all

\def\tan{\mathop{\operator@font tg}\nolimits}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
adkdk
Posts: 9
Joined: Sun Apr 18, 2010 11:39 am

Re: Package times - no bold fonts

Post by adkdk »

I found that it could be done without any command modifications. The problem is with font encoding. According to polski's documentation, type:

\usepackage[T1,plmath]{polski}

and everything works like a charm :-)
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Package times - no bold fonts

Post by Juanjo »

Just an additional comment. The mathptmx package does not provide bold math fonts. So, if you need them, it would be advisable to use the txfonts package. Load this package after amsmath to avoid a small conflict (both packages define commands with the same names for some integral symbols).
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
davidrm
Posts: 1
Joined: Sat Feb 05, 2022 6:18 am

Package times - no bold fonts

Post by davidrm »

You also have to add some encoding along with times package.

Code: Select all

\usepackage[T1]{fontenc}
\usepackage{times}
should do it.

If you want more options, you can compile your document using xelatex and use the fontspec package.

Code: Select all

\usepackage{fontspec}
\setmainfont{Times New Roman}
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Package times - no bold fonts

Post by Ijon Tichy »

If you reply to a very, very old discussion, please read the at least the already existing comments!
davidrm wrote:You also have to add some encoding along with times package.
No! As already told, package times is outdated. So the suggestion is not to add another encoding but to use another package instead of times.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply