Re: [NTG-context] \setupsectionblock and \setupbackgrounds page-break problem
> From: Wolfgang Schuster > Subject: Re: [NTG-context] \setupsectionblock and \setupbackgrounds > page-break problem > Date: 29 February 2016 8:11:01 AEDT > >> robin.kirk...@csiro.au 28. Februar 2016 um 14:49 >> Folks, >> >> I want \startfrontmatter to trigger a background image, but I can only get >> this to appear if I use page=yes (see example below). >> >> However, I don’t want any page break between the front-matter and >> body-matter. If I use page=no (as in the line commented out) this page break >> disappears — but so does the background image! >> >> How can I get the background behind the page where the front-matter text >> appears, but with no page break before the body-matter? > > Set the page background outside of the sectionblock. … and use \setlayer. Thanks Wolfgang, I think I’m piecing together how layers, backgrounds and the pagebreak mechanism fit together. Regards, Robin ___ 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] \setupsectionblock and \setupbackgrounds page-break problem
Folks, I want \startfrontmatter to trigger a background image, but I can only get this to appear if I use page=yes (see example below). However, I don’t want any page break between the front-matter and body-matter. If I use page=no (as in the line commented out) this page break disappears — but so does the background image! How can I get the background behind the page where the front-matter text appears, but with no page break before the body-matter? Robin \setupexternalfigures[location=default] \definelayer[frontbackground] \setlayer[frontbackground]{% \externalfigure[mill.png] [width=\paperwidth,height=\paperheight] } \unexpanded\def\frontpartbefore{ \setupbackgrounds[page] [background=frontbackground] } \setupsectionblock[frontpart][page=yes,before=\frontpartbefore] %\setupsectionblock[frontpart][page=no,before=\frontpartbefore] \setupsectionblock[bodypart][page=no] \starttext \startfrontmatter Should be on a first page \stopfrontmatter \startbodymatter Should follow frontmatter with no page break \stopbodymatter \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \starttyping font changes when option=color
Folks, Switching the option to “color” in \setuptyping has the effect of resetting the font from typewriter (constant width) to paragraph font (if you uncomment it in the following MWE). I don’t see why that should be. Is it a bug or can someone explain? My intent was to use syntax colourisation for code snippets. Thanks, Robin \setupcolors[state=start] %\setuptyping[typing][option=color] \starttext Normal text \starttyping Typing text \stoptyping \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Textbackgrounds interrupted by floats
On 7 April 2015 21:53:40 AEST, Wolfgang Schuster wrote: >> Am 07.04.2015 um 13:31 schrieb robin.kirk...@csiro.au: >> Here is problem that must have been asked about before, but I can’t seem to >> find a solution on the archive or anywhere else. I want a colour background >> for verbatim text (for code), and floating figures. However if a figure >> floats to the bottom (as in the example below), and the verbatim text is >> broken over to the next page because it is long, I don’t want the colour >> background under the figure as well — I want no background at all. >> What is the correct setup to do that? > > Add the following line to your document: > > \setconstant\kindofpagetextareas\plusone > > Wolfgang Thanks Wolfgang, obscure but works perfectly — Robin ___ 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] Textbackgrounds interrupted by floats
Folks, Here is problem that must have been asked about before, but I can’t seem to find a solution on the archive or anywhere else. I want a colour background for verbatim text (for code), and floating figures. However if a figure floats to the bottom (as in the example below), and the verbatim text is broken over to the next page because it is long, I don’t want the colour background under the figure as well — I want no background at all. What is the correct setup to do that? Thanks, Robin \setupexternalfigures[location=default] \setupcolors[state=start] \definetextbackground[code][ frame=off, location=paragraph, background=color, backgroundcolor=yellow] \setuptyping[typing][ %option=color, before={\starttextbackground[code]}, after=\stoptextbackground] \starttext \startplacefigure[location=bottom] \externalfigure[cow][width=0.5\textwidth] \stopplacefigure \input tufte \starttyping Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long \stoptyping \input tufte \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] overlay or layer for chapter head.
> From: John Culleton > Subject: [NTG-context] overlay or layer for chapter head. > Date: 2 April 2015 1:19:03 AEDT > > I am redoing a book for a client. Each chapter > head has a fancy design. I want to reproduce that > fancy page but still have the "\chapter" > statement for running heads, TOC etc. > > Is there a way that I can overlay the entire > chapter first page with a graphic, ideally a one > page pdf file. > > I have tried workarounds with > \startstandardmakeup,\writetolist, > \definemarking etc. but the whole thing is > getting too complicated. I just want to overlay a > the entire page with a graphic yet have > the real content of the page still available for > TOC, running head, indexing terms etc. > > Any suggestions? > > -- > John Culleton > Wexford Press Hi John, I did this recently by defining a layer and putting an image in it using \setlayer, in a macro called just before chapters are started: \definelayer[chapterbackground] \setupexternalfigures[location=default] \unexpanded\def\chapterbefore{ \setlayer[chapterbackground]{% \externalfigure[mill.png] [width=\paperwidth,height=\paperheight] } \setupbackgrounds[page] [background=chapterbackground] } \setuphead[chapter][before=\chapterbefore] \starttext \chapter{Knuth} \dorecurse{5}{ \input knuth \par } \chapter{Dawkins} \input dawkins \stoptext No doubt there is a neater/better way to do it than that. In fact I tried to set up the background only once, like this: \definelayer[chapterbackground] \setupexternalfigures[location=default] \setlayer[chapterbackground]{% \externalfigure[mill.png] [width=\paperwidth,height=\paperheight] } \setuphead[chapter] [before={ \setupbackgrounds[page] [background=chapterbackground] }] \starttext \chapter{Knuth} \dorecurse{5}{ \input knuth \par } \chapter{Dawkins} \input dawkins \stoptext But it looks like the layer “forgets” the image each time it is used, and the second chapter does not have the image. I’d be pleased to know the “right way” to do this too ... Robin ___ 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] Figure references seem broken in latest beta
>> Am 28.03.2015 um 11:09 schrieb robin.kirk...@csiro.au: >> >> Since the latest beta (2015.03.26 22:52 MKIV beta fmt: 2015.3.28), no >> figure numbers are being output by at least \in and also >> \placelistoffigures, although page references seem ok. > > Works here. > > mtx-context | current version: 2015.03.28 10:30 > > Wolfgang Yes, once version 2015.03.28 16:30 arrived here, it came good — Thanks, Robin Are the version timestamps local time or Dutch time? ___ 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] Figure references seem broken in latest beta
Since the latest beta (2015.03.26 22:52 MKIV beta fmt: 2015.3.28), no figure numbers are being output by at least \in and also \placelistoffigures, although page references seem ok. Robin \starttext \startplacefigure[location=bottom,reference=cow] \externalfigure[cow] \stopplacefigure \in{Figure}[cow] on \at{page}[cow] shows a fine cow. \placelistoffigures[alternative=c] \stoptext fignum.pdf Description: fignum.pdf ___ 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] Customising referencing failures (\in, etc)
>> Am 27.03.2015 um 14:22 schrieb robin.kirk...@csiro.au: >> >> Is there a way to customise the ?? that is substituted in the output when a >> reference does not work out (nonexistent reference label, etc)? I’d like to >> make it more obvious for proofreading (like making it red, putting a marker >> in the margin, or something). >> >> Cheers, Robin > > \def\dummyreference{\inmargin[style=\tttf,color=red]{??}} > > \starttext > \input tufte > Bad reference \in[missing]. > \input tufte > \stoptext > > Wolfgang Thank you once again Wolfgang — Robin ___ 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] Customising referencing failures (\in, etc)
Folks, Is there a way to customise the ?? that is substituted in the output when a reference does not work out (nonexistent reference label, etc)? I’d like to make it more obvious for proofreading (like making it red, putting a marker in the margin, or something). Cheers, Robin \starttext \input tufte Bad reference \in[missing]. \input tufte \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Help with \setuplist number width (for appendices)
Am 23.03.2015 um 10:29 schrieb mailto:robin.kirk...@csiro.au>> mailto:robin.kirk...@csiro.au>>: Dear List, I’m implementing a predefined document style. This requires chapters numbered 1, 2, 3 … and appendices numbered Appendix A, Appendix B, Appendix C, … both in the actual heads and also the table of contents. The style also requires the chapter numbers in the table of contents to be set in a 12mm column. The MWE below does all this, but for the appendices the number overflows the 12mm width, which is ugly of course. So I need to specify either a width with some stretch so the list layout will adapt, or somehow be able to specify a different width for the appendix entries. Any help appreciated, Robin \setuplist[chapter][ width=12mm, % but want 30mm for appendices label=yes, alternative=c] \define[1]\ChapterlistNumber {\dowithnextbox {\ifdim\nextboxwd<12mm \simplealignedbox{12mm}{flushleft}{\flushnextbox}% \else \simplealignedbox{30mm}{flushleft}{\flushnextbox}% \fi} \hbox{#1}} \setuplist [chapter] [width=0pt, label=yes, alternative=c, numbercommand=\ChapterlistNumber] Wolfgang Thanks Wolfgang! I actually tried something a bit like this but couldn’t get it to work. The key is to set the width to 0pt in the \setuplist. Best wishes from Melbourne, Robin ___ 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] Synonyms - feature request?
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 ___ 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] Help with \setuplist number width (for appendices)
Dear List, I’m implementing a predefined document style. This requires chapters numbered 1, 2, 3 … and appendices numbered Appendix A, Appendix B, Appendix C, … both in the actual heads and also the table of contents. The style also requires the chapter numbers in the table of contents to be set in a 12mm column. The MWE below does all this, but for the appendices the number overflows the 12mm width, which is ugly of course. So I need to specify either a width with some stretch so the list layout will adapt, or somehow be able to specify a different width for the appendix entries. Any help appreciated, Robin \setuplist[chapter][ width=12mm, % but want 30mm for appendices label=yes, alternative=c] \setuplabeltext[appendix=Appendix\space] \starttext \completecontent \chapter{One} \chapter{Two} \startappendices \chapter{First} \chapter{Second} \stopappendices \stoptext contents.pdf Description: contents.pdf ___ 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] bibliography MKiV
Dear Flavien, This version works — note “dataset=document” and the “document::” in the citation. The clue is in the log: publications> cite > non-existent entry 'batty' in '' publications> no field 'num' for tag 'batty' in dataset ‘' The second big “1” is because \completebtxrendering has an implicit \chapter, but seemingly no default title. Robin \definebtxdataset[document] \usebtxdataset[document][test.bib] \definebtxrendering[document][dataset=document] \setupbtxrendering[document][numbering=yes] \starttext As \cite[document::batty] already indicated, bibtex is a \LATEX||centric program. \completebtxrendering[document] \stoptext > From: Flavien Lambert > Subject: [NTG-context] bibliography MKiV > > Dear all, I tried to reproduce the example of mkiv-publications.pdf, chapter > 10 through: > > \definebtxdataset[document] > \usebtxdataset[document][test.bib] > \definebtxrendering[document] > \setupbtxrendering[document][numbering=yes] > \starttext > \starttext > As \cite[batty] already indicated, bibtex is a \LATEX||centric > program. > \completebtxrendering[document] > \stoptext > > with test.bib as > > @article{batty, > author = 'M. Batty', > title = 'The size, scale, and shape of cities', > journal = 'Science', > volume = '319', > number = '5864', > pages = '769--771', > year = '2008' > } > > Unfortunately, the result is two pages, one with As [] already > indicated, bibtex is a L A TEX--centric program. and the other with a large 1. > > Could you tell me what I am doing wrong? My apologies if it is really > obvious... ___ 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] \nocite not working (new publications system)
Hans, I think \nocite stopped working one or two betas ago, see example: no Cleveland reference turns up in the list. Robin \definebtxdataset [document] \usebtxdataset [document] [mkiv-publications-graph.bib] \definebtxrendering [document] [dataset=document] \setupbtxrendering [document] [numbering=num] \starttext As \cite[document::Tufte1983] probably never indicated, bibtex is a \LATEX||centric program. A Cleveland \nocite[document::Cleveland1985] reference should also appear below. \blank \placebtxrendering[document][criterium=text] \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Improved publ-imp-test.bib
Hans, I am using the attached .bib file while working on improving publ-imp-apa.mkvi. The test .bib file contains a short and long version of each publication category, and while it is not an exhaustive test of publications list formatting it is a good start. Perhaps you can consider this to replace the existing publ-imp-test.bib in the core. Robin publ-imp-test.bib Description: publ-imp-test.bib ___ 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] Publications output broken in latest beta
The following minimal example worked a few days ago, but appears broken now (2014.06.17 16:53 MKIV beta) — no publications list appears. Robin \definebtxdataset [document] \usebtxdataset [document] [mkiv-publications-graph.bib] \definebtxrendering [document] \setupbtxrendering [document] [numbering=yes] \starttext As \cite[document::Tufte1983] already indicated, bibtex is a \LATEX||centric program. \completebtxrendering[document] \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Publications working in latest beta?
I’m still not having luck with the new publications system. The behaviour of the original minimal example has changed in the most recent beta (2014.06.01 13:44); now the example renders "()” for the citation, and there is still no rendering of the publications list, which should presumably have just a single entry. Or is there some error in my example? Robin On 28 May 2014, at 0:08, Robin Kirkham wrote: > Dear List, > > After some time absent from Context-land, I thought I’d try the new > non-BibTeX publications system. However I can’t get the following minimal > example to work … \cite seems to expand to a () and there is no rendering of > the publications list. Is the problem my example, or is it a bug? > > Robin > > > \definebtxdataset[test] > \usebtxdataset[test][sample.bib] > > \definebtxrendering[test] > \setupbtxrendering[test][numbering=yes] > > \starttext > As \cite[author][test::Eijkhout1991] already indicated, bibtex is a > \LATEX||centric program. > > \placebtxrendering[test] > \stoptext > > ConTeXt ver: 2014.05.23 23:24 MKIV beta fmt: 2014.5.27 int: english/english ___ 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] Publications working in latest beta?
Dear List, After some time absent from Context-land, I thought I’d try the new non-BibTeX publications system. However I can’t get the following minimal example to work … \cite seems to expand to a () and there is no rendering of the publications list. Is the problem my example, or is it a bug? Robin \definebtxdataset[test] \usebtxdataset[test][sample.bib] \definebtxrendering[test] \setupbtxrendering[test][numbering=yes] \starttext As \cite[author][test::Eijkhout1991] already indicated, bibtex is a \LATEX||centric program. \placebtxrendering[test] \stoptext ConTeXt ver: 2014.05.23 23:24 MKIV beta fmt: 2014.5.27 int: english/english ___ 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] Number formatting in \unit
All, I have put together some suggestions to extend the number formatting capability in \unit, particularly for scientific and engineering purposes, including basic support for tolerances and uncertainties. It is a bit long, so source is attached and a PDF is at http://dl.dropbox.com/u/36891398/units6.pdf Of course, this is just my opinion, so I welcome any feedback from the list. Best, Robin units6.tex Description: units6.tex ___ 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] [ntg-context] beta
On 3 December 2011 Hans Hagen wrote: > - concerning unicode celsuis and fahrenheit symbols: lm has only one of > them hence the inconsistent rendering. I now check for both being > present and fallback in case one of them is missing. I thought it might be a font thing > - dB (A) : I've added that feature () sounds ok to me. Great! > - Are succesive per's always to be collapsed? 10 a/b/c or 10 a/bc? Well, I was thinking about that last night. Technically, yes: one is only supposed to have one per or / in a unit, and any subsequent ones have no effect. But actually I now think that if an author wants that, there may be reasons, so let's leave it as it is. Then you can actually write \starttext It is correct that \unit{1 metre per second per second} is \unit{1 metre per second second} and is also \unit{1 metre per square second}. \stoptext > - I'll see what I can do with multiple units. Thanks. Not an urgent one for me. I'm thinking about the numeric formatting capability now ... I will write something and send to the list for comment. Robin ___ 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] [ntg-context] beta
On Friday, 2 December 2011, Ian Lawrence wrote: > New units are a great improvement. Thanks. > Ian > On 29 Nov 2011, at 17:57, Hans Hagen wrote: > >> Hi, >> >> I uploaded a new beta. The usual fixes (as reported to/suggested on this >> list) and an updated unit mechanism. I'll also upload the new (but yet >> incomplete) units manual. >> >> http://www.pragma-ade.com/general/manuals/units-mkiv.pdf >> >> Hans Thanks from me too. Yes, I think we are pretty close with this. A few problems (and possible enhancements) are detailed in the attached (source and pdf). (Hans: this supersedes the one I sent you privately). Robin units5.tex Description: units5.tex units5.pdf Description: units5.pdf ___ 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] \unit and Hertz, lux, and degrees/minutes/seconds
On 25 November 2011, Hans Hagen [pra...@wxs.nl] wrote: > I uploaded a new beta. > ... > - Hz, dB (actually deci + bel so megabel also works), lx, permille, t, > k, Da added Actually decibel is an odd one, a logarithmic unit, so prefixes other than "deci" are never used. However the implementation is no problem. > - ad 2: no looking back (would demand an extra correction pass > elsewhere, maybe some day) Here I meant just space within the argument to \unit{}. It seems to be handled correctly now ... > - ad 8: manipulating the input this way is somewhat beyond the purpose > of a typesetting system (Normalisation of numbers and unit prefixes). OK, just seeing where the line was to be drawn. However, in the code a comment notes the possibility of automatic conversions to imperial units, which is a step even further, actually. Personally I don't think it's a good idea. [Or the b-grade movies]. > - ad 9: much will be configureable; see mkiv file for an example of > defining extra units (\registerunit [units] [point=pt, basepoint=bp]); Works, although > - I myself am not going to look in all kind of other tex stuff that lays > around as it's up to users/usage what is added, given that it fits into > the model of context; we have the old units modules as starting point That was a note to self, but any takers ... I attach a (much shorter) bunch of test cases (source and pdf again). Thanks, Robin units2.tex Description: units2.tex units2.pdf Description: units2.pdf ___ 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] space between number and units in \unit
Dear Context folks, Could I request a parameter in \setupunits to control the space between the number and the units that is placed by \unit{}. In phys-dim.mkiv it looks like there is an intention to do so (parameter "space") but it's commented out. I actually would like about half the space that I currently get, but others may want none, or more. Thanks, Robin \starttext \unit{35 kilogram cubic meter} \setupunits[unit][space=big] \unit{35 kilogram cubic meter} \setupunits[unit][space=small] \unit{35 kilogram cubic meter} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Error message wrong when \component is used
From: Steffen Wolfrum > Date: 13 October 2010 12:03:37 AM AEDT > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] Error message wrong when \component is used > Reply-To: mailing list for ConTeXt users > > Why do you use start-/stoptext inside start-/stopproduct? > > Steffen Hi Steffen, By mistake! 8-) However, if I take out the start-/stoptext, it makes no difference, Context is still printing text from the wrong file in the error message: file1.tex: \startproduct file1 Bla bla bla. Bla bla bla. Bla bla bla. \component file2 \stopproduct file2.tex: \startcomponent file2 Bleh bleh bleh. Bleh bleh bleh. Bleh bleh bleh. \zorg \stopcomponent and I get: ... systems : begin file file1 at line 1 systems : begin file file2 at line 5 (file2.tex ! Undefined control sequence. system > error on line 5 in file file1.tex: Undefined control sequence ... 1 \startproduct file1 2 Bla bla bla. 3 Bla bla bla. 4 Bla bla bla. 5 >> \component file2 6 \stopproduct l.5 \zorg ? q OK, entering \batchmode MTXrun | fatal error: return code: 1% Robin ___ 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] missing newline in when mtxrun exits with error
Dear all, This is a very minor gripe, but when mtxrun reports an error it doesn't seem to print a final newline. At least with my bash setup, this confuses the command-line editing feature, which I use a lot. ... some TeX error happened ... ? q OK, entering \batchmode MTXrun | fatal error: return code: 1% Platform is Mac OS X 10.6, latest minimals. Best, Robin ___ 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] Error message wrong when \component is used
Dear all, I find that when there is an error (at least, "undefined control sequence") in a file included using \component, the supposedly erroneous lines printed are from the calling file, not the file where the error actually is (although the line number seems correct, and there are clues where the error really lies). Minimal example ... file1.tex: \startproduct file1 \starttext Bla bla bla. Bla bla bla. Bla bla bla. \component file2 \stoptext \stopproduct file2.tex: \startcomponent file2 Bleh bleh bleh. Bleh bleh bleh. Bleh bleh bleh. \zorg \stopcomponent When I run "context file1" I get an error: ... ConTeXt ver: 2010.10.12 01:03 MKIV fmt: 2010.10.12 int: english/english ... systems : begin file file1 at line 1 systems : begin file file2 at line 6 (file2.tex ! Undefined control sequence. system > error on line 5 in file file1.tex: Undefined control sequence ... 1 \startproduct file1 2 \starttext 3 Bla bla bla. 4 Bla bla bla. 5 >> Bla bla bla. 6 \component file2 7 \stoptext 8 \stopproduct l.5 \zorg If I replace \component with \input in file1.tex, all works correctly and the error ("\zorg") is correctly pointed out. Best, Robin ___ 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] calling ConTeXt as a background process
Posted by Henning Hraban Ramm [hra...@fiee.net] > Am 2010-10-07 um 10:42 schrieb Taco Hoekwater: > > > On 10/07/10 09:34, Henning Hraban Ramm wrote: > >> mtxrun --script context "prd_paket --batchmode --once" > > > > When I run that last thing on the command line, I get: > > > > ! I can't find file `./prd_paket --batchmode --once'. > > <*> "./prd_paket --batchmode --once" > > > > Please type another input file name: > > Of course, prd_paket.tex is my input file. But that's there. > > > But it is hard to say whether that is the problem. If it was > > me, I would attach a gdb to the process to see where it is at > > from the backtrace (but you need a non-stripped build of > > the binary for that). > > I'd like to avoid compiling a debugging version of luatex... Hraban, Have you tried attaching to the stalled processes using strace (Linux) or dtruss (Mac)? This will tell you what system call is blocking, might give a clue. The defunct uname process in your original post suggests to me the parent did not calling wait() on the child (uname) and it exited. Best, Robin ___ 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] bib module -- \completepublications inside \start|\stopbackmatter (FWD)
Taco wrote: > > I've noticed that when using numerical citations, if the > > \completepublications is inside the back matter (which is where I > > would think it would normally be), then the citations themslves (in > > the body matter) disappear from the text (they turn into empty > > brackets, []). The reference list itself is correct. > > > > If you comment out the \start|\stopbackmatter, then everything works. > > There seems to be no problem if you use author-date style citations, > > either globally or for individual citations. > > ... > > Just something you missed in the manual. You need > > \completepublications[criterium=all] > > (because the module also supports per-sectionblock lists) Many thanks again, this fixed it. But, if \completepublications (with no arguments) prints only a local list, then it should print the list just for the backmatter block, which should be an empty list, as there were no citations in that block. Instead, I get the list that applies to the bodymatter block. I am missing something here ... I also don't follow why just numeric citations are affected. Cheers, Robin <>___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bib module -- \maybeyear
Taco wrote: > [EMAIL PROTECTED] wrote: > > \setuppublicationlist[ > > authoretallimit=100, > > artauthoretallimit=100, > > maybeyear=off > > ] > > The solution is really simple. Move the closing > bracket to the previous line, like so: > >\setuppublicationlist[ > authoretallimit=100, > artauthoretallimit=100, > maybeyear=off] > > otherwise you assign the value "off" to maybeyear. > This is true throughout context: you have to be careful > about whitespace in arguments. OK ... or terminate the argument with a % or a , ... of course I should have guessed this! Many thanks, Robin <>___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bib module -- \maybeyear
Hi all, I'm using numerical citations and reference lists, and I have the bib module doing almost everything I want, except that the years in the reference list have a, b, c ... appended. On this mailing list, it was suggested that "maybeyear=off" as an argument to \setuppublicationslist should do it, but it does not seem to. The discussion on that topic seems unresolved. I've also tried \def\maybeyear#1{} in a few places, which does not help either. I'm using ConTeXt ver: 2007.01.02 13:44 MK II fmt: 2007.1.8 int: english/english. It's my first ConTeXt project. Am I doing something wrong? Program below. Robin \enableregime[utf] \setupoutput[pdf] \usemodule[bib] \setuppublications[ refcommand=num, sorttype=bbl, criterium=all, numbering=short ] \setupbibtex[database={../references},sort=author] \setuppublicationlist[ authoretallimit=100, artauthoretallimit=100, maybeyear=off ] \starttext \placepublications \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context