From c3d58d3532311738dc562f29b1ef436f103a4653 Mon Sep 17 00:00:00 2001 From: Karl Fogel Date: Wed, 8 Apr 2020 00:51:38 -0500 Subject: [PATCH] Fix noun image inclusion via two kluges This fixes the problems described in issue #11, but is not a solution that anyone should invite home to dinner. See issue #12 for details. --- Makefile | 5 ++++- latex/otsletterhead2.ltx | 6 +----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index bc348f1..e15ad20 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,10 @@ all-redacted: %.pdf: %.ltx Makefile venv @rm -f $@ @${PIPELINE} $< --output $(<:.ltx=.tex) - @latexmk -pdf -pdflatex=$(PDFLATEX) -halt-on-error $(<:.ltx=.tex) + @# This next command is a kluge for issue 12 (part 1). + @cp $${OTS_DOCTOOLS_DIR}/latex/*.svg . + @# The '-shell-escape' here is a kluge; see issue 12 (part 2). + @latexmk -pdf -pdflatex=$(PDFLATEX) -halt-on-error -shell-escape $(<:.ltx=.tex) @rm -f $(@:.pdf=-$(REVBIN).pdf) @mv $@ $(@:.pdf=-$(REVBIN).pdf) @ln -sf $(@:.pdf=-$(REVBIN).pdf) $@ diff --git a/latex/otsletterhead2.ltx b/latex/otsletterhead2.ltx index 2da2d91..111ca1a 100644 --- a/latex/otsletterhead2.ltx +++ b/latex/otsletterhead2.ltx @@ -4,11 +4,6 @@ % Use \circlesep to get a tiny little OTS logo if you want it % somewhere in this letterhead. -% We need to do adjust the graphics search path so latex can find our -% paths: -% https://www.overleaf.com/learn/latex/Inserting_Images#The_folder_path_to_images -% For now, we're putting the images in the doc source dir, which is -% not cool. \vspace{0.5em} \begin{minipage}[c]{0.7\textwidth} \begin{figure}[H] @@ -18,6 +13,7 @@ \begin{minipage}[t]{0.25\textwidth} \vspace{-0.2em} \textcolor{dkergreen}{{\viiisf + % See issue #12 for some problems with the \includesvg calls below. \includesvg[height=0.85em]{noun_Email_3027864_ltgreen.svg}~~ \raisebox{0.1em}{info@opentechstrategies.com} \\ \vskip -1.5em \includesvg[height=1.5em]{noun_Telephone_2591756_ltgreen.svg}~