Strikeout and other line effects

Requirement: strikethrough/strikeout and other line effects.

Solution: use the ulem package. This package changes text marked to be emphasised by underlining rather than by italicising text. This will affect things like bibliographies, where book titles, for example, that are normally italicised are underlined instead. I find this undesirable, but the author’s thought of that already: it’s possible to switch between default behaviour and non-default behaviour.

In the preamble:

usepackage[normalem]{ulem}

This will tell LaTeX that you want default behaviour as a rule.

In the main text:

When you want special underlining/strikeout text, add the following switches:

ULforem % Switches on underlining/strikeout for em
text text sout{text} text
normalem % Switches off underlining/strikeout for em

Remember to switch the behaviour off again!

Possible commands are:

uline{text}
singly underlined text
uuline{text}
doubly underlined text
uwave{text}
wavily underlined text
sout{text}
strikeout text
xout{text}
text overlaid with strokes (forward slashes)

It is possible to view the contents of ulem.sty online. There is also some documentation about ulem.sty.

Advertisements
Leave a comment

What do you have to say about this?

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: