So far I have been using the ulem package. And while this works fine
inside a paragraph, errors are thrown if I try to use it across
paragraphs.
As I see it there are 4 possible solutions:
1. Find a package that would allow me to do this. So far in searching
the web I have not found anything.
2. Modify the \sout{} command in ulem.sty to work across pragraphs. I
have been staring at the source code for ulem for a couple of hours
and I do not know enough about the inner working of LaTeX to know what
to do.
3. Detect that there is a paragraph break within my command and take
some sort of action. At a minimum I would at least like to throw a
descriptive error.
3. Suppress the runaways argument check that happens at the end of a
paragraph. I don't know if this is possible or what it might mess up
if it is.
4. Use a strikeout font. I couldn't find anything on this. It would
have to be something that was default on most TeX installations.
Any suggestions that anyone could give me on this would be greatly
appreciated.
Amicitas
(Funny, I have been searching for a solution for this for 4 hours, as
soon as I post to a news group I find the answer on my own.)
amicitas.
I am very impressed if soul handles paragraphs beyond
the ordinary (\@@par or \endgraf) case!
The change to ulem to accept ordinary \par is rather
simple, but it means runaway arguments cannot be detected
and it will surely break down when LaTeX does its tricky
\par manipulations. It has been requested before though.
Does anybody reading have any preferences? (Not that
I think ulem is used much anymore.)
Donald Arseneau
A \begin{so}...\end{so} would be interesting.
> The change to ulem to accept ordinary \par is rather
> simple, but it means runaway arguments cannot be detected
> and it will surely break down when LaTeX does its tricky
> \par manipulations. It has been requested before though.
>
> Does anybody reading have any preferences? (Not that
> I think ulem is used much anymore.)
I use it rather a lot for underlining. Normal typography doesn't usually
need it, but academic work in the humanities does, where it is the
convention in some disciplines to indicate certain aspects in critical
editions. It's also useful in tech doc where you want to represent the
place where a password has been typed in a console session (where
passwords don't display at all). A \rule{}{} would do, but this works fine:
\documentclass{article}
\usepackage[normalem]{ulem}
\usepackage{fancyvrb}
\begin{document}
This is a login
\begin{Verbatim}[commandchars=\\\{\}]
Username: foo
Password: \uline{ }
\end{Verbatim}
\end{document}
///Peter