[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] LaTeX export: underscores and the syntax package
From: |
peter . frings |
Subject: |
[O] LaTeX export: underscores and the syntax package |
Date: |
Thu, 12 May 2011 16:00:43 +0200 |
Good afternoon all,
I spent the best part of the afternoon trying to figure out why an
org-generated .tex file wouldn’t compile with my set-up. It turns out that the
`syntax’ package messes a bit with the definition of an underscore, making it
impossible to use the underscore in a \label.
Unfortunately, the LaTeX exporter uses underscores in its section labels.
Actually, it is possible to have the _ in \label: use the `nounderscore’ option
with the syntax package. But you then do not get the tweaked underscore in
plain text (unless you use \_ again).
Since I’d like to keep the syntax package and the ease of using plain
underscores, I’d like to avoid the _ in labels.
Maybe I didn’t look hard enough, but I didn’t find an obvious way to change the
way org generates the labels. Would it be an option to use the same
label-generating code as AUCTeX mode? That would be very nice!
Thanks,
Peter.
--
c++; // this makes c bigger but returns the old value
- [O] LaTeX export: underscores and the syntax package,
peter . frings <=