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

epR8GaYuh
  • 2,432

2 Answers2

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

phil-elkabat
  • 2,055
  • 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: https://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
  • @DG', on the contrary! Rather trivial is looking up that rulecommand consists of a command: rulecommand=COMMAND as specified on page 243 of »ConTeXt Commands« to be found here: http://www.pragma-ade.nl/general/qrcs/setup-en.pdf. Choosing the most customizable rule or box was most of the work – at least for me. – phil-elkabat Aug 15 '20 at 14:07
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

DG'
  • 21,727