emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Links to LaTeX equations
Date: Fri, 28 Jun 2019 12:55:43 +0000	[thread overview]
Message-ID: <87ftntkgxd.fsf@ucl.ac.uk> (raw)

Hello all,

it's that time of year where I have to think about revamping my lecture
slides (having just finished one year, the next one starts...).  I write
these in org and export to beamer obviously!

I teach a technical subject.  I therefore have quite a few equations in
my slides and I use LaTeX for these.  I would like to be able to use org
fully with respect to links and targets.  If I define a label in LaTeX
directly, \label{an-equation} for instance, I get no benefit from using
an org link to it, e.g. [[an-equation]] (by default, this leads to the
org exporter complaining about a missing target and if I tell org not to
complain I subsequently miss real errors).  So I use inline LaTeX to
provide the link, as in \ref{an-equation}.  But then I lose the ability
to jump to the target within org, something which is quite useful given
that I have many slides for the full module I teach.

The only satisfactory solution I have found is to do something along
these lines:

#+begin_src org
  The equation is:
  ,#+begin_equation
  <<an-equation>>
  y = x + 3
  ,#+end_equation

  (later) In equation [[an-equation]], we see nothing much.
#+end_src

This works in that I can jump to the label by clicking on the link but I
lose the ability to edit the equation in LaTeX mode.

Any pointers would be welcome.

Thanks,
eric

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-379-g1b74ae

             reply	other threads:[~2019-06-28 12:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-28 12:55 Fraga, Eric [this message]
2019-06-28 13:58 ` Links to LaTeX equations Ken Mankoff
2019-06-28 14:13   ` Fraga, Eric
2019-08-10  5:36     ` Carsten Dominik
2019-06-28 14:19 ` John Kitchin
2019-06-28 14:49   ` Fraga, Eric

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ftntkgxd.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /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 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).