2

I’d like to include a list inside a footnote, but without the default whitespace.

It doesn’t respect document-wide settings. I tried overriding it with [nowhite] directly inside the footnote, but that doesn’t remove the first blank line. I also tried to create a simple setups duplicating the document-wide setup and applying it with \setupnote[footnote][setups=footer:itemize], but that did not have any effect.

\setuppapersize [S6]
\setupitemize [nowhite]

\starttext
Footnote
\startfootnote
% There is whitespace here
\startitemize
  \item Item 1
  \item Item 2
\stopitemize
\stopfootnote

% But not here
\startitemize
  \item Item 1
  \item Item 2
\stopitemize

\stoptext

rendered example

0

1 Answer 1

1
\setuppapersize[S6]
\starttext
Footnote
\startfootnote
\blank[-line]
\startitemize[before=]
\item Item 1
\item Item 2
\stopitemize
\stopfootnote
\startitemize
\item Item 1
\item Item 2
\stopitemize
\stoptext

enter image description here

4
  • Thanks! Out of curiosity, do you have any way to set it in the preamble? I guess it’s fine mixing formatting into text in this one case, but I’d rather avoid it generally. Apr 25, 2021 at 8:15
  • @JurajFiala Is it fine to define a new list environment for footnotes in order to avoid issues with the default \startitemize ... \stopitemize?
    – user226564
    Apr 25, 2021 at 8:20
  • I’m not sure I understand your question. My point is that I want to separate form from content; thus I want to avoid style overrides in the content itself. Apr 26, 2021 at 18:38
  • 1
    @JurajFiala You're able to define \startmyitemize ... \stopmyitemize or whatever name you want it, so that it works in footnotes and you still have the default list environment. Otherwise, it's very complicated to hack the default environment so that it does what you need in each case.
    – user226564
    Apr 26, 2021 at 20:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .