I remember that was a particular favourite of your…

I remember that was a particular favourite of yours, Eileen. twitter.com/Eils_M/status/…

Yup. https://t.co/hqjxX44V0S

Yup. twitter.com/iotar/status/6…

lovely bit of microfiction from Jeff “Vurt” Noon….

lovely bit of microfiction from Jeff “Vurt” Noon. twitter.com/jeffnoon/statu…

Amen. https://t.co/F2qeOvkZqw

Amen. twitter.com/joshgreenman/s…

Yes. https://t.co/KD0b7QIV1A

Yes. twitter.com/harrymccracken…

Whaddya mean, R doesn’t come with Levene’s test bu…

Whaddya mean, R doesn’t come with Levene’s test built in?

Absolute genius. @handee might appreciate, @Bernie…

Absolute genius. @handee might appreciate, @BernieTiddeman too. twitter.com/levork/status/…

Good luck finalists, hope you all got what you wan…

Good luck finalists, hope you all got what you wanted.

Editing big LaTeX documents and cross-referring to labels

In editing big documents, I find myself having to refer back to something I’ve written somewhere else. Typically I’m referring to the PDF rather than the raw LaTeX, and I can’t remember the section labels I’ve added. To help me with this, I’ve added this wodge of code into my preamble:

This defines a few extra commands for doing margin notes, and then redefines the \label command to also add a margin note with the name of the label, so it’s right next to where it’s used in the resulting PDF. It’s really handy.

You can also add “To-do” notes yourself, or any kind of comment in the margin, by just using the \marg command:

Note that this won’t work inside a figure – LaTeX doesn’t know where the margins are inside a figure! Some of the logic in the code above is to ensure that margin notes don’t appear for figure labels.

One of the best illustrations of harmonics making…

One of the best illustrations of harmonics making a square wave I’ve ever seen. twitter.com/ehthayer/statu…

Copyright © Found
Jim Finnis' personal blog

Built on Notes Blog Core
Powered by WordPress