TeX - LaTeX Asked by haffner35 on October 1, 2021
I am a new LaTeX user.
When I tried to use the "description" environment in the Beamer, I found that the equations under each item are not centered on the page. How can I solve this problem?
Thank you
documentclass[mathserif]{beamer}
usepackage{graphicx}
usepackage{float}
usepackage{subcaption}
usepackage{caption}
usepackage{color}
usetheme{Madrid}
usecolortheme{spruce}
title{Geometry}
newcommand{diff}{,mathrm{d}}
begin{document}
frame{titlepage}
begin{frame}[t]
frametitle{Fundamentals}
begin{description}
item[Spherical to Cartesian Coordinates]
begin{align}
x &= sintheta cosphi
y &= sintheta sinphi
z &= costheta
end{align}
item[Differential Solid Angle]
begin{equation}
diff Omega = sintheta difftheta diffphi
end{equation}
end{description}
end{frame}
end{document}
You can use the same trick as amsart
.
documentclass[mathserif]{beamer}
usepackage{graphicx}
usepackage{float}
usepackage{subcaption}
usepackage{caption}
usepackage{color}
usetheme{Madrid}
usecolortheme{spruce}
newcommand{diff}{mathop{}!mathrm{d}}
everydisplay=expandafter{expandafterfullwidthdisplaytheeverydisplay}
newcommand{fullwidthdisplay}{displayindent=0pt displaywidth=columnwidth}
title{Geometry}
begin{document}
frame{titlepage}
begin{frame}[t]
frametitle{Fundamentals}
[
diff Omega = sintheta difftheta diffphi
]
begin{description}
item[Spherical to Cartesian Coordinates]
begin{align}
x &= sintheta cosphi
y &= sintheta sinphi
z &= costheta
end{align}
item[Differential Solid Angle]
begin{equation}
diff Omega = sintheta difftheta diffphi
end{equation}
end{description}
end{frame}
end{document}
I added the first equation to better show the centering.
I also modified your diff
command to only add a thin space when necessary.
Answered by egreg on October 1, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP