* Using \ref instead of \hyperref in LaTeX export?
@ 2010-10-15 10:40 Guy Wiener
2010-10-15 18:28 ` Indraneel Majumdar
0 siblings, 1 reply; 2+ messages in thread
From: Guy Wiener @ 2010-10-15 10:40 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 272 bytes --]
Hello,
Is there a way to tweak the LaTeX export so that for a link [[label][desc]]
it will produce the standard "\ref{label}" instead of
"\hyperref[label]{desc}"? I want to be able to use the standard article
writing, such as "in Section~\ref{sec:bla}...".
Thanks,
Guy
[-- Attachment #1.2: Type: text/html, Size: 372 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Using \ref instead of \hyperref in LaTeX export?
2010-10-15 10:40 Using \ref instead of \hyperref in LaTeX export? Guy Wiener
@ 2010-10-15 18:28 ` Indraneel Majumdar
0 siblings, 0 replies; 2+ messages in thread
From: Indraneel Majumdar @ 2010-10-15 18:28 UTC (permalink / raw)
To: Guy Wiener; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 856 bytes --]
Maybe use a hook like the following.. It's for cref, please modify to
your liking:
(defun creflink()
"Change all solitary [[]] links to [[target][\cref]] links"
(regex-replace "\\[\\[\\([^:\[]+?\\)\\]\\]" "[[\\1][\\\\cref{\\1}]]")
)
(add-hook 'org-export-preprocess-hook 'creflink)
Indraneel
On 10/15/2010 04:10 PM, Guy Wiener wrote:
> Hello,
> Is there a way to tweak the LaTeX export so that for a link
> [[label][desc]] it will produce the standard "\ref{label}" instead of
> "\hyperref[label]{desc}"? I want to be able to use the standard
> article writing, such as "in Section~\ref{sec:bla}...".
>
> Thanks,
> Guy
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
[-- Attachment #1.2: Type: text/html, Size: 1536 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-15 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15 10:40 Using \ref instead of \hyperref in LaTeX export? Guy Wiener
2010-10-15 18:28 ` Indraneel Majumdar
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.