Fonts & Character Setstxfonts | Changing Font Size of Times New Roman

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
prakasam
Posts: 4
Joined: Sat Feb 18, 2012 3:50 pm

txfonts | Changing Font Size of Times New Roman

Post by prakasam »

I want to write a document in Times new roman font with text size of 13. I used txfonts package. When I use \fontsize{13}{12}\selectfont, fontsize is not changed. Please help me ...

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

txfonts | Changing Font Size of Times New Roman

Post by Stefan Kottwitz »

Hi,

welcome to the board!

You should provide further information, what code you are using, because \fontsize{13}{12}\selectfont works. You can see it in this small example:

Code: Select all

\documentclass{article}
\usepackage{txfonts}
\begin{document}
Text\fontsize{13}{12}\selectfont Text
 \end{document}
fontsize.png
fontsize.png (1.96 KiB) Viewed 9366 times
The best would be if you provide a Infominimal working example which shows your code and that it doesn't work, so we could tell you what the problem is and how it can be fixed.

Stefan
LaTeX.org admin
prakasam
Posts: 4
Joined: Sat Feb 18, 2012 3:50 pm

Re: txfonts | Changing Font Size of Times New Roman

Post by prakasam »

Thanks for help...

I entered the command \fontsize in preamble. When I entered in body of the document, it displayed correctly.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

txfonts | Changing Font Size of Times New Roman

Post by Stefan Kottwitz »

If I would use a font size command in the preamble, I would adjust either the base font size of the document, or use \fontsize or related commands within a redefinition of LaTeX commands such as \normalsize, \large, \small etc. Or does the font size in your document never change, even for headings?

If you directly change the font size in the preamble, it would not have effect in the document, a \begin{document} implicitly means calling \normalsize.

If you mean to adjust the base font size of the document, I would use a class option. With KOMA-Script classes, arbitrary sizes and units are possble, such as

Code: Select all

\documentclass[fontsize=13pt]{scrartcl}
Stefan
LaTeX.org admin
Post Reply