Re: [NTG-context] prevgraf change if page break occurs in a paragraph
On 3/4/2018 10:59 PM, Joseph Canedo wrote: I am aware that ConTeXt betas might use experimental luaTeX changes (I use both stable and latest and run both), just wanted to report a change not really, as we don't ship beta luatex's so context normally either has adaptive code or delays usage for a year in prevgraf result. Apparently with latest beta it reports the number of lines in last page of paragraph (only tested with pars on 2 pages maximum, haven’t tried longer ones). Simple MWE reproduces the case: \starttext \dorecurse{15}{ A\\ B\\ C\\ D\\ E\\ F\\ G\\ H\\ I\\ J\\ K\\ L \\M\\ N. \the\prevgraf } \stoptext Using ConTeXt online always reports « 14 » after the letters, latest ConTeXt reports different numbers if the par before it has been split in 2 pages. well, i could store the old prevgraf (of make that an option) but it's a fact that a top of page is basically a change (in prevgraf and prevdepth) what do you use prevgraf for? 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 ___
[NTG-context] prevgraf change if page break occurs in a paragraph
Hello, I am aware that ConTeXt betas might use experimental luaTeX changes (I use both stable and latest and run both), just wanted to report a change in prevgraf result. Apparently with latest beta it reports the number of lines in last page of paragraph (only tested with pars on 2 pages maximum, haven’t tried longer ones). Simple MWE reproduces the case: \starttext \dorecurse{15}{ A\\ B\\ C\\ D\\ E\\ F\\ G\\ H\\ I\\ J\\ K\\ L \\M\\ N. \the\prevgraf } \stoptext Using ConTeXt online always reports « 14 » after the letters, latest ConTeXt reports different numbers if the par before it has been split in 2 pages. Thanks Joseph ___ 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] steps module
Adjust shading and outline of cells and text in steps module, or not available as written? Something like \startSTEPtable[frame=off], etc. I have grabbed the code to modify for local input, but I have made a terrible mess of it! ___ 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] export breaks float placement
On 3/4/2018 4:15 PM, Alan Braslau wrote: On Sun, 4 Mar 2018 13:51:39 +0100 Henning Hraban Ramm wrote: normally you will run like "context --mode=export --result=myexport" or so where you wrap settings specific to an export in modes I (can) run several "results" for most of my projects, e.g. lowres, print res, imposed (arranged) and epub. But I insist it makes no sense that (epub) export breaks image placement in the pdf. Why add another lengthy TeX run? Because when one really wants a proper structured file from a source one should also to some respect adapt the style for that run. Also, 'lengthy tex run' is no argument (most of my tex runs are not that slow ... it also depends on the efficiency of styling) ... and when working on a document i'd never generate an export every run (as the export itself adds 20% overhead!) ... if i care about an export at all, it's an extra run in a workflow (idem for other products). the more features we add to mtxrun the more complex it will become (and no one will use them then) Hans, please, it’s not about adding features, it’s about an existing feature that unnecessarily influences/disables an other. In this case it's disabled because the result is a garbled export and you don't want that either do you? We need to play safe. I might spent time on if some customer would demand it and pay for it but i never ran into a customer who had any demand for export (of advanced pdf). I do this (--mode=export --result=exported) and find it somewhat awkward. I also do not understand why one should not/cannot export systematically, thus creating multiple output, nor do I "really" understand why exporting *has* to break the floats (and what else?). The export is a structured export so one one has to handle rendering (and float placement) in a css or wherever .. turning rendered side float placement into something export is asking for troubles (as lots of - also out of sequence - shifting around etc happen, e.g they can end up in the margin in which case flushing happens completely different) and i don't look forward to a decade of answering why this or that doesn't work out as expected (the same is true for tables and itemize and ... : you get the structure as good as possible from what is basically a reverse engineered rendering) ... so, instead you should wonder why the export works at all As a result, this is a *feature* (export) that I can but rarely use. Normally one will have a neutrally encoded source that can become anything you want. Basically the export is a side effect of tagged pdf which is also a lunatic feature only in pdf because publishers don't want to distribute a proper source which would be way more powerful to re-render and as said i never had to produce either tagged of exported content myself (which would then give me feedback about what could be done better). Btw, try to reverse engineer a realistic picture of your house from an abstract painting of that same house ... 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] export breaks float placement
On Sun, 4 Mar 2018 13:51:39 +0100 Henning Hraban Ramm wrote: > > normally you will run like "context --mode=export > > --result=myexport" or so where you wrap settings specific to an > > export in modes > > I (can) run several "results" for most of my projects, e.g. lowres, > print res, imposed (arranged) and epub. > > But I insist it makes no sense that (epub) export breaks image > placement in the pdf. Why add another lengthy TeX run? > > > the more features we add to mtxrun the more complex it will become > > (and no one will use them then) > > Hans, please, it’s not about adding features, it’s about an existing > feature that unnecessarily influences/disables an other. I do this (--mode=export --result=exported) and find it somewhat awkward. I also do not understand why one should not/cannot export systematically, thus creating multiple output, nor do I "really" understand why exporting *has* to break the floats (and what else?). As a result, this is a *feature* (export) that I can but rarely use. Alan ___ 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] Table of contents: style and subject
On Sun, 04 Mar 2018 06:29:53 -0700, Hans Hagen wrote: A working minimal example follows. Is this the recommended practice? Can it be streamlined further? : \placecontent \placelist[content] [subject,section,subsection,subsubsection] Hm, toggling lines 12-13 below: Line 13 makes the TOC disappear entirely: == \setuphead[subject] [incrementnumber=yes, % keep track of the number number=no]% but don't show it \starttext % Approach I \starttitle[title={Table of Contents},reference={}] \start \setuplist[subject,section,subsection,subsubsection] [alternative=c,style=bold] \setupcombinedlist[content] [list={subject,section,subsection,subsubsection}] % \placecontent % line 12 \placelist[content] % line 13 [subject,section,subsection,subsubsection] \stop \stoptitle \page \startsection[title={Section One},reference={}] new page \page \stopsection \startsection[title={Section Two},reference={}] new page \page \stopsection \startsubject[title={Subject},reference={}] \stopsubject \stoptext == -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ 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] Table of contents: style and subject
On 3/4/2018 2:01 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Sun, 04 Mar 2018 02:47:17 -0700, Hans Hagen wrote: On 3/4/2018 4:27 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Here's a strange situation: In approach I) we get the subject heading in the TOC, but style=bold doesn't work. In approach II) style=bold works, but the subject heading doesn't show up. For each approach, how do we get both subject heading and style=bold in the TOC? you set up individual lists elements at another level \setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold] Ok - see below. looks bad this: \setupinterlinespace[line=1.4ex] Yes, residue from another experiment.. Between I) and II), which is the current recommended standard practice for MKIV? A working minimal example follows. Is this the recommended practice? Can it be streamlined further? Best wishes Idris == \setuphead[subject] [incrementnumber=yes, % keep track of the number number=no] % but don't show it \starttext % Approach I \starttitle[title={Table of Contents},reference={}] \start \setuplist[subject,section,subsection,subsubsection] [alternative=c,style=bold] \setupcombinedlist[content] [list={subject,section,subsection,subsubsection}] \placecontent \placelist[content] [subject,section,subsection,subsubsection] \stop \stoptitle \page \startsection[title={Section One},reference={}] new page \page \stopsection \startsection[title={Section Two},reference={}] new page \page \stopsection \startsubject[title={Subject},reference={}] \stopsubject \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 ___ -- - 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] Table of contents: style and subject
On Sun, 04 Mar 2018 02:47:17 -0700, Hans Hagen wrote: On 3/4/2018 4:27 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Here's a strange situation: In approach I) we get the subject heading in the TOC, but style=bold doesn't work. In approach II) style=bold works, but the subject heading doesn't show up. For each approach, how do we get both subject heading and style=bold in the TOC? you set up individual lists elements at another level \setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold] Ok - see below. looks bad this: \setupinterlinespace[line=1.4ex] Yes, residue from another experiment.. Between I) and II), which is the current recommended standard practice for MKIV? A working minimal example follows. Is this the recommended practice? Can it be streamlined further? Best wishes Idris == \setuphead[subject] [incrementnumber=yes, % keep track of the number number=no]% but don't show it \starttext % Approach I \starttitle[title={Table of Contents},reference={}] \start \setuplist[subject,section,subsection,subsubsection] [alternative=c,style=bold] \setupcombinedlist[content] [list={subject,section,subsection,subsubsection}] \placecontent \stop \stoptitle \page \startsection[title={Section One},reference={}] new page \page \stopsection \startsection[title={Section Two},reference={}] new page \page \stopsection \startsubject[title={Subject},reference={}] \stopsubject \stoptext == -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 scratch.tex Description: TeX document ___ 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] export breaks float placement
Am 2018-03-04 um 10:49 schrieb Hans Hagen : > On 3/3/2018 5:13 PM, Alan Braslau wrote: >> On Sat, 3 Mar 2018 10:47:52 -0500 (EST) >> Aditya Mahajan wrote: >>> On Sat, 3 Mar 2018, Henning Hraban Ramm wrote: >>> And I can’t accept that the option of exporting to XML would (more or less) drastically and needlessly change the print layout! At least _please_ make it an option! >>> >>> In the meanwhile, you can do: >>> >>> \startmode[export] >>> \setupbackend[export=yes] >>> \stopmode >>> >>> and then run with `--mode=export` to get the export and without that >>> option to get the print layout. >>> >>> Aditya >> And, unfortunately, this "breaks" the PDF. Of course, one can always >> write a script that moves the PDF to a safe place, etc. but this is not >> ideal. > normally you will run like "context --mode=export --result=myexport" or so > where you wrap settings specific to an export in modes I (can) run several "results" for most of my projects, e.g. lowres, print res, imposed (arranged) and epub. But I insist it makes no sense that (epub) export breaks image placement in the pdf. Why add another lengthy TeX run? > the more features we add to mtxrun the more complex it will become (and no > one will use them then) Hans, please, it’s not about adding features, it’s about an existing feature that unnecessarily influences/disables an other. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ 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] export breaks float placement
On 3/3/2018 5:13 PM, Alan Braslau wrote: On Sat, 3 Mar 2018 10:47:52 -0500 (EST) Aditya Mahajan wrote: On Sat, 3 Mar 2018, Henning Hraban Ramm wrote: And I can’t accept that the option of exporting to XML would (more or less) drastically and needlessly change the print layout! At least _please_ make it an option! In the meanwhile, you can do: \startmode[export] \setupbackend[export=yes] \stopmode and then run with `--mode=export` to get the export and without that option to get the print layout. Aditya And, unfortunately, this "breaks" the PDF. Of course, one can always write a script that moves the PDF to a safe place, etc. but this is not ideal. normally you will run like "context --mode=export --result=myexport" or so where you wrap settings specific to an export in modes the more features we add to mtxrun the more complex it will become (and no one will use them 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] Table of contents: style and subject
On 3/4/2018 4:27 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Here's a strange situation: In approach I) we get the subject heading in the TOC, but style=bold doesn't work. In approach II) style=bold works, but the subject heading doesn't show up. For each approach, how do we get both subject heading and style=bold in the TOC? you set up individual lists elements at another level \setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold] looks bad this: \setupinterlinespace[line=1.4ex] Between I) and II), which is the current recommended standard practice for MKIV? See below and attached scratch. Toggle the two \start|stoptext environments. Best wishes Idris == \setuphead[subject] [incrementnumber=yes, % keep track of the number number=no] % but don't show it \starttext % Approach I \starttitle[title={Table of Contents},reference={}] \start \setupcombinedlist[content] [list={subject,section,subsection,subsubsection},alternative=c,style=bold] \setupinterlinespace[line=1.4ex] \placecontent \stop \stoptitle \page \startsection[title={Section One},reference={}] new page \page \stopsection \startsection[title={Section Two},reference={}] new page \page \stopsection \startsubject[title={Subject},reference={}] \stopsubject % \stoptext % \starttext % Approach I % \starttitle[title={Table of Contents},reference={}] % \start % \setupcombinedlist[{subject,section,subsection,subsubsection}] % [alternative=c,style=bold] % \setupinterlinespace[line=1.4ex] % \placecontent % \stop % \stoptitle % \page % \startsection[title={Section One},reference={}] % new page \page % \stopsection % \startsection[title={Section Two},reference={}] % new page \page % \stopsection % \startsubject[title={Subject},reference={}] % \stopsubject % \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 ___ -- - 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 ___