TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
You may write your diagrams in separate files, and then include/input them as needed – Lionel MANSUY Feb 21 '13 at 12:41

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



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


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.