ページ上に重なり合うテキストを配置する

ページ上に重なり合うテキストを配置する

テキストや表を重ねるにはどうすればよいですか?

  • 文字「a」と「b」を同じ位置(左揃えと下揃え)に配置できますか?
  • float2 つの表形式環境を、 、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}

ここに画像の説明を入力してください

関連情報