\documentclass{article}
\usepackage{xcolor}
\definecolor{darkgrey}{HTML}{333333}
\usepackage{xcoffins}
\begin{document}
\SetHorizontalCoffin\OutputCoffin{}
\SetHorizontalCoffin\RedCoffin
{\color{red!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[vc,hc]\RedCoffin[vc,hc]
\SetHorizontalCoffin\BlueCoffin
{\color{blue!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\RedCoffin-vc,\RedCoffin-hc]
\BlueCoffin[b,l]
\SetHorizontalCoffin\GreenCoffin
{\color{green!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\BlueCoffin-vc,\BlueCoffin-hc]
\GreenCoffin[b,l]
\SetHorizontalCoffin\YellowCoffin
{\color{yellow!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\GreenCoffin-vc,\GreenCoffin-hc]
\YellowCoffin[b,l]
\SetHorizontalCoffin \OrangeCoffin
{\color{orange!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\BlueCoffin-t,\BlueCoffin-l]
\OrangeCoffin[b,r]
\TypesetCoffin\OutputCoffin
\end{document}
根据棺材的文档,我试图编译上述代码 - 我该如何完成它?
感谢@FrankMittelbach的回答@https://tex.stackexchange.com/a/44159/197451
答案1
\documentclass{article}
\usepackage{xcolor}
\definecolor{darkgrey}{HTML}{333333}
\usepackage{xcoffins}
\NewCoffin \RedCoffin
\NewCoffin \BlueCoffin
\NewCoffin \GreenCoffin
\NewCoffin \YellowCoffin
\NewCoffin \OrangeCoffin
\NewCoffin \OutputCoffin
\begin{document}
\SetHorizontalCoffin\OutputCoffin{}
\SetHorizontalCoffin\RedCoffin
{\color{red!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[vc,hc]\RedCoffin[vc,hc]
\SetHorizontalCoffin\BlueCoffin
{\color{blue!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\RedCoffin-vc,\RedCoffin-hc]
\BlueCoffin[b,l]
\SetHorizontalCoffin\GreenCoffin
{\color{green!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\BlueCoffin-vc,\BlueCoffin-hc]
\GreenCoffin[b,l]
\SetHorizontalCoffin\YellowCoffin
{\color{yellow!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\GreenCoffin-vc,\GreenCoffin-hc]
\YellowCoffin[b,l]
\SetHorizontalCoffin \OrangeCoffin
{\color{orange!20!white}\rule{0.2 in}{0.2 in}}
\JoinCoffins\OutputCoffin[\BlueCoffin-t,\BlueCoffin-l]
\OrangeCoffin[b,r]
\TypesetCoffin\OutputCoffin
\end{document}
知道了 !!!