• Stars
    star
    3,741
  • Rank 11,798 (Top 0.3 %)
  • Language
    TeX
  • License
    MIT License
  • Created almost 3 years ago
  • Updated over 2 years ago

Reviews

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

Repository Details

Examples of how to create colorful, annotated equations in Latex using Tikz.

The file "eqn_annotate.tex" is the main latex file.

This repository provides four examples of annotated equations:

  1. [example_prob.tex] A simple one inside the equation construct, in a double column format
  2. [example_prob2.tex] A more complex one, but this time inside the figure construct in a double column format
  3. [example_laplace.tex] Inside the wrapfigure construct but for a single column format
  4. [example_overlay.tex] More complicated examples, side-by-side using the minipage construct in a single column format

The folder, "example_output_figs" includes figures that show the outputs of the above four cases.

Note: the main latex file, "eqn_annotate.tex" includes many latex packages and some definitions that are required.

To build all the examples into a single file, type:

make

OR

pdflatex (or xelatex) eqn_annotate

The output PDF file (containing all the examples) is named: eqn_annotate.pdf

Update: There is now a Latex package that makes it easier to create annotated equations! Check it out. They have even created a demo file that uses the same examples as mine.

Link to the CTAN package page.

Examples

  • [example_prob.tex] A simple one inside the equation construct, in a double column format

example_prob.tex output

  • [example_prob2.tex] A more complex one, but this time inside the figure construct in a double column format

example_prob2.tex output

  • [example_laplace.tex] Inside the wrapfigure construct but for a single column format

example_laplace.tex output

  • [example_overlay.tex] More complicated examples, side-by-side using the minipage construct in a single column format

example_overlay.tex output