[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to signal end of a section or subsection
From: |
Sebastien Vauban |
Subject: |
Re: [O] How to signal end of a section or subsection |
Date: |
Thu, 23 Jan 2014 23:20:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) |
Hello Nicolas,
Nicolas Goaziou wrote:
> "Sebastien Vauban" writes:
>
>> Is the simpler solution valid on all types of block environments?
>>
>> To enumerate them (extensively, AFAICT):
>>
>> - structureenv
>> - alertblock
>> - exampleblock
>> - definition
>> - example
>> - proof
>> - beamercolorbox
>> - verse
>> - quotation
>> - quote
>
> The "simpler solution" is just a consequence of special blocks handling
> in LaTeX export back-ends. So, it will work for any special block.
OK, thanks.
> You can rule out verse, example and quote, which have their own type
> in Org syntax.
Verse and quote give the same results in both the complex and the simple
ways.
However, it does not for example.
The following:
--8<---------------cut here---------------start------------->8---
** =example= environment
- Behaves like the theorem environment, except that the theorem style =example=
is used.
- A side-effect of using this theorem style is that the contents is put in an
=exampleblock= instead of a =block=.
*** Example :B_example:
:PROPERTIES:
:BEAMER_env: example
:END:
Contents of example
*** End of example :B_ignoreheading:
:PROPERTIES:
:BEAMER_env: ignoreheading
:END:
** =example= environment
- Simpler solution:
#+begin_example
Contents of example
#+end_example
--8<---------------cut here---------------end--------------->8---
gives:
--8<---------------cut here---------------start------------->8---
\begin{frame}[fragile,label=sec-6-8]{\texttt{example} environment}
\begin{itemize}
\item Behaves like the theorem environment, except that the theorem style
\texttt{example}
is used.
\item A side-effect of using this theorem style is that the contents is put in
an
\texttt{exampleblock} instead of a \texttt{block}.
\end{itemize}
\begin{example}[Example]
Contents of example
\end{example}
\end{frame}
\begin{frame}[fragile,label=sec-6-9]{\texttt{example} environment}
\begin{itemize}
\item Simpler solution:
\end{itemize}
\begin{verbatim}
Contents of example
\end{verbatim}
\end{frame}
--8<---------------cut here---------------end--------------->8---
Hence, a verbatim environment in LaTeX instead of an example.
Do I miss something? Or do I have something wrong somewhere?
Best regards,
Seb
--
Sebastien Vauban
- Re: [O] How to signal end of a section or subsection, (continued)
- Re: [O] How to signal end of a section or subsection, Skip Collins, 2014/01/20
- Re: [O] How to signal end of a section or subsection, Eric S Fraga, 2014/01/21
- Re: [O] How to signal end of a section or subsection, Alan Schmitt, 2014/01/22
- Re: [O] How to signal end of a section or subsection, Nicolas Goaziou, 2014/01/22
- Re: [O] How to signal end of a section or subsection, Sebastien Vauban, 2014/01/22
- Re: [O] How to signal end of a section or subsection, Nicolas Goaziou, 2014/01/22
- Re: [O] How to signal end of a section or subsection, Sebastien Vauban, 2014/01/23
- Re: [O] How to signal end of a section or subsection, Nicolas Goaziou, 2014/01/23
- Re: [O] How to signal end of a section or subsection,
Sebastien Vauban <=
- Re: [O] How to signal end of a section or subsection, Alan Schmitt, 2014/01/22