[NTG-context] setupthinrules
Hi, From http://wiki.contextgarden.net/Command/setupthinrules : \define\BeforeCommand{Before} \define\AfterCommand{After} \define\BetweenCommand{Between} \setupthinrules[ before=\BeforeCommand, after=\AfterCommand, inbetween=\BetweenCommand, color=gray, height=1em, ] \starttext \input knuth \thinrule \input knuth \stoptext This does not produce the expected output; it appears as though the before/after/inbetween commands, as documented on the wiki, have no behaviour. Pandoc uses "thinrule" (probably because it spans the page by default) when generating ConTeXt documents. Using only thinrule, how would you go about making a "totally sweet" (ornamental) horizontal rule, such as those shown at: http://tex.stackexchange.com/a/76555/2148 Thank you! ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Index items
On 15 Apr 2015, at 19:51 , Alan BRASLAU wrote > Hans Hagen wrote: > >> On 4/14/2015 1:48 PM, Robert Blackstone wrote: >>> Dear all, >>> >>> The book I am typesetting contains a very extensive and detailed >>> index. The number of index items is probably around 1200, 16 pages. >>> A fair number of them occur in more than one chapter. >>> Like bibliography items, and for the sake of consistency, I have >>> stored them in some auxiliary files and it is a matter of copy and >>> paste to get them into the text in the proper place and way. (With >>> always a risk of accidentally deleting or adding a spurious brace >>> or bracket, with nasty results.) >>> >>> I wonder therefore whether it would be possible to handle them like >>> bibliography items, by means of a key, and leave their expansion to >>> ConTeXt. >>> >>> Would it be possible? >>> And if it is not (yet) possible, how could I perhaps tackle it? >> >> so you want to remap given index entries to new ones? at what moment? > > We index pretty heavily now in the new bibliography dataset subsystem, > that is one can create an index of authors, an index of keywords, an > index of titles, etc. as well as index the pages on which a reference > is cited. All of the information is there. > > So say that you want to create a database of anything: words, images, > phrases. You can put these into the database structure and then insert > them or any associated information wherever you want in your text, > later producing lists and indexes. > > Can you give an example of what type of information you extensively > index with detail? > > Alan Hi Alan, I realize that I have not yet reacted to Hans’ reply. So let me do that first (it was written but not yet sent). Hi Hans, Do I want to remap given index entries? Assuming I understand your reply correctly the answer is: Yes, in principle. I would want to be able to change them if there are errors, or if some publisher has different views about the presentation of titles of items that are in the index (titles of songs, for instance). And also when (parts of) the text has (have) to be reused for other purposes. Change them in one operation, that is, not by digging up all occurrences in the book of the item that has to be changed. In answer to Alan’s question: names, theoretical treatises and manuscripts, musical works, musical terms. Nearly all examples in the book have several features that have to be indexed: composer’s name, title of the published work (an opera for instance), title of the particular aria of which the example shows a fragment, and the special features that are shown in the example, parallel 7ths, for example. The not-so-minimal example below (best processed iwth mkiv) gives an impression, also of the optical clumsiness that makes the unprocessed text practically unreadable. That is another reason why I would like to be able to call an index entry by means of some sort of key, like in bibliographic items for footnotes. Kind regards, Robert Blackstone \starttext That this rule% \index[Rule]{Rule(s)}%% \index[RuleImperfect]{ + \quote{imperfect to perfect, from}} was not applied by everybody is for example shown in {\em Fronimo}% \index[Galilei]{Galilei, Vincenzo}% \index[GalileiFronimo]{ +{\em Fronimo}}% \index[Cadence]{cadence(s)}%% \index[CadenceP]{ + plagal}% \index[PlagalCad]{plagal cadence}% \index[Fronimo]{{\em Fronimo} (Galilei)} (1584), Vincenzo Galileo's treatise on lute playing and the intabulation% \index[Intabulation]{intabulation} of vocal music. \page Artusi\index[Artusi]{Artusi, Giovanni Maria} showed examples (Ex.~4.34) with parallel 4th% \index[Dissonance]{dissonance(s)}% \index[Dissonance4]{ + 4th(s)}% \index[Dissonance4Parall]{ + + parallel}s and 7th% \index[Dissonance]{dissonance(s)}% \index[Dissonance7]{ + 7th(s)}% \index[Dissonance7Paral]{ + + parallel}s in a contrapuntally oriented fashion. These parallels were to appear in works with basso continuo around 1610 but now between the bass and the solo part. They occur in vocal and instrumental music as well as in works for keyboard solo. Most examples have parallel 7th% \index[Dissonance]{dissonance(s)}% \index[Dissonance7]{ + 7th(s)}% \index[Dissonance7Paral]{ + + parallel}s but some examples of parallel 4th% \index[Dissonance]{dissonance(s)}% \index[Dissonance4]{ + 4th(s)}% \index[Dissonance4Parall]{ + + parallel}s and 2nd% \index[Dissonance]{dissonance(s)}% \index[Dissonance2Parall]{ + + parallel}s can be found as well. \setupregister[index][indicator=yes] \completeindex[compress=yes] \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/lis
Re: [NTG-context] How to exclude certain figures from list of figures in ConTeXt?
Hi Wolfgang, Thank you very much for your suggestion! Can you explain a bit the trick behind this mechanism? Regards, Gerard On 13-04-15 21:02, Wolfgang Schuster wrote: Am 12.04.2015 um 20:53 schrieb Geert Verhaag : Hi, I was wondering whether it is possible to exclude certain figures of a document using the \placelistoffigures command in ConTeXt? For example those that start having a reference like ['fig:figure:exclude‘]? You can create a new float environment which inherits all values (including the counter) from the figure environment. \setupexternalfigures[location=default] \definefloat[nofigure][nofigures][figure] \starttext \placelist[figure] \blank[4*line] \startplacefigure[title=A duth cow] \externalfigure[cow][width=6cm] \stopplacefigure \startplacenofigure[title=A duth mill] \externalfigure[mill][width=6cm] \stopplacenofigure \stoptext Wolfgang ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] issues with line numbering
Hans, I’m afraid that I have another sample: \setupbodyfont[dejavu] \setuplinenumbering[style=\tfxx] \starttext \startlinenumbering \input zapf \stoplinenumbering \stoptext It compiles fine with beta from 2015.03.25 22:13. With beta from 2015.04.15 01:44, \setuplinenumbering avoids numbering the first line. If \setuplinenumbering is invoked, \setupbodyfont adds a 1 at the beginning of the first line. I’m afraid this may be a bug. Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \setupinterlinespace not working in style
Dear list, the following sample: \definetyping [tycode] [option=TEX, style={\tt\setupinterlinespace[line=5em]}] \starttext \section{\input zapf} \starttycode legibilidad, {\en legibility}, {\de Lesbarkeit} \stoptycode \setupinterlinespace[line=5em] \input zapf\par \stoptext shows simple (wrong) interline spacing with latest beta and it has right interline spacing with stable from TeX Live 2014. Is this a bug or am I missing something? Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in xtables?
On 04/15/2015 06:43 PM, Hans Hagen wrote: > On 4/15/2015 5:45 PM, Pablo Rodriguez wrote: >> [...] >> Last cell is wrong with stable from TeX Live (2014.05.21 22:04), from >> 2015.03.25 22:13 and latest one from 2015.04.15 01:44. >> >> I’m afraid it may be a bug. > > an old one then > >> Many thanks for your help, > > can you test some scenarios with > > \unprotect > > \let\tabl_x_set_hsize\relax > > \protect Many thanks for your reply, Hans. It works fine. I’m afraid that I only have this minimal sample. I can check it in other scenarios tomorrow at work. Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] next beta
On Tue, 19 Mar 2013, Hans Hagen wrote: \starttext \starttabulate[||CL{darkred}|CM{darkgreen}CT{white}|CR{darkblue}||] \NC first \NC left \NC middle \NC right \NC last \NC \NR \NC first \NC \color[white]{left} \NC middle \NC \color[white]{right} \NC last \NC \NR \NC first \NC left \NC middle \NC right \NC last \NC \NR \stoptabulate \stoptext i.e. we already had CL CM and CR, so CT is new .. should be wikified. I am using a two-week old beta (2015.04.03). CL has the same alignment as r and CR has the same aligned as l. I understand the historic reason for the difference between left and flushleft, but shouldn't the alignment keys within the same mechanism have the same meaning? (Or was this a bug that has been corrected in the current beta). 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Index items
On Tue, 14 Apr 2015 18:50:49 +0200 Hans Hagen wrote: > On 4/14/2015 1:48 PM, Robert Blackstone wrote: > > Dear all, > > > > The book I am typesetting contains a very extensive and detailed > > index. The number of index items is probably around 1200, 16 pages. > > A fair number of them occur in more than one chapter. > > Like bibliography items, and for the sake of consistency, I have > > stored them in some auxiliary files and it is a matter of copy and > > paste to get them into the text in the proper place and way. (With > > always a risk of accidentally deleting or adding a spurious brace > > or bracket, with nasty results.) > > > > I wonder therefore whether it would be possible to handle them like > > bibliography items, by means of a key, and leave their expansion to > > ConTeXt. > > > > Would it be possible? > > And if it is not (yet) possible, how could I perhaps tackle it? > > so you want to remap given index entries to new ones? at what moment? We index pretty heavily now in the new bibliography dataset subsystem, that is one can create an index of authors, an index of keywords, an index of titles, etc. as well as index the pages on which a reference is cited. All of the information is there. So say that you want to create a database of anything: words, images, phrases. You can put these into the database structure and then insert them or any associated information wherever you want in your text, later producing lists and indexes. Can you give an example of what type of information you extensively index with detail? 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in xtables?
On 4/15/2015 5:45 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \starttext \startxtable \startxrow \startxcell a\stopxcell \startxcell b \stopxcell \stopxrow \startxrow \startxcell c\stopxcell \startxcell[width=.65\textwidth] \input zapf \stopxcell \stopxrow \stopxtable \stoptext Last cell is wrong with stable from TeX Live (2014.05.21 22:04), from 2015.03.25 22:13 and latest one from 2015.04.15 01:44. I’m afraid it may be a bug. an old one then Many thanks for your help, can you test some scenarios with \unprotect \let\tabl_x_set_hsize\relax \protect - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug in xtables?
Dear list, I have the following sample: \starttext \startxtable \startxrow \startxcell a\stopxcell \startxcell b \stopxcell \stopxrow \startxrow \startxcell c\stopxcell \startxcell[width=.65\textwidth] \input zapf \stopxcell \stopxrow \stopxtable \stoptext Last cell is wrong with stable from TeX Live (2014.05.21 22:04), from 2015.03.25 22:13 and latest one from 2015.04.15 01:44. I’m afraid it may be a bug. Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Synonyms - feature request?
On 3/25/2015 11:24 AM, robin.kirk...@csiro.au wrote: Folks, I use the synonym feature heavily as technical documents can have hundreds of them. It’s great I can produce a list of synonyms I actually use in a document. Proper style however requires that each synonym be “explained” (shown in full) the first time it is used — usually in a document, but sometimes in a smaller scope, like a part or chapter. This is something I frequently get wrong, and is something document reviewers are quick to complain about. So it would be great if Context could do this automatically. The attached MWE shows what I mean — with such a feature, the two paragraphs should come out the same. I’ve placed some (commented) guesses as to how this might be configured in \setupsynonyms. Maybe better key names can be imagined. Typically I would want synonym \XX\ to be expanded to XX (Xxx Xxx) the first time it is used (alternative a), but the reverse (alternative b), Xxx Xxx (XX) might be preferred. However a command could be used for a custom “explanation”. Internally to Context, I guess this means each group of synonyms actually used has to be complemented with a list of the synonyms that have been “explained” (i.e., \infull{}) would add them to this second list). The second list would be cleared each new scope (chapter, section). The \XX\ macro would explain the synonym if it wasn’t on the second list (using \infull{}, which would then add it). None of this would change the behaviour of \placelistof… where you would continue to select the criterium for the list you want output, independently of The only further tweak might be a scheme so that certain common synonyms (a third list) are never explained automatically (perhaps by example, UK in a document written in and for a UK audience). This list would silently added to the second list immediately after it was cleared, I guess. Synonyms for this this list would be added by a slightly different version of the synonym definition macro (perhaps \commonabbreviation instead of \abbreviation, in the MWE). Anyone think this would be a useful feature addition? Robin \definesynonyms[abbreviation][abbreviations][\infull] \setupsynonyms[abbreviation][ state=start, %explain=first,% first,always,never %explainscope=text,% text,part,chapter,section... %explainalternative=a, % a: XX (Xxx Xxx), b: Xxx Xxx (XX), command %explaincommand=COMMAND#1#2, % to format it yourself textstyle=normal, synonymstyle=\cap] \abbreviation [UN] {UN} {United Nations} \abbreviation [UK] {UK} {United Kingdom} \abbreviation [USA] {USA} {United States of America} \abbreviation [UAE] {UAE} {United Arab Emirates} %\commonabbreviation [OK] {OK} {okay} \abbreviation [OK] {OK} {okay} \setupwhitespace[medium] \starttext The \UK\ and the \USA\ are both founding members of the \UN. And I'm told the \UK\ and \USA\ are both English speaking countries. But that’s \OK. The \UK\ (\infull{UK}) and the \USA\ (\infull{USA}) are both founding members of the \UN\ (\infull{UN}). And I'm told the \UK\ and \USA\ are both English speaking countries. But that’s \OK. \placelistofabbreviations \stoptext The next beta has enough to get you going (lightweight extensions): \definesynonyms [myabbreviation] \setupsynonyms [myabbreviation] [headstyle=bold, headcolor=darkred, synonymstyle=boldslanted, synonymcolor=darkblue, textstyle=slanted, textcolor=darkgreen, style=normal, color=darkyellow] \definesorting [mylogo] \setupsorting [mylogo] [style=bold, color=darkmagenta] \myabbreviation [FIRST] {TheFirst} {The First Words} \myabbreviation [SECOND] {TheSecond} {The Second Words} \myabbreviation [THIRD] {TheThird} {The Third Words} \mylogo [FOURTH] {TheFourth} \starttext \setupsynonyms[myabbreviation][alternative=first] We have \FIRST, \SECOND\ and also \THIRD\ but no \FOURTH. We have \FIRST, \SECOND\ and also \THIRD\ but no \FOURTH. \resetshownsynonyms[myabbreviation] \setupsynonyms[myabbreviation][alternative=last] We have \FIRST\ and \THIRD\ or \FOURTH. We have \FIRST\ and \THIRD\ or \FOURTH. \placelistofsynonyms[myabbreviation] \placelistofsorts[mylogo] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/
[NTG-context] next beta
in next beta \starttext \pushpath[foo] \pushpath[foo/bar] \input test % . wins over /foo wins over foo/bar \poppath \poppath \stoptext -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___