From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: LaTeX export: Theorem with an author Date: Fri, 08 Feb 2013 20:58:35 +0100 Message-ID: <87txpmfuhg.fsf@gmail.com> References: <9CD440C643384D4EB0732CBE5F4161F1@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3u64-0006OP-JJ for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 14:58:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3u63-0004vI-3V for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 14:58:56 -0500 Received: from mail-wi0-f174.google.com ([209.85.212.174]:58208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3u62-0004v8-Tp for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 14:58:55 -0500 Received: by mail-wi0-f174.google.com with SMTP id hi8so1309281wib.7 for ; Fri, 08 Feb 2013 11:58:54 -0800 (PST) In-Reply-To: <9CD440C643384D4EB0732CBE5F4161F1@gmail.com> (Vincent Beffara's message of "Thu, 7 Feb 2013 21:50:49 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Vincent Beffara Cc: Org Mode List Hello, Vincent Beffara 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