Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I started using LaTeX yesterday and there's something I can't figure out: I've noticed that I don't have some commands, for example right now I'm trying to use \vphantom and \phantom, but when I type these commands they are not recognized. I've been googling but haven't found anything useful; am I missing a package or something? I've been using TexMaker and this is the only problem I've encountered so far. Any suggestions on what is going on will be greatly appreciated, Cheers!

share|improve this question

closed as too localized by Thorsten, diabonas, lockstep, Martin Schröder, Marco Daniel Aug 15 '12 at 15:59

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Check this out: tex.stackexchange.com/q/41185/10898 –  azetina Aug 12 '12 at 21:57
3  
\vphantom and \phantom do not depend on any packages, so they should work on any LaTeX system. Can you please add to your question a complete and minimal document illustrating your problem? –  Gonzalo Medina Aug 12 '12 at 21:59
    
For some reason I tried again after restarting my computer and now it recognizes the command :O, thanks for the info anyways! really appreciate it! –  waclock Aug 13 '12 at 2:18
add comment

1 Answer 1

up vote 0 down vote accepted

The following code compiles without any packages:

\documentclass{article}
\begin{document}
\fbox{g\vphantom{f}}\fbox{f\vphantom{g}}
\end{document}

This yields:

enter image description here

As @GonzaloMedina says, both commands are independent of any packages.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.