[NTG-context] Problem with hanging punctuation - a bug?
Dear all, I've noticed some strange behavior of hanging punctuation (protrusion). The hyphens in hyphenated words are sometimes protruded and sometimes not. I wasn't able to find out the rule, but I managed to reduce the problem to having just one paragraph that repeats several times in the document. You may notice that the last two paragraphs do not have the hyphens protruded. In my original document, I'm using Minion Pro, however, I was able to reproduce this strange behavior with Pagella as well. I'm attaching PDF showing this behavior. The contex source file is below. Please, does anyone know how to fix this strange behavior? I would like to keep the protrusion as it makes the whole document better aligned. Thank you very much. Best regards, Tomas \mainlanguage[cs] \definefontfeature[ssp-default][default][protrusion=quality,expansion=quality] \starttypescript[serif][pagella] \definefontsynonym[Pagella-Regular][file:texgyrepagella-regular] \stoptypescript \starttypescript[serif][pagella] \definefontsynonym[Serif] [Pagella-Regular] [features=ssp-default] \stoptypescript \definetypeface[ssp][rm][serif][pagella][default] \setupbodyfont[ssp,12pt] \setupalign[hanging,hz] \setuppapersize[A5][A5] \setuplayout[grid=yes] \setupindenting[small,yes] \showgrid \starttext Sankránti je jeden z~nejdůležitějších svátků. Pro lidstvo je svátkem prakticky každý den. Lidé si však ve své nevědomosti vyhradili jako svátky jen několik dnů a~ostatní jsou dny obyčejné. Mnozí slaví tento den, aniž by opravdu znali jeho význam. V~této části světa dnes lidé uctívají krávy a~býky. Býci jsou vybraně zkrášleni množstvím ozdob a~látek a~voděni po ulicích. Nazývají je gangiréddulu (posvátní býci). A~nejen to, býky a~krávy symbolicky oddávají. Osoba, která ozdobeného býka vede se nazývá gangiréddudásu. Sankránti je jeden z~nejdůležitějších svátků. Pro lidstvo je svátkem prakticky každý den. Lidé si však ve své nevědomosti vyhradili jako svátky jen několik dnů a~ostatní jsou dny obyčejné. Mnozí slaví tento den, aniž by opravdu znali jeho význam. V~této části světa dnes lidé uctívají krávy a~býky. Býci jsou vybraně zkrášleni množstvím ozdob a~látek a~voděni po ulicích. Nazývají je gangiréddulu (posvátní býci). A~nejen to, býky a~krávy symbolicky oddávají. Osoba, která ozdobeného býka vede se nazývá gangiréddudásu. Sankránti je jeden z~nejdůležitějších svátků. Pro lidstvo je svátkem prakticky každý den. Lidé si však ve své nevědomosti vyhradili jako svátky jen několik dnů a~ostatní jsou dny obyčejné. Mnozí slaví tento den, aniž by opravdu znali jeho význam. V~této části světa dnes lidé uctívají krávy a~býky. Býci jsou vybraně zkrášleni množstvím ozdob a~látek a~voděni po ulicích. Nazývají je gangiréddulu (posvátní býci). A~nejen to, býky a~krávy symbolicky oddávají. Osoba, která ozdobeného býka vede se nazývá gangiréddudásu. Sankránti je jeden z~nejdůležitějších svátků. Pro lidstvo je svátkem prakticky každý den. Lidé si však ve své nevědomosti vyhradili jako svátky jen několik dnů a~ostatní jsou dny obyčejné. Mnozí slaví tento den, aniž by opravdu znali jeho význam. V~této části světa dnes lidé uctívají krávy a~býky. Býci jsou vybraně zkrášleni množstvím ozdob a~látek a~voděni po ulicích. Nazývají je gangiréddulu (posvátní býci). A~nejen to, býky a~krávy symbolicky oddávají. Osoba, která ozdobeného býka vede se nazývá gangiréddudásu. Sankránti je jeden z~nejdůležitějších svátků. Pro lidstvo je svátkem prakticky každý den. Lidé si však ve své nevědomosti vyhradili jako svátky jen několik dnů a~ostatní jsou dny obyčejné. Mnozí slaví tento den, aniž by opravdu znali jeho význam. V~této části světa dnes lidé uctívají krávy a~býky. Býci jsou vybraně zkrášleni množstvím ozdob a~látek a~voděni po ulicích. Nazývají je gangiréddulu (posvátní býci). A~nejen to, býky a~krávy symbolicky oddávají. Osoba, která ozdobeného býka vede se nazývá gangiréddudásu. \stoptext bug.pdf Description: Adobe PDF document ___ 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] new beta
Hi, About those new stubs: can the people that have problems please try the mtxrun.exe (and dll) from http://tex.aanhet.net/temp/mtxrun-bin.zip They should go into the binary folder, and if mtxrun works, then the other executables in the list below can be created by copying mtxrun.exe to the other names. Best wishes, Taco Wader wrote: When I delete the files below under dir $ConTeXt\tex\texmf-mswin\bin context.exe luatools.exe metatex.exe mtxrun.exe mtxworks.exe texexec.exe texmfstart.exe ___ 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] problem with texmf-local on Vista
Christopher G D Tipper wrote: Hi, I am a user of Context from the old days, and usually don't need much help installing the software. However, I am needing to use Contextminimals for the first time, as Miktex 2.8 has dropped Context support. My problem is that I have a lot of my own setups and personal fonts and Contextminimals seems to have some problem dealing with local setups. I am using MkII by the way but these problems seem to exist in MkIV also. I have a font, Univers, installed to texmf-local with texfont and Context claims it cannot find the font definitions. running texexec I get the following: !pdfTeX error: pdftex.exe (file 8r-raw-punr8a): Font 8r-raw-punr8a at 432 not found == Fatal error occurred, no output PDF file produced! TeXExec | runtime: 10.311 ConTeXt Full finished at Sun Nov 29 21:58:36 Then from command prompt, I type: C:\Users\Christopherkpsewhich 8r-raw-punr8a.tfm c:/context/texmf-local/fonts/tfm/adobe/univers/8r-raw-punr8a.tfm I know this is not strictly relevant to MkII, but for comparison: C:\Users\Christopherluatools --expand-path TEXMFLOCAL c:/context/texmf-local Also C:\Users\Christophertexexec --version TeXExec | version 6.2.1 - 1997-2009 - PRAGMA ADE/POD C:\Users\Christophercontext --version MTXrun | main context file: c:/context/texmf-context/tex/context/base/context.te x MTXrun | current version: 2009.10.27 16:35 How do I get Context to recognise the local setup? can you check the TEXMF variable? there should be texmf-local as well as texmf-fonts and texmf-project (i normally put fonts in texmf-fonts) - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with hanging punctuation - a bug?
Tomas Bures wrote: Dear all, I've noticed some strange behavior of hanging punctuation (protrusion). The hyphens in hyphenated words are sometimes protruded and sometimes not. I wasn't able to find out the rule, but I managed to reduce the problem to having just one paragraph that repeats several times in the document. You may notice that the last two paragraphs do not have the hyphens protruded. In my original document, I'm using Minion Pro, however, I was able to reproduce this strange behavior with Pagella as well. I'm attaching PDF showing this behavior. The contex source file is below. Please, does anyone know how to fix this strange behavior? I would like to keep the protrusion as it makes the whole document better aligned. we found out that there is a buglet in luatex itself so you have to wait till the next luatex release; a temporary fix is: \let\textdir\gobblethreearguments but make sure that you remove such a hack after an update - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with hanging punctuation - a bug?
Tomas Bures wrote: Dear all, I've noticed some strange behavior of hanging punctuation (protrusion). The hyphens in hyphenated words are sometimes protruded and sometimes not. It is a bug in luatex that will be fixed in the next beta. For the moment (assuming you do not need multi-directional output) the workaround is to add \def\textdir#1#2#3{} to your document preamble. Best wishes, Taco ___ 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] Problem with hanging punctuation - a bug?
Wonderful! It works now. Thank you very much Hans and Taco. Tomas On 11/30/2009 11:56 AM, Taco Hoekwater wrote: Tomas Bures wrote: Dear all, I've noticed some strange behavior of hanging punctuation (protrusion). The hyphens in hyphenated words are sometimes protruded and sometimes not. It is a bug in luatex that will be fixed in the next beta. For the moment (assuming you do not need multi-directional output) the workaround is to add \def\textdir#1#2#3{} to your document preamble. Best wishes, Taco ___ 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] Strange behaviour of indentation
Dear all, I have some strange problem with indentation. I'm trying to typeset text with some verses. I use indentation in the text, however I would like to suppress it below the verse. So, inside the macro for verses, I use: indenting[next] This works fine, however for some strange reason, the indentation of the text paragraph isn't suppressed at some cases. The macro I use for the verses is a bit more compliated, but I managed to reduce the problem to the simple example below. The first 7 pairs of quote and line are fine, then the text line is indented although it shouldn't be. (Please see the attached PDF.) Please, does anyone know what to do with this problem? Thank you very much. Best regards, Tomas \setuppapersize[A6][A6] \setupindenting[small,yes] \def\startMyQuote{ \startlines} \def\stopMyQuote{ \stoplines \indenting[next] } \starttext \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \stoptext indenting.pdf Description: Adobe PDF document ___ 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] Strange behaviour of indentation
I'm sorry, the original PDF file was not completely according to the sources below. The right one is attached here. Thank you, Tomas On 11/30/2009 01:00 PM, Tomas Bures wrote: Dear all, I have some strange problem with indentation. I'm trying to typeset text with some verses. I use indentation in the text, however I would like to suppress it below the verse. So, inside the macro for verses, I use: indenting[next] This works fine, however for some strange reason, the indentation of the text paragraph isn't suppressed at some cases. The macro I use for the verses is a bit more compliated, but I managed to reduce the problem to the simple example below. The first 7 pairs of quote and line are fine, then the text line is indented although it shouldn't be. (Please see the attached PDF.) Please, does anyone know what to do with this problem? Thank you very much. Best regards, Tomas \setuppapersize[A6][A6] \setupindenting[small,yes] \def\startMyQuote{ \startlines} \def\stopMyQuote{ \stoplines \indenting[next] } \starttext \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ indenting.pdf Description: Adobe PDF document ___ 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] Strange behaviour of indentation
I tried the workaround for the text direction bug in luatex as suggested by Taco and Hans while ago for my other problem. It works even for this case. \let\textdir\gobblethreearguments Thank you. Tomas On 11/30/2009 01:03 PM, Tomas Bures wrote: I'm sorry, the original PDF file was not completely according to the sources below. The right one is attached here. Thank you, Tomas On 11/30/2009 01:00 PM, Tomas Bures wrote: Dear all, I have some strange problem with indentation. I'm trying to typeset text with some verses. I use indentation in the text, however I would like to suppress it below the verse. So, inside the macro for verses, I use: indenting[next] This works fine, however for some strange reason, the indentation of the text paragraph isn't suppressed at some cases. The macro I use for the verses is a bit more compliated, but I managed to reduce the problem to the simple example below. The first 7 pairs of quote and line are fine, then the text line is indented although it shouldn't be. (Please see the attached PDF.) Please, does anyone know what to do with this problem? Thank you very much. Best regards, Tomas \setuppapersize[A6][A6] \setupindenting[small,yes] \def\startMyQuote{ \startlines} \def\stopMyQuote{ \stoplines \indenting[next] } \starttext \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \startMyQuote Quote line \stopMyQuote Text line \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] Strange behaviour of indentation
Tomas Bures wrote: I tried the workaround for the text direction bug in luatex as suggested by Taco and Hans while ago for my other problem. It works even for this case. \let\textdir\gobblethreearguments That is getting weird. We will investigate this further. Best wishes, Taco ___ 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] problem with texmf-local on Vista
Message: 2 Date: Mon, 30 Nov 2009 10:33:00 +0100 From: Hans Hagen pra...@wxs.nl To: mailing list for ConTeXt users ntg-context@ntg.nl Subject: Re: [NTG-context] problem with texmf-local on Vista Message-ID: 4b13914c.1000...@wxs.nl Content-Type: text/plain; charset=ISO-8859-1; format=flowed Christopher G D Tipper wrote: Hi, I am a user of Context from the old days, and usually don't need much help installing the software. However, I am needing to use Contextminimals for the first time, as Miktex 2.8 has dropped Context support. My problem is that I have a lot of my own setups and personal fonts and Contextminimals seems to have some problem dealing with local setups. I am using MkII by the way but these problems seem to exist in MkIV also. I have a font, Univers, installed to texmf-local with texfont and Context claims it cannot find the font definitions. running texexec I get the following: !pdfTeX error: pdftex.exe (file 8r-raw-punr8a): Font 8r-raw-punr8a at 432 not found == Fatal error occurred, no output PDF file produced! TeXExec | runtime: 10.311 ConTeXt Full finished at Sun Nov 29 21:58:36 Then from command prompt, I type: C:\Users\Christopherkpsewhich 8r-raw-punr8a.tfm c:/context/texmf-local/fonts/tfm/adobe/univers/8r-raw-punr8a.tfm C:\Users\Christophercontext --version MTXrun | main context file: c:/context/texmf-context/tex/context/base/context.te x MTXrun | current version: 2009.10.27 16:35 How do I get Context to recognise the local setup? can you check the TEXMF variable? there should be texmf-local as well as texmf-fonts and texmf-project (i normally put fonts in texmf-fonts) This is set in several places, and I can never tell which takes precedence. But User Environment variable TEXMF is set to: {%HOME%\Library\texmf,c:\context\texmf,c:\context\texmf-local,c:\context\texmf-context,c:\context\texmf-mswin} Then we have C:\context\texmf\web2c\texmf.cnf with the following line: TEXMF = {$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFOS,!!$TEXMFEXTRA,!!$TEXMFMAIN} Then we have C:\context\texmf-context\web2c\context.cnf with the following line: TEXMF = {$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFEXTRA,!!$TEXMFMAIN} Then we have C:\context\texmf-local\web2c\texmf.cnf with the following line: TEXMF = {$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFOS,!!$TEXMFEXTRA,!!$TEXMFMAIN} Note I am also trying to use TEXMFHOME, but this problem also exists and fixing one may fix both. Christopher - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange behaviour of indentation
Taco Hoekwater wrote: Tomas Bures wrote: I tried the workaround for the text direction bug in luatex as suggested by Taco and Hans while ago for my other problem. It works even for this case. \let\textdir\gobblethreearguments That is getting weird. We will investigate this further. Yet another luatex bug. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Help watned for numbered descriptions
Hi all, I need help for the following situation: in a maths paper I would like to have Definitions, Lemmas, Theorems, etc, numbered in a sequential way in each section if any, the numbers being set before the header, and also to be able to refer to them through cross references. For instance, when there is indeed at least a section, in section 1, I would like to have something like 1.1 Definition. Here is the text of the definition in slanted style. … some text… 1.2 Lemma. Here is the text of the lemma in slanted style. …some text… 1.3 Theorem. Here is the text of the theorem in slanted style. …some text… 1.4 Corollary. Here is the text of the corollary in slanted style. And if there is no section at all: 1. Definition. Here is the text of the definition in slanted style. … some text… 2. Lemma. Here is the text of the lemma in slanted style. …some text… 3. Theorem. Here is the text of the theorem in slanted style. …some text… 4. Corollary. Here is the text of the corollary in slanted style. One way would be to define 4 descriptions or enumerations with \definedescription or \defineenumeration but then I don't know how to have numbers incremented in a sequential way in all these descriptions. Another issue with this approach would be that then if one wants to have for example a Conjecture or a Guess, one has to define a new description or enumeration. Has anyone run into such a situation? The example below shows what I need to do (but actually I wasn't able to add the section number as a prefix to the number…). Best regards: OK begin \newcounter\Lemmacount \setcounter\Lemmacount1 \def\Lemmanumber% {\global\increment\Lemmacount {\bf \Lemmacount.~}} \def\startLemma#1% {\blank \Lemmanumber~{\bf #1.} \start\sl} \def\stopLemma% {\blank \stop} \starttext Some text before the numbered descriptions start. \startLemma{Definition} This is the first numbered definition; it's short. \stopLemma Here some more text\dots and then a lemma: \startLemma{Lemma} This is another numbered definition. It's long enough to wrap around onto more than one line, so as to show that these can be numbered and contain as well blank lines and formulas \startformula a^2 + b^2 = c^2 \stopformula And some comment after the formula. \stopLemma And here is the remainder of the text\dots \stoptext end ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Help watned for numbered descriptions
Otared Kavian wrote: Hi all, I need help for the following situation: in a maths paper I would like to have Definitions, Lemmas, Theorems, etc, numbered in a sequential way in each section if any, the numbers being set before the header, and also to be able to refer to them through cross references. For instance, when there is indeed at least a section, in section 1, I would like to have something like 1.1 Definition. Here is the text of the definition in slanted style. … some text… 1.2 Lemma. Here is the text of the lemma in slanted style. …some text… 1.3 Theorem. Here is the text of the theorem in slanted style. …some text… 1.4 Corollary. Here is the text of the corollary in slanted style. And if there is no section at all: 1. Definition. Here is the text of the definition in slanted style. … some text… 2. Lemma. Here is the text of the lemma in slanted style. …some text… 3. Theorem. Here is the text of the theorem in slanted style. …some text… 4. Corollary. Here is the text of the corollary in slanted style. One way would be to define 4 descriptions or enumerations with \definedescription or \defineenumeration but then I don't know how to have numbers incremented in a sequential way in all these descriptions. Another issue with this approach would be that then if one wants to have for example a Conjecture or a Guess, one has to define a new description or enumeration. Has anyone run into such a situation? is quite trivial but there is an inheritance bug in mkiv so more later - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] displaymath-style in inlinemath?
hi, i´m writing proofs containing a lot of math expressions mixed with normal text. i would like the math expression to be in displaymath-style (more spacing, limits etc.) without interrupting normal text flow. is there an easy way to do this? tobias ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Help watned for numbered descriptions
On Mon, 30 Nov 2009, Otared Kavian wrote: Another issue with this approach would be that then if one wants to have for example a Conjecture or a Guess, one has to define a new description or enumeration. One way around this is the following. \defineenumeration[proclaim][text=,style=slanted,title=yes,titleleft=,titleright=,location=serried,width=fit] and then \startproclaim{Definition} .. \stopproclaim etc. Aditya ___ 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] displaymath-style in inlinemath?
On Mon, 30 Nov 2009, comm...@googlemail.com wrote: hi, i´m writing proofs containing a lot of math expressions mixed with normal text. i would like the math expression to be in displaymath-style (more spacing, limits etc.) without interrupting normal text flow. is there an easy way to do this? \appendtoks \displaystyle \to \everymath Aditya___ 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] Superscript-fontfeature for footnotenumbers
Hi all, I'm trying to set the superscript-fontfeature for footnote-numbers, but there isn't a '(text)numberstyle'-command, so what's the way to achieve this? So far I've this: \starttypescript [serif] [linlibertine] \definefontsynonym [Serif] [LinLibertine-Regular] [features=default] \stoptypescript \starttypescript [serif] [linlibertine] \definefontsynonym [LinLibertine-Regular] [name:linuxlibertineo] [features=default] \stoptypescript \starttypescript [linlibertine] \definetypeface [linlibertine] [rm] [serif] [linlibertine] [default] \stoptypescript \definefontfeature[sups][sups=yes] \usetypescript[linlibertine] \setupbodyfont[linlibertine] % \defineconversion[sups][\red\setff{sups}\arabicnumerals] \definestructureconversionset[sups][][Romannumerals] \setupnote [footnote] [command=\myfootnotecommand, % numberconversionset=sups, % textnumberstyle=\setff{sups}, % would be nice ] \def\myfootnotecommand#1{\hbox to .5em{\setff{sups}#1}} \starttext \dorecurse{12}{This\footnote{Hello World #1} is a test. } \stoptext Thanks in advance Andreas ___ 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] Superscript-fontfeature for footnotenumbers
Andreas Harder wrote: Hi all, I'm trying to set the superscript-fontfeature for footnote-numbers, but there isn't a '(text)numberstyle'-command, so what's the way to achieve this? So far I've this: \starttypescript [serif] [linlibertine] \definefontsynonym [Serif] [LinLibertine-Regular] [features=default] \stoptypescript \starttypescript [serif] [linlibertine] \definefontsynonym [LinLibertine-Regular] [name:linuxlibertineo] [features=default] \stoptypescript \starttypescript [linlibertine] \definetypeface [linlibertine] [rm] [serif] [linlibertine] [default] \stoptypescript \definefontfeature[sups][sups=yes] \usetypescript[linlibertine] \setupbodyfont[linlibertine] % \defineconversion[sups][\red\setff{sups}\arabicnumerals] \definestructureconversionset[sups][][Romannumerals] \setupnote [footnote] [command=\myfootnotecommand, % numberconversionset=sups, % textnumberstyle=\setff{sups}, % would be nice ] \def\myfootnotecommand#1{\hbox to .5em{\setff{sups}#1}} \starttext \dorecurse{12}{This\footnote{Hello World #1} is a test. } \stoptext I need to look into the numberstyle comand as well as some duplicate command being applied but here is a test \setupnote [footnote] [command=Z, style=X, textstyle=Q, numbercommand=N\setff{sups}, textcommand=T\setff{sups}, numberstyle=S\setff{sups}, %style=\setff{sups}, % interesting effect ] for the moment stick to \setupnote [footnote] [command=, textstyle=, numbercommand=\setff{sups}, textcommand=\setff{sups}] - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Superscript-fontfeature for footnotenumbers
Am 30.11.2009 um 18:47 schrieb Hans Hagen: Andreas Harder wrote: Hi all, I'm trying to set the superscript-fontfeature for footnote-numbers, but there isn't a '(text)numberstyle'-command, so what's the way to achieve this? So far I've this: \starttypescript [serif] [linlibertine] \definefontsynonym [Serif] [LinLibertine-Regular] [features=default] \stoptypescript \starttypescript [serif] [linlibertine] \definefontsynonym [LinLibertine-Regular] [name:linuxlibertineo] [features=default] \stoptypescript \starttypescript [linlibertine] \definetypeface [linlibertine] [rm] [serif] [linlibertine] [default] \stoptypescript \definefontfeature[sups][sups=yes] \usetypescript[linlibertine] \setupbodyfont[linlibertine] % \defineconversion[sups][\red\setff{sups}\arabicnumerals] \definestructureconversionset[sups][][Romannumerals] \setupnote [footnote] [command=\myfootnotecommand, % numberconversionset=sups, % textnumberstyle=\setff{sups}, % would be nice ] \def\myfootnotecommand#1{\hbox to .5em{\setff{sups}#1}} \starttext \dorecurse{12}{This\footnote{Hello World #1} is a test. } \stoptext I need to look into the numberstyle comand as well as some duplicate command being applied but here is a test \setupnote [footnote] [command=Z, style=X, textstyle=Q, numbercommand=N\setff{sups}, textcommand=T\setff{sups}, numberstyle=S\setff{sups}, %style=\setff{sups}, % interesting effect ] for the moment stick to \setupnote [footnote] [command=, textstyle=, numbercommand=\setff{sups}, textcommand=\setff{sups}] Thank you, it works! … and was so easy Andreas ___ 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] displaymath-style in inlinemath?
\appendtoks \displaystyle \to \everymath thank you very much! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Help watned for numbered descriptions
Hi Hans, Aditya, Many thanks for your attention: the solution suggested by Aditya is very satisfactory for the time being, as far as one uses mkii. I added an entry on the wiki about proclaim: http://wiki.contextgarden.net/proclaim However, as Hans says, there is a slight problem with mkiv and the way things get numbered. Best regards: OK On 30 nov. 2009, at 18:27, Aditya Mahajan wrote: On Mon, 30 Nov 2009, Otared Kavian wrote: Another issue with this approach would be that then if one wants to have for example a Conjecture or a Guess, one has to define a new description or enumeration. One way around this is the following. \defineenumeration[proclaim][text=,style=slanted,title=yes,titleleft=,titleright=,location=serried,width=fit] and then \startproclaim{Definition} .. \stopproclaim etc. Aditya ___ 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] How to not gobble space after a command
Hi Luigi, hm , some problem here # context --version MTXrun | main context file: context.tex MTXrun | current version: 2009.11.10 13:30 Your example works fine for me on an older beta: $ context --version MTXrun | main context file: /usr/share/texmf/tex/context/base/context.tex MTXrun | current version: 2009.10.28 19:27 I've just tried on a somewhat newer context which I found lying around, which does not give the error you gave (so it does know the \autoinsertnextspace command), but it doesn't work properly either (it never inserts a space AFAICT). matth...@xanthe:~$ context --version MTXrun | main context file: /usr/share/texmf/tex/context/base/context.tex MTXrun | current version: 2009.11.24 10:13 I'll have another go with the newest version soon. Gr. Matthijs 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to not gobble space after a command
On Mon, Nov 30, 2009 at 9:53 PM, Matthijs Kooijman matth...@stdin.nl wrote: Hi Luigi, hm , some problem here # context --version MTXrun | main context file: context.tex MTXrun | current version: 2009.11.10 13:30 Your example works fine for me on an older beta: $ context --version MTXrun | main context file: /usr/share/texmf/tex/context/base/context.tex MTXrun | current version: 2009.10.28 19:27 I've just tried on a somewhat newer context which I found lying around, which does not give the error you gave (so it does know the \autoinsertnextspace command), but it doesn't work properly either (it never inserts a space AFAICT). matth...@xanthe:~$ context --version MTXrun | main context file: /usr/share/texmf/tex/context/base/context.tex MTXrun | current version: 2009.11.24 10:13 I'll have another go with the newest version soon. Gr. Matthijs -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAksUMOEACgkQz0nQ5oovr7wW/QCgwwSkz4uBofdezdDlWfVNLRWe MrEAoJzsKZwGtXADqSplbFVeRLopT3A4 =9QuU -END PGP 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ %%% test.tex \starttext \autoinsertnextspace A \stoptext #context test.tex ! Undefined control sequence. l.3 \autoinsertnextspace # context --version MTXrun | main context file: /opt/luatex/minimals-beta/tex/texmf-context/tex/context/base/context.tex MTXrun | current version: 2009.11.27 21:24 # luatex --version This is LuaTeX, Version beta-0.46.0-2009112820 It works with texexec #texexec test.tex ... Output written on test-matt.pdf (1 page, 15725 bytes). -- 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] Help watned for numbered descriptions
Otared Kavian wrote: Hi Hans, Aditya, Many thanks for your attention: the solution suggested by Aditya is very satisfactory for the time being, as far as one uses mkii. I added an entry on the wiki about proclaim: http://wiki.contextgarden.net/proclaim However, as Hans says, there is a slight problem with mkiv and the way things get numbered. i uploaded a beta \defineenumeration[one] \defineenumeration[two] [one] % clone one \defineenumeration[three] [counter=one,style=slanted] % only use counter of one \defineenumeration[four] [three] % clone three \defineenumeration[five] [three] [counter=five] % clone three and use own counter \defineenumeration[six] [three] [counter=four] % clone tree and use counter four (undefined) \setupenumerations[one] [prefix=yes,prefixsegments=section] \setupenumerations[two] [prefix=yes,prefixsegments=section] \setupenumerations[three][prefix=yes,prefixsegments=section] \setupenumerations[four] [prefix=yes,prefixsegments=chapter:section] \setupenumerations[five] [prefix=yes,prefixsegments=chapter:section] \setupenumerations[six] [prefix=yes,prefixsegments=chapter:section] \starttext \chapter{test} \startone test test 1 \stopone \starttwo test test 2 \stoptwo \startthree test test 3 \stopthree \startfour test test 4 \stopfour \startfive test test 1 \stopfive \startsix test test 1 \stopsix \chapter{test} \section{test} \startone test test 6 \stopone \starttwo test test 7 \stoptwo \startthree test test 8 \stopthree \startfour test test 9 \stopfour \startfive test test 2 \stopfive \startsix test test 2 \stopsix \stoptext - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to not gobble space after a command
Hi Luigi, forget my last post. I was in a hurry last week and put a \def\autoinsertnextspace{} in my document just to get it compiling on context 2009.11.24. If I remove that, it stops working with texexec --lua (as well as just context) with the same undefined control sequence error. It still works with just texexec (e.g., with MkII). So, it works for me with 2009.10.28, and gives errors with 2009.11.24. There is no version where it silently fails, that was my own fault :-) Actually, it does in fact seem the macro has completely disappeared. With the old version: /usr/share/texmf/tex/context/base$ grep def.autoinsertnextspace * spac-gen.mkii:\def\autoinsertnextspace{\futurelet\nexttoken\doautoinsertnextspace} spac-hor.mkiv:\def\autoinsertnextspace{\futurelet\nexttoken\doautoinsertnextspace} With the new version: /usr/share/texmf/tex/context/base$ grep def.autoinsertnextspace * spac-gen.mkii:\def\autoinsertnextspace{\futurelet\nexttoken\doautoinsertnextspace} The comment in the old version does say: %D This is a dangerous feature because it makes the \TEX\ source %D less portable, i.e. any parser now needs to apply exactly the %D same algorithm when it wants to interpret the source. We %D strongly recommend not to mention this feature in manuals! It's %D provided for users who are hooked to such a mechanism. So perhaps this is removed intentionally? Perhaps Hans can comment? Gr. Matthijs 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ntg-context Digest, Vol 65, Issue 141
On 30.11.2009 13:00, ntg-context-requ...@ntg.nl wrote: About those new stubs: can the people that have problems please try the mtxrun.exe (and dll) Thank you, Taco. Strange thing is that executables provided by you are only one byte larger then those fetched by rsync. ))) your exe: 5632 dll: 7680 rync'd exe: 5631 dll: 7679 Regards, Vyatcheslav ___ 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] new beta
By the way, why we have two copies of core execuatbles -- one at texmf-mswin\bin and other at texmf-context\scripts\context\stubs\mswin ? The former are called first, so updating the latter had no effect at all. Regards, Vyatcheslav ___ 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] Superscript-fontfeature for footnotenumbers
Andreas Harder wrote: I need to look into the numberstyle comand as well as some duplicate command being applied but here is a test \setupenumerations [footnote] [ style=\type{(es)}, headstyle=\type{(hs)}] \setupnote [footnote] [style=\type{(s)}, command=\type{(c)}, textcommand=\type{(tc)}, textstyle=\type{(ts)}, numberstyle=\type{(ns)}, numbercommand=\type{(nc)}] \setuplayout[backspace=6cm,marginwidth=cm,width=middle] \starttext \dorecurse{9}{This\footnote{Hello World #1} is a test.\par } \stoptext i added numberstyle ... this test shows where thinsg end up - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to not gobble space after a command
Matthijs Kooijman wrote: Hi Luigi, forget my last post. I was in a hurry last week and put a \def\autoinsertnextspace{} in my document just to get it compiling on context 2009.11.24. If I remove that, it stops working with texexec --lua (as well as just context) with the same undefined control sequence error. It still works with just texexec (e.g., with MkII). So, it works for me with 2009.10.28, and gives errors with 2009.11.24. There is no version where it silently fails, that was my own fault :-) Actually, it does in fact seem the macro has completely disappeared. With the old version: /usr/share/texmf/tex/context/base$ grep def.autoinsertnextspace * spac-gen.mkii:\def\autoinsertnextspace{\futurelet\nexttoken\doautoinsertnextspace} spac-hor.mkiv:\def\autoinsertnextspace{\futurelet\nexttoken\doautoinsertnextspace} With the new version: /usr/share/texmf/tex/context/base$ grep def.autoinsertnextspace * spac-gen.mkii:\def\autoinsertnextspace{\futurelet\nexttoken\doautoinsertnextspace} The comment in the old version does say: %D This is a dangerous feature because it makes the \TEX\ source %D less portable, i.e. any parser now needs to apply exactly the %D same algorithm when it wants to interpret the source. We %D strongly recommend not to mention this feature in manuals! It's %D provided for users who are hooked to such a mechanism. So perhaps this is removed intentionally? Perhaps Hans can comment? indeed, it's a kind of hack and if we need something like that i'll make a better version some day ... configureable and using unicode char properties i'll remove the call in mkiv 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to not gobble space after a command
On Tue, Dec 1, 2009 at 12:14 AM, Hans Hagen pra...@wxs.nl wrote: indeed, it's a kind of hack and if we need something like that i'll make a better version some day ... configureable and using unicode char properties i'll remove the call in mkiv There is no \autoinsertnextspace in mkiv -- 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] How to not gobble space after a command
luigi scarso wrote: On Tue, Dec 1, 2009 at 12:14 AM, Hans Hagen pra...@wxs.nl wrote: indeed, it's a kind of hack and if we need something like that i'll make a better version some day ... configureable and using unicode char properties i'll remove the call in mkiv There is no \autoinsertnextspace in mkiv there was a \c!next=\autoinsertnextspace - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math Alignment - start equation at left margin
Otared, thanks very much for bringing Aditya's article to my attention. The method worked well. On Mon, Nov 30, 2009 at 2:50 AM, Otared Kavian ota...@gmail.com wrote: Sorry for sending this again: I forgot a closing } in \type{FLalign]…)}… Hi, Is this what you want to achieve: %% begin \starttext From Aditya's \type{mathalign.pdf}, where he defines in fact a \type{\definemathalignment[flalign]}, (but I prefer \type{FLalign]…)} one has \definemathalignment[FLalign] [m=2, distance=5em plus 1 fil] %We need to set a default value for m Curiouslearn' input was: \startformula \startalign \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \stopalign \stopformula \startformula \startFLalign %% here you can add [m=2] or [m=3] if you need more columns \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC \NC \NR %% note twice \NC \stopFLalign \stopformula \stoptext %% end Best regards: OK On 30 nov. 2009, at 00:45, Curiouslearn wrote: Hi, Can someone please help with the alignment of the equation so that it starts at left. I tried flushleft and other options (such as without \NC \NR, with align=left etc.). None of them result in the equation starting at the left margin. The equation is either placed in the middle or is aligned to the right. I want it to start at the left. Thanks. \setuppapersize[letter][letter] \starttext \startformula\startalign[align={left}] \NC\text{\bf Example: } \frac{d(4x^{2})}{dx} = 4 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR \stopalign\stopformula \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 aveue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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] Flow chart does no longer put comments under connections
Hi All, I'm using ConTeXt on an Ubuntu 9.10 system. $ texexec --version TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD The log file says: This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=cont-en 2009.8.3) 1 DEC 2009 15:10 ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2009.8.3 int: english/english It appears connection comments do not work in this version. For example the more sophisticated example from here: http://wiki.contextgarden.net/Flow_Charts ignores the comments. See attachment (if that survives this emailing list). So basically this: \connection[rl] {lowpass1} \comment[t]{$x(t)$} \comment[b]{$X(t)$} does not work. You get the line, but not the comments. So basically two questions: 1. This used to work (Ubuntu 8.04). Is the problem solved in any newer version of ConTeXt? 2. If so, is there a way I can upgrade from within Ubuntu? test.pdf Description: Adobe PDF document -- All the best, Berend de Boer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Help watned for numbered descriptions
Hi Hans, Thanks for your insight! Your solution works very well with the new beta mkiv (ConTeXt version 2009.11.30 22:20). I'll add a note on proclaim and enumerations on the wiki (not today though…). Best regards: OK On 30 nov. 2009, at 22:29, Hans Hagen wrote: Otared Kavian wrote: Hi Hans, Aditya, Many thanks for your attention: the solution suggested by Aditya is very satisfactory for the time being, as far as one uses mkii. I added an entry on the wiki about proclaim: http://wiki.contextgarden.net/proclaim However, as Hans says, there is a slight problem with mkiv and the way things get numbered. i uploaded a beta \defineenumeration[one] \defineenumeration[two] [one] % clone one \defineenumeration[three] [counter=one,style=slanted] % only use counter of one \defineenumeration[four] [three] % clone three \defineenumeration[five] [three] [counter=five] % clone three and use own counter \defineenumeration[six] [three] [counter=four] % clone tree and use counter four (undefined) \setupenumerations[one] [prefix=yes,prefixsegments=section] \setupenumerations[two] [prefix=yes,prefixsegments=section] \setupenumerations[three][prefix=yes,prefixsegments=section] \setupenumerations[four] [prefix=yes,prefixsegments=chapter:section] \setupenumerations[five] [prefix=yes,prefixsegments=chapter:section] \setupenumerations[six] [prefix=yes,prefixsegments=chapter:section] \starttext \chapter{test} \startone test test 1 \stopone \starttwo test test 2 \stoptwo \startthree test test 3 \stopthree \startfour test test 4 \stopfour \startfive test test 1 \stopfive \startsix test test 1 \stopsix \chapter{test} \section{test} \startone test test 6 \stopone \starttwo test test 7 \stoptwo \startthree test test 8 \stopthree \startfour test test 9 \stopfour \startfive test test 2 \stopfive \startsix test test 2 \stopsix \stoptext - 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 : 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] How to use metauml in ConTeXt
Hi All, Is there any way to use metauml from ConTeXt? http://thor.info.uaic.ro/~ogh/lop/ BTW, is there any ConTeXt modules to write uml sequence diagram similar to http://code.google.com/p/pgf-umlsd ? Thanks in advance. Best regards, Joshua ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ntg-context Digest, Vol 65, Issue 141
Vyatcheslav Yatskovsky wrote: On 30.11.2009 13:00, ntg-context-requ...@ntg.nl wrote: About those new stubs: can the people that have problems please try the mtxrun.exe (and dll) Thank you, Taco. Strange thing is that executables provided by you are only one byte larger then those fetched by rsync. ))) your exe: 5632 dll: 7680 rync'd exe: 5631 dll: 7679 Well, we were 16 bits short, so I just added one byte to each ... Best wishes, Taco ___ 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 ___