Centering Caption Text in Latex

steponic shared this question 3 years ago
Answered

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

Comments (8)

photo
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}}$

photo
1

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

photo
1

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

photo
photo
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?

photo
1

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

For GGB, there are a few less possibilities.

http://wiki.geogebra.org/en...

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

photo
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}

photo
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.

Thanks in advance.

photo
1

I have found this threads:

https://help.geogebra.org/topic/text-centering

https://help.geogebra.org/t...

I've not checked them yet.

photo
© 2020 International GeoGebra Institute