Fonts & Character SetsHow to install and use the augie font on Ubuntu texlive

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
bigquestion
Posts: 3
Joined: Sat Oct 16, 2010 12:04 pm

How to install and use the augie font on Ubuntu texlive

Post by bigquestion »

"Augie" is a calligraphical font found in the LaTeX font archive: http://www.tug.dk/FontCatalogue/calligr ... fonts.html

I am using Ubuntu 10.10, having texlive installed, texlive-fonts-recommended and texlive-fonts-extra.

My basic document looks like this:

Code: Select all

\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage[scaled]{augie}
\renewcommand*\familydefault{\sfdefault}

\begin{document}
  \begin{frame}
    \frametitle{This is the first slide}
    %Content goes here
  \end{frame}
  \begin{frame}
    \frametitle{This is the second slide}
    \framesubtitle{A bit more information about this}
    %More content goes here
  \end{frame}
% etc
\end{document}
My basic document file is named beamerlatex.tex. The above gives the following error when issuing command latex beamerlatex.tex:

Code: Select all

! LaTeX Error: File `augie.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Googling for fonts installation and usage proved incredibly hard, and I am an experienced googler. There are many variables that need to be explained, preamble declaration, installation environment, system, file hierarchy, different font package files, etc. I have searched The Not so Short introduction and a couple of other pdfs as well. I took a look at the sticky.

If anybody could point me in the right direction, i.e where to find good documentation on how to install and use the exotic latex fonts, I'd be most grateful.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

How to install and use the augie font on Ubuntu texlive

Post by frabjous »

First, see whether or not the font definitions for augie are installed anywhere. You should be able to do this by opening a terminal and typing:

Code: Select all

kpsewhich t1augie.fd
If it returns anything at all, then you have the augie font installed, at least. (If it's not installed, we'll take it from there: worst case scenario you'd need to install the texlive-full Ubuntu package, which is huge. I'm not entirely sure in which subpackage it's located in offhand otherwise, if any.)

Anyway, on my system, the information about how to use the font on the LaTeX font catalogue is either wrong or outdated. There is no package augie.sty and searching CTAN for it turns up nothing. The very brief documentation for the font suggests a different approach. For a first attempt, drop the \usepackage{augie} line and try something like:

Code: Select all

\renewcommand*\sfdefault{augie}
\renewcommand*\familydefault{\sfdefault}
It worked for me anyway. (I actually doubt the second line is necessary in the beamer class, since if I remember correctly, it defaults to the sf family anyway.)

Do consider whether or not you really want to subject a poor audience to an entire presentation in a handwritten font, however.
bigquestion
Posts: 3
Joined: Sat Oct 16, 2010 12:04 pm

How to install and use the augie font on Ubuntu texlive

Post by bigquestion »

I got augie working by your method, so thanx. :) But like you said, I am not attempting to have the entire presentation in a cartoon font.

I would like to understand how to use fonts that I download manually. So far, I can't even understand why or how to use the ones I have installed through ubuntu repositories.

For instance, the \renewcommand method worked with augie, but not with arev. However, I got arev working by typing in \usepackage{arev}

Both arev and augie files are found on my system in /usr/share/texmf-texlive/tex/latex/. But arev comes with .sty files, and augie with .fd files.

This is seriously messy. How can I know what to put in the preamble, and which fonts are available to me? Right know, it seems like I have to look at available font folders under /usr/share/.... and then just guess what the name is called that I have to type in after \renewcommand, unless I happen to find an .sty file.

Surely there must be some easier way to use fonts?

And that is before I even mention how to install and use fonts not found on my ubuntu-laptop, like Starburst regular.

What is it, that I am to dumb to figure out?? Been trying for two days now...
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

How to install and use the augie font on Ubuntu texlive

Post by frabjous »

I have to confess I agree with you; font control in regular LaTeX or PDFLaTeX is far trickier than it feels like it should be. There are lots of reasons for this... the age of TeX and its having been created at time when font technologies were very different, the typographical fussiness it employs, the special needs of math typesetting. The list goes on. For the most part, for common fonts, you can use packages, and that makes it easy. But fonts like augie and Starburst are not common fonts, and have very little uses in the academic world, where LaTeX is most common. For those, no one has taken the time to work on perfecting a package. Do keep in mind that we're dealing with open source software, developed mainly by volunteers, who devote themselves to what they have most use for.

Anyway, if you're someone who wants a lot of font control, I recommend switching to XeLaTeX, which allows you to use any open type or true type font installed on your system very easily, and switch back and forth. See, e.g., the fontspec package and its documentation.

As near as I can tell, however, the instructions for Starburst in the LaTeX catalogue are correct, at least for a full TeXlive install. This works for me.

Code: Select all

\documentclass{article}
\input Starburst.fd
\newcommand*\initfamily{\usefont{U}{Starburst}{xl}{n}}

\begin{document}
    {\initfamily THIS IS STARBURST}
\end{document}
Of course remember that it only has uppercase letters.

Generally the instructions in the Font Catalogue can be trusted. Augie is an anomaly as far as I know.
bigquestion
Posts: 3
Joined: Sat Oct 16, 2010 12:04 pm

Re: Help me install and use the augie font!

Post by bigquestion »

Awesome! I got it working by using your .tex file, and by manually downloading and moving files around in my local texmf folder. Oooh, the satisfaction (some hours went into this.) Thankyouthankyouthankyou!!

But now I have seen many ways of declaring what type of font the final output should have. Is there one book among the heaps of LaTeX books that explains when to use \renewcommand, \input, \newcommand and \includepackage for including special fonts?

I forgot to disclose that I am a complete n00b, but that might just be evident by now...

Anyway, I am really thankful you guys could help me out on this. The combination of choosing the right code in the texfile, texhashing, updating maps, downloading and shoving files into correct folders, etc made it very hard for me to get even the most basic stuff right. I didn't mean to bash ppl delivering awesome software for free, I just released a sigh of frustration, having to register and ask on a forum is kinda last resort...
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

How to install and use the augie font on Ubuntu texlive

Post by frabjous »

No worries. It can be frustrating, definitely.

Let me try to begin to explain, the commands are not really so different. When you font load a package, the package contains just the kinds of commands you'd use if there was no package. The command I gave you originally for Augie defines the default Sans serif font as Augie and makes it the default family. When you load the arev package, inside that package is a command just like that one, except for its font instead. You never need to load any packages. You could rely on direct low level font-commands. You'll find a summary of these commands here.

The problem is that the direct font commands can get fairly complicated for the TeX fonts. Some TeX fonts have very advanced features, such as optical sizes (basically, this means you get slightly different characters at large font sizes as opposed to small font sizes), multiple subversions and series (e.g., Computer Modern has not just bold and italic and small caps, but things like ``bold extended'' for use in bold titles, etc.). Many of the fonts use different encodings. Often the math fonts are different than the text fonts, even the italic text fonts, to accommodate different kerning and ligature features. (E.g., you generally don't want ligatures in math code.) This complexity is largely responsible for why it is TeX looks so good compared to Word Processor output.

When a package is available, it combines together a whole range of different commands to automatically set things up for the right shape, series, assigned to the right ``semantic'' commands so that the author can focus on content rather than style. Most of them make the math mode fonts match the text mode fonts in the right way.

Decorative fonts like augie and starburst, however, usually just have one look, and have very limited uses. I guess people didn't see it as worthwhile to create a package for what represents a single command. And moreover, with those, it isn't cut and dried that you really want to set it as the ``default'' anything; I did that in my advice to you about augie, following your lead since it looked like in your sample that that's what you were trying to do. You could have used a command more like the command I gave for Starburst instead. But then it wouldn't be default; it would just apply to a limited region.

There is a uniform underlying syntax. You can for example, select a font family inside a document by using:

Code: Select all

\fontfamily{<fontname>}\selectfont
Putting that inside a group defined by { ... } will make the selection apply just inside that group. Witness the consistency of the results of something like:

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}

This is Computer Modern.

{\fontfamily{augie}\selectfont This is Augie.}

{\fontfamily{pag}\selectfont This is Avant Garde.}

{\fontfamily{fvs}\selectfont This is Bitstream Vera Sans.}

{\fontfamily{pbk}\selectfont This is Bookman.}

{\fontfamily{bch}\selectfont This is Charter.}

{\fontfamily{ccr}\selectfont This is Computer Concrete.}

{\fontfamily{pcr}\selectfont This is Courier.}

{\fontfamily{mdugm}\selectfont This is Garamond.}

{\fontfamily{phv}\selectfont This is Helvetica.}

{\fontfamily{fi4}\selectfont This is Inconsolata.}

{\fontfamily{fxb}\selectfont This is Linux Biolinum.}

{\fontfamily{fxl}\selectfont This is Linux Libertine.}

{\fontfamily{pnc}\selectfont This is New Century Schoolbook.}

{\fontfamily{ppl}\selectfont This is Palatino.}

{\fontfamily{ptm}\selectfont This is Times.}

{\fontfamily{uncl}\selectfont This is Uncial.}

{\fontfamily{put}\selectfont This is Utopia.}

{\fontfamily{pzc}\selectfont This is Zapf Chancery.}

\end{document}
That yields this:
fontlist.png
fontlist.png (32.11 KiB) Viewed 11427 times
So things aren't so strange after all. The hardest thing is remembering the names. (The older fonts use three-character names to adhere to a standard set back when filenames could only be so long. These are a PITA to remember--another advantage of packages.)

But there are reasons you don't see people using commands like that in a LaTeX document. Most importantly, it violates the wonderful value of separating form and content. That's why people generally prefer, when possible, to simply set defaults and load packages in the preamble rather than using low-level commands in the body. It makes switching styles so much easier, and keeps the author focused on content.

And generally, just because you can do something doesn't mean you should; using more than two fonts in a document is generally considered bad typography.

Actually installing things into the right folder, running texhash, etc., is another story altogether, and applies to everything TeX related, not just fonts. In your case, you're battling a clash of package-management systems, since TeXlive has its own package manager, but using it would conflict with Ubuntu's package manager, and when you try make do with the latter, sometimes things aren't optimal.
frisket
Posts: 1
Joined: Sat Feb 27, 2016 12:49 pm

Re: Help me install and use the augie font!

Post by frisket »

Augie is a part of the Emerald Font package, which is why there is no augie.sty on the Font Catalog. Just install the emerald package and update your font map and all will be well.

Postscript font installation is a little tricky but not hard. I documented the process here: http://latex.silmaril.ie/formattinginfo ... fonts.html

Otherwise, switch to XeLaTeX and use any TTF or OTF font installed on your system.

///Peter
Post Reply