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!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- 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: 10324
- 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