![](https://secure.gravatar.com/avatar/4124bf4a2fb1eee5a3e94b2aa0a5764a.jpg?s=120&d=mm&r=g)
Is there a way to manually set the number of a footnote rather than letting ConTeXt determining it? Something that works in the same way as \page[25]? For example, I might want to start footnote numbering at 1 at each chapter, *but I won't be using traditional ConTeXt divisions.* I've been searching the web and it seems that LaTeX has a way to reset counters, but I can't get this to work in ConTeXt. Thanks Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
![](https://secure.gravatar.com/avatar/4124bf4a2fb1eee5a3e94b2aa0a5764a.jpg?s=120&d=mm&r=g)
On Sun, Apr 03, 2005 at 03:58:42PM -0400, Paul Tremblay wrote:
Is there a way to manually set the number of a footnote rather than letting ConTeXt determining it? Something that works in the same way as \page[25]?
For example, I might want to start footnote numbering at 1 at each chapter, *but I won't be using traditional ConTeXt divisions.*
I've been searching the web and it seems that LaTeX has a way to reset counters, but I can't get this to work in ConTeXt.
Answering my own email. I've had a look at core-not.tex, and I see a lot of definitions such as \internalfootreference. I've tried setting some of these myself with no luck. But it seems if I can just figure out the right definition and the way to set it, I should be able to insert the type of footnote I want. On the other hand, isn't there a way to just enter text in for your footnote marker, and totally bypass any automatic numbering? Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Paul Tremblay wrote:
On Sun, Apr 03, 2005 at 03:58:42PM -0400, Paul Tremblay wrote:
Is there a way to manually set the number of a footnote rather than letting ConTeXt determining it? Something that works in the same way as \page[25]?
For example, I might want to start footnote numbering at 1 at each chapter, *but I won't be using traditional ConTeXt divisions.*
I've been searching the web and it seems that LaTeX has a way to reset counters, but I can't get this to work in ConTeXt.
Answering my own email. I've had a look at core-not.tex, and I see a lot of definitions such as \internalfootreference. I've tried setting some of these myself with no luck. But it seems if I can just figure out the right definition and the way to set it, I should be able to insert the type of footnote I want.
On the other hand, isn't there a way to just enter text in for your footnote marker, and totally bypass any automatic numbering? \starttext
test \footnote{test} test \setupnumber[footnote][start=45] test \footnote{test} test \setnumber[footnote]{99} test \footnote{test} test \setupnumber[footnote][way=bysection,start=0] test \footnote{test} test \section{test} test \footnote{test} test test \footnote{test} test \section{test} test \footnote{test} test test \footnote{test} test \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/62c54476729274ddfefd6b1f53e311dc.jpg?s=120&d=mm&r=g)
Hello, while we are at it, I played around (a bit) with \setupfootnotes but didn't get what I wanted to achieve: |text text text text text | |------------- (a shorter rule) | 1 hello | 2 footnote | 10 tenth footnote that | wraps like this |---------------------------------------------- So I'd like to make the rule shorter, the numbers not in the margin, but in the area <text>. Right aligned and large (style=\tf works OK). Patrick -- ConTeXt wiki: http://contextgarden.net
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
Hey, that's just the question I was going to ask! I played around some with margin= and margindistance=, but all I could achieve was getting the footnote ref typeset to the right, into the text of the note -- interesting, but not very useful. So is this possible? And: can we have a hanging indent for footnotes like this: -------------------- 1 note that will wrap like this? Best Thomas On Apr 4, 2005, at 12:14 PM, Patrick Gundlach wrote:
Hello,
while we are at it, I played around (a bit) with \setupfootnotes but didn't get what I wanted to achieve:
|text text text text text | |------------- (a shorter rule) | 1 hello | 2 footnote | 10 tenth footnote that | wraps like this |----------------------------------------------
So I'd like to make the rule shorter, the numbers not in the margin, but in the area <text>. Right aligned and large (style=\tf works OK).
![](https://secure.gravatar.com/avatar/4124bf4a2fb1eee5a3e94b2aa0a5764a.jpg?s=120&d=mm&r=g)
On Mon, Apr 04, 2005 at 10:30:44PM +0200, Thomas A. Schmitz wrote:
Hey, that's just the question I was going to ask! I played around some with margin= and margindistance=, but all I could achieve was getting the footnote ref typeset to the right, into the text of the note -- interesting, but not very useful. So is this possible? And: can we have a hanging indent for footnotes like this:
-------------------- 1 note that will wrap like this?
Here's what I just figured out literally 10 minutes ago. It works, but it seems a bit of a hack. Is there a better way? Paul %Footnotes with indenting \starttext % define amount to indent \setupnarrower[left=12pt] At present I am a sojourner in civilized life again. \footnote{\startnarrower[left] % need a negatvie vskip so ConTeXt won't read this as a paragrpah. \vskip-12pt \hskip-12pt Thoreau started writing {\sl Walden} in 1846, a few months after he started living at Walden Pond. He moved back to Concord late in 1847. By that point he had drafted half of the manuscript. He continued to work on it for several years. \stopnarrower} \stoptext -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
![](https://secure.gravatar.com/avatar/62c54476729274ddfefd6b1f53e311dc.jpg?s=120&d=mm&r=g)
Hello Paul,
Here's what I just figured out literally 10 minutes ago. It works, but it seems a bit of a hack. Is there a better way?
a bit? a very huge bit. Assume that you have 200 footnotes in your text. Then change from 12pt fontsize to 10pt.... Bang! Patrick -- ConTeXt wiki: http://contextgarden.net
![](https://secure.gravatar.com/avatar/4124bf4a2fb1eee5a3e94b2aa0a5764a.jpg?s=120&d=mm&r=g)
On Tue, Apr 05, 2005 at 01:28:01PM +0200, Patrick Gundlach wrote:
Here's what I just figured out literally 10 minutes ago. It works, but it seems a bit of a hack. Is there a better way?
a bit? a very huge bit. Assume that you have 200 footnotes in your text. Then change from 12pt fontsize to 10pt.... Bang!
Why wouldn't this be the case with any fontsize change? I guess because you have to change the \vskip each time. Well, in that case one could write a macro, but I have no idea how to write macros. Also, one could set up a definition \def\FontSkipSize{\vskip-12pt} and use that instead. Then you would only have to change the definition once. Of course, that begs the question. Is there a better way? Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
![](https://secure.gravatar.com/avatar/62c54476729274ddfefd6b1f53e311dc.jpg?s=120&d=mm&r=g)
Hello, [most evil footnote hackery]
Of course, that begs the question. Is there a better way?
Sorry to say, but in this case, no solution would be much better than this solution. There is nothing(!) worse than mixing visual markup with logical markup this way. We are in a fully programmable environment, and it is extremely unConTeXtish to hack the visual appearance. If I have some minutes off tonight, I'll look into it. But I'd guess that Hans already has several different solutions to this problem, because every time I write "no solution yet" on this mailinglist, Hans presents some unknown/forgotten secret. Patrick -- ConTeXt wiki: http://contextgarden.net
![](https://secure.gravatar.com/avatar/4124bf4a2fb1eee5a3e94b2aa0a5764a.jpg?s=120&d=mm&r=g)
On Tue, Apr 05, 2005 at 06:17:39PM +0200, Patrick Gundlach wrote:
Sorry to say, but in this case, no solution would be much better than this solution.
Really? Wow! So if if the requirements for some document are hanging indents footnotes, and I have asked how to do them on the mailing list, and no one gives me a solution; and I then use my solution and create a nice looking document and satisfy the requirements, say for the thesis committee--that is *worse* than producing a document that does not fulfill the requirements and is not accepted? Wow, that's amazing that Patrick Gunlach as power over the editors and committees.
There is nothing(!) worse than mixing visual markup with logical markup this way.
Except no solution at all when you have a deadline to meet and must produce a document. Or except global warming. A little perspective would be nice.
We are in a fully programmable environment, and it is extremely unConTeXtish to hack the visual appearance.
I am an XML author, so am pretty amazed to hear that one should not mix appearance and content in ConTeXt. Most of a ConTeXt document involves visual appearance. What is one saying when one writes \blank[12pt]?
If I have some minutes off tonight, I'll look into it. But I'd guess that Hans already has several different solutions to this problem, because every time I write "no solution yet" on this mailinglist, Hans presents some unknown/forgotten secret.
Yes, that would be nice. But until I see a concrete solution, I will continue to use and post my solution. A rule of etiquette is that if you don't have a better solution, or don't want to document it, don't attack the current solution, not matter how impure. Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
![](https://secure.gravatar.com/avatar/62c54476729274ddfefd6b1f53e311dc.jpg?s=120&d=mm&r=g)
[...]
We are in a fully programmable environment, and it is extremely unConTeXtish to hack the visual appearance.
I am an XML author, so am pretty amazed to hear that one should not mix appearance and content in ConTeXt. Most of a ConTeXt document involves visual appearance. What is one saying when one writes \blank[12pt]?
This is visual appearance, of cource. But I am not talking about one single instance of \blank anywhere, I am talking about changing a reaeated statement (like the footnotes) by visual means. And formatting instructions have no right to exist there (in fact they should be filtered out by \sanitizelogigalmarkup{\footnote...}. This is one of the great advantages of using a high level language such as LaTeX or ConTeXt (and ConTeXt so much more than LaTeX) that we can define layout in this way. Since you come from an XML background and only have to change your stylesheet, the hackary is doable, nobody ever sees it. But this hackery is not to be used when using Context directly.
Yes, that would be nice. But until I see a concrete solution, I will continue to use and post my solution. A rule of etiquette is that if you don't have a better solution, or don't want to document it, don't attack the current solution, not matter how impure.
Sorry, but I strongly disagree. It is not nice to teach/show other people such code. They will take it for granted and put in their documents. I have seen far too many LaTeX documents where exactly this procedure leaded to unmaintainable code. It took me hours to extract and correct those ugly hacks. One example: a person learned how to remove indentation from a paragraph by saying \noindent. So every paragraph had a \noindent before the paragraph (instead of doing it right by saying \noindent0pt). And it was a long document (and the \noindent was just one of the stupid things). So my advice is not to publish such code without several dangerous bend signs. Patrick -- ConTeXt wiki: http://contextgarden.net
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Patrick Gundlach wrote:
[...]
We are in a fully programmable environment, and it is extremely unConTeXtish to hack the visual appearance.
I am an XML author, so am pretty amazed to hear that one should not mix appearance and content in ConTeXt. Most of a ConTeXt document involves visual appearance. What is one saying when one writes \blank[12pt]?
This is visual appearance, of cource. But I am not talking about one single instance of \blank anywhere, I am talking about changing a reaeated statement (like the footnotes) by visual means. And formatting instructions have no right to exist there (in fact they should be filtered out by \sanitizelogigalmarkup{\footnote...}. This is one of the great advantages of using a high level language such as LaTeX or ConTeXt (and ConTeXt so much more than LaTeX) that we can define layout in this way.
to this i can add that concerning the blank, one preferably should follow the indirect approach, thereby avoiding hard coded numbers in the document source \defineblank[mybig][33pt] .... \blank[mybig] Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/62c54476729274ddfefd6b1f53e311dc.jpg?s=120&d=mm&r=g)
[...]
remove indentation from a paragraph by saying \noindent. So every paragraph had a \noindent before the paragraph (instead of doing it right by saying \noindent0pt). And it was a long
talking about teaching: a) it is \parindent=0pt, not \noindent=0pt b) the ConTeXt way is using \setupindenting and \indenting Patrick -- ConTeXt wiki: http://contextgarden.net
![](https://secure.gravatar.com/avatar/4124bf4a2fb1eee5a3e94b2aa0a5764a.jpg?s=120&d=mm&r=g)
On Mon, Apr 04, 2005 at 10:29:41AM +0200, Hans Hagen wrote:
\starttext
test \footnote{test} test \setupnumber[footnote][start=45] test \footnote{test} test \setnumber[footnote]{99} test \footnote{test} test \setupnumber[footnote][way=bysection,start=0] test \footnote{test} test
\section{test} test \footnote{test} test test \footnote{test} test
\section{test} test \footnote{test} test test \footnote{test} test
\stoptext
Thanks. So it looks like the way to reset counters in ConTexT is with the \setupnumber[somecounter]{x} That helps. Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Paul Tremblay wrote:
On Mon, Apr 04, 2005 at 10:29:41AM +0200, Hans Hagen wrote:
\starttext
test \footnote{test} test \setupnumber[footnote][start=45] test \footnote{test} test \setnumber[footnote]{99} test \footnote{test} test \setupnumber[footnote][way=bysection,start=0] test \footnote{test} test
\section{test} test \footnote{test} test test \footnote{test} test
\section{test} test \footnote{test} test test \footnote{test} test
\stoptext
Thanks. So it looks like the way to reset counters in ConTexT is with the
\setupnumber[somecounter]{x}
no, it's \setnumber, setupnumber is a key/val one use to tune numbering Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Patrick Gundlach
-
Paul Tremblay
-
Thomas A.Schmitz