\documentclass{article} \nofiles \usepackage{varsfromjobname} \date{January 11th 2009} \author{Uwe Ziegenhagen} \title{\texttt{varsfromjobname} Description} \begin{document} \maketitle \noindent Using \texttt{varsfromjobname.sty} one can easily extract information from the filename, if it follows a certain form. The LaTeX command \verb|\|jobname returns the name of the LaTeX file. If the filename consists of tokens separated by hyphen we can easily extract certain tokens that can be used inside the document. The package expects the filename to be of the form \noindent\texttt{one-two-three-four-five-six-seven-eight-nine.tex} \noindent and offers the following commands: \begin{itemize} \item \verb|\|getfromjobname\{\textit{param}\}, with \textit{param} in the range of 1 to 9 (highlevel interface to the following commands) \item \verb|\|getonefromjobname \item \verb|\|gettwofromjobname \item \verb|\|getthreefromjobname \item \verb|\|getfourfromjobname \item \verb|\|getfivefromjobname \item \verb|\|getsixfromjobname \item \verb|\|getsevenfromjobname \item \verb|\|geteightfromjobname \item \verb|\|getninefromjobname \end{itemize} \end{document}