aboutsummaryrefslogtreecommitdiff
path: root/tex/src/preamble-pgfplots.tex
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2020-06-04 17:15:23 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2020-06-04 17:34:07 +0100
commit1637cce6617314de545dcb3b38f480f6a64c96e2 (patch)
tree0458085bd693cff71ecaf66fc903becd0df9b834 /tex/src/preamble-pgfplots.tex
parent6e26690be7b5f073105baaca088bbfb14d454f63 (diff)
Scale element in includegraphics for roughly similar-sized figures
Until now, when the figures were built directly from EPS ('\newcommand{\makepdf}{}' was commented), they would take the full line-width becoming a little too large! I noticed this after letting arXiv build the PDF. With this commit, the 'includetikz' tool takes a second argument to be a parameter given to 'includegraphics' (which is scale in this case).
Diffstat (limited to 'tex/src/preamble-pgfplots.tex')
-rw-r--r--tex/src/preamble-pgfplots.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/src/preamble-pgfplots.tex b/tex/src/preamble-pgfplots.tex
index eabdeb7..05e73b7 100644
--- a/tex/src/preamble-pgfplots.tex
+++ b/tex/src/preamble-pgfplots.tex
@@ -79,12 +79,12 @@
%% from. Without this, TiKZ will use numbers based on the order of
%% figures. These numbers can be hard to manage and they will also depend
%% on order in the final PDF, so it will be very buggy to manage them.
-\newcommand{\includetikz}[1]{%
+\newcommand{\includetikz}[2]{%
\ifdefined\makepdf%
\tikzsetnextfilename{#1}%
\input{tex/src/#1.tex}%
\else
- \includegraphics[width=\linewidth]{tex/tikz/#1.eps}
+ \includegraphics[#2]{tex/tikz/#1.eps}
\fi
}