Skip to content

Commit

Permalink
Fix noun image inclusion via two kluges
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kfogel committed Apr 8, 2020
1 parent 10136d0 commit c3d58d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) $@
Expand Down
6 changes: 1 addition & 5 deletions latex/otsletterhead2.ltx
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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}{[email protected]} \\
\vskip -1.5em \includesvg[height=1.5em]{noun_Telephone_2591756_ltgreen.svg}~
Expand Down

0 comments on commit c3d58d3

Please sign in to comment.