13.11.2015 Views

my Latex and Tex4ht cheat sheet

my Latex cheat sheet - 12000.org

my Latex cheat sheet - 12000.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

\documentclass{article}<br />

\usepackage[no-math]{fontspec}<br />

\setmainfont[<br />

Ligatures=TeX,<br />

]{Architect}<br />

\begin{document}<br />

This is some TEXT.<br />

\end{document}<br />

Then compile using xelatex foo.tex. The fonts used above, called Architect was downloaded from<br />

http://www.911fonts.com/font/download_StylusITCTTRegular_66.htm<br />

See using-h<strong>and</strong>writing-font-in-proofs for more information.<br />

Some fonts utilities on linux<br />

kcharselect<br />

gfontsel<br />

xfontsel<br />

xlsfonts<br />

chkfontpath<br />

fslsfonts<br />

It seems on Linux one needs to just create $HOME/.fonts/ folder <strong>and</strong> put the .tff files there.<br />

For example, I downloaded zip file from the above, extracted it, <strong>and</strong> copied one .tff file to<br />

>pwd<br />

/home/me/.fonts<br />

>ls -l<br />

-rwxr-xr-x 1 me me 36708 Sep 22 02:09 17273_architectbold.ttf<br />

Now, make sure to rename the file above to match the actual font name as given inside the file. Double<br />

clicking on the file at least on windows, <strong>and</strong> look for the font name. do not use the file name itself. Must rename<br />

the file to match the font name. For the above, I did<br />

>mv 17273_architectbold.ttf Architect-Bold.ttf<br />

Since Architect-Bold was the actual font name.<br />

And changed the latex file to the exact file name above as follows<br />

\documentclass{article}<br />

\usepackage[no-math]{fontspec}<br />

\setmainfont[<br />

Ligatures=TeX,<br />

]{Architect-Bold}<br />

\begin{document}<br />

This is some TEXT.<br />

\end{document}<br />

35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!