Page Layout ⇒ Lyx chapterheading positioning
Lyx chapterheading positioning
I hope you can help me. When I convert my Lyx-document to pdf the chapterheadings are always too far from the top (for my purpose).
Is there a way I can change that?
Thanks for your help.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Lyx chapterheading positioning
Code: Select all
\usepackage{titlesec}
\titleformat{\chapter}[block]%
{\filright\bfseries\Huge}% formatting (fonts etc.)
{\huge Chapter~\thechapter}% defining the number before the title
{0pt}% space between the number and the title
{\\[12pt]}% text/command between the number and the title
[]% text/command after the title
\titlespacing*{\chapter}% sectioning unit (chapter, section etc.)
{0pt}% left indentation
{1cm}% space before the title
{16pt}% space after the title
[2cm]% right margin