I wanted to know if how it was possible to change the length of the footnote rule (on the Wiki there is only the possibility of increasing the thickness, and if I remember correctly also the color).
2 Answers
This way you can define almost anything you will ever need. Have fun!
\setuppapersize[A4]
\unexpanded\def\longrule{\blackrule[width=10cm,color=blue,height=1pt,depth=1pt]}
\setupnote[footnote][rule=command,rulecommand=\longrule]
\starttext
\input tufte\footnote{test}
\stoptext
-
-
@DG', well, it certainly allows for more customization out of the box. Aug 14, 2020 at 16:29
-
-
@DG', really? \blackrule: Draws a horizontal filled box, called rule. \hrule: Place a rule as wide as the text, with a height of 0.4 point. Ends the current paragraph. Using this command [\blackrule] is far more slower than using the TeX primitives \hrule and \vrule, but it save us some tokens. (Source: wiki.contextgarden.net/Command/blackrule) Aug 14, 2020 at 17:17
-
Ah, I see. You focus on the content of the custom command (which I think is trivial and opinion based), whereas I saw the real challenge in persuading context to accept a custom macro in the first place. Fair enough– DG'Aug 14, 2020 at 21:01
You can define your own rule:
\def\myfootrule
{\hrule width 10cm \relax \kern \strutdepth}
\setupfootnotes
[rule=on,
rule=command,
rulecommand=\myfootrule]
\starttext
Some text.\footnote{This is a footnote}
\stoptext
\makeupwidth=<length>
(after\starttext
) seems to work, but it doesn't look like a ConTeXt-y way of doing it.