From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Nice theorem display ? Date: Tue, 07 Aug 2012 13:52:50 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SytaA-0004Nn-0P for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 19:53:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Syta8-0006ki-RG for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 19:53:01 -0400 Received: from oproxy6-pub.bluehost.com ([67.222.54.6]:34255) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Syta8-0006kJ-Hd for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 19:53:00 -0400 In-Reply-To: (Joon Kwon's message of "Tue, 7 Aug 2012 22:53:05 +0200") 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: Joon Kwon Cc: emacs-orgmode@gnu.org Joon Kwon writes: > Hi, > > I'm a new orgmode user and I am really enjoying it, especially for > writing LaTeX documents. > > I'm wondering if there is a simple way to make the buffer display > theorem environements (for instance) in a nice way... > > For instance, if I have the following code : > #+begin_theorem > My theorem > Bla bla bla > #+end_theorem > > I would like the buffer to display something like : > > Theorem :=20 > =C2=A0| My theorem > =C2=A0| Bla bla bla > =C2=A0+---- > > I guess this must not be difficult for elisp programmers ... > > Joon >=20=20=09=09=20=09=20=20=20=09=09=20=20 > Aloha Joon, Welcome to Org mode. The #+begin_theorem ... #+end_theorem pair doesn't appear in the Org mode manual. Presumably, you are using org-special-blocks to generate \begin{theorem} ... \end{theorem} environments in LaTeX? IIUC, then this means you have declared \newtheorem{theorem}{LabelText} somewhere, so that a structure like \begin{theorem} ... \end{theorem} will actually be compiled by LaTeX? This is almost certainly an unusual use case and it is not likely that it is one that could be anticipated by the Org mode software. A more typical use case is something like this: #+BEGIN_LaTeX \begin{equation} \alpha \dots \omega \end{equation} #+END_LaTeX Org mode recognizes this as a LaTeX fragment. With point inside the fragment, pressing C-c C-x C-l will generate a preview and display it in your Org mode buffer. The operation can be reversed with C-c C-c. I'm glad to hear you enjoy writing LaTeX documents in Org mode. This is something I enjoy, too. Org mode will soon become a much more powerful environment for authoring LaTeX (and other) documents, when Nicolas Goaziou's "new exporter" moves fully into the Org mode core. hth, Tom --=20 Thomas S. Dye http://www.tsdye.com