2

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).

3
  • Does this answer your question? How can I change the footnote line (thickness, length) – TobiBS Aug 13 '20 at 14:00
  • 2
    @TobiBS No, those answers are for LaTeX, and the question is about ConTeXt. Setting \makeupwidth=<length> (after \starttext) seems to work, but it doesn't look like a ConTeXt-y way of doing it. – Phelype Oleinik Aug 13 '20 at 14:35
  • Somewhere I had found the answer, but I lost the page link. Two ideas would come to me. 1) Remove the footnote rule (\setunotation[rule=off]) and put [before=custom_line]. 2) Create a frame around the footnotes text and delete "bottomframe". – user222396 Aug 13 '20 at 14:42
3

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

rulecommand

6
  • Is there any difference to my answer? – DG' Aug 14 '20 at 16:22
  • @DG', well, it certainly allows for more customization out of the box. – phil-elkabat Aug 14 '20 at 16:29
  • How so? Looks identical to me. No criticism, just curiosity. – DG' Aug 14 '20 at 16:59
  • @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) – phil-elkabat Aug 14 '20 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 '20 at 21:01
2

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

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy