Code Monkey home page Code Monkey logo

psht's Introduction

psht

This bash script compiles a LaTeX document written using the multiaudience package into multiple pdf files, one for each audience specified.

To make it work you must have the multiaudience package installed on your system, as well as latexmk. You need \usepackage{multiaudience} in the preamble.

If you run ./psht your-tex-file.tex, psht will assume that there are two audiences defined, students and tutors. This means you must have \SetNewAudience{students}, and \SetNewAudience{tutors} in the preamble. It will create your-tex-file.pdf and your-tex-file_SOLUTIONS.pdf. Compilation is done using latexmk and the auxiliary files are removed afterwards.

Surround the parts of the LaTeX document you want to appear ONLY in the solutions file with \begin{shownto}{-, students} ... \end{shownto}. The - is negation.

A test file called test.tex is included as illustration.

If you supply more arguments after the filename, e.g. ./psht your-tex-file.tex a b c psht will compile a version of the document for each additional argument arg, with the audience set to arg. The filenames will be your-tex-file_arg.pdf.

A test file called multiple_audiences.tex is included, which has three audiences a, b, and c.

psht's People

Contributors

matthew-towers avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.