Since text is made up of boxes, and that is how LaTeX figures out the typesetting, I was wondering if there was a way to create spacing that would be the same size as a piece of text.
I.e.:
\foo{text} would create space the same size as "text" in the current typeface.
\foo{\texttt text} would create the space the same size as "text" in the current size and in the typewriter face.
Thanks for any suggestions.
Text Formatting ⇒ Spacing - Invisible text
Spacing - Invisible text
Last edited by egan on Sun Aug 15, 2010 9:33 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10322
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Spacing - Invisible text
Hi egan,
use \phantom{text}. There are variations like \hphantom and \vphantom for horizontal respectively vertical spacing.
Stefan
use \phantom{text}. There are variations like \hphantom and \vphantom for horizontal respectively vertical spacing.
Stefan
LaTeX.org admin