emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Vincent Beffara <vbeffara+ml@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: LaTeX export: Theorem with an author
Date: Fri, 08 Feb 2013 20:58:35 +0100	[thread overview]
Message-ID: <87txpmfuhg.fsf@gmail.com> (raw)
In-Reply-To: <9CD440C643384D4EB0732CBE5F4161F1@gmail.com> (Vincent Beffara's message of "Thu, 7 Feb 2013 21:50:49 +0100")

Hello,

Vincent Beffara <vbeffara+ml@gmail.com> writes:

> How to generate latex code for a theorem with an author, like this:
>
> \begin{theorem}[Newton]
> Blah.
> \end{theorem}
>
> With the old exporter, you could do this:
>
>
> #+BEGIN_theorem Newton
> Blah.
> #+END_theorem
>
>
> (possibly with brackets, not sure) but now the rest of the #+BEGIN_ line is ignored ... This works:
>
>
> #+BEGIN_theorem
> [Newton]
> Blah.
> #+END_theorem
>
>
> but it is more by accident than anything else. What would be the right
> way?

There's no right way at the moment: I forgot to implement this.

Anyway, since this feature was LaTeX only, what do you think about the
following syntax (which doesn't work yet):

  #+attr_latex: :options [Newton]
  #+begin_theorem
  Blah.
  #+end_theorem

It is heavier but it seems more consistent to me.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2013-02-08 19:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-07 20:50 LaTeX export: Theorem with an author Vincent Beffara
2013-02-08 19:58 ` Nicolas Goaziou [this message]
2013-02-09 13:09   ` Andreas Leha
2013-02-09 13:16     ` Nicolas Goaziou
2013-02-09 13:30       ` Andreas Leha
2013-02-10 23:26   ` Vincent Beffara
2013-02-11  7:02     ` Nicolas Goaziou
2013-02-11 22:07       ` Vincent Beffara

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=87txpmfuhg.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=vbeffara+ml@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 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).