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.

I tried for couple hours changing Chapter, Paragraph...etc styles (especially font and it's color) in LyX, I managed to do that by modifying layout files (for example db_stdsections.inc) by simply adding:

Color Green
End Font

Inside Style Paragraph did the job, and LyX displayed the green paragraphs, but for my surprise, converting it to PDF left it unchanged! It it still Black as usual, what I'm doing wrong?


I don't what to use local Style, I think it silly to mark text as paragraph environment and then also styling text to give him green color manually, I want both to be applied simultaneously, like in MS Word.

share|improve this question
I guess (I don't use LyX) that what you did only affects the color in the editor; if you want to change the color of sectional units in the resulting document, you can use one of the packages sectsty or titlesec. –  Gonzalo Medina Aug 26 '12 at 0:34
Thx, I tried sectsty package, but it has very limited abilities (font & color change only), so I found that using \renewcommand\paragraph much better. –  TMS Aug 26 '12 at 8:52

1 Answer 1

up vote 0 down vote accepted

I think also that is more useful redefine the paragraph in the preamble or even in the body. Moreover it works with or without Lyx. I left anyway a MWE that I have made before of before seeing your comment.



\setcounter{secnumdepth}{4}% numbered
\setcounter{tocdepth}{4}% in toc



\paragraph{Lore ipsum} \lipsum[4]


\paragraph{Sed commodo} \lipsum[2]
\PARA{Nulla malesuada} \lipsum[6]

share|improve this answer

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.