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 1426 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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply