emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH 0/2] References auto-generated labels with \ref in LaTeX export
@ 2011-01-20 13:23 Lawrence Mitchell
  2011-01-20 13:23 ` [PATCH 1/2] Only match complete words in org-export-add-options-to-plist Lawrence Mitchell
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Lawrence Mitchell @ 2011-01-20 13:23 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Lawrence Mitchell

when writing latex, I prefer referring to previous sections by
saying "As we saw earlier in section \ref{some-section}".  When
writing with Org and then exporting to latex, there doesn't
appear to be any way to reproduce this.  Using "As we saw earlier
in section [[section header]]" produces a hyperref, rather than a
plain ref.

This patch set introduces a new option
`org-latex-unprettify-internal-links' which, if non-nil, converts
"bare" references to auto-generated section labels into a \ref
rather than a \hyperref.

The first patch fixes up treatment of the options plist, so that
options that are the suffix of another option do not
inadvertantly match both.  This should probably be applied either
way, since the current behaviour seems like a bug.

The second patch introduces the new functionality and attempts to
document it in the most obvious place I could find in the manual.

Cheers,
Lawrence

Lawrence Mitchell (2):
  Only match complete words in org-export-add-options-to-plist
  Allow option of using bare \ref links in LaTeX export

 doc/org.texi      |   37 +++++++++++++++++++++++++++++++++++++
 lisp/org-exp.el   |    6 ++++--
 lisp/org-latex.el |   25 +++++++++++++++++++++----
 3 files changed, 62 insertions(+), 6 deletions(-)

-- 
1.7.4.rc1.7.g2cf08

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

end of thread, other threads:[~2011-02-12 23:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-20 13:23 [PATCH 0/2] References auto-generated labels with \ref in LaTeX export Lawrence Mitchell
2011-01-20 13:23 ` [PATCH 1/2] Only match complete words in org-export-add-options-to-plist Lawrence Mitchell
2011-02-12 23:49   ` [Accepted] [Orgmode, " Bastien Guerry
2011-01-20 13:23 ` [PATCH 2/2] Allow option of using bare \ref links in LaTeX export Lawrence Mitchell
2011-02-12 23:46 ` [PATCH 0/2] References auto-generated labels with \ref " Bastien

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).