LyX ⇒ Problems with contents page
Problems with contents page
I'm using lyx 1.6.7-4. I have a deadline in two day and would appreciate some quick solutions. My contents page looks really distorted. I'm using the report document class. I need to know how I can change the content page font, page margin etc without it effecting the entire document.
Thanks in advance.
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
Re: Problems with contents page
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problems with contents page
I can't imagine that this isn't documented somewhere (online help, wiki, …).hooman wrote:Thanks but my problem is that I dont know how to use these packages...
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Problems with contents page
Then please specify what exactly do you want to change and provide an example .lyx file.hooman wrote:Thanks but my problem is that I dont know how to use these packages...
Re: Problems with contents page
Problems with contents page
Code: Select all
\usepackage{geometry}
\geometry{hmargin={3cm,1.5cm},vmargin={2cm,3cm}}
Code: Select all
\newgeometry{hmargin={6cm,6cm},vmargin={6cm,6cm}}
Code: Select all
\restoregeometry
2. For changing fonts and other properties of TOC, you may try experimenting with this example code (which goes into the preamble, together with \usepackage{titletoc}):
Code: Select all
\usepackage{titletoc}
\titlecontents{chapter}
[1.5em]% left, indent
{\bfseries}% above, formatting
{\contentslabel{1.3em}}% before with label, stuff before title
{\hspace*{-1.3em}}% same as above, when there's no label
{\titlerule*[1pc]{.}\contentspage}% filler and page
[\hrule\vspace*{6pt}]% optional, code that is following an entry
\titlecontents{section}
[3.7em]
{\itshape}
{\contentslabel{2.2em}}
{\hspace*{-2.2em}}
{\titlerule*[1pc]{.}\contentspage}
[\vspace*{3pt}]
_______________
* Note that some settings cannot be changed on the fly. Also, for these changes to work you'll need geometry package version 5 or later. Check geometry documentation for details, section 7.
- Attachments
-
- Example.lyx.zip
- (1.55 KiB) Downloaded 164 times