From 21f8d0e7251f14f1a1f6966ca1046be1c9e9f869 Mon Sep 17 00:00:00 2001 From: Rob Hyndman Date: Tue, 20 Dec 2022 15:01:06 +1100 Subject: [PATCH] Avoid duplication of image files --- _extensions/letter/_extension.yml | 7 ------- _extensions/letter/monashletter.tex | 14 +++++++++----- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/_extensions/letter/_extension.yml b/_extensions/letter/_extension.yml index bbd9221..721512c 100644 --- a/_extensions/letter/_extension.yml +++ b/_extensions/letter/_extension.yml @@ -6,10 +6,3 @@ contributes: pdf: template: monashletter.tex pdf-engine: pdflatex - format-resources: - - AACSB.png - - AMBA.png - - EQUIS.png - - MBSportrait.jpg - - monash2.png - - sigfile.png diff --git a/_extensions/letter/monashletter.tex b/_extensions/letter/monashletter.tex index 4e703f8..caadb25 100644 --- a/_extensions/letter/monashletter.tex +++ b/_extensions/letter/monashletter.tex @@ -179,10 +179,10 @@ \makeatletter \def\ps@monash{% \begin{textblock}{4}(2,1) -\includegraphics[height=1.5cm]{monash2} +\includegraphics[height=1.5cm]{_extensions/numbats/letter/monash2} \end{textblock}% \begin{textblock}{4}(17,1) -\includegraphics[height=1.5cm]{MBSportrait} +\includegraphics[height=1.5cm]{_extensions/numbats/letter/MBSportrait} \end{textblock}% \begin{textblock}{10}(1.2,26.4) {\fontsize{9}{8}\selectfont\sffamily\color[gray]{0.4}% @@ -197,9 +197,9 @@ \end{tabular}} \end{textblock}% \begin{textblock}{7}(12.7,28.2)\hfill -\includegraphics[height=0.6cm]{AACSB}~~~ -\includegraphics[height=0.6cm]{EQUIS}~~~ -\includegraphics[height=0.6cm]{AMBA} +\includegraphics[height=0.6cm]{_extensions/numbats/letter/AACSB}~~~ +\includegraphics[height=0.6cm]{_extensions/numbats/letter/EQUIS}~~~ +\includegraphics[height=0.6cm]{_extensions/numbats/letter/AMBA} \end{textblock} \def\thepage{}} @@ -228,6 +228,10 @@ % Fix href problems \def\href#1{} +% Find signature file +% Other images include full path in case user sets graphicspath +\graphicspath{{_extensions/numbats/letter/}} + $for(header-includes)$ $header-includes$ $endfor$