aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2019-08-14 21:38:08 +0200
committerGravatar √Čtienne Deparis 2019-08-14 21:38:08 +0200
commitd17ca5aaec764254e35dda0dcb27ae58bfb0f10b (patch)
tree1bdb4130ef263010c284d9a327c1515f49e1ca1a
parent6b7a9fe6733dea4720b0e4f328dc4a51fb81b196 (diff)
downloadlatex-awesomebox-master.tar.gz
latex-awesomebox-master.tar.xz
latex-awesomebox-master.zip
Document the use of footnotesHEADmaster
-rw-r--r--awesomebox.pdfbin52565 -> 54269 bytes
-rw-r--r--awesomebox.tex31
-rw-r--r--test.tex10
3 files changed, 40 insertions, 1 deletions
diff --git a/awesomebox.pdf b/awesomebox.pdf
index 10b721d..6c38487 100644
--- a/awesomebox.pdf
+++ b/awesomebox.pdf
Binary files differ
diff --git a/awesomebox.tex b/awesomebox.tex
index 45e6181..7bdd0af 100644
--- a/awesomebox.tex
+++ b/awesomebox.tex
@@ -357,7 +357,36 @@ or environments. Its default value is the following (to match the one
defined by AsciiDoctor) and you can change it this way:
\verb!\definecolor{abvrulecolor}{RGB}{221,221,216}!.
-\section{With other environments}
+\section{In the wild}
+
+\subsection{Compatibility with inline commands}
+
+Awesome boxes are drawn with the help of a \texttt{tabular}
+environment. All the glitches that you may encounter with tables will
+happen with awesomebox too. Good news is, the respective solution work
+too.
+
+For exemple, footnotes are known to behave badly with tables: the
+upraised number will appear, but the footnote definition will never be
+appended at the end of the page. To fix that, either for tables or for
+awesomeboxes, you should follow
+\hrefcolor{https://tex.stackexchange.com/questions/109467/footnote-in-tabular-environment}{this
+ answer on StackOverflow} and use the \texttt{footnote} package
+alongside the command \texttt{\textbackslash
+ make\-save\-note\-env\{tabular\}}.
+
+\begin{verbatim}
+ \documentclass{article}
+ \usepackage{footnote}
+ \makesavenoteenv{tabular}
+ \begin{document}
+ \begin{noteblock}
+ Content\footnote{footnote text}
+ \end{noteblock}
+ \end{document}
+\end{verbatim}
+
+\subsection{Compatibility with other environments}
Awesome boxes may be used in any other environments, like in a list.
diff --git a/test.tex b/test.tex
index e6edc72..7826b2e 100644
--- a/test.tex
+++ b/test.tex
@@ -14,6 +14,10 @@
\usepackage{multicol}
+% Allow footnotes to escape awesomebox
+\usepackage{footnote}
+\makesavenoteenv{tabular}
+
\begin{document}
\section{Automatic width detection in list}
@@ -32,6 +36,12 @@
\notebox{\lipsum[3][4-6]}
\lipsum[3][7-9]
+\section{What about footnotes?}
+
+\begin{noteblock}
+I can't get a \verb|\footnote|!\footnote{Can I?}
+\end{noteblock}
+
\section{With custom width declared mid document}
\setlength{\aweboxcontentwidth}{0.45\linewidth}