2

In a few places on this site, such as this question, the shapes.letters package is mentioned:

I would like to use it. So I download pgflibraryshapes.letters.dtx from here, and try to compile it. How do I do this? If I hit it with latex I get 'LaTeX error: Missing \begin{document}', and if I hit it with tex I get 'missing $ inserted'. What am I doing wrong?

Jamie Vicary
  • 11,098

1 Answers1

1

This basic sequence is how to proceed in general and it worked for me for the file in question:

  • Download the file into some directory searched by TeX and not under the control of a package manager (for example, $TEXMFHOME for TeX Live).

  • Try to maintain a structure consistent with the main installation tree. For example, for this file, I'd place it at $TEXMFHOME/tex/generic/pgf/libraries/shapes/ to use the same file structure for shapes libraries as the packaged shape libraries in the main install tree.

  • Open your favorite terminal and navigate to this directory. Run latex pgflibraryshapes.letters.dtx (possibly twice to resolve references in the documentation). Several files are generated, already in the correct place.

  • Now the new library can be used with \usetikzlibrary{shapes.letters} in any of your documents. You can inspect the log file to ensure that the file is being found successfully. On my system, I got this line in the log file:

c:/Users/<username>/texmf/tex/generic/pgf/libraries/shapes/pgflibraryshapes.letters.code.tex
Paul Gessler
  • 29,607