From: Indraneel Majumdar <indraneel@indraneel.info>
To: Guy Wiener <wiener.guy@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Using \ref instead of \hyperref in LaTeX export?
Date: Fri, 15 Oct 2010 23:58:58 +0530 [thread overview]
Message-ID: <4CB89D6A.1030700@indraneel.info> (raw)
In-Reply-To: <AANLkTi=0qZakYDcKvq6C6QH8+jUMHv4jWB0aNUzcAJ9V@mail.gmail.com>
[-- 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
prev parent reply other threads:[~2010-10-15 18:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-15 10:40 Using \ref instead of \hyperref in LaTeX export? Guy Wiener
2010-10-15 18:28 ` Indraneel Majumdar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CB89D6A.1030700@indraneel.info \
--to=indraneel@indraneel.info \
--cc=emacs-orgmode@gnu.org \
--cc=wiener.guy@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.