Difference between revisions of "Command/setupnote"

From Wiki
Jump to navigation Jump to search
m (category, links)
 
(5 intermediate revisions by 4 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] (automatically generated) ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
 
 
 
<syntax>setupnote</syntax>
 
<syntax>setupnote</syntax>
 
+
== [[Help:Reference|Syntax]] ==
 
== Description ==
 
== Description ==
 
The option <tt>scope</tt> is ignored. (ML 2019-07-22 "Place footnote after reference")
 
The option <tt>scope</tt> is ignored. (ML 2019-07-22 "Place footnote after reference")
 +
 +
<tt>\setupnote</tt> affects the number inside the body text, but <tt>\setupnotation</tt> affects the text at the bottom of the page (footnote or endnote).
  
 
== Example ==
 
== Example ==
<!-- something like this:
+
<context mode=mkiv source=yes>
<context source=yes>
+
\define[1]\MyNoteTextcommand
...
+
  {\offset[y=-0.2ex]{#1}}
 +
 
 +
\definenote
 +
  [Mynote]
 +
 
 +
\setupnote
 +
  [Mynote]
 +
  [location=text,
 +
    textstyle=,
 +
    textcommand=\MyNoteTextcommand]
 +
 
 +
\starttext
 +
 
 +
\input{knuth}\Mynote{First note.}
 +
 
 +
\startstyle[style=\ss]
 +
\input{knuth}\Mynote{Second note.}
 +
\stopstyle
 +
 
 +
\startstyle[style=\tt\bf]
 +
\input{knuth}\Mynote{Third note.}
 +
\stopstyle
 +
 
 +
\placenotes[Mynote]
 +
 
 +
\stoptext
 
</context>
 
</context>
Or use <texcode> tags if the example doesn't compile on this wiki
 
-->
 
  
 
== See also ==
 
== See also ==
Line 24: Line 48:
 
* {{src|strc-sec.mkiv#l299}}
 
* {{src|strc-sec.mkiv#l299}}
 
-->
 
-->
 +
* {{cmd|setupnotation}}
 
* {{cmd|footnote}}
 
* {{cmd|footnote}}
 
* {{cmd|note}}
 
* {{cmd|note}}
 
* {{cmd|placenotes}}
 
* {{cmd|placenotes}}
 +
* [[Unexpected behavior#setupnotation v setupnote|Footnotes: The Difference between setupnotation and setupnote]]
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 32: Line 58:
 
{{Forum|setupnote}}
 
{{Forum|setupnote}}
  
[[Category:Command/footnotes|setupnote]]
+
[[Category:Command/Footnotes|setupnote]]

Latest revision as of 15:56, 8 June 2024

\setupnote

Syntax (autogenerated)

\setupnote[...,...][...=...,...]
[...,...]name
interactionyes no number text all
symbolcommandoneargument
textcommandoneargument
indicatoryes no
textseparatorcommand
widthdimension
heightdimension
distancedimension
rulecommandcommand
ruleon off normal left right command paragraph
splittolerant strict verystrict number
factornumber
locationtext page high bottom none columns firstcolumn lastcolumn
nextcommand
nnumber
rulecolorcolor
rulethicknessdimension
setupsname
interlinespacename
paragraphyes no
beforecommand
aftercommand
inbetweencommand
scopepage
columndistancedimension
continueyes no
alternativegrid fixed columns note none
criteriumpage
bodyfontsee \setupbodyfont
alignsee \setupalign
textstylestyle command
textcolorcolor
anchornext
spacebeforesee \blank
spaceinbetweensee \blank
...=...,...inherits from \setupframed


Syntax

Description

The option scope is ignored. (ML 2019-07-22 "Place footnote after reference")

\setupnote affects the number inside the body text, but \setupnotation affects the text at the bottom of the page (footnote or endnote).

Example

\define[1]\MyNoteTextcommand
   {\offset[y=-0.2ex]{#1}}

\definenote
   [Mynote]

\setupnote
   [Mynote]
   [location=text,
    textstyle=,
    textcommand=\MyNoteTextcommand]

\starttext

\input{knuth}\Mynote{First note.}

\startstyle[style=\ss]
\input{knuth}\Mynote{Second note.}
\stopstyle

\startstyle[style=\tt\bf]
\input{knuth}\Mynote{Third note.}
\stopstyle

\placenotes[Mynote]

\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: