Difference between revisions of "Command/ note"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \<i>note</i>")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<?xml version='1.0'?>
 
<!-- this file was generated on 2020-08-20T09:05 -->
 
 
<cd:commandgroup generated="yes" name="note" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:commandgroup generated="yes" name="note" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>
+
<cd:shortdesc><!-- a short command summary goes here -->
<!-- a short command summary goes here -->
+
The instances of  <tt>\<i>note</i></tt> are used for footnotes and endnotes.
The instances of  <tt>\<i>note</i></tt> are used for ...
 
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 10: Line 7:
 
   </cd:sequence>
 
   </cd:sequence>
 
<cd:instances>
 
<cd:instances>
     <cd:constant value="footnote"></cd:constant>
+
     <cd:constant value="footnote">Insert a footnote mark, and a footnote at the bottom of the page. (Or elsewhere, depending on {{cmd|setupfootnotes}}.) If the footnote is specified with a label, you can refer to it elsewhere using {{cmd|note|[label]}}, and the extra reference will use the same mark as the original.</cd:constant>
     <cd:constant value="endnote"></cd:constant>
+
     <cd:constant value="endnote">Insert a footnote mark, but ''no'' footnote. If the endnote is specified with a label, you can refer to it elsewhere using {{cmd|note|[label]}}, and the extra reference will use the same mark as the original.
 +
 
 +
You need to use {{cmd|placenotes|[endnote]}} at the place where you want to have them.</cd:constant>
 
   </cd:instances>
 
   </cd:instances>
 
<cd:variants>
 
<cd:variants>
Line 50: Line 49:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description>
+
<cd:description><!-- the long description of the command goes here -->
<!-- the long description of the command goes here -->
 
 
</cd:description>
 
</cd:description>
<cd:examples>
+
<cd:examples><cd:example title="Footnote example"><context source="yes">
<!--  command example(s)
+
\setuppapersize[A7,landscape] \showframe
<cd:example title="">
+
\starttext
</cd:example>
+
The Hanse was a late medieval commercial alliance of towns in the
-->
+
regions of the North and the Baltic Sea. The association was formed
</cd:examples>
+
for the furtherance and protection of the commerce of its
<cd:notes>
+
members.\footnote[war]{This was the source of jealousy and fear among
<!--  this is for special remarks that do not fit elsewhere, like discovered bugs in specific context versions
+
other towns that caused a number of wars.} In the Hanse period there
<cd:note author="..." date="...">
+
was a lively trade in all sorts of articles such as wood, wool,
</cd:note>
+
metal, cloth, salt, wine and beer.\note[war] The prosperous trade
-->
+
caused an enormous growth of welfare in the Hanseatic
</cd:notes>
+
towns.\footnote{Hasselt is one of these towns.}
 +
\stoptext
 +
</context>
 +
 
 +
</cd:example><cd:example title="Endnote example"><context source="yes">
 +
\setuppapersize[A7,landscape] \showframe
 +
\starttext
 +
The Hanse was a late medieval commercial alliance of towns in the
 +
regions of the North and the Baltic Sea. The association was formed
 +
for the furtherance and protection of the commerce of its
 +
members.\endnote[war]{This was the source of jealousy and fear among
 +
other towns that caused a number of wars.} In the Hanse period there
 +
was a lively trade in all sorts of articles such as wood, wool,
 +
metal, cloth, salt, wine and beer.\note[war] The prosperous trade
 +
caused an enormous growth of welfare in the Hanseatic
 +
towns.\endnote{Hasselt is one of these towns.}
 +
 
 +
\placenotes[endnote]
 +
\stoptext
 +
</context>
 +
</cd:example></cd:examples>
 +
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>
<!-- one or more of these:
 
<cd:commandref name="xx"></cd:commandref>
 
<cd:wikipage  page="xx"></cd:wikipage>
 
<cd:url        url="https://xx"></cd:url>
 
<cd:manual    pdf="xx"></cd:manual>
 
<cd:source    file="xx"></cd:source>
 
-->
 
 
<cd:commandref name="_startnote" originator="system"></cd:commandref>
 
<cd:commandref name="_startnote" originator="system"></cd:commandref>
 
<cd:commandref name="definenote" originator="system"></cd:commandref>
 
<cd:commandref name="definenote" originator="system"></cd:commandref>
 
<cd:commandref name="setupnote" originator="system"></cd:commandref>
 
<cd:commandref name="setupnote" originator="system"></cd:commandref>
<cd:source file="strc-not.mkvi" originator="system"></cd:source>  
+
<cd:source file="strc-not.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>  
+
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
<cd:wikipage originator="system" page="Keywords:Notes"></cd:wikipage>  
+
<cd:wikipage originator="system" page="Keywords:Notes"></cd:wikipage>
</cd:seealso>
+
<cd:commandref name="note"></cd:commandref>
 +
<cd:commandref name="setupnotes"></cd:commandref>
 +
<cd:commandref name="setupfootnotes"></cd:commandref>
 +
<cd:commandref name="setupnotation"></cd:commandref>
 +
<cd:commandref name="placenotes"></cd:commandref></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 13:41, 16 November 2021


\note

Summary

The instances of \note are used for footnotes and endnotes.

Instances

\footnoteInsert a footnote mark, and a footnote at the bottom of the page. (Or elsewhere, depending on \setupfootnotes.) If the footnote is specified with a label, you can refer to it elsewhere using \note[label], and the extra reference will use the same mark as the original.
\endnoteInsert a footnote mark, but no footnote. If the endnote is specified with a label, you can refer to it elsewhere using \note[label], and the extra reference will use the same mark as the original. You need to use \placenotes[endnote] at the place where you want to have them.

Settings instance

\NOTE[...,...]{...}
[...,...]reference
{...}text

Settings instance:assignment

\NOTE[...=...,...]
titletext
bookmarktext
listtext
referencereference

Description

Examples

Footnote example

\setuppapersize[A7,landscape] \showframe
\starttext
The Hanse was a late medieval commercial alliance of towns in the
regions of the North and the Baltic Sea. The association was formed
for the furtherance and protection of the commerce of its
members.\footnote[war]{This was the source of jealousy and fear among
other towns that caused a number of wars.} In the Hanse period there
was a lively trade in all sorts of articles such as wood, wool,
metal, cloth, salt, wine and beer.\note[war] The prosperous trade
caused an enormous growth of welfare in the Hanseatic
towns.\footnote{Hasselt is one of these towns.}
\stoptext


Endnote example

\setuppapersize[A7,landscape] \showframe
\starttext
The Hanse was a late medieval commercial alliance of towns in the
regions of the North and the Baltic Sea. The association was formed
for the furtherance and protection of the commerce of its
members.\endnote[war]{This was the source of jealousy and fear among
other towns that caused a number of wars.} In the Hanse period there
was a lively trade in all sorts of articles such as wood, wool,
metal, cloth, salt, wine and beer.\note[war] The prosperous trade
caused an enormous growth of welfare in the Hanseatic
towns.\endnote{Hasselt is one of these towns.}

\placenotes[endnote]
\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: