Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How to center a verse horizontally

I am using solution give by @Herbet I try to add desired font size to the verse environment but it did not work for me. my entire document appears at font size 12. I want the verse to appear in font size 18. Rest of the document can stay at size 12.

There is a one line text on top of the verse, I want it to appear in font size 8 bold in red color. I do not know how to create a command for this so that I can use it and be able to change properties later. I would appreciate your help

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You can change the font size using the \fontsize command; using \textcolor you can change the text color. An example (run it with XeLaTeX):


\textcolor{red}{\fontsize{8}{9.6}\selectfont\bfseries A line in bold red color}\\
foo bar\\


enter image description here

In the preamble of your document, you could define a command to change the font size, color and series for the line of text:


and then use it in the body of your document like

\RedLine{text with different font attributes}
share|improve this answer
You guys are awesome. Thanks for your help –  Aku Oct 6 '11 at 22:17
I am working with these fonts Aksharyogini / Nakula / Sanskrit 2003, when i replace \bfseries with any one of these I get error, what am I doing wrong. how would I work with these font types. thanks for your help –  Aku Oct 7 '11 at 13:01
@Aku: I think it could be better to open a new question. You could link to this one, so people know that the new question is a follow up. –  Gonzalo Medina Oct 7 '11 at 13:35
This above solution seems don't have the normal verse function anymore, what if I just want to tweak the font size, font style a bit? will be great if it can be set up in Preamble. –  Shi Yuan Feb 4 '13 at 12:30
@ShiYuan you can patch the environment; perhaps asking a fresh new question would be better? I am not sure about your intent. –  Gonzalo Medina Feb 5 '13 at 17:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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