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:




40 comments:

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

    ReplyDelete
  2. 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?

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

    ReplyDelete
  4. 變天了~~注意身體,別感冒囉! .........................................

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

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

    ReplyDelete
  7. 人不能像動物一樣活著,而應該追求知識和美德....................................................................

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

    ReplyDelete
  9. 嗨!很喜歡來這欣賞你的作品,幫你推推推當上人氣王唷..................................................................

    ReplyDelete
  10. 開心不開心都是一天,祝您能夠笑著面對一切!............................................................

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

    ReplyDelete
  12. 「仁慈」二個字,就能讓冬天三個月都溫暖。..................................................

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

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

    ReplyDelete