1

I want to generate two pdfs from one .tex file. There are two packages namely pdfscreenand screen for creating a document either for print as output or for viewing the pdf generated online.

How can I achieve this by means of a single .tex file?

Edit

\documenclass{book}
\usepackage[print,nopanel]{pdfscreen}
\begin{print}
...some packages name
\end{print}
\begin{screen}
...some packages name
\end{screen}
\begin{document}
This is some example document.
\end{document}

When I run pdflatex filename.tex, I want to have two pdfs according to packages used in print section and in screen section.

  • Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – cfr Nov 28 '14 at 1:26
  • The only screen package I can find on CTAN is for LaTeX 2.09. print I cannot find at all. – cfr Nov 28 '14 at 1:29
  • Just like there are documents in documentation available for print and others for viewing on screen, how can these be achieved together from one .tex file? – user2828747 Nov 28 '14 at 1:36
  • 1
    What does screen have to do with it? It isn't in your MWE and you could not use it in a LaTeX-2e document. It would be much easier to create two documents with the relevant preambles and then input the main body of the document. – cfr Nov 28 '14 at 1:48
  • Those packages do not usually produce two PDFs from a single pdflatex run, though. So what you want is not 'just like' that at all ;). – cfr Nov 28 '14 at 2:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.