TeX - LaTeX Asked by Kenny Smith on May 26, 2021
I have this latex table:
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}
}
how can I set the the table, so this row will all be in 1 line (you can see that in the current situation, there are 2 lines
Maybe off-topic respect the tabular problem, but really you want to type DNA sequences typing 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}{ifmmodeallowbreakelse{,}fi}
begin{tabular}{c}toprule
seqsplit{CCATCGCACTCCGATGTGGCCGGTGCTCACGTTGCCT}
bottomrule
end{tabular}
caption{My DNA sequence 2}
renewcommand{DNAblock}{1}
renewcommand{DNAreserve}{1}
centeringfootnotesize
begin{minipage}{.93linewidth}
noindentrule{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}
noindentrule{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}
Answered by Fran on May 26, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP