Re: [NTG-context] Ebooks with ConTeXt?
On 2019-12-10, Jan U. Hasecke wrote: > Am 09.12.19 um 22:13 schrieb Nicola: >> What is the current status of epub support in ConTeXt? >> >> I have never followed ConTeXt's development on the XML front too >> closely, but recently I have been asked to help format a text-only >> manuscript for publishing on platforms such as Kindle or Apple Books >> Store. Can ConTeXt be used (or perhaps even recommended) for that? Or >> would I have better luck with the proprietary tools (Kindle Create, >> iBooks Author)? > > Sorry, no info concerning ConTeXT. > > You don't have to use proprietary tools. An easy way to create ebooks > from Markdown files (or other sources) is Pandoc. https://pandoc.org/ > > I produce all of my ebooks in this way. In most cases they validate > without errors. If there are some errors though I use Calibre to fix > them manually. Thanks, I didn't think of Pandoc, I'll give it a try. In the past, I have tried to create some simple content (slides) with Markdown, but my conclusion was that if you know TeX, it doesn't make sense to use Markdown :) Perhaps this is a silly question (excuse my ignorance about the topic): what if you want to add some stylistic touches to your ebooks, such as initials? Or Non-breaking spaces? How about adding, say, a text box with a different background and a smaller font? *** Or fine control page numbering, headers, footnotes, ligatures, or the spacing between paragraphs, or center a separator as above? Do you need to modify the generated CSS for that, or would ConTeXt (or Pandoc) allow you to take care of (some of) those things? Nicola ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Ebooks with ConTeXt?
Am 09.12.19 um 22:13 schrieb Nicola: > What is the current status of epub support in ConTeXt? > > I have never followed ConTeXt's development on the XML front too > closely, but recently I have been asked to help format a text-only > manuscript for publishing on platforms such as Kindle or Apple Books > Store. Can ConTeXt be used (or perhaps even recommended) for that? Or > would I have better luck with the proprietary tools (Kindle Create, > iBooks Author)? Sorry, no info concerning ConTeXT. You don't have to use proprietary tools. An easy way to create ebooks from Markdown files (or other sources) is Pandoc. https://pandoc.org/ I produce all of my ebooks in this way. In most cases they validate without errors. If there are some errors though I use Calibre to fix them manually. HTH juh ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Blank page inserted when text reaches column's end
Thank you both. Neither approach removes the blank page with either version 2019.06.11 or 2019.12.06 on Linux. Is there a specific version of ConTeXt required? The code to generate the document resembles: \setuppagenumbering[alternative=doublesided,page=no] \installpagebreakhandler{last}{} \setuplayout[grid=yes] \starttext \startcolumnset[n=2] \input knuth \input lorem \input lorem \input knuth \dorecurse{3}{No TV and no beer make Homer something something.} \stopcolumnset \stoptext The second page remains, regardless of doublesided/singlesided or pagebreakhandler. Henri Menke pointed out that "page-cst.mkiv" contains an explicit line break associated with stoppagegrid: https://github.com/contextgarden/context-mirror/blob/f74c4055713ab52a11d12435eb04040ec6553129/tex/context/base/mkiv/page-cst.mkiv#L199-L201 Could this be grid itself be problematic? Cheers! ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Textbackground inside Layer?
Jon Wong schrieb am 06.12.2019 um 04:13: \setupwhitespace[line] % A line's spacing between paragraphs. \starttext \definetextbackground[InfoText][ location=paragraph, frame=on] You can't use "location=paragraph" because the argument of the \setlayer command is a simple horizontal box which doesn't create a paragraph unless you us additional command which create a paragraph. \definelayer[testlayer] \setlayer[testlayer][x=1cm,y=3cm]{% \startInfoText \stopInfoText } Simpler method: \setlayer [testlayer] [x=1cm, y=3cm] {\framed[framecolor=red]{TEXT}} or \setlayerframed [testlayer] [x=1cm, y=3cm] [framecolor=red] {TEXT} 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Ebooks with ConTeXt?
What is the current status of epub support in ConTeXt? I have never followed ConTeXt's development on the XML front too closely, but recently I have been asked to help format a text-only manuscript for publishing on platforms such as Kindle or Apple Books Store. Can ConTeXt be used (or perhaps even recommended) for that? Or would I have better luck with the proprietary tools (Kindle Create, iBooks Author)? Nicola ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with new beta
On 12/9/2019 3:34 PM, Ursula Hermann wrote: Dear List! If I want to do the test from the new beta on WinEdt (I have Windows 10) , normaly the test works fine. But today as I wanted to make the test, it did not work. \starttext \startmode[mkiv] \startluacode tex.sprint("hello") \stopluacode \startMPcode draw textext("hello") rotated 45 ; \stopMPcode \framed{hello} \stopmode \startnotmode[mkiv] \startMPcode draw textext("hello") rotated -45 ; \stopMPcode \framed{hello} \stopnotmode \stoptext After Compiling with ConTeXt it does not work. I have the following mistake? Command Line: context.exe --synctex=-1 "context-test.tex" If this is lmtx, can you wipe the cache (texm-cache) and run context --make en then? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Blank page inserted when text reaches column's end
Denis Maier schrieb am 09.12.2019 um 09:41: Am 09.12.2019 um 00:44 schrieb Thangalin: When text reaches the end of a column, it appears to trigger inserting a blank page. In the following code, \dorecurse{3} causes a blank page to appear but \dorecurse{2} does not. The only difference is that when set to 3, the additional text is written on the last line of the last column. This scenario results in a blank page. Any ideas how the blank page can be suppressed? \showgrid \setuplayout[grid=yes] \starttext \startcolumnset[n=2] \input knuth \input lorem \input lorem \input knuth \dorecurse{3}{No TV and no beer make Homer something something.} \stopcolumnset \stoptext Version: $ context --version mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2019.06.11 19:20 Thank you! What about: \installpagebreakhandler{last}{} (I have this in most of my documents, but I'm not sure it works with columnsets.) Better use this setup to get rid of the extra page in a doublesided document. \setuppagenumbering[page=no] 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] problem with a new installation of LMTX: Solved!
Dear Dalyoung, Thank you for the good news! Now I will add to the wiki the procedure I described, which you followed, but we have to find a way for people to get a zip file containing a complete tree of LuaMetaTeX which can be installed « by hand » under MacOS 10.15 Catalina. Maybe Hans or Mojca have a suggestion in this regard. Best regards: OK > On 9 Dec 2019, at 15:21, Jeong Dal wrote: > > Dear Otared, > > I followed your instruction. During the process, “mtxrun —generate” and > “context —make —all” work well. > > After rebooting the system, “context test.tex” produces a pdf output finally. > Wow! > It is a long way around, but I learned many things. > > Thank you for your help. > > Best regards, > > Dalyoung ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Problems with new beta
Dear List! If I want to do the test from the new beta on WinEdt (I have Windows 10) , normaly the test works fine. But today as I wanted to make the test, it did not work. \starttext \startmode[mkiv] \startluacode tex.sprint("hello") \stopluacode \startMPcode draw textext("hello") rotated 45 ; \stopMPcode \framed{hello} \stopmode \startnotmode[mkiv] \startMPcode draw textext("hello") rotated -45 ; \stopMPcode \framed{hello} \stopnotmode \stoptext After Compiling with ConTeXt it does not work. I have the following mistake? Command Line: context.exe --synctex=-1 "context-test.tex" Startup Folder: C:\Users\Hermann\AppData\Local\Temp\Temp1_cont-tmf.zip\tex\context\test\mkiv mtxrun | forcing cache reload resolvers | resolving | configuration files already identified resolvers | resolving | skipping configuration file 'selfautoparent:/texmf/web2c/texmfcnf.lua' (no valid format) resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua' resolvers | resolving | remembered file 'mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-mtx-context.lua' using hash 'lua::mtx-t-mtx-context.lua' resolvers | resolving | using suffix based filetype 'lua' resolvers | resolving | remembering file 'mtx-t-mtx-contexts.lua' using hash 'lua::mtx-t-mtx-contexts.lua' resolvers | resolving | remembered file 'mtx-t-mtx-context.lua' resolvers | resolving | remembered file 'mtx-context.lua' mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' There are no warnings, no errors, but it does not work. Why? _ ConTeXt Compilation Report (Pages: 0) Errors: 0 Warnings: 0 Bad Boxes: 0 Many thanks Uschi ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Line numbering in two column layout conflicts with marking
Any suggestions, how to solve this problem? Am 02.12.19 um 20:06 schrieb Oliver von Criegern: Dear list members, line numbering in a two column layout apparently conflicts with the marking mechanism. Consider the following example: \setupcolumns[n=2] \setuplinenumbering [ step=5, method=page, align=flushright, ] \definemarking[Test] \setupheadertexts[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}] \startbuffer \dorecurse{12}{words } \stopbuffer \starttext \startcolumns \startlinenumbering \marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par \marking[Test]{TWO}TWO \dorecurse{29}{\getbuffer}\par \marking[Test]{THREE}THREE \dorecurse{12}{\getbuffer}\par \stoplinenumbering \stopcolumns \stoptext In the result, the header of the first page reads "ONE -- THREE", despite marking "THREE" being placed in the third line of the second page. Without linenumbering, the header of the first page reads "ONE -- TWO", as is to be expected. Best regards, Oliver -- Dr. Oliver von Criegern Referat für IT und Digital Humanities Bayerische Akademie der Wissenschaften Alfons-Goppel-Str. 11 80539 München Tel.: 089-23031-1310 ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Eofill extension (Metafun)
Hello, Thank you for these explanations. Fabrice Le lun. 9 déc. 2019 à 03:21, Henri Menke a écrit : > On 12/9/19 10:02 AM, Fabrice Couvreur wrote: > > Hello, > > Is it possible to use the eofill extension in this code ? I tried without > > success. Thank you. > > No, eofill is basically just a frontend for the PDF primitive eofill, > which works on a single connected path that intersects itself. > > If that wasn't enough, the numberstriped instruction does not return a > path but a picture and pictures are immutable. > > > Fabrice > > > > \starttext > > \startMPcode > > path carre, disque; > > > > carre = fullsquare scaled 200; > > disque = fullcircle scaled 200; > > > > draw carre numberstriped (.25,15,5) withcolor \MPcolor{magenta}; > > fill disque withcolor white; > > > > draw carre withcolor \MPcolor{orange}; > > draw disque withcolor \MPcolor{orange}; > > > > path a[]; > > a1 = origin -- point 3.5 of carre; > > > > interim ahangle := 30; > > drawdblarrow a1 withpen pencircle scaled 1.5pt withcolor darkred; > > label.top("$R$", point 1/2 of a1); > > \stopMPcode > > \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://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Blank page inserted when text reaches column's end
Am 09.12.2019 um 00:44 schrieb Thangalin: When text reaches the end of a column, it appears to trigger inserting a blank page. In the following code, \dorecurse{3} causes a blank page to appear but \dorecurse{2} does not. The only difference is that when set to 3, the additional text is written on the last line of the last column. This scenario results in a blank page. Any ideas how the blank page can be suppressed? \showgrid \setuplayout[grid=yes] \starttext \startcolumnset[n=2] \input knuth \input lorem \input lorem \input knuth \dorecurse{3}{No TV and no beer make Homer something something.} \stopcolumnset \stoptext Version: $ context --version mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2019.06.11 19:20 Thank you! What about: \installpagebreakhandler{last}{} (I have this in most of my documents, but I'm not sure it works with columnsets.) Best, Denis ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___