LaTeX forum ⇒ Conversion ToolsSaving paper by splitting single page into two halves Topic is solved

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
jinkx
Posts: 4
Joined: Sun Apr 03, 2016 9:41 am

Saving paper by splitting single page into two halves

Postby jinkx » Sun Apr 03, 2016 9:57 am

Many documents occupy only one page of a paper and need to be replicated and distributed. Example might be tutorial sheets in universities. So often the back side of the paper gets wasted.

A solution for this might be to cram tutorials for two students in a single paper. Suppose tutorial one consists of 10 bullets. First five bullets will be put in page 1 first half. First five bullets will also be put in page 1 second half. There will be a line in the middle where the paper can be cut. Similarly, on page 2 there will be last five bullets, a cutting line and the same last five bullets again.

Is this trivial to do? Both the upper and the bottom parts that are separated by the cutting line need to be identical.

User avatar
Johannes_B
Site Moderator
Posts: 3327
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Apr 03, 2016 11:38 am

Welcome,

wouldn't it be easier to just print on smaller paper? FOr example a5 instead of a4 and the according option to package geometry?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

jinkx
Posts: 4
Joined: Sun Apr 03, 2016 9:41 am

Postby jinkx » Sun Apr 03, 2016 2:18 pm

Most of the times only one type of paper is available with the one who prints stuff when you give him your money. And that is A4. Maybe in developed countries people have the luxury of choosing between many sizes of paper, but that is not the case everywhere.

jinkx
Posts: 4
Joined: Sun Apr 03, 2016 9:41 am

Postby jinkx » Sun Apr 03, 2016 2:33 pm

I am not an expert in Tex, and I can't think of any way that each half will have both header and footer of their own. There is minipage but that is generally used once the body of the document starts, and also demands that the content is manually written for each minipage.

If the solution of the problem is not possible using Latex, some pointers as to how to do that using PlainTex macros would be great. I don't really plan to read the Texbook to figure it out.

rais
Posts: 114
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Sun Apr 03, 2016 9:28 pm

jinkx wrote:Most of the times only one type of paper is available with the one who prints stuff when you give him your money. And that is A4.

well then, perhaps you could use psnup/pdfnup, possibly the pdfpages package to create the same A5 file twice on a single A4 paper.
Personally, in this case I'd use a wrapper file (A4), where I'd put the real A5 page twice, just using the graphicx package, e.g.,
  1. \documentclass[a4paper, landscape]{article}
  2. \usepackage[margin=0pt]{geometry}
  3. \usepackage[english]{babel}
  4. \usepackage{graphicx}
  5. \usepackage{eso-pic}
  6. \begin{filecontents}{\jobname-slv.tex}
  7. \documentclass[a5paper]{article}
  8. \usepackage{geometry}
  9. \usepackage[english]{babel}
  10. \usepackage{blindtext}
  11. \begin{document}
  12. \blindtext[3]
  13. \end{document}
  14. \end{filecontents}
  15. \begin{document}
  16. \AddToShipoutPictureBG{%
  17. \AtPageCenter{%
  18. \rule[-0.5\paperheight]{0.2pt}{\paperheight}%
  19. }%
  20. }%
  21. \noindent\IfFileExists{\jobname-slv.pdf}{%
  22. \includegraphics[height=\textheight]{\jobname-slv}%
  23. \includegraphics[height=\textheight]{\jobname-slv}%
  24. }{\typeout{Please run pdfLaTeX on \jobname-slv.tex}}
  25. \end{document}

Please note that the wrapper file has no margins on its own here, it rather expects to find them in the -slv (as in slave) file.

KR
Rainer

jinkx
Posts: 4
Joined: Sun Apr 03, 2016 9:41 am

Postby jinkx » Mon Apr 04, 2016 5:45 pm

I didn't know about the eso-pic package. Also, the idea of importing pdfs as a picture is good. And I guess for printing on both sides of the paper, page can be specified in the includegraphics command.

  1. \documentclass[a4paper, landscape]{article}
  2. \usepackage[margin=0pt]{geometry}
  3. \usepackage[english]{babel}
  4. \usepackage{graphicx}
  5. \usepackage{eso-pic}
  6. \begin{filecontents}{\jobname-slv.tex}
  7. \documentclass[a5paper]{article}
  8. \usepackage{geometry}
  9. \usepackage[english]{babel}
  10. \usepackage{blindtext}
  11. \begin{document}
  12. \blindtext[10][3]
  13. \end{document}
  14. \end{filecontents}
  15. \begin{document}
  16. \AddToShipoutPictureBG{%
  17. \AtPageCenter{%
  18. \rule[-0.5\paperheight]{0.2pt}{\paperheight}%
  19. }%
  20. }%
  21. \noindent\IfFileExists{\jobname-slv.pdf}{%
  22. \includegraphics[height=\textheight,page=1]{\jobname-slv}%
  23. \includegraphics[height=\textheight,page=1]{\jobname-slv}%
  24. \newpage
  25. \includegraphics[height=\textheight,page=2]{\jobname-slv}%
  26. \includegraphics[height=\textheight,page=2]{\jobname-slv}%
  27. }{\typeout{Please run pdfLaTeX on \jobname-slv.tex}}
  28. \end{document}


Return to “Conversion Tools”

Who is online

Users browsing this forum: No registered users and 1 guest