4

I'm using siunitx extensively in my lab reports, but I'm unable to get units to appear correctly when previewing latex fragments.

This is what the latex fragment looks like:

raw

... with preview applied:

previewed

The final result is just fine:

rendered

I've looked at the documentation for preview-latex, but it's not clear what I need to add to preview-default-preamble or preview-default-option-list in order to use a particular latex package in the preview. How do I include packages for use in rendering the preview? In addition, I'm using \sisetup{per-mode=fraction} to get the units formatted in the way that I like; is there a way to include this in the list of options?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.