diff options
author | Karl Berry <karl@freefriends.org> | 2006-08-12 16:14:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-08-12 16:14:22 +0000 |
commit | dabbfe2e772f87cead086c07c264a5c6524cc13e (patch) | |
tree | 4bf2d947d03587e11445be58881f27ab3ab734ad /Master/texmf-dist/tex/latex | |
parent | cbcc07d7f45d448a51a7bd37225bdc276318f101 (diff) |
new latex package seqsplit
git-svn-id: svn://tug.org/texlive/trunk@1938 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/seqsplit/seqsplit.sty | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/seqsplit/seqsplit.sty b/Master/texmf-dist/tex/latex/seqsplit/seqsplit.sty new file mode 100644 index 00000000000..995f640068d --- /dev/null +++ b/Master/texmf-dist/tex/latex/seqsplit/seqsplit.sty @@ -0,0 +1,41 @@ +%% +%% This is file `seqsplit.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% seqsplit.dtx (with options: `style') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from seqsplit.sty. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file seqsplit.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{seqsplit} +[2006/08/07 v0.1 Splitting long sequences (DNA, RNA, proteins, etc.) ] +\def\seqinsert{\ifmmode\allowbreak\else\hspace{0pt plus 0.02em}\fi} +\def\seqsplit#1{\SQSPL@scan#1\SQSPL@end} +\def\SQSPL@scan{\futurelet\SQSPL@next\SQSPL@scani} +\def\SQSPL@scani#1{% + \ifx \SQSPL@end \SQSPL@next \def\SQSPL@process{\@gobble}% + \else \def\SQSPL@process{\SQSPL@doprocess}\fi% + \SQSPL@process{#1}} +\def\SQSPL@doprocess#1{#1\SQSPL@insert} +\def\SQSPL@insert{\futurelet\SQSPL@next\SQSPL@doinsert} +\def\SQSPL@doinsert{% + \ifx \SQSPL@end \SQSPL@next \relax% + \else \seqinsert \fi% + \SQSPL@scan} +\endinput +%% +%% End of file `seqsplit.sty'. |