emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX export: underscores and the syntax package
@ 2011-05-12 14:00 peter.frings
  2011-05-14  2:51 ` Robert Love
  0 siblings, 1 reply; 7+ messages in thread
From: peter.frings @ 2011-05-12 14:00 UTC (permalink / raw)
  To: emacs-orgmode mailing list

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-05-24 11:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-12 14:00 LaTeX export: underscores and the syntax package peter.frings
2011-05-14  2:51 ` Robert Love
2011-05-14  3:12   ` Nick Dokos
2011-05-14  3:50   ` Nick Dokos
2011-05-18  7:23     ` Peter Frings
2011-05-18 16:44       ` Nick Dokos
2011-05-24 11:09       ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).