Changes

Jump to navigation Jump to search
54 bytes removed ,  15:06, 31 August 2021
m
Remove MkII hint, enhance markup
frame=off,]
\input samplefile{knuth}
\startsecondary
\input samplefile{knuth}
\stopsecondary
\input samplefile{knuth}
</context>
frame=off,]
\input samplefile{knuth}
\startsecondary
\input samplefile{knuth}
\stopsecondary
\input samplefile{knuth}
</context>
Underlining is generally frowned upon by experienced TeXnicians. Occasionally,
however, it is necessary and {{cmd|ul}} or {{cmd|underbar}} doesn’t do what you want. In those
cases using {{cmd|definetextbackground}} for the underlining may also be tried.
<context source="yes">
\definetextbackground[underline]
[location=text,alternative=1,background=,frame=off]
 
\definestartstop[underline]
[before={\starttextbackground[underline]},
after=\stoptextbackground]
\startTEXpage
An example with \startunderline underlined\stopunderline\ text.
\stopTEXpage
</context>
setbounds currentpicture to p ;
\stopuseMPgraphic
 
\definetextbackground[underline]
[location=text,alternative=1,background=,frame=off]
 
\definestartstop[underline]
[before={\starttextbackground[underline]},
after=\stoptextbackground]
 
\startTEXpage
An example with \startunderline underlined\stopunderline\ text.
\stopTEXpage
</context>
\startdashed
\input samplefile{ward}
\stopdashed
</context>
 
== What if textbackground doesn’t work? (MkII) ==
 
The textbackground commands require [[Write18]] to be enabled; see that page for more information.
[[Category:Basics]]

Navigation menu