I want to have a paragraph, that is centered but in itself left-aligned. Does somebody of you know how to achieve this?
(I have text in a paragraph, on each line the text is shorter than the width, but if I just put "flushleft" around it comes to much to the left margin of the page)
Best Answer
It is possible to create a stand-alone environment that can do it all in one - both centering and and internally align elements:
​ The above code produces the
centerbox
environment (using theenviron
package). An optional argument specifies the width of the centered box, which defaults to\linewidth
.