Document Classes ⇒ beamer environments in non beamer documents
beamer environments in non beamer documents
is there a way to use the \beamerboxesrounded command in a non beamer document? I am writing in a book style.
Thanks!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
beamer environments in non beamer documents
\beamerboxesrounded is defined in beamerbaseboxes.sty, reading that file could give you an impression. Perhaps the fancybox package could be an alternative way.
Stefan
Re: beamer environments in non beamer documents
I also tried the article mode in beamer, but with that mode all the typesetting of the boxes is lost. Should I jsut give up?
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
beamer environments in non beamer documents
If you cannot use beamer boxes directly, a hard workaround would be to create a beamer class document pdf with just those boxes and include parts of the pdf by \includegraphics (cropped) into the book document.
Stefan
Re: beamer environments in non beamer documents
\begin{mybeautifulbox}[options on colours, lines, etc]
my text here
\end{mybautifulbox}
The reason is, I am working with a coauthor that does not use latex, so we converge on scientific workplace. The beautiful fancybox you suggested have the problem that, because of the "node" environment, would show like a grey square in scientific workplace.... any idea to put something before the \begin{document} command that might do the trick, such as a new environment? I should add that after years of scientific word use I am pretty latex illiterate...
beamer environments in non beamer documents
Code: Select all
\newsavebox{\dangerbox}
%\newsavebox{\titolo}
\newenvironment{Danger}{ \begin{lrbox}{\dangerbox}
\begin{minipage}{\linewidth}
}
{\end{minipage} \end{lrbox}
\tikzstyle{unabox} = [draw=blue!20, fill=red!20, very thick,
rectangle, rounded corners, inner sep=10pt]
\par
\begin{tikzpicture}
\node [unabox] (box) { \begin{minipage}[t!]{\linewidth}
\usebox{\dangerbox}
\end{minipage}
};
\node[titolobox, right=10pt] at (box.north west) {#1};
\end{tikzpicture}
\par
}
\begin{document}
\begin{Danger}
BLA BLA BLA
\end{Danger}
Code: Select all
\newenvironment{Danger}[1]{ etc etc}
Many thanks