Re: [NTG-context] Printed ConTeXt documentaton
There are no books on Context. - This does not mean that there is unsufficient documentation! Please have a look at the showcase on the Pragma-site: http://www.pragma-ade.com/showcase.pdf Kind regards Willi Geoffrey Alan Washburn wrote: Are there any books on ConTeXt? Or is all available documentation in electronic form? Thanks. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] listoffloats question
Willi Egger schrieb: Hi, with Context 2006.08.08 there is no problem with the figure-numbering. In order to get your figure lists typeset: \conpletelistoffigures \completelistofafigures \completelistofbfigures Kind regards Willi Hello, that's right, there is no problem in getting *three* lists. But i want only *one* list, showing figures, afigures and bfigures in correct order. I think, there must be a simple solution, but i don not find it (There are three kinds of figures, because each of them has its own setups.) Regards richard -- == Richard Rascher-Friesenhausen MeVis Research GmbH Universitaetsallee 29 D-28359 Bremen als auch Hochschule Bremerhaven, Studiengang Medizintechnik An der Karlsstadt 8 27568 Bremerhaven email: [EMAIL PROTECTED], [EMAIL PROTECTED] www : http://www.mevis.de/, http://www.hs-bremerhaven.de/ fon : +49 - 421 - 218 7707 (mevis) fax : +49 - 421 - 218 4236 (mevis) == ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Numbering of figures (was listoffloats question)
Hi Hans and Taco Playing with figures and listings I detected the following: (ConTeXt ver: 2006.08.08 17:52 fmt: 2006.8.8 int: english mes: english) \mainlanguage[de] \definefloat[SMUfigur][SMUfiguren] \definefloat[BAINFfigur][BAINFfiguren] Those floats are used together with the readily available figure-float in the following structure: \part{First} \chapter \section ... \part{Second} \chapter \section ... . This structure is embedded in a project-structure. The figures are loaded from a figure-library. Now if the \completelistoffiigures, \completelistofSMUfiguren, \completelistofBAINFfiguren are issued, each list gets correctly its own incremental numbering. However if the above defined floats are defined in order to inherit from the figure-environment \definefloat[SMUfigur][SMUfiguren][figure] \definefloat[BAINFfigur][BAINFfiguren][figure] then the numbering gets confused. i.e.. the first SMUfigur, which occurs in the first part in chapter 2 gets numbered 2.0. instead of 2.15. Further numbering in the second part gets even more confusing. The first SMUfigur appears in the first chapter and gets numbered 1.-14, which should be 1.9. The next figure, which is also a SMUfigur gets numbered 1.-13 instead of 1.10. This is repeated for the third SMUfigur: 1.-12 instead of 1.11 - Puzzling is the - sign.and the reverse order of the number. Could one of you please have a look at this? Thanks Willi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to display JavaScript's values in ConTeXt
Zhichu Chen wrote: Hello everybody, I want to add a clock which shows the system time to a pdf file. And I have read the ``art-calc.pdf'' and ``mwidget-p.pdf'' to find some approaches but failed shamely. I am indeed new at ConTeXt and JavaScript. Before I'm shocked by ConTeXt, I used LaTeX for about 2 years, so I'm confused with the conventions between ConTeXt and LaTeX. My code is here: I don't have the time right now for more than this short tip. If you work with JavaScript you should open the JaveScript Debugger (CTRL-J in Acrobat; in the Adobe Reader hit CTRL-K and check Show console on errors and messages in the JavaScript categorie) to see the warnings and error messages. You also should insert some log messages in your code. For example console.println(do_digit(+d+) at page +[this.pageNum]); at the start of your function do_digit. This helps a lot to see what is going on. Greetings, Peter -- \setupinteraction[state=start] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,frame=off] \setupbuttons [background=infobutton] \starttext Click \button{7}[JS(digit{7})] will get \field[Stack.1] \stoptext I only copied these codes from art-calc.pdf so there must be some other critical concepts that I haven't realized. Please point them to me. Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] listoffloats question
Aha, this was misunderstood here. But please refer to my other post concerning this. I run into another problem Willi richard rascher-friesenhausen wrote: Willi Egger schrieb: Hi, with Context 2006.08.08 there is no problem with the figure-numbering. In order to get your figure lists typeset: \conpletelistoffigures \completelistofafigures \completelistofbfigures Kind regards Willi Hello, that's right, there is no problem in getting *three* lists. But i want only *one* list, showing figures, afigures and bfigures in correct order. I think, there must be a simple solution, but i don not find it (There are three kinds of figures, because each of them has its own setups.) Regards richard ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] common counter
Hallo! I'll try asking my question a little bit different: With \setupnumber[formula] [number=davidsnumber] the origin formulanumber(what is its name?) will be overwritten and replaced by davidsnumber. But with \setupnumber[figure] [number=davidsnumber] the origin figurenumbering remains untouched and davidsnumber gets an additionl counter. So there are the following questions: - Why is this different behaviour? - How can I replace the figurecounter by davidsnumber such, that captions and figuretables will use this new counter? - Are the origin formula/figure-counters compatible with counters defined by \definenumber? Or are they other animals? Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt ver: 2006.08.31 19:37 MK II
This doesn't look like a problem with the latest ConTeXt, but like a general TeX error: it cannot find the truetype file. Have you accidentally deleted/moved it? Does TeX see it: kpsewhich Oxoniensis.ttf returns /home/thomas/texmf/fonts/truetype/greek/Oxoniensis.ttf on my linux box. Thomas On Sep 4, 2006, at 6:03 PM, Alan Bowen wrote: Here is how much of TeX's memory you used: 4881 strings out of 57802 104260 string characters out of 542422 4644045 words of memory out of 6070337 43852 multiletter control sequences out of 1+5 247397 words of font info for 143 fonts, out of 200 for 2000 332 hyphenation exceptions out of 5000 68i,23n,96p,1819b,1269s stack positions out of 5000i,500n,6000p, 20b,4s PDF statistics: 145 PDF objects out of 30 30 named destinations out of 131072 5633 words of extra memory for PDF output out of 1 {/Users/acbowen/Library/texmf/fonts/enc/dvips/base/greek/oxonagr.enc} Error: pdfetex (file Oxoniensis.ttf): cannot open TrueType font file for readin g == Fatal error occurred, the output PDF file is not finished! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Typesetting Math
On Tue, 5 Sep 2006, Pepe Barbe wrote: I am curious about what does everyone around here uses for typesetting Math? Context, of course ;) Currently I know more LaTeX than anything else for that, but from what I gather to use ConTeXt in full extent I should typeset things directly in TeX or use MathML. Not any more. Context has full blown support for most math constructs. So far I've been some LaTeX-like stuff and it was worked fine, but know I want to do more complet layouts that would involve LaTeX style arrays to align equations in several lines. Context can do many complicated alignments. Right now Context has features equivalent to following latex environments equation, align, gather, alignat, falignat, array, cases, intertext, substack, matrix, pmatrix, bmatrix, vmatrix, Vmatrix, all sorts of arrows, it has partial support for aligned, gathered, it has experimental support for subformulas, tagging, breaking formulas across pages (Context's native way of doing subformulas is a bit different from latex's. Search the ML archives for something that works like latex's subformulas. Breaking formulas across pages is a bit tricky, since it is not clear what is the right place for a pagebreak in a display. Right now, Context can either do no break at all, or break at any line.) it has no support for smallmatrix, multiline, many small amstex enhancements. Most of the amstex enhancements are simple, and it is easy to add support for them. Right now, support is based on user requests, so if you want something equivalent to latex's xyz, explain what it does, and context will have that feature. What more can you ask for? For a bit of documentation have a look at http://dl.contextgarden.net/myway/mathalign.pdf and http://dl.contextgarden.net/myway/matharrows.pdf There is also some explaination at http://wiki.contextgarden.net/Math_structures So, what would you guys would recommend? Start using context math. The syntax is a bit different from the way latex does things, but as in other things with context, the syntax makes configuration really easy. If you find that a certain feature is missing, ask on the mailing list. Hans and Taco have been very generous in adding new features on user requests. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Printed ConTeXt documentaton
Willi Egger wrote: There are no books on Context. - This does not mean that there is unsufficient documentation! Please have a look at the showcase on the Pragma-site: http://www.pragma-ade.com/showcase.pdf Yes, I've seen the rather impressive array of documentation available there, but I have a bit of a soft spot for being able to reach for a book. However, this is easily solved -- I just wanted to make sure there wasn't something better than printing and binding my own copies of the documentation available electronically. Thanks! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt ver: 2006.08.31 19:37 MK II
Thanks, Thomas. Somehow, within the last week or so, all the .ttf files immediately in my fonts/truetype/greek directory disappeared. I restored them from a backup and all is now well. AlanOn Sep 5, 2006, at 6:15 AM, Thomas A. Schmitz wrote:This doesn't look like a problem with the latest ConTeXt, but like a general TeX error: it cannot find the truetype file. Have you accidentally deleted/moved it? Does TeX see it:kpsewhich Oxoniensis.ttfreturns/home/thomas/texmf/fonts/truetype/greek/Oxoniensis.ttfon my linux box.ThomasOn Sep 4, 2006, at 6:03 PM, Alan Bowen wrote: Here is how much of TeX's memory you used:4881 strings out of 57802104260 string characters out of 5424224644045 words of memory out of 607033743852 multiletter control sequences out of 1+5247397 words of font info for 143 fonts, out of 200 for 2000332 hyphenation exceptions out of 500068i,23n,96p,1819b,1269s stack positions out of 5000i,500n,6000p,20b,4sPDF statistics:145 PDF objects out of 3030 named destinations out of 1310725633 words of extra memory for PDF output out of 1{/Users/acbowen/Library/texmf/fonts/enc/dvips/base/greek/oxonagr.enc}Error: pdfetex (file Oxoniensis.ttf): cannot open TrueType font filefor reading== Fatal error occurred, the output PDF file is not finished! ___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Typesetting Math
On 9/5/06, Aditya Mahajan [EMAIL PROTECTED] wrote: For a bit of documentation have a look at Thanks! I got what I needed (For now :-) in those links. One thing that doesn't work for me is displaying cases in display. I was using the following: \definemathcases[displaycases][style=\displaystyle] But nothing has worked actually. Currently I am using ConTeXt stable could this be the problem? See my versions below. Thanks, Pepe TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD TeXExec | TeXUtil | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD TeXExec | TeXExec | testing interface en TeXExec | pdfeTeX Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) TeXExec | ConTeXt ver: 2006.08.08 21:51 fmt: 2006.8.29 int: english mes: english TeXExec | TeXExec | testing interface nl TeXExec | pdfeTeX Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) TeXExec | ConTeXt ver: 2006.08.08 21:51 fmt: 2006.8.29 int: dutch mes: dutch TeXExec | TeXExec | testing interface en TeXExec | pdfeTeX Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) TeXExec | ConTeXt ver: 2006.08.08 21:51 fmt: 2006.8.29 int: english mes: english TeXExec | TeXExec | testing interface nl TeXExec | pdfeTeX Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) TeXExec | ConTeXt ver: 2006.08.08 21:51 fmt: 2006.8.29 int: dutch mes: dutch ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] multiple bibliographies
Dear all (and esp. Taco), in March 2005, there was a discussion about having multiple bibliographies in one document, very much like with the LaTeX package chapterbib. I may be missing something obvious, but I'm wondering whether this is now possible with Taco's module. Maybe a bit of background, and please tell me if you think this is a stupid idea: every term, I have to prepare lists of references for my several classes, and there usually is a lot of repetition and overlap. So I'm dreaming of having one big bibtex database and producing the lists via assorted \nocite commands. But i usually split up these bibliographies into several sections, and I want all items numbered in sequence, so I have in my source: \section{One} \nocite[myfirst] \nocite[mysecond] \placepublications \section{Two} \nocite[mythird] \nocite[myfourth] \placepublications to get this output: A. One [1] myfirst publication [2] mysecond publication B. Two [3] mythird publication [4] myfourth publication Is this reasonable? feasible? Or should I just use the old approach and copy/paste the same references into \itemize lists? Help and opinions appreciated! Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Typesetting Math
On 9/5/06, Pepe Barbe [EMAIL PROTECTED] wrote: One thing that doesn't work for me is displaying cases in display. I was using the following: \definemathcases[displaycases][style=\displaystyle] Nevermind ... it works :-/ Pepe ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to display JavaScript's values in ConTeXt
Thank you very much Peter. I've inserted these code and when I open my pdf file in Acrobat Reader, it crashed :(. But this is not a big deal, I modified it and it's working, but it only tells me that: do_digit(7) at page 0 and the field never changes. I guess I have to specify some link between the JavaScript variant and the ConTeXt. Can you give me just one simplest example that shows JavaScript code var tempstring = Yes; in pdf file? Or you could think I'm very boring so can you just suggest some materials that I can find these techniques? From: Peter Rolf [EMAIL PROTECTED] To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Tue, 05 Sep 2006 11:42:44 +0200 Subject: Re: [NTG-context] How to display JavaScript's values in ConTeXt Zhichu Chen wrote: Hello everybody, I want to add a clock which shows the system time to a pdf file. And I have read the ``art-calc.pdf'' and ``mwidget-p.pdf'' to find some approaches but failed shamely. I am indeed new at ConTeXt and JavaScript. Before I'm shocked by ConTeXt, I used LaTeX for about 2 years, so I'm confused with the conventions between ConTeXt and LaTeX. My code is here: I don't have the time right now for more than this short tip. If you work with JavaScript you should open the JaveScript Debugger (CTRL-J in Acrobat; in the Adobe Reader hit CTRL-K and check Show console on errors and messages in the JavaScript categorie) to see the warnings and error messages. You also should insert some log messages in your code. For example console.println(do_digit(+d+) at page +[this.pageNum]); at the start of your function do_digit. This helps a lot to see what is going on. Greetings, Peter -- \setupinteraction[state=start] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,frame=off] \setupbuttons [background=infobutton] \starttext Click \button{7}[JS(digit{7})] will get \field[Stack.1] \stoptext I only copied these codes from art-calc.pdf so there must be some other critical concepts that I haven't realized. Please point them to me. Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to display JavaScript's values in ConTeXt
Thank you very much Peter. I've inserted these code and when I open my pdf file in Acrobat Reader, it crashed :(. But this is not a big deal, I modified it and it's working, but it only tells me that: do_digit(7) at page 0 and the field never changes. I guess I have to specify some link between the JavaScript variant and the ConTeXt. Can you give me just one simplest example that shows JavaScript code var tempstring = Yes; in pdf file? Or you could think I'm very boring so can you just suggest some materials that I can find these techniques? From: Peter Rolf [EMAIL PROTECTED] To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Tue, 05 Sep 2006 11:42:44 +0200 Subject: Re: [NTG-context] How to display JavaScript's values in ConTeXt Zhichu Chen wrote: Hello everybody, I want to add a clock which shows the system time to a pdf file. And I have read the ``art-calc.pdf'' and ``mwidget-p.pdf'' to find some approaches but failed shamely. I am indeed new at ConTeXt and JavaScript. Before I'm shocked by ConTeXt, I used LaTeX for about 2 years, so I'm confused with the conventions between ConTeXt and LaTeX. My code is here: I don't have the time right now for more than this short tip. If you work with JavaScript you should open the JaveScript Debugger (CTRL-J in Acrobat; in the Adobe Reader hit CTRL-K and check Show console on errors and messages in the JavaScript categorie) to see the warnings and error messages. You also should insert some log messages in your code. For example console.println(do_digit(+d+) at page +[this.pageNum]); at the start of your function do_digit. This helps a lot to see what is going on. Greetings, Peter -- \setupinteraction[state=start] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,frame=off] \setupbuttons [background=infobutton] \starttext Click \button{7}[JS(digit{7})] will get \field[Stack.1] \stoptext I only copied these codes from art-calc.pdf so there must be some other critical concepts that I haven't realized. Please point them to me. Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] multiple bibliographies
On Tue, 5 Sep 2006, Thomas A. Schmitz wrote: Dear all (and esp. Taco), Maybe a bit of background, and please tell me if you think this is a stupid idea: every term, I have to prepare lists of references for my several classes, and there usually is a lot of repetition and overlap. So I'm dreaming of having one big bibtex database and producing the lists via assorted \nocite commands. But i usually split up these bibliographies into several sections, and I want all items numbered in sequence, so I have in my source: \section{One} \nocite[myfirst] \nocite[mysecond] \placepublications \section{Two} \nocite[mythird] \nocite[myfourth] \placepublications I do not know anything about feasibility, but have a suggestion for the input syntax. How about if there is \definecitemethod[one] \definecitemethod[two] after which you can do \cite[method=one][myfirst] or \nocite[method=one][mysecond] and also \cite[method={one,two}][ref] and so on. And to obtain a list of bibliographies, do \placepublications[method=one] I am not sure whether this is same as how criteria works right now. Do you think that a syntax like this makes sense? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 2DOWN imposition gives blank pages
I've mostly understood arranging but I cannot figure out how to make 2SIDE place a blank page (page 0, to not affect the page numbering) on the left half of the first arranged sheet and carry on as normal. To illustrate, where the enclosed numbers are the unarranged numbers: p.1: | |1| p.2: |2|3| p.3: |4|5| That way each arranged sheet (p.1,2, or 3) will be a spread from the final book, plus one saves paper. Gerben Wierda (12 March 2005) asked this question on the list, but I did not see an answer so perhaps it is difficult. I looked at the code in page-imp.tex and had hopes for \ejectdummypage but my experments didn't work. Also my hopes for a cheap hack also were dashed. I tried inserting a \null\page[blank] before the \chapter{First chapter}. But with doublesided pagenumbering, the chapter starts only on an odd page, so the single blank page turns into two blank pages. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context