MiKTeX and proTeXtWriting grapics to file for later inclusion

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
TonyK
Posts: 2
Joined: Thu Aug 25, 2022 6:52 pm

Writing grapics to file for later inclusion

Post by TonyK »

I'm new to this forum so please cut me some slack while I learn the ropes.

I have a lot of tikz graphics in my document and I'm trying to use the Latex feature that writes the graphics to an external pdf file for inclusion on later compiles to save recompiling them on every run. I have the following relevant lines to the preamble:

Code: Select all

\usepackage{pgfplots}
\usepgfplotslibrary{external}
\tikzexternalize
\pgfplotsset{compat=1.18}
and I've added the following to the command line call to pdflatex: pdflatex -shell -escape myfile.tex (BTW, I tried this without the word pdflatex and get the same result.)

The file compiles but I get the same error on every graphic -- essentially, sorry, the call to pdflatex did not produce a usable file myfile. The home directory contains three files for each attempt:
myfile-figure#.dpth,
myfile-figure#
myfile-figure#.md5


What am I doing wrong? Also, and I don't know if this is related to my issue, I keep getting the message:
pdflatex: major issue: So far, you have not checked for MikTex updates.
Last edited by Stefan Kottwitz on Sun Aug 28, 2022 11:06 pm, edited 1 time in total.
Reason: code marked

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

TonyK
Posts: 2
Joined: Thu Aug 25, 2022 6:52 pm

Writing grapics to file for later inclusion

Post by TonyK »

I forgot to mention that \usepackage{tikz} is also in the preamble. Likely obvious from my question but just in case ...
Post Reply