我想做一张桌子。
\documentclass{book}
\usepackage{placeins}
\usepackage{longtable}
\usepackage{tabularx}
\begin{document}
\FloatBarrier
\begingroup
\setlength\extrarowheight{11pt}
\begin{center}
\begin{longtable}{|c|c|l|c|}
\caption{Daftar Saham untuk Perhitungan Indeks LQ45} \label{LQ45}\\
\hline
No.&Kode&Nama Saham&Keterangan\\
\hline
1.&ACES&Ace Hardware Indonesia Tbk.&\\
\hline
2.&ADRO&Adaro Energy Tbk.&\\
\hline
3.&AKRA&AKR Corporindo Tbk.&\\
\hline
\multicolumn{4}{p{\textwidth}}
{
Source: blablabla
}
\end{longtable}
\end{center}
\endgroup
\FloatBarrier
\end{document}
我想使垂直线对齐来源:blablabla。我给了\hspace{-0.2cm}
,但不起作用。怎么办?
答案1
\documentclass{book}
\usepackage{placeins}
\usepackage{longtable}
\usepackage{tabularx}
\begin{document}
\FloatBarrier
\begingroup
\setlength\extrarowheight{11pt}
\begin{center}
\begin{longtable}{|c|c|l|c|}
\caption{Daftar Saham untuk Perhitungan Indeks LQ45} \label{LQ45}\\
\hline
No.&Kode&Nama Saham&Keterangan\\
\hline
1.&ACES&Ace Hardware Indonesia Tbk.&\\
\hline
2.&ADRO&Adaro Energy Tbk.&\\
\hline
3.&AKRA&AKR Corporindo Tbk.&\\
\hline
\multicolumn{4}{@{}p{\textwidth}}
{
Source: blablabla
}
\end{longtable}
\end{center}
\endgroup
\FloatBarrier
\end{document}