LyX ⇒ alignment of section's title
alignment of section's title
i have a small problem. title of my section is larger then one line. because of justified alignment which is apparently not possible to change is first line of title unsightly expanded. solution of this is simple..insert a forced line break..but in content is this title of section also over two lines although there it could fit in. is there any trick how change alignment of section's title on left? or can i edit view of content item?
ps: i have a lyx 1.6.6.1 and document class is book
thanks for advice
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
alignment of section's title
you can use the optional argument of the sectioning commands:
Code: Select all
\section[Title in ToC and headings]{Title in\\ document}
Code: Select all
\documentclass{article}
\usepackage[raggedright]{titlesec}
\begin{document}
\section{A really really really really really really really really really really really really really long title}
\end{document}
Re: alignment of section's title
have a good time
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
alignment of section's title
But the second solution would be the preferable one.godsila wrote:thanks so much.. i used your first suggestion and it's working. […]
Now that the problem is obviously solved, please be so kind and mark the topic accordingly as exactly written in the Board Rules (to be read before posting).
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
alignment of section's title
at first i didn't know how implement the second solution in lyx, i was pretty tired but it was enough to writeBut the second solution would be the preferable one.
Code: Select all
\usepackage[raggedright]{titlesec}
thanks again, this is easier solution