## LaTeX forum ⇒ LyX ⇒ Help centering legend

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
sousou
Posts: 1
Joined: Tue Sep 18, 2018 10:24 am

### Help centering legend

I am new with LATEX and I am writing my report with LYX but I find huge difficulties in making the legend centered ! here is an exemple of my figures ( fig 1 ) , the legend is extending all the page ! I want it to be centered like (fig 2) ! I've tried the command \centering but in vain .
Attachments
fig 2
Capture du 2018-09-18 10-37-25.png (143.42 KiB) Viewed 259 times
fig 1
Capture du 2018-09-18 09-22-23.png (139.24 KiB) Viewed 259 times

Tags:

diazdeus
Posts: 10
Joined: Fri Sep 28, 2018 9:34 pm
With the caption package you can do that you needs... See the documentation.