2

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!

2 Answers2

5

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

Yossi Farjoun
  • 13,274
  • 10
  • 74
  • 96
2

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.

philosodad
  • 1,354