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 am writing documentation that includes three documents for different audiences:

  1. Public
  2. Staff
  3. Developers

In the Developers document, I would like to reference a table or section in the Staff document using \ref{} or an analogous command.

Depending on the best way to do this, an alternative way to phrase this question might be "how can I write three interlinked but distinct documents?

Thanks!

share|improve this question
    
I think this is a duplicate of tex.stackexchange.com/questions/3060/… –  Will Robertson Dec 2 '10 at 6:50
    
possible duplicate of How to reference another document in latex? –  David Dec 2 '10 at 6:53
add comment

2 Answers

up vote 5 down vote accepted

Look at xr. I think that it does what you want.

share|improve this answer
add comment

This depends on what you want. You might consider creating five documents: a preamble, postamble, and your other three, and then creating a fifth document that just does this:

\input{preamble.tex}
\input{public.tex}
\input{staff.tex}
\input{developers.tex}
\input{postable.tex}

You should be able to create a preamble that makes whatever customizations you want for each document in terms of layout, special numbering or whatever.

Then if you wanted to publish separately, it would just be a matter of stringin g the right \include statements together.

Also (adding this after some research) you may want to look at the subdocs package.

share|improve this answer
add comment

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.