Re: [NTG-context] context with mavericks: broken
On 11/19/2013 7:52 AM, Otared Kavian wrote: Hi Andrea, According to Wolfgang Schuster and some others removing the file Skia.ttf may solve the problem. Please read the thread no, it's a ruby issue (mkii related) switching to mkiv solves the problem http://www.ntg.nl/pipermail/ntg-context/2013/075689.html and more precisely http://www.ntg.nl/pipermail/ntg-context/2013/075701.html Best regards: OK On 19 nov. 2013, at 00:59, Andrea Valle va...@di.unito.it mailto:va...@di.unito.it wrote: Dear, long time since I have posted to the list but still a dedicated ConTeXt user… Now, I’ve upgraded to Mavericks. No way to use ConTeXt. I’ve also installed texlive 2013 and I installed the available updates. But still my ConTeXt is broken (I’m typesetting from TeXShop via GUI menu). I always get this: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501: invalid multibyte escape: /\xFF/ (SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in `main’ I can understand it has something to do with ruby but nothing else. ? Many thanks Best -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- http://www.youtube.com/user/vanderaalle -- andrea.va...@unito.it mailto:andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- http://www.youtube.com/user/vanderaalle -- andrea.va...@unito.it mailto:andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl mailto: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 ___ -- - 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] How to use local layout parameters (instead of global ones)?
\definemeasure[h1][1.2\measured{w1}+26mm] \definemeasure[h2][1.2\measured{w2}+26mm] \measured gives me this error (*Undefined control sequence*): *\17h1 ^^@-1.2\measured* * {w1}+26mm* *\measure ...sname \csname \??measure #1\endcsname* * \else \zeropoint \fi* *\page_layouts_synchronize ...tparameter \c!height* * }\ifx \p_page_layouts_heig...* *inserted text ...yout \previouslayout \page_layouts_synchronize* * \page_layouts_check_next \...* *\setup_layout ...out :}[#1]\the \everysetuplayout* * \the \everyswitchlayout \l...* *\syst_helpers_double_empty_one_spaced ...1[{#2}][]* I am using ConTeXt ver: 2013.04.20. So I tried to use \dimexpr: \definemeasure[h1][\the\dimexpr 1.2\measure{w1}+26mm\relax] \definemeasure[h2][\the\dimexpr 1.2\measure{w2}+26mm\relax] but it gives me this error (there is a problem with the decimal point in 1.2 because there is no error when I put an integer instead): *\17w1 .-0.* *7500\paperwidth* *\measure ...sname \csname \??measure #1\endcsname* * \else \zeropoint \fi* *\17h1 r-\the \dimexpr 1.2\measure {w1}* * + 26mm \relax* *\measure ...sname \csname \??measure #1\endcsname* * \else \zeropoint \fi* *\page_layouts_synchronize ...tparameter \c!height* * }\ifx \p_page_layouts_heig...* ___ 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] context with mavericks: broken
On 19 Nov 2013, at 10:25, Hans Hagen pra...@wxs.nl wrote: On 11/19/2013 7:52 AM, Otared Kavian wrote: Hi Andrea, According to Wolfgang Schuster and some others removing the file Skia.ttf may solve the problem. Please read the thread no, it's a ruby issue (mkii related) Mavericks' ruby is: $ ruby --version ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13] ___ 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 use local layout parameters (instead of global ones)?
On 11/19/2013 11:20 AM, Géry Ogam wrote: \definemeasure[h1][1.2\measured{w1}+26mm] \definemeasure[h2][1.2\measured{w2}+26mm] then use \dimexpr\measure{w2}\relax \measured gives me this error (/Undefined control sequence/): old 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 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] windows 64 bit
Hi, Thanks to Akira and Mojca the garden now ships 32 as well as 64 bit native windows binaries. I adapted the mtx-update scripts and setuptex and these are now included. If your machine is 64 bit, and the bins are 32 bit, one option is to -- run first-setup once -- then run first-setup with --platform=win64 keep in mind that you need to adapt your path (of set) or start a new console with setuptex (btw, better consoles than cmd are 'console2' and 'conemu') If all fails, then -- remove texmf-mswin -- download the installation zip and unzip it -- remove the status file -- run first-setup with where luatex.exe you can see what binary is taken the 64 bit versions run faster 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] context with mavericks: broken
Akira Kakuto suggested me this: Please add a line #encoding: ASCII-8BIT at the top of /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb that fixed my problem, which is related to the texlive distro according to Hans, which is older than current thanks to all! -a- PS: btw, should I consider to switch to MkIV? I mean, at the moment I’m not interested into Lua capabilities, but is mkII intended as a leggy support? -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- http://www.youtube.com/user/vanderaalle -- andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) On 19 Nov 2013, at 11:19, Taco Hoekwater t...@elvenkind.com wrote: On 19 Nov 2013, at 10:25, Hans Hagen pra...@wxs.nl wrote: On 11/19/2013 7:52 AM, Otared Kavian wrote: Hi Andrea, According to Wolfgang Schuster and some others removing the file Skia.ttf may solve the problem. Please read the thread no, it's a ruby issue (mkii related) Mavericks' ruby is: $ ruby --version ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13] ___ 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] context with mavericks: broken
but is mkII intended as a leggy support? legacy! :) damn corrector -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- http://www.youtube.com/user/vanderaalle -- andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) On 19 Nov 2013, at 11:19, Taco Hoekwater t...@elvenkind.com wrote: On 19 Nov 2013, at 10:25, Hans Hagen pra...@wxs.nl wrote: On 11/19/2013 7:52 AM, Otared Kavian wrote: Hi Andrea, According to Wolfgang Schuster and some others removing the file Skia.ttf may solve the problem. Please read the thread no, it's a ruby issue (mkii related) Mavericks' ruby is: $ ruby --version ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13] ___ 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] context with mavericks: broken
On 11/19/2013 11:40 AM, Andrea Valle wrote: PS: btw, should I consider to switch to MkIV? I mean, at the moment I’m not interested into Lua capabilities, but is mkII intended as a leggy support? it will stay but unchanged ... eventually the minimals will default to luatex only (leaner and meaner) so mkiv is the way to go 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] Unexpected behaviour of enumeration in mkiv
2013/11/18 Wolfgang Schuster schuster.wolfg...@gmail.com: Am 15.11.2013 um 17:02 schrieb Thomas Möbius kont...@thomasmoebius.de: Hi, please have a look at the minimal example at the bottom. I am typesetting theorems and lemmata which are numbered consecutively within chapters in a book. I used the same code for a document written in mkii, and I thought I could just reuse it in mkiv. Obviously, there is something I am missing. Question: How do I get the same output when compiling the following code with 'context' as when compiled with 'texexec'. When compiled with 'context', the chapter number is missing in the numbering of theorems. Lemmas are not numbered at all. ~~~snip~~~ \setupenumerations [title=yes, style=normal, list=all, before={\blank[big]}, after={\blank[big]}, location=serried, Change “location=serried” to “alternative=serried”. width=broad, distance=0.5em, headstyle=bold, titlestyle=bold, way=bychapter, conversion=numbers] You have to change “conversion” to “numberconversion” but this isn’t necessary because numbers are the default conversion format. To have chapter numbers as part of the counter add “prefix=yes”. \defineenumeration [theorem] [text=Theorem, listtext={Theorem }] \defineenumeration [lemma] [text=Lemma, listtext={Lemma }, number=theorem] To use the counter of another enumeration use “counter=theorem”, not “name=theorem”. Wolfgang Thanks Wolfgang for the quick answer. I changed my code accordingly. The prefix=yes option, though, does not entirely do as I expect it. It adds the chapter+section number as a prefix to each theorem (and lemma). As I have way=bychapter in my options, though, it doesn't reset after a new section started (which is what I want!). The effect is odd as you can see in the minimal example. I only want to have the chapter number as a prefix. It's probably simple? difficult? Minimal example: ~~~snip~~~ \setupenumerations [title=yes, style=normal, list=all, before={\blank[big]}, after={\blank[big]}, alternative=serried, width=broad, distance=0.5em, headstyle=bold, titlestyle=bold, way=bychapter, prefix=yes] \defineenumeration [theorem] [text=Theorem, listtext={Theorem }] \defineenumeration [lemma] [text=Lemma, listtext={Lemma }, counter=theorem] \starttext \chapter{First chapter} \section{First section} \theorem Hello \theorem Hello \lemma Hello \theorem Hello \section{Second section} \lemma Hello \theorem Hello \chapter{Second chapter} \section{First section} \theorem Hello \lemma Hello \section{Second section} \lemma Hello \theorem Hello \stoptext ~~~snip~~~ ___ 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] (critical edition) nesting linenotes
On 11/18/2013 11:25 PM, Hans Hagen wrote: [...] \unexpanded\def\doCritApp#1#2#3% {\startlinenote[#1]{#2 #3}(#2)\stoplinenote[#1]} \newcounter\MyCounter \unexpanded\def\CritApp {\doglobal\increment\MyCounter \normalexpanded{\doCritApp{Varia:\MyCounter}}} [...] so, in your macro you need to make sure that the counter (1) gets incremented global and (2) gets expanded in time. Many thanks for your help, Hans. I know that it works, but I cannot understand what it actually the above commands do. Where could I find what expansion is? (Sorry for the basic question, but I don’t know what it is.) Many thanks for your help again, Pablo -- http://www.ousia.tk ___ 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] context with mavericks: broken
thanks, got it -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.fonurgia.unito.it/andrea/ -- http://www.flickr.com/photos/vanderaalle/sets/ -- http://vimeo.com/vanderaalle -- http://www.youtube.com/user/vanderaalle -- andrea.va...@unito.it -- This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous. (Jeffrey 'The Dude' Lebowski) On 19 Nov 2013, at 13:17, Hans Hagen pra...@wxs.nl wrote: On 11/19/2013 11:40 AM, Andrea Valle wrote: PS: btw, should I consider to switch to MkIV? I mean, at the moment I’m not interested into Lua capabilities, but is mkII intended as a leggy support? it will stay but unchanged ... eventually the minimals will default to luatex only (leaner and meaner) so mkiv is the way to go 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 ___ ___ 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] (critical edition) verses and margin data ranges in page
Hi Thomas, I guess it might be interesting to have the following feature: a command that prints the range of lines on the page. \setupheadertexts[firstlineinpage--lastlineinpage] \getmarking[chapter] \starttext \startlinenumbering \dorecurse{200}{This is verse number \recurselevel.\\} \stoplinenumbering \stoptext I think this might be a command such as \getrangeinpage[linenumbering]. Also a similar feature would be useful for margin data (in critical editions, margin data are mainly for pages of canonical editions). In that case, the command could be something similar to: \definemargindata[Olearius] \getrangeinpage[Olearius] Two examples in which these could make sense: In any poetry edition (such as Homer’s works), verse ranges in page headers are extremely helpful for readers. For Plato or Aristotle, the Stephanus or Bekker pagination is important to locate passages. Having also the range in the headers could be very helpful to the reader. In this case, the range should start with the first margin data in page only if the page starts there. Otherwise, the last “open” margin data (from previous page) should start the range in page. I hope it helps, Pablo -- http://www.ousia.tk ___ 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] (critical edition) counter range in page
Hi Thomas, after thinking about the issue I wrote in my last message, I guess that implementing a general method with any counter could be better. I mean, implement three commands that could be applied to any counter: \getrangeinpage: first--last counter in page. \getfirstinpage: first counter in page. \getlastinpage: last counter in page. With first in page, as I wrote in my previous message, I don’t mean the first that happens in page, if the page doesn’t begin with it, but the last opened in previous page.. To be able to get the first in page and last in page is important in cases where works are divided in books and chapters. Information in headers should contain both. I think that the general method is a better approach (although I know that margin data aren’t counters [maybe this should be implemented in a different way]). I hope it helps, Pablo -- http://www.ousia.tk ___ 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] Space before chapters
Dear All, after two hours of investigating wiki and various commands I am giving up... Is there any way to set a bit of white space before my chapter title? (1) I've thought that before={\blank[20mm]} should do the job. It works for sections, but here I suspect it is ignored as my chapter start on a new page. (2) numbercommand=\groupedcommand{\blank[20mm]}{\blank[4mm]} - this works as expected, but only for numbered titles - I need it also for TOC and Preface. (3) commandbefore={\blank[20mm]} - it inserts the space between the number and title I have no idea what else to try... \setuphead[chapter][ alternative=middle, %before={\blank[20mm]}, %commandbefore={\blank[20mm]}, numbercommand=\groupedcommand{\blank[20mm]}{\blank[4mm]}, %numbercommand=\groupedcommand{}{\blank[4mm]}, ] \starttext \startfrontmatter \chapter{Intro}text \startfrontmatter \startbodymatter \chapter{Chapter}text \stopbodymatter \stoptext Any help is highly appreciated. Thanks, Jan ConTeXt 2013.11.14 Win 7 ___ 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] Space before chapters
On 11/19/2013 9:24 PM, Jan Tosovsky wrote: Dear All, after two hours of investigating wiki and various commands I am giving up... Is there any way to set a bit of white space before my chapter title? (1) I've thought that before={\blank[20mm]} should do the job. It works for sections, but here I suspect it is ignored as my chapter start on a new page. (2) numbercommand=\groupedcommand{\blank[20mm]}{\blank[4mm]} - this works as expected, but only for numbered titles - I need it also for TOC and Preface. (3) commandbefore={\blank[20mm]} - it inserts the space between the number and title I have no idea what else to try... \setuphead[chapter][ alternative=middle, %before={\blank[20mm]}, %commandbefore={\blank[20mm]}, numbercommand=\groupedcommand{\blank[20mm]}{\blank[4mm]}, %numbercommand=\groupedcommand{}{\blank[4mm]}, ] \starttext \startfrontmatter \chapter{Intro}text \startfrontmatter \startbodymatter \chapter{Chapter}text \stopbodymatter \stoptext Any help is highly appreciated. before={\blank[force,20mm]}, whitespace at the top of a page is discarded otherwise - 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] EPUB woes
Keith, Maybe you should explore an XML format that can be transformed directly to epub. You'd also be able to write a style sheet with ConTeXt that would out put a PDF as well. I think TEI-Lite is a good starting point. Since you can make your own commands in ConTeXt, it will never be able to intelligently map all commands on to simple HTML. On Mon, Nov 18, 2013 at 10:12 AM, Keith J. Schultz schul...@uni-trier.dewrote: Am 18.11.2013 um 16:33 schrieb Hans Hagen pra...@wxs.nl: On 11/18/2013 4:11 PM, Keith J. Schultz wrote: Hi Hans, Am 18.11.2013 um 13:21 schrieb Hans Hagen pra...@wxs.nl: On 11/18/2013 10:00 AM, Keith J. Schultz wrote: 2) Now, what a EPub-READER must implement to handle is very little. There are HARDLY ANY provisions that a certified EPuB-READER has to implement any particular engine or features therein to display/render the information contain in the EPub-file/wrapper. right, and I'm not going to waste time on it till i have a decent ebook reader that behaves well The point you are missing is that the ereaders are behaving well. They are following the epub standard, and that to the letter of the standard. The problem is that the standard does not enforce any particular implementation. If you look at the slow progress of the standard that actually requires a full implementation of the HTML5 standard. That wait will very long. sure, and every time i see an epub novel i realize that for something like that one really can stick to rather dumb html ... the point is that one cannot expect context to output simple everywhere accepted html from complex rendered input ... I agree fully. But, Since there are those that wish to produce epubs aka ebooks, they should not be doing complex layout. One can always go from simple to complicated in needed, if there were commands dedicated to epub/ebooks/html. As I had pointed out in my last post below. Furthermore, ereaders are made by companies more interested in profits than spending a few Euros more to put decent HTML engines into their readers. Why they do not do that is beyond me! 3. Modify the way in which ConTeXt generates the XML files. Ideally, I should be able to write something like Would be nice if there where commands in ConTeXt or a module for defining what should go into the CSS and a mode epub where the ConTeXt commands are converted to suitible HTML5 structures that are suitiable for most ereaders. Features: 1) margins in percentages 2) font sizes based on em 3) a new file for every chapter optional for sections user defined Just a few. Lots more can be found in any decent documentation on writing ebooks. context outputs xml and as a bonus provides a css too ... one can always convert that xml to his/her ebooks liking .. maybe at some point the mtx-epub script will do that I always to like to look at programming as modular and would think that a epub/ebook module would be nice that maps there are commands for layingout ebooks. these commands can then be mapped back to standard context commands. in that case code in xml and either processit by context or transform it into something ebooks can render For some interested in producing a epub then can use the conventions for producing ebooks and ConTeXt can provide the math conversions to regular page dimensions used in PDFs for proofing or creating a printed version. It would also make the creation of EPubs from ConTeXt a simple parsing exercise. so far i had no projects where epub was needes so it has a low priority and i still read paper books (or when i would have ebooks i wouldn't need to render them) ... pdfs views quite well on e.g. nexus 7 devices and i assume the upcoming sony high res ebook will also do pdf well Well I did start the discussion. Just offer my 2 Euro cents worth. Especially, since it comes up every now and then. Furthermore, I there was a simple way to create epubs/books with ConTeXt more would use this feature. I have used up enough of or time. regards Keith. ___ 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 :
Re: [NTG-context] [***SPAM***] Textile
Bill, With more recent version of pandoc, you can write filters for it in python. http://johnmacfarlane.net/pandoc/scripting.html On Sat, Nov 16, 2013 at 8:09 AM, Bill Meahan subscribed_li...@meahan.netwrote: To save possibly reinventing the wheel, has anyone written a filter for processing Textile markup analogous to the filters for Markdown and reStructuredText? I tried using Pandoc to provide multiple formats of output (ConTeXt, EPUB, MS Word) from a common source but Pandoc is excessively tied to Markdown which does not understand the difference between emphasized text and italic text and only outputs {\em word}, emword/em, \emph{word} and so forth which means I have to go through every instance of the tag and change tags where I want explicit italics as I use other typographical techniques (small-caps or sans-serif or ...) for emphasis but some things (book titles, ship names, foreign words/phrases et. al) are always set in italics by convention. Pandoc continues its map everything to em ways even if the input is textile or (X)HTML. There are some other neat advantages to Textile as well such as local styling (CSS or \begin{environment}... or \startenvironment ...) I know a lot of computer languages now and I really don't want to learn Lua or Haskell -- I'm retired! :) -- Bill Meahan, Westland, Michigan “Writing is like getting married. One should never commit oneself until one is amazed at one's luck.” —Iris Murdoch ___ 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] Linespacing in TOC
Dear All, I'd like to tweak a default TOC linespacing... I've 'invented' this: \setupcombinedlist[content][list=chapter, alternative=c] \starttext \title{Table of Contents} \setupinterlinespace[line=0.8ex] % too small, just for testing \placecontent \setupinterlinespace[line=2.75ex] %\setupinterlinespace[reset] \startfrontmatter \chapter{Intro}text text text \startfrontmatter \startbodymatter \chapter{Chapter}text \stopbodymatter \startbackmatter \chapter{Appendix}text \stopbackmatter \stoptext I cannot use simply the \completecontent command as the linespacing is effective already between the title and the first entry line... so I am splitting the title and the rest and set the linespacing just before list rendering. Finally I am resetting the value manually. The 'reset' keyword seems to be somehow ignored... Are there better ways to tweak linespacing in TOC ? Thanks, Jan ___ 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] Space before chapters
On 2013-11-19 Hans Hagen wrote: On 11/19/2013 9:24 PM, Jan Tosovsky wrote: Is there any way to set a bit of white space before my chapter title? (1) I've thought that before={\blank[20mm]} should do the job. It works for sections, but here I suspect it is ignored as my chapter start on a new page. before={\blank[force,20mm]}, whitespace at the top of a page is discarded otherwise I was hoping there is a simple option for this (any counterpart to XSL-FO space-before.conditionality=retain property)... And it is :-) Thanks for a quick response. I'll keep this in mind. Jan ___ 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 use local layout parameters (instead of global ones)?
then use \dimexpr\measure{w2}\relax It works, thank you. ___ 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] Linespacing in TOC
On 11/19/2013 11:48 PM, Jan Tosovsky wrote: Dear All, I'd like to tweak a default TOC linespacing... I've 'invented' this: \setupcombinedlist[content][list=chapter, alternative=c] \starttext \title{Table of Contents} \setupinterlinespace[line=0.8ex] % too small, just for testing \placecontent \setupinterlinespace[line=2.75ex] %\setupinterlinespace[reset] \startfrontmatter \chapter{Intro}text text text \startfrontmatter \startbodymatter \chapter{Chapter}text \stopbodymatter \startbackmatter \chapter{Appendix}text \stopbackmatter \stoptext I cannot use simply the \completecontent command as the linespacing is effective already between the title and the first entry line... so I am splitting the title and the rest and set the linespacing just before list rendering. Finally I am resetting the value manually. The 'reset' keyword seems to be somehow ignored... Are there better ways to tweak linespacing in TOC ? \title{Table of Contents} \start \setupinterlinespace[line=0.8ex] % too small, just for testing \placecontent \stop - 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 ___