# Centering Caption Text in Latex

steponic shared this question 3 years ago

Hey everyone,

I hate LaTeX...

I've looked everywhere and tried everything I can find... I'm sure this will be easy for someone here.

How do I center text in a caption?

$\mathbf\mathsf{\large Check\\\large Answer}$

Right now, "Check Answer" appears on two lines, left justified.

I would like it to appear on two lines, centered.

Cheers,

Russ

1

Quote: "I hate LaTeX..."

I too

---------------------------

an example for caption (you can use%n, &v etc.):

1. ${\begin{array}{c} 11111111\\ 22\\ 33333\end{array}}$

1

Ich glaub das heißt "Me too" ;-)

1

Ich glaub das heißt "Me too" ;-)

1

Thanks, Rami. That works great!

Is there a way to do it without creating the array? Or is that the "standard" approach in LaTeX?

1

The most hateful of laTex are the many, many possibilities for the same.

For GGB, there are a few less possibilities.

see and choose your standard: Tabular, Array, Matrix and Multiline.

1

I do not really understand what you want, but a possibility to allign things in LateX is to use a matrix

https://www.codecogs.com/la... ... my help!

1. \begin{matrix}
2. & & \\
3. & & \\
4. & &
5. \end{matrix}

1

Hi.Is there any method to center the caption of, say, a circle or a rectangle?

I have found a method (see attachment). This way has many steps. It would be great if you suggest me a shorter method.

1