我有这张乳胶表:
\resizebox{\columnwidth}{!}{%
\begin{tabular}{ c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c }
C & C & A & T & C & G & C & A & C & T & C & C & G & A & T & G & T & G & G & C & C & G & G & T & G & C & T & C & A & C & G & T & T & G & C & C & T \\
\end{tabular}
}
我该如何设置表格,以便这一行全部显示在一行中(您可以看到,在当前情况下,有 2 行
答案1
也许偏离主题尊重表格问题,但你真的想输入 DNA 序列C & C & A & T & ...
吗?
\documentclass{article}
\usepackage{dnaseq,seqsplit,xcolor,booktabs}
\renewcommand{\DNAblock}{3}
\renewcommand{\DNAreserve}{0}
\begin{document}
\begin{table}
\caption{My DNA sequence 1}
\centering
\renewcommand{\seqinsert}{\ifmmode\allowbreak\else{\,}\fi}
\begin{tabular}{c}\toprule
\seqsplit{CCATCGCACTCCGATGTGGCCGGTGCTCACGTTGCCT}
\\\bottomrule
\end{tabular}
\caption{My DNA sequence 2}
\renewcommand{\DNAblock}{1}
\renewcommand{\DNAreserve}{1}
\centering\footnotesize
\begin{minipage}{.93\linewidth}
\noindent\rule{\linewidth}{1pt}
\DNA!CCATCGCACTCCGATGTGGCCGGTGCTCACGTTGCCT !
\\[-4ex]\rule{\linewidth}{1pt}
\end{minipage}
\caption{My DNA sequence 3}
\normalsize
\renewcommand{\DNAblock}{3}
\renewcommand{\DNAreserve}{0000}
\centering
\begin{minipage}{\linewidth}
\noindent\rule{\linewidth}{1pt}
\DNA!
CCATCG'{yellow!50}CAC'{white}TCCGATGTG
GCCGGTGCTCACGTTGCCTCGGTGCTCACGTTGCCT
CCATC'{yellow!50}CAC'{white}TCCGATGTGGC
CCATCGCACTCCGATGTGGCCGGTGCTCACGTTGCCT
CCATCGC'{red!20}ACTCCGATG'{white}GGCCGGTGC
CCATCGCACTCCGATGTGGCCGGTGCTCACGTTGCC
!
\\[-5pt]\rule{\linewidth}{1pt}
\end{minipage}
\end{table}
\end{document}