Text Formatting ⇒ Floating text in a book
Floating text in a book
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
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Floating text in a book
you can use package tocbasic to define a new float-environment. Package tcolorbox may come in handy to draw a nice box.
Code: Select all
\documentclass{book}
\usepackage{blindtext}
\usepackage{tcolorbox}
\usepackage{tocbasic}
\DeclareNewTOC[
float,
type=FYI
]{fyi}
\begin{document}
\chapter{lambada leguan}
\blindtext[12][10]
\begin{FYI}\begin{tcolorbox}[title=For Your
Information,colframe=red!50]
\blindtext\end{tcolorbox}
\end{FYI}
\blindtext[12][10]
\end{document}