Re: [NTG-context] seeindex problem with recent betas
\setupregister[index][check=no] Wolfgang Rik Kabel schrieb am 09.08.18 um 04:32: With older versions of ConTeXt (including that in TL18) seeindex entries pointing to a multi-level (plussed) index entry worked (visually, at least) without complaint. The output might look like: Digby, John 73 Dilbert see Adams+Scott Dirac, Paul 287 or Digby, John 73 Dilbert see Adams, Scott Dirac, Paul 287 where the second part is a literal repeat of what is in the second argument of seeindex. (It is not, however, linked to the plussed entry as it would be to a single-level entry.) However, current version (2018.07.27 19:12) generates a result like: Digby, John 73 Dilbert Dirac, Paul 287 along with the warning: structure > registers > invalid crosslink : Adams+Scott, ignored Surely it is better to display the non-linked see entry as before (together with the warning message so that the non-linking is pointed out) and have a printable document than it is to display an empty entry! -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Define the dimensions of a layout
\setuplayout [topspace=10mm, header=10mm, footer=10mm, height=middle, backspace=20mm, width=middle] \showframe \starttext \showsetups \stoptext Wolfgang Lizardo M. Reyna Bowen schrieb am 09.08.18 um 04:50: Hi, May be this setup works. \setuppapersize[A4] \setuplayout[ header=20mm, footer=20mm, height=fit, topspace=0cm, width=fit, backspace=2cm, rightmargin=0cm, leftmargin=0cm, leftmargindistance=0pt, rightmargindistance=0pt] \showframe \starttext \showsetups \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Define the dimensions of a layout
Hi, May be this setup works. \setuppapersize[A4] \setuplayout[ header=20mm, footer=20mm, height=fit, topspace=0cm, width=fit, backspace=2cm, rightmargin=0cm, leftmargin=0cm, leftmargindistance=0pt, rightmargindistance=0pt] \showframe \starttext \showsetups \stoptext -- Dr. Lizardo M. Reyna Bowen Docente Facultad de Ingeniería Agrícola | Universidad Técnica de Manabí [Dirección] Lodana, Santa Ana, Manabí, Ecuador [Móvil] +593 982924637 PGP Key: 0xa35a15b90ee64e8d ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] seeindex problem with recent betas
With older versions of ConTeXt (including that in TL18) seeindex entries pointing to a multi-level (plussed) index entry worked (visually, at least) without complaint. The output might look like: Digby, John 73 Dilbert see Adams+Scott Dirac, Paul 287 or Digby, John 73 Dilbert see Adams, Scott Dirac, Paul 287 where the second part is a literal repeat of what is in the second argument of seeindex. (It is not, however, linked to the plussed entry as it would be to a single-level entry.) However, current version (2018.07.27 19:12) generates a result like: Digby, John 73 Dilbert Dirac, Paul 287 along with the warning: structure > registers > invalid crosslink : Adams+Scott, ignored Surely it is better to display the non-linked see entry as before (together with the warning message so that the non-linking is pointed out) and have a printable document than it is to display an empty entry! -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Define the dimensions of a layout
Hello, I want the text area to be surrounded by a margin of 20 mm (top, right, left and bottom). I have already done this to have a left and right margin of 20 mm. \setuplayout [height=middle, backspace=20mm, width=middle] I think that I must now have : topdistance + header + headerdistance = 20mm footerdistance + footer + bottomdistance + bottom = 20 mm How to do ? Thanks Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] resetting footnote counter
Pablo's example works well on my machine. So there must be a disturbance at a different level in my complex text – perhaps in my settings: \setupnotedefinition [footnote] [location=serried, distance=1em, hang=1em] or \setupfootnotes[bodyfont={Mainfont,8pt}, width=\textwidth, frameoffset=1em, location=none, way=bychapter] which in all other respects work fine? ('Mainfont' is my own definition, from a typescript; I also added 'way=bychapter', to no effect.) The only thing that does not happen is the resetting of the note counter. If I had a command that simply says "the counter named X (=footnote counter) is now 0 again", which I could insert at the beginning of every chapter, the problem would be solved. (Not so elegant, but it would be a solution.) Robert > On 8. Aug 2018, at 17:36, Pablo Rodriguez wrote: > > On 08/08/2018 05:03 PM, Robert Zydenbos wrote: >> Sorry, neither of these work (MkII with XeTeX). I get no error >> messages with Pablo's suggestion, but not the desired result either. > > Weird, this works for me (with and without XeTeX): > >\setuppapersize[A8] >\setupnote[footnote][way=bychapter] >\starttext >\chapter{Chapter} >\dorecurse{2}{Text\footnote{Footnote.}} >\chapter{Chapter} >\dorecurse{2}{Text\footnote{Footnote.}} >\stoptext > > Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] xrightarrow is not straight
Dear Alan, Thanks for the reply! Using \definemathstackers I can set the voffset to adjust the vertical spacing. This is exactly what I needed, thanks! However, I couldn't use the ahlength variable. I tried different values, but it doesn't seem to change anything (and the current arrowhead is tiny). (Using startMPcode and drawarrow gives a big arrowhead.) Also I noticed that the content of \rightarrow{...} was not in mathmode, so I tried using middlecommand=\mathermatics (I found this on the wiki and in the docs). But that doesn't change anything. Is this a bug? Example: \useMPlibrary[mat] \definemathstackers [mp] [alternative=mp, voffset=-.3\mathexheight, middlecommand=\mathematics] \definemathextensible [mp] [rightarrow] ["2192] \startMPinitializations ahlength := EmWidth ; % Does not work? ahangle := 30 ; ahvariant := 1 ; ahdimple := 4/5 ; \stopMPinitializations \setuppapersize[A7] \starttext $A \rightarrow{$\neq f$ and $\neq g$} B$ $A \rightarrow{\neq f \text{ and } \neq g} B$ % Is not typeset in mathmode \stoptext Thanks in advance, Kind regards, Joshua -Original Message- From: Alan Braslau Sent: 07 August 2018 17:01 To: Joshua Moerman Cc: mailing list for ConTeXt users Subject: Re: [NTG-context] xrightarrow is not straight On Tue, 7 Aug 2018 10:42:01 +0200 "Joshua Moerman" wrote: > Hi ConTeXt mailing list, > > I am using the extensible arrows and I am not really satisfied with > the looks of it. > > The most important issue I have is that the vertical spacing is too > much. You can see this in the attached picture: the left arrow is > using \xrightarrow{\neq a} and the right arrow is using \stackrel{\neq > a}{\longrightarrow}. I think the right one (with stackrel) looks more > natural. Is there a way to setup the vertical spacing? > > Another thing I noticed is that the line is not very consistent. This > might be a font issue (I am using Euler). Luckily, the inconsistent > overlap is barely visible when printed. > > Thanks again! > > Groetjes, > Joshua > Hello, You can also use MetaPost to render math stackers, rather than relying on TeX constructs and any particular font. For example: \useMPlibrary[mat] \definemathstackers [mp] [alternative=mp] \definemathextensible [mp] [leftarrow] ["2190] \definemathextensible [mp] [rightarrow] ["2192] \definemathextensible [mp] [leftrightarrow] ["2194] \definemathextensible [mp] [longleftrightarrow] ["27F7] \definemathextensible [mp] [rightoverleftarrow] ["21C4] \definemathextensible [mp] [underbrace] ["FE3DF] \setupbodyfont [dejavu-condensed,12pt] \starttext $\rightarrow{≠a}$ \stoptext Furthermore, the MP arrow can be tuned \startMPinitializations ahlength := .5EmWidth ; ahvariant := 1 ; % dimpled straight \stopMPinitializations as can line widths, etc. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
On 08/08/2018 08:50 AM, Henning Hraban Ramm wrote: > [...] > I’m also writing a (beginners) book on ConTeXt in German, and I find > it really hard to decide what I should include. It can’t become a > reference, a complete one is impossible anyway. Hi Hraban, your book will be an important reference, althought it won’t be “the reference” (I doubt such a thing might exist). > E.g. I wanted margin notes. Like footnotes, but in the margin. No > problem if you want them at the bottom. Very hard if you want them like > marginals, starting in the line of the marker... Is this common enough > to include it in my book? I would say this is too specific. But I would provide the explanation in the wiki. > As a media designer, who’s also working with InDesign, my focus is of > course different from a scientist who just wants her thesis > readable... I think it is essential to have a wider range of explanations on how to do things with ConTeXt (or even with computers, but this is a different topic). I’m not saying that other approaches are wrong. Just only not everyone may understand things the same way. Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
On Wed, 8 Aug 2018 17:54:34 +0200 Hans Hagen wrote: > On 8/8/2018 3:30 PM, Robert Zydenbos wrote: > > > profile = NAME > > empty = yes no > > … > > > > and similar questions arise: “what kind of profile?”, “what is empty or > > not?” etc. > > it's pretty safe to ignore keys like 'profile' (if you grep the > documentation tree it's just an example of a potential optimization > of the rendering which in practice no one will use because in the end it > makes no sense more fun feature i guess) The philosophy has been to use keys that are generally pretty self-explanatory, such as title=, color=, style=, etc. Secondly, the commands try to use existing key names if they are relevant rather than adding new keys, and this sometimes leads to key names that at first sight might seem slightly awkward (where a synonym or close synonym might be slightly better). Also, sometimes the context requires a new key, such as foregroundcolor= and backgroundcolor=, when color= for example would be ambiguous. Thirdly, many keys are inherited and passed-on to an included command. Finally, unknown or unused keys are simply ignored. This has the advantage that often, just trying the obvious simply works. To quote Poincaré: \startquotation Mathematics is the art of giving the same name to different things. It is enough that these things, though differing in matter, should be similar in form, to permit their being, so to speak, cast in the same mould. When the language has been carefully chosen, one is surprised to discover that all proofs developed for a given object, can be immediately applied to many new objects; there is nothing to be changed, not even the words, since all the names have become the same. \stopquotation Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
On 8/8/2018 8:18 AM, Pablo Rodriguez wrote: For MkIV (as Alan mentioned), you have tex/texmf-context/tex/context/interface/mkiv/i-context.pdf. also have a look at the test suite ... many examples there I mean, ConTeXt is a huge task (support for Kannada is one of the many features we would like to have implemented in it) and writing such a document is not a minor task. should mostly work (apart from one or two special cases which are in the pipeline) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] resetting footnote counter
On 8/8/2018 5:48 PM, Aditya Mahajan wrote: On Wed, 8 Aug 2018, Robert Zydenbos wrote: A simple footnote question this time. I would like to print endnotes at the end of every chapter in my book, and then reset the footnote counter so that in the next chapter the first note will be ‘1’ again. I suppose this should be done by means of \setupfootnotes – but with which parameter? \setupnotation[footnote][way=bychapter] \starttext \dorecurse{5} {\startchapter[title=New Chapter] \dorecurse{5}{\input ward\footnote{A quote by ward}} \stopchapter} \stoptext With regard to your other thread about documentation of footnotes, the way I understand it is that \setupnotation is used to configure how the actual footnote is displayed and setupnotation has similar options to \setupdescription. So, alternative=serried corresponds to a similar option for descriptions. Note that the above is for MkIV. For MkII, I think that you need \setupfootnotes insted of \setupnotation[footnote]. Indeed, mkiv is different ... in fact notes are a complex mechanism: - rendering in line (the marker) - rendering the text (anywhere) - interaction with the page builder (depending on kind) - stacking multiple classes - line notes (refering to lien numbers) etc. Most of what is in mkii is there in mkiv but in mkiv the textual rendering has been split and is called notation (on top of a generalized mechanism that also does descriptions, enumerations and more). The complication is that we need to group settings for (1) the markers, (2) the text, (3) the overall mechanism. Of course inheritance also kicks in then. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] question regarding \placefloats
On Wed, 8 Aug 2018 14:33:21 +0200 "Susanne G. Loeber" wrote: > \placelistoffloats does not exist as a command > > My solution is two seperate commands, one for the tables \placelistoftables > and one for the figures \completelistoffigures. > > Question: how to use \placefloats correctly to get a list of all floats? Floating objects or floats exist in many instances. One predefined instance is figure and a second is table. So \placelistofINSTANCEs will give you the list. You can define more floating objects, for example a sidebox, etc. The figure and table lists can be combined: \definecombinedlist [figuresandtables] [figure,table] \placelistoffiguresandtables or something like that. > Second: > > \startcombination[1*2] looks nice, but does not add information to the > \placelistoffigures . > > My solution is to place the \startcombination inside a \placefigure. \startcombination [nx=1,ny=2] % my preferred syntax \stopcombination allows you to create a combined (matrix) of graphics. It is indeed generally used inside a float construct such as \startplacefigure ... \stopplacefigure. By the way, "alternative=label" is a favorite of mine, making it unnecessary to explicitly include labels, as in: \startcombination [nx=1,ny=2,alternative=label] {My top graphic} {My bottom graphic} \stopcombination rather than \startcombination [nx=1,ny=2] {My top graphic}{a} {My bottom graphic} {b} \stopcombination Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
On 8/8/2018 3:30 PM, Robert Zydenbos wrote: profile = NAME empty = yes no … and similar questions arise: “what kind of profile?”, “what is empty or not?” etc. it's pretty safe to ignore keys like 'profile' (if you grep the documentation tree it's just an example of a potential optimization of the rendering which in practice no one will use because in the end it makes no sense more fun feature i guess) Unfortunately the source browser on the Wiki is out of order, otherwise that might have helped. Suggestion / request: all the ConTeXt source files are, of course, read and processed in a particular order. It would surely be useful if someone could indicate where this chain begins. Anybody who would be interested in sorting out the workings of ConTeXt and writing a manual (no, I am not making any promises yet :-) ) could then trace how one command leads to another, another, another… and how the entire system is built up. the order is in context.mkiv ... and is determined by functionaility building on top of other although there are some circular dependencies Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] resetting footnote counter
On Wed, 8 Aug 2018, Robert Zydenbos wrote: A simple footnote question this time. I would like to print endnotes at the end of every chapter in my book, and then reset the footnote counter so that in the next chapter the first note will be ‘1’ again. I suppose this should be done by means of \setupfootnotes – but with which parameter? \setupnotation[footnote][way=bychapter] \starttext \dorecurse{5} {\startchapter[title=New Chapter] \dorecurse{5}{\input ward\footnote{A quote by ward}} \stopchapter} \stoptext With regard to your other thread about documentation of footnotes, the way I understand it is that \setupnotation is used to configure how the actual footnote is displayed and setupnotation has similar options to \setupdescription. So, alternative=serried corresponds to a similar option for descriptions. Note that the above is for MkIV. For MkII, I think that you need \setupfootnotes insted of \setupnotation[footnote]. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] resetting footnote counter
On 08/08/2018 05:03 PM, Robert Zydenbos wrote: > Sorry, neither of these work (MkII with XeTeX). I get no error > messages with Pablo's suggestion, but not the desired result either. Weird, this works for me (with and without XeTeX): \setuppapersize[A8] \setupnote[footnote][way=bychapter] \starttext \chapter{Chapter} \dorecurse{2}{Text\footnote{Footnote.}} \chapter{Chapter} \dorecurse{2}{Text\footnote{Footnote.}} \stoptext Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
On 08/08/2018 03:30 PM, Robert Zydenbos wrote: > On 8. Aug 2018, at 00:54, Alan Braslau wrote: >> >> tex/context/interface/mkiv/i-context.pdf > > Thank you! I didn’t know I already had this updated version of a > document I’ve already been using. But however useful this document > already is, it does illustrate some of my problems. For instance, in > the entry ‘\setupnote’ I see: > > … > indicator: yes no > distance: dimension > … > > Surely this is fine for those who have been working on ConTeXt for > years at a very low coding level. Hi Robert, please, don’t consider me among those who have been worked on ConTeXt at a very low level (even for milliseconds). > But I see this and ask myself: “indicator of what? distance to what?” etc. Indicator that the note goes to the following page. But I don’t know what "distance" in \setupnote does. > (Sometimes, when confronted with such information, I just play > around a bit with changing parameters and see what happens: sometimes > I discover the meanings, sometimes I don’t.) Lucky you, I have to play all the time to see what happens. I only learn by doing. > ‘\setupnote’ inherits from ‘\setupframed’. There one finds > > … > profile = NAME > empty = yes no > … > > and similar questions arise: “what kind of profile?”, “what is empty > or not?” etc. The note zone is a frame. Empty or full is the text in that frame. In that case (if this frame is empty), it removes the footnotes themselves. I don’t know what are profiles. But I never needed to use them. > Unfortunately the source browser on the Wiki is out of order, > otherwise that might have helped. http://source.contextgarden.net/ does work for me. But it is better that you search your distribution, since the sources from your computer may be the latest beta. In the garden, they are outdated. > Suggestion / request: all the ConTeXt source files are, of course, > read and processed in a particular order. It would surely be useful if > someone could indicate where this chain begins. Anybody who would be > interested in sorting out the workings of ConTeXt and writing a manual > (no, I am not making any promises yet :-) ) could then trace how one > command leads to another, another, another… and how the entire system is > built up. I wonder how many participants in this list might be able to do that (Hans, Wolfgang and Taco excluded, of course). No doubt that you are way smarter than me, but let me say a word on your approach to ConTeXt. Typography is a craftmanship. I don’t think it is totally different when it is digital. Learning by doing is a good approach. Of course, you may afford to learn from the source. But after all, ConTeXt knowledge is relevant to typeset texts. I might be totally missing your point here, but it seems to me that you try to know what can be achieved in general with ConTeXt, even before to learn how to use ConTeXt for your typesetting needs. I hope it helps, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] resetting footnote counter
%\setupnote[footnote][way=bychapter,location=none] \setupfootnotes[way=bychapter,location=none] \starttext \dorecurse{10} {\expanded{\chapter{Chapter \recurselevel}} \dorecurse{10}{\input tufte\footnote{\input ward }\par} \placenotes[footnote]} \stoptext Wolfgang Robert Zydenbos schrieb am 08.08.18 um 17:03: Sorry, neither of these work (MkII with XeTeX). I get no error messages with Pablo's suggestion, but not the desired result either. Perhaps I need a very primitive command that I can insert at the beginning of every chapter. Robert On 8. Aug 2018, at 16:54, Pablo Rodriguez wrote: On 08/08/2018 03:55 PM, Taco Hoekwater wrote: On 8 Aug 2018, at 15:33, Robert Zydenbos wrote: A simple footnote question this time. I would like to print endnotes at the end of every chapter in my book, and then reset the footnote ounter so that in the next chapter the first note will be ‘1’ again. I suppose this should be done by means of \setupfootnotes – but with which parameter? Like this (and I also agree that footnote/endnote setup is a bit complicated, but of course the concept is already quite complicated itself): [...] Taco, I’m afraid Robert needs that for MkII (although he didn‘t mention it). Robert, your command reads: \setupfootnotes[way=bychapter] By default, footnote numbering seems to be reset by part. Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] resetting footnote counter
Sorry, neither of these work (MkII with XeTeX). I get no error messages with Pablo's suggestion, but not the desired result either. Perhaps I need a very primitive command that I can insert at the beginning of every chapter. Robert > On 8. Aug 2018, at 16:54, Pablo Rodriguez wrote: > > On 08/08/2018 03:55 PM, Taco Hoekwater wrote: >>> On 8 Aug 2018, at 15:33, Robert Zydenbos wrote: >>> >>> A simple footnote question this time. I would like to print >>> endnotes at the end of every chapter in my book, and then reset the >>> footnote ounter so that in the next chapter the first note will be >>> ‘1’ again. I suppose this should be done by means of \setupfootnotes >>> – but with which parameter? >> >> Like this (and I also agree that footnote/endnote setup is a bit >> complicated, but of course the concept is already quite complicated >> itself): [...] > Taco, > > I’m afraid Robert needs that for MkII (although he didn‘t mention it). > > Robert, > > your command reads: > >\setupfootnotes[way=bychapter] > > By default, footnote numbering seems to be reset by part. > > Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] resetting footnote counter
On 08/08/2018 03:55 PM, Taco Hoekwater wrote: >> On 8 Aug 2018, at 15:33, Robert Zydenbos wrote: >> >> A simple footnote question this time. I would like to print >> endnotes at the end of every chapter in my book, and then reset the >> footnote ounter so that in the next chapter the first note will be >> ‘1’ again. I suppose this should be done by means of \setupfootnotes >> – but with which parameter? > > Like this (and I also agree that footnote/endnote setup is a bit > complicated, but of course the concept is already quite complicated > itself): [...] Taco, I’m afraid Robert needs that for MkII (although he didn‘t mention it). Robert, your command reads: \setupfootnotes[way=bychapter] By default, footnote numbering seems to be reset by part. Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] resetting footnote counter
> On 8 Aug 2018, at 15:33, Robert Zydenbos wrote: > > A simple footnote question this time. I would like to print endnotes at the > end of every chapter in my book, and then reset the footnote counter so that > in the next chapter the first note will be ‘1’ again. I suppose this should > be done by means of \setupfootnotes – but with which parameter? Like this (and I also agree that footnote/endnote setup is a bit complicated, but of course the concept is already quite complicated itself): \setupnotation[endnote][way=bychapter] \starttext \chapter{One} \dorecurse{20}{\input knuth\endnote{Endnote}} \placenotes[endnote] \chapter{Two} \dorecurse{20}{\input knuth\endnote{Endnote}} \placenotes[endnote] \stoptext Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] resetting footnote counter
A simple footnote question this time. I would like to print endnotes at the end of every chapter in my book, and then reset the footnote counter so that in the next chapter the first note will be ‘1’ again. I suppose this should be done by means of \setupfootnotes – but with which parameter? Robert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation (was: footnote and endnote markers...)
On 8. Aug 2018, at 00:54, Alan Braslau wrote: > > tex/context/interface/mkiv/i-context.pdf Thank you! I didn’t know I already had this updated version of a document I’ve already been using. But however useful this document already is, it does illustrate some of my problems. For instance, in the entry ‘\setupnote’ I see: … indicator: yes no distance: dimension … Surely this is fine for those who have been working on ConTeXt for years at a very low coding level. But I see this and ask myself: “indicator of what? distance to what?” etc. (Sometimes, when confronted with such information, I just play around a bit with changing parameters and see what happens: sometimes I discover the meanings, sometimes I don’t.) ‘\setupnote’ inherits from ‘\setupframed’. There one finds … profile = NAME empty = yes no … and similar questions arise: “what kind of profile?”, “what is empty or not?” etc. Unfortunately the source browser on the Wiki is out of order, otherwise that might have helped. Suggestion / request: all the ConTeXt source files are, of course, read and processed in a particular order. It would surely be useful if someone could indicate where this chain begins. Anybody who would be interested in sorting out the workings of ConTeXt and writing a manual (no, I am not making any promises yet :-) ) could then trace how one command leads to another, another, another… and how the entire system is built up. Robert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] faulty to unicode mapping of chars encoded with surrogate pairs?
Am Wed, 8 Aug 2018 14:15:41 +0200 schrieb Hans Hagen: > line 228 in font-map should be: > > k = k - 0x1 > > (not v = ...) Thanks, that corrects the problem. -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] question regarding \placefloats
Dear Reader, I have a document with figures and tables. I have tried to use the command \placefloats to create a list of all my floats as recommended on the page Floating Objects, section Flushing floats. There it states: The command \placefloats outputs all pending floats. I hoped to get a list with all tables, all figures and all other possible floats.That list would either be sorted per chapter or sorted per float. However, I was not able to make it work at all. In the appendix, you can find my struggles. First: \placefloats does not work. \placelistoffloats does not exist as a command My solution is two seperate commands, one for the tables \placelistoftables and one for the figures \completelistoffigures. Question: how to use \placefloats correctly to get a list of all floats? Second: \startcombination[1*2] looks nice, but does not add information to the \placelistoffigures . My solution is to place the \startcombination inside a \placefigure. Question: Is there a better way? Kind regards, thanks, Susanne placefloat.tex Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] faulty to unicode mapping of chars encoded with surrogate pairs?
On 8/8/2018 12:13 PM, Ulrike Fischer wrote: when I compile the following with context \pdfvariable compresslevel=0 \starttext $f$ \stoptext I get in the pdf 1 beginbfchar <0515> endbfchar D875DC53 is according to http://www.russellcottrell.com/greek/utilities/surrogatepaircalculator.htm the codepoint 2D453 and this is not a valid unicode point. As a result copy& paste doesn't work correctly. A similar example with xelatex writes D835DC53 (remark the 3 instead of the 7) instead in the pdf which gives the correct code point 1D453 and copies fine. lualatex gives the faulty value too. line 228 in font-map should be: k = k - 0x1 (not v = ...) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] faulty to unicode mapping of chars encoded with surrogate pairs?
when I compile the following with context \pdfvariable compresslevel=0 \starttext $f$ \stoptext I get in the pdf 1 beginbfchar <0515> endbfchar D875DC53 is according to http://www.russellcottrell.com/greek/utilities/surrogatepaircalculator.htm the codepoint 2D453 and this is not a valid unicode point. As a result copy& paste doesn't work correctly. A similar example with xelatex writes D835DC53 (remark the 3 instead of the 7) instead in the pdf which gives the correct code point 1D453 and copies fine. lualatex gives the faulty value too. -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
Hi, I won’t reply to single points, thus I don’t quote previous mails. I’m one of the few who work a lot on the wiki. But that means: if I find the time and if I find issues that I’m able to address. Often it needs an hour of research to just explain one parameter properly. Don’t ask about all of them. I’m fading out MkII documentation in the Wiki (I guess we somehow agreed on that). I won’t delete it, but move it to the bottom, mark it as MkII/obsolete and never test it. Indian scripts are the one thing that you can do with MkII but not with MkIV. And I know nothing about them and will probably never use them... I’m also writing a (beginners) book on ConTeXt in German, and I find it really hard to decide what I should include. It can’t become a reference, a complete one is impossible anyway. You can’t do serious work with ConTeXt without using manuals, wiki, mailing list and the sources. There are just too many possibilities and different needs. E.g. I wanted margin notes. Like footnotes, but in the margin. No problem if you want them at the bottom. Very hard if you want them like marginals, starting in the line of the marker... Is this common enough to include it in my book? As a media designer, wo’s also working with InDesign, my focus is of course different from a scientist who just wants her thesis readable... XML processing is an important "USP" for ConTeXt, but I never used it – I write my own XML-to-ConTeXt conversions in Python, since I’ll refine the ConTeXt code anyway. etc. etc. yadda yadda Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] general suggestion for ConTeXt documentation
On 08/08/2018 12:40 AM, Robert Zydenbos wrote: > That is it. I have no idea why – but that is the solution. Dear Robert, I will try to explain the reason of this (in my very limited understanding of how ConTeXt works). Notes in both MkII and MkII have two setup commands. One is for the group of notes and the other is for each individual note. This is why configuring notes might be tricky sometimes. Some options belong to \setupnote and some to \setupnotedefinition (or \setupnotation in MkIV). > (For all readers:) I hope I’m also included . Your example is a very special one. I mean, notes have two setup commands and you are using MkII. We already know you need support for Indic scripts (is Kannada the language you need?). I wonder whether we could do something to improve the situation in MkIV. > ConTeXt is great. Let me make that clear right way. I think it's the > future of TeX. I'm already doing things in ConTeXt that I dread > trying to do in LaTeX or any other system. But (yes, of course there > was a 'but' coming) the one thing that is missing, the one obstacle > which I think exists for ConTeXt gaining wider currency, is really > good documentation. I moved from LaTeX to ConTeXt a decade ago. Back then, I also thought that ConTeXt needed better documentation. In the meanwhile, I realized that there are more things in heaven and earth, that were dreamt in my philosophy. I mean, ConTeXt involves much more than I thought. Hans explained in the list why general documentation is not his task: https://mailman.ntg.nl/pipermail/ntg-context/2010/047500.html. As an introduction to that, you can read my own take on the matter: https://mailman.ntg.nl/pipermail/ntg-context/2017/090111.html. In short, users have to write the general documentation about ConTeXt. Or at least, we cannot expect (I’m not saying that you imply this) that Hans develops both ConTeXt and LuaTeX, replies many questions in too many mailing lists, writes technical documentation for both softwares and also writes introductory manuals. > Take this last question of mine which Pablo solved: I had to put a > certain parameter in \setupnotedefinition [footnote]. First I did it > wrongly, putting it in \setupnote [footnote] (why? because the names of > the values, like 'location', look so much alike). So what goes into > \setupnotedefinition and what goes into \setupnote? How do I know? Welcome to the club. I mean, I also had my problems understanding why notes were so complex to setup. For MkIV (as Alan mentioned), you have tex/texmf-context/tex/context/interface/mkiv/i-context.pdf. For MkII, there seems to be no document for the English interface (at least, in tex/texmf-context/tex/context/interface/mkii). I might be wrong here, since I only used MkII for your notes. > (How does Pablo know this? Maybe he can tell me off-list. :-) ) Who says I knew it? I simply searched in the source. I know that \setupnotations[alternative=serried] is the command in MkIV. So I grepped for "serried" in tex/texmf-context/tex/context/base/mkii/. It took me a while to realize that strc-lnt.mkii had exactly the key I was looking for (on line 109). I must confess, if I hand’t find this line, I wouldn’t have been able to give an answer from what I read in strc-not.mkii. > Many of the commands are not, or badly, documented in the otherwise useful > Wiki. The wiki is written by users. I don’t know whether it is useful to add MkII information to the wiki, but updating the wiki > What are all the parameters that are recognized by the various > commands, and just what do they mean? What are the default settings? See above for that list. > ConTeXt looks like an object oriented programming language with > inheritances, but it is unclear just what is inherited from where, > and why. I don’t code, but I wonder whether this is more complex. ConTeXt MkII is a macro package programmed in TeX (which is a typographical programming language). ConTeXt MkIV adds Lua. For a more complete description, http://www.pragma-ade.com/general/manuals/what-is-context.pdf. > I appreciate all the effort made by various people to provide > documentation and demos. But I think the cause of ConTeXt would be > greatly served if someone would bring out a hierarchic list of the > ConTeXt commands with a brief description of what the commands and the > parameters do and why they exist at all, so that the reader gets an idea > of the structure of the whole system and the philosophy behind it (i.e., > explaining why it is thus structured and why it works). > > Once again: I think ConTeXt is great, and so is this forum, which is > a huge help. I also realize ConTeXt is complex and that the great > people behind it also have other things to do in life. But still: > maybe the kind of documentation I propose would help to make things > still a bit greater? The question for such a document would be how many users might benefit from it. I mean, ConTeXt is a huge task (support