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).
Asked
Active
Viewed 190 times
2
2 Answers
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
phil-elkabat
- 2,055
-
-
@DG', well, it certainly allows for more customization out of the box. – phil-elkabat Aug 14 '20 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: 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
rulecommandconsists of a command:rulecommand=COMMANDas 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
DG'
- 21,727


\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- Remove the footnote rule (\setunotation[rule=off]) and put [before=custom_line]. 2) Create a frame around the footnotes text and delete "bottomframe".
– Aug 13 '20 at 14:42