TUGboat 41:3 (2020)
The Communications of the TeX Users Group

Title: Using DocStrip for multiple document variants

Summary: step-by-step example of homework assignments with questions, solutions, and more.

Full text of article: publicly available now.

Author: Matthew Leingang

Publication: TUGboat volume 41, number 3 (2020), pages 281-285

DOI: 10.47397/tb/41-3/tb129leingang-docstrip
(previous doi - next doi)

Category: Tutorials

Difficulty: Intermediate

Abstract: I describe a method of keeping multiple variants of the same document within a single file, using DocStrip.


  1. Caramdir. Passing parameters to a document, 2010. tex.stackexchange.com/q/1492
  2. J. Collins, E. McLean, D. J. Musliner. latexmk—fully automated LaTeX document generation, 2019. ctan.org/pkg/latexmk
  3. J. Lelong, T. Tamura, et al. Visual Studio Code LaTeX Workshop Extension, 2020. github.com/James-Yu/LaTeX-Workshop
  4. meduz. What Makefile to produce slides and handouts [in] a common file?, 2014. tex.stackexchange.com/q/170542
  5. F. Mittelbach, D. Duchier, et al. The DocStrip program, 2006. ctan.org/pkg/docstrip
  6. reprogrammer. Passing command-line arguments to LaTeX document, 2009. stackoverflow.com/q/1465665
  7. E. R. Scheinerman. Mathematics: A Discrete Introduction. Thomson Brooks/Cole, Belmont, MA, 2nd edition, 2005.

TUGboat 41:3, 2020 (issue 129)   [generated 2021-02-07]
TUG home page; webmaster; facebook; twitter;   (via DuckDuckGo)