TikZ plots get recompiled every time when using tikzscaleTikZ External and tikzscale: Figure is regenerated...
Make me a metasequence
Which aircraft had such a luxurious-looking navigator's station?
When should a commit not be version tagged?
When was drinking water recognized as crucial in marathon running?
Why does the author believe that the central mass that gas cloud HCN-0.009-0.044 orbits is smaller than our solar system?
How to properly claim credit for peer review?
What is a term for a function that when called repeatedly, has the same effect as calling once?
What is the wife of a henpecked husband called?
How to mitigate "bandwagon attacking" from players?
How to speed up a process
What's the purpose of these copper coils with resistors inside them in A Yamaha RX-V396RDS amplifier?
Does music exist in Panem? And if so, what kinds of music?
How can I handle a player who pre-plans arguments about my rulings on RAW?
Logistics of a hovering watercraft in a fantasy setting
Borrowing Characters
Hacker Rank: Array left rotation
Reason Why Dimensional Travelling Would be Restricted
Is my plan for fixing my water heater leak bad?
As a new poet, where can I find help from a professional to judge my work?
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
Auto Insert date into Notepad
I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?
What am I? I am in theaters and computer programs
TikZ plots get recompiled every time when using tikzscale
TikZ External and tikzscale: Figure is regenerated every timePeculiar tikz-external, pgfplots, tikzscale combination problemHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Crashes when using tikzscale and hyperreftikzscale not working with externalize using named onlytcolorbox: remember height and tikz-external and tikzscalepgfplots: percentage in matrix plotHow to export plots with 2 y-axis into tikz with matlab2tikzDrawing signal-time plots using TikzIncompatibility between 'tikzscale' and tikz 'circuits' library
For my thesis I have a lot of TikZ plots exported from Matlab using the matlab2tikz
library.
I want to use the tikzscale
package together with externalization of the plots to save compiling time. Using externalization is recommended in the tikzscale
documentation but does not work as expected.
Plots included via includegraphics
to make use of the tikzscale
are recompiled with every pdflatex
run, even if the figure is not changed, this is not the expected behaviour and causes the compiling time to become even longer.
Plots included via input
, so not making use of the tikzscale
, features are not recompiled, this is what I expect.
Am I doing something wrong during the export with matlab2tikz
or with including the .tikz
files with includegraphics
or is this a bug of the tikzscale
package?
I need the additional scaling features of tikzscale
, so I cannot simply avoid the tikzscale
package.
Setup: WIN7+TexLive2014 / Ubuntu 14.04+TexLive2013, behaviour is the same on both systems
MWE:
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{pgfplots}
usepackage{tikzscale}
usepgfplotslibrary{external}
tikzexternalize[prefix=tikzTest/]
newlengthfigureheight
newlengthfigurewidth
begin{document}
begin{figure}
tikzsetnextfilename{test}
includegraphics[width=0.75textwidth]{tikzTest/test.tikz}
end{figure}
begin{figure}
setlengthfigureheight{0.75textwidth}
setlengthfigurewidth{0.75textwidth}
tikzsetnextfilename{test2}
input{tikzTest/test2.tikz}
end{figure}
end{document}
Matlab export
x = linspace(0,10,11);
y = x.^2;
figure(1);
plot(x,y);
cleanfigure;
%prepare figure to be included with tikzscale and includegraphics
matlab2tikz('<pathToTexFolder>tikzTestTest.tikz','noSize',true,'extraTikzpictureOptions','trim axis left, trim axis right');
%prepare figure to be included with input
matlab2tikz('<pathToTexFolder>tikzTestTest2.tikz','height','figureheight','width','figurewidth');
test.tikz
% This file was created by matlab2tikz.
% Minimal pgfplots version: 1.3
%
%The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
begin{tikzpicture}[%
trim axis left, trim axis right
]
begin{axis}[%
separate axis lines,
every outer x axis line/.append style={black},
every x tick label/.append style={font=color{black}},
xmin=0,
xmax=10,
every outer y axis line/.append style={black},
every y tick label/.append style={font=color{black}},
ymin=0,
ymax=100
]
addplot [color=black,solid,forget plot]
table[row sep=crcr]{%
0 0\
1 1\
2 4\
3 9\
4 16\
5 25\
6 36\
7 49\
8 64\
9 81\
10 100\
};
end{axis}
end{tikzpicture}%
test2.tikz
% This file was created by matlab2tikz.
% Minimal pgfplots version: 1.3
%
%The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
begin{tikzpicture}
begin{axis}[%
width=0.95092figurewidth,
height=figureheight,
at={(0figurewidth,0figureheight)},
scale only axis,
separate axis lines,
every outer x axis line/.append style={black},
every x tick label/.append style={font=color{black}},
xmin=0,
xmax=10,
every outer y axis line/.append style={black},
every y tick label/.append style={font=color{black}},
ymin=0,
ymax=100
]
addplot [color=black,solid,forget plot]
table[row sep=crcr]{%
0 0\
1 1\
2 4\
3 9\
4 16\
5 25\
6 36\
7 49\
8 64\
9 81\
10 100\
};
end{axis}
end{tikzpicture}%
tikz-pgf tikz-external matlab2tikz tikzscale
|
show 1 more comment
For my thesis I have a lot of TikZ plots exported from Matlab using the matlab2tikz
library.
I want to use the tikzscale
package together with externalization of the plots to save compiling time. Using externalization is recommended in the tikzscale
documentation but does not work as expected.
Plots included via includegraphics
to make use of the tikzscale
are recompiled with every pdflatex
run, even if the figure is not changed, this is not the expected behaviour and causes the compiling time to become even longer.
Plots included via input
, so not making use of the tikzscale
, features are not recompiled, this is what I expect.
Am I doing something wrong during the export with matlab2tikz
or with including the .tikz
files with includegraphics
or is this a bug of the tikzscale
package?
I need the additional scaling features of tikzscale
, so I cannot simply avoid the tikzscale
package.
Setup: WIN7+TexLive2014 / Ubuntu 14.04+TexLive2013, behaviour is the same on both systems
MWE:
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{pgfplots}
usepackage{tikzscale}
usepgfplotslibrary{external}
tikzexternalize[prefix=tikzTest/]
newlengthfigureheight
newlengthfigurewidth
begin{document}
begin{figure}
tikzsetnextfilename{test}
includegraphics[width=0.75textwidth]{tikzTest/test.tikz}
end{figure}
begin{figure}
setlengthfigureheight{0.75textwidth}
setlengthfigurewidth{0.75textwidth}
tikzsetnextfilename{test2}
input{tikzTest/test2.tikz}
end{figure}
end{document}
Matlab export
x = linspace(0,10,11);
y = x.^2;
figure(1);
plot(x,y);
cleanfigure;
%prepare figure to be included with tikzscale and includegraphics
matlab2tikz('<pathToTexFolder>tikzTestTest.tikz','noSize',true,'extraTikzpictureOptions','trim axis left, trim axis right');
%prepare figure to be included with input
matlab2tikz('<pathToTexFolder>tikzTestTest2.tikz','height','figureheight','width','figurewidth');
test.tikz
% This file was created by matlab2tikz.
% Minimal pgfplots version: 1.3
%
%The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
begin{tikzpicture}[%
trim axis left, trim axis right
]
begin{axis}[%
separate axis lines,
every outer x axis line/.append style={black},
every x tick label/.append style={font=color{black}},
xmin=0,
xmax=10,
every outer y axis line/.append style={black},
every y tick label/.append style={font=color{black}},
ymin=0,
ymax=100
]
addplot [color=black,solid,forget plot]
table[row sep=crcr]{%
0 0\
1 1\
2 4\
3 9\
4 16\
5 25\
6 36\
7 49\
8 64\
9 81\
10 100\
};
end{axis}
end{tikzpicture}%
test2.tikz
% This file was created by matlab2tikz.
% Minimal pgfplots version: 1.3
%
%The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
begin{tikzpicture}
begin{axis}[%
width=0.95092figurewidth,
height=figureheight,
at={(0figurewidth,0figureheight)},
scale only axis,
separate axis lines,
every outer x axis line/.append style={black},
every x tick label/.append style={font=color{black}},
xmin=0,
xmax=10,
every outer y axis line/.append style={black},
every y tick label/.append style={font=color{black}},
ymin=0,
ymax=100
]
addplot [color=black,solid,forget plot]
table[row sep=crcr]{%
0 0\
1 1\
2 4\
3 9\
4 16\
5 25\
6 36\
7 49\
8 64\
9 81\
10 100\
};
end{axis}
end{tikzpicture}%
tikz-pgf tikz-external matlab2tikz tikzscale
Plan B:external/export next=false
– Symbol 1
Mar 4 '15 at 15:03
when using external/export next =false, will this only omit creating external pdfs while already exported pdfs (from a previous run) will still be included in the document or will the pdf not be used at all?
– roteiro
Mar 5 '15 at 9:06
Experiments shows that TikZ love compiling pictures... you can only turn it on but cannot stop it. In caseexport next=false
, TikZ will leave the external PDFs there and recompile pictures again per compilation. Probability you need a complex macro to include those pictures and comment out thetikzpicture
yourself. (Will this is plan B--)
– Symbol 1
Mar 5 '15 at 15:38
@Symbol Thanks for your comment, this was what I was afraid of. Still I can't really believe thattikzcale
documentation encourages the user to use externalization because of faster compiling times but does not avoid recompiling tikz-pictures. Either I implemented it wrong or there is a bug in thetikzscale
package
– roteiro
Mar 5 '15 at 15:57
Problem still persists, opened a bug report at tikzscale github
– roteiro
Feb 9 '16 at 8:55
|
show 1 more comment
For my thesis I have a lot of TikZ plots exported from Matlab using the matlab2tikz
library.
I want to use the tikzscale
package together with externalization of the plots to save compiling time. Using externalization is recommended in the tikzscale
documentation but does not work as expected.
Plots included via includegraphics
to make use of the tikzscale
are recompiled with every pdflatex
run, even if the figure is not changed, this is not the expected behaviour and causes the compiling time to become even longer.
Plots included via input
, so not making use of the tikzscale
, features are not recompiled, this is what I expect.
Am I doing something wrong during the export with matlab2tikz
or with including the .tikz
files with includegraphics
or is this a bug of the tikzscale
package?
I need the additional scaling features of tikzscale
, so I cannot simply avoid the tikzscale
package.
Setup: WIN7+TexLive2014 / Ubuntu 14.04+TexLive2013, behaviour is the same on both systems
MWE:
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{pgfplots}
usepackage{tikzscale}
usepgfplotslibrary{external}
tikzexternalize[prefix=tikzTest/]
newlengthfigureheight
newlengthfigurewidth
begin{document}
begin{figure}
tikzsetnextfilename{test}
includegraphics[width=0.75textwidth]{tikzTest/test.tikz}
end{figure}
begin{figure}
setlengthfigureheight{0.75textwidth}
setlengthfigurewidth{0.75textwidth}
tikzsetnextfilename{test2}
input{tikzTest/test2.tikz}
end{figure}
end{document}
Matlab export
x = linspace(0,10,11);
y = x.^2;
figure(1);
plot(x,y);
cleanfigure;
%prepare figure to be included with tikzscale and includegraphics
matlab2tikz('<pathToTexFolder>tikzTestTest.tikz','noSize',true,'extraTikzpictureOptions','trim axis left, trim axis right');
%prepare figure to be included with input
matlab2tikz('<pathToTexFolder>tikzTestTest2.tikz','height','figureheight','width','figurewidth');
test.tikz
% This file was created by matlab2tikz.
% Minimal pgfplots version: 1.3
%
%The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
begin{tikzpicture}[%
trim axis left, trim axis right
]
begin{axis}[%
separate axis lines,
every outer x axis line/.append style={black},
every x tick label/.append style={font=color{black}},
xmin=0,
xmax=10,
every outer y axis line/.append style={black},
every y tick label/.append style={font=color{black}},
ymin=0,
ymax=100
]
addplot [color=black,solid,forget plot]
table[row sep=crcr]{%
0 0\
1 1\
2 4\
3 9\
4 16\
5 25\
6 36\
7 49\
8 64\
9 81\
10 100\
};
end{axis}
end{tikzpicture}%
test2.tikz
% This file was created by matlab2tikz.
% Minimal pgfplots version: 1.3
%
%The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
begin{tikzpicture}
begin{axis}[%
width=0.95092figurewidth,
height=figureheight,
at={(0figurewidth,0figureheight)},
scale only axis,
separate axis lines,
every outer x axis line/.append style={black},
every x tick label/.append style={font=color{black}},
xmin=0,
xmax=10,
every outer y axis line/.append style={black},
every y tick label/.append style={font=color{black}},
ymin=0,
ymax=100
]
addplot [color=black,solid,forget plot]
table[row sep=crcr]{%
0 0\
1 1\
2 4\
3 9\
4 16\
5 25\
6 36\
7 49\
8 64\
9 81\
10 100\
};
end{axis}
end{tikzpicture}%
tikz-pgf tikz-external matlab2tikz tikzscale
For my thesis I have a lot of TikZ plots exported from Matlab using the matlab2tikz
library.
I want to use the tikzscale
package together with externalization of the plots to save compiling time. Using externalization is recommended in the tikzscale
documentation but does not work as expected.
Plots included via includegraphics
to make use of the tikzscale
are recompiled with every pdflatex
run, even if the figure is not changed, this is not the expected behaviour and causes the compiling time to become even longer.
Plots included via input
, so not making use of the tikzscale
, features are not recompiled, this is what I expect.
Am I doing something wrong during the export with matlab2tikz
or with including the .tikz
files with includegraphics
or is this a bug of the tikzscale
package?
I need the additional scaling features of tikzscale
, so I cannot simply avoid the tikzscale
package.
Setup: WIN7+TexLive2014 / Ubuntu 14.04+TexLive2013, behaviour is the same on both systems
MWE:
documentclass[10pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{pgfplots}
usepackage{tikzscale}
usepgfplotslibrary{external}
tikzexternalize[prefix=tikzTest/]
newlengthfigureheight
newlengthfigurewidth
begin{document}
begin{figure}
tikzsetnextfilename{test}
includegraphics[width=0.75textwidth]{tikzTest/test.tikz}
end{figure}
begin{figure}
setlengthfigureheight{0.75textwidth}
setlengthfigurewidth{0.75textwidth}
tikzsetnextfilename{test2}
input{tikzTest/test2.tikz}
end{figure}
end{document}
Matlab export
x = linspace(0,10,11);
y = x.^2;
figure(1);
plot(x,y);
cleanfigure;
%prepare figure to be included with tikzscale and includegraphics
matlab2tikz('<pathToTexFolder>tikzTestTest.tikz','noSize',true,'extraTikzpictureOptions','trim axis left, trim axis right');
%prepare figure to be included with input
matlab2tikz('<pathToTexFolder>tikzTestTest2.tikz','height','figureheight','width','figurewidth');
test.tikz
% This file was created by matlab2tikz.
% Minimal pgfplots version: 1.3
%
%The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
begin{tikzpicture}[%
trim axis left, trim axis right
]
begin{axis}[%
separate axis lines,
every outer x axis line/.append style={black},
every x tick label/.append style={font=color{black}},
xmin=0,
xmax=10,
every outer y axis line/.append style={black},
every y tick label/.append style={font=color{black}},
ymin=0,
ymax=100
]
addplot [color=black,solid,forget plot]
table[row sep=crcr]{%
0 0\
1 1\
2 4\
3 9\
4 16\
5 25\
6 36\
7 49\
8 64\
9 81\
10 100\
};
end{axis}
end{tikzpicture}%
test2.tikz
% This file was created by matlab2tikz.
% Minimal pgfplots version: 1.3
%
%The latest updates can be retrieved from
% http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
begin{tikzpicture}
begin{axis}[%
width=0.95092figurewidth,
height=figureheight,
at={(0figurewidth,0figureheight)},
scale only axis,
separate axis lines,
every outer x axis line/.append style={black},
every x tick label/.append style={font=color{black}},
xmin=0,
xmax=10,
every outer y axis line/.append style={black},
every y tick label/.append style={font=color{black}},
ymin=0,
ymax=100
]
addplot [color=black,solid,forget plot]
table[row sep=crcr]{%
0 0\
1 1\
2 4\
3 9\
4 16\
5 25\
6 36\
7 49\
8 64\
9 81\
10 100\
};
end{axis}
end{tikzpicture}%
tikz-pgf tikz-external matlab2tikz tikzscale
tikz-pgf tikz-external matlab2tikz tikzscale
edited 14 hours ago
JouleV
4,76111039
4,76111039
asked Mar 4 '15 at 9:17
roteiroroteiro
364
364
Plan B:external/export next=false
– Symbol 1
Mar 4 '15 at 15:03
when using external/export next =false, will this only omit creating external pdfs while already exported pdfs (from a previous run) will still be included in the document or will the pdf not be used at all?
– roteiro
Mar 5 '15 at 9:06
Experiments shows that TikZ love compiling pictures... you can only turn it on but cannot stop it. In caseexport next=false
, TikZ will leave the external PDFs there and recompile pictures again per compilation. Probability you need a complex macro to include those pictures and comment out thetikzpicture
yourself. (Will this is plan B--)
– Symbol 1
Mar 5 '15 at 15:38
@Symbol Thanks for your comment, this was what I was afraid of. Still I can't really believe thattikzcale
documentation encourages the user to use externalization because of faster compiling times but does not avoid recompiling tikz-pictures. Either I implemented it wrong or there is a bug in thetikzscale
package
– roteiro
Mar 5 '15 at 15:57
Problem still persists, opened a bug report at tikzscale github
– roteiro
Feb 9 '16 at 8:55
|
show 1 more comment
Plan B:external/export next=false
– Symbol 1
Mar 4 '15 at 15:03
when using external/export next =false, will this only omit creating external pdfs while already exported pdfs (from a previous run) will still be included in the document or will the pdf not be used at all?
– roteiro
Mar 5 '15 at 9:06
Experiments shows that TikZ love compiling pictures... you can only turn it on but cannot stop it. In caseexport next=false
, TikZ will leave the external PDFs there and recompile pictures again per compilation. Probability you need a complex macro to include those pictures and comment out thetikzpicture
yourself. (Will this is plan B--)
– Symbol 1
Mar 5 '15 at 15:38
@Symbol Thanks for your comment, this was what I was afraid of. Still I can't really believe thattikzcale
documentation encourages the user to use externalization because of faster compiling times but does not avoid recompiling tikz-pictures. Either I implemented it wrong or there is a bug in thetikzscale
package
– roteiro
Mar 5 '15 at 15:57
Problem still persists, opened a bug report at tikzscale github
– roteiro
Feb 9 '16 at 8:55
Plan B:
external/export next=false
– Symbol 1
Mar 4 '15 at 15:03
Plan B:
external/export next=false
– Symbol 1
Mar 4 '15 at 15:03
when using external/export next =false, will this only omit creating external pdfs while already exported pdfs (from a previous run) will still be included in the document or will the pdf not be used at all?
– roteiro
Mar 5 '15 at 9:06
when using external/export next =false, will this only omit creating external pdfs while already exported pdfs (from a previous run) will still be included in the document or will the pdf not be used at all?
– roteiro
Mar 5 '15 at 9:06
Experiments shows that TikZ love compiling pictures... you can only turn it on but cannot stop it. In case
export next=false
, TikZ will leave the external PDFs there and recompile pictures again per compilation. Probability you need a complex macro to include those pictures and comment out the tikzpicture
yourself. (Will this is plan B--)– Symbol 1
Mar 5 '15 at 15:38
Experiments shows that TikZ love compiling pictures... you can only turn it on but cannot stop it. In case
export next=false
, TikZ will leave the external PDFs there and recompile pictures again per compilation. Probability you need a complex macro to include those pictures and comment out the tikzpicture
yourself. (Will this is plan B--)– Symbol 1
Mar 5 '15 at 15:38
@Symbol Thanks for your comment, this was what I was afraid of. Still I can't really believe that
tikzcale
documentation encourages the user to use externalization because of faster compiling times but does not avoid recompiling tikz-pictures. Either I implemented it wrong or there is a bug in the tikzscale
package– roteiro
Mar 5 '15 at 15:57
@Symbol Thanks for your comment, this was what I was afraid of. Still I can't really believe that
tikzcale
documentation encourages the user to use externalization because of faster compiling times but does not avoid recompiling tikz-pictures. Either I implemented it wrong or there is a bug in the tikzscale
package– roteiro
Mar 5 '15 at 15:57
Problem still persists, opened a bug report at tikzscale github
– roteiro
Feb 9 '16 at 8:55
Problem still persists, opened a bug report at tikzscale github
– roteiro
Feb 9 '16 at 8:55
|
show 1 more comment
1 Answer
1
active
oldest
votes
Edit: I just realized this question was asked 2 years ago...
Have you tried using LuaLaTeX with tikzexternalcheckshellescape
? It worked for me before.
Try with the above preamble:
documentclass[11pt]{article}
usepackage{pgfplots}
usepgfplotslibrary{external}
tikzsetexternalprefix{figurescache/} %folder for temp figures
tikzset{external/system call={lualatex tikzexternalcheckshellescape -shell-escape -synctex=1 -halt-on-error -jobname "image" "texsource"}}
begin{document}
[Tikz stuff in here]
end{document}
And then to compile your document, type:
lualatex filename.tex
After this, a filename filename.makefile
will be created and type
make -f filename.makefile
then another
lualatex filename.tex
This is rather a comment because you ask OP to do something or you can also do this and show the results to make a self contained answer.
– percusse
Apr 30 '17 at 10:53
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f231278%2ftikz-plots-get-recompiled-every-time-when-using-tikzscale%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Edit: I just realized this question was asked 2 years ago...
Have you tried using LuaLaTeX with tikzexternalcheckshellescape
? It worked for me before.
Try with the above preamble:
documentclass[11pt]{article}
usepackage{pgfplots}
usepgfplotslibrary{external}
tikzsetexternalprefix{figurescache/} %folder for temp figures
tikzset{external/system call={lualatex tikzexternalcheckshellescape -shell-escape -synctex=1 -halt-on-error -jobname "image" "texsource"}}
begin{document}
[Tikz stuff in here]
end{document}
And then to compile your document, type:
lualatex filename.tex
After this, a filename filename.makefile
will be created and type
make -f filename.makefile
then another
lualatex filename.tex
This is rather a comment because you ask OP to do something or you can also do this and show the results to make a self contained answer.
– percusse
Apr 30 '17 at 10:53
add a comment |
Edit: I just realized this question was asked 2 years ago...
Have you tried using LuaLaTeX with tikzexternalcheckshellescape
? It worked for me before.
Try with the above preamble:
documentclass[11pt]{article}
usepackage{pgfplots}
usepgfplotslibrary{external}
tikzsetexternalprefix{figurescache/} %folder for temp figures
tikzset{external/system call={lualatex tikzexternalcheckshellescape -shell-escape -synctex=1 -halt-on-error -jobname "image" "texsource"}}
begin{document}
[Tikz stuff in here]
end{document}
And then to compile your document, type:
lualatex filename.tex
After this, a filename filename.makefile
will be created and type
make -f filename.makefile
then another
lualatex filename.tex
This is rather a comment because you ask OP to do something or you can also do this and show the results to make a self contained answer.
– percusse
Apr 30 '17 at 10:53
add a comment |
Edit: I just realized this question was asked 2 years ago...
Have you tried using LuaLaTeX with tikzexternalcheckshellescape
? It worked for me before.
Try with the above preamble:
documentclass[11pt]{article}
usepackage{pgfplots}
usepgfplotslibrary{external}
tikzsetexternalprefix{figurescache/} %folder for temp figures
tikzset{external/system call={lualatex tikzexternalcheckshellescape -shell-escape -synctex=1 -halt-on-error -jobname "image" "texsource"}}
begin{document}
[Tikz stuff in here]
end{document}
And then to compile your document, type:
lualatex filename.tex
After this, a filename filename.makefile
will be created and type
make -f filename.makefile
then another
lualatex filename.tex
Edit: I just realized this question was asked 2 years ago...
Have you tried using LuaLaTeX with tikzexternalcheckshellescape
? It worked for me before.
Try with the above preamble:
documentclass[11pt]{article}
usepackage{pgfplots}
usepgfplotslibrary{external}
tikzsetexternalprefix{figurescache/} %folder for temp figures
tikzset{external/system call={lualatex tikzexternalcheckshellescape -shell-escape -synctex=1 -halt-on-error -jobname "image" "texsource"}}
begin{document}
[Tikz stuff in here]
end{document}
And then to compile your document, type:
lualatex filename.tex
After this, a filename filename.makefile
will be created and type
make -f filename.makefile
then another
lualatex filename.tex
edited 14 hours ago
JouleV
4,76111039
4,76111039
answered Mar 31 '17 at 0:07
ZanCoulZanCoul
210210
210210
This is rather a comment because you ask OP to do something or you can also do this and show the results to make a self contained answer.
– percusse
Apr 30 '17 at 10:53
add a comment |
This is rather a comment because you ask OP to do something or you can also do this and show the results to make a self contained answer.
– percusse
Apr 30 '17 at 10:53
This is rather a comment because you ask OP to do something or you can also do this and show the results to make a self contained answer.
– percusse
Apr 30 '17 at 10:53
This is rather a comment because you ask OP to do something or you can also do this and show the results to make a self contained answer.
– percusse
Apr 30 '17 at 10:53
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f231278%2ftikz-plots-get-recompiled-every-time-when-using-tikzscale%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Plan B:
external/export next=false
– Symbol 1
Mar 4 '15 at 15:03
when using external/export next =false, will this only omit creating external pdfs while already exported pdfs (from a previous run) will still be included in the document or will the pdf not be used at all?
– roteiro
Mar 5 '15 at 9:06
Experiments shows that TikZ love compiling pictures... you can only turn it on but cannot stop it. In case
export next=false
, TikZ will leave the external PDFs there and recompile pictures again per compilation. Probability you need a complex macro to include those pictures and comment out thetikzpicture
yourself. (Will this is plan B--)– Symbol 1
Mar 5 '15 at 15:38
@Symbol Thanks for your comment, this was what I was afraid of. Still I can't really believe that
tikzcale
documentation encourages the user to use externalization because of faster compiling times but does not avoid recompiling tikz-pictures. Either I implemented it wrong or there is a bug in thetikzscale
package– roteiro
Mar 5 '15 at 15:57
Problem still persists, opened a bug report at tikzscale github
– roteiro
Feb 9 '16 at 8:55