在我的 tablularx 环境中,我有一个脚注,我想把它放在页面底部。使用tabularx
和tablefootnote
包都很好。但是我得到的服务有点太多了。请查看附件中我使用的代码以及结果
\documentclass[a4paper,oneside,11pt]{report}
\usepackage[english]{babel}
\usepackage{a4wide}
\usepackage{eurosym}
\usepackage{csquotes}
\usepackage{tablefootnote}
\usepackage{tabularx}
\usepackage[T1]{fontenc}
\begin{document}
\begin{table}
\centering
\caption[Firm Details]{Firm Details. Source Author}
\label{tab:firmsDescriptions}
\footnotesize
\begin{tabularx}{1.1\textwidth}{lXXXX}
% \toprule
\textbf{FirmName} & CapGemini & T-Systems & WiPro &Infosys\\
\textbf{Economy} & DE & DE & EE & EE\\
\textbf{Industry Type} & ICT Services & ICT Services & ICT Services & ICT Services\\
\textbf{Home Country} & France & Germany & India& India\\
\textbf{Employees} & 100.000+ & 48.000 & 135.000 &150,000+\\
\textbf{Revenue} & \euro~10Bn & \euro~9Bn & \euro 4.6Bn
&\euro 5.6Bn\tablefootnote{original figure in US\$~(7.4Bn) recalculated using exchange rate USD EUR of 1.3 } \\
\textbf{Description} \textbf{Description} Capgemini is a listed company at the Euronext stock exchange in Paris. The main business of Capgemini are ICT and consulting services. The latter was acquired via a takeover of Ernst\& Young Consulting. The name came to be from a merger between CAP, Sogeti and Gemini inc. Now Sogeti is wholly owned daughter of Capgemini. Typical clients are found in large manufacturing companies, banking and insurance, but also the public sector and healthcare. &
T-systems is a subsidiary of Deutsche Telekom AG. Although a subsidiary it does serve other customers than DT. The main activities are IT consulting and IT services. These include minting the IT application landscape and building new applications specific for the client. Typical clients are found in large manufacturing companies, banking and insurance, but also the public sector.&
WiPro is an Indian ICT services company, that unlike others started of as an company that manufactured oils, soaps and waxes as the `Western India Vegetable Products' This heritage is still maintained in its company logo of a sunflower. In 1981 WiPro diversifies into IT services. The business is now known for.
Their main clients other MNE that are located in the financial services, healthcare, manufacturing and telecommunications domains.&
In 1981 Infosys Consultants was established. In 1992 the name was changes to Infosys Technologies. Infosys is a NYSE listed global consulting and IT services company stemming from India. Similar to other Indian IT services firms the clients are MNE that are located in the financial services, healthcare, manufacturing and telecommunications domains \\
\end{tabularx}
\end{table}
\end{document}
令我惊讶的是,这是我的结果
我该如何删除 -1 和 0 脚注?我以为我只定义了一个。
答案1
我发现问题tabularx
在于它试图找出表格的最佳宽度。这就是你得到 3 个不同的脚注而不是想要的脚注的原因。
我不太了解这个软件包tabularx
,所以可能是在它的文档中描述了一个解决方案。
作为一种解决方法,更改tabularx
为tabular
,并且一切都按预期运行,请参阅以下 MWE。顺便说一句,我对您的表格进行了一些漂亮的打印,并更改了调用您的包的顺序。据我所知,包a4wide
已过时(请参阅 l2tabu,texdoc l2tabu
)。
MWE 已删除,请参阅下文 MWE2。
编辑:
在您的问题中添加了新的描述后,您似乎将拥有很长的表格。因此请考虑使用包longtable
。我更改了 MWE 并添加了带有tabular
和的表格版本longtable
。包longtable
不需要包“tablefootnote”。
MWE2:
\documentclass[a4paper,oneside,11pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
%\usepackage{a4wide}
\usepackage{eurosym}
\usepackage{tablefootnote}
\usepackage{tabularx}
\usepackage{ragged2e}
\usepackage[svgnames,table]{xcolor}
\usepackage{longtable}
\usepackage{showframe}
\begin{document}
With the known error:
\begin{table}
\centering
\caption[Firm Details]{Firm Details. Source Author}
\label{tab:firmsDescriptions}
\footnotesize
\begin{tabularx}{1.1\textwidth}{p{2.5cm}XXXX}
\textbf{FirmName} & CapGemini & T-Systems & WiPro & Infosys\\
\textbf{Economy} & DE & DE & EE & EE\\
\textbf{Industry Type} & ICT Services & ICT Services & ICT Services & ICT Services\\
\textbf{Home Country} & France & Germany & India & India\\
\textbf{Employees} & 100.000+ & 48.000 & 135.000 & 150,000+\\
\textbf{Revenue} & \euro~10Bn & \euro~9Bn & \euro 4.6Bn
&\euro 5.6Bn\tablefootnote{original figure in US\$~(7.4Bn) recalculated using exchange rate USD EUR of 1.3 } \\
\textbf{Description} & Capgemini is a listed company at the Euronext stock exchange in Paris. The main business of Capgemini are ICT and consulting services. The latter was acquired via a takeover of Ernst\& Young Consulting. The name came to be from a merger between CAP, Sogeti and Gemini inc. Now Sogeti is wholly owned daughter of Capgemini. Typical clients are found in large manufacturing companies, banking and insurance, but also the public sector and healthcare. &
T-systems is a subsidiary of Deutsche Telekom AG. Although a subsidiary it does serve other customers than DT. The main activities are IT consulting and IT services. These include minting the IT application landscape and building new applications specific for the client. Typical clients are found in large manufacturing companies, banking and insurance, but also the public sector.&
WiPro is an Indian ICT services company, that unlike others started of as an company that manufactured oils, soaps and waxes as the `Western India Vegetable Products' This heritage is still maintained in its company logo of a sunflower. In 1981 WiPro diversifies into IT services. The business is now known for.
Their main clients other MNE that are located in the financial services, healthcare, manufacturing and telecommunications domains.&
In 1981 Infosys Consultants was established. In 1992 the name was changes to Infosys Technologies. Infosys is a NYSE listed global consulting and IT services company stemming from India. Similar to other Indian IT services firms the clients are MNE that are located in the financial services, healthcare, manufacturing and telecommunications domains \\
\end{tabularx}
\end{table}
\clearpage
\begin{table}
\centering
\caption[Firm Details]{Firm Details. Source Author}
\label{tab:Descriptions}
\footnotesize
\begin{tabular}{p{2.5cm}p{2.5cm}p{2.5cm}p{2.5cm}p{2.5cm}}
\textbf{FirmName} & CapGemini & T-Systems & WiPro & Infosys\\
\textbf{Economy} & DE & DE & EE & EE\\
\textbf{Industry Type} & ICT Services & ICT Services & ICT Services & ICT Services\\
\textbf{Home Country} & France & Germany & India & India\\
\textbf{Employees} & 100.000+ & 48.000 & 135.000 & 150,000+\\
\textbf{Revenue} & \euro~10Bn & \euro~9Bn & \euro 4.6Bn
&\euro 5.6Bn\tablefootnote{original figure in US\$~(7.4Bn) recalculated using exchange rate USD EUR of 1.3 } \\
\textbf{Description} & Capgemini is a listed company at the Euronext stock exchange in Paris. The main business of Capgemini are ICT and consulting services. The latter was acquired via a takeover of Ernst\& Young Consulting. The name came to be from a merger between CAP, Sogeti and Gemini inc. Now Sogeti is wholly owned daughter of Capgemini. Typical clients are found in large manufacturing companies, banking and insurance, but also the public sector and healthcare. &
T-systems is a subsidiary of Deutsche Telekom AG. Although a subsidiary it does serve other customers than DT. The main activities are IT consulting and IT services. These include minting the IT application landscape and building new applications specific for the client. Typical clients are found in large manufacturing companies, banking and insurance, but also the public sector.&
WiPro is an Indian ICT services company, that unlike others started of as an company that manufactured oils, soaps and waxes as the `Western India Vegetable Products' This heritage is still maintained in its company logo of a sunflower. In 1981 WiPro diversifies into IT services. The business is now known for.
Their main clients other MNE that are located in the financial services, healthcare, manufacturing and telecommunications domains.&
In 1981 Infosys Consultants was established. In 1992 the name was changes to Infosys Technologies. Infosys is a NYSE listed global consulting and IT services company stemming from India. Similar to other Indian IT services firms the clients are MNE that are located in the financial services, healthcare, manufacturing and telecommunications domains \\
\end{tabular}
\end{table}
\clearpage
{\footnotesize
\rowcolors[]{2}{white}{blue!10}
\begin{longtable}{>{\bfseries\RaggedRight}p{2cm}>{\RaggedRight}p{3cm}>{\raggedright}p{2.5cm}>{\raggedright}p{2.5cm}p{2.5cm}}
\caption[Firm Details]{Firm Details. Source Author}
\label{tab:Descriptions}\\
FirmName & CapGemini & T-Systems & WiPro & Infosys \\
Economy & DE & DE & EE & EE \\
Industry Type & ICT Services & ICT Services & ICT Services & ICT Services \\
Home Country & France & Germany & India & India \\
Employees & 100.000+ & 48.000 & 135.000 & 150,000+ \\
Revenue & \euro~10Bn & \euro~9Bn & \euro 4.6Bn &
\euro 5.6Bn\footnote{original figure in US\$~(7.4Bn) recalculated using exchange rate USD EUR of 1.3} \\
Description & Capgemini is a listed company at the Euronext stock exchange in Paris. The main business of Capgemini are ICT and consulting services. The latter was acquired via a takeover of Ernst\& Young Consulting. The name came to be from a merger between CAP, Sogeti and Gemini inc. Now Sogeti is wholly owned daughter of Capgemini. Typical clients are found in large manufacturing companies, banking and insurance, but also the public sector and healthcare.
& T-systems is a subsidiary of Deutsche Telekom AG. Although a subsidiary it does serve other customers than DT. The main activities are IT consulting and IT services. These include minting the IT application landscape and building new applications specific for the client. Typical clients are found in large manufacturing companies, banking and insurance, but also the public sector.
& WiPro is an Indian ICT services company, that unlike others started of as an company that manufactured oils, soaps and waxes as the `Western India Vegetable Products' This heritage is still maintained in its company logo of a sunflower. In 1981 WiPro diversifies into IT services. The business is now known for.
Their main clients other MNE that are located in the financial services, healthcare, manufacturing and telecommunications domains.
& In 1981 Infosys Consultants was established. In 1992 the name was changes to Infosys Technologies. Infosys is a NYSE listed global consulting and IT services company stemming from India. Similar to other Indian IT services firms the clients are MNE that are located in the financial services, healthcare, manufacturing and telecommunications domains \\
\end{longtable}
}
\end{document}