From b4500debd975a880a56825578fb57a03840aec42 Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@tutamail.com> Date: Wed, 3 Feb 2021 04:40:25 +0100 Subject: [PATCH] allow \pic command to do jpg and svg --- bind.sty | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bind.sty b/bind.sty index b5683c48..f1d75ba3 100644 --- a/bind.sty +++ b/bind.sty @@ -217,7 +217,12 @@ bookmarks=true]% \newcommand{\headingtype}{CHAPTER} \newcommand{\pic}[1]{ - \noindent\includesvg[width=\linewidth]{images/#1} + \noindent% + \IfFileExists{images/#1.jpg}{% + \includegraphics[width=\linewidth]{images/#1} + }{% + \noindent\includesvg[width=\linewidth]{images/#1} + } } @@ -290,7 +295,7 @@ bookmarks=true]% [\rule{.9\linewidth}{.2pt}] % \titleformat{\subsubsection} -{\needspace{4em}\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{} +{\needspace{3em}\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{} %%%%% Character Sheet Tracker -- GitLab