From: "Robert M. Kovacsics" <rmk35@cam.ac.uk>
To: emacs-orgmode@gnu.org
Subject: ox-html: proof-tree (bussproofs) latex fragment
Date: Fri, 26 Apr 2019 18:24:41 +0100 [thread overview]
Message-ID: <e1063dbf380a4c335f643f15303873b3@cam.ac.uk> (raw)
Hi,
I have a latex-fragment like so
#+LATEX_HEADER: \usepackage{bussproofs}
#+OPTIONS: tex:dvipng
\begin{prooftree}
\AxiomC{}
\LeftLabel{(fn)}
\UnaryInfC{$\text{Env}\vdash C(\text{Env}', \text{fn } x \ \Rightarrow\
E_1)\ v \ \to\ \text{Env},\text{Env}',(x,v)\vdash E_1$}
\end{prooftree}
when I export this, it fails because it replaces the \begin{prooftree}
with \begin{prooftree*}, and there is no such environment. I think the
problem is with "org-html--unlabel-latex-environment" in ox-html.el, as
it assumes any environment has a starred version. Perhaps that function
should only be applied to a couple of environments, e.g. equation,
according to a whitelist? Or have a blacklist for which it shouldn't
apply.
Or perhaps I am including latex fragments wrong?
Thanks,
Robert
reply other threads:[~2019-04-26 17:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=e1063dbf380a4c335f643f15303873b3@cam.ac.uk \
--to=rmk35@cam.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).