Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

i m using following command.

\renewcommand{\familydefault}{\sfdefault}
\usepackage{arial}

but getting error message:

! LaTeX Error: File `arial.sty' not found. How can i fix this error.

Regards

share|improve this question

marked as duplicate by A.Ellett, Werner, T. Verron, Thorsten, Stefan Kottwitz Feb 19 '13 at 7:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Check out How to set font to Arial throughout the entire document?. You should be able to find your answer there. –  A.Ellett Feb 19 '13 at 5:24
    
Helvetica is a much appreciated original typeface. Try \usepackage{helvet} . –  Aydin Feb 19 '13 at 11:14

1 Answer 1

Does it have to be Arial or is Helvetica okay? If it is okay then use:

\usepackage[scaled]{helvet}
\renewcommand*\familydefault{\sfdefault}
\usepackage[T1]{fontenc}

If no, you can use uarial, an Arial clone (http://www.tug.dk/FontCatalogue/arial/).

To install:

a) follow http://www.tug.org/fonts/getnonfreefonts/ to install the getnonfreefonts script, it works on Windows as well

b) run getnonfreefonts --all(installs all URW fonts, run getnonfreefonts --help for more details)

c) Use the following in your document:

\usepackage[scaled]{uarial}
\renewcommand*\familydefault{\sfdefault} 
\usepackage[T1]{fontenc}

d) If you have Arial installed on your computer anyway, you can also use XeTeX/LuaTeX, as described in the mentioned How to set font to Arial throughout the entire document?:

\usepackage{fontspec}
\setmainfont{Arial}
share|improve this answer
    
I m using c) Use the following in your document: \usepackage[scaled]{uarial} \renewcommand*\familydefault{\sfdefault} \usepackage[T1]{fontenc} still output is Times New Roman –  user15662 Feb 19 '13 at 5:51
    
I don't think it's Times New Roman what you get, probably Computer Modern. What does the log file say? Create a minimal document where you just print a few words. I did the installation for my answer on Win 7/TeXlive 2012, worked like a charm. If you're on Linux you probably should read the help for getnonfreefonts there are some specifics concerning a user-wide resp. system-wide installation. –  Uwe Ziegenhagen Feb 19 '13 at 6:16
    
I have uploaeded output at postimage.org/image/e3g45h7uz/ae3c0d17 . MWE code: textuploader.com/?p=6&id=CHOwM –  user15662 Feb 19 '13 at 6:35
    
The log file might be more interesting. One remark: I did the installation on win 7, so I got no trouble with rights specific issues. Did you check the help, did you sudo the commands? What does the log file say about any errors? –  Uwe Ziegenhagen Feb 19 '13 at 7:23
    
i have uploaded log file but there is no error message. pastebin.ca/2315480 –  user15662 Feb 19 '13 at 7:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.