From: tsd@tsdye.com (Thomas S. Dye)
To: Joon Kwon <condor002@hotmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Nice theorem display ?
Date: Tue, 07 Aug 2012 13:52:50 -1000 [thread overview]
Message-ID: <m1vcgu2ral.fsf@tsdye.com> (raw)
In-Reply-To: <COL101-W63E08EF2869CD557926795E6CE0@phx.gbl> (Joon Kwon's message of "Tue, 7 Aug 2012 22:53:05 +0200")
Joon Kwon <condor002@hotmail.com> 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 :
> | My theorem
> | Bla bla bla
> +----
>
> I guess this must not be difficult for elisp programmers ...
>
> Joon
>
>
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
--
Thomas S. Dye
http://www.tsdye.com
prev parent reply other threads:[~2012-08-07 23:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 20:53 Nice theorem display ? Joon Kwon
2012-08-07 21:38 ` Bastien
2012-08-07 22:03 ` Joon Kwon
2012-08-07 23:09 ` Bastien
2012-08-07 23:52 ` Thomas S. Dye [this message]
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=m1vcgu2ral.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=condor002@hotmail.com \
--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).