Re: [NTG-context] Escaping in LuaTeX
Am 02.01.2011 um 02:04 schrieb Fulvio Satta: I have a problem with Lua and the # operator. If I execute the following code I receive an error. \def\luacode% {\startluacode local t = {1, 2, 3} tex.print(#t) \stopluacode} \starttext \luacode \stoptext ConTeXt give me the message: ! Illegal parameter number in definition of \luacode. to be read again t l.4 tex.print(#t ) And if I execute the H command I get: You meant to type ## instead of #, right? Or maybe a } was forgotten somewhere earlier, and things are all screwed up? I''m going to assume that you meant ##. I've tryed with ##t, whit \#t, with \string#t, with \ctxlua instread of \startluacode and \stopluacode, and I've obtained some other errors, but ConTeXt always give me an error. Maybe should I escape in another manner the # operator? You can replace the # with \letterhash but you method is wrong, the first thing is that \luacode is already defined in the core and it can be used as replacement for \ctxlua and second it’s better to separate a lua function and the call to the function. Instead of writing the function in a luacode environment you can also put it in a external file which is then loaded in your document/module. You should also use a namespace for your functions. \startluacode userdata= userdataor { } userdata.fulvio = userdata.fulvio or { } function userdata.fulvio.size() local t = {1, 2, 3} tex.print(#t) end \stopluacode \def\SizeOne{\ctxlua {userdata.fulvio.size()}} \def\SizeTwo{\luacode{userdata.fulvio.size()}} \starttext \startluacode local t = {1, 2, 3} tex.print(#t) \stopluacode \starttabulate \NC ctxlua \EQ \SizeOne \NC\NR \NC luacode \EQ \SizeTwo \NC\NR \stoptabulate \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] line numbers - method=page
On Sun, 02 Jan 2011 00:34:12 +0100 Daniel Schopper daniel.schop...@aon.at wrote: I'm using ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.12.31 which should be the newest version available on http://tlcontrib.metatex.org/2010. You will have to use a more recent (beta) version. I have added a sentence to the wiki page explaining that. Thomas ___ 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] line numbers - method=page
Ok, thanks for the info! Daniel Am 02.01.11 11:17, schrieb Thomas Schmitz: On Sun, 02 Jan 2011 00:34:12 +0100 Daniel Schopper daniel.schop...@aon.at wrote: I'm using ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.12.31 which should be the newest version available on http://tlcontrib.metatex.org/2010. You will have to use a more recent (beta) version. I have added a sentence to the wiki page explaining that. Thomas ___ 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 ___ -- Daniel Schopper Esterhazygasse 31/1/9 1060 Wien mobil. +43 676 4302747 tel. +43 1 5851767 mail. daniel.schop...@aon.at ___ 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] Metric (TFM) file not found.
On Fri, Dec 31, 2010 at 19:03, Sam Qasbah samqas...@gmail.com wrote: Hello. I downloaded showfont.pdf and I tried the first example: \starttext \definetypeface [zapf] [cg] [calligraphy] [chancery] \switchtotypeface [zapf] [12pt,cg] \dorecurse{10}{\input tufte} \stoptext but I received the error message metric file not found. This is the log file: == ! Font \*zapf12ptcgtfcg*:=TeXGyreChorus-MediumItalic at 12.0pt not loadable: ... l.3 \switchtotypeface [zapf] [12pt,cg] In order for this to work, the following four lines are missing in type-one.mkii: \starttypescript [calligraphy] [chorus,chancery] [ec,texnansi,cs,qx,rm,t5,t2a,t2b,t2c,l7x] \definefontsynonym [TeXGyreChorus-MediumItalic] [\typescriptthree-qzcmi] [encoding=\typescriptthree] \loadmapfile[qzc-\typescriptthree.map] \stoptypescript Mojca ___ 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] Escaping in LuaTeX
Il domenica 02 gennaio 2011 02:04:46 Fulvio Satta ha scritto: I have a problem with Lua and the # operator. If I execute the following code I receive an error. \def\luacode% {\startluacode local t = {1, 2, 3} tex.print(#t) \stopluacode} \starttext \luacode \stoptext ConTeXt give me the message: ! Illegal parameter number in definition of \luacode. to be read again t l.4 tex.print(#t ) And if I execute the H command I get: You meant to type ## instead of #, right? Or maybe a } was forgotten somewhere earlier, and things are all screwed up? I''m going to assume that you meant ##. I've tryed with ##t, whit \#t, with \string#t, with \ctxlua instread of \startluacode and \stopluacode, and I've obtained some other errors, but ConTeXt always give me an error. Maybe should I escape in another manner the # operator? In the previous mail I foget to say my ConTeXt version. I use ConTeXt minimals 2010.12.31 08:59. signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] multipage tables - vertical space
On 12/6/10 1:18 PM, Hans Hagen wrote: On 5-12-2010 3:16, Peter Van Kranenburg wrote: Hello all, What's wrong with this multipage table? \starttext \setuptables[split=repeat] \placetable[split,here][tab:example]{Long Table Example}{\start \starttablehead \HL \VL \bf A \VL \bf B \VL\MR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|l|l|] \dorecurse{100}{\VL first \VL second \VL\MR} \stoptables \stop} \stoptext On each page, I get a vertical space above the footer. see: http://syrinx.knorrie.org/~pvk/tableproblem/tableproblem.pdf there is some hard codes tolerance: \def\tsplitminimumfreelines{2}% that could be made configurable (not sure what key to use) Thanks, but I'm still struggling with this. I don't understand what to do with your suggestion. Should I use other table macro's? best, Peter van Kranenburg - 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 ___ ___ 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] Selecting pdf version
Dear all, I am looking for a way to choose the pdf version generated by ConTeXt. On my system, ConTeXt produces pdf 1.5 files, but my printshop doesn't like them and asks for pdf 1.4 files. Is there a way to tell ConTeXt to produce pdf 1.4 files ? Thanks, -- 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 ___
Re: [NTG-context] Selecting pdf version
On Sun, Jan 2, 2011 at 3:20 PM, Jean-Philippe Rey jean-philippe@ecp.fr wrote: Dear all, I am looking for a way to choose the pdf version generated by ConTeXt. On my system, ConTeXt produces pdf 1.5 files, but my printshop doesn't like them and asks for pdf 1.4 files. Is there a way to tell ConTeXt to produce pdf 1.4 files ? \pdfminorversion4 -- or change printshop -- 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] export and pagebreak
On 31-12-2010 7:22, Achim Jander wrote: Hi all, first I wish a very happy new year to everybody! I think, this will be my last post for this year, but as i have tasted blood, the next year I will post a lot of further questions I think :-) Now I have Christmas holidays and can play the whole day with ConTeXt. I tested a little the export function. There is one thing I have on my wishlist: is it possible to get a pagebreak/ into the exported XML? The background is that I have often the requirement to include pagebreak-info in online-productions (for citation reasons) and that could be a very good starting point. In fact, in the moment at the position where a pagebreak occurs, the space (if it occurs at a space) is eaten up. Minimal example: \setupbackend [export=yes] \starttext \startchapter [title=Tufte Example] \startparagraph \dorecurse{10}{\input tufte} \stopparagraph \stopchapter \stoptext At the break of pg 2 to pg 3 you will find lump,skip (without the space) in the exported file. Having the pagebreaks would be a great thing for me. I'll send you a small patch to play with. - 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] Fwd: setuptex.csh usage
On 31-12-2010 1:48, Alan BRASLAU wrote: Hello, setuptex (sh, bash, ...) has most definitions commented out and to work with the minimals seems to need only to set the PATH. Indeed. the commented code has to do with the fact that in the past (unix) distributions tended to set variables when installing e.g. tetex and as environment variables overload those in a cnf file they needed to be nilled beforehand. That problem has gone away with texlive. setuptex.csh is less maintained, it appears. I no longer use (t)csh and I see that Mojca and Arthur propose to remove this script. I have no objection, but it does appears from this thread that it is indeed still used. there is no harm in keeping it around I guess 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] Selecting pdf version
2011/1/2 luigi scarso luigi.sca...@gmail.com On Sun, Jan 2, 2011 at 3:20 PM, Jean-Philippe Rey jean-philippe@ecp.fr wrote: Dear all, I am looking for a way to choose the pdf version generated by ConTeXt. On my system, ConTeXt produces pdf 1.5 files, but my printshop doesn't like them and asks for pdf 1.4 files. Is there a way to tell ConTeXt to produce pdf 1.4 files ? \pdfminorversion4 I'm pretty sure that this doesn't actually disable extra features, just writes a different minor version. So PDFs might still break in printshop. Regards, Vedran Miletić ___ 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] Selecting pdf version
Le 2 janv. 2011 à 15:41, luigi scarso a écrit : On Sun, Jan 2, 2011 at 3:20 PM, Jean-Philippe Rey jean-philippe@ecp.fr wrote: Dear all, I am looking for a way to choose the pdf version generated by ConTeXt. On my system, ConTeXt produces pdf 1.5 files, but my printshop doesn't like them and asks for pdf 1.4 files. Is there a way to tell ConTeXt to produce pdf 1.4 files ? \pdfminorversion4 Thank you very much. -- or change printshop I am using the university printshop. I asked them to upgrade their system. They answered that it was too costly whereas pdf versions 1.5 and further add only interactive features and don't bring any improvement for printing documents. Thanks again, -- 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 ___
Re: [NTG-context] Selecting pdf version
2011/1/2 Jean-Philippe Rey jean-philippe@ecp.fr: I am using the university printshop. I asked them to upgrade their system. They answered that it was too costly whereas pdf versions 1.5 and further add only interactive features and don't bring any improvement for printing documents. 1.5 also adds support for layers (optional content), which allow the exchange of text for different languages by placing them on separate layers (schwarzfilmtausch). Best Martin ___ 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] updating in texlive
Hi all, a Happy New Year to all of you! Here's a small question: from time to time, as a mental exercise (and because I like a backup), I try to bring my texlive installation up to date. I have copied these relevant files over from my minimal tree: - luatex binary - mtxrun - texmfcnf.lua (with modifications, of course) then unzipped the latest ConTeXt. Everything works - but I get no hyphenation. For a simple test file like: \mainlanguage[en] \starttext \hyphenatedword{philosophically} \stoptext I see in the log file mkiv lua stats : loaded patterns - en::2 but no hyphenation is given. in a run with the minimals, I see: mkiv lua stats : loaded patterns - en::2 mkiv lua stats : language load time - 0.155 seconds , nofpatterns: 1 (the last line is not present in the log from texlive). I don't see anything wrong in cont-en.log, so I wonder how I can find out why the patterns are not applied? All best Thomas ___ 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 ___