我无法以奇特的方式格式化表格内的文本。基本上,我不喜欢图中所示的第一列的间距。
有人可以帮助我以更易读的方式格式化此表格吗?
这是我的代码:
\begin{figure}[ht]
\begin{tabularx}{\textwidth}%
{
>{\hsize=1\hsize\small}X
>{\hsize=1\hsize \small \rule{0pt}{4ex}}X
}
\hline
AICPA 2014 TS & FERPA \\
BITS Shared Assessments SIG v6.0 & GAPP (Aug 2009) \\
COBIT 5.0 & HIPAA / HITECH Act\\
COPPA & ISO/IEC 27001:2013 \\
CSA Enterprise Architecture & ISO/IEC 27002:2013 \\
CSA Guidance V3.0 & ISO/IEC 27017:2015 \\
ENISA IAF 95/46/EC - European Union Data Protection Directive & ISO/IEC 27018:2015 \\
FedRAMP Security Controls --low impact level -- & ITAR \\
FedRAMP Security Controls --moderate impact level -- & NIST SP800-53 R4 App J \\
NZISM & PCI DSS v3.0\\
\hline
\end{tabularx}
\end{figure}
答案1
这是否更好?
\documentclass{article}
\usepackage[utf8]{inputenc}%
\usepackage{tabularx, booktabs}
\begin{document}
\begin{table}[ht]
\begin{tabularx}{\textwidth}%
{
>{\small\raggedright}X
>{\small \rule{0pt}{4ex}\raggedright\arraybackslash}X
}
\toprule
AICPA 2014 TS & FERPA \\
BITS Shared Assessments SIG v6.0 & GAPP (Aug 2009) \\
COBIT 5.0 & HIPAA / HITECH Act\\
COPPA & ISO/IEC 27001:2013 \\
CSA Enterprise Architecture & ISO/IEC 27002:2013 \\
CSA Guidance V3.0 & ISO/IEC 27017:2015 \\
ENISA IAF 95/46/EC – European Union Data Protection Directive & ISO/IEC 27018:2015 \\
FedRAMP Security Controls –\,low impact level\,– & ITAR \\
FedRAMP Security Controls –\,moderate impact level\,– & NIST SP800-53 R4 App J \\
NZISM & PCI DSS v3.0\\
\bottomrule
\end{tabularx}
\end{table}
\end{document}