Re: [NTG-context] bug in latest beta (2017.08.02 18:59)
On 8/3/2017 7:49 AM, Pablo Rodriguez wrote: On 08/03/2017 07:13 AM, Pablo Rodriguez wrote: On 08/02/2017 11:08 PM, Hans Hagen wrote: ok i uploaded a new beta (but with some experimental font stuff so who knows what happens now) I’m afraid I get a new crash with the same source (the log contains it): [...] lua error > lua error on line 1 in file tex-bug.tex: ...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You cannot set field glue_sign in a node of type glue_spec stack traceback: [C]: in function 'setfield' ...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in function 'setboxglue' ...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64> 1 >> \setupnote[footnote] 2 [align={hanging}] Hans, since it seems you don’t reproduce the bug, I wonder whether this might be caused by Linux 32bit luatex binaries being version 1.0.5 and Windows 64bt has version 1.0.6.x. no, it's more that i always have a newer luatex so older stuff has to be simulated 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] Cambria official typescript (mis)behavior
Am 2017-08-02 um 23:46 schrieb Aditya Mahajan: > I occasionally experience a similar issue (after an update wrong fontface is > used, especially with math fonts) and reloading the fonts database with > --force always fixes the issue for me. So, I have never bothered to > investigate why the issue comes up in the first place. Hm, is the general problem with ttc fonts fixed? Some leftover of that? 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] Disable overlay on chapter pages
Hi Pablo, Dealing with the sample you has given to Mikael I find a difficulty on page 2 : if you replace 'Foo' and 'Bar' (three letters), by 'Introduction' and 'section', see what happen to 'section', page 2. Here is your MWE : \showframe \setuppagenumbering[alternative=doublesided] \definemargindata[margintext:chapter] [margintext] [width=\rightmarginwidth, location=outer, align=flushleft] \defineheadalternative [margintext:chapter] [margintext] [margintext=margintext:chapter] \definemargindata[margintext:section] [margintext] [width=\leftmarginwidth, location=inner] \defineheadalternative [margintext:section] [margintext] [margintext=margintext:section] \setuphead[chapter] [alternative=margintext:chapter, style=\tf, number=no] \setuphead[section] [alternative=margintext, style=\tf, number=no] \starttext \chapter{Introduction} \dorecurse{15}{\section{Section}\input ward\par} \stoptext - Mail original - De: "Mikael P. Sundqvist"À: "mailing list for ConTeXt users" Envoyé: Mercredi 2 Août 2017 22:33:16 Objet: Re: [NTG-context] Disable overlay on chapter pages On Wed, Aug 2, 2017 at 10:23 PM, Henning Hraban Ramm wrote: > Am 2017-08-02 um 19:28 schrieb Mikael P. Sundqvist : > >> I do not want to change the output of the chapters/sections themself. >> >> I want to have a "running header", but in the margin rather than in >> the header. I get that with the code I gave, but I want to disable it >> for new chapters _on the page where the chapter begins_. > > I guess this is a case for setups. > > \startsetups[chapterpage] > \setupheadertexts[][][][] > \stopsetups > > \setuphead[chapter][setup=chapterpage] > > Something like this, I didn’t check. > > > 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 > ___ Thank you for your answer, Henning. I am sorry, but it does not work. The problem is that I don't have the marking text in the header, but in overlays in the margins. I tried to replace your \setupheadertexts[][][][] inside the setup with \setupbackgrounds[text][rightmargin][background=] but with no luck. But maybe you are right that one should use setups. /Mikael ___ 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] Disable overlay on chapter pages
On 8/3/2017 10:35 AM, Jean-Pierre Delange wrote: Hi Pablo, Dealing with the sample you has given to Mikael I find a difficulty on page 2 : if you replace 'Foo' and 'Bar' (three letters), by 'Introduction' and 'section', see what happen to 'section', page 2. Here is your MWE : \showframe \setuppagenumbering[alternative=doublesided] \definemargindata[margintext:chapter] [margintext] [width=\rightmarginwidth, location=outer, align=flushleft] \defineheadalternative [margintext:chapter] [margintext] [margintext=margintext:chapter] \definemargindata[margintext:section] [margintext] [width=\leftmarginwidth, location=inner] \defineheadalternative [margintext:section] [margintext] [margintext=margintext:section] \setuphead[chapter] [alternative=margintext:chapter, style=\tf, number=no] \setuphead[section] [alternative=margintext, style=\tf, number=no] \starttext \chapter{Introduction} \dorecurse{15}{\section{Section}\input ward\par} \stoptext - Mail original - De: "Mikael P. Sundqvist"À: "mailing list for ConTeXt users" Envoyé: Mercredi 2 Août 2017 22:33:16 Objet: Re: [NTG-context] Disable overlay on chapter pages On Wed, Aug 2, 2017 at 10:23 PM, Henning Hraban Ramm wrote: Am 2017-08-02 um 19:28 schrieb Mikael P. Sundqvist : I do not want to change the output of the chapters/sections themself. I want to have a "running header", but in the margin rather than in the header. I get that with the code I gave, but I want to disable it for new chapters _on the page where the chapter begins_. I guess this is a case for setups. \startsetups[chapterpage] \setupheadertexts[][][][] \stopsetups \setuphead[chapter][setup=chapterpage] Something like this, I didn’t check. \showframe \setuplayout [backspace=3cm, margin=2cm, width=middle] \setuppagenumbering [alternative=doublesided] \definemargindata [margintext:chapter] [margintext] [width=\outermarginwidth, location=outer, align=flushouter] \defineheadalternative [margintext:chapter] [margintext] [margintext=margintext:chapter] \definemargindata[margintext:section] [margintext] [width=\innermarginwidth, location=inner, align=flushinner] \defineheadalternative [margintext:section] [margintext] [margintext=margintext:section] \setuphead [chapter] [alternative=margintext:chapter, style=\tf, number=no] \setuphead [section] [alternative=margintext, style=\tf, number=no] \starttext \chapter{Introduction} \dorecurse{15}{\section{Section}\input ward\par} \stoptext - 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] Disable overlay on chapter pages
On 08/03/2017 06:03 PM, Hans Hagen wrote: > [...] > \definemargindata >[margintext:chapter] >[margintext] >[width=\outermarginwidth, > location=outer, > align=flushouter] > [...] > \definemargindata[margintext:section] >[margintext] >[width=\innermarginwidth, > location=inner, > align=flushinner] Many thanks for your reply, Hans. I didn’t know that these margin widths and aligments even existed. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.
Hi again Marcello, I was somehow busy and forgot that I made a promise to give you a better answer than I did about bilingual texts on two columns. If you need only to print some simple texts on two columns, there is no major issues. Problems occur when you want to print two texts in different languages, with a complex criticus apparatus. But I've forgotten that (when I first began to work with ConTeXt, under the Pablo Rodriguez's eye), I was looking for a mechanism which allow to print greek/latin original text on the left column with a translation within the right column and a few series of footnotes in the footer. Notes dealing with the original text and different notes for the translation, given that if the original text was on the even page (left), a commentary might be print on the right page. The situation is clear : an even page with original language and translation (on two separate columns), and criticus apparatus in the footer; an odd page which contains some material like a commentary. It is without saying that the translation has to follow the original text line by line, not in a strictly way, but almost, when the odd page may be much more flexible. I know there are some technical ways under LaTeX (Maieul Rouquette made some work on that), and with non-free software but I had forgotten that Wolfgang made a simple proposal with the Stream mechanism. I have to work on that, but I am currently working on other jobs. See what Wolfgang wrote in the end of 2016 here on the wiki : http://wiki.contextgarden.net/Columns#Streams There are two non-free softwares, just as CET (Critical Edition Typesetter) : http://karas.ch/cet/cetinfo.htm or Classical Text Editor : http://cte.oeaw.ac.at/ JP - Mail original - De: "Jean-Pierre Delange"À: "mailing list for ConTeXt users" Envoyé: Jeudi 27 Juillet 2017 12:11:05 Objet: Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page. Hi Marcello, As you say "this feature could be really interesting", but as far as I know, there are many issues to deal with, in order to print 2 columns on the same page with different languages (say : greek and latin). This is not only because of two languages (say : english and russian, or greek and german), but because such work needs some editing datas, like footnotes, or more complex type of single line footnotes. I'll give some samples in a few hours. I've written once to Maieul Rouquette (author of (xe)LaTeX and in charge or reledpar (http://distrib-coffee.ipsl.jussieu.fr/pub/mirrors/ctan/macros/latex/contrib/reledmac/reledpar.pdf) and reledmac (ftp://ftp.dante.de/tex-archive/macros/latex/contrib/reledmac/reledmac.pdf) LaTeX packages for asking him about complex "criticus apparatus" in edition issues for Classics. Pablo Rodriguez has a better knowledfge as me on these topics. In fact, there is currently no strictly satisfying way to deal with different texts with ConTeXt on even and odd page (or on the same page with two columns), except if there is no need of footnotes (or criticus apparatus), because some mismatches between texts with the second page. But, there is possibly some solutions with XML and CTX (which I didn't try) ? JP - Mail original - De: "Marcello Urgo" À: ntg-context@ntg.nl Envoyé: Samedi 22 Juillet 2017 19:14:03 Objet: Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page. Dear Hans, I am also intersted in this issue. In the last years I am dealing with a multi-language technical lexicon. Hence, different languages refer to different columns, and if the languages are three or four, then it is better to go with two pages side-by-side. Nevertheless this seems a problem also in LaTeX redelpar (multiple columns are not supported). I tried to manage it with \linetable but without success ( https://tex.stackexchange.com/questions/380923/synchronise-data-spanning-over-two-side-by-side-pages-in-context ) I think this feature could be really interesting because, according to my knowledge, ConTeXt is at present the best way to manage the publishing of XML data. Hence, this could be a useful tool to publish large sets of data. Thank you in advance Marcello Urgo, Ph.D. Assistant Professor Manufacturing and Production Systems Lab. Mechanical Engineering Department POLITECNICO DI MILANO Via La Masa, 1 - 20156 Milano Phone +39 02 2399 8521 Fax +39 02 2399 8585 tecnologie.mecc.polimi.it www.polimi.it This message may contain confidential and/or otherwise reserved information and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from your computer. Thank you. Il presente messaggio può contenere informazioni di carattere confidenziale e/o riservate ed è quindi ad uso
Re: [NTG-context] Disable overlay on chapter pages
On Thu, Aug 3, 2017 at 7:29 PM, Pablo Rodriguezwrote: > On 08/03/2017 06:03 PM, Hans Hagen wrote: >> [...] >> \definemargindata >>[margintext:chapter] >>[margintext] >>[width=\outermarginwidth, >> location=outer, >> align=flushouter] >> [...] >> \definemargindata[margintext:section] >>[margintext] >>[width=\innermarginwidth, >> location=inner, >> align=flushinner] > > Many thanks for your reply, Hans. > > I didn’t know that these margin widths and aligments even existed. > > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ Hi, that solves the other problem that appeared. What about the one I originally posted in this thread? Is it possible to pause backgrounds on chapter pages? /Mikael ___ 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] bug in latest beta (2017.08.02 18:59)
On 08/03/2017 08:50 AM, Hans Hagen wrote: > On 8/3/2017 7:49 AM, Pablo Rodriguez wrote: >> Hans, >> >> since it seems you don’t reproduce the bug, I wonder whether this might >> be caused by Linux 32bit luatex binaries being version 1.0.5 and Windows >> 64bt has version 1.0.6.x. > no, it's more that i always have a newer luatex so older stuff has to be > simulated Many thanks for the explanation and for the fix, Hans. Beta from 2017.08.03 11:02 works perfectly fine with the two texts I checked. Many thanks for your help, 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] source code and result side by side
Am 2017-07-31 um 03:26 schrieb Aditya Mahajan: > You can't do that with buffers. If you need to define your own macros that > behave like buffers, you need to use \grabbufferdata (see buff-ini.mkiv). But > in this case, there is a simpler solution: Thank you very much, I can work with that. A related question: How can I use commands like \chapter{} in an example without affecting my main structure? I’d like to show a few examples für head setups. 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] source code and result side by side
Am 2017-07-31 um 03:26 schrieb Aditya Mahajan: > You can't do that with buffers. If you need to define your own macros that > behave like buffers, you need to use \grabbufferdata (see buff-ini.mkiv). But > in this case, there is a simpler solution: > > \defineframed > [CodeExampleFramed] > [ >frame=off, >width=0.5\textwidth, >align=normal, > ] > > \definebuffer >[CodeExample] > > \define\stopCodeExample >{\placesidebyside > {\CodeExampleFramed{\typeCodeExample}} > {\CodeExampleFramed{\getCodeExample}}} Oh, I overlooked something: Can I get pretty printing back, like in \startTEX ... \stopTEX? I couldn’t find any suitable setup options. This doesn’t work: \setupbuffer[CodeExampleB][before={\startTEX},after={\stopTEX}] 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 ___
[NTG-context] methods for numbered paragraphs
Dear syndicate, Not sure if there is a canonical way to do numbered paragraphs. In the following, I use subsections to mimic numbered paragraphs: ===section-intext.tex=== \setuphead[section][style=\bfa,after={\blank[big]},before={\blank[big,medium]},color=walayahblue] \setuphead[subsection][style=\bf,after={\blank[big]},before={\blank[big,medium]},color=walayahgreen,alternative=text,distance=0.28em] \setuphead[subsubsection][style=\tf,after={\blank[big]},before={\blank[big,medium]},color=walayahred,alternative=text,distance=0.28em] \starttext \startsection[title=Section 1] \startsubsection \input ward \stopsubsection \startsubsection[title=Paragraph 2] \input ward \stopsubsection \startsubsection \startparagraph \input ward \stopparagraph \stopsubsection \stopsection \stoptext == See attached output. In paragraphs 1 and 2, there is too much distance between the subsection number (subsection number + title in paragraph 2) and between the text. The distance parameter is not appropriate here, it is the distance *after* the section head that needs adjustment (even if the text portion of the head (i.e., the section title) is empty). Question 1: How do we fix the post-head distance? Paragraph three shows that one apparently cannot mix this sectioning approach with the \start-stopparagraph mechanism. Question 2: Is there a way to mix \start-stopparagraph with the above subsection approach to par numbering? I suppose that as long as I maintain exactly one paragraph per subsection, then structured output (xml etc.) should look ok. Question 3: Is there a wiser way to handle this kind of par numbering in mkiv? Thanks in advance! Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 section-intext.pdf Description: Adobe PDF 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] Cambria official typescript (mis)behavior
On Thu, 03 Aug 2017 01:41:42 -0600, Henning Hraban Rammwrote: Am 2017-08-02 um 23:46 schrieb Aditya Mahajan : I occasionally experience a similar issue (after an update wrong fontface is used, especially with math fonts) and reloading the fonts database with --force always fixes the issue for me. So, I have never bothered to investigate why the issue comes up in the first place. Hm, is the general problem with ttc fonts fixed? Some leftover of that? In the current project, occasionally a change in layout will cause cambria regular to change to italic. mtxrun --script fonts --reload --force fixes it again, but I have not been able to isolate the issue to a simple test file. E.g., on one occasion commenting % \showframe turned the document italic, but then after reloading it turned regular again and I couldn't repeat the error. So there seems to be a bug somewhere, perhaps ttc-related indeed... Idris -- 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 ___