Re: [NTG-context] \setuppublications problem
Le 11 mars à 13:00:51 "Thomas A. Schmitz" écrit notamment: | On Mar 10, 2011, at 3:38 PM, Jean Magnan de Bornier wrote: > | > Using the last mkiv from the minimals, \setuppublications seems out | > of order. | > | > If I write: | > .. | > \setupbibtex [database=/home/jean/biblio] | > \setuppublications[alternative=apa] | > | > \starttext | > | > | > {\bf Bibliography} | > | > \nocite[foo, bla, blu] | > \placepublications | > \stoptext | > ... | > | > the pub list is empty. But if comment out this line the bibliography | > is | > printed; it works also ok with | > | > \setuppublications[] | > > | Difficult to answer, I don't have the file /home/jean/biblio. Maybe | make a real example? Fair enough. Here: . \setupbibtex [database=/home/jean/biblio] \setuppublications[alternative=apa] \starttext {\bf Bibliography} \nocite[hh2010a,hh2010b,Eijkhout1991] \placepublications \stoptext biblio.bib is a file already known to some: @STRING{hh = {Hans Hagen}} @ELECTRONIC{hh2010, author = hh, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } @ARTICLE{hh2010a, author = hh, title = {The Font Name Mess}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {2-8}, keywords = {context}, } @ARTICLE{hh2010b, author = hh, title = {Grouping in Hybrid Environments}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {67-71}, keywords = {context}, } @BOOK{Eijkhout1991, title = {\TeX\ by Topic. A \TeX nician's Reference}, publisher = {Addison-Wesley}, year = {1991}, author = {Victor Eijkhout}, address = {London}, keywords = {general}, } ... With mkiv I get an output without the bibliography; but dropping "alternative=apa" everything is fine (I tried other alternatives). tia, -- Jean ___ 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] broken references
Dear Hans, I have an impression that MKIV cannot handle spaces in references very well (since recently; a month ago it was still working): \starttext \placefigure[force][a b c]{test}{\hbox{test}} in \in{figure}[a b c] \stoptext Mojca ___ 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] Why do \startlines and \crlf give different results in this example?
% First request no space before \setuplines[before=\nowhitespace,after=\nowhitespace] % Now use startlines... \framed[width=fit,align=right]{\startlines One Two Three\stoplines} % ...then compare with \crlf. \framed[width=fit,align=right]{One\crlf Two\crlf Three} Why do these give different results, and how do I make the former behave like the latter? mathew -- http://www.pobox.com/~meta/> ___ 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] Lucida in ConTeXt
On Fri, Mar 11, 2011 at 21:46, Hans van der Meer wrote: > On 22 december 2010 Wolfgang Schuster wrote in a reply: > >> Give us more information, this works for me: >> \setupbodyfont[lucida] >> \starttext >> > > The trouble is, it is not working for me. My minimal testfile is: > \usetypescriptfile[type-buy]\setupbodyfont[lucida] % new fontbook says > "preloaded no" You should better not use [type-buy] at all, but that is unrelated. Apart from that, the versions of ConTeXt earlier than 2011.03.11 11:45 were having problems for me as well (infinite loops and nonworking math), but I see that Hans didn't release any new beta yet. You can use --context=experimental at your own risk. Mojca ___ 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] Itemize not breaking across pages?
Thank you - that works fine; especially the first, in which the problems read in order across, rather than down in columns. cheers, Alasdair On Sat, Mar 12, 2011 at 6:05 AM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > > Am 11.03.2011 um 04:07 schrieb Alasdair McAndrew: > > > The trouble arises when I put my tables into narrower, framedtext so as > to be able to force proper indentation: > > Use tabulate. > > \starttext > > \startitemize[n] > \dorecurse{20} > {\item This is a test >\starttabulate[|*{8}{l|}] >\NC (a) \NC Problem 1 > \NC (b) \NC Problem 2 > \NC (c) \NC Problem 3 > \NC (d) \NC Problem 4 \NC\NR >\TB[3mm] >\NC (e) \NC Problem 5 > \NC (f) \NC Problem 6 > \NC (g) \NC Problem 7 > \NC (h) \NC Problem 8 \NC\NR >\stoptabulate} > \stopitemize > > \page > > \startitemize[n] > \dorecurse{20} > {\startitem Some text > \startitemize[a,columns,four,unpacked][left=(,right=),stopper=] > \dorecurse{8}{\startitem Problem \recurselevel \stopitem} > \stopitemize > \stopitem} > \stopitemize > > \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 > > ___ > -- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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] ConTeXt in MiKTeX
2011/3/11 Mojca Miklavec > On Thu, Mar 10, 2011 at 18:55, Carlos Breton Besnier wrote: > > 2011/3/10 Mojca Miklavec > > > > In the beginning: > > ! Undefined control sequence > > l.1 \starttext > > > > I can´t configure texworks. > > This means that you are most probably running plain TeX or LaTeX. In > front of the typset (play) button there is an engine drop-down menu > where you have to select ConTeXt. > > But the problem is that with portable MikTeX, you will have to run >luatools --generate >context --make > in command line manually (or do some other trickery in texworks, but > anything else is probably more tricky to do than to open cmd and type > the commands from there). Fixing this would require changes that Hans > is most likely not willing to work on since it is an old version of > ConTeXt. > > Mojca > In the engine drop-down menu (typeset button) there is no option ConTeXt. Needed configure texworks... How? ___ 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] ConTeXt in MiKTeX
On Thu, Mar 10, 2011 at 18:55, Carlos Breton Besnier wrote: > 2011/3/10 Mojca Miklavec > > In the beginning: > ! Undefined control sequence > l.1 \starttext > > I can´t configure texworks. This means that you are most probably running plain TeX or LaTeX. In front of the typset (play) button there is an engine drop-down menu where you have to select ConTeXt. But the problem is that with portable MikTeX, you will have to run luatools --generate context --make in command line manually (or do some other trickery in texworks, but anything else is probably more tricky to do than to open cmd and type the commands from there). Fixing this would require changes that Hans is most likely not willing to work on since it is an old version of ConTeXt. Mojca ___ 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] Pagination problem with an intermezzo containing a footnote
\starttext This is a sample document to demonstrate a possible bug. You will probably see a footnote below which appears before the page it's referenced from. \placeintermezzo[page][block:example]{Demonstrating a bug} \startframedtext[width=0.8\makeupwidth] This is a rather dull intermezzo.\footnote{But it does at least demonstrate a bug.} \stopframedtext \stoptext mathew -- http://www.pobox.com/~meta/> ___ 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] Verbatim text: intext & colors (mkiv)
>> "Line numbers in the text" as well as > Works here with the last beta. I'm using the latest beta too. Attached is my PDF, do you get something different? I want to have intext numbers (inside the frame), not outside. As I said, works with mkii though. > /BTEX … /ETEX (for colors) don't work. > “option=commands” is now “escape=yes” Thanks, I've tried that too, but had another typo in there. So that's working now, thanks. Adam intext.pdf Description: intext.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] Itemize not breaking across pages?
Am 11.03.2011 um 04:07 schrieb Alasdair McAndrew: > The trouble arises when I put my tables into narrower, framedtext so as to be > able to force proper indentation: Use tabulate. \starttext \startitemize[n] \dorecurse{20} {\item This is a test \starttabulate[|*{8}{l|}] \NC (a) \NC Problem 1 \NC (b) \NC Problem 2 \NC (c) \NC Problem 3 \NC (d) \NC Problem 4 \NC\NR \TB[3mm] \NC (e) \NC Problem 5 \NC (f) \NC Problem 6 \NC (g) \NC Problem 7 \NC (h) \NC Problem 8 \NC\NR \stoptabulate} \stopitemize \page \startitemize[n] \dorecurse{20} {\startitem Some text \startitemize[a,columns,four,unpacked][left=(,right=),stopper=] \dorecurse{8}{\startitem Problem \recurselevel \stopitem} \stopitemize \stopitem} \stopitemize \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 ___
Re: [NTG-context] change interwordspace twice
Am 11.03.2011 um 12:36 schrieb Steffen Wolfrum: > Hi, > > one time it works, the second it doesn't: > > \starttext > > \interwordspace 20.7pt Big Space > > \par > > \interwordspace 2.7pt Big Space > > \par > > \interwordspace 20.7pt Big Space > > \stoptext > > Does someone can explain how and when interwordspace is successfully set? That’s the only context way to change it: \starttext text text text \setuptolerance[space] text text text text \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 ___
Re: [NTG-context] change interwordspace twice
The idea is: To use an alternative interwordspace/-stretch/-shrink in certain situations (TOC, quote environments etc.) and afterwards let it switch back to normal again. Who can this be achieved? Steffen Am 11.03.2011 um 12:55 schrieb Steffen Wolfrum: > Here is an even more absurd example: > > > \starttext > >\interwordspace =40.70pt > > wide: test\footnote{note note} test test. > %Big Space > >\interwordspace =2.70pt > > > wide: test\footnote{note note} test test. > %Big Space > >\interwordspace =40.70pt > > test test\footnote{note note} test test. > %Big Space > > \stoptext > > > > As long as the three lines contain footnotes the interwordspace is changed > correctly. > But comment these lines and uncomment the "Big Space" lines instead ... the > interwordspace is not set a second time!!! > > > Bug or magic? > > Steffen > > ___ > 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 ___
Re: [NTG-context] ConTeXt in MiKTeX
2011/3/10 Carlos Breton Besnier > > > 2011/3/10 Mojca Miklavec > > On Thu, Mar 10, 2011 at 18:26, Carlos Breton Besnier wrote: >> > Hello. >> > I need ConTeXt Mark IV environment on a USB stick because I don´t have >> > administrative rights over the computer. The operating system is >> windows. I >> > downloaded MiKTex 2.9 portable (Texworks) and ConTeXt package but I can >> not >> > get it run. I've searched on the web how configurate Texworks but I did >> not >> > find a manual. >> >> Somebody would have to test, but one thing that is sure is that at >> every location where you plan to put the USB stick you will have to >> run "luatools --generate" and "context --make" before compiling the >> document. This has been fixed recently, but is not part of MikTeX yet. >> >> Where exactly do you get stuck? >> >> Mojca >> > > > In the beginning: > ! Undefined control sequence > l.1 \starttext > > I can´t configure texworks. > > Oops ... no more answers? And an alternative to MiKTeX Portable? ___ 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] Simplefonts
Am 11.03.2011 um 13:28 schrieb Charles Doherty: > Dear Wolfgang, > > I sent an e-mail about problems with my simplefonts. I got no reply since my > example had fonts that were probably not available to you. But the problem > does not relate to the Gaelic fonts that I had been using. I am sending this > file instead. The fonts below can be swapped about. The main font is always > typeset as requested but the others are not. Am I doing something really > silly? The readout from the console is below. I am using Context Minimals > MarkIV on a Mac. Help would be appreciated. Fixed. 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 ___
Re: [NTG-context] \synctex=1 ignored in mkiv
On 11-3-2011 7:12, Mojca Miklavec wrote: Thank you. What exactly was the reason to disable the old syntax? Why not maybe defining it to give at least a warning (or even error) printing out a message saying what to do. It is a bit weird to see the code compile fine without ever noticing that something went wrong. there are a few more primitives disabled (and an overload with message is no option as there is no way to intercept the parser) reasons: more consistency, less error prone, better tracing etc Is there any chance that a single command would be provided that would work both in mkii and mkiv (in mkii it would call \synctex=1 and in mkiv it would call \enabledirectives[system,synctex])? ^ period ! i'm not going to bother about mkii in this respect, in mkiv we move away from variables in favor of directives, trackers and experiments Hans - 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 ___
Re: [NTG-context] \synctex=1 ignored in mkiv
On Fri, Mar 11, 2011 at 18:31, Hans Hagen wrote: > On 11-3-2011 3:38, Mojca Miklavec wrote: >> >> Dear Hans, >> >> subject says it all: when I use \synctex=1 in mkiv, I don't get any >> ..synctex.gz file. The --synctex switch works however (which is exactly >> the opposite of what used to be the case a while ago :). > > \synctex is a nop in mkiv, use a proper directive instead: > > \enabledirectives[system.synctex] Thank you. What exactly was the reason to disable the old syntax? Why not maybe defining it to give at least a warning (or even error) printing out a message saying what to do. It is a bit weird to see the code compile fine without ever noticing that something went wrong. Is there any chance that a single command would be provided that would work both in mkii and mkiv (in mkii it would call \synctex=1 and in mkiv it would call \enabledirectives[system,synctex])? Mojca ___ 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] Am not getting Roman numeral page numbers in MKIV
I used to think I was of average intelligence but I can't figure out to do the most basic thing in ConTeXt. My current problems with this simple code are: 1. Front matter page numbers are not lower-case Roman numerals although they are listed as such in the TOC. 2. The Introduction is not listed in the TOC. 3. Page numbering isn't reset to 1 in the bodymatter section. Obviously, I'm not reading the correct documentation or am too stupid to understand what I am reading. \definehead [intro][chapter] \setuphead [intro][incrementnumber=no] \definestructureconversionset[frontpart:pagenumber][][romannumerals] %pagenumbers in TOC not converted if frontmatter \definestructureconversionset[bodymatter:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \setuplist[intro][pageconversionset=pagenumber] \startstructureblockenvironment[frontmatter] %whether frontpart or frontmatter seems to make no difference \setuppagenumber[number=1] \setuppagenumbering[state=start,location=bottom,conversion=romannumerals] \definecombinedlist [content][intro,chapter,section] \stopstructureblockenvironment \startstructureblockenvironment[bodymatter] \setuppagenumber[state=start,number=1] \setuppagenumbering[state=start,location=bottom,conversion=numbers] \stopstructureblockenvironment \startstructureblockenvironment[backmatter] \stopstructureblockenvironment \starttext \startfrontmatter % errors on startfrontpart %sample front matter \input knuth %page numbers not being converted to Roman numerals \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \stopfrontmatter \startbodymatter \intro{Introduction} %is not appearing in TOC \input knuth %page number not being set to 1 \chapter{I Was Born} \input knuth \chapter{I Observe} \input knuth \stopbodymatter \startbackmatter \stopbackmatter \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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] Verbatim text: intext & colors (mkiv)
Am 11.03.2011 um 01:33 schrieb Reviczky, Adam: > Hi, > > When using verbatim text (for source code) in mkiv: > > "Line numbers in the text" as well as Works here with the last beta. > /BTEX … /ETEX (for colors) don't work. “option=commands” is now “escape=yes” 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 ___
Re: [NTG-context] \synctex=1 ignored in mkiv
On 11-3-2011 3:38, Mojca Miklavec wrote: Dear Hans, subject says it all: when I use \synctex=1 in mkiv, I don't get any ..synctex.gz file. The --synctex switch works however (which is exactly the opposite of what used to be the case a while ago :). \synctex is a nop in mkiv, use a proper directive instead: \enabledirectives[system.synctex] - 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 ___
Re: [NTG-context] Am not getting Roman numeral page numbers in MKIV
Am 11.03.2011 um 16:17 schrieb Tom: > Where is a good explanation of the structureblockenvironment? structureblocks and sectionblocks are the same, both collect setups which are flushed at the begin of the given sectionblock. 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 ___
Re: [NTG-context] \synctex=1 ignored in mkiv
2011/3/11 Mojca Miklavec : > Dear Hans, > > subject says it all: when I use \synctex=1 in mkiv, I don't get any > .synctex.gz file. The --synctex switch works however (which is exactly > the opposite of what used to be the case a while ago :). > Hi Mojca, \enabledirectives[system.synctex] is instead of \synctex=1 in mkiv. -- Best regards, Li Yanrui (李延瑞) ___ 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] Am not getting Roman numeral page numbers in MKIV
In MKIV, I am still unable to get lower-case Roman numeral page numbers on the front matter pages, but if I use frontpart in the \defineconversionset instead of frontmatter, the page numbers in the ToC are converted. Where is a good explanation of the structureblockenvironment? \definestructureconversionset[frontpart:pagenumber][][romannumerals] %pagenumbers in TOC not converted if frontmatter \definestructureconversionset[bodymatter:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \definehead [intro][chapter] \setuphead [intro][number=no] \startstructureblockenvironment[frontmatter] %whether frontpart or frontmatter seems to make no difference \setuppagenumbering [conversion=romannumerals, location=bottom] \setuppagenumber[number=1] \definecombinedlist [content][intro,chapter,section] \stopstructureblockenvironment \startstructureblockenvironment[bodymatter] \setuppagenumbering [conversion=numbers, location=bottom] \setuppagenumber[number=1] \stopstructureblockenvironment \startstructureblockenvironment[backmatter] \stopstructureblockenvironment \starttext \startfrontmatter % errors on startfrontpart %sample front matter \input knuth \completecontent[alternative=c,criterium=all] \chapter{Preface} \input knuth \stopfrontmatter \startbodymatter \intro{Introduction} \input knuth \setupheadnumber[chapter][0] %resets first chapter number to 1 \setuppagenumbering [state=start, conversion=numbers, location=bottom] \chapter{I Was Born} \input knuth \chapter{I Observe} \input knuth \stopbodymatter \startbackmatter \stopbackmatter \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Wolfgang Schuster Sent: Friday, March 11, 2011 8:29 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] Am not getting Roman numeral page numbers in MKIV Am 11.03.2011 um 06:00 schrieb Jeong Dalyoung: > Also I use \startstructureblockenvironment[backpart] instead of \startsectionblockenvironment[backmatter]. You can use both but we should mention in manuals, the wiki etc. only the second. 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] simpleslides/metapost bug ?
Hello everybody. Can you please confirm that following code fails: \usemodule[simpleslides] \starttext \IncludePicture[horizontal][cow][highlight=yes, alternative=circle, x=1, y=1, xscale=1, yscale=1, shadow=bottomleft]{hello} \stoptext And this does not: \usemodule[simpleslides] \starttext \IncludePicture[horizontal][cow][highlight=no, alternative=circle, x=1, y=1, xscale=1, yscale=1, shadow=bottomleft]{hello} \stoptext It seems like something goes wrong when circle is made. I can't find what is wrong from error messages. I will be back on Friday next week to answer. Regards Zdenek ___ 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] \synctex=1 ignored in mkiv
Dear Hans, subject says it all: when I use \synctex=1 in mkiv, I don't get any .synctex.gz file. The --synctex switch works however (which is exactly the opposite of what used to be the case a while ago :). In MKII both works. Mojca ___ 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] Am not getting Roman numeral page numbers in MKIV
Am 11.03.2011 um 06:00 schrieb Jeong Dalyoung: > Also I use \startstructureblockenvironment[backpart] instead of > \startsectionblockenvironment[backmatter]. You can use both but we should mention in manuals, the wiki etc. only the second. 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 ___
Re: [NTG-context] fonts.enc.reencodings works with latex but not with context
Am Thu, 10 Mar 2011 19:22:18 +0100 schrieb Hans Hagen: >> I'm now trying to find out how to setup things so that context users >> could also benefit from the reencoding. But the equivalent code of >> the code working with latex doesn't work in context > this feature is indeed not part of context Dormant code ;-). Well in case you want to include it, here a comment: The pros are: reencode is very easy to use. You only need to find out the numbers of the original chars. The cons are that is difficult to clean up the font. E.g. it seems impossible to get a font table which doesn't show also all the original chars (which are in positions not needed after the reencoding) with the reencode-method. You can't adjust kerns and not pull characters from other fonts. A "virtual lua font" (\font\mine=luatex-fonts-demo-vf-1-invf.lua) is much more powerful (and more fun) and works fine with context too, so I think I will use it the most time and document "reencode" for (LaTeX)-users who wants to install a chess font in a simple way. -- Ulrike Fischer ___ 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] Simplefonts
Dear Wolfgang, I sent an e-mail about problems with my simplefonts. I got no reply since my example had fonts that were probably not available to you. But the problem does not relate to the Gaelic fonts that I had been using. I am sending this file instead. The fonts below can be swapped about. The main font is always typeset as requested but the others are not. Am I doing something really silly? The readout from the console is below. I am using Context Minimals MarkIV on a Mac. Help would be appreciated. Thanks, Charlie \usemodule[simplefonts] % load the module \setmainfont[TeX Gyre Adventor] \starttext Hello World \blank[big] \simplefont[TeX Gyre Heros] \blank[big] \simplefont[Zapfino] Hello World \stoptext The argument "/Users/charlesdoherty/Documents/TestFolder/Untitled.tex" is not a valid TEXROOT path. (There is no file "/Users/charlesdoherty/Documents/TestFolder/Untitled.tex/texmf/tex/plain/base/plain.tex") mtx-context | run 1: luatex --fmt="/Users/charlesdoherty/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en" --lua="/Users/charlesdoherty/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui" --backend="pdf" "./Untitled.tex" This is LuaTeX, Version beta-0.65.0-2010121316 \write18 enabled. (Untitled.tex ConTeXt ver: 2011.02.25 22:03 MKIV fmt: 2011.3.8 int: english/english system > cont-new.mkiv loaded (/Users/charlesdoherty/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > Untitled.top loaded (Untitled.top) fonts > latin modern fonts are not preloaded languages > language en is active resolvers > modules > loaded: 'simplefonts' (/Users/charlesdoherty/context/tex/texmf-context/tex/context/third/simplefonts/t-simplefonts.tex loading > ConTeXt User Module / Simplefonts <+ /Users/charlesdoherty/context/tex/texmf-context/tex/context/third/simplefonts/t-simplefonts.lua>) fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes fonts > names > font database has matching configuration and file hashes (/Users/charlesdoherty/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/Users/charlesdoherty/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/Users/charlesdoherty/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/charlesdoherty/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/Users/charlesdoherty/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} system > begin file Untitled.tex at line 5 backend > xmp > using file '/Users/charlesdoherty/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pages >
Re: [NTG-context] Making all bold faced text colored?
Thank you very much - that makes sense! I'm moving slowly to ConTeXt after many years of LaTeX - so expect lots of elementary questions from me, at least initially! Thanks again, Alasdair On Fri, Mar 11, 2011 at 10:30 PM, Hans Hagen wrote: > On 11-3-2011 12:03, Alasdair McAndrew wrote: > >> In some overheads, I'd like all bold-faced font to appear in a given >> color, >> say red. How do I set this up, so that {\bf some text} will display "some >> text" in red? >> > > Fonts and colors are unrelated properties (and always will be in context). > The way to go is abstraction: > > \definestartstop[important][color=red,style=bold] > > test {\important test} or \important{test} test ... > > > - > 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 ___
Re: [NTG-context] \setuppublications problem
On Mar 10, 2011, at 3:38 PM, Jean Magnan de Bornier wrote: Using the last mkiv from the minimals, \setuppublications seems out of order. If I write: .. \setupbibtex [database=/home/jean/biblio] \setuppublications[alternative=apa] \starttext {\bf Bibliography} \nocite[foo, bla, blu] \placepublications \stoptext ... the pub list is empty. But if comment out this line the bibliography is printed; it works also ok with \setuppublications[] Difficult to answer, I don't have the file /home/jean/biblio. Maybe make a real example? Thomas ___ 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] change interwordspace twice
Here is an even more absurd example: \starttext \interwordspace =40.70pt wide: test\footnote{note note} test test. %Big Space \interwordspace =2.70pt wide: test\footnote{note note} test test. %Big Space \interwordspace =40.70pt test test\footnote{note note} test test. %Big Space \stoptext As long as the three lines contain footnotes the interwordspace is changed correctly. But comment these lines and uncomment the "Big Space" lines instead ... the interwordspace is not set a second time!!! Bug or magic? Steffen ___ 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] change interwordspace twice
Hi, one time it works, the second it doesn't: \starttext \interwordspace 20.7pt Big Space \par \interwordspace 2.7pt Big Space \par \interwordspace 20.7pt Big Space \stoptext Does someone can explain how and when interwordspace is successfully set? Thanks a lot, Steffen (on Mark IV) ___ 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] Making all bold faced text colored?
On 11-3-2011 12:03, Alasdair McAndrew wrote: In some overheads, I'd like all bold-faced font to appear in a given color, say red. How do I set this up, so that {\bf some text} will display "some text" in red? Fonts and colors are unrelated properties (and always will be in context). The way to go is abstraction: \definestartstop[important][color=red,style=bold] test {\important test} or \important{test} test ... - 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] Making all bold faced text colored?
In some overheads, I'd like all bold-faced font to appear in a given color, say red. How do I set this up, so that {\bf some text} will display "some text" in red? Thanks, Alasdair ___ 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 colon in lucida mkii
Hello, With the following example I get a dot instead of colon: \usetypescript[lucida][ec] \setupbodyfont[lucida] \starttext \startformula a := b \stopformula \stoptext The particular example in MKIV works fine ... ... except when it doesn't (\sqrt enters ifinite loop, but many other commands seem to be problematic as well). Mojca ___ 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] writing physical quantities in maths mode
On Fri, Mar 11, 2011 at 10:14, Ian Lawrence wrote: > Morning all, > I have a need to write a lot of physical quantities - these should be > in text mode. Mostly I can manage, but subscripts are causing me grief > > Eg > \startformula > \startmathalignment[n=3] > \NC \text{F}\NC =\NC {\text{GMm} \over \text r^2}\NR > \NC \text {force}_G \NC =\NC {\text{G} \times \text m_1 \times \text > m_2 \over \text r^2}\NR > \NC \text {force \low G} \NC =\NC {\text{G} \times \text m_1 \times > \text m_2 \over \text r^2}\NR > \stopmathalignment > \stopformula > > In the second and third equantions I'd like force subscript G all in > roman, not italic, to follow the standard conventin. > The first one puts the G in the correct place, but in italic > The second one manages roman, but it's offset. Is this ok? \text{force}_{\rm G} (or \text{force}_{\text{G}}) With \rm you stay in math mode, but use roman. You should not use \rm for "force" since you would get mathematical spacing instead of proper kerning. > \startformula > {\forceQA \over \massQA} = \accelerationQA > \stopformula Try to use \frac{}{} instead of \over. There are discussions about disabling \over in luatex (or at least in MKIV). Mojca ___ 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] writing physical quantities in maths mode
Morning all, I have a need to write a lot of physical quantities - these should be in text mode. Mostly I can manage, but subscripts are causing me grief Eg \startformula \startmathalignment[n=3] \NC \text{F}\NC =\NC {\text{GMm} \over \text r^2}\NR \NC \text {force}_G \NC =\NC {\text{G} \times \text m_1 \times \text m_2 \over \text r^2}\NR \NC \text {force \low G} \NC =\NC {\text{G} \times \text m_1 \times \text m_2 \over \text r^2}\NR \stopmathalignment \stopformula In the second and third equantions I'd like force subscript G all in roman, not italic, to follow the standard conventin. The first one puts the G in the correct place, but in italic The second one manages roman, but it's offset. I suspect I could kludge this with hskips, but I think there should be a more elegant solution. If there is a paper on writing physics in ConTEXt (not maths... I have found the helpful couple by Aditya Mahajan) that would save me time. For most relationships I am planning to use predefine quantities, then slot these in Like this in the header \define \forceQA {{\sl F}/\Newton} \define \forceQU {{\tf force}/{\tf newton}} \define \forceQ {{\tf force}} (etc) And this in the body \startformula {\forceQA \over \massQA} = \accelerationQA \stopformula \startformula {\forceQU \over \massQU} = \accelerationQU \stopformula \startformula {\forceQ \over \massQ} = \accelerationQ \stopformula Any more elegant solutions out there? Thanks Ian ___ 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] cals tables
Dear contexers,I get the impression that cals tables need to be processed separately from the main docbook file.Instead of and , etc. the tags are changed into , , etc.I first tried to process the file x-cals-test.tex pointed to by Hans.This file loads two other files\starttext\xmlloaddirectives{x-cals-test.cdx}\xmlprocess{main}{x-cals-test.xml}{}\stoptextHowever, the file x-cals-test.xml is not valid.Therefore I took one of the simple cals tables from within that file, making sure it contains one of the cdx attributes (cdx="vertical") and saved it in x-cals-test2.xml. My xml software says that the file is valid, and it opens normally.The file are processed now, but the table is not typeset.Instead there is an error message printed in the pdf file: invalid xml file - parsed text.The log file says: lxml : no directives found in 'x-cals-test.cdx' (more log information further)It seems that the directives are not processed. x-cals-test2.xml Description: XML document Regards,Robertsystems : begin file cals-test.tex at line 50lxml : no directives found in 'x-cals-test.cdx'systems : end file cals-test.tex at line 53 )mkiv lua stats : used config file - /prog2/context/tex/texmf/web2c/texmfcnf.luamkiv lua stats : used cache path - /prog2/context/tex/texmf-cache/luatex-cache/context/b37116f3b39a5afbaa249111be7bfbbamkiv lua stats : input load time - 0.008 secondsmkiv lua stats : stored bytecode data - 261 modules, 56 tables, 317 chunksmkiv lua stats : loaded tex modules - 1 requested, 1 found (*-cals), 0 missingmkiv lua stats : cleaned up reserved nodes - 30 nodes, 9 lists of 411mkiv lua stats : node memory usage - 18 glue_specmkiv lua stats : node list callback tasks - 6 unique task lists, 1 instances (re)created, 397 callsmkiv lua stats : used backend - pdf (backend for directly generating pdf output)mkiv lua stats : result saved in file - cals-test.pdfmkiv lua stats : fonts load time - 0.197 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.65.0-2010121316mkiv lua stats : control sequences - 29719 of 165536mkiv lua stats : current memory usage - 41 MB (ctx: 42 MB)Op 9 mrt 2011, om 14:30 heeft Hans Hagen het volgende geschreven:On 8-3-2011 9:00, R. Ermers wrote:Dear ConTeXers,I still have not been able to find out how to proceed with my docbook xml document, which contains a number of cals tables.The cals module is loaded by means of \usemodule[cals].How to proceed from here?Any clue is appreciated!x-cals-test.*in the test suite- 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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : 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 ___