LyXsingle-space footnotes in onehalfspacing book

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

single-space footnotes in onehalfspacing book

Post by ExecutorElassus »

This is my (somewhat convoluted) preamble for my present document:

Code: Select all

\setkomafont{sectioning}{\rmfamily \bfseries}
\KOMAoptions{headings=small}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{bidi}
\usepackage{xeCJK}
\defaultfontfeatures{Mapping=tex-text}
\usepackage[ruled]{bigfoot}
\DeclareNewFootnote{default}
\DeclareNewFootnote{B}[fnsymbol]
\MakeSortedPerPage{footnoteB}
\makeatletter
\let\@makefntext@orig\@makefntext
\FootnoteSpecific{B}\def\@makefntext{\@makefntext@orig\tiny}
\makeatother
\usepackage[natbib=true,backend=bibtex8,style=alphabetic]{biblatex}
\addbibresource{/home/elassus/carrier5/music/intonation-book/bookbib.bib}
\usepackage{setspace}
\onehalfspacing
\fancyhead[RO]{\itshape\rightmark}
\fancyhead[RE]{\itshape\leftmark}
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}
\definecolor{magenta}{RGB}{102,0,204}
\deffootnote[0.75em]{0.5em}{1em}{\textsuperscript{\thefootnotemark}}
\setmainfont[Ligatures={Historic,Rare,Discretionary,TeX},Contextuals=Swash]{Linux Libertine}
\newfontfamily\latinfont[Script=Latin,Ligatures={Historic,Rare,Discretionary,TeX},Contextuals=Swash,Alternate=0,Style=Historic]{Linux Libertine}
\newfontfamily\italianfont[Ligatures={Historic,Rare,Discretionary,TeX},Contextuals=Swash,Alternate=0,Style=Historic]{Linux Libertine}
\newfontfamily\hebrewfont [Script=Hebrew]{SBLHebrew}
\newfontfamily\arabicfont [Script=Arabic]{Lateef}
\newfontfamily\zhcn [Path=/usr/share/fonts/arphicfonts/]{uming}
\setCJKfamilyfont{zhcnfont}[Path=/usr/share/fonts/arphicfonts/]{uming}
\newfontfamily\ja[Path=/usr/share/fonts/ja-ipafonts/]{ipam}
\setCJKfamilyfont{jafont}[Path=/usr/share/fonts/ja-ipafonts]{ipam}
\newfontfamily\voynich [Path=/usr/share/fonts/freetype/,Color=008000]{EVA1}
\errorcontextlines=10
I have several issues with footnotes. First, they are one-half spaced in the document, despite that setspace should default footnote spacing to single. However, the spacing *between* footnotes is single, which looks supremely ugly. How can I fix this?

Also, I would like my fancyhdr to have different headers on even vs. odd pages. That is, chapter on the evens, section on the odds (except for first pages, which obviously have none), but also adding the section to headers on pages for which it changes. My present configuration doesn't seem to achieve this, despite the RE/RO fancyhead lines. Did I type them in wrong?

Thanks for the help.

Cheers,

EE

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

single-space footnotes in onehalfspacing book

Post by StarValkyrie »

I didn't go through the preamble in any detail, but I have a couple of ideas.
1. Footnote spacing is no longer default because you changed the spacing in the document in the preamble. You could change the spacing between footnotes to match with:

Code: Select all

\setlength{\footnotesep}{\baselineskip}
2. The most common cause of this is that you haven't told the document class to print twoside.
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Re: single-space footnotes in onehalfspacing book

Post by ExecutorElassus »

Thanks for the tips!

However, since footnote spacing is no longer default, how do I set it to single? I don't want the spacing between notes to be expanded to match it: I want intra-footnote spacing to be shrunk to single, in contrast to the \onehalfspacing that applies to the main document text (but not the table of contents or footnotes or bibliography).

The document is correctly specified as two-sided.

Thanks again!
StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Re: single-space footnotes in onehalfspacing book

Post by StarValkyrie »

Oh, I see now. I'll have to get back to you one that.

2. Where? I'm not seeing anything like that and without using the option twoside its not going to mark pages as being left or right, therefore no difference between the headers.
StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

single-space footnotes in onehalfspacing book

Post by StarValkyrie »

Try this in the preamble for the first problem:

Code: Select all

\usepackage{footmisc}
\renewcommand{\footnotelayout}{\setstretch{1}}
Using the footmisc package, you may be able to do the things you need without also calling bigfoot and manyfoot.
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Re: single-space footnotes in onehalfspacing book

Post by ExecutorElassus »

SV, thanks for the tip. I'm using bigfoot/manyfoot for a different reason: to be able to add a second set of footnotes for annotations (footnotes of footnotes! Footnotes all the way down/we need to go deeper/BRAAAAHM/etc.). Can I use the setstretch command even with bigfoot? Are footmisc and bigfoot compatible with one another, or are they mutually exclusive?

Thanks,

EE
PS- oh, and as for two-sided: I'm using Lyx, which sets the document two-sided in another settings window independently of my own preamble.
StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Re: single-space footnotes in onehalfspacing book

Post by StarValkyrie »

1. You can use them together. Its just that footmisc is supposed to be bigfoot and manyfoot combined but if there are features that weren't carried over, then just use all three.

2. OK, then try specifying the package option openany (or openright or openleft, depending on your preferences). And in the future, you can get the full preamble from the View Source function in the LyX menus and selecting Preamble, then copying that and pasting it, not just the User-specified preamble from the document settings.
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Re: single-space footnotes in onehalfspacing book

Post by ExecutorElassus »

sorry to be kinda dumb about this, but to which package to I add that option? What's the syntax? Or, rather, can you just let me know which package it is, so that I can go dig through the documentation?

I'm unfamiliar with the openany/right/left options.

Cheers,

EE
StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Re: single-space footnotes in onehalfspacing book

Post by StarValkyrie »

I'm guessing since you have KOMAoptions in the preamble that you're using Koma's book class, so in LyX you can put it in the Class Options section's Custom box on Document Settings > Document Class.
Post Reply