How do I use different fonts in Latex documents with Miktex?

  • Thread starter Thread starter gnome
  • Start date Start date
Click For Summary
Using different fonts in LaTeX documents with MikTeX can be challenging due to the complexity of font commands and file structures. The standard distribution includes a variety of fonts, but users often struggle to connect font names with their corresponding files. Commands like \fontfamily{} and \selectfont are essential for font selection, yet many tutorials do not clarify their usage effectively. Specific examples of font commands demonstrate how to load and scale fonts, such as rsfs10 and cmr10, to achieve desired typographic effects. Understanding these commands allows users to incorporate various fonts, including Calligraphic characters, into their documents effectively.
gnome
Messages
1,031
Reaction score
1
I've been trying, unsuccessfully, to figure out how to use different fonts in Latex documents.

It seems that the standard distribution comes with a nice selection of fonts
(see "ftp://tug.ctan.org/pub/tex-archive/info/fontsampler/sampler.pdf"[/URL] ) but apparently only 10 people in the world know how to use them. Hopefully, at least one of the initiated is a PF-er.

I see that there are commands like \fontfamily{} and \selectfont. And I see in my Miktex\fonts\source directory various subdirectories with names like \ams, \tfm, \type1, \vf, and in sub-subdirectories under those there are numerous files with extensions .mf, .tfm, .pfb, .vf, which I imagine must be the fonts.

I've looked in various tutorials, like http://www.ctan.org/tex-archive/info/beginlatex/beginlatex.pdf"
and
[PLAIN]http://www.physics.umn.edu/support/doc/latex/lshort.pdf"
but I can't figure out exactly what to put into those commands, how to connect a fontname with the corresponding filename, or how the Latex concepts of fontfamily and fontshape relate to specific font designs.

In particular, I'd like to use a few characters from the Calligraphic font in the "Other Scripts Collection" near the bottom of page 2 of the ctan.org "sampler.pdf" in the first link above. How?
 
Last edited by a moderator:
Computer science news on Phys.org
Well, this is probably not the best way to do it, but I found a command to load a font, & (amazing luck) on the first try I found the font I was looking for.

Here are commands for several fonts that were in the "small miktex" package. If you use miktex you might want to paste them into a document & see what they do.

Code:
\documentclass[12 pt]{article}

\begin{document}

rsfs10 (apparently this one has caps only):

\font\testA = rsfs10
\testA ABCDEabcde

\normalfont bigger:

\font\testb = rsfs10  scaled \magstep 1
\testb  ABCDEabcde

\normalfont still bigger:

\font\testc = rsfs10  scaled \magstep 2
\testc ABCDEFGHIJKLMNOPQRSTUVWXYZ

\normalfont cmr10:

\font\testl = cmr10 scaled \magstep 1
\testl ABCDEFGHIJKL abcdefghijkl

\normalfont cmmi10:

\font\testd = cmmi10 scaled \magstep 1
\testd ABCDEFGHIJKL abcdefghijkl

\normalfont
cmbx10:

\font\testn = cmbx10 scaled \magstep 1
\testn testing one two

\normalfont xbmc10 (this one is interesting):

\font\teste = xbmc10   scaled \magstep 1
\teste ZYXWVUTSRQPONMLKJ

\testn testing one two \teste owt eno gnitset

\normalfont

back to normalfont

\font\testf = pcrr7tn % scaled \magstep 2
\testf pcrr7tn PCRR7TN

\font\testg = pcrr8tn % scaled \magstep 2
\testg pcrr8tn PCRR8TN

\font\testh = zplmr7t % scaled \magstep 2
\testh zplmr7t

\font\testi = aett10 % scaled \magstep 2
\testi aett10 AETT10

\font\testj = aessi10 % scaled \magstep 2
\testj aessi10 AESSI10

% \font\testk = bchr8t % scaled \magstep 2 
 bchr8t BCHR8T wanted to install public domain adobe fonts

%\font\testk = putrc8t % scaled \magstep 2
putrc8t wanted to install miktex/tm/packages

\font\testk = putr8c % scaled \magstep 2
\testk putr8c

\normalfont
above was printed by "putr8c"\font\testz = cmbsy7  scaled \magstep 1
\testz cmbsy7 TLSR

\normalfont
above was printed by "cmbsy7"

\font\testm = aesl10 % scaled \magstep 1
\testm aesl10

\end{document}
 
Last edited:
I am having a hell of a time finding a good all-in-one inkjet printer. I must have gone through 5 Canon, 2 HP, one Brother, one Epson and two 4 X 6 photo printers in the last 7 yrs. all have all sort of problems. I don't even know where to start anymore. my price range is $180-$400, not exactly the cheapest ones. Mainly it's for my wife which is not exactly good in tech. most of the problem is the printers kept changing the way it operate. Must be from auto update. I cannot turn off the...

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
4
Views
19K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 15 ·
Replies
15
Views
25K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K