Re: [NTG-context] frame and numbering of code snippets using vim-module
On 08.06.2012 04:31, Aditya Mahajan wrote: On Thu, 7 Jun 2012, Aditya Mahajan wrote: Besides there should not be a new line number after a line break. This is still unresolved. The github branch should fix this. (See tests/vim/19-linenumber-break.tex). Can you test it with your document? To test the latest version, save t-syntaxhighlight.mkiv and 2context.vim from github in the current directory, and compile using context --mode=vim-dev filename It works great now (even without `--mode=vim-dev`). The frame ist wide enough and the numbering after a line break continues in the next line, too. Great. Thanks a lot. Xenia ___ 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] feature request for \getspr{}
On Fri, Jun 08 2012, Hans Hagen wrote: \setupspreadsheet [test] [period={{\bf\middlered .}}, comma={{\bf\middlegreen ,}}, split=yes] Thanks, that's fine! Just a minor fix in line 183: if split == yes then -- 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] back-up.lua; mtx-epub.lua
On 9-6-2012 02:38, Aditya Mahajan wrote: I never realized that there was a \setupdocument! it has been there for a while ... the idea is to set up some vars at the top (of whatever) and use them later (e.g. variables used in a title page or colofon). Nothing mandate, just convenience. This might be the best way to have a document title in ConTeXt: \startsetups document:start code to typeset document title \stopsetups \setupdocument [title={...}, author={...}, date={...}, ] e.g. interaction's title is set up so that in inherits from documents metadata:title etc 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] LuaLaTeX + fontspec: cannot compare documents with Acrobat
I use the identical font (TeX Gyre Pagella) when compiling with LuaLaTeX. I don't see how it can be a font issue: - TeX Gyre Pagella: works with ConTeXt, works with XeLaTeX, does not work with LuaLaTeX - Dejavu Sans (and any other font I tried): Works with XeLaTeX but not with ConTeXt or LuaLaTeX. -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya Mahajan Sent: Friday, June 08, 2012 7:27 PM To: mailing list for ConTeXt users Subject: Re: [NTG-context] LuaLaTeX + fontspec: cannot compare documents with Acrobat On Fri, 8 Jun 2012, Jörg Weber wrote: Some further testing showed that the simple document with palatino compares fine, but with dejavu it is not comparable. With XeLaTeX, setting palatino as the main font, still does not work. ConTeXt uses TeX Gyre Pagella rather than true Palatino. That might be a source of difference. 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] back-up.lua; mtx-epub.lua
On Jun 9, 2012, at 1:31 AM, Hans Hagen wrote: On 8-6-2012 23:28, Andy Thomas wrote: Thank you for the suggestions. I will try to implement it, but might need until Sunday. - I've added some keys to \setupexport: author title subtitle firstpage (also new key in mult) lastpage (aso new key in mult) - The title, subtitle and author inherit from \setupinteraction which already inherits from \setupdocument (metadata namespace). - In mtx-epub these variables are picked up (from the epub job specification) and firstpage / lastpage are added to the images list. Nothing has been checked and the firstpage/lastpage image names have to be pushed into some epub metadata blob I guess but that's for you to figure out in mtx-epub. It's probably best to assume that the images are present and suitable for epub. I took the new keys and added the cover (page) generator to mtx-epub.lua. The name is hard coded (cover.xhtml), so if a user decides on naming the original file cover.tex... The validator likes it, next is the hard part: generating a valid xhtml. Is the xhtml generator only for the epub, i.e. can it be changed or is another output file just for the epub appropriate? Calibre is already happy with it and shows it just fine. Please note that some ebook readers (e.g. apple devices, calibre) have a nasty caching mechanism. If you want to see the new changes, I found that it is best to delete the old book before replacing it. Andy https://dl.dropbox.com/u/9089117/mtx-epub_4.lua P.S. I have no clue, why 'images[firstpage] = firstpage' works. I would expect 'images[#images+1] = firstpage' 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 ___
[NTG-context] How to enable tabular numerals with simplefonts and otf?
Hi, How can I enable tabular numerals please? Test file, that does not work: --8---cut here---start-8--- \usemodule[simplefonts] \setmainfont[LinLibertineIO][size=10pt, tnum=yes] \starttext \addff{tnum} \setff{tnum} 565656565656X\par X \stoptext --8---cut here---end---8--- TIA for any help! -- 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 ___