[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: export to babel, sometimes a block environment is inserted.
From: |
Uwe Brauer |
Subject: |
Re: export to babel, sometimes a block environment is inserted. |
Date: |
Thu, 15 Oct 2020 21:34:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>> "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 *
smime.p7s
Description: S/MIME cryptographic signature