Questions tagged [phantom]

The tag has no usage guidance.

0
votes
0answers
36 views

Incomplete \iffalse; all text was ignored in tabstackengine

My MWE \documentclass[10pt]{article} \usepackage{tabstackengine,xcolor} \usepackage{amssymb} \makeatletter \newcommand*{\pmzerodot}{% \nfss@text{% \sbox0{$\vcenter{}$}% math axis \sbox2{0}% \sbox4{...
7
votes
1answer
113 views

tikzmarknode and vphantom take up horizontal space

A tikzmarknode combined with a vphantom character takes up horizontal space. Minimal but nonetheless noticeable. \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \begin{document}...
4
votes
1answer
80 views

Incomplete \iffalse in \caption, but correct in regular text. Where's the \if?

I'm trying to create a new character as a superposition of $\bot$ and =, as follows: For some reason it is not working in \caption environments, as opposed to regular environments. What is wrong; ...
1
vote
1answer
58 views

Vertical alignment of inf subscripts without vphantom

I was wondering whether it would be possible to align the index of multiple infimums (or supremums, or limits..) without recurring to the \vphantom command - I feel somehow it's kind of "cheating". ...
4
votes
3answers
117 views

Alignment of terms within align environment

The solutions below require up-to-date versions of LaTeX When I tried to run the solutions below on my own machine I was not able to reproduce their results, but still got unwanted offsets. ...
1
vote
2answers
50 views

Spacing from phantom symbol being consumed by summation symbol

The problem I have found that when I add a phantom{{}+{}} in an aligned environment, if this is followed by a summation symbol, the horizontal spacing is not the same as if I had actually used +. ...
0
votes
0answers
43 views

\phantom not working with $\varbigcirc$ [duplicate]

When I do \documentclass{article} \usepackage{stmaryrd} \begin{document} $\varbigcirc$ test \par \phantom{$\varbigcirc$} test \end{document} I get which is not what I would expect. I would ...
6
votes
1answer
156 views

How to make some character “unreadable” as text in the pdf output but still visible?

This question might be seen is a follow up/complement to this question and answer. I'm actually taking the example from there: \documentclass{article} \usepackage{xcolor} \usepackage{transparent} \...
1
vote
3answers
128 views

Specific alignment of subscripts in math mode joint with overleftarrow. How to avoid phantom space fiddling?

The oveleft/rightarrow-command is not optimal because it shiftes indices to much to the right in formulas like: $\overleftarrow{D}_v$ Therefore, I use the following macro which I have adapted from ...
4
votes
2answers
261 views

How to vertically align subscripts in mathmode [duplicate]

I would like the "AB" subscripts in my formula to be vertically aligned with each other--ideally, by adjusting the second subscript to match the current placement of the first. MWE: \documentclass{...
1
vote
0answers
108 views

Is there a long version of \phantom?

Is there a macro or environment that hides its content, replacing it by blank space like \phantom, that accepts content consisting of multiple paragraphs? (I am aware that I could use \color{white} ...
0
votes
0answers
180 views

\phantom ignored at beginning of line (or line break inserted) [duplicate]

In a document, I tried to use \phantom{} to indent the next line. However, it seems the phantom part is removed and/or a line break inserted. \documentclass[xcolor=pdftex,dvipsnames,table]{beamer} % ...
19
votes
4answers
872 views

The phantom directive does not do what I expect

Typing these two codes on http://latex2png.com/: \sqrt{\phantom{a^2}b} and \sqrt{a^2b} I get the following results:       You will notice that the two square roots ...
0
votes
1answer
583 views

How to use format=hang *within* \caption{} which is already set to \captionsetup{format=hang}?

I know that \captionsetup{format=hang} will give me a figure caption like this: Figure 1.3: Example: This is an example that is shown here. Look at the details of this picture! But how ...
0
votes
3answers
142 views

Is there a way to indent by the length of \phantom(text)?

I would like to write a text like this: Text: This is a paragraph which is so long that it has a linebreak But the indent should be set after \phantom{Text: }. How can I do that? How is it ...
7
votes
3answers
506 views

How to make all parts of fraction, except numerator, disappear while keeping original position of numerator (or how to align at numerator with `&`)?

I have split the issue I have into 2 problems and decided to post them at once to avoid semi-duplicate since they are closely related. First is to render all parts of a fraction (including the line) ...
8
votes
4answers
727 views

Phantom not working as expected in cases environment

In the image below you can see the phantom not taking up as much width as it's expected in the cases environment: Here's the MWE: \documentclass{amsart} \begin{document} \begin{align*} M+A+T & =...
1
vote
2answers
339 views

Inconsistent phantom space in table p column

Follow-up from this thread. Issue phantom seems to have an inconsistent behaviour depending on whether something is printed before its call when used in a p column type in a table. When used on its ...
1
vote
1answer
733 views

Phantom Section/Subsection/Subsubsection in Beamer

I was trying to have some standard (sub(sub))sections, where beamer would automatically create a slide dedicated to separate them, and, in other cases, a section that would appear in the pdf ...
2
votes
1answer
836 views

\hphantom* vs \hphantom: Spacing doesn't line up

I assumed the asterisk for phantom-type commands disabled the phantom command. What is actually happening? (Why don't the a characters line up?) \documentclass{scrreprt} \begin{document} \hphantom*{...