Changes

Jump to navigation Jump to search
159 bytes added ,  07:35, 25 April 2020
Cropped examples added further information provided by Rik offlist
[characters=all,
alternative=dna]
 
\starttext
\startframedtext[width=6cm,style=mono]
GATTGCTTACTCCTGGTTGGTGGGGCTTACATTCTGTCGCCTCAAAACTACTAGAGCCGGCATATTCTAGAAGGGCCGCCTTCATGTGG
\stopframedtext
 
\stoptext
</context>
And a solution using a bit of plain TeX {{cmd|handletokens}} by Rik:
<context source="yes">
\define[1]\DNA{\handletokens #1\with\DNAspacer}
\define[1]\DNAspacer{#1\hskip 2.3pt plus .1pt}
\starttext
\startframedtext[width=6cm,style=mono]
\stopframedtext
\stoptext
</context>
One caveat, however: this method always adds the spacer value, and can result in a blank line at the end in some cases, even when the spacer value is zero. This is not the case with the lua mechanism.
== See also ==
57

edits

Navigation menu