Trouble changing font family for footnotes
Ricardo Berlasso
rgb.mldc at gmail.com
Sun Nov 14 12:31:43 UTC 2021
(Top posting with solution)
OK, I finally solved the whole thing by manually defining font size ranges,
so I don't have to mess with defining the font for the footnotes.
% Preamble code for XeTeX
\setmainfont{EB Garamond}[ % Pardo's version of EB Garamond!
Mapping=tex-text, % https://github.com/octaviopardo/EBGaramond12
RawFeature={+ss06}, % Long tail Q
UprightFont = EB Garamond Regular,
BoldFont = EB Garamond SemiBold,
ItalicFont = EB Garamond Italic,
BoldItalicFont = EB Garamond SemiBold Italic,
UprightFeatures = { SizeFeatures = {
{Size = {-9.9}, Font = EB Garamond Medium},
{Size = {10-}, Font = EB Garamond}}},
BoldFeatures = { SizeFeatures = {
{Size = {-9.9}, Font = EB Garamond Bold},
{Size = {10-}, Font = EB Garamond SemiBold}}},
ItalicFeatures = { SizeFeatures = {
{Size = {-9.9}, Font = EB Garamond Medium Italic},
{Size = {10-}, Font = EB Garamond Italic}}},
BoldItalicFeatures = { SizeFeatures = {
{Size = {-9.9}, Font = EB Garamond Bold Italic},
{Size = {10-}, Font = EB Garamond SemiBold Italic}}},
]
\makeatletter
\renewcommand\@makefntext[1]{%
\noindent\makebox[0pt][r]{\@thefnmark.\space}#1}
\makeatother
% End code
Now the footnotes "color" is a better match for the main text color. It
works! For now, at least ;)
Regards,
Ricardo
El lun, 8 nov 2021 a las 17:00, Ricardo Berlasso (<rgb.mldc at gmail.com>)
escribió:
>
>
> El lun, 8 nov 2021 a las 16:52, Axel Dessecker (<a.dessecker at krimz.de>)
> escribió:
>
>> Am Montag, 8. November 2021, 16:26:00 CET schrieb Ricardo Berlasso:
>> > Hi, LyXiers!
>> >
>> > Here's the situation. I'm using the standard Book documentclass with
>> XeTeX
>> > as engine. I'm also starting to use Octavio Pardo's version of EB
>> Garamond
>> >
>> > https://github.com/octaviopardo/EBGaramond12
>> >
>> > Good thing about this version is that it offers bold, among other
>> things.
>> > Bad thing is that it do not offer optical sizes. But I noticed that the
>> > medium weight is a good replacement for the old EB Garamond 08 so I
>> tried
>> > to change the font used by footnotes with
>> >
>> > \newfontfamily{\ebgm}[RawFeature={+ss06}]{EBGaramond-Medium}
>> >
>> > \usepackage{footmisc}
>> >
>> > \renewcommand*{\footnotelayout}{\footnotesize\ebgm}
>> >
>> >
>> > which works perfectly well in isolation. Problem is, I'm also trying to
>> set
>> > the footnote mark to not be displayed on superscript with
>> >
>> > \makeatletter
>> >
>> > \renewcommand\@makefntext[1]{%
>> >
>> > \noindent\makebox[0pt][r]{\ebgm\@thefnmark.\space}#1}
>> >
>> > \makeatother
>> >
>> >
>> > which also works well in isolation, setting the mark within the margin,
>> > with the desired font, and "at ground level" as I like. Problem is, I
>> > cannot use both blocks of code within the same document at the same
>> time:
>> > no matter in which order I write them, the first one gets ignored.
>> >
>> >
>> > Attached there is a minimal example file (it's in Article documentclass,
>> > but the problem is the same). Notice that you need the right font
>> installed!
>> >
>> >
>> > Any idea? I'm on openSUSE Leap 15.3 with texlive 2017.
>> >
>> >
>> > Thanks!
>>
>> Ricardo,
>>
>> Is this the way you want it?
>>
>
> Yes, but the text in the footnote must be in EB Garamond Medium, while in
> the PDF only the footnote number is in that font. The difference is subtle,
> but it's there.
> [image: Screenshot_footnote.png]
>
>
>
>>
>> Axel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20211114/1a5c5939/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_footnote.png
Type: image/png
Size: 14416 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20211114/1a5c5939/attachment-0001.png>
More information about the lyx-users
mailing list