How do I use QTikZ on a standalone file
Your file mydocument.tex
\documentclass{article}
\usepackage[landscape]{geometry}
\usepackage{tikz}
\begin{document}
\input{tikzpicture.tex}
\end{document}
File tikzpicture.tex
:
\begin{tikzpicture}
\draw (-1.5,0) -- (1.5,0);
\draw (0,-1.5) -- (0,1.5);
\draw (0,0) circle (1cm);
\end{tikzpicture}
Then edit tikzpicture.tex
with QTikZ
. Or have I misunderstood your question?
Here is a slight variant, that helps a bit in managing file names:
Main file: (with .tex
extension)
\documentclass{standalone}
\usepackage{currfile}
\usepackage{tikz}
\begin{document}
\input{\currfilebase.tikz}
\end{document}
TikZ File:
(with .tikz
extension)
\begin{tikzpicture}
\draw (-1.5,0) -- (1.5,0);
\draw (0,-1.5) -- (0,1.5);
\draw (0,0) circle (1cm);
\end{tikzpicture}
With this variation, the base file name is the same: .tex
file is processed by pdlfatex
while the .tikz
file is processed by the QTikZ