Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Strikeout across multiple paragraphs.

854 views
Skip to first unread message

amicitas

unread,
Mar 26, 2009, 6:29:59 PM3/26/09
to
I am building a LaTeX package, and as part of it I need a way to set
the text to strike out in a way that will work across multiple
platforms. Does anyone here know a solution for this?

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

amicitas

unread,
Mar 26, 2009, 6:31:06 PM3/26/09
to
(oops, I meant paragraphs in that first sentance)

amicitas

unread,
Mar 26, 2009, 6:51:09 PM3/26/09
to
Solved. The soul package does the job just fine.

(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.

Donald Arseneau

unread,
Mar 27, 2009, 3:52:33 AM3/27/09
to
On Mar 26, 2:51 pm, amicitas <amici...@gmail.com> wrote:
> Solved. The soul package does the job just fine.
> > > 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.

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

Peter Flynn

unread,
Mar 27, 2009, 7:14:37 PM3/27/09
to
Donald Arseneau wrote:
> On Mar 26, 2:51 pm, amicitas <amici...@gmail.com> wrote:
>> Solved. The soul package does the job just fine.
>>>> 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.
>
> I am very impressed if soul handles paragraphs beyond
> the ordinary (\@@par or \endgraf) case!

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

0 new messages