I am preparing a beamer presentation and I am having problems in combining justification and centering. I use mainly itemize and enumerate in my slides, and I want to have the text justified in all my slides, thus I have renewed the command \item. Now, I need to add a table (tabular) in my slide (the same applies also to figures) and I want it to be centered. The standard environment center does not work and thus I need to use something like \centering to obtain the result I am looking for. This however is quite annoying, since in a set of slides I might have many tables (and figures). Is there any way to fix this centering issue automatically from the preamble?

My code follows:

\renewcommand{\item}{\olditem \justifying}
\section{Bla bla bla}
\item bla bla bla
   1 & 2 \\
   a & b \\
   c & d \\

The following is what I am trying to obtain without having to insert all the time the \centering command:

enter image description here


The use of ragged2e's \justifying is the cause of the problem. One could just add \centering to the start of the center environment via the following preamble addition:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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