Fonts & Character Sets ⇒ Package times - no bold fonts
Package times - no bold fonts
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.
\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.
Package times - no bold fonts
http://www.tug.dk/FontCatalogue/
=>
"Serif Fonts"
=>
"Times"
=>
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.
=>
"Serif Fonts"
=>
"Times"
=>
Code: Select all
\usepackage{mathptmx}

(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
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Package times - no bold fonts
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
[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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Package times - no bold fonts
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:
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\,}}
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Package times - no bold fonts
Another solution could be to borrow the definition of the concerned command from latex.ltx and modify it.
These lines go into the preamble. If you want to keep the command name, replace the middle line as follows.
Code: Select all
\makeatletter
\def\tg{\mathop{\operator@font tg}\nolimits}
\makeatother
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: Package times - no bold fonts
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
\usepackage[T1,plmath]{polski}
and everything works like a charm

Package times - no bold fonts
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.
Package times - no bold fonts
You also have to add some encoding along with times package.
should do it.
If you want more options, you can compile your document using xelatex and use the fontspec package.
Code: Select all
\usepackage[T1]{fontenc}
\usepackage{times}
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}
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Package times - no bold fonts
If you reply to a very, very old discussion, please read the at least the already existing comments!
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.davidrm wrote:You also have to add some encoding along with times package.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. 
