emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: export to babel, sometimes a block environment is inserted.
Date: Thu, 15 Oct 2020 21:34:36 +0200	[thread overview]
Message-ID: <871rhznv03.fsf@mat.ucm.es> (raw)
In-Reply-To: 87mu0npc2l.fsf@yandex.com

[-- Attachment #1: Type: text/plain, Size: 1930 bytes --]

>>> "CB" == Colin Baxter <m43cap@yandex.com> writes:

>>>>>> Uwe Brauer <oub@mat.ucm.es> writes:
>> Hello I have a org file that I want to export either to

>> 1. Regular latex or

>> 2. To beamer.


>> So I just use the corresponding export engines.

>> However the following minimal example puzzles me:

>> #+begin_src

>> # -*- org-confirm-babel-evaluate: nil -*- #+LATEX_HEADER_EXTRA:
>> \usepackage{booktabs}

>> * The algorithm applied to the Lane-Emden equation :PROPERTIES:
>> :BEAMER_env: frame :BEAMER_opt: allowframebreaks :END:

>> ** The original Lane-Emden equation

>> #+begin_src latex :results latex replace :exports results :eval t
>> \begin{equation*} \begin{cases} y''(x)+\frac{2}{x}y'(x)+y^{n}
>> &=0\\ y(0) &= 1\\ y'(0) &=0 \end{cases} \end{equation*} where
>> $n\in[0,5]$ is the polytropic index.  #+end_src


>> #+end_src


>> Because it exports to

>> #+begin_src \begin{frame}[allowframebreaks]{The SLM algorithm
>> applied to the Lane-Emden equation} \begin{block}{The original
>> Lane-Emden equation} \begin{equation*}
>> y''(x)+\frac{2}{x}y'(x)+y^{n} &=0\\ y(0) &= 1\\ y'(0) &=0
>> \end{equation*} where $n\in[0,5]$ is the polytropic index.
>> \end{block} \end{frame}

>> #+end_src

>> How can I avoid this annoying block environment?

>> Regards

>> Uwe Brauer


> Try \[ in place of \begin{equation*}; \] in place of \end{equation*}

Thanks I also found out that the 
* The ... algorithm applied to the Lane-Emden equation
:PROPERTIES:
:BEAMER_env: frame
:BEAMER_opt: allowframebreaks
:END:

* The original Lane-Emden equation

 #+begin_src latex :results latex replace :exports results :eval t
\begin{equation*}
  \begin{cases}
    y''(x)+\frac{2}{x}y'(x)+y^{n} &=0\\
    y(0) &= 1\\
    y'(0) &=0
  \end{cases}
\end{equation*}
where $n\in[0,5]$ is the polytropic index.
 #+end_src


Works fine, that is changing ** to *


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

  reply	other threads:[~2020-10-15 19:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-15 17:44 export to babel, sometimes a block environment is inserted Uwe Brauer
2020-10-15 18:40 ` Colin Baxter
2020-10-15 19:34   ` Uwe Brauer [this message]
2020-10-16  8:54 ` Eric S Fraga
2020-10-16 16:06   ` Uwe Brauer
2020-10-17 11:17     ` Eric S Fraga
2020-10-17 13:26       ` Uwe Brauer

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=871rhznv03.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --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).