• Stars
    star
    220
  • Rank 180,422 (Top 4 %)
  • Language
    TeX
  • License
    MIT License
  • Created over 5 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A comprehensive LaTeX template with examples for theses, books and more, employing the 'latest and greatest' (UTF8, glossaries, fonts, ...). The PDF artifact is built using CI/CD, with a Python testing framework.

LaTeX Cookbook

Download PDF

This repo contains a LaTeX document, usable as a cookbook (different "recipes" to achieve various things in LaTeX) as well as as a template. The resulting PDF covers LaTeX-specific topics and instructions on compiling the LaTeX source.

See the releases page for more downloads.

Features

The PDF itself has much more to say on this and is meant to speak for itself, visually. The following is simply a brief overview of the features contained in this repo.

Tooling

  • accompanying Docker image, usable locally and in CI/CD, guaranteeing compilation success without interfering with your local installation. In fact, using Docker (containerization in general), no LaTeX installation is required at all.
    • accompanying Visual Studio Code environment configuration.

      If you open this repository in Visual Studio Code, it should automatically put you into the correct Docker container environment for development, and just workâ„¢. See here for more info.

    • in the image, pandoc is available with the Eisvogel template, allowing beautiful PDFs to be generated from Markdown (like this README: download it from the latest Actions artifacts; it currently looks lackluster because this README is mainly PNGs)

  • tests for your PDF, using Python to ensure some (basic) properties of your output adhere to expectations
  • a Makefile to facilitate ease of use and platform independence (commands like make file.pdf work locally as well as in CI pipelines)

LaTeX-specific

  • full Unicode support through lualatex, the successor to the obsolete pdflatex. This also affords beautiful font typesetting through unicode-math. High-quality fonts like TeX Gyre Pagella have all desirable font shapes available: font-shapes

  • automatic compilation using latexmk, ensuring the PDF is built fully, running all steps necessary (generation of the bibliography, glossaries, ...) automatically as needed

  • comprehensive support for:

    made possible through glossaries-extra.

  • structured and commented source code, explaining rationales and providing context

  • showcasing plotting and data display (floats):

    • computing more complicated plots (in this example, a contour plot) directly in LaTeX, with no explicit outside tools used (gnuplot is used by LaTeX in the background):

      plot-compute

    • ingesting a CSV directly, and plotting it (so we can skip matlab2tikz etc.). The below style is inspired by Tufte:

      plot-csv

    • typesetting more complex tables, with footnotes, decimal alignment and more:

      table

    • using tikz:

      • for annotating bitmap graphics:

        tikz-annotation

      • for drawing diagrams (this template contains a (basic) pgf/tikz library for energy systems/thermodynamics/hydraulics/... symbols like pipes, compressors, valves, ...) and 3D sketches. For a much better and comprehensive collection of TikZ examples, see here.

        tikz-diagram tikz-libaries

  • back-referencing of citations, using the excellent biblatex:

    backref

  • support for elaborate chemical reaction equations, using chemmacros:

    chemmacros

  • comprehensive code syntax highlighting, thanks to minted and pygments:

    pygments

  • quick and structural switching of language contexts, provided by polyglossia:

    language

  • of course, support for enhanced mathematical typesetting, like highlighted equations or premade macros. The blue color are hyperlinks, turning those symbols into links to the glossary (this can be toggled off).

    math

    math-macros

More Repositories

1

srgn

A grep-like tool which understands source code syntax and allows for manipulation in addition to search
Rust
612
star
2

ancv

Renders your (JSON) resume/CV for online & pretty terminal display
Python
241
star
3

betterletter

Substitute alternative spellings of special characters (e.g. German umlauts [ae, oe, ue] and [ss]) with their correct versions (ä, ö, ü, ß).
Python
11
star
4

issuedigger

For your repository, issuedigger will notify authors of new issues about similar, previously submitted ones, saving manual digging. Implemented as a single, AI-enabled Cloudflare Worker.
TypeScript
7
star
5

b4s

Perform binary search on a single, delimited string slice of sorted but unevenly sized substrings.
Rust
5
star
6

latex-extras-docker

Moved, see website link
Shell
4
star
7

vpn-guacamole

Makes VPN-tunneled RDP/VNC sessions accessible in a browser (using Apache Guacamole in a Vagrant VM with Docker)
Dockerfile
4
star
8

derdiedas

A simple, online guessing game for German articles, using chiefly simple and boring web technologyâ„¢
CSS
2
star
9

rust-testing-explored

An introduction to and exploration of testing in Rust software projects (unit, integration, fuzz, snapshot, property, ...)
Rust
2
star
10

effective-typestate

A presentation on the type-state pattern (as popular in the Rust ecosystem), in the style of "Effective C++/Rust" (loosely coupled showcases), with examples in Python (easiest to read). Link below contains compiled presentation
Python
2
star
11

just-present

A short introduction to `just`, the command runner, for the Hamburg .NET Usergroup Meetup on 2023-04-05 (https://www.meetup.com/hamburg-c-net-meetup/events/291976203/)
Just
1
star
12

random-python

Archived Python scripts
Python
1
star