Re: Unwanted spacing in Table of Contents
On Sun, 24 Jan 2021 10:12:45 +1100 Anthony Macks wrote: > Dear All, > > I have attached my LyX file and its pdf output. > > For some reason, the spacing between sections and subsections in my > table of contents is very large. > > In fact, it appears that the items in the TOC are being distributed > evenly over the length of the page. > > I am running Lyx 2.3.5.2 on Windows 10 on a Surface Pro. > > Any help is much appreciated. > > Kind Regards, > Anthony This is how I vertically condense the Table of Contents: % ### Modify table of contents to be more vertically condensed. ### \renewcommand\tableofcontents{% \if@twocolumn \@restonecoltrue\onecolumn \else \@restonecolfalse \fi \chapter*{\contentsname \@mkboth{% \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}% { \small\setlength{\parskip}{4pt}\setstretch{0.8}% \@starttoc{toc}% } \if@restonecol\twocolumn\fi } I just put it in my layout file and I'm good to go. SteveT Steve Litt Autumn 2020 featured book: Thriving in Tough Times http://www.troubleshooters.com/thrive -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Unwanted spacing in Table of Contents
On 1/24/21 4:56 AM, John Beattie wrote: > On 2021-01-23 19:58 -0500, Richard Kimberly Heck wrote: >> On 1/23/21 6:12 PM, Anthony Macks wrote: >>> Dear All, >>> >>> I have attached my LyX file and its pdf output. >>> >>> For some reason, the spacing between sections and subsections in my table >>> of contents is very large. >>> >>> In fact, it appears that the items in the TOC are being distributed evenly >>> over the length of the page. >> You should use New Page rather than Page Break. The latter stretches the >> page, just as you are seeing; the former does not. See section 3.5.5 of the >> User Guide. I agree it is not very clear what the difference is from the >> menu or the display. If you have any ideas what would make it clearer, >> please let us know. >> >> Riki >> > > Thank you for pointing out that very useful section of the guide. I think I > have been using Page-Break and New-Page rather indiscriminately, usually to > avoid having a single line of a paragraph at the bottom of a page. The preferred way to do that is with preamble code. The old way was to do it manually: \widowpenalty=1 \orphanpenalty=1000 But nowadays there's a package to do it: nowidow. Just install the nowidow package and then put in the premable: \usepackage{nowidow} > Re your request, I see that the equivalents for forcing line breaks have more > descriptive names. I suggest that the thing to change is name of Page Break, > so > as to include the 'break' part and also the 'spread' part. > > Or, on writing that, it occurs to me that Ragged-Page-Break and > Justified-Page-Break might actually do the job? This is hard. At least for me, "Justified" indicates horizontal space. I'll ask on lyx-devel too. Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Unwanted spacing in Table of Contents
On 2021-01-23 19:58 -0500, Richard Kimberly Heck wrote: > On 1/23/21 6:12 PM, Anthony Macks wrote: > >Dear All, > > > >I have attached my LyX file and its pdf output. > > > >For some reason, the spacing between sections and subsections in my table > >of contents is very large. > > > >In fact, it appears that the items in the TOC are being distributed evenly > >over the length of the page. > > You should use New Page rather than Page Break. The latter stretches the > page, just as you are seeing; the former does not. See section 3.5.5 of the > User Guide. I agree it is not very clear what the difference is from the > menu or the display. If you have any ideas what would make it clearer, > please let us know. > > Riki > Thank you for pointing out that very useful section of the guide. I think I have been using Page-Break and New-Page rather indiscriminately, usually to avoid having a single line of a paragraph at the bottom of a page. Hence I probably haven't noticed the spreading or if I did it was probably small in my cases. Re your request, I see that the equivalents for forcing line breaks have more descriptive names. I suggest that the thing to change is name of Page Break, so as to include the 'break' part and also the 'spread' part. Or, on writing that, it occurs to me that Ragged-Page-Break and Justified-Page-Break might actually do the job? John -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Unwanted spacing in Table of Contents
On 1/23/21 6:12 PM, Anthony Macks wrote: Dear All, I have attached my LyX file and its pdf output. For some reason, the spacing between sections and subsections in my table of contents is very large. In fact, it appears that the items in the TOC are being distributed evenly over the length of the page. You should use New Page rather than Page Break. The latter stretches the page, just as you are seeing; the former does not. See section 3.5.5 of the User Guide. I agree it is not very clear what the difference is from the menu or the display. If you have any ideas what would make it clearer, please let us know. Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Unwanted spacing in Table of Contents
Dear All, I have attached my LyX file and its pdf output. For some reason, the spacing between sections and subsections in my table of contents is very large. In fact, it appears that the items in the TOC are being distributed evenly over the length of the page. I am running Lyx 2.3.5.2 on Windows 10 on a Surface Pro. Any help is much appreciated. Kind Regards, Anthony toctest.lyx Description: application/lyx toctest.pdf Description: Adobe PDF document -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users