In the posts to the question of Timtico (here) several ways have been proposed to colour the As,Ts,Cs and Gs differently within a DNA sequence. What I want is also to be able to underline some nucleotides to emphasise them, e.g.: \dna{ATACAG$\underbar{AG}$CATA} but I didn't manage to do so.
Does anyone have suggestions to this problem?
Thank you very much!
[Tex/LaTex] Underlining a coloured DNA sequence
colorformattingverbatim
Best Answer
I added a delimiter to the code from my answer at typesetting different characters with different colors in a DNA sequence
The result is
I think, this should work for you.