Linked Questions

20
votes
1answer
39k views

How to make a blank underline? [duplicate]

I'm looking to produce something like this: blah blah ____ blah blah But with a solid line. Thanks in advance.
0
votes
0answers
34 views

How do I make a long underlined hspace not run off to the page but split into multiple lines? [duplicate]

\documentclass{amsart} \begin{document} \title{Title 1} \maketitle Please fill in all details here: \underline{\hspace{50cm}} \\ Thank you \end{document} I would like to make the underline ...
14
votes
3answers
4k views

How to exclude text portions by simply setting a variable or option?

I'm writing a document where some text portions are confidential and would therefore like to create an environment (e.g. confidential) which I can then exclude from the PDF by simply setting a ...
12
votes
4answers
2k views

Censor text spanning multiple lines

I'd like to censor or hide some text while replacing it with the appropriate amount of white-space. The replacement text cannot be searchable. The text to be hidden usually exists in the LR mode. The ...
6
votes
4answers
2k views

An underline with texts one both ends of a line

I want to make a blank between texts on both ends of a line. For example, \begin{enumerate} \item There \hrulefill\ in the room. \end{enumerate} But, the above appears in student's version only, and ...
11
votes
2answers
2k views

How can I hide (or blur) some code in a listing?

I have a code listing to write in a report, but I'd like to blur or hide some code parts with a colored box (of same length as the hidden text), so that readers cannot see the hidden parts. (Another ...
5
votes
1answer
416 views

How to replace specific words with an underscore equal in length to the original word replaced in ConTeXt?

My problem is identical to Phantom and line break, however, I am using ConTeXt. I am creating a cloze test, e.g.: Frogs have four ____ and two eyes. The original text in the source appears like ...
1
vote
1answer
985 views

Control ulines for cloze text

@Martin Scharrer suggested me the following amazing solution to make cloze texts: https://tex.stackexchange.com/a/16004/4011 \documentclass{article} \usepackage[normalem]{ulem} \makeatletter \def\UL@...
0
votes
2answers
739 views

Invisible blind text

I basically want to add invisible blind text to my document. To print the rough layout and take some notes on what I want to write inside each of the missing paragraphs. I tried: \phantom{\blindtext}...
3
votes
1answer
110 views

`\uline` from `ulem` package won't break lines automatically when containing boolean expression

Here is the MWE: \documentclass{minimal} % \usepackage{lipsum} % \let\uline\underline \usepackage{ulem} \newif\ifanswer \newcommand{\showanswer}[0]{\answertrue} \newcommand{\hideanswer}[0]{\...