Text Formattingone letter in arial in textbf

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
itb1000
Posts: 25
Joined: Mon Sep 29, 2008 4:19 pm

one letter in arial in textbf

Post by itb1000 »

Hi,
I write my text in bf style and would like to some letter or part of the text in arial font.
How can I do?
Tahnks,
Thierry

Recommended reading 2024:

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

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

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

one letter in arial in textbf

Post by phi »

This uses Helvetica, not Arial (Helvetica is better anyway):

Code: Select all

\documentclass{article}
\begin{document}
a{\fontsize{9pt}{0pt}\usefont{T1}{phv}{m}{n}b}c
\end{document}
Note that you have to alter the font size to align the x heights.
itb1000
Posts: 25
Joined: Mon Sep 29, 2008 4:19 pm

Re: one letter in arial in textbf

Post by itb1000 »

Hi,
Thanks for your help. I agree that Heltevita is nicer.
I tried the sequence but it does not work out.
I got an error message and the pdf file is not created.
I would like to get the "A" in Helvetica in the following sentence, the remaining text is the textbf style:
The spectrum of bob is shown in figure 1A.

Thanks in advance for your help.
Thierry
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: one letter in arial in textbf

Post by phi »

If my example doesn't compile, then Helvetica is not installed. This is odd, since it should be available on even the most basic TeX system. What error message do you get?
itb1000
Posts: 25
Joined: Mon Sep 29, 2008 4:19 pm

Re: one letter in arial in textbf

Post by itb1000 »

I get the following message:

PDFLaTeX failed to create a pdf file
For possible explanations start the command from the command prompt...

Thierry
Post Reply