
テキストや表を重ねるにはどうすればよいですか?
- 文字「a」と「b」を同じ位置(左揃えと下揃え)に配置できますか?
float
2 つの表形式環境を、 、figure
、またはtable
環境内ではなく、まったく同じ場所 (一方が他方の上にある) に配置することはできますか?
答え1
と を使用する\llap
と\rlap
幅 0 のボックスを作成できます。テーブルの場合は、まずボックスを作成します。
\documentclass{article}
\begin{document}
\noindent A\llap{B}
\noindent\rlap{A}B
\newsavebox\boxa
\savebox\boxa{\begin{tabular}{@{}c@{}}
text1 \\
text2 \\
text3 \\
\end{tabular}}
\newsavebox\boxb
\savebox\boxb{\begin{tabular}{@{}cc@{}}
column1a & column2a \\
column1b & column2b \\
\end{tabular}}
\noindent\usebox\boxb\llap{\usebox\boxa}
\noindent\rlap{\usebox\boxa}\usebox\boxb
\end{document}