继续话题: 填充第 2 行 itemize
现在我想要第 3 行而不是第 2 行:字符(x1 x1 x1 x1)或(x2 x2 x2 x2)或(x3 x3 x3 x3)始终位于第 3 行结尾的位置。
前任:
项目 1: a1 a1 a1
排
行 x1 x1 x1 x1
项目 2:a2 a2 a2
a2 a2 a2
a2 a2 x2 x2 x2 x2
项目 3:a3 a3 a3
a3 a3 a3 x3 x3 x3 x3
\documentclass{article}
\usepackage{tikz}
\usepackage{tcolorbox}
\tcbuselibrary{poster}
\usepackage{bbding}
\usepackage{pifont}
\usepackage{enumitem}
\begin{document}
\begin{tcbposter}[
poster = {
columns=1,
rows=2,
spacing=3mm,
height=14cm,
width=12cm,
},
]
\posterbox[colframe=red,width=4cm,height=4cm]{column=1}{
\begin{itemize}[leftmargin=1em]
\item \tikz[baseline={(x.base)}] {
\node[text width=\linewidth,%draw,
inner sep=0pt,
text depth=\baselineskip,
align=justify] (x) {a1};
\node[inner sep=0pt,
anchor=base east,
font=\color{blue}] at (x.south east) {x x x};
}
\item \tikz[baseline={(x.base)}] {
\node[text width=\linewidth,
inner sep=0pt,
text depth=\baselineskip,
align=justify] (x) {This will break to three lines};
\node[inner sep=0pt,
anchor=base east,
font=\color{red}] at (x.south east) {x x x};
}
\item \tikz[baseline={(x.base)}] {
\node[text width=\linewidth,
inner sep=0pt,
text depth=\baselineskip,
align=justify] (x) {cccc2 ccccc cccc ccc};
\node[inner sep=0pt,
anchor=base east,
font=\color{green}] at (x.south east) {x x x};
}
\end{itemize}
}
\end{tcbposter}
\end{document}