私は原稿の図に Tikz externalize を使用しています。Tikz/pgfplots コードを含む元のファイルは削除されました (ただし、シミュレーションの実行が終了すると数時間後に再生成されます)。
その間に、テキストにいくつか変更を加えて、他の人にレビューしてもらいたいと思っています。以前の Tikz コンパイルの出力ファイルはまだあります。Tikz がこれらのファイルを再構築しないようにして、そのまま使用する方法はあるでしょうか?
答え1
これは少なくともいくつかのダミーtikz;
コマンドまたは\begin{tikzpicture} \end{tikzpicture}
環境を提供すれば可能です。
TikZコードの例を示していないので、詳細にどうすればよいか提案できません。「シミュレーションの終了」について書いていて、PGFPlotsを使用しているので、シミュレーション結果のプロットをいくつか表示したいのだと思います。最適なのは、データいくつかのデータ ファイルで、 のようにプロットします\addplot table {<filename>};
。すると、シミュレーションの実行中にこれらのデータ ファイルが削除される可能性はありますが、tikzpicture
環境自体はまだ存在します。その場合、以下の解決策が完璧に機能します。
詳細については、コード内のコメントとPGFPlots マニュアルの 530 ページ (v1.14) の「PGF または PGFPlots をインストールせずにライブラリを使用する」セクション。
\documentclass[border=5pt]{standalone}
% -----------------------------------------------------------------------------
% use this block to externalize your figures
\usepackage{pgfplots}
\usetikzlibrary{
% at present the PGFPlots External library is newer as the one in
% TikZ so I use this one
% (some bugs are fixed in it)
pgfplots.external,
}
\tikzexternalize[
% Because I think it is good practice to give your to externalize
% pictures a name, I use the following option
only named=true,
]
%% -----------------------------------------------------------------------------
%% use this block after externalizing
%% the only thing that needs to be present is either a `\tikz ...' command
%% or a `tikzpicture environment'
%% (copy the file
%% <tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_tikzexternal.sty>
%% into the directory of your main file (\jobname) and rename it to
%% "tikzexternal.sty")
%\usepackage{tikzexternal}
%% -----------------------------------------------------------------------------
% store the externalized files in the following folder
% (this folder must already exist; otherwise you will get an error)
\tikzsetexternalprefix{Pics/pgf-export/}
\begin{document}
\tikzsetnextfilename{test}
\begin{tikzpicture}
% -----------------------------------------------
% this part can be commented, deleted or whatever
% after externalization and further use of the
% `tikzexternal' package
\begin{axis}
\addplot coordinates { (0,0) };
\end{axis}
% -----------------------------------------------
\end{tikzpicture}
\end{document}
答え2
交換する
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize
と
%\usepackage{tikz}
\usepackage{graphicx}
\usepackage{tikzexternal}
%\usetikzlibrary{external}
\tikzexternalize
例を示してくれなかったし、私もやったことがないので、これはテストされていません。しかし、50.5 PGF をインストールせずに外部グラフィックスを使用するTiでけZマニュアルでは、コンパイルを高速化するための使用についても説明しています。この方法の制限については、そこの説明を参照してください。ライブラリexternal
とTiが他の方法ではなく特定の方法で確実に実行する必要があることがいくつかあります。けZ 自体は、同じことを達成するための複数の方法をサポートしています。
を使用している場合はpgfplots
、PGF/Tiではなく、そのマニュアルを参照してください。けZ 1 は、おそらく汎用的なものではなく、その外部化機能を使用しているためです。ステファン・ピノウの回答この場合、プロセスは通常の方法よりもはるかに簡単ではないようです。
それ以外の場合は、トビの提案。