LaTeX forum ⇒ GeneralHelp to build a simple template

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 4
Joined: Mon Jun 17, 2019 1:21 pm

Help to build a simple template

Postby otyugh » Mon Jun 17, 2019 1:47 pm

I just finished my "simple template for french guys". There is one last thing I don"t get to do, is how to make a "conditionality" on a variable. Let review my actual template below.



%Wokaround (pandoc complains otherwise)


%interligne plus ahéré
\setlength{\parskip}{6pt plus 2pt minus 1pt}

{\bfseries\Huge $title$}
{\normalsize $author$\vskip5pt}
PDF généré le \today\vskip5pt



What I want to improve is the line "\includegraphics[width=8cm]{img/logo.png}" ; I'd want "img/logo.png" to be a variable loaded from the document, and if not set, or empty, or with a path leading to a non-existing file, to do an alternate thing instead of crashing.

Could you give me a pointer on to what I should do/where I should read ?

Return to “General”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 6 guests