Re: [NTG-context] Lilypond module
On Wed, Aug 6, 2008 at 8:51 PM, Olivier Guéry [EMAIL PROTECTED] wrote: Post the log file and the terminal messages. So, you can find the log file join to this mail, and here is the terminal output : No idea, what do you get with MkII or just lilypond on the command line without any TeX. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] release
On Wed, Aug 06, 2008 at 09:51:13PM +0200, Hans Hagen wrote: Hi, We have a new release (unless severe problems show up, this release will stay for a while). I think there are some regression in Arabic support, the attached example gives intermingled Arabic in several places. I'm not sure when this exactly happened, but a PDF that was generated with ConTeXt - 2008.06.28 and luaTeX-0.27.0 is fine. Regards, Khaled -- Khaled Hosny Arabic localizer and member of Arabeyes.org team signature.asc Description: Digital signature ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OS X TeX] Default rule thickness
The rule is between 0.4pt and 0.5pt \starttext \dontleavehmode \scale[factor=200]{$1 \over 2$} \scale[factor=200]{$1 \above .47pt 2$} \stoptext Lovely! This applies to ConTeXt's default font size of 12pt, doesn't it? Hence we would have the following linear relation if the thickness is 0.4pt at 10pt font size: thickness = 0.4pt * fontsize/10pt. Judging from the following: --- \startuseMPgraphic{rule} linecap := butt; defaultrulethickness := 0.4pt*BodyFontSize/10pt; path p; p := origin--(EmWidth,0); draw p withpen pencircle scaled defaultrulethickness; \stopuseMPgraphic \starttext Lorem ipsum dolor sit amet \startformula \sum_{n=0}^\infty \frac{x^n}{n!}\!\vcenter{\useMPgraphic{rule}} \stopformula \setupbodyfont[32pt] Lorem ipsum dolor sit amet \startformula \sum_{n=0}^\infty \frac{x^n}{n!}\!\vcenter{\useMPgraphic{rule}} \stopformula \setupbodyfont[72pt] Lorem ipsum dolor sit amet \startformula \sum_{n=0}^\infty \frac{x^n}{n!}\!\vcenter{\useMPgraphic{rule}} \stopformula \stoptext --- this seems to be true in general. (Hans, Taco, can you confirm this officially?) Could one perhaps pass DefaultRuleThickness on to MetaFun just as the variables BodyFontSize, ExHeight etc. are made available? Best, Oliver ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mtxrun:1741: attempt to index a nil value
For I had some problems with my installation I tried to start from scratch. But I'm stuck with an error in mtxrun: Welcome to Darwin! user$ cd /usr/local/ConTeXt/ /usr/local/ConTeXt user$ rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . first-setup.sh sent 115 bytes received 1757 bytes 1248.00 bytes/sec total size is 1638 speedup is 0.88 /usr/local/ConTeXt user$ ./first-setup.sh receiving file list ... done bin/ bin/mtx-update-old.lua bin/mtx-update.lua bin/mtxrun bin/texlua sent 186 bytes received 6127742 bytes 331239.35 bytes/sec total size is 6126659 speedup is 1.00 MtxRun | version 1.1.0 - 2007+ - PRAGMA ADE / CONTEXT MtxRun | variable SELFAUTOLOC set to /usr/local/ConTeXt/bin MtxRun | variable SELFAUTODIR set to /usr/local/ConTeXt MtxRun | variable SELFAUTOPARENT set to /usr/local MtxRun | variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c} MtxRun | no cnf files found (TEXMFCNF may not be set/known) MtxRun | using script: bin/mtx-update.lua state | loaded update | start /usr/local/ConTeXt/bin/mtxrun:1741: attempt to index a nil value And that's it. Line 1741 of mtxrun contains a popen command to execute a system command; but even if I change that (e.g. printing the accessed variable before), the error stays at that line, so the message is probably wrong. Please help? Greetlings, Hraban ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using module:bib
What is wrong with my attempt to create a bibliography and a reference to it? (...) What does 'k=1' does? It defines the key for crossreferencing via \cite. Interesting, I was using 'n' when I should actually use 'k'. Is there a limit on that key? Can I use, for instance, a random 128 bits number? Maurício ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] release
Hans Hagen pragma at wxs.nl writes: Hi, We have a new release (unless severe problems show up, this release will stay for a while). If possible, the next release (oktober) will have an alternative vertical spacing (mkiv only) and a reimplmented sectioning/list/numbering mechanism (mkiv only). There are also new zips of mininmals and cdwincontext. These now match the minimals on the garden. Of course you're strongly advised to use the garden. Of course there will be the usual lot of betas. Hans Hi, How do I update the minimals on a Linux box? (If this is of any use) I've installed it in ~/context-installation-directory $ ls bin first.textex first-setup.sh status-of-update.lua Mohamed ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] release
Sorry, here is the file. On Thu, Aug 07, 2008 at 03:55:33PM +0300, Khaled Hosny wrote: On Wed, Aug 06, 2008 at 09:51:13PM +0200, Hans Hagen wrote: Hi, We have a new release (unless severe problems show up, this release will stay for a while). I think there are some regression in Arabic support, the attached example gives intermingled Arabic in several places. I'm not sure when this exactly happened, but a PDF that was generated with ConTeXt - 2008.06.28 and luaTeX-0.27.0 is fine. Regards, Khaled -- Khaled Hosny Arabic localizer and member of Arabeyes.org team -- Khaled Hosny Arabic localizer and member of Arabeyes.org team % engine=luatex \mainlanguage[ar] % Font \definefontfeature [arabic] [mode=node,language=dflt,script=arab, init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,clig=yes, mark=yes,mkmk=yes,kern=yes,curs=yes] \starttypescript [serif] [arabic] \definefontsynonym [Arabic-Light] [name:arabtype] [features=arabic] \definefontsynonym [Arabic-Bold][name:arabtype] [features=arabic] \definefontsynonym [Arabic-Italic] [name:arabtype] [features=arabic] \definefontsynonym [Arabic-Bold-Italic] [name:arabtype] [features=arabic] \stoptypescript \starttypescript [serif] [arabic] [name] \usetypescript[serif][fallback] \definefontsynonym [Serif] [Arabic-Light] [features=arabic] \definefontsynonym [SerifItalic] [Arabic-Italic] [features=arabic] \definefontsynonym [SerifBold] [Arabic-Bold][features=arabic] \definefontsynonym [SerifBoldItalic] [Arabic-Bold-Italic] [features=arabic] \stoptypescript \starttypescript [Arabic] \definetypeface [Arabic] [rm] [serif] [arabic] [default] \stoptypescript \def\ArabicGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT} \def\ArabicParDir{\textdir TRT\pardir TRT} \def\ArabicTextDir {\textdir TRT} \def\LatinParDir {\textdir TLT\pardir TLT} \def\LatinTextDir{\textdir TLT} \def\LatinGlobalDir {\pagedir TLT\bodydir TLT\pardir TLT\textdir TLT} \definestartstop [arabicpar] [commands=\Arabic\ArabicParDir] \define[1]\AR {{\Arabic\ArabicTextDir#1}} \define\setArabic {\ArabicGlobalDir% \usetypescript[Arabic]% \setupbodyfont[Arabic,20pt]} \definestartstop [latinpar] [commands=\Arabic\LatinParDir] \define[1]\LT {{\LatinTextDir#1}} \define\setLatin {\LatinGlobalDir% \usetypescript[lm]% \setupbodyfont[lm,20pt]} \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark] \setupinteraction [state=start, title={كيف تكتب عربي مع كُنْتِكِسْت}, author={خالد حسني}, subtitle={صف الحروف حاسوبيا مع تخ وكنتكست}, keyword={عربي تخ كنتكست صف محارف طباعة}] \starttext \setArabic \startstandardmakeup \midaligned{كيف تكتب عربي في كُنْتِكِسْت} \midaligned{كتبه} \midaligned{خالد حسني} \stopstandardmakeup \completecontent \chapter{مقدمة} كُنْتِكِسْت \LT{(\CONTEXT)} هو حزمة ماكرو لنظام تخ \LT{(\TeX)} لصف المحارف. \chapter{أول فصل} \section[firstsection]{أول باب} ... كلام ... \section{ثاني باب} ... كلام\index{فهرس آخر} ... \subsection{ثاني مسألة} ... كلام ... \section{ثالث باب} ... كلام ... \chapter{فصل آخر} ... كلام ... \chapter[lastchapter]{آخر فصل} ... كلام ... \completeindex \stoptext signature.asc Description: Digital signature ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Thank you for the Chinese support, but still one question.
Yue Wang wrote: Hi, Hans: Today I am trying to compile my new book chapter on aerosol science using MKIV. It works great! Thank you. Most commands are successful (rm, ss, mono) after I define a typescript for the Chinese font. commands like \bfa also works. However, basic TeX commands like \bf, \it, don't work. I attach a minimal example in the mail. Is there anything wrong in the document? Thank you. there was a bug as well as the fact that your definition is wrong % engine=luatex \ctxlua{fonts.collections.trace = true} \definefontfeature[zh][mode=node,script=hang,lang=zhs] \starttypescript [serif] [zhfont] \definefontsynonym [zhserif] [AdobeSongStd-Light] [features=zh] \definefontsynonym [zhserifbold] [AdobeHeitiStd-Regular] [features=zh] \definefontfallback[serifwhatever][lmroman10-regular] [0x-0x0400] [force=yes] \definefontfallback[serifboldwhatever][lmroman10-bold] [0x-0x0400] [force=yes] \stoptypescript \starttypescript [serif] [zhfont] [name] \definefontsynonym[Serif][zhserif][fallbacks=serifwhatever] \definefontsynonym[SerifBold][zhserifbold][fallbacks=serifboldwhatever] \stoptypescript \starttypescript[myfont] \definetypeface[myfont][rm][serif][zhfont] \stoptypescript \usetypescript[myfont] \setupbodyfont[myfont, rm, 12pt] \starttext A 字体测试。 {\bf A 字体测试。{\tfx A 字体测试。 \bfx A 字体测试。} } \stoptext works with the beta (i uploaded a new version) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Custom Section / Table of contents inside a table
Hi folks, I'm making a document with a lot of tables. I have templates for all the kinds of tables, so authors only have to use the predefined macros to fill the tables. That is working pretty well, but I still have two little problems. The first one, is that some of the author filled fields in the tables should be part of the content table of the document, but in the filled table itself, they should still look as normal text. To do so, I have defined my own section, this way: \definehead[fieldNameSection][subsection] \setuphead[fieldNameSection][number=no, textstyle=\tfe] And made a table of contents: \definecombinedlist[content][fieldNameSection,myheader,subsection,subsubsection][textstyle=\tf] \setupcombinedlist [content][alternative=c,textstyle=\tf] So if I do: \fieldNameSection{Some Title} And then: \placecontent It works well and shows the entry in the table of contents. But when I do it inside the table macro definition, and then use the macro: \def\bCrudCampo{ \doifnothing{\getvariable{CrudCampo}{CrudCampo}} {\section{Descripción de Campos}} \setvariables[CrudCampo][CrudCampo=FLG] \bgroup \def\bNombreCampoGUI##1\eNombreCampoGUI{ \setvariables[CrudCampo][NombreCampoGUIVAL={##1}] \setvariables[CrudCampo][NombreCampoGUIFLG=FLG] } } \def\eCrudCampo{ \def\keyNombreCampoGUI{Nombre del Campo (GUI):} \setupTABLE[c][1][width=0.2\textwidth] \setupTABLE[c][2][width=0.8\textwidth] \bTABLE[frame=on] \bTR \bTD {\bf \keyNombreCampoGUI} \eTD \bTD % COMENTED -- % \doifelsenothing{\getvariable{CrudCampo}{NombreCampoGUIFLG}} % {\EMPTY}{\getvariable{CrudCampo}{NombreCampoGUIVAL}} % COMENTED -- \fieldNameSection{*\getvalue{CrudCampo:NombreCampoGUIVAL}*} \eTD \eTR \eTABLE \vskip2mm \egroup } So when I use the \fieldNameSection{*\getvalue{CrudCampo:NombreCampoGUIVAL}*} in the previous code I get nothing but an empty entry in the table of contents (well in fact with the * before and after I get just **). The entry is shown in the TOC, but I don't see the text, only the dots and the page number. It's like at some point the variable is empty at the moment of generating the table of contents or something like that. I really have not a clue about what I'm doing wrong... The second issue is that the previous commented code: \doifelsenothing{\getvariable{CrudCampo}{NombreCampoGUIFLG}} {\EMPTY}{\getvariable{CrudCampo}{NombreCampoGUIVAL}} Is the best way I've found so far to show an EMPTY in one of the table fields when the author forgets to fill a row when using the template. I've tried a lot of combinations of \setvariable, \setvalue, and several \doifSOMETHING, but at this point it only works if the author omits the \bNombreCampoGUI \eNombreCampoGUI pair, but if he puts the commands, but left the content empty, then I don't get EMPTY as result in the table and only got an empty string (nothing) and I would like to have the EMPTY in both cases. Also I don't like to use the variable NombreCampoGUIFLG, I think it's just a dirty trick, but is the only solution I found so far. Is there a better way to do the empty test there to achieve the desired behavior? Thanks in advance, for any opinion, suggestion, critics or help :-) Best Regards, Demián. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] release and MacTeX
On 7 août 08, at 10:52, Hans Hagen wrote: […] when did you last update? was that successful? afaik nothing changed in the 'normal' zips that should affect an update but keep in mind that the minimals (zips) have now the structure of the minimals at the garden Hans Hi again Hans, It is not possible to update to the latest release with sudo ctxtools --updatecontext. In order to inform other Mac users, and possibly prevent them to update, I am reporting my (bad) experience: DO NOT UPDATE UNLESS YOU KNOW WHAT IS GOING ON… Indeed something has changed in the structure of the new tree, or in the scripts, and obviously maybe both, so if you are not aware, don't update! And now my experience: yesterday I tried to update and then I got the message FatalError : Your format does not match the base files! expalining me why ConTeXt could not typeset my files. After trying (without success…) to install the minimals from the Garden, I had to install anew my whole TeX tree with TeXMac (which installs TeXLive 2007). However the ConTeXt present on MacTeX dates back to 2007.01.12, so in order to have a more recent version, I downloaded manually from http://foundry.supelec.fr/frs/?group_id=14release_id=313 the file cont-tmf-20080521.zip copied it into (using sudo) /usr/local/texlive/texmf-local and then unzipped it there. Finally I did sudo texmfstart texexec --make --all --pdftex after which I have a ConTeXt mkii ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2008.8.7 int: english/english which is not the latest, but it works fine… Best reards: OK ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mtxrun:1741: attempt to index a nil value
Henning Hraban Ramm wrote: Line 1741 of mtxrun contains a popen command to execute a system command; but even if I change that (e.g. printing the accessed variable before), the error stays at that line, so the message is probably wrong. what mtxrun do you run ... you need to copy the file mtxrun.lua in the scripth path to mtxrun in the bin path - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] release and MacTeX
Otared Kavian wrote: FatalError : Your format does not match the base files! expalining me why ConTeXt could not typeset my files. After trying (without success…) to install the minimals from the Garden, I had to install anew my whole TeX tree with TeXMac (which installs TeXLive 2007). this normally means that you need to run texexec --make Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mtxrun:1741: attempt to index a nil value
Am 2008-08-08 um 23:38 schrieb Hans Hagen: Henning Hraban Ramm wrote: Line 1741 of mtxrun contains a popen command to execute a system command; but even if I change that (e.g. printing the accessed variable before), the error stays at that line, so the message is probably wrong. what mtxrun do you run ... you need to copy the file mtxrun.lua in the scripth path to mtxrun in the bin path I copied the complete shell session to the previous mail: I.e. I get first-setup via rsync from the garden and run it; it fetches the bin dir and runs mtxrun from there, and that already fails. This error occurrs at work on a Mac G5 (PPC) running OSX 10.4; ConTeXt is installed in /usr/local/ConTeXt. At home, on a Mac mini (Intel) running OSX 10.5, it works; here ConTeXt is installed in ~/Library/texmf. Both installations use the garden way. On monday I'll check whether there's another mtxrun.lua somewhere on the system - but the path configuration is correct. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Two bibliography problems
This sort of bibliography entry gives me two kinds of trouble. @book{ODonovan:1999uv, Address = {Grand Rapids, Michigan}, Author = {O'Donovan, Joan Lockwood and O'Donovan, Oliver}, Publisher = {William B. Eerdmans}, Title = {From Irenaeus to Grotius: a sourcebook in Christian political thought, 100-1625}, Year = {1999}} (1) I get two periods after a book title when using \setuppublications [alternative=apa]. For this particular entry, here is what I get. O'Donovan, J. L. and O'Donovan, O. (1999). From Irenaeus to Grotius: a sourcebook in Christian political thought, 100-1625.. Grand Rapids, Michigan: William B. Eerdmans. This happens with all books. On looking at the source, I'm afraid I can't track down where it's coming from or how to fix it. (2) Is it possible to use smart quotes in citations? For instance, for this book, authored by O'Donovan, I can enter the appropriately curly character between O and D in my bibtex file. But it comes out straight in the final document. Thanks! Michael___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___