Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have 8 files which I am serially listing in my main.tex file.

All 8 files contain one chapter.

Now I have created a diagrams.tex file which has 10-12 diagrams using tikz.

I am not including this file in my main.tex file.

But I still want diagrams to show up in my main.pdf, as well keep the chapters manageable.

Can I simply import the figures from diagrams.tex using one or two line commands in my chapter .tex files so that the relevant figures show up where I want to?

share|improve this question
1  
You may write your diagrams in separate files, and then include/input them as needed –  Lionel MANSUY Feb 21 '13 at 12:41

1 Answer 1

You can use standalone class to create your TikZ diagramas. With

\documentclass[tikz]{standalone}

\begin{document}
\begin{tikzpicture}
...
\end{tikzpicture}
\begin{tikzpicture}
...
\end{tikzpicture}
\end{document}

each figure will be drawn cropped and placed on a different page. Then you can use \includegraphics[page=1]{diagrams} where you want to include each one of them.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.