-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.tex
More file actions
61 lines (46 loc) · 1.01 KB
/
test.tex
File metadata and controls
61 lines (46 loc) · 1.01 KB
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
\documentclass[a4paper]{article}
\usepackage[]{xcolor}
\usepackage[]{adjustbox}
\listfiles
\fboxsep=0pt
\parskip=1cm
\def\tbox#1#2{%
\detokenize{#1}: \rlap{\hbox{\trimbox{#1}{#2}}}\hbox{\clipbox{#1}{\textcolor{green}{#2}}}%
}
\begin{document}
\ttfamily
{
none:~~\fbox{\Huge Ag}
\tbox {0 0 0 0}{\Huge Ag}
\tbox {1pt 1pt 1pt 1pt}{\Huge Ag}
\tbox {1pt {\depth+5pt} 1pt 1pt}{\Huge Ag}
\tbox {1pt {\depth+5pt} 1pt 1pt}{\Huge Ag}
\tbox {1pt 12pt 1pt 01pt}{\Huge Ag}
\tbox {1pt 1pt 10pt 10pt}{\Huge Ag}
adjust:\fbox{\adjustbox{trim=10pt 1pt 1pt 1pt,angle=10}{\Huge Ag}}
\fbox{{%
\begin{clipbox}{1 1 1 1}
CLIP ME! \clipbox{4 0 0 0}{A}
\begin{clipbox}{0 0 0 2}
B
\end{clipbox}
\end{clipbox}
}}
\fbox{{%
\begin{trimbox}{1 1 1 1}
TRIM ME! \trimbox{4 0 0 0}{A}
\begin{trimbox}{0 0 3 2}%
B%
\end{trimbox}C
\end{trimbox}
}}
\fbox{{%
\begin{clipbox}{1 1 1 1}
CLIP ME! \clipbox{4 0 0 0}{A}
\begin{trimbox}{0 0 3 2}%
B%
\end{trimbox}C
\end{clipbox}
}}
}
\end{document}