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
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
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}
\usepackage[scaled]{uarial} \renewcommand*\familydefault{\sfdefault} \usepackage[T1]{fontenc} still output is Times New Roman
– manish Feb 19 '13 at 05:51Computer 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 06:16
sudo the commands? What does the log file say about any errors?
– Uwe Ziegenhagen
Feb 19 '13 at 07:23
\usepackage{helvet}. – Aydin Feb 19 '13 at 11:14