Questions tagged [phantom]
The phantom tag has no summary.
72 questions
6
votes
3
answers
54
views
Phantom overline over visible expression
The following code:
\documentclass{article}
\begin{document}
\[ f(x',\overline{x'}) \]
\end{document}
produces the following output for me:
I'm a bit bothered that the heights of the primes are ...
2
votes
3
answers
310
views
Simplifying horizontal alignment in complex LaTeX equations
When writing LaTeX documents with long and deeply nested formulas, I often find myself manually aligning terms using repeated \hphantom expressions. For example:
\documentclass{article}
\usepackage{...
2
votes
1
answer
171
views
\phantomsection for every proof environment
I have a tex file
\documentclass{article}
\usepackage{amsthm}
\usepackage[hypertexnames=false]{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
}
\begin{document}
\begin{equation}
A = B .
...
0
votes
2
answers
223
views
How to render \left( and \right) invisible using \phantom (or other method)
The original expression:
3x+7=+\left(5\right)
Trying to "phantom" the parentheses (Error: "Extra }, or forgotten \right."):
3x+7=+\phantom{\left(}5\phantom{\right)}
0
votes
1
answer
106
views
how to add "\phantom" in calculation?
The following code "tries to implement a parser that can generate typeset representation as well as calculate the result of a single input". Similar to my previous post, \\ and & was ...
1
vote
1
answer
160
views
create a blank line in table of contents
I'm trying to create a blank line at the bottom of a page in my table of contents. In the corresponding chapter I tried:
\textcolor{white}{\subsection[\textcolor{white}{t}]{t}}
Which makes that ...
5
votes
1
answer
177
views
Weird behaviour when using amssymb, hphantom, bm and widehat
Disclaimer: this issue may be loosely related to this one: Weird \widehat behaviour caused by packages amsmath, amssymb and fouriernc
Using the following MWE:
\documentclass{article}
\usepackage{...
1
vote
2
answers
181
views
Hide plain content or make it invisible while leaving the structure
I have a document of exercises ordered with sections/subsections with the solutions below each one.
With this I want to create a document exactly the same but instead of the solution, I want that ...
6
votes
3
answers
540
views
\phantom and \obeylines
I'm using Plain TeX (actually XeTeX for font reasons but I am using it basically like it's Plain, which I'm used to). I'm typing a poem up for someone and i want to create an effect along the lines of
...
5
votes
1
answer
259
views
\phantom not giving correct space?
The code
\begin{alignat*}{2}
d\bigl(x^{(j)}_j, x^{(i)}_i\bigr)
& \le d\bigl(x^{(j)}_j, x^{(i)}_j\bigr) + d\bigl(x^{(i)}_j, x^{(i)}_i\bigr)\\
& < d\bigl(x^{(j)}_j, x^{(j)}_k\bigr) + ...
0
votes
1
answer
116
views
Spacing of a math formula defined by other math formula
I need to make sure that the spacing of some short math formula (like $x^2$) would take exactly the same spacing as some other a bit longer math formula (like $(x+1)^2-1$). The result should be $x^2$ ...
0
votes
1
answer
3k
views
How to write "zero with short slash" in TeX?
There is a similar application in the shortcuts below. However, I want the end parts of the slash to be deleted. So how can we create the fourth zero? Like \pmzerocomputer .
Thank you.
\documentclass{...
1
vote
1
answer
117
views
Undefined Control Sequence Error with \listofencl and Titlesec
With titlesec loaded, if I replace \subsection by \phantomsection I get the stated error. With that pkg removed, the replacement compiles fine. Any insight would be appreciated.
\documentclass[12pt,...
-1
votes
4
answers
172
views
Hiding informations
Good morning, I'm trying to avoid informations from my CV. In particular, I'd like to have a method to substitute my personal address with a black box of the same size of the text. I'm currently using ...
2
votes
2
answers
641
views
\phantom and $$ conflicting
I'm using phantom to maintain even spacing between the teacher version and the student version of a document. I have a newcommand that puts text from the teacher version into a phantom in the student ...