6197 comments
2357 subscribers
Follow me on Twitter (@sachac)
Subscribe! Feed reader E-mail

Emacs tidbit: DVI and LaTeX interaction

Skimming the help.gnu.emacs newsgroup can turn up all sorts of amazing
tidbits. For example, I occasionally write papers using the LaTeX
markup language for scientific documents. This allows me to produce
professional-quality typeset papers, particularly when equations are
involved. (I used that *so* many times in university!)

I just found out that you can click on the typeset document (the DVI)
and jump to the source code. Here’s what David wrote on help.gnu.emacs:

That’s easy. This feature is called forward and inverse search. It’s
explained in the AucTeX manual. If you use auctex just hit C-c C-t C-s
(I don’t know if this also works within the build-in tex mode). This
enables the TeX-source-specials. With the source-specials on, Emacs
will start xdvi with further options. xdvi will start displaying the
page where the point is set in Emacs (forward search). When you click
any line in xdvi simultaneously pressing Ctrl you return to Emacs with
the point on the corresponding paragraph. This works also with other
dvi viewers, but you have to configure them to use emacs server for
inverse search.

Wow.

On Technorati: ,

Random Emacs symbol: default-fringes-outside-margins – Variable: Default value of `fringes-outside-margins’ for buffers that don’t override it.

Short URL: http://sachachua.com/blog/p/4292

On This Day...

  • 2012: Building the foundation for a shed — W- and I are planning to get a new, larger shed so that we can store the bicycles and tools [...]
  • 2011: A zucchini a day keeps the vegetable drawer okay — This community-supported agriculture experiment has surprising benefits. I’ve eaten more zucchini in the past week than I have in the [...]
  • 2010: Playing the long game: writing, raw material, and backups — One of my long-term goals is to share what I’m learning in life. I want to write books and memoirs [...]
  • 2009: Notes from the road — Providing consulting services in strategy workshops is a crash course in facilitation and presentation skills. Looking at the presentations and [...]
  • 2007: Parry Sound — One of my friends had recommended the 30,000 island cruise around Georgia Bay, so we made a side trip to Parry—a [...]
  • 2006: Running low — One of my warning signals that alerts me to the fact that I’m not getting enough sleep or quiet time is [...]
  • 2004: OUT OF THE RAIN — 25 words, 158 chars — The drenched pair eyed the unrelenting storm. Resigned, he asked, “Coffee?” A smile. “Don’t you just hate rain?” The puddles dried. They were [...]
  • 2004: Smooth lasagna workflow — My workflow for preparing lasagna is pretty smooth now. No changes to the recipe, just minor tweaks to the process. I [...]
  • 2003: Cat story — My mom dropped by school today. =) As I got into the car, I mentioned that there was a cat underneath [...]
  • 2003: Pffft — Naturally, I forget that I saved the files in /tmp, which means they vanish after a reboot… I’ll just have to [...]