Re: [O] LaTeX export: Theorem with an author

2013-02-11 Thread Vincent Beffara
Hi, > > #+begin_theorem :options [Him] > > slkdfj > > #+end_theorem > > This isn't future-proof. If, for example, we need to add options for the > HTML back-end, there will be a syntax conflict. The rule is the > following: > > - If the toggle are global, allow them on the block opening string >

Re: [O] LaTeX export: Theorem with an author

2013-02-10 Thread Nicolas Goaziou
Vincent Beffara writes: > It does seem more consistent with things like fig captions and so on - > thanks for implementing! A little bit more verbose but that's fine ... > and I agree that the previous "#+begin_theorem Somebody" felt a bit > vague. How about a middle ground like this ? > > #+begi

Re: [O] LaTeX export: Theorem with an author

2013-02-10 Thread Vincent Beffara
Hi, > 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 see

Re: [O] LaTeX export: Theorem with an author

2013-02-09 Thread Andreas Leha
Hi Nicolas, >>> #+attr_latex: :options [Newton] >>> #+begin_theorem >>> Blah. >>> #+end_theorem >>> >>> It is heavier but it seems more consistent to me. >> >> Even if it *was* LaTeX only, shouldn't it be up to the backend to >> provide translation of such arguments? I'd vote for the shor

Re: [O] LaTeX export: Theorem with an author

2013-02-09 Thread Nicolas Goaziou
Hello, Andreas Leha writes: >> #+attr_latex: :options [Newton] >> #+begin_theorem >> Blah. >> #+end_theorem >> >> It is heavier but it seems more consistent to me. > > Even if it *was* LaTeX only, shouldn't it be up to the backend to > provide translation of such arguments? I'd vote for

Re: [O] LaTeX export: Theorem with an author

2013-02-09 Thread Andreas Leha
Hi Nicolas, >> 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 >> >> [...] I was not aware of that possibility in

Re: [O] LaTeX export: Theorem with an author

2013-02-08 Thread Nicolas Goaziou
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

[O] LaTeX export: Theorem with an author

2013-02-07 Thread Vincent Beffara
Hi, 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 ... Thi