-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.tex
120 lines (88 loc) · 1.95 KB
/
demo.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
%&pdflatex
\documentclass{article}
\usepackage{adjustbox}
\newcommand\Adjustbox[1]{%
\par
\bigskip
\noindent
{\ttfamily\detokenize{#1}:\ }%
\par\smallskip\noindent
\adjustbox{#1}%
}
\begin{document}
\noindent
Without keys:\par\noindent
\adjustbox{}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{scale=.5}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{width=.5\width}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{width=.5\width,height=\height}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{reflect}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{frame}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{frame={\fboxrule} \fboxsep}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{frame=2pt}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{frame=2pt 1pt}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{center}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{center=\linewidth-2\fboxrule,frame}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{left}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{left=\linewidth-2\fboxrule,frame}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{right}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{right=\linewidth-2\fboxrule,frame}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{left}{%
test line \verb+$%^&_}\relax+
test line \verb+$%^&_}\relax+
test line \verb+$%^&_}\relax+
test line \verb+$%^&_}\relax+%
}
(overlong line)
\Adjustbox{lap=\width,frame}{%
test line \verb+$%^&_}\relax+%
}
\Adjustbox{lap={0pt}\width,frame}{%
test line \verb+$%^&_}\relax+%
}
\noindent
\leavevmode\hbox{%
\collectbox*{\fboxsep=0pt\fbox}{\lapbox{\width}{%
test line \verb+$%^&_}\relax+%
}}}
\noindent\mbox{\frame\strut}
\Adjustbox{angle=90}{%
test line \verb+$%^&_}\relax+%
}.
\Adjustbox{origin=c,rotate=90,rotate=-90}{%
test line \verb+$%^&_}\relax+%
}.
\Adjustbox{origin=rB,rotate=90}{%
test line \verb+$%^&_}\relax+%
}.
\end{document}