Re: [NTG-context] \setuphead and testpage
On 13-7-2012 10:02, Wolfgang Schuster wrote: Hi Hans, can you add a testpage option to \setuphead? %\setuphead[section][testpage=4] \setuphead[section][before={\testpage[4]\blank[2*big]}] \starttext \section{First} \dorecurse{36}{Line \recurselevel\par} \section{Second} \dorecurse{36}{Line \recurselevel\par} \stoptext Are we sure about that key? (a conditional page entry is also an option, like page=lines:4 or so 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] PDF Preview Image
On 12-7-2012 04:22, Kip Warner wrote: Hey list, Many different desktop environments display the first page of a PDF as the file's "thumbnail" image. Is there any way to customize what is used as the preview image for a PDF with ConTeXt? Or is it typesetting environment agnostic and the thumbnailers always look for the first page? in theory yes but in practice no \starttext % quick and dirty test: \setobject{test}{1}\hbox{\externalfigure[mill.png]} % gets object 15 \startluacode lpdf.addtopageattributes("Thumb",lpdf.reference(15)) \stopluacode \input tufte \getobject{test}{1} \stoptext no viewer seems to do something with it - 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] \seeindex and processors
Dear Hans & Wolfgang, Thanks for looking into this. I know that this has quite low priority. As it seems to me processors do not really seem to provide the behaviour I had in mind. Clearly, I should have thought of a better example in the first place: % \defineprocessor[smallcaps][style=\sc] \starttext % this works nicely {\sc Test}\index{smallcaps->Test} % this is what I want it to look like % (which does not work for \seeindex[.]) \index{{\sc Cauchy}||Problem} % this is what I tried after you have suggested % to use processors, but it does not work (*) {\sc Cauchy}||Problem\index{{smallcaps->Cauchy}||Problem} \placeindex[n=1] \stoptext % (*) As you can see I am using smallcaps as an indicator for a "personal name". From looking at the code (I have to admit that I do not know anything about what's beyond the context front end) I think there's no quick solution to get this to work with preprocessors. Am I doing something wrong? If you do not have the time to look into this right now never mind. Sorry for the hassle. Cheers, Andreas Am Jul 13, 2012 um 7:23 PM schrieb Hans Hagen: > On 13-7-2012 09:57, Wolfgang Schuster wrote: >> Hi Hans, >> >> processors aren’t applied to the second argument of \seeindex, only the >> first is formatted. >> >> \defineprocessor[smallcaps][style=\sc] >> >> \starttext >> >> Apples\index{smallcaps->Apple} >> >> Malus domestica\seeindex{smallcaps->Malus domestica}{smallcaps->Apple} >> >> \placeindex[n=1] >> >> \stoptext > > ok, so the next beta will have > > \setupinteraction[state=start] > > \defineprocessor[smallcaps][style=\sc] > \defineprocessor[bold] [style=\bf] > > \starttext > > Apples\index{smallcaps->Apple} > Pears\index{Pears} > > Malus domestica\seeindex{smallcaps->Malus domestica}{bold->Apple} > > Bonus domestica\seeindex{Bonus domestica}{Pears} > > \placeindex[n=1] > > \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 > ___ -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupcaptions
On 11-7-2012 22:29, Wolfgang Schuster wrote: Having a list as argument for the style key is interesting and you have my vote for this but it would be more complex and slower than the current mechanism. indeed too much of a slowdown 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] \seeindex and processors
On 13-7-2012 09:57, Wolfgang Schuster wrote: Hi Hans, processors aren’t applied to the second argument of \seeindex, only the first is formatted. \defineprocessor[smallcaps][style=\sc] \starttext Apples\index{smallcaps->Apple} Malus domestica\seeindex{smallcaps->Malus domestica}{smallcaps->Apple} \placeindex[n=1] \stoptext ok, so the next beta will have \setupinteraction[state=start] \defineprocessor[smallcaps][style=\sc] \defineprocessor[bold] [style=\bf] \starttext Apples\index{smallcaps->Apple} Pears\index{Pears} Malus domestica\seeindex{smallcaps->Malus domestica}{bold->Apple} Bonus domestica\seeindex{Bonus domestica}{Pears} \placeindex[n=1] \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 ___
Re: [NTG-context] Broken Nightly (2012.07.10)
On Fri, 2012-07-13 at 09:49 +0200, luigi scarso wrote: > and with rsync > rsync -avz rsync://contextgarden.net/standalone/current/context/test . Thanks Luigi. I actually do test every new nightly and have been for several months now. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] Broken Nightly (2012.07.10)
On Fri, 2012-07-13 at 09:16 +0200, Alan BRASLAU wrote: > The subject of this ongoing string is not very informative > and indeed slightly unpleasant considering the efforts that > many contributors make towards the development of ConTeXt. > > The present message is not intended to start any sort of debate; > it only represents a reaction to a latent feeling that I have > for some time now... > > Alan Hey Alan. I'm not sure what you mean. If you thought my post came off poorly, I think you misunderstood. I wasn't criticizing anyone. I was just pointing out that a recent nightly was broken. That happens all the time - including with my own projects. It isn't personal. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] seeindex: accents and such
Am 11.07.2012 um 22:37 schrieb Andreas Mang: > Hi Wolfgang, > > Thanks. That's truly an option. I have already looked into this and it works. > As a matter of fact, this is what I decided to do if there is no quick fix. > However, I thought I'd point it out, since it works for \index and just not > for \seeindex. Secondly, the \sc (command) issue persists. MkIV provides a new mechanism to format index entries called processors, it doesn't work yet with \seeindex (see my other mail on the list) but I guess Hans will fix this in one of the next betas. \defineprocessor[sc][style=\sc] \starttext Test\index{Test}\index{sc->Testing} \completeindex \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 ___
[NTG-context] \setuphead and testpage
Hi Hans, can you add a testpage option to \setuphead? %\setuphead[section][testpage=4] \setuphead[section][before={\testpage[4]\blank[2*big]}] \starttext \section{First} \dorecurse{36}{Line \recurselevel\par} \section{Second} \dorecurse{36}{Line \recurselevel\par} \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 ___
[NTG-context] \seeindex and processors
Hi Hans, processors aren’t applied to the second argument of \seeindex, only the first is formatted. \defineprocessor[smallcaps][style=\sc] \starttext Apples\index{smallcaps->Apple} Malus domestica\seeindex{smallcaps->Malus domestica}{smallcaps->Apple} \placeindex[n=1] \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] Broken Nightly (2012.07.10)
On Fri, Jul 13, 2012 at 9:42 AM, Hans Hagen wrote: > On 13-7-2012 00:09, Kip Warner wrote: > > This is just a piece of advice from one programmer to another, but it >> might be useful if you use some kind of unit testing framework with >> ConTeXt since most of the nightlies it seems are usually broken for >> somebody. You just need some test cases, e.g. people's documents that >> draw on as many features as possible. >> > > feel free to do the testing .. (there is an achive with test files but i > have no time to run/check it each time) > > http://standalone.contextgarden.net/current/context/test/ and with rsync rsync -avz rsync://contextgarden.net/standalone/current/context/test . -- luigi ___ 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] Bibliographycal style in spanish
Hi Manuel, Not quite sure if there's a simpler way, but what I've done in order to create my "own" style is to copy and paste one of the style files in PATH TO CONTEXT FOLDER/tex/texmf-context/tex/context/bib/ to my local folder (bibl-SOMENAME.tex) and edit it accordingly. I found this quite intuitive and it gave me full control on the look of my bibliography. What you'd have to do is change in \setupcite the entry in the field "andtext" to "y". You'd also have to change \c!lastnamesep={ y }, \c!finalnamesep={ y }, in \setuppublicationlist. At least that's how it worked for me. You'd also have to tell setuppublications in your preamble to look for the bibl-SOMENAME.tex file: "alternative=SOMENAME". There might be an easier way, but - as I said - you get full control of the look of your bib. Hope this helps. Cheers, Andreas Am Jul 13, 2012 um 9:22 AM schrieb MANUEL GONZALEZ SUAREZ: > Hello again. > This message is to thank Wolfgang for his response on interactive documents > that has worked very well. I would now like to put another small question. I > prepared a document with a bibliography at the end. To do this I use the > modules \usemodule[bib] and \usemodule [bibltx], but since the bibliography > is in Spanish, when two or more authors appear, I would replace "and" by "y". > With the format ap-fr appears "et", but there is not a *apa-is. HowI can do? > Thanks again. > > > -- > Manuel González Suárez > ___ > 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 > ___ -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Broken Nightly (2012.07.10)
On 13-7-2012 00:09, Kip Warner wrote: This is just a piece of advice from one programmer to another, but it might be useful if you use some kind of unit testing framework with ConTeXt since most of the nightlies it seems are usually broken for somebody. You just need some test cases, e.g. people's documents that draw on as many features as possible. feel free to do the testing .. (there is an achive with test files but i have no time to run/check it each time) concerning 'broken' ... that's what you have with betas ... most recent changes concern reshuffling code, better namespace protection, cleanup and speedup, etc, all part of the mkii -> mkiv move the problem reported by you (as wolfgang already pointed out) relates to the fact that (from now on) such commands have to be defined unexpandable (due to a different way of checking them) .. also, some of these 'command' options will be (or are already) replaced by setups 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] Broken Nightly (2012.07.10)
Am 13.07.2012 um 00:09 schrieb Kip Warner: > Hey Hans, Wolfgang, et al, > > The nightly for 2012.07.10 appears to be broken. When attempting to > compile my book, I get the following. Use \define[2]\PlaceSection {…} or \unexpanded\def\PlaceSection#1#2% {…} in your environment file. 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 ___
[NTG-context] Bibliographycal style in spanish
Hello again. This message is to thank Wolfgang for his response on interactive documents that has worked very well. I would now like to put another small question. I prepared a document with a bibliography at the end. To do this I use the modules \usemodule[bib] and \usemodule [bibltx], but since the bibliography is in Spanish, when two or more authors appear, I would replace "and" by "y". With the format ap-fr appears "et", but there is not a *apa-is. HowI can do? Thanks again. -- Manuel González Suárez ___ 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] Broken Nightly (2012.07.10)
The subject of this ongoing string is not very informative and indeed slightly unpleasant considering the efforts that many contributors make towards the development of ConTeXt. The present message is not intended to start any sort of debate; it only represents a reaction to a latent feeling that I have for some time now... 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 ___