## Thursday, October 1, 2009

### Latex Tip: Author Affiliations

I've been writing in LaTeX a lot recently, and found a nice little package to use when composing a document with authors with different affiliations.  Often, author order is affiliation independent, so the authblk package makes all this possible.  Here's the sample code:

\documentclass[10pt]{article}

\usepackage{authblk}
\renewcommand\Affilfont{\itshape\small}

\begin{document}

\title{Author Affiliations in \LaTeX}
\author[,1]{Arthur A. Filliation\footnote{aaf@mail.com}}
\author[,2]{Arthur A. Filliation Jr.\footnote{aaf2@mail.com}}
\author[1]{Con T. Ributor}
\affil[1]{Department of Latex Studies.}
\affil[2]{Typesetters of America}
\date{\today}
\maketitle

\end{document}

A few notes.  First, renewing the command \Affilfont allows you to change the look of the affiliation list.   However, the small italic font seems pretty standard, so this is what I've always used.  Second, the option following the \author command adds a superscript corresponding to one of the affiliations stated by the \affil command. When using this command while also adding a footnote for contact information, the two superscripts will need to be separated by a comma.  You'll have to manually put this comma in after the \author command.  When all is said and done, you should get this:

1. Thanks for the tip

2. The footnotes don't show up for me. Any ideas? Otherwise cool.

3. DJ P: The only thing I could think of is that you have something suppressing all footnotes... does the regular \footnote{} command work for you? Perhaps you are using \pagestyle{empty} in your preamble?

4. 一個人就像一個分數，他的實際才能是分子，他對自己的評價是分母。分母越大，則分數的價值越小。..................................................

5. 「不可能」這個字詞，在聰明人的字典中是找不到的。......................................................

6. 人生最重要的一件事，就是從生活中認識你自己。 ..................................................

7. 向著星球長驅直進的人，反比踟躕在峽路上的人，更容易達到目的。............................................................

8. 快樂與滿足的秘訣，就在全心全意投注於現在的每一分，每一秒上..................................................

9. Riches serve a wise man but command a fool.............................................................

10. 一個人的價值，應該看他貢獻了什麼，而不是他取得了什麼....................................................

11. 愛情是一種發明，需要不斷改良。只是，這種發明和其他發明不一樣，它沒有專利權，隨時會被人搶走。.................................................................