# Plot with subscripts, superscripts, and more general latex in labels

**URL:** <https://racket.discourse.group/t/plot-with-subscripts-superscripts-and-more-general-latex-in-labels/373>\
**Category:** Questions & Answers\
**Tags:** question\
**Created:** [December 7, 2021, 4:38pm UTC](https://racket.discourse.group/t/plot-with-subscripts-superscripts-and-more-general-latex-in-labels/373 "2021-12-07T16:38:30Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![marc](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@marc](https://racket.discourse.group/u/marc)\
**Post date:** [December 8, 2021, 4:51am UTC](https://racket.discourse.group/t/plot-with-subscripts-superscripts-and-more-general-latex-in-labels/373/6 "2021-12-08T04:51:25Z")

</div>

> [@soegaard](#):
>
> Save this in `foo.tex` and then try `latexpdf foo.tex` in the terminal.

You probably meant `pdflatex foo.tex`, no? That throws an error that it can't find `standalone.cls`, so I installed it with `tlmgr install standalone`, after which it complains about not knowing `preview.sty`, so I `tlmgr install preview` and voila. It works. Reading the documentation for `latex-pict`, I now realize that I should have checked that both of those are installed, but it was not crystal clear to me that those were requirements. Maybe make it even more obvious by saying "Ensure that you have the following three packages installed ... You can check that your setup works by running `pdflatex ... ...`.

The new image looks much nicer:

![negative-triple-d-difference](https://global.discourse-cdn.com/free1/uploads/racket/original/1X/23bffc5b782412756f2cea6ebb46b40011efebfb.png)

Thanks a lot for this awesome package!

---

_[View the full topic](https://racket.discourse.group/t/plot-with-subscripts-superscripts-and-more-general-latex-in-labels/373)._
