-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
test.tex
91 lines (65 loc) · 1.76 KB
/
test.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
\documentclass{article}
\usepackage[latin]{babel}
\usepackage{mwe}
\usepackage{awesomebox}
% This repository also provides the `awesomebox-compat` package to help
% you use it with old LaTeX distribution, like the Overleaf system.
% This package only works with XeLaTeX or LuaTeX!
%\usepackage{awesomebox-compat}
%% Comment the following to test without geometry package
\usepackage[xetex,vmargin=2cm,hmargin=3cm,includeheadfoot,nomarginpar]{geometry}
\usepackage{multicol}
% Allow footnotes to escape awesomebox
\usepackage{footnote}
\makesavenoteenv{tabular}
\begin{document}
\section{Automatic width detection in list}
\lipsum[1][1-3]
\notebox{\lipsum[1][4-6]}
\lipsum[1][7-9]
\begin{itemize}
\item \lipsum[2][1-3]
\item \lipsum[2][4-5]\notebox{\lipsum[2][6-7]}
\item \lipsum[2][8-9]
\end{itemize}
\lipsum[3][1-3]
\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}
\lipsum[4][1-3]
\notebox{\lipsum[4][4-6]}
\lipsum[4][7-9]
\section{After restoration}
\setlength{\aweboxcontentwidth}{0.88\linewidth}
\lipsum[5][1-3]
\notebox{\lipsum[5][4-6]}
\lipsum[5][7-9]
\section{Minipage examples}
\fbox{
\begin{minipage}{0.4\linewidth}
\lipsum[1][1]
\notebox{\lipsum[1][3]}
\end{minipage}}
\begin{figure}[h!]
\centering
\fbox{
\begin{minipage}{0.4\linewidth}
\lipsum[1][1-3]
\notebox{\lipsum[1][4-6]}
\end{minipage}}
\caption{Minipage example in a figure}
\label{fig:minipageex}
\end{figure}
\clearpage
\begin{multicols}{2}
\section{Multiple column example}
\lipsum[1]
\notebox{\lipsum[2][1-3]}
\lipsum[3-7]
\end{multicols}
\end{document}