我有这段代码,我想按字母顺序排列:
\section{Abbreviations}
\doublespacing
\begin{tabular}{p{4cm}p{12cm}}
\textbf{AD} & Alzheimer's disease \\
\textbf{FAD} & Familial Alzheimer's disease \\
\textbf{LOAD} & Late-onset Alzheimer's disease \\
\textbf{A\textbeta\ } & Amyloid- \textbeta\ \\
\textbf{APP} & Amyloid precursor protein \\
\textbf{GWAS} & Genome-wide-association studies \\
\textbf{SNP} & Single nucleotide polymorphisms \\
\textbf{CXCL10} & C-X-C motif chemokine 10 \\
\textbf{OAS1} & 2’-5’-oligoadenylate synthase 1\\
\textbf{TREM2} & Triggering receptor expressed on myeloid cells 2 \\
\textbf{R47H KI} & \textit{Trem2} R47H knock-in mice \\
\textbf{APP KI} & \textit{APP\textsuperscript{NL-G-F}} knock-in mice \\
\textbf{WT} & Wild type \\
\textbf{HO} & Homozygous \\
\textbf{HET} & Heterozygous \\
\textbf{P1-P3} & Postnatal day 1-3\\
\textbf{RT-qPCR} & Real-time Quantitative PCR \\
\textbf{CT} & Cycle threshold \\
\textbf{IHC} & Immunohistochemistry \\
\textbf{PBS} & Phosphate-buffered saline \\
\textbf{PBST} & Phosphate-buffered saline 0.3\% Triton \\
\textbf{TBS} & Tris-buffered saline \\
\textbf{TBST} & Tris-buffered saline 0.1\% Tween-20 \\
\end{tabular}
我该怎么做?非常感谢您的帮助。谢谢!
答案1
首先,删除所有\textbf{}
。加载大批并使用命令>{\bfseries}
将第一列变为粗体。
然后,看看你的文本编辑器是否有行排序功能,标记所有要排序的行,然后对它们进行排序。如果没有,请将行复制到文字处理器或电子表格中,或将行保存为文本文件,并通过操作系统命令提示符(Windows 命令行sort < tobesort.txt > sorted.txt
)中的排序过滤器进行管道传输,然后进行排序。
您必须查看您语言的 ISO 排序规则,以确定希腊字母的位置。在挪威语中,Aβ
被排序为以 开头的最后一行A
。
除非您有数十个类似的表格需要排序,否则这种方法是最简单和最快的,如果没有人提供可以根据您的语言要求进行排序的排序算法。
\documentclass{article}
\usepackage{array}
\begin{document}
\section{Abbreviations}
\begin{tabular}{@{}>{\bfseries}p{4cm}p{12cm}@{}}
AD & Alzheimer's disease \\
APP & Amyloid precursor protein \\
APP KI & \textit{APP\textsuperscript{NL-G-F}} knock-in mice \\
A\boldmath{$\beta$}\ & Amyloid-$\beta$\ \\
CT & Cycle threshold \\
CXCL10 & C-X-C motif chemokine 10 \\
FAD & Familial Alzheimer's disease \\
GWAS & Genome-wide-association studies \\
HET & Heterozygous \\
HO & Homozygous \\
IHC & Immunohistochemistry \\
LOAD & Late-onset Alzheimer's disease \\
OAS1 & 2’-5’-oligoadenylate synthase 1\\
P1-P3 & Postnatal day 1-3\\
PBS & Phosphate-buffered saline \\
PBST & Phosphate-buffered saline 0.3\% Triton \\
R47H KI & \textit{Trem2} R47H knock-in mice \\
RT-qPCR & Real-time Quantitative PCR \\
SNP & Single nucleotide polymorphisms \\
TBS & Tris-buffered saline \\
TBST & Tris-buffered saline 0.1\% Tween-20 \\
TREM2 & Triggering receptor expressed on myeloid cells 2 \\
WT & Wild type \\
\end{tabular}
\end{document}