Skip to content

Commit d49be7b

Browse files
committedJan 3, 2015
Automatically use more descriptive figure names
Additionally: - improve performance for certain normal tikzpictures - improve reliability for figures with externalization size errors
1 parent 5fa0b84 commit d49be7b

File tree

3 files changed

+194
-77
lines changed

3 files changed

+194
-77
lines changed
 

‎3Dplot.tikz

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
\tdplotsetmaincoords{77}{-8}%
2-
\begin{tikzpicture}[tdplot_main_coords]%
2+
\begin{tikzpicture}[%
3+
tdplot_main_coords,%
4+
show background rectangle,%
5+
background rectangle/.style={fill=yellow}
6+
]%
37
\draw [->] (0,0,0) -- (1,0,0) node[below] {$x_1$};%
48
\draw [->] (0,0,0) -- (0,0,1) node[left] {$x_2$};%
59
\draw [->] (0,0,0) -- (0,1,0) node[left] {$x_3$};%

‎test-tikzscale.tex

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
\usepackage{tikz}
66
\usepackage{pgfplots}
77
\usepackage{tikz-3dplot}
8+
\usetikzlibrary{backgrounds}
89
\usepackage{currfile}
910
\usepackage{lmodern}
1011
% Use the package subcaption to test the subfigure command
@@ -18,6 +19,8 @@
1819
\tikzexternalize
1920
% \tikzexternalize[mode=list and make]
2021
% \tikzexternaldisable % activate this line and test without "shell-escape" and without \tikzexternalenable below
22+
\providecommand\tikzexternalenable{}
23+
\providecommand\tikzexternaldisable{}
2124
\ifpdf
2225
\else
2326
\tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"; dvips -o "\image".ps "\image".dvi}}
@@ -92,8 +95,10 @@
9295
\includegraphics[width=\linewidth,height=0.5\linewidth]{histogramNormal}%
9396
\item {Use \texttt{\textbackslash graphicspath} with superfluous space\graphicspath{{somefolder} } (only defined locally for the current item)
9497
\includegraphics{testRectangle.tikz}}%
95-
\item Use a tikz-3Dplot, which is known to have a different size after externalization compared to the measurements without externalization and is thus rebuilt every time if the counter-measurements are not successful.\\%
98+
\item Use a tikz-3Dplot, which is known to have a different size after externalization compared to the measurements without externalization and is thus rebuilt every time if the counter-measurements are not successful or externalized with the wrong size. Please check, that the size is too small after the first compilation and is correct after the second compilation\\%
9699
\includegraphics[width=\linewidth]{3Dplot}
100+
\item This has the correct size (found by outputting the width before the externalization) after the first compilation and is too wide after the second compilation.\\%
101+
\includegraphics[width=2*209.49997-202.83287]{3Dplot}
97102
\end{itemize}
98103

99104
\begin{figure}

0 commit comments

Comments
 (0)