Changes

Jump to navigation Jump to search
74 bytes removed ,  15:06, 31 August 2021
m
Remove MkII hint, enhance markup
< [[Basics|Text formatting]] >
 
{{todo|Add more examples of usage of textbackgrounds.}}
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</cmd> }} or <{{cmd>|underbar</cmd> }} doesn’t do what you want. In thosecases using <{{cmd>|definetextbackground</cmd> }} 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 [[write18Category:Basics]] to be enabled; see that page for more information.

Navigation menu