我必须打印多序列比对,这意味着我必须使用等宽字体和两列才能在如下所示的文本上实现良好的比对:
gi|161129|gb|AAA29941.1| MSGSRKFFVGGNWKMNGSRDDNDKLLKLLSEAHFDDNTEVLIAPPSVFLH gi|29841157|gb|AAP06170.1| MSGSRKFFVGGNWKMNGSRDDNDKLLKLLSEAHFDDNTEVLIAPPSVFLH gi|146741274|dbj|BAF62292.1| MSGSRTFFVGGNWKMNGSREDNEKLLKLLSEAHFGDNTEVLIAPPSVFLH gi|71983330|gb|AAZ57433.1| MSGSRKFFVGGNWKMNGSQEENKKLLHILSDAHFGDNTEVLIAPPFVFLQ gi|480328213|gb|AGJ83762.1| MASNRKFFVGGNWKMNGSKESNQKLLKTLSDAKPDANTEILVAVPFVYLK gi|358332321|dbj|GAA50994.1| MEHNRKFFVGGNWKMNGSQSEIDKLIKMLSKAQLDPNTDVLVAPPVLYLQ gi|167643879|gb|ABZ90134.1| MSNQRKFFVGGNWKMNGDKDELTKICNSLMNAKLHETTEVVVAPPSIYLD gi|565321260|gb|ETE72092.1| -MAPRKFFVGGNWKMNGDKKSLSELIHTLNEAKVPAETEVVCGAPSIYLD gi|568249377|gb|ETN59184.1| --MGRKFCVGGNWKMNGDKASIAELCKTLSAGPLDPNTEVVVGCPAPYLS gi|3184376|gb|AAC39072.1| --MSRKFCVGGNWKMNGDQKSIAEIAKTLSSAALDPNTEVVIGCPAIYLM *.* *********.: . :: : * . *::: . * :*
我尝试通过结合 multicol 和 texttt 来实现这一点,但遇到了麻烦,因为我必须添加多个实例,这将占用几页。手动调整它似乎很荒谬,因为两列会自动中断页面末尾的文本。也许我应该尝试使用表格?或者我应该只截取已对齐序列的屏幕截图并将图像插入文档中?
答案1
这是一个解决方案
编辑仅举个例子使用\usepackage[scale=.9]{geometry}
\documentclass{article}
\usepackage[scale=.9]{geometry}
\usepackage{array,longtable}
\begin{document}
\begin{longtable}{>{\ttfamily}l>{\ttfamily}r}
gi|161129|gb|AAA29941.1| & MSGSRKFFVGGNWKMNGSRDDNDKLLKLLSEAHFDDNTEVLIAPPSVFLH\\
gi|29841157|gb|AAP06170.1| & MSGSRKFFVGGNWKMNGSRDDNDKLLKLLSEAHFDDNTEVLIAPPSVFLH\\
gi|146741274|dbj|BAF62292.1| & MSGSRTFFVGGNWKMNGSREDNEKLLKLLSEAHFGDNTEVLIAPPSVFLH\\
gi|71983330|gb|AAZ57433.1| & MSGSRKFFVGGNWKMNGSQEENKKLLHILSDAHFGDNTEVLIAPPFVFLQ\\
gi|480328213|gb|AGJ83762.1| & MASNRKFFVGGNWKMNGSKESNQKLLKTLSDAKPDANTEILVAVPFVYLK\\
gi|358332321|dbj|GAA50994.1| & MEHNRKFFVGGNWKMNGSQSEIDKLIKMLSKAQLDPNTDVLVAPPVLYLQ\\
gi|167643879|gb|ABZ90134.1| & MSNQRKFFVGGNWKMNGDKDELTKICNSLMNAKLHETTEVVVAPPSIYLD\\
gi|565321260|gb|ETE72092.1| & -MAPRKFFVGGNWKMNGDKKSLSELIHTLNEAKVPAETEVVCGAPSIYLD\\
gi|568249377|gb|ETN59184.1| & --MGRKFCVGGNWKMNGDKASIAELCKTLSAGPLDPNTEVVVGCPAPYLS\\
gi|3184376|gb|AAC39072.1| & --MSRKFCVGGNWKMNGDQKSIAEIAKTLSSAALDPNTEVVIGCPAIYLM\\
& *.* *********.: . :: : * . *::: . * :*\\
\end{longtable}
\end{document}