From: Stroller <lin...@my...> - 2007-04-10 22:22:00
|
Hi there, After a recent hard-drive failure on my server I'm currently redoing the layout of my invoice.tex I had been foresighted enough to do a daily pg_dumpall & email the results to myself (saving a copy on my desktop PC) but had not thought to backup this important file!! :( Anyway, if I make the following minimum case invoice template & email an invoice to myself, only the first image (A:) is shown: \documentclass{minimal} \usepackage[a4paper,landscape,dvips]{geometry} \geometry{a4paper,landscape, nohead,nofoot, left=15mm,right=15mm,top=1cm,bottom=1cm} \usepackage{graphicx} \usepackage{ifpdf} \begin{document} \thispagestyle{empty} \noindent A: \includegraphics[scale=1]{/usr/local/sql-ledger/templates/stroller/ logo-colour} B: \includegraphics[scale=1]{./logo-colour} C: \includegraphics[scale=1]{logo-colour} \end{document} In the default letterhead.tex the path to the image files is defined as "../<%templates%>/<%language_code%>/logo". Is there some similar variable which allows me to say "../stroller/logo"? EG: ../<%user%>/ logo"? I have tried <%user%>, <%employee%> and <%employee_id%>, none of which work, but I thought there might be another variable I'm not aware of? Strangely, if I compile the invoice.tex manually (I tend just to use `rubber --pdf /usr/local/sql-ledger/templates/stroller/invoice.tex`) then LaTeX only b0rks out on the _second_ image (B:). Even though I'm working from my home directory, "\includegraphics[scale=1]{logo- colour}" seems to look in the same directory as that in which the .tex file resides - "./logo-colour" appears to look in the current working directory (which is what I would have expected from C:, too, to be honest). Any suggestions? Stroller. |