长表顶行的标题行对齐方式

长表顶行的标题行对齐方式

我无法设置长表顶行的对齐方式(右对齐)。

\documentclass[english]{article}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{array}

\usepackage{longtable}

\usepackage{float}

\usepackage{setspace}

\usepackage{babel}


\begin{document}

Text (journal), an academic journal of language, discourse, and communication studies
Text (literary theory), any object that can be "read", including literature and other objects
Textbook, a manual of instruction in any branch of study
Religious text, writings which various religious traditions consider to be sacred
Written text, communication that represents language through the inscription of signs and symbols

\setstretch{.5}

\begin{longtable}{>{\raggedright}p{135pt}>{\raggedright}p{135pt}r}

\caption{Why Thousand USD is not right aligned?}

\multicolumn{3}{r}{\textbf{\scriptsize{}(Thousand USD)}}\tabularnewline

\textbf{Country} & \textbf{District} & \textbf{Amount }\textbf{\scriptsize ('000'USD)}\tabularnewline

\hline 
\endhead
Afghanistan & L & 6\tabularnewline
\hline 

Australia & K & 2,9\tabularnewline
\hline 

Austria & I & 3\tabularnewline
\hline 

Bahrain & K & 3\tabularnewline
 & L & 1\tabularnewline
\hline 

Belgium & K & 1\tabularnewline
 & L & 2\tabularnewline
\hline 

Canada & I & 99,965\tabularnewline
 & K & 9\tabularnewline
 & L & 1\tabularnewline
\hline 

Cayman I & I & 2\tabularnewline
 & Ka & 1\tabularnewline
\hline 

\textbf{Grand Total} &  & \textbf{2}\tabularnewline
\hline 

\end{longtable}

\end{document}

答案1

\caption{Why Thousand USD is not right alligned?}\\

我没有问题。这\\很重要。

相关内容