hi,
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
LyX ⇒ alignment of section's title
alignment of section's title
Last edited by godsila on Wed Sep 15, 2010 11:23 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
alignment of section's title
Hi,
you can use the optional argument of the sectioning commands:
Another option would be to set the titles raggedright, and this can be easily done using the titlesec package:
You'll have to figure out how to implement this possible solutions in LyX, since I've never used it.
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}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: alignment of section's title
thanks so much.. i used your first suggestion and it's working..
have a good time
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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