Re: [NTG-context] \startitemize[columns] once again...
Dnia 2012-11-10, o godz. 03:23:11 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): This minimal example behaves in a strange way: \starttext Some text \startitemize[columns,two,joinedup] \item abc% $\frac{x^2-x+3}{x^2+x-3}$; \item xyz% $\frac{x^5-3}{x^3+x-2}$. \stopitemize \stoptext If we remove the percentage signs in the items, an additional vertical skip appears. Is it a feature or a bug? Hi, could anybody look into it? I tried also \smash-ing the formulae - with no luck. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] \startitemize[columns] once again...
···date: 2012-11-14, Wednesday···from: Marcin Borkowski··· Dnia 2012-11-10, o godz. 03:23:11 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): This minimal example behaves in a strange way: \starttext Some text \startitemize[columns,two,joinedup] \item abc% $\frac{x^2-x+3}{x^2+x-3}$; \item xyz% $\frac{x^5-3}{x^3+x-2}$. \stopitemize \stoptext If we remove the percentage signs in the items, an additional vertical skip appears. Is it a feature or a bug? Hi, could anybody look into it? I tried also \smash-ing the formulae - with no luck. Hi Marcin, appears like the vertical spacing is extended when content of the item exceeds the line height. The behavior is not restricted to math mode, though I can’t say if there is an official way to prevent or customize it. If you are desperate to get around it, maybe put the content in a box of fixed height. ·· demo · \defineframed[crampy][height=\ht\strutbox,frame=off] \starttext before \thinrule \startitemize[columns,two,joinedup] \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}}; \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}. \stopitemize \thinrule after before \thinrule \startitemize[columns,two,joinedup] \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}}; \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}. \stopitemize \thinrule after before \thinrule \startitemize[columns,two,joinedup] \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}}; \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}. \stopitemize \thinrule after \stoptext · Hth, Philipp Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpCrhMXZEnyO.pgp Description: 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 ___
Re: [NTG-context] \startitemize[columns] once again...
Am 14.11.2012 11:38, schrieb Philipp Gesang: ···date: 2012-11-14, Wednesday···from: Marcin Borkowski··· Dnia 2012-11-10, o godz. 03:23:11 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): This minimal example behaves in a strange way: \starttext Some text \startitemize[columns,two,joinedup] \item abc% $\frac{x^2-x+3}{x^2+x-3}$; \item xyz% $\frac{x^5-3}{x^3+x-2}$. \stopitemize \stoptext If we remove the percentage signs in the items, an additional vertical skip appears. Is it a feature or a bug? Hi, could anybody look into it? I tried also \smash-ing the formulae - with no luck. Hi Marcin, appears like the vertical spacing is extended when content of the item exceeds the line height. The behavior is not restricted to math mode, though I can’t say if there is an official way to prevent or customize it. If you are desperate to get around it, maybe put the content in a box of fixed height. with the old context of current TeXLive it works without adding additional space. Herbert ___ 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] Difference between * and \ast
On 11/14/2012 12:51 AM, Aditya Mahajan wrote: Hi, $*$ not behave the same as $\ast$ in math mode with any unicode font. (The output of \ast is correct) Minimal example: \setupbodyfont[cambria] \starttext $a*b$ $a\ast b$ \stoptext At first glance, I could not find anything wrong with char-def.lua it's one of the three border cases (/ is another one) ... unfortunately the remapping gets overwritten later on (side effect of multiple classes) so i did a fix ... hopefully it doesn't break something Now we need to figure out why xits looks crappy with the slash \setupbodyfont[xits] \starttext $a*b$ $a\ast b$ $a/b$ $a\slash b$ \stoptext Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] no footnote printed
Am 13.11.12 13:36, schrieb Hans Hagen: On 11/13/2012 11:05 AM, Bernd Militzer wrote: Hello, using midaligned no footnote is printed. \starttext % \midaligned{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} \crlf Text bla bla bla % \blank \midaligned{§. 354.\footnote{Franz Joseph Schopf II.: a.a.O., S. 245}} \crlf Text bla bla bla you can try with \automigrateinserts Thanks Hans, but it does not work. I use now in instead: \def\mySchopf#1{\strut\hfill{~{#1}\hfill~}} % \mySchopf{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} and all is OK for me. Best wishes, Bernd ___ 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] no footnote printed
···date: 2012-11-14, Wednesday···from: Bernd Militzer··· Am 13.11.12 13:36, schrieb Hans Hagen: On 11/13/2012 11:05 AM, Bernd Militzer wrote: Hello, using midaligned no footnote is printed. \starttext % \midaligned{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} \crlf Text bla bla bla % \blank \midaligned{§. 354.\footnote{Franz Joseph Schopf II.: a.a.O., S. 245}} \crlf Text bla bla bla you can try with \automigrateinserts Thanks Hans, but it does not work. This works with the beta as of two weeks ago: · \automigrateinserts \starttext \midaligned{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} \stoptext · Maybe your use-case differs? Regards, Philipp I use now in instead: \def\mySchopf#1{\strut\hfill{~{#1}\hfill~}} % \mySchopf{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} and all is OK for me. Best wishes, Bernd ___ 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpnkHYW38qiy.pgp Description: 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 ___
Re: [NTG-context] no footnote printed
Am 14.11.2012 12:18, schrieb Bernd Militzer: Am 13.11.12 13:36, schrieb Hans Hagen: On 11/13/2012 11:05 AM, Bernd Militzer wrote: Hello, using midaligned no footnote is printed. \starttext % \midaligned{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} \crlf Text bla bla bla % \blank \midaligned{§. 354.\footnote{Franz Joseph Schopf II.: a.a.O., S. 245}} \crlf Text bla bla bla you can try with \automigrateinserts Thanks Hans, but it does not work. it works with current versions of minimal and also TeXLive Herbert ___ 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] XML and Lua/Ctx
Hello, I've read that when Ctx is to process a XML file, the whole XML tree is loaded first and processed as wanted. I'd need to process a XML file which represents an Excel workbook saved as .xml. When working in pure Lua, I'm using Expat library (http://matthewwild.co.uk/projects/luaexpat/index.html) which allow to create a parser with callbacks (e.g. StartElement(), StopElement(), CharacterData()...). It processes the .xml file on-the-go. However, this solution cannot be used with Ctx as it causes Ctx to crash. How to access a XML file loaded and parsed from within Ctx via Lua? I attach a simple Excel XML (for those who are familiar with Excel and don't refuse using it). As an example, I'd need process the attached .xml into a simple Lua table: -- return -- Lua table as a result { workbooks = { [1] = { name = 1, -- No more info is necessary so far, -- I just need to see the way how to access XML elements }, [2] = { name = Imp, }, [3] = { name = Exp, }, [4] = { name = Template, }, } } Could anyone experienced kindly present a way how to get such table from the attached Excel XML file? TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 This part of mail contained an attachment with prohibited file name: MIME type: text/xml File name: Test.xls.xml File size: 8.59 kB The attachment was removed by Kerio MailServer 6.6.2 at mail.pontex.cz. ___ 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] XML and Lua/Ctx
Hello, I've read that when Ctx is to process a XML file, the whole XML tree is loaded first and processed as wanted. I'd need to process a XML file which represents an Excel workbook saved as .xml. When working in pure Lua, I'm using Expat library (http://matthewwild.co.uk/projects/luaexpat/index.html) which allow to create a parser with callbacks (e.g. StartElement(), StopElement(), CharacterData()...). It processes the .xml file on-the-go. However, this solution cannot be used with Ctx as it causes Ctx to crash. How to access a XML file loaded and parsed from within Ctx via Lua? I attach a simple Excel XML (for those who are familiar with Excel and don't refuse using it). As an example, I'd need process the attached .xml into a simple Lua table: -- return -- Lua table as a result { workbooks = { [1] = { name = 1, -- No more info is necessary so far, -- I just need to see the way how to access XML elements }, [2] = { name = Imp, }, [3] = { name = Exp, }, [4] = { name = Template, }, } } Could anyone experienced kindly present a way how to get such table from the attached Excel XML file? TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038?xml version=1.0? ?mso-application progid=Excel.Sheet? Workbook xmlns=urn:schemas-microsoft-com:office:spreadsheet xmlns:o=urn:schemas-microsoft-com:office:office xmlns:x=urn:schemas-microsoft-com:office:excel xmlns:ss=urn:schemas-microsoft-com:office:spreadsheet xmlns:html=http://www.w3.org/TR/REC-html40; DocumentProperties xmlns=urn:schemas-microsoft-com:office:office AuthorIng. Lukáš Procházka/Author LastAuthorLPr/LastAuthor LastPrinted2008-05-05T16:32:23Z/LastPrinted Created1999-03-17T11:22:56Z/Created LastSaved2010-02-14T15:45:18Z/LastSaved CompanyPontex s.r.o./Company Version11./Version /DocumentProperties OfficeDocumentSettings xmlns=urn:schemas-microsoft-com:office:office AllowPNG/ /OfficeDocumentSettings ExcelWorkbook xmlns=urn:schemas-microsoft-com:office:excel SupBook AltStartupLP.xls/AltStartup SheetName./SheetName Xct Count0/Count SheetIndex0/SheetIndex /Xct /SupBook WindowHeight10875/WindowHeight WindowWidth15480/WindowWidth WindowTopX120/WindowTopX WindowTopY30/WindowTopY AcceptLabelsInFormulas/ ProtectStructureFalse/ProtectStructure ProtectWindowsFalse/ProtectWindows /ExcelWorkbook Styles Style ss:ID=Default ss:Name=Normal Alignment ss:Vertical=Center/ Borders/ Font ss:FontName=Tahoma x:CharSet=238 x:Family=Swiss/ Interior/ NumberFormat/ Protection/ /Style Style ss:ID=s21 Font ss:FontName=Tahoma x:CharSet=238 x:Family=Swiss ss:Italic=1/ /Style Style ss:ID=s22 Font ss:FontName=Tahoma x:CharSet=238 x:Family=Swiss/ /Style Style ss:ID=s23 Font ss:FontName=Tahoma x:CharSet=238 x:Family=Swiss ss:Italic=1/ Interior ss:Color=#CCFFCC ss:Pattern=Solid/ /Style Style ss:ID=s24 Borders Border ss:Position=Bottom ss:LineStyle=Continuous ss:Weight=1/ /Borders Font ss:FontName=Tahoma x:CharSet=238 x:Family=Swiss ss:Italic=1/ /Style Style ss:ID=s25 Borders Border ss:Position=Bottom ss:LineStyle=Continuous ss:Weight=1/ /Borders /Style Style ss:ID=s26 Borders/ Font ss:FontName=Tahoma x:CharSet=238 x:Family=Swiss ss:Italic=1/ /Style Style ss:ID=s27 Borders/ /Style /Styles Worksheet ss:Name=1 Table ss:ExpandedColumnCount=256 ss:ExpandedRowCount=4 x:FullColumns=1 x:FullRows=1 Column ss:StyleID=s21 ss:AutoFitWidth=0 ss:Width=45.75/ Column ss:StyleID=s22 ss:AutoFitWidth=0 ss:Width=45.75/ Column ss:AutoFitWidth=0 ss:Width=45.75 ss:Span=253/ Row ss:StyleID=s21 CellData ss:Type=String#something/Data/Cell Cell ss:StyleID=s22/ /Row Row ss:Index=3 Cell ss:Index=2Data ss:Type=StringAAA/Data/Cell CellData ss:Type=Number1.4/DataComment ss:Author=LPr ss:ShowAlways=1ss:Data xmlns=http://www.w3.org/TR/REC-html40;Font html:Size=8 html:Color=#00alpha.cc/Font/ss:Data/Comment/Cell /Row Row Cell ss:Index=2Data ss:Type=StringBBB/Data/Cell CellData ss:Type=Number1.5/DataComment ss:Author=LPr ss:ShowAlways=1ss:Data xmlns=http://www.w3.org/TR/REC-html40;Font html:Size=8 html:Color=#00al/FontBFont html:Size=8 html:Color=#00pha/Font/BFont html:Size=8 html:Color=#00.cc/Font/ss:Data/Comment/Cell /Row /Table WorksheetOptions xmlns=urn:schemas-microsoft-com:office:excel PageSetup Layout x:CenterHorizontal=1/ Header x:Margin=0.59055118110236227/ Footer x:Margin=0.51181102362204722 x:Data=amp;Ramp;quot;Tahoma,KurzÃvaquot;amp;8amp;Zamp;F [amp;A], amp;P/amp;N, amp;D/ PageMargins x:Bottom=0.70866141732283472
Re: [NTG-context] XML and Lua/Ctx
On Wed, Nov 14, 2012 at 4:44 PM, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: Hello, I've read that when Ctx is to process a XML file, the whole XML tree is loaded first and processed as wanted. I'd need to process a XML file which represents an Excel workbook saved as .xml. When working in pure Lua, I'm using Expat library ( http://matthewwild.co.uk/**projects/luaexpat/index.htmlhttp://matthewwild.co.uk/projects/luaexpat/index.html) which allow to create a parser with callbacks (e.g. StartElement(), StopElement(), CharacterData()...). It processes the .xml file on-the-go. However, this solution cannot be used with Ctx as it causes Ctx to crash. Windows , Linux or MacOS ? ___ 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] XML and Lua/Ctx
On Wed, 14 Nov 2012 16:50:50 +0100, luigi scarso luigi.sca...@gmail.com wrote: However, this solution cannot be used with Ctx as it causes Ctx to crash. Windows , Linux or MacOS ? WinXP 32b -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] XML and Lua/Ctx
On Wed, Nov 14, 2012 at 4:52 PM, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: On Wed, 14 Nov 2012 16:50:50 +0100, luigi scarso luigi.sca...@gmail.com wrote: However, this solution cannot be used with Ctx as it causes Ctx to crash. Windows , Linux or MacOS ? WinXP 32b hm, I'm still not good enough under windows (but I'm progressing) ___ 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] no footnote printed
Am 14.11.2012 um 12:26 schrieb Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de: ···date: 2012-11-14, Wednesday···from: Bernd Militzer··· Am 13.11.12 13:36, schrieb Hans Hagen: On 11/13/2012 11:05 AM, Bernd Militzer wrote: Hello, using midaligned no footnote is printed. \starttext % \midaligned{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} \crlf Text bla bla bla % \blank \midaligned{§. 354.\footnote{Franz Joseph Schopf II.: a.a.O., S. 245}} \crlf Text bla bla bla you can try with \automigrateinserts Thanks Hans, but it does not work. This works with the beta as of two weeks ago: · \automigrateinserts \starttext \midaligned{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} \stoptext · Maybe your use-case differs? The footnote disappears when you add \crlf after \midaligned. \automigrateinserts \starttext \midaligned{§. 180.\footnote{Franz Joseph Schopf I.: a.a.O., S. 123}} \crlf \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mk IV version of wasysym?
On 11/13/2012 1:49 PM, Pavneet Arora wrote: I am trying to use some of the symbols from Roland Waldi's symbols collection in a project. After not getting the minimal example to work, I looked for the 'symb-was.*' file, and came across only this; /opt/context/tex/texmf-context/tex/context/base/symb-was.mkii I notice that there doesn't seem to be a .mkiv version of this set. Could this be the problem? The minimal example was simply: \usesymbols[was] \showsymbolset[wasy general] best look in the symb-imp-mvs Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mk IV version of wasysym?
Hans, Normally, I do refer first to Martin Vogel's set, but in this case I just needed a symbol from Roland's set. Do I take it then to mean the symb-was is not Mk IV compatible? Thanks. On Wed 14 Nov 2012 12:18:25 PM EST, Hans Hagen wrote: On 11/13/2012 1:49 PM, Pavneet Arora wrote: I am trying to use some of the symbols from Roland Waldi's symbols collection in a project. After not getting the minimal example to work, I looked for the 'symb-was.*' file, and came across only this; /opt/context/tex/texmf-context/tex/context/base/symb-was.mkii I notice that there doesn't seem to be a .mkiv version of this set. Could this be the problem? The minimal example was simply: \usesymbols[was] \showsymbolset[wasy general] best look in the symb-imp-mvs Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - -- - - Pavneet Arora Waroc Fine Audio + Custom Home Cinema www.waroc.com 416.937.WAROC (9276) ___ 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] Mk IV version of wasysym?
Am 14.11.2012 um 18:23 schrieb Pavneet Arora pavneet_ar...@waroc.com: Hans, Normally, I do refer first to Martin Vogel's set, but in this case I just needed a symbol from Roland's set. Do I take it then to mean the symb-was is not Mk IV compatible? MkIV uses a different name system for the files which covers symbols (symb-imp-xxx.mkiv), colors (colo-imp-xxx.mkiv) and typescripts (type-imp-xxx.mkiv). Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [luatex-plain] loading patterns
Hi all! (I assume this is the appropriate list for questions regarding luatex-plain.) I am trying to enable the Russian hyphenation patterns. The demo code below works with luatex.fmt but not luatex-plain.fmt (both from tex live). More precisely, after loading the hyphenation patterns for, say, *Latin* I get proper hyphenation. Now when I attempt the same with *Russian*, nothing is hyphenated. (As lang.patterns(id) correctly returns the patterns in both cases, I guess something is missing after updating tex.language.) Any thoughts? Can someone reproduce this? Philipp = \def\loadpatterns#1{% \directlua{ local pattern_source = kpse.find_file#1 texio.write_nl(* loading patterns from file .. pattern_source) local fh = io.open(kpse.find_file#1) local new_patterns = fh:read*a fh:close() local new_language = lang.new() lang.patterns(new_language, new_patterns) tex.language = lang.id(new_language) %print(lang.patterns(new_language)) }% } % · % \showhyphens{Циолковский} %% no pattern yet, so both without \showhyphens{Oenothea}%% hyphenation % · % \loadpatterns{hyph-ru.pat.txt} %% Russian \showhyphens{Циолковский} %% wrong with luatex-plain % · % \loadpatterns{hyph-la.pat.txt} %% Latin \showhyphens{Oenothea} %% correct with either % · % \bye pgpnSiKgK7z1f.pgp Description: 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 ___
[NTG-context] Managing prefixes in section references
Hi all, I am trying to convince \in to build up a full reference (chapter number.section number) but can not work it out. Here is my minimal example : % ConTeXt 2012.11.08 MKIV \setuphead[section][sectionsegments=section] \setupreferencestructureprefix[section][number][prefixsegments=2:*] \starttext \chapter{Chapter one} \section[S1]{Section one} This is \in{section}[S1] % displays 1 instead of 1.1 \stoptext What am I doing wrong ? Thanks for your answers. -- Jean-Philippe Rey Professeur - École Centrale Paris jean-philippe@ecp.fr 92295 Châtenay-Malabry Cedex - France ___ 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] random seed
Hi, in one of my documents I use a specific random seed to create a fixed random based graphic (size, color, position). This works fine under Windows (where I 'found' the seed value), but I get a complete different result on my Debian system. Is there a way to get identical results on different OS? Or is the random number generator OS specific? Just wondering... Peter ___ 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] [luatex-plain] loading patterns
On 11/14/2012 7:12 PM, Philipp Gesang wrote: you need to set some lccodes assuming that you also use the font loader (i.e. luatex-plain), try the attached files ... the next then works ok \font\test=dejavuserif at 10pt \test \hsize 1mm \noindent Циолковский \loadpatterns{ru} \noindent Циолковский \end It uses the pattern files that come with context. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - if not modules then modules = { } end modules ['luatex-languages'] = { version = 1.001, comment = companion to luatex-languages.tex, author= Hans Hagen, PRAGMA-ADE, Hasselt NL, copyright = PRAGMA ADE / ConTeXt Development Team, license = see context related readme files } -- We borrow fron ConTeXt. languages = languages or { } local loaded = { } function languages.loadpatterns(tag) if not loaded[tag] then loaded[tag] = 0 local filename = kpse.find_file(lang- .. tag .. .lua) if filename and filename == then print(unknown language file for: .. tag .. ) else local whatever = loadfile(filename) if type(whatever) == function then whatever = whatever() if type(whatever) == table then local characters = whatever.patterns.characters or local patterns = whatever.patterns.data or local exceptions = whatever.exceptions.data or local language = lang.new() for b in string.utfvalues(characters) do tex.setlccode(b,b) end lang.patterns(language, patterns) lang.hyphenation(language, exceptions) loaded[tag] = lang.id(language) else print(invalid language table: .. tag .. ) end else print(invalid language file: .. tag .. ) end end end return loaded[tag] end %D \module %D [ file=luatex-fonts, %Dversion=2009.12.01, %D title=\LUATEX\ Support Macros, %D subtitle=Generic \OPENTYPE\ Font Handler, %D author=Hans Hagen, %D copyright={PRAGMA ADE \ \CONTEXT\ Development Team}] %D Cf. discussion on \CONTEXT\ list: \directlua { dofile(kpse.find_file(luatex-languages.lua,tex)) } \def\loadpatterns#1{\directlua{tex.language = languages.loadpatterns(#1)}} \endinput %D \module %D [ file=luatex-plain, %Dversion=2009.12.01, %D title=\LUATEX\ Macros, %D subtitle=Plain Format, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \ \CONTEXT\ Development Team}] \input plain \directlua {tex.enableprimitives('', tex.extraprimitives())} \pdfoutput=1 \everyjob \expandafter {% \the\everyjob \input {luatex-basics}% \input {luatex-fonts}% \input {luatex-languages}% \input {luatex-mplib}% } \edef\fmtversion{\fmtversion+luatex} \dump ___ 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] random seed
On 11/14/2012 7:55 PM, Peter Rolf wrote: Hi, in one of my documents I use a specific random seed to create a fixed random based graphic (size, color, position). This works fine under Windows (where I 'found' the seed value), but I get a complete different result on my Debian system. Is there a way to get identical results on different OS? Or is the random number generator OS specific? Just wondering... yes and it cannot be trusted either (some underlying os code is used); i also found out that you need to call a couple of random's in a row first to get at least not the same ones in the beginning in contetx I've now settled on: math.initialseed = tonumber(string.sub(string.reverse(tostring(ceil(socket and socket.gettime()*1 or time(,1,6)) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] random seed
Am 14.11.2012 20:20, schrieb Hans Hagen: On 11/14/2012 7:55 PM, Peter Rolf wrote: Hi, in one of my documents I use a specific random seed to create a fixed random based graphic (size, color, position). This works fine under Windows (where I 'found' the seed value), but I get a complete different result on my Debian system. Is there a way to get identical results on different OS? Or is the random number generator OS specific? Just wondering... yes and it cannot be trusted either (some underlying os code is used); i also found out that you need to call a couple of random's in a row first to get at least not the same ones in the beginning in contetx I've now settled on: math.initialseed = tonumber(string.sub(string.reverse(tostring(ceil(socket and socket.gettime()*1 or time(,1,6)) Thanks for the info. The formula looks like an incantation for the god of random numbers ;-) I already migrated the tex code to lua, so that I can do some post processing on the collected random based data. To get identical results, I only have to save the final data set then. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Missing file.tuc with setuparranging[2SIDE]
Hi, I found a strange problem using \setuparranging[2SIDE] : the .tuc file is not created anymore and this lead to a missing section number (for the first section only). How can I remedy to that ? Any idea ? The minimal example : %% \setuppapersize[A5][A4,landscape] \setuparranging[2SIDE] \starttext \dorecurse{10}{ \section{Knuth} \input knuth} \stoptext %% If one comment the \setuparranging[2SIDE] line, everything is ok. Thank you. -- Romain Diss romain.d...@yahoo.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 ___
Re: [NTG-context] Missing file.tuc with setuparranging[2SIDE]
Am 15.11.2012 um 01:28 schrieb Romain Diss romain.d...@yahoo.fr: Hi, I found a strange problem using \setuparranging[2SIDE] : the .tuc file is not created anymore and this lead to a missing section number (for the first section only). How can I remedy to that ? Any idea ? The minimal example : %% \setuppapersize[A5][A4,landscape] \setuparranging[2SIDE] \starttext \dorecurse{10}{ \section{Knuth} \input knuth} \stoptext %% If one comment the \setuparranging[2SIDE] line, everything is ok. Use “context --arrange filename”. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___