GeneralWhy does \raisebox enlarge size of enclosed object's box?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
yoyoimut
Posts: 120
Joined: Mon Oct 19, 2009 6:58 am

Why does \raisebox enlarge size of enclosed object's box?

Post by yoyoimut »

Hi everyone,
raisebox.jpg
raisebox.jpg (20.53 KiB) Viewed 1401 times

Code: Select all

\documentclass{minimal}
\begin{document}
\setlength{\fboxsep}{0.1pt}
\setlength{\fboxrule}{0.05pt}
\noindent%
%
\hrulefill%reference line
%
\fbox{g}%fbox enclosing g
%
\rule{1mm}{0.1pt}%reference line
%
\fbox{\raisebox{1cm}{g}}%fbox enclosing g raised by 1cm
%
\hrulefill%reference line
\end{document}
Why does \raisebox enlarge the vertical size of enclosed object's box?


Thank you in advance.


regards,

Yuko

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply