# Blog

## Blogging about Maths & Physics, Python, Linux, Japanese...

# Find unused graphics in LaTeX project; rename/move them (while updating paths in code)

Simple script to find graphics which are not used in a LaTeX project and simple script to rename files which are and also taking care of renaming all references to them in the latex project. While that’s the use case, it’s totally not LaTeX specific (simply searches through all `*.tex`

files for the path).

# Fancy Mathematica Plot of Functions in One Complex Variable

Visualizing functions that depend on a complex variable is oftentimes done with either contour plots or with multiple one dimensional plots where either the real or imaginary part is set to a selection of fixed values. This Mathematica function will combine both plots to provide the nice overview of the contour plot, while making it easy to compare it with the 1D lines.

Continue reading# Mathematica LaTeX Export - Bug Workarounds

Mathematica has some basic LaTeX export possibilities built in. However, the LaTeX support is far from optimal and at times quite buggy.
I just came accross two issues: Missing support for `Subsuperscript`

and nonsensical `\left`

and `\right`

statements which
are inserted in connection with `Abs`

. I wrote a short python3 script as a workaround (together with Mathematica integration).

# Printing Unevaluated Expressions in Mathematica & Debug Messages

How to print a Mathematica expression without evaluating it & how to use that for debugging.

Continue reading# Caching Calculated Expressions in Mathematica

When the calculation time in Mathematica notebooks becomes long, it makes sense to save the results somewhere so that they can be easily reloaded in a new session without the need for recalculation.

Continue reading