Is there an easy way to break a rule over multiple lines? I.e. for it to continue flowing just as text would, and not continuing straight through the page border?
Specifically, I'm trying to typeset questions for a test.
Here's a MWE:
\documentclass[11pt]{article}
\usepackage{enumitem}
\usepackage[left=2cm,right=2cm,bottom=2cm,top=2cm]{geometry}
\usepackage[onehalfspacing]{setspace}
\begin{document}
\begin{enumerate}[label=(\arabic*)]
\item Ap sala kemae njeuqsket jquakmdk a kameiuwma ke eiqkamk jekamska keialk
oela \rule{6cm}{0.15mm}.
\end{enumerate}
\end{document}
What I'm getting is this:
What I'd like to get is something like
but with the first part of the line stretching to the end of the text width, then breaking and continuing in the next line. (The "desired" output was done by typesetting the rule with two calls to the \rule
command, with a manual line break, i.e. \\
between them.)
censor
package's\xblackout
macro breaks across lines, and can be set up as a "rule" in appearance with\censorruledepth=-.2ex
and\censorruleheight=.1ex
\xblackout{aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}
with the options you've listed in the comment (and the other post), but have run into the same problem. So, the MWE is the same as before, but\rule
is replaced by\xblackout
as stated earlier, and the\censorrule...
options are set.\underline{\phantom{text}}
trick. Moreover, it appeared when using just\phantom{long-text}
. Maybe it's because of the\enumerate
environment?\xblackout
works with text, and allows breaks between words, in the manner of\xblackout{This is the text I want blacked out}
. In this sense, it may not be exactly what you want.\xblackout
function and it works as intended. Basically, I'm trying to keep the blank lines at about the same length, so I'll just use your package with some text "constant". That being said, I don't know how I haven't come across the topic you've linked. If you'd like to post your comment as an answer, I'll gladly accept it. Thank you!