Re: [NTG-context] \placenamedfloat and \setuphead[aftersection=...] broken?
Benjamin Buchmuller schrieb am 02.04.2020 um 19:29: Potentially on the same lines, placing delayed element seems currently not to work properly (or the syntax has changed?). I think these features of MkIV are very elegant and useful. I’m just wondering if they are/were temporarily not working (tried on 2019.12.27 16:34 MKIV beta and the Wiki’s ConTeXt online) or have been disabled/changed for some reason? Thanks! Benjamin (1) palcenamedfloat --- This is the example from the Wiki: [...] (2) Footnotes at the end of each chapter Also an example from the Wiki: \startsetups chapter:after \ifcase\rawcountervalue[footnote]\relax \or \startsubject[title=Footnote] \placefootnotes \stopsubject \else \startsubject[title=Footnotes] \placefootnotes \stopsubject \fi \stopsetups \setupnotes[location=none] \setupnotation[way=bychapter] \setuphead[chapter][aftersection=\setups{chapter:after}] Here is a slightly reformatted version of Hans code which works for me with the latest ConTeXt version (I checked only LMTX). \startsetups[chapter:after] \ifcase\rawcountervalue[footnote]\relax % \or \startsubject[title=Footnote] \placefootnotes \stopsubject \else \startsubject[title=Footnotes] \placefootnotes \stopsubject \fi \stopsetups \setupnote [footnote] [location=none] \setupnotation [footnote] [way=bychapter] \setuphead[chapter][aftersection=\setups{chapter:after}] \starttext \dorecurse{4} {\startchapter[title={Number #1}] A few notes\dorecurse{\numexpr#1-1\relax}{\footnote{Note #1.##1}}. \stopchapter} \stoptext 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] \setupinteraction[style=...] supersedes manual text style for \note
On 4/2/20 12:04 AM, Benjamin Buchmuller wrote: > For the following one, I’m not sure if this is the intended > behaviour or not: > > I want to set up the “notation” and “note” style manually, which > works great unless I also call > \setupinteraction[state=start,style=normal] (or any other style), > regardless of calling it before or after setting up “notation” or > “note”. Hi Benjamin, I’m not sure whether this would work for your: \setupinteraction[state=start, color=, style=, contrastcolor=,] \setupreferenceformat[footnote][color=, style=] BTW, "focus=standard" doesn’t modify the page size when clicking the link. Just in case it might 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 ___
[NTG-context] \setupinteraction[style=...] supersedes manual text style for \note
For the following one, I’m not sure if this is the intended behaviour or not: I want to set up the “notation” and “note” style manually, which works great unless I also call \setupinteraction[state=start,style=normal] (or any other style), regardless of calling it before or after setting up “notation” or “note”. MWE (with an assortment of different note positions): % \setupinteraction[state=start,style=normal] %% uncomment and manual style for \note[] is no longer respected \setupnotes[textcolor=blue,textstyle=italic] \setupnotation[endnote][headcolor=green,numberconversion=character] \starttext This is the footnote\footnote[one]{aha} and the reference\note[one]. This is the endnote\endnote[two]{oho} and the reference\note[endnote][two]. Let's look \in[one]. \startplacefigure[title={And in this float\endnote[three]{hmm} and the reference\note[three].}] \externalfigure[cow] \stopplacefigure \page And look here \in[two]. \placenotes[endnote] \stoptext Cheers Benjamin ___ 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] Left hanging hyphen
On Wed, 4 Mar 2020 19:28:49 +0100 Tomas Hala wrote: > Hi Wolfgang, > > Mon, Mar 02, 2020 ve 05:38:35PM +0100 Wolfgang Schuster napsal(a): > # On Mon, 2 Mar 2020 12:22:26 +0100 > # Tomas Hala wrote: > # > # > Hi all, > # > > # > in composed words in Czech and Slovak languages, the hyphen must be > repeated > # > at the beginning of the new line. How can I make it hanging at the left > margin? > # > # 1. You have to enable hanging punctuation which is missing in your example. > > I used it, it was a miscopying... sorry. > > # 2. You have to create your own protrusion vector because the predefined > vectors set hanging for hyphens only for the right margin. > > Thanks, it works for Czech language. But what has happened is that the > repeated hyphen appears also with languages which do not use it (or for > which it has not been set). > > How can I assign the definition only to the selected language? > (I discovered only to put {\mainlanguage[cz]text} into a group...) > > %% only a note: > I tried: > \def\mylanguage{cs} \appendtoks \ifx\mylanguage\currentlanguage > \setbreakpoints[czcompound] \else \resetbreakpoints \fi \to\everylanguage > > \let\ORIGmainlanguage=\mainlanguage > \def\mainlanguage[#1]{\def\langpar{#1} > > \def\langpom{cz}\ifx\langpom\langpar\gdef\mylanguage{cs}\else\gdef\mylanguage{\langpar}\fi > > \ORIGmainlanguage[\langpar] > } > > which repeats only the Czech hyphen but with a side effect -- hyphenated > words are not broken anymore in other languages. > What am I doing wrong? Or is there any system solution? > %% > > Best wishes, > > Tomáš > > > begin example > > \startluacode > > [...] > > \startsetups [czech] > \setbreakpoints [czcompound] > \stopsetups > > \setuplanguage > [cz] > [setups=czech] You can use the default language for the reset: \startsetups [language:czech] \setbreakpoints [czcompound] \stopsetups \startsetups [language:other] \resetbreakpoints \stopsetups \setuplanguage [cz] [setups=language:czech] \setuplanguage [default] [setups=language:other] 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] Left hanging hyphen
Hi Wolfgang, Mon, Mar 02, 2020 ve 05:38:35PM +0100 Wolfgang Schuster napsal(a): # On Mon, 2 Mar 2020 12:22:26 +0100 # Tomas Hala wrote: # # > Hi all, # > # > in composed words in Czech and Slovak languages, the hyphen must be repeated # > at the beginning of the new line. How can I make it hanging at the left margin? # # 1. You have to enable hanging punctuation which is missing in your example. I used it, it was a miscopying... sorry. # 2. You have to create your own protrusion vector because the predefined vectors set hanging for hyphens only for the right margin. Thanks, it works for Czech language. But what has happened is that the repeated hyphen appears also with languages which do not use it (or for which it has not been set). How can I assign the definition only to the selected language? (I discovered only to put {\mainlanguage[cz]text} into a group...) %% only a note: I tried: \def\mylanguage{cs} \appendtoks \ifx\mylanguage\currentlanguage \setbreakpoints[czcompound] \else \resetbreakpoints \fi \to\everylanguage \let\ORIGmainlanguage=\mainlanguage \def\mainlanguage[#1]{\def\langpar{#1} \def\langpom{cz}\ifx\langpom\langpar\gdef\mylanguage{cs}\else\gdef\mylanguage{\langpar}\fi \ORIGmainlanguage[\langpar] } which repeats only the Czech hyphen but with a side effect -- hyphenated words are not broken anymore in other languages. What am I doing wrong? Or is there any system solution? %% Best wishes, Tomáš begin example \startluacode fonts.protrusions.classes.tomas_hala = { vector = 'tomas_hala', factor = 1, } fonts.protrusions.vectors.tomas_hala = table.merged ( fonts.protrusions.vectors.quality, { [0x002D] = { 0.4, 0.7 }, -- hyphen } ) \stopluacode \definebreakpoints [czcompound] \definebreakpoint [czcompound] [-] [nleft=3,nright=3,type=4] \startsetups [czech] \setbreakpoints [czcompound] \stopsetups \setuplanguage [cz] [setups=czech] \definefontfeature [default] [default] [protrusion=tomas_hala] %\def\mylanguage{cs} \appendtoks \ifx\mylanguage\currentlanguage \setbreakpoints[czcompound] \else \resetbreakpoints \fi \to\everylanguage %\def\mylanguage{sk} \appendtoks \ifx\mylanguage\currentlanguage \setbreakpoints[czcompound] \else \resetbreakpoints \fi \to\everylanguage % %\let\ORIGmainlanguage=\mainlanguage %\def\mainlanguage[#1]{\def\langpar{#1} % %\def\langpom{cz}\ifx\langpom\langpar\gdef\mylanguage{cs}\else\gdef\mylanguage{\langpar}\fi % \ORIGmainlanguage[\langpar] %} \setupalign [hanging] %\mainlanguage [cz] \showframe [text] [text] \starttext \hsize=0pt \mainlanguage [en] modro-zelený \mainlanguage [fr] modro-zelený \mainlanguage [cz] modro-zelený \mainlanguage [en] modro-zelený \mainlanguage [fr] modro-zelený \stoptext end example ___ 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] body text invades space for notes
Dear Pablo, It seems that we never should say "never" about things which appear all over the real world. I just go back to a previous assertion you made here. I agree with you about footnotes which should be placed on the same page (I quote) : > Bottom notes are somewhat tricky in ConTeXt. The user expects that these > notes (either footnotes, or linenotes) aren’t moved to the next page. I > mean, no reader expects to find a full footnote in the next page from > the one that calls it. (At least, I have never seen that in any book > read or paged through.) But, I am afraid to inform you that it is a kind of way of French printing, especially in Philosophy publishers (which are not known to be devoted to publish beautiful/strictly edited/... books). As a kind of sample, see the French translation of Nichomachean Ethics by Jean Tricot (1983 edition), Jean Vrin publisher, pages 201, 225-226, 245-246, etc. One can notice an effort to reduce the body text in order to let some space to footnotes. But this effort flaws on several pages ... A way had have been chosen by publishers : "don't abuse about footnotes !", which is clearly impossible within academic books in Humanities ... JP Le 04/03/2020 à 12:07, Philipp A. a écrit : Hi Pablo, Thank you for the help! I’m not using lists on that page … what I do use is a figure with location=left, which is probably the culprit, as it ends up pretty close to the footnote. Is there any interest in fixing this longstanding bug? It’s the only feature that’s just consistently broken for me … Best, Phil Am Di., 25. Feb. 2020 um 22:15 Uhr schrieb Pablo Rodriguez mailto:oi...@gmx.es>>: On 2/18/20 11:17 AM, Philipp A. wrote: > For me it’s even worse (in mkiv), a paragraph of body text completely > overlaps my footnote. > > Where are the bottom notes placed? In the footer? Or how does it work? > How to debug it? Hi Philipp, I’m afraid that this misbehaviour is caused by the use of lists in the same page. Even not using lists, the space before seems not to be honored when using \setupnote[footnote]. Note handling seems to have been improved in both LMTX and MkIV. A side-effect of this new handling is the random clash between body and notes texts when using lists in the same page. BTW, foonotes cannot be placed in the footer. \showframe\showgrid \setuppapersize[A9] \starttext \dorecurse{3}{% text\footnote{note}\\} \stoptext Sorry, but I’m afraid that I don’t know any way of debugging it. Pablo > Am Sa., 14. Dez. 2019 um 19:41 Uhr schrieb Pablo Rodriguez: > > Dear list, > > I’m afraid to admit that ConTeXt notes are increasily problematic for > me. I don’t think this is special to me and I hope we can discuss the > general issue. > > Bottom notes are somewhat tricky in ConTeXt. The user expects that these > notes (either footnotes, or linenotes) aren’t moved to the next page. I > mean, no reader expects to find a full footnote in the next page from > the one that calls it. (At least, I have never seen that in any book > read or paged through.) > > There may be good reasons for that, but ConTeXt doesn’t enable this by > default. Both options "split=verystrict" and "scope=text" have to be > used in "\setupnote". > > This translated in wrong space before notes when paragraph form was > used. I was very interested to use these (line)notes for critical > editions, but sometimes the text run into the notes. I’m afraid that > left linenotes extremely problematic to be used. > > With the arrival of LMTX, space before footnotes is more problematic > than before. No paragraph notes, see the attached sample (wrong-6.png). > In other cases, ConTeXt seems to ignore totally that the page bottom > contains footnotes. > > I cannot provide minimal samples. Consider that if it were so easy to > reproduce, problably the issue would have been gone long ago. > > Even when one avoids the problematic bottom partition (which I did in > that case by removing the "before" option from "\setupnote[footnote]"), > there is clearly an issue with the footnote having its space before > remaining blank from the body text (wrong-2.png). > > My first question is why the bottom notes have problems to preserve the > space before them (and simultaneously remain in the sam
Re: [NTG-context] body text invades space for notes
Hi Pablo, Thank you for the help! I’m not using lists on that page … what I do use is a figure with location=left, which is probably the culprit, as it ends up pretty close to the footnote. Is there any interest in fixing this longstanding bug? It’s the only feature that’s just consistently broken for me … Best, Phil Am Di., 25. Feb. 2020 um 22:15 Uhr schrieb Pablo Rodriguez : > On 2/18/20 11:17 AM, Philipp A. wrote: > > For me it’s even worse (in mkiv), a paragraph of body text completely > > overlaps my footnote. > > > > Where are the bottom notes placed? In the footer? Or how does it work? > > How to debug it? > > Hi Philipp, > > I’m afraid that this misbehaviour is caused by the use of lists in the > same page. > > Even not using lists, the space before seems not to be honored when > using \setupnote[footnote]. > > Note handling seems to have been improved in both LMTX and MkIV. A > side-effect of this new handling is the random clash between body and > notes texts when using lists in the same page. > > BTW, foonotes cannot be placed in the footer. > > \showframe\showgrid > \setuppapersize[A9] > \starttext > \dorecurse{3}{% > text\footnote{note}\\} > \stoptext > > Sorry, but I’m afraid that I don’t know any way of debugging it. > > Pablo > > > > Am Sa., 14. Dez. 2019 um 19:41 Uhr schrieb Pablo Rodriguez: > > > > Dear list, > > > > I’m afraid to admit that ConTeXt notes are increasily problematic for > > me. I don’t think this is special to me and I hope we can discuss the > > general issue. > > > > Bottom notes are somewhat tricky in ConTeXt. The user expects that > these > > notes (either footnotes, or linenotes) aren’t moved to the next > page. I > > mean, no reader expects to find a full footnote in the next page from > > the one that calls it. (At least, I have never seen that in any book > > read or paged through.) > > > > There may be good reasons for that, but ConTeXt doesn’t enable this > by > > default. Both options "split=verystrict" and "scope=text" have to be > > used in "\setupnote". > > > > This translated in wrong space before notes when paragraph form was > > used. I was very interested to use these (line)notes for critical > > editions, but sometimes the text run into the notes. I’m afraid that > > left linenotes extremely problematic to be used. > > > > With the arrival of LMTX, space before footnotes is more problematic > > than before. No paragraph notes, see the attached sample > (wrong-6.png). > > In other cases, ConTeXt seems to ignore totally that the page bottom > > contains footnotes. > > > > I cannot provide minimal samples. Consider that if it were so easy to > > reproduce, problably the issue would have been gone long ago. > > > > Even when one avoids the problematic bottom partition (which I did in > > that case by removing the "before" option from > "\setupnote[footnote]"), > > there is clearly an issue with the footnote having its space before > > remaining blank from the body text (wrong-2.png). > > > > My first question is why the bottom notes have problems to preserve > the > > space before them (and simultaneously remain in the same page where > they > > come from). This applies also for paragraph notes. > > > > My second question is what can be improved to achieve what may be > > considered as a basic typographic feature. > > > > Sorry for not providing more than output samples. Bear with me. I may > > not be an expert user, but I think I’m a frequent ConTeXt user. And I > > don’t think it is totally wrong to consider this a basic feature that > > needs to be improved. > > > > Many thanks for your help in advance, > > > > 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 > > ___ > ___ 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] body text invades space for notes
On 2/18/20 11:17 AM, Philipp A. wrote: > For me it’s even worse (in mkiv), a paragraph of body text completely > overlaps my footnote. > > Where are the bottom notes placed? In the footer? Or how does it work? > How to debug it? Hi Philipp, I’m afraid that this misbehaviour is caused by the use of lists in the same page. Even not using lists, the space before seems not to be honored when using \setupnote[footnote]. Note handling seems to have been improved in both LMTX and MkIV. A side-effect of this new handling is the random clash between body and notes texts when using lists in the same page. BTW, foonotes cannot be placed in the footer. \showframe\showgrid \setuppapersize[A9] \starttext \dorecurse{3}{% text\footnote{note}\\} \stoptext Sorry, but I’m afraid that I don’t know any way of debugging it. Pablo > Am Sa., 14. Dez. 2019 um 19:41 Uhr schrieb Pablo Rodriguez: > > Dear list, > > I’m afraid to admit that ConTeXt notes are increasily problematic for > me. I don’t think this is special to me and I hope we can discuss the > general issue. > > Bottom notes are somewhat tricky in ConTeXt. The user expects that these > notes (either footnotes, or linenotes) aren’t moved to the next page. I > mean, no reader expects to find a full footnote in the next page from > the one that calls it. (At least, I have never seen that in any book > read or paged through.) > > There may be good reasons for that, but ConTeXt doesn’t enable this by > default. Both options "split=verystrict" and "scope=text" have to be > used in "\setupnote". > > This translated in wrong space before notes when paragraph form was > used. I was very interested to use these (line)notes for critical > editions, but sometimes the text run into the notes. I’m afraid that > left linenotes extremely problematic to be used. > > With the arrival of LMTX, space before footnotes is more problematic > than before. No paragraph notes, see the attached sample (wrong-6.png). > In other cases, ConTeXt seems to ignore totally that the page bottom > contains footnotes. > > I cannot provide minimal samples. Consider that if it were so easy to > reproduce, problably the issue would have been gone long ago. > > Even when one avoids the problematic bottom partition (which I did in > that case by removing the "before" option from "\setupnote[footnote]"), > there is clearly an issue with the footnote having its space before > remaining blank from the body text (wrong-2.png). > > My first question is why the bottom notes have problems to preserve the > space before them (and simultaneously remain in the same page where they > come from). This applies also for paragraph notes. > > My second question is what can be improved to achieve what may be > considered as a basic typographic feature. > > Sorry for not providing more than output samples. Bear with me. I may > not be an expert user, but I think I’m a frequent ConTeXt user. And I > don’t think it is totally wrong to consider this a basic feature that > needs to be improved. > > Many thanks for your help in advance, > > 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] Space between heading and paragraph in a description
> On Feb 18, 2020, at 7:45 PM, Aditya Mahajan wrote: > > Add what you discovered to the wiki! I did…after a fashion. Once I knew the answer, I was able to find a reference to it on the wiki. However, it was obscured because both \setupdescription and \setupdescriptions are listed and I was reading the entry for \setupdescriptions which doesn’t list stretch and shrink as parameters. I added a note to \setupdescriptions that references \setupdescription. Hopefully that will help. -kk___ 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] page break
Hi, Sorry if my minimal example is not, but I have to understand with your help what is wrong. For example, why a page break after the second item when there seems to be enough space to stay on this page ? Thanks Fabrice \define\starttikzpicture {\hbox\bgroup\forcecolorhack\tikzpicture} \define\stoptikzpicture {\endtikzpicture\egroup} \define[2]\CScript{\start\switchtobodyfont[xitsbidi]\m{{\mathscript{#1}}_{#2}}\stop} \usemodule[tikz] \usemodule[pgfplots] \pgfplotsset{compat=newest} \unexpanded\def\R{\math{\mathbb{R}}\autoinsertnextspace} \unexpanded\def\intervalff#1#2{\math{\left[#1\nonscript\,;#2\right]}} \unexpanded\def\point#1#2#3{\math{#1\left(#2\,;#3\right)}} \switchtobodyfont[pagella,11pt] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,nonumber}] \setuppagenumbering [alternative=, location=] \starttext \startitemize[n] \startitem {\it Pour tout événement \m{E}, on note \m{\overline{E}} l'évènement contraire de \m{E}.} \blank On considère l'arbre pondéré suivant : \startlinecorrection[blank] \startmidaligned \starttikzpicture [level 1/.style={level distance=40mm,sibling distance=25mm,very thick}, level 2/.style={level distance=35mm,sibling distance=20mm,very thick}] \node{}[grow=right] child {node{\m{\overline{R}}} child{node{\m{\overline{S}}}edge from parent node[below=2pt]{0,8}} child{node{\m{S}}edge from parent node[above=2pt]{0,2} } edge from parent node[below=2pt]{0,3}} child {node{\m{R}} child{node{\m{\overline{S}}}edge from parent node[below=2pt]{0,6}} child{node{\m{S}}edge from parent node[above=2pt]{0,4}} edge from parent node[above=2pt]{0,7}}; \stoptikzpicture \stopmidaligned \stoplinecorrection {\bi Affirmation 1 : } La probabilité de \m{\overline{R}} sachant \m{S} est 0,06. \stopitem \blank \startitem Soit \m{f} une fonction dérivable sur l'intervalle \intervalff{0}{15}. On suppose que sa fonction dérivée, notée \m{f'}, est continue sur \intervalff{0}{15}. Les variations de \m{f'} sont représentées dans le tableau ci-dessous. \startlinecorrection[blank] \startmidaligned \externalfigure[tab_bacblanc.pdf] \stopmidaligned \stoplinecorrection {\bi Affirmation 2 :} La courbe représentative \CScript{C}{f} de la fonction \m{f} admet une et une seule tangente parallèle à l'axe des abscisses. \stopitem \placerecipe{}{ \hbox{ \starttikzpicture [extended line/.style={shorten >=-#1,shorten <=-#1}, scale=1, every node/.style={scale=0.8}, /pgf/declare function={f(\x)=\x^2 +1 - \x^3;}, /pgf/declare function={g(\x)=-5*\x - 2;}] \startaxis [restrict x to domain=-2:3, xmax=3, xmin=-2, restrict y to domain=-3:4, ymax=4, ymin=-3, x=0.8cm, y=0.8cm, axis x line=middle, axis y line=middle, major tick style=black, axis line style = ultra thick, tick align=outside, tickwidth=0.14cm, tick style=thick, grid=both, xtick={-1,...,2}, ytick={-2,...,3}, extra x ticks={-2,3}, extra x tick label={\null}, extra y ticks={-3,4}, extra y tick label={\null}, extra tick style={tick style={draw=none}}, xlabel=$x$,ylabel=$y$, every axis x label/.style={ at={(ticklabel* cs:1.01)},anchor=west}, every axis y label/.style={ at={(ticklabel* cs:1.01)}, anchor=south}, samples=2000, axis on top=false, >=stealth] \addplot [very thick,domain=-1.25:2] {g(x)}; \addplot [darkred,very thick,domain=-1.25:2] {f(x)}; \node[below left=1pt] at (0,0){\m{0}}; \node[above right] at (-1,{f(-1)}) {\m{A}}; \node[above right] at (0,{g(0)}) {\m{B}}; \node[above right] at (1.2,0.5){\CScript{C}{h}}; \node[left] at (-0.5,0.5){\m{T}}; \node[fill=black,circle,scale=0.5] at (-1,{f(-1)}){}; \node[fill=black,circle,scale=0.5] at (0,{g(0)}){}; \stopaxis \stoptikzpicture } } \startitem La courbe \CScript{C}{h} représentative d'une fonction \m{h} définie et dérivable sur \R est représentée ci-contre. On a tracé la tangente \m{T} à \CScript{C}{h} au point \point{A}{-1}{3}. \m{T} passe par le point \point{B}{0}{-2}. \blank {\bi Affirmation 3 : }
Re: [NTG-context] Fonts from various .otf to work with \bold, \emph, \bf, \bfa ...
Pablo Rodriguez schrieb am 07.02.2020 um 21:22: On 2/7/20 8:34 AM, cont...@vivaldi.net wrote: Hello Pablo, thank you for showing the way; unfortunately, still something is missing: Hi Lukas, I’m afraid you missed to install the fonts in ConTeXt. - the resulting file uses LMRoman instead of WorkSans, Otherwise, \definefontfamily won’t work (even if using "tf={file:work-sans.light.otf}"). Do you have any problem installing fonts in ConTeXt? This would make things easier. - Note that all WorkSans files: [...] are placed in the same directory as the main source file. (I can zip them and upload somewhere for testing purposes.) The designer provides the latest version of the font on github without the change in file name from your source. https://github.com/weiweihuanghuang/Work-Sans This was a feature already discussed in the past. "\definefont[Test][file:your-font-file.otf]" should work, but I never used this approach. Works at the moment only when the fonts in a place where ConTeXt can find them. 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] Fonts from various .otf to work with \bold, \emph, \bf, \bfa ...
On 2/7/20 8:34 AM, cont...@vivaldi.net wrote: > Hello Pablo, > > thank you for showing the way; unfortunately, still something is > missing: Hi Lukas, I’m afraid you missed to install the fonts in ConTeXt. > - the resulting file uses LMRoman instead of WorkSans, Otherwise, \definefontfamily won’t work (even if using "tf={file:work-sans.light.otf}"). Do you have any problem installing fonts in ConTeXt? This would make things easier. > - Note that all WorkSans files: > [...] > are placed in the same directory as the main source file. (I can zip > them and upload somewhere for testing purposes.) This was a feature already discussed in the past. "\definefont[Test][file:your-font-file.otf]" should work, but I never used this approach. I think you need to mix fonts into a typeface with something similar to a typescript (but this is all Greek to me). -- 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] Fonts from various .otf to work with \bold, \emph, \bf, \bfa ...
Hello Pablo, thank you for showing the way; unfortunately, still something is missing: - the resulting file uses LMRoman instead of WorkSans, - the log confirms: "selectfont > The requested font 'WorkSans' has no files for the 'tf' alternative, Latin Modern is used instead". - Note that all WorkSans files: work-sans.bold.otf work-sans.bold-italic.otf work-sans.light.otf work-sans.light-italic.otf are placed in the same directory as the main source file. (I can zip them and upload somewhere for testing purposes.) - In your code bellow, I cann't see any link to any work-sans .otf file name. - Does it mean that that ConTeXt browses its database of "known" fonts, searches for all fonts which contain "identification" as "WorkSans" (given from your \definefontfamily...[WorkSans])? - Also, I see assignments [tf={style:light},it={style:lightitalic}]: - Should also an assignment for "bf=[style:...]" be provided? - How ConTeXt gets to know from "it={style:lightitalic}" that file "work-sans.light-italic.otf" should be used? Sorry for elementary questions, I'm still "in captivity" of swtching fonts, their styles and font sizes by clicking a combo in Word toolbar (although I quit using Word about 15 ys ago). And although I'm aware of different dealing with fonts in TeX (and in professional typesetting in general), it's often difficult for me to imagine how exactly TeX switchches fonts, what is the relationship between (and how the comands cooperate) \definefontfamily, \setupbodyfontenvironment, \setupbodyfont, \definefontsynonym, \definefont, typescripts, simplefonts module and also what is the relations among parameters to the-above commands. So any practical samples (e.g. here discussed) helps me much. Best regards, Lukas Hi Lukas, I think this is what you might need: \definefontfamily [mainface] [rm] [WorkSans] [tf={style:light}, it={style:lightitalic}] \setupbodyfont[mainface] \setupbodyfontenvironment [default] [a=1.2, b=2.4, c=3.6, d=4.8, em=italic] \starttext \startTEXpage[offset=1em] roman\\ {\bf bold}\\ {\it italic}\\ {\bi bold italic}\\ {\tfa roman}\\ {\bfb bold}\\ {\itc italic}\\ {\bid bold italic}\\ \stopTEXpage \stoptext 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ open source > level 1, order 1, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > system > ConTeXt ver: 2019.12.31 11:28 MKIV beta fmt: 2020.1.8 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source> level 2, order 2, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > jobfiles > using path: d:\\Lukas\\ConTeXt\\Styles system > files > jobname 't-Font', input 'D:\\Lukas\\Jobs\\KatMostu.TP\\Test\\t-Font.mkiv', result 't-Font' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name 'D://Lukas/Jobs/KatMostu.TP/Test/t-Font.mkiv' selectfont > The requested font 'WorkSans' has no files for the 'tf' alternative, Latin Modern is used instead. fonts > preloading modern-designsize (math) fonts > typescripts > unknown library 'modern-designsize' fonts > 'fallback modern-designsize mm 12pt' is loaded fonts > preloading modern-designsize (mono) fonts > 'fallback modern-designsize tt 12pt' is loaded backend > xmp > using file 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 close source> level 2, order 3, name 'D://Lukas/Jobs/KatMostu.TP/Test/t-Font.mkiv' close source> level 1, order 3, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > start used files system > text: t-Font system > stop used files system > start used files s
Re: [NTG-context] Superios with Cardo font
On 1/27/20 5:00 PM, Denis Maier wrote: > Hi, > > I am trying to use the Cardo font with superior figures. But somehow > these seems to work differently here than with other fonts: > [...] > Why is it that I have to manually disable onum and pnum with Cardo for > sups to work? Hi Denis, you can’t have them all. It might be related to the loopup order in the font itself. onum or pnum precedence might require onum/pnum sups. > (Note: Cardo is a ttf font, Linux Libertine O is a otf) I think this makes no difference at all. > By the way, what is the correct way to define a new font feature for > superios? (VerticalPosition=Superior; sups=yes; > VerticalPosition=Superscript ...) sups=yes is the only way to invoke a font feature (such as it is defined in the font itself [this is an OpenType tag]). VerticalPosition and your values might be valid in fontspec. But ConTeXt doesn’t go that way. Just in case 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Superios with Cardo font
Hi, I am trying to use the Cardo font with superior figures. But somehow these seems to work differently here than with other fonts: \definefontfeature[default][default][ onum=yes, pnum=yes, ] \definefontfeature[f:newstyle][onum=no,pnum=no] \definefontfamily[cardo][rm][Cardo] \definefontfamily[libertine][rm][Linux Libertine O] \starttext \setupbodyfont[cardo] 12345 {\feature[+][f:superiors]12345} 12345 {\feature[+][f:newstyle]\feature[+][f:superiors]12345} \setupbodyfont[libertine] 12345 {\feature[+][f:superiors]12345} 12345 {\feature[+][f:newstyle]\feature[+][f:superiors]12345} \stoptext Why is it that I have to manually disable onum and pnum with Cardo for sups to work? (Note: Cardo is a ttf font, Linux Libertine O is a otf) By the way, what is the correct way to define a new font feature for superios? (VerticalPosition=Superior; sups=yes; VerticalPosition=Superscript ...) 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 ___
Re: [NTG-context] ConTeXt support for Atom or other text editors
On 1/21/2020 3:20 PM, Nicola wrote: On 2020-01-21, Sébastien Wilmet wrote: I'm actually looking for a text editor on Linux that supports those three features: - syntax highlighting - command completion - spell-checking Does it exist? Well, Vim has pretty solid support for ConTeXt (disclaimer: I am maintaining the ConTeXt plugin distributed with Vim), including the features you mention and much more: https://wiki.contextgarden.net/Vim But if you have never used Vim, it has a steeper learning curve that a typical text editor. On a side note: a difficulty with maintaining syntax highlighting for ConTeXt is that I had to write my own script to extract ConTeXt-specific and MetaFun-specific keywords from source code. Is there any way to do it with ConTeXt? there are ways to extract it from the interface specifications ... which is done for scite, vscode, ... (btw, in scite/textadept there is support for syntax support, real time spell checking, nested lexing, etc) 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] ConTeXt support for Atom or other text editors
On 2020-01-21, Sébastien Wilmet wrote: > I'm actually looking for a text editor on Linux that supports those > three features: > - syntax highlighting > - command completion > - spell-checking > > Does it exist? Well, Vim has pretty solid support for ConTeXt (disclaimer: I am maintaining the ConTeXt plugin distributed with Vim), including the features you mention and much more: https://wiki.contextgarden.net/Vim But if you have never used Vim, it has a steeper learning curve that a typical text editor. On a side note: a difficulty with maintaining syntax highlighting for ConTeXt is that I had to write my own script to extract ConTeXt-specific and MetaFun-specific keywords from source code. Is there any way to do it with ConTeXt? 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] Quotation dash issues with semantic markup
Hans Hagen schrieb am 30.12.2019 um 10:19: On 12/30/2019 5:03 AM, Sam May wrote: \setuplanguage[en] [leftquotation=\quotedash~, rightquotation=~\quotedash, leftsentence=\removeunwantedspaces~\endash\space, midsentence=\removeunwantedspaces~\endash\space, % leftsentence=\endash~, % midsentence=~\endash, rightsentence=~\endash] \define\quotedash{\emdash\endash} %\setupbackend[export=yes] \starttext \startsection[title=Introduction] Any of you able to help me get my quotation dashes into line when automatically inserted by the semantic commands? I'm sure a number of you look at this style and cringe, but \cap{A.} I'm not looking for grammatical input, and \cap{B.} I'm intending this for a non-English language where the quotation dash (though still not most common) isn't as out of place. \stopsection \startsection[title=Desired rendering] \quotedash~Speech should always have a dash at the start, but none at the end of a paragraph. \quotedash~Dialog asides should not duplicate dashes,~\endash\ he said.~\quotedash\ Also, this doesn't reflect the spacing mentioned in section \in[extra]. \quotedash~nor, as above, add ones at the end of paragraphs. \endash~he continued. \stopsection \startsection[title=Actual output] \speech{Speech should always have a dash at the start, but none at the end of a paragraph.} \speech{Dialog asides should not duplicate dashes, \aside{he said.}} Also, note the spacing isn't removed despite \type{\removeunwantedspaces}, but instead duplicated. \speech{nor, as above, add ones at the end of paragraphs. \aside{he continued.}} \stopsection \startsection[title=Additional considerations and observations,reference=extra] It would also be nice if a quote ending in a period carried the \quote{broad} spacing to the other side of the (ending) quote dash |=| the dash before \quote{Also} above would be packed on the left and broad on the right. I know this might be a lot trickier to code, and only consider it a bonus. The issue with \type{\removeunwantedspaces} only seems to affect the command forms. When inserted directly |<| as here |>| the spacing acts as desired in the \cap{PDF} (as expected, the \cap{XML} doesn't understand the order). Also, the right \type{|>|} doesn't require either of the explicit spacing instructions (beyond being non-breaking) while the others do; try switching the commented lines and re-rendering. The quotation dash itself only \emph{looks} as I want it; when I highlight and copy the text or export it to the \cap{XML} backend, it's still two dashes next to each other. Instead, I'd like it to be the Unicode bar U+2015. I'm not sure if \TEX/\LUATEX\ allows that difference between appearance and interaction (I do know \cap{PDF} does), so if there's some way of adding a new glyph to the font |<| one that mimics the other dashes even if the font changes |>| I'd love to actually use the proper codepoint. As is, that doesn't work in the standard font(s): [\char"2015]. \stopsection \stoptext I bet that Wolfgang has the answers to the speech setup so I'll do the font part. It's possible to use leaders to remove multiple dashes and also dashes at the end of a paragraph but this will only work for the PDF. A limitation is that you can't use the existing \speech and \aside commands because they use groups which prevents the removal of unwanted dashes. \unprotect \def\speech_dash {\setbox\scratchbox\hbox{\texthorizontalbar\space}% \leaders\copy\scratchbox\hskip\wd\scratchbox} \def\speech_left {\ifhmode \removeunwantedspaces \else \dontleavehmode \fi \space\speech_dash} \def\speech_right {\removeunwantedspaces \space\speech_dash} %\define[1]\speech % {\speech_left#1\speech_right} \unexpanded\def\speech {\speech_left \bgroup \aftergroup\speech_right \let\next=} \def\aside_dash {\setbox\scratchbox\hbox{\endash\space}% \leaders\copy\scratchbox\hskip\wd\scratchbox} \def\aside_left {\ifhmode \removeunwantedspaces \else \dontleavehmode \fi \space\aside_dash} \def\aside_right {\space\aside_dash} %\define[1]\aside % {\aside_left#1\aside_right} \unexpanded\def\aside {\aside_left \bgroup \aftergroup\aside_right \let\next=} \protect \setupbodyfont[pagella] \starttext \speech{first speech} \speech{second speech} \speech{first speech} no speech \speech{second speech} \speech{first speech\aside{aside}} \speech{second speech} \speech{speech \aside{aside}} no speech \stoptext 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] Epub export css buglets
On 1/10/2020 10:59, Rik Kabel wrote: Here ya go, about as minimal as I can imagine: \setupbackend [export=yes] \setupexport [] \starttext ! \stoptext and in the resulting export styles directory, I get: g:\yoiks-export\styles>grep "namespace\|weight.*italic\|text-width" *.css yoiks-defaults.css:@namespace context url('http://www.pragma-ade.com/context/export') ; yoiks-defaults.css: font-weight : italic ; yoiks-images.css:@namespace context url('%namespace%') ; yoiks-styles.css:@namespace context url('%namespace%') ; yoiks-styles.css:text-width : justify !important ; yoiks-templates.css:@namespace context url('%namespace%') ; So: * three unexpanded %namespace%s, * one invalid property (text-width), * and one incorrect property (font-weight should be font-style). The *namespace* and *text-width* issues are now fixed, but the *font-weight : italic* fault in default.css remains. I also note that the W3C CSS validator reports for styles.css: 11 document, div.document inherited is not a hyphens value : inherited That validator (and others) also report a number of issues for the @counter-style rule, which seems to have changed significantly since this CSS was developed. Validators report a number of smaller issues as well. I understand that export output is a low-priority feature. -- Rik ___ 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] Quotation dash issues with semantic markup
On 12/30/2019 5:03 AM, Sam May wrote: \setuplanguage[en] [leftquotation=\quotedash~, rightquotation=~\quotedash, leftsentence=\removeunwantedspaces~\endash\space, midsentence=\removeunwantedspaces~\endash\space, % leftsentence=\endash~, % midsentence=~\endash, rightsentence=~\endash] \define\quotedash{\emdash\endash} %\setupbackend[export=yes] \starttext \startsection[title=Introduction] Any of you able to help me get my quotation dashes into line when automatically inserted by the semantic commands? I'm sure a number of you look at this style and cringe, but \cap{A.} I'm not looking for grammatical input, and \cap{B.} I'm intending this for a non-English language where the quotation dash (though still not most common) isn't as out of place. \stopsection \startsection[title=Desired rendering] \quotedash~Speech should always have a dash at the start, but none at the end of a paragraph. \quotedash~Dialog asides should not duplicate dashes,~\endash\ he said.~\quotedash\ Also, this doesn't reflect the spacing mentioned in section \in[extra]. \quotedash~nor, as above, add ones at the end of paragraphs. \endash~he continued. \stopsection \startsection[title=Actual output] \speech{Speech should always have a dash at the start, but none at the end of a paragraph.} \speech{Dialog asides should not duplicate dashes, \aside{he said.}} Also, note the spacing isn't removed despite \type{\removeunwantedspaces}, but instead duplicated. \speech{nor, as above, add ones at the end of paragraphs. \aside{he continued.}} \stopsection \startsection[title=Additional considerations and observations,reference=extra] It would also be nice if a quote ending in a period carried the \quote{broad} spacing to the other side of the (ending) quote dash |=| the dash before \quote{Also} above would be packed on the left and broad on the right. I know this might be a lot trickier to code, and only consider it a bonus. The issue with \type{\removeunwantedspaces} only seems to affect the command forms. When inserted directly |<| as here |>| the spacing acts as desired in the \cap{PDF} (as expected, the \cap{XML} doesn't understand the order). Also, the right \type{|>|} doesn't require either of the explicit spacing instructions (beyond being non-breaking) while the others do; try switching the commented lines and re-rendering. The quotation dash itself only \emph{looks} as I want it; when I highlight and copy the text or export it to the \cap{XML} backend, it's still two dashes next to each other. Instead, I'd like it to be the Unicode bar U+2015. I'm not sure if \TEX/\LUATEX\ allows that difference between appearance and interaction (I do know \cap{PDF} does), so if there's some way of adding a new glyph to the font |<| one that mimics the other dashes even if the font changes |>| I'd love to actually use the proper codepoint. As is, that doesn't work in the standard font(s): [\char"2015]. \stopsection \stoptext I bet that Wolfgang has the answers to the speech setup so I'll do the font part. Assuming that you use context lmtx (the luametatex branch), you can use some of the new metafun magic. \startMPcalculation{simplefun} vardef QuotationDash = draw image ( interim linecap := squared ; save l ; l := 0.2 ; draw (l/2,2) -- (15-l/2,2) withpen pencircle scaled l ; ) enddef ; lmt_registerglyphs [ name = "symbols", units= 10, usecolor = true, width= 15, height = 2.1, depth= 0, ] ; lmt_registerglyph [ category = "symbols", unicode = "0x2015", code = "QuotationDash ;" ] ; \stopMPcalculation \definefontfeature[default][default][metapost=symbols] % \showglyphs \starttext \startlines xx\endashxx xx\emdashxx xx\endash\emdash xx xx\char"2015 xx \stoplines \stoptext Keep in mind that when you use for instance pagella, that there already that glyph. 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] problem with a new installation of LMTX
On Sun, 8 Dec 2019 at 17:35, Alan Braslau wrote: > > On Sun, 8 Dec 2019 12:15:26 +0100 > Otared Kavian wrote: > > > but otherwise as Floris suggests in his response, maybe we have to abandon > > MacOS in the near future… > > No, simply we need to adapt our procedures (installation scripts) to be > compatible with MacOS policy. One way that (still?) works is using rsync instead of fetching via http. One very simple way to quickly offer a working solution would be to offer the installer via rsync. Adapting our procedures to meet Apple's security requirements would take quite some effort (as well as paying a fee to Apple) to set up the automatism and send all binaries for notarization. See https://tug.org/TUGboat/tb40-2/tb125koch-harden.pdf for an extensive description of what approximately is needed. But note that the article's author needs to perform this roughly once per year (that's very far from actually being one-off task as there are many rounds to do), while we would need to make it work on regular basis (ideally fully automated). And MacTeX already comes as an official installer (pkg), while we don't have any app wrapper for ConTeXt yet. But in any case we need to wikify the procedure for LMTX. I thought someone described a working workaround not that long ago? (I'm not sure who, but searching for Catalina should provide some hits.) Mojca ___ 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] tikz
In addition Hrabans note When using tikz, don't use filenames with spaces. not: picture test.tex, better: picture-test.tex Building may work, so possibly not your error, but some text about pgf may appear in the PDF and empty files (here eg pictures) maybe created. bye, Martin On Wed, 2019-11-27 at 15:42 +, Ursula Hermann wrote: > Then after compiling I have the following mistake: > > Command Line: context.exe --synctex=-1 "picture test.tex" > Startup Folder: > C:\Users\Hermann\Downloads\context-mswin\tex\texmf-context\doc\context\sources\general\manuals\nodes > ___ 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] ConTeXt as a service
> Am 2019-11-23 um 15:14 schrieb Mojca Miklavec > : > > On Sat, 23 Nov 2019 at 13:02, Henning Hraban Ramm wrote: >>> Am 2019-11-23 um 08:12 schrieb Mojca Miklavec: >>>> >>>> Then you can use one of the online JS editors like CKeditor.\ >>> >>> Only if you spend an enormous amount of effort making sure that the >>> code is properly cleaned up rather than containing a gazillion random >>> html style tags which you can never reconstruct back into some >>> structured form. >>> >>> (And yes, my impression is that Massi spent a huge amount of effort in >>> configuring the editor and cleaning up the mess. My company didn't and >>> ended up with sometimes literally every word in a sentence using a >>> different font size or style. They gave up on html + cke pretty soon, >>> but couldn't be convinced that this was a bad idea upfront.) >> >> Don’t exaggerate. Or maybe your company didn’t think about which tags are >> really necessary. >> A proper configuration that doesn’t allow nonsense, even if users paste text >> from Word documents, is not such a big effort. > > I'm not exaggerating, I would gladly be convinced/proved that I'm > wrong. How much effort (expressed in hours or days) do you think is > needed to implement the following? > (Any existing opensource solution may be used as the basis.) > > My wishlist is not that demanding: > * allow generating both printable documents on white background, as > well as black slides with mostly white text (PDF as well as browsable > HTML website) > * support advanced mathematical formulas > * some sections or words do need to have some special markings (for > example apply some colours or bold/italic; the colour of course needs > to depend on background colour) > * tables need to be styled according to white the designer specifies, > but it should be very easy to change the table style after some months > * support consistently styled "CAUTION: ..., WARNING: ..., NOTE: ..." > sections inside the text (make it trivial to change the style of how > these are printed out after some months) > * support table of contents, nice front page etc. > * support vector images for PDFs Oh, IMO that wishlist is very demanding. I’d say it’s more or less impossible with any HTML editor. My demands were much less and well controllable: - no math, no tables - no images (they were handled differently and attached to the articles) - only simple markup (bold or italics) - not even headings (we used single editor instances for every paragraph with single text fields for section headings) - I added a few special tags, but in the end we hardly ever needed them. We had different preconfigured types of articles with length and section limits, also dependend on rubric. The workflow was not automatical: output was InDesign tagged text, i.e. preformatted text that the layouters put together in InDesign, also only working with the right InDesign templates that contained the styles that the articles addressed. Pictures came in FTP folders with named references to the articles. My client program collected articles from the web application, ads and pictures from the FTP server, preprocessed the ads and images and could also prepare InDesign docs, if they didn’t exist (using AppleScript to control InDesign). We used single ID documents for every rubric (that way several people could work on one issue) and combined them as a "book" in the end. The ToC was partly automatic (rubrics and page numbers), but manually adapted (layout, pictures etc.). The whole thing started with the automation of the event calendar – when I took over, they used a single user FileMaker database that got exported with a limited (demo?) version of a plugin; all the formatting was done manually. My colleagues at the printshop needed several days of work for that alone. I made a simple web app (database frontend), and used InDesign’s XML import – importing the calendar needed about an hour, but then it was perfectly formatted, including some icons. On the editors’ side, it was a big time saver that they could copy existing events and there was a simple location/host management. Then the publishers asked if they couldn’t use the same system also for their articles… When I started my second attempt at the system (replacing PHP and proprietary libraries with a JS/Webix frontend and a Python/Django backend), I was planning to use one editor for whole articles and probably would have run into some of your problems, but the customer didn’t like to spend money and was using my old system for several more years, until the magazine was bought by a bigger publisher… I was also planning for different backends, i.e. IDML, ConTeXt, LaTeX or any XML out
Re: [NTG-context] ConTeXt as a service
On Sat, 23 Nov 2019 at 13:02, Henning Hraban Ramm wrote: > > Am 2019-11-23 um 08:12 schrieb Mojca Miklavec: > >> > >> Then you can use one of the online JS editors like CKeditor.\ > > > > Only if you spend an enormous amount of effort making sure that the > > code is properly cleaned up rather than containing a gazillion random > > html style tags which you can never reconstruct back into some > > structured form. > > > > (And yes, my impression is that Massi spent a huge amount of effort in > > configuring the editor and cleaning up the mess. My company didn't and > > ended up with sometimes literally every word in a sentence using a > > different font size or style. They gave up on html + cke pretty soon, > > but couldn't be convinced that this was a bad idea upfront.) > > Don’t exaggerate. Or maybe your company didn’t think about which tags are > really necessary. > A proper configuration that doesn’t allow nonsense, even if users paste text > from Word documents, is not such a big effort. I'm not exaggerating, I would gladly be convinced/proved that I'm wrong. How much effort (expressed in hours or days) do you think is needed to implement the following? (Any existing opensource solution may be used as the basis.) My wishlist is not that demanding: * allow generating both printable documents on white background, as well as black slides with mostly white text (PDF as well as browsable HTML website) * support advanced mathematical formulas * some sections or words do need to have some special markings (for example apply some colours or bold/italic; the colour of course needs to depend on background colour) * tables need to be styled according to white the designer specifies, but it should be very easy to change the table style after some months * support consistently styled "CAUTION: ..., WARNING: ..., NOTE: ..." sections inside the text (make it trivial to change the style of how these are printed out after some months) * support table of contents, nice front page etc. * support vector images for PDFs Mojca ___ 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] Widgets: Any good examples for developing JS-enabled PDFs that calculate?
On 18 Nov 2019, at 3:48, Hans Hagen wrote: Here's something to play with ... note the Number conversion! A ha! Many thanks (for some reason I didn't get this email until just now); I'll try to tackle it this way and see what I can make work. \usemodule[fields] \starttext [...] \stoptext -Paul ___ 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] Widgets: Any good examples for developing JS-enabled PDFs that calculate?
On 11/17/2019 9:13 PM, Paul Mazaitis wrote: Hi everyone, First: apologies for the long email; this got a little complicated. Summary: there may be a bug in setting up calculate field for widgets? it's more that javascript in pdf is kind of unreliable and can interfere in all kind of ways with settings in the viewer so, what you need to do it - play safe (only use actions that don't relate to something clever in the viewer, and calculat eis one of them) - be redundant (hook into several actions) - disable the spell checker - enable javascript - disable some security stuff - use the debugger (which can be erratic but at least you can see something; in my older acrobat doesn't seem to work with field related scripts) - put code in functions (easier to debug) and - cross your fingers Here's something to play with ... note the Number conversion! \usemodule[fields] \starttext \setupinteraction [state=start] \startJSpreamble {whatever} used now function recalculate() { var a_fld = this.getField("A"); var b_fld = this.getField("B"); var t_fld = this.getField("T"); var a_val = Number(a_fld.value); var b_val = Number(b_fld.value); var t_val = a_val + b_val; t_fld.value = String(t_val); console.clear ; console.println("A: "+a_val) ; console.println("B: "+b_val) ; console.println("T: "+t_val) ; console.println("?: "+t_fld.value) ; this.dirty = true; } \stopJSpreamble \setupfield [numField] [reset,horizontal] [height=2pc, rulethickness=1pt, afterkey=JS(recalculate{}), focusout=JS(recalculate{}), framecolor=lightgrey] \setupfield [totalField] [reset,horizontal] [height=2pc, rulethickness=1pt, option=readonly, framecolor=lightgrey] \definefield[A][line][numField] [0] \definefield[B][line][numField] [0] \definefield[T][line][totalField][0] A: \field[A]\par B: \field[B]\par T: \field[T]\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] MKIV: error, no format found with name: cont-en, aborting
On 11/13/2019 11:14, Hans Hagen wrote: On 11/13/2019 4:54 PM, Rik Kabel wrote: On 11/13/2019 10:15, Hans Hagen wrote: On 11/13/2019 3:01 PM, Rik Kabel wrote: On 11/13/2019 04:14, Hans Hagen wrote: On 11/13/2019 9:51 AM, luigi scarso wrote: sent from ** cont...@rik.users.panix.com <mailto:cont...@rik.users.panix.com> Note from admin: the email is in defer state because "Message body is too big: 159549 bytes with a limit of 100 KB" I have kept the initial part. """"" Dear list, Since the 20191029 update I have not been able to create a document via MKIV, suffering from the subject error message (error, no format found with name: cont-en, aborting). I have tried cache clearing, regeneration, and complete fresh installs. None work. I suspect it is something on my system, but cannot think of a relevant change except possibly a Win10-64 system update. Attached is the log from the latest install try (with filenames of copied files removed). LMTX has no problems. All suggestions welcome. Also with todays version? Hans Yes. Just did a fresh install, getting current version: 2019.11.12 23:58, and have the same result. any messages? there should be something resolvers | formats | resolvers | formats | format path : c:/data/develop/tex-context/tex/texmf-cache/luatex-cache/context/764bd4e1ce0f004ab3cec90018f8b80a/formats/luametatex resolvers | formats | luatex engine : luametatex resolvers | formats | lua startup file : c:/data/develop/context/sources/luat-cod.lua resolvers | formats | context file : c:/data/develop/context/sources/cont-en.mkxl resolvers | formats | run time : 10.141 seconds resolvers | formats | return value : okay resolvers | formats | at the end (or some not found messages) 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 ___ I get the following (grepping for resolvers.*formats) from the install: resolvers | formats | using tex source file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv' resolvers | formats | using specification file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/context.lus' resolvers | formats | using tex source path 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv' resolvers | formats | changing to format path 'c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex' resolvers | formats | executing runner 'make luatex format': luatex --ini --lua=c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv \dump resolvers | formats | resolvers | formats | format path : c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex resolvers | formats | luatex engine : luatex resolvers | formats | lua startup file : c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua resolvers | formats | context file : c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv resolvers | formats | run time : 1.513 seconds resolvers | formats | return value : error resolvers | formats | resolvers | formats | using tex source file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv' resolvers | formats | using specification file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/context.lus' resolvers | formats | using tex source path 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv' resolvers | formats | changing to format path 'c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex' resolvers | formats | executing runner 'make luatex format': luatex --ini --lua=c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv \dump resolvers | formats | resolvers | formats | format path : c:/ConTeXt/tex/texmf-cache/luatex-cache
Re: [NTG-context] MKIV: error, no format found with name: cont-en, aborting
On 11/13/2019 4:54 PM, Rik Kabel wrote: On 11/13/2019 10:15, Hans Hagen wrote: On 11/13/2019 3:01 PM, Rik Kabel wrote: On 11/13/2019 04:14, Hans Hagen wrote: On 11/13/2019 9:51 AM, luigi scarso wrote: sent from ** cont...@rik.users.panix.com <mailto:cont...@rik.users.panix.com> Note from admin: the email is in defer state because "Message body is too big: 159549 bytes with a limit of 100 KB" I have kept the initial part. """"" Dear list, Since the 20191029 update I have not been able to create a document via MKIV, suffering from the subject error message (error, no format found with name: cont-en, aborting). I have tried cache clearing, regeneration, and complete fresh installs. None work. I suspect it is something on my system, but cannot think of a relevant change except possibly a Win10-64 system update. Attached is the log from the latest install try (with filenames of copied files removed). LMTX has no problems. All suggestions welcome. Also with todays version? Hans Yes. Just did a fresh install, getting current version: 2019.11.12 23:58, and have the same result. any messages? there should be something resolvers | formats | resolvers | formats | format path : c:/data/develop/tex-context/tex/texmf-cache/luatex-cache/context/764bd4e1ce0f004ab3cec90018f8b80a/formats/luametatex resolvers | formats | luatex engine : luametatex resolvers | formats | lua startup file : c:/data/develop/context/sources/luat-cod.lua resolvers | formats | context file : c:/data/develop/context/sources/cont-en.mkxl resolvers | formats | run time : 10.141 seconds resolvers | formats | return value : okay resolvers | formats | at the end (or some not found messages) 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 ___ I get the following (grepping for resolvers.*formats) from the install: resolvers | formats | using tex source file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv' resolvers | formats | using specification file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/context.lus' resolvers | formats | using tex source path 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv' resolvers | formats | changing to format path 'c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex' resolvers | formats | executing runner 'make luatex format': luatex --ini --lua=c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv \dump resolvers | formats | resolvers | formats | format path : c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex resolvers | formats | luatex engine : luatex resolvers | formats | lua startup file : c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua resolvers | formats | context file : c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv resolvers | formats | run time : 1.513 seconds resolvers | formats | return value : error resolvers | formats | resolvers | formats | using tex source file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv' resolvers | formats | using specification file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/context.lus' resolvers | formats | using tex source path 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv' resolvers | formats | changing to format path 'c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex' resolvers | formats | executing runner 'make luatex format': luatex --ini --lua=c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv \dump resolvers | formats | resolvers | formats | format path : c:/Con
Re: [NTG-context] MKIV: error, no format found with name: cont-en, aborting
On 11/13/2019 10:15, Hans Hagen wrote: On 11/13/2019 3:01 PM, Rik Kabel wrote: On 11/13/2019 04:14, Hans Hagen wrote: On 11/13/2019 9:51 AM, luigi scarso wrote: sent from ** cont...@rik.users.panix.com <mailto:cont...@rik.users.panix.com> Note from admin: the email is in defer state because "Message body is too big: 159549 bytes with a limit of 100 KB" I have kept the initial part. """"" Dear list, Since the 20191029 update I have not been able to create a document via MKIV, suffering from the subject error message (error, no format found with name: cont-en, aborting). I have tried cache clearing, regeneration, and complete fresh installs. None work. I suspect it is something on my system, but cannot think of a relevant change except possibly a Win10-64 system update. Attached is the log from the latest install try (with filenames of copied files removed). LMTX has no problems. All suggestions welcome. Also with todays version? Hans Yes. Just did a fresh install, getting current version: 2019.11.12 23:58, and have the same result. any messages? there should be something resolvers | formats | resolvers | formats | format path : c:/data/develop/tex-context/tex/texmf-cache/luatex-cache/context/764bd4e1ce0f004ab3cec90018f8b80a/formats/luametatex resolvers | formats | luatex engine : luametatex resolvers | formats | lua startup file : c:/data/develop/context/sources/luat-cod.lua resolvers | formats | context file : c:/data/develop/context/sources/cont-en.mkxl resolvers | formats | run time : 10.141 seconds resolvers | formats | return value : okay resolvers | formats | at the end (or some not found messages) 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 ___ I get the following (grepping for resolvers.*formats) from the install: resolvers | formats | using tex source file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv' resolvers | formats | using specification file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/context.lus' resolvers | formats | using tex source path 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv' resolvers | formats | changing to format path 'c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex' resolvers | formats | executing runner 'make luatex format': luatex --ini --lua=c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv \dump resolvers | formats | resolvers | formats | format path : c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex resolvers | formats | luatex engine : luatex resolvers | formats | lua startup file : c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua resolvers | formats | context file : c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv resolvers | formats | run time : 1.513 seconds resolvers | formats | return value : error resolvers | formats | resolvers | formats | using tex source file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv' resolvers | formats | using specification file 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/context.lus' resolvers | formats | using tex source path 'c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv' resolvers | formats | changing to format path 'c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex' resolvers | formats | executing runner 'make luatex format': luatex --ini --lua=c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua c:/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv \dump resolvers | formats | resolvers | formats | format path : c:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex
Re: [NTG-context] MKIV: error, no format found with name: cont-en, aborting
On 11/13/2019 3:01 PM, Rik Kabel wrote: On 11/13/2019 04:14, Hans Hagen wrote: On 11/13/2019 9:51 AM, luigi scarso wrote: sent from ** cont...@rik.users.panix.com <mailto:cont...@rik.users.panix.com> Note from admin: the email is in defer state because "Message body is too big: 159549 bytes with a limit of 100 KB" I have kept the initial part. """"" Dear list, Since the 20191029 update I have not been able to create a document via MKIV, suffering from the subject error message (error, no format found with name: cont-en, aborting). I have tried cache clearing, regeneration, and complete fresh installs. None work. I suspect it is something on my system, but cannot think of a relevant change except possibly a Win10-64 system update. Attached is the log from the latest install try (with filenames of copied files removed). LMTX has no problems. All suggestions welcome. Also with todays version? Hans Yes. Just did a fresh install, getting current version: 2019.11.12 23:58, and have the same result. any messages? there should be something resolvers | formats | resolvers | formats | format path : c:/data/develop/tex-context/tex/texmf-cache/luatex-cache/context/764bd4e1ce0f004ab3cec90018f8b80a/formats/luametatex resolvers | formats | luatex engine: luametatex resolvers | formats | lua startup file : c:/data/develop/context/sources/luat-cod.lua resolvers | formats | context file : c:/data/develop/context/sources/cont-en.mkxl resolvers | formats | run time : 10.141 seconds resolvers | formats | return value : okay resolvers | formats | at the end (or some not found messages) 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] MKIV: error, no format found with name: cont-en, aborting
On 11/13/2019 04:14, Hans Hagen wrote: On 11/13/2019 9:51 AM, luigi scarso wrote: sent from ** cont...@rik.users.panix.com <mailto:cont...@rik.users.panix.com> Note from admin: the email is in defer state because "Message body is too big: 159549 bytes with a limit of 100 KB" I have kept the initial part. """"" Dear list, Since the 20191029 update I have not been able to create a document via MKIV, suffering from the subject error message (error, no format found with name: cont-en, aborting). I have tried cache clearing, regeneration, and complete fresh installs. None work. I suspect it is something on my system, but cannot think of a relevant change except possibly a Win10-64 system update. Attached is the log from the latest install try (with filenames of copied files removed). LMTX has no problems. All suggestions welcome. Also with todays version? Hans Yes. Just did a fresh install, getting current version: 2019.11.12 23:58, and have the same result. -- Rik ___ 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] MKIV: error, no format found with name: cont-en, aborting
On 11/13/2019 9:51 AM, luigi scarso wrote: sent from ** cont...@rik.users.panix.com <mailto:cont...@rik.users.panix.com> Note from admin: the email is in defer state because "Message body is too big: 159549 bytes with a limit of 100 KB" I have kept the initial part. """"" Dear list, Since the 20191029 update I have not been able to create a document via MKIV, suffering from the subject error message (error, no format found with name: cont-en, aborting). I have tried cache clearing, regeneration, and complete fresh installs. None work. I suspect it is something on my system, but cannot think of a relevant change except possibly a Win10-64 system update. Attached is the log from the latest install try (with filenames of copied files removed). LMTX has no problems. All suggestions welcome. Also with todays version? 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] MKIV: error, no format found with name: cont-en, aborting
sent from cont...@rik.users.panix.com Note from admin: the email is in defer state because "Message body is too big: 159549 bytes with a limit of 100 KB" I have kept the initial part. """"" Dear list, Since the 20191029 update I have not been able to create a document via MKIV, suffering from the subject error message (error, no format found with name: cont-en, aborting). I have tried cache clearing, regeneration, and complete fresh installs. None work. I suspect it is something on my system, but cannot think of a relevant change except possibly a Win10-64 system update. Attached is the log from the latest install try (with filenames of copied files removed). LMTX has no problems. All suggestions welcome. -- Rik Kabel """""" ___ 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] Issue with text running into footnotes
Hi Pablo, By setting \setupwhitespace[big] the specific issue could be solved, but then the number of pages became too big as a consequence. However, cutting the text into one more paragraph, without changing the whitespace, solved the issue of the text running into the footnote. I don't know how to setup a different penalty, nor what would be its influence in some other parts of my text. Best regards: OK > On 9 Nov 2019, at 11:04, Pablo Rodriguez wrote: > > On 11/4/19 9:49 PM, Wolfgang Schuster wrote: >> Otared Kavian schrieb am 04.11.2019 um 20:30: >>> Hi all, >>> >>> I have a lecture note in which a few footnotes are given, but in some >>> cases the text runs into the footnote, and it has been impossible for >>> me to exhibit a minimal example where the issue appears. In the link >>> https://www.dropbox.com/s/o9h0j6i21emyw2v/footnote-issue.pdf?dl=0 >>> the issue is shown in the real case. >>> [...] >> >> You can increase the vertical tolerance, e.g. >> >> \setuptolerance[vertical,verytolerant] > > Hi Wolfgang, > > I have a much worse sample (text runs totally into foonote space as > there were no footnotes). > > Setting tolerance makes no difference, setting a higher spacebefore or > before makes no difference. > > Hi Otared, > > I wonder whether you could fix your problem. > >> change the penalty settings or use a bigger whitespace between the >> paragraphs. > > Which would be those penalty settings? > > Sorry, but I don’t understand why ConTeXt has this kind of problems with > notes. Why is so difficult to keep the space before notes? > > 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 > ___ ___ 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] Issue with text running into footnotes
On 11/4/19 9:49 PM, Wolfgang Schuster wrote: > Otared Kavian schrieb am 04.11.2019 um 20:30: >> Hi all, >> >> I have a lecture note in which a few footnotes are given, but in some >> cases the text runs into the footnote, and it has been impossible for >> me to exhibit a minimal example where the issue appears. In the link >> https://www.dropbox.com/s/o9h0j6i21emyw2v/footnote-issue.pdf?dl=0 >> the issue is shown in the real case. >> [...] > > You can increase the vertical tolerance, e.g. > > \setuptolerance[vertical,verytolerant] Hi Wolfgang, I have a much worse sample (text runs totally into foonote space as there were no footnotes). Setting tolerance makes no difference, setting a higher spacebefore or before makes no difference. Hi Otared, I wonder whether you could fix your problem. > change the penalty settings or use a bigger whitespace between the > paragraphs. Which would be those penalty settings? Sorry, but I don’t understand why ConTeXt has this kind of problems with notes. Why is so difficult to keep the space before notes? 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] Issue with text running into footnotes
Otared Kavian schrieb am 04.11.2019 um 20:30: Hi all, I have a lecture note in which a few footnotes are given, but in some cases the text runs into the footnote, and it has been impossible for me to exhibit a minimal example where the issue appears. In the link https://www.dropbox.com/s/o9h0j6i21emyw2v/footnote-issue.pdf?dl=0 the issue is shown in the real case. If I remove a few lines of text before the last paragraph on th tepage shown in the above link, the issue disappears, but of course this is not a solution. I am aware that overuse of footnotes is not recommended, but in my lecture notes I have very few of them. Is there a way to prevent such conflicts between footnotes and the last lines of text on a page? You can increase the vertical tolerance, e.g. \setuptolerance[vertical,verytolerant] change the penalty settings or use a bigger whitespace between the paragraphs. 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] Issue with text running into footnotes
Hi all, I have a lecture note in which a few footnotes are given, but in some cases the text runs into the footnote, and it has been impossible for me to exhibit a minimal example where the issue appears. In the link https://www.dropbox.com/s/o9h0j6i21emyw2v/footnote-issue.pdf?dl=0 <https://www.dropbox.com/s/o9h0j6i21emyw2v/footnote-issue.pdf?dl=0> the issue is shown in the real case. If I remove a few lines of text before the last paragraph on th tepage shown in the above link, the issue disappears, but of course this is not a solution. I am aware that overuse of footnotes is not recommended, but in my lecture notes I have very few of them. Is there a way to prevent such conflicts between footnotes and the last lines of text on a page? Many thanks in advance: OK___ 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] typo in publications-customized.tex
Hello, I found a typo in publications-customize.tex. Here is a diff -u that may help to fix it quickly (not used to sending diff, I hope it'll help) --- publications-customize-patched.tex Mon Oct 28 07:26:37 2019 +++ publications-customize.tex Mon Oct 21 13:56:04 2019 @@ -362,7 +362,7 @@ diagnostics as described in the Appendices. Their functional meaning is rather \quote {handled} in contrast to \index {field+ignored}\quote {ignored}. \stopfootnote Note that if a category is \emphasis {not} declared in this \LUA\ -table, then \emphasis {all} of its fields will be considered \index +table, than \emphasis {all} of its fields will be considered \index {field+optional}\quote {optional}. Thus, ignoring this level of control and simply defining additional setups might be sufficient for most use. Regards, Damien Thiriet ___ 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] \ctxlua and \startluacode ... \stopluacode
On Tue, Oct 15, 2019 at 10:15:34AM +0200, Hans Hagen wrote: > On 10/15/2019 10:04 AM, Taco Hoekwater wrote: > > Hi Rudolf, > > > > > On 15 Oct 2019, at 00:50, Rudolf Bahr wrote: > > > > > > Now to your suggestion not to use "assert ()". Indeed it's a solution! My > > > program > > > works! I append again its output (again just for fun!). Did you really > > > try it or > > > has it been just an idea? > > > > First, let me say that embedded lua versions are typically a little bit > > different > > from standalone. Just how much different depends on the embedding program. > > Luatex > > is actually pretty close to standalone lua. Luatex adds a bunch of > > extension libraries, > > but it changes very little of the core language. And all those changes are > > documented > > in the luatex manual. None of those changes affect your minimal example, > > except > > that lua errors are handled a little differently. > > > > Note that standalone lua *also* produces an error, as that is what assert() > > is > > supposed to do. And when lua runs into an error, it ignores the rest of the > > current > > chunk: > > > >“... whenever an error occurs, Lua ends the current chunk and returns > >to the application.” (from lua.org) > > > > Standalone lua typically sees only one chunk (the file you pass on the > > command > > line) but embedded lua implementation often see (sometimes many) more > > chunks. > > In luatex’s case, each \directlua is a separate chunk (in ConTeXt, that > > means every > > \startluacode block and every \ctxlua call is a separate chunk). > > > > The only unusual thing here is that standalone lua silently quits and > > returns a > > non-zero exit code to the shell, whereas luatex gives you the typical > > TeX-style > > error prompt. The rationale for that is: lua errors can happen in many > > places in > > your input file, and if they were silently ignored, your typeset pages > > could be > > wrong without you realising it. > > > > > > And to answer your question above: I did not have to try or guess. I know > > about > > how assert() works because it is documented in the lua manual (and as it > > closely > > mimics the assert() C function, that is easy for me to remember). > as you say, it's all normal lua behaviour: > > if you do: > > print(io.open("crap.crap")) > > one gets > > nil crap.crap: No such file or directory2 > > and i think that assert then returns the second returned argument > > but if one does > > context(io.open("crap.crap") and "yes" or "no") > > then the first argument is checked against > > Hans Hi Hans, hi Taco! For your answers and patient explanations I want to thank you, not to forget [1], [2], [3] for instance! Now it gets clearer to me what the distinctive features could be which one can encounter when using a combination of even so wunderful programming languages as ConTeXt and Lua are! Best wishes, Rudolf [1] https://wiki.contextgarden.net/Programming_in_LuaTeX [2] http://www.luatex.org/svn/trunk/manual/luatex.pdf [3] http://www.pragma-ade.com/general/manuals/cld-mkiv.pdf ___ 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] \ctxlua and \startluacode ... \stopluacode
On 10/15/2019 10:04 AM, Taco Hoekwater wrote: Hi Rudolf, On 15 Oct 2019, at 00:50, Rudolf Bahr wrote: Now to your suggestion not to use "assert ()". Indeed it's a solution! My program works! I append again its output (again just for fun!). Did you really try it or has it been just an idea? First, let me say that embedded lua versions are typically a little bit different from standalone. Just how much different depends on the embedding program. Luatex is actually pretty close to standalone lua. Luatex adds a bunch of extension libraries, but it changes very little of the core language. And all those changes are documented in the luatex manual. None of those changes affect your minimal example, except that lua errors are handled a little differently. Note that standalone lua *also* produces an error, as that is what assert() is supposed to do. And when lua runs into an error, it ignores the rest of the current chunk: “... whenever an error occurs, Lua ends the current chunk and returns to the application.” (from lua.org) Standalone lua typically sees only one chunk (the file you pass on the command line) but embedded lua implementation often see (sometimes many) more chunks. In luatex’s case, each \directlua is a separate chunk (in ConTeXt, that means every \startluacode block and every \ctxlua call is a separate chunk). The only unusual thing here is that standalone lua silently quits and returns a non-zero exit code to the shell, whereas luatex gives you the typical TeX-style error prompt. The rationale for that is: lua errors can happen in many places in your input file, and if they were silently ignored, your typeset pages could be wrong without you realising it. And to answer your question above: I did not have to try or guess. I know about how assert() works because it is documented in the lua manual (and as it closely mimics the assert() C function, that is easy for me to remember). as you say, it's all normal lua behaviour: if you do: print(io.open("crap.crap")) one gets nil crap.crap: No such file or directory2 and i think that assert then returns the second returned argument but if one does context(io.open("crap.crap") and "yes" or "no") then the first argument is checked against 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] \ctxlua and \startluacode ... \stopluacode
Hi Rudolf, > On 15 Oct 2019, at 00:50, Rudolf Bahr wrote: > > Now to your suggestion not to use "assert ()". Indeed it's a solution! My > program > works! I append again its output (again just for fun!). Did you really try it > or > has it been just an idea? First, let me say that embedded lua versions are typically a little bit different from standalone. Just how much different depends on the embedding program. Luatex is actually pretty close to standalone lua. Luatex adds a bunch of extension libraries, but it changes very little of the core language. And all those changes are documented in the luatex manual. None of those changes affect your minimal example, except that lua errors are handled a little differently. Note that standalone lua *also* produces an error, as that is what assert() is supposed to do. And when lua runs into an error, it ignores the rest of the current chunk: “... whenever an error occurs, Lua ends the current chunk and returns to the application.” (from lua.org) Standalone lua typically sees only one chunk (the file you pass on the command line) but embedded lua implementation often see (sometimes many) more chunks. In luatex’s case, each \directlua is a separate chunk (in ConTeXt, that means every \startluacode block and every \ctxlua call is a separate chunk). The only unusual thing here is that standalone lua silently quits and returns a non-zero exit code to the shell, whereas luatex gives you the typical TeX-style error prompt. The rationale for that is: lua errors can happen in many places in your input file, and if they were silently ignored, your typeset pages could be wrong without you realising it. And to answer your question above: I did not have to try or guess. I know about how assert() works because it is documented in the lua manual (and as it closely mimics the assert() C function, that is easy for me to remember). Best wishes, Taco ___ 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] notes in the margin
Hi Andres, I have a working solution and another approach by Wolfgang: This is not a MWE, and it contains probably a lot of unnecessary stuff. Since Hans fixed some problems since, it might have become much easier. E.g. I seldom need my FNVOffset correction any more. % I thought I could setup those two together, but it didn’t work \setupmargindata[inmargin][ location=right, stack=continue, align=flushright, style={\switchtobodyfont[6pt]}, ] \setupmargindata[inouter][ location=right, stack=continue, align=flushright, style={\switchtobodyfont[6pt]}, ] \def\FNVOffset{0} % Negative vertical offset of footnotes in lines % Redefine this as necessary (e.g. if long footnotes overflow into the footer) \def\MarginNote#1{% \inmargin[ voffset=\dimexpr-\FNVOffset\lineheight\relax, width=\ColWidth, align=flushleft, ]{% \inframed[ width=\ColWidth, align=right, frame=off, offset=overlay, strut=yes, ]{#1}% }% } \define\PlaceFootnote{% \inmargin[ voffset=\dimexpr-\FNVOffset\lineheight\relax, width=\ColWidth, ]{% \vtop{\switchtobodyfont[6pt]\placelocalnotes[footnote][before=,after=]}}% } \def\FNo#1{{#1~}} %\crlf\gobblespacetokens}} % Distance/glue after number or before note text never disappears :( \setupnote[footnote][ location=text, bodyfont=, indenting=no, before={\noindentation}, next=\PlaceFootnote, ] \setupnotation[footnote][ way=bychapter, align=flushleft, indenting=no, location=serried, alternative=serried, width=broad, numbercommand=\FNo, ] % footnote text \setuptexttexts[margin][][% {\framed[ align={flushright,bottom}, frame=off, height=\textheight, width=\ColWidth, ]{% \strut\vfill\switchtobodyfont[6pt]}}% ] % different approach: \definecounter[Mnote][way=bychapter,prefix=no] \def\mnote#1{% \incrementcounter[Mnote]% \high{\color[mnotemark]{\convertedcounter[Mnote]}}% \inouter{{% \FootnoteFont% \color[mnotemark]{\convertedcounter[Mnote]}\crlf #1\blank[yes]}}% } % Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD > Am 2019-10-04 um 03:32 schrieb Andres Conrado Montoya > : > > I've been tinkering with this problem. It's kind of frustrating not having a > right solution for this. > After trying and failing to the last solution published by Hraban on > 2018-02-12, I tried to implement my own approach, from the other way around, > I mean: not trying to implement notes as marginal material, but to implement > the marginalia as some type of notes. A different type, apart from footnotes, > with their own counter, etc. > > Below, a MWE, with some caveats:. > 1. This is a poor quality hack. I'm not a developer. > 2. If notes are too long, they clash with each other. I tried to understand > the options that would allow me to move them up or down, according to the > Wiki (https://wiki.contextgarden.net/Command/inmargin), but they don't seem > to do anything, or I don't understand how to work with them. But if there is > actually a way to manually instruct \inmargin to move up or down, it should > be easy to make it work as an optional third argument, for example. > 3. The counter introduces some horizontal space that I cant manage to remove > except by introducing manual negative \hspace. The MWE doesn't include that > space, to display the isse. > 4. There are probably a ton of issues I have not thought about, but this > seems to work for this project I'm working on, at least. > > %%% Start MWE > > \setuplayout[ > topspace=0.722in, > header=0.311in, > footer=0.622in, > width=4.211in, > height=9.622in, > backspace=1.311in, > rightmargin=1.8in, > margindistance=24pt > ] > \definecounter[marginales][way=bytext,prefix=no] > \def\romanMarginales{\convertnumber{r}{\rawcountervalue[marginales]}} > \def\marginal{\dosingleempty\doMarginal} > \def\doMarginal[#1]#2{% > \incrementnumber[marginales] > \iffirstargument > \high{\romanMarginales}\inouter[#1]{\romanMarginales.\ #2} > \else > \high{\romanMarginales}\inouter{\romanMarginales.\ #2} > \fi > } > > \starttext > \dorecurse{6}{\input weisman And so on, and so on\marginal{This is a test, > with some words and some more words.}.\par \input thuan\par} > \stoptext > > %%% Stop MWE > > Andrés Conrado Montoya > Andi Kú > andresconr...@gmail.com > http://sesentaycuatro.com > http://messier87.com > http://chiquitico.org > > Los fines no justifican los medios, porque la medida verdadera de nuestro > carácter está dada por los medios que estamos dispuestos a utilizar, no por > los fines que proclamamos. > ---
Re: [NTG-context] Column sets (span) & unwanted vertical gap
Procházka Lukáš Ing. schrieb am 01.10.2019 um 14:51: Hello, the code bellow produces unwanted vertical gap between the bottom border of the figure and the following title "A" in the first column (marked by red arrows "<->" in the PDF attached). Note that in the second column there is no such gap. I tried to play with "before", "inbetween", "beforesection" and other keys of \setuphead to remove the gap but without success. Is there a way to avoid the vertical gap? https://www.mail-archive.com/ntg-context@ntg.nl/msg89563.html 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] Column sets (span) & unwanted vertical gap
Hello, the code bellow produces unwanted vertical gap between the bottom border of the figure and the following title "A" in the first column (marked by red arrows "<->" in the PDF attached). Note that in the second column there is no such gap. I tried to play with "before", "inbetween", "beforesection" and other keys of \setuphead to remove the gap but without success. Is there a way to avoid the vertical gap? My code so far: \setuppapersize[A3,landscape] \setuplayout [topspace=10mm,header=5mm,headerdistance=5mm,height=270mm, backspace=20mm,width=380mm, ] \setupheadertexts[] \setupfootertexts[] \definecolumnset[example][n=3,balancing=no] \definecolumnsetspan[wide][n=2] \setupexternalfigures[location=default] \setupindenting[no] \setupwhitespace[none] \setuplayout[grid=yes] \definehead[MyTit][title] \setuphead[MyTit] [style=\bf,color=MyBlue, before={\blank[none]},after={\blank[none]},inbetween={\blank[none]},beforesection={BS},aftersection={AS}, page=no,%grid=yes, ] % %\showframe %\showboxes %\showlayout % \starttext \startcolumnset[example] \startcolumnsetspan[wide] \externalfigure[cow][height=120mm,frame=on] %\vbox to120mm{} \stopcolumnsetspan \MyTit{A} \input knuth \MyTit{B} \input knuth \stopcolumnset \stoptext Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396 t6.mkiv Description: Binary data t6~~.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] Column(set)s & overlapping lines
Hello, thank you for quick response - I didn't notice such question. I added some info to wiki: https://wiki.contextgarden.net/Command/startcolumnset#Note Best, Lukas On Tue, 01 Oct 2019 08:24:19 +0200, Henri Menke wrote: This has been asked many times. Columnsets need grid. \setuplayout[grid=yes] Cheers, Henri On 10/1/19 7:16 PM, Procházka Lukáš Ing. wrote: Hello, I have the following code: \definecolumnset[example][n=3,balancing=no] \definecolumnsetspan[wide][n=2] \setupexternalfigures[location=default] % \starttext \startcolumnset[example] \startcolumnsetspan[wide] %\externalfigure[hacker][width=120mm] % Produces overlapping last two lines in the first column, too \vbox to80mm{} \stopcolumnsetspan \input knuth \stopcolumnset \stoptext The last two lines in the first column overlap (it seems that the last line is typeset a bit higher than the pre-last line) - how to avoid it? Best regards, Lukas ___ 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 ___ -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396 ___ 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] OpenBSD install broken
Dear Robert, On Sat, 21 Sep 2019 at 01:09, Robert Krug wrote: > > Now, to the reason for this note. I recently tries to install context on an > OpenBSD 6.5 AMD64 > system, but the install failed. Thanks to some helpful emails in the archives > from 2017 and 2018, > I was able to get this working by editing mtxrun and mtx-update.sh. This would be really nice to fix eventually. Hans, we do have all the required files: https://distribution.contextgarden.net/setup/openbsd6.5/ https://distribution.contextgarden.net/setup/openbsd6.5-amd64/ ... https://distribution.contextgarden.net/current/bin/luatex/openbsd6.5-amd64/ ... but the problem is that mtxrun knows the platform under the name of "openbsd-amd64" rather than "openbsd6.5-amd64". The first-setup.sh script already correctly recognizes the name by doing the following: system=`uname -s` case "$system" in OpenBSD) version=`uname -r` platform="openbsd${version}-amd64" ;; # for 64-bit one; a separate call for 32-bit of course while mtxrun "ignores" the version name, but also ignores the parameter being passed as mtxrun --script bin/mtx-update.lua --platform=openbsd6.5-amd64 > I include what I did below. Thanks. > 1) Do the usual: > > mkdir context && cd context > rsync -ptv rsync://contextgarden.net/standalone/setup/first-setup.sh . > ./first-setup.sh > > This will silently fail, because > bin/mtx-update.lua > bin/mtxrun > do not recognize openbsd. > > 2) Edit bin/mtxrun: > > We need to define a "good" version of resolvers.platform(t,k) > At line 4049, there is a default definition. Replace it with: > > function resolvers.platform(t,k) > local platform="openbsd6.5-amd64" > os.setenv("MTX_PLATFORM",platform) > os.platform=platform > return platform > end It would be ideal to fix this properly instead, for everyone else. This is a good recipe for a workaround, but we need something better. In my opinion this might be best to maybe even fix inside luatex sources themselves. > 6) Finally, the setuptex script gives me an error message: > > megaera$ . /home//Context/tex/setuptex > /bin/ksh: /home//Context/tex/setuptex[163]: ${.sh.file}": bad > substitution > > but it is not hard to set the path correctly: > > PATH=$PATH\:/home//Context/tex/texmf-openbsd6.5-amd64/bin ; export > PATH This is something that I need to fix independently in the installation script. Do you have any clue what could be done to make it work properly on OpenBSD? Mojca PS: Hans, for some reason the 32-bit virtual machine for OpenBSD 6.5 seems broken in a bad way (I doesn't even reach the login screen), no clue what's wrong, and I don't have extensive experience with OpenBSD either. I could keep investigating, but I'll probably simply end up setting up a fresh one. It would be helpful to maybe do some disk health checks on the server, just in case. ___ 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] OpenBSD install broken
Greetings, First, thanks for all the wonderful work on context. Now, to the reason for this note. I recently tries to install context on an OpenBSD 6.5 AMD64 system, but the install failed. Thanks to some helpful emails in the archives from 2017 and 2018, I was able to get this working by editing mtxrun and mtx-update.sh. I include what I did below. Thanks again, Robert 1) Do the usual: mkdir context && cd context rsync -ptv rsync://contextgarden.net/standalone/setup/first-setup.sh . ./first-setup.sh This will silently fail, because bin/mtx-update.lua bin/mtxrun do not recognize openbsd. 2) Edit bin/mtxrun: We need to define a "good" version of resolvers.platform(t,k) At line 4049, there is a default definition. Replace it with: function resolvers.platform(t,k) local platform="openbsd6.5-amd64" os.setenv("MTX_PLATFORM",platform) os.platform=platform return platform end 3) Edit bin/mtx-update: 3a) In the table update.platforms add an entry for openbsd: ["openbsd6.5-amd64"] = "openbsd6.5-amd64", I put this at line 198, after the entries for freebsd. 3b) In the function update.synchronize() replace line 282: local platforms = states.get('platforms') or { } with: local platforms = states.get('platforms') or {"openbsd6.5-amd64" } 3c) At the very start of local function add_collection(collection,platform) line 417, add: platform = "openbsd6.5-amd64" Maybe something is broken on my system or these last two aren't really needed, but this is what I did, 4) Edit first-setup.sh: To avoid overwriting the files we just edited, comment out line 146: # rsync -rlptv rsync://contextgarden.net/minimals/setup/$platform/bin . This may interfere with future updates. 5) Install for real this time: ./first-setup.sh --modules=all 6) Finally, the setuptex script gives me an error message: megaera$ . /home//Context/tex/setuptex /bin/ksh: /home//Context/tex/setuptex[163]: ${.sh.file}": bad substitution but it is not hard to set the path correctly: PATH=$PATH\:/home//Context/tex/texmf-openbsd6.5-amd64/bin ; export PATH ___ 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 lmtx in display mathmode
On 8/19/2019 12:20 AM, Otared Kavian wrote: Hi Hans, I have a long document which typesets correctly with mkiv, but I get a (cryptic for me…) fatal error message when I try to typeset it in lmtx: ! error: (nodes): trying to delete an attribute reference of a non attribute list node 4476mtx-context | fatal error: return code: 256 I could finally find the origin of the error, which is exposed in the following example: if you comment out the part from \startformula ... \stopformula, the file typesets correctly. But with this part, one gets the above error message, the culprit being \liminfbar which is defined in the first line. Note that \liminfbar is accepted when it is inline math. Best regards: OK %%% begin bug-math-lmtx.tex \definemathcommand[liminfbar][limop] {\underline{\mfunctionlabeltext{lim}}} \starttext If $(u_{n})_{n}$ is a sequence of real numbers, we define its {\it limit inferior}, denoted $\liminfbar$ by setting: \startformula a_{n} := \inf\{u_{k} \; ; \; k \geq n \}, \qquad\text{and then}\quad \liminfbar_{n\to\infty} u_{n} := \sup_{n \geq 1} a_{n}. \stopformula \stoptext %%% end bug-math-lmtx.tex also in yesterdays beta? 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] Bug in lmtx in display mathmode
Hi Hans, I have a long document which typesets correctly with mkiv, but I get a (cryptic for me…) fatal error message when I try to typeset it in lmtx: ! error: (nodes): trying to delete an attribute reference of a non attribute list node 4476mtx-context | fatal error: return code: 256 I could finally find the origin of the error, which is exposed in the following example: if you comment out the part from \startformula ... \stopformula, the file typesets correctly. But with this part, one gets the above error message, the culprit being \liminfbar which is defined in the first line. Note that \liminfbar is accepted when it is inline math. Best regards: OK %%% begin bug-math-lmtx.tex \definemathcommand[liminfbar][limop] {\underline{\mfunctionlabeltext{lim}}} \starttext If $(u_{n})_{n}$ is a sequence of real numbers, we define its {\it limit inferior}, denoted $\liminfbar$ by setting: \startformula a_{n} := \inf\{u_{k} \; ; \; k \geq n \}, \qquad\text{and then}\quad \liminfbar_{n\to\infty} u_{n} := \sup_{n \geq 1} a_{n}. \stopformula \stoptext %%% end bug-math-lmtx.tex ___ 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] Cross referencing by using \useexternaldoument
Hello Wolfgang! Thank you again for your explanation. Indeed the thing is the availability of the tuc-file of the referenced file. — I will add a note on this on the Wiki. Willi > On 18 Aug 2019, at 18:07, Wolfgang Schuster > wrote: > > Willi Egger schrieb am 18.08.2019 um 17:30: >> Hi all, >> >> there is an old thread concerning this issue from september 2015. It appears >> unfortunately, that this issue persists. >> >> You can reference to places inside a document, but references to an outside >> document are broken. The links do not work and no page numbers or texts are >> typeset from the external document. >> >> Can someone help me to solve this? > I tried your example and had no problem to get the page and section numbers > from the other document. What you have to ensure is that the tuc-file for the > other document you want to refer dies exist because context uses it to get > the values for the numbers etc. > > 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 > ___ ___ 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] ConTeXt Meeting 2019 registration details and tshirts
Hi all, Because I received some email requests on whether registration is still open for the ConTeXt meeting in Bassenge and what to do about day visits et cetera, here is the nitty gritty on that: * As of today, there is room left for 10 extra participants, so late registrations are still possible. * Nevertheless, if you are certain you want to attend; better make sure to register shortly. You’ll be sorry if there is a sudden influx of dozens of new ConTeXt users from CCCamp and registrations have to be closed because of lack of room ;) * There are no single rooms available any more. * Registration will be closed on Sunday September 8 even if we are not full up by then, as some dinner ingredients need to be ordered in advance. * Day visits and partial attendance are both possible, but must be announced before September 8 if you want to stay for dinner and/or overnight (see above). Note further that overnight stays are subject to availability of empty beds. Fees for such visits: Lunch: €10; Dinner: €30; Overnight stay: €40. * The registration form can be used for day visits and partial attendance as well as for “normal” registration: https://meeting.contextgarden.net/2019/register.shtml but emailing me personally works fine as well. I hope that covers everything. Feel free to contact me directly if I forgot something. Then, there is a note on T-shirts needed: At the moment, we do not have enough registrations for a balanced budget. This means we had to cancel the free conference T-shirt, sorry! However, all is not lost: Pavneet Arora will be producing T-shirts for those that are willing to pay cash on delivery at Bassenge. Expected price is around €15 per shirt. Because of production times, reservation is both required and urgent. The production order should be made next Monday or Tuesday at the latest, so if you want one (or more) of the T-shirts, decide quickly! Pavneet will probably post a screenshot of the final logo design later today, and I am sure he will answer any additional questions you may have. Best wishes, Taco ___ 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] Place footnote after reference
Hi, > On 22 Jul 2019, at 18:34, Huseyin Özoguz wrote: > > > The problem is, that Context (or Tex) skips lines, which is poor typesetting, > too many even than necessary in some cases, and that is not suitable. ConTeXt does not skip too much in this example, it the second footnote will just not fit with the (default) parameter set ConTeXt is using. If the footnote 2 would be on the first page, that is an extra line for the reference line, and an extra line for the actual note. There is an implicit \blank before the footnote rule, and that is a third ‘line’. Since there only is 2 lines (and a bit) of space available, it will not fit. Disable the default \blank with: \setupnote[footnote][before=] and both notes will fit on the first page. Best wishes, Taco ___ 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] noindent vs noindentation in strc-con
Hi, Why do all the rendering setups in strc-con.mkvi use \noindent? Can the \noindet be replaced by \noindentation? \noindent has some side effects. For example, consider this recent question on TeX.SE: https://tex.stackexchange.com/questions/499464/context-empty-line-in-enumeration which basically boils down to the difference between: \showboxes \starttext \noindent \inmargin{Example 1} \startitemize \item This is how enumeration works. \stopitemize \inmargin{Example 2} \startitemize \item This works correctly \stopitemize \stoptext Note that the first example has an extra space before the itemize. In principle, replacing \noindent by \noindentation fixes the extra line break, but it does not work with enumerations because it uses \inmargin[scope=local]: \showboxes \starttext \noindentation \inmargin[scope=local]{Example 1} \startitemize \item This is how enumeration works. \stopitemize \inmargin[scope=local]{Example 2} \startitemize \item This works correctly \stopitemize \stoptext where the box containing "noindentation" is misgligned. So, two questions: * Why is \noindent used instead of \noidentation? * Is there a bug with scope=local? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] reference containing parentheses causes trouble
Hi Sanjoy, I think it's just the 'normal' limitations you have when setting a variable/id name. Special characters, like parenthesis, are not allowed here. Even whitespace can be problematic. Yesterday I had a problem with a reference (data driven) that has a trailing space (obviously a typo). This space was 'eaten' by TeX, resulting in a broken link. Embracing the argument helped here, but I haven't tested what happens, if you use multiple spaces in a row... Greetings, Peter Am 10.07.2019 um 04:15 schrieb Sanjoy Mahajan: > Dear List, > > Warning: The following may be a bug or feature or just my > misunderstanding! It seems that parentheses cause trouble in > references. MNWE: > > \starttext > \section[sec:one(two)]{One} > > As you see in sec.~\in[sec:one(two)], > > \stoptext > > The "in sec.~\in[sec:one(two)]" typesets as "in sec. ??" and the log > shows: > > references > start missing references > > references >1 [][sec:one(two)] > > references > stop missing references > > (It all works fine upon deleting "(two)" throughout.) > > Is this behavior known and expected? If it is, I'll add a note to the > "References" page on the wiki. > > -Sanjoy > ___ > 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 ___
[NTG-context] reference containing parentheses causes trouble
Dear List, Warning: The following may be a bug or feature or just my misunderstanding! It seems that parentheses cause trouble in references. MNWE: \starttext \section[sec:one(two)]{One} As you see in sec.~\in[sec:one(two)], \stoptext The "in sec.~\in[sec:one(two)]" typesets as "in sec. ??" and the log shows: references > start missing references references >1 [][sec:one(two)] references > stop missing references (It all works fine upon deleting "(two)" throughout.) Is this behavior known and expected? If it is, I'll add a note to the "References" page on the wiki. -Sanjoy ___ 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] is it useful to use the option "--fonts=all" when running first-setup-sh?
On 6/23/19 10:53 PM, Andres Conrado wrote: > Thanks, Pablo. I am assuming I need to have Utopia installed in my usual > font folder. I tried with Erewhon (I have otf files for that) and it > works. Thank you. > > In a related note, is there any reasonable way to use the latex math > font /Math Times Pro 2/ (https://www.pctex.com/mtpro2.html)? I know a > latex user who bought that font and I wonder if I can convince him to > get on the ConTeXt boat. Hi Andrés, I’m afraid that the consistency of message threads suffers with reply to digest messages (https://mailman.ntg.nl/pipermail/ntg-context/2019/thread.html). At least, consider editing the subject and removing the irrelevant parts from other messages, as suggested in: > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." Don’t get me wrong, a message may get no reply because it goes unnoticed. Regarding Math Times Pro 2, I wonder whether "\definefontfamily[mainface][mm][Math Times Pro 2]" would allow partial usage. But my background is in humanities and math is all Greek to me . Just in cas it might 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] ntg-context Digest, Vol 180, Issue 23
Thanks, Pablo. I am assuming I need to have Utopia installed in my usual font folder. I tried with Erewhon (I have otf files for that) and it works. Thank you. In a related note, is there any reasonable way to use the latex math font *Math Times Pro 2* (https://www.pctex.com/mtpro2.html)? I know a latex user who bought that font and I wonder if I can convince him to get on the ConTeXt boat. Andrés Conrado Montoya http://chiquitico.org El dom., 23 jun. 2019 a las 5:00, escribió: > Send ntg-context mailing list submissions to > ntg-context@ntg.nl > > To subscribe or unsubscribe via the World Wide Web, visit > https://mailman.ntg.nl/mailman/listinfo/ntg-context > or, via email, send a message with subject or body 'help' to > ntg-context-requ...@ntg.nl > > You can reach the person managing the list at > ntg-context-ow...@ntg.nl > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > > > Today's Topics: > >1. Re: is it useful to use the option "--fonts=all" when running > first-setup-sh? (Pablo Rodriguez) >2. Re: crosswords puzzles (Wolfgang Schuster) >3. mkii to mkiv - section numbering with minimal example > (Duncan Hothersall) >4. Re: mkii to mkiv - section numbering with minimal example > (Hans Hagen) > > > -- > > Message: 1 > Date: Sat, 22 Jun 2019 12:03:38 +0200 > From: Pablo Rodriguez > To: ntg-context@ntg.nl > Subject: Re: [NTG-context] is it useful to use the option > "--fonts=all" when running first-setup-sh? > Message-ID: <9a3757f9-04d5-ae8b-655f-160c9bc91...@gmx.es> > Content-Type: text/plain; charset=utf-8 > > On 6/20/19 10:39 PM, Andres Conrado Montoya wrote: > > As the subject says. I've been experimenting with having a by-project > > context folder, so I can have a "frozen" version for each project. I see > > there's an option to install more fonts (including utopia, useful for a > > project I'm working on). However, I have no idea how to use these fonts. > > Are they available in mkiv? only for mkii? Do we have typescripts for > > those fonts? If so, how are they called? Are those fonts actually usable > > or are they just remains from a past era? > > Hi Andrés, > > this sample works fine with both MkIV and LMTX (no --fonts=all required): > > \definefontfamily[mainface][rm][Utopia] > \setupbodyfont[mainface] > \starttext > \input zapf > \stoptext > > Just in case it helps, > > Pablo > -- > http://www.ousia.tk > > > -- > > Message: 2 > Date: Sat, 22 Jun 2019 12:05:13 +0200 > From: Wolfgang Schuster > To: mailing list for ConTeXt users , DesdeChaves > > Subject: Re: [NTG-context] crosswords puzzles > Message-ID: > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > DesdeChaves schrieb am 22.06.2019 um 11:42: > > Dear sirs, > > > > Is there a way to make crosswords or word puzzles in context? > > In my hippocampus I have a vague idea that this has already been > > tried, but I can't find this code anymore. > AFAIK there are only packages for LaTeX to create crossword but you can > use natural or extreme tables to create them. For the input Lua can be a > better choice because you can put your words (or numbers) in a Lua table > and use a loop to create a table for TeX. > > Wolfgang > > -- next part -- > An HTML attachment was scrubbed... > URL: < > http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190622/ff819017/attachment-0001.html > > > > -- > > Message: 3 > Date: Sun, 23 Jun 2019 09:26:04 +0100 > From: Duncan Hothersall > To: mailing list for ConTeXt users > Subject: [NTG-context] mkii to mkiv - section numbering with minimal > example > Message-ID: > t...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Further to my previous query about updating from mkii to mkiv, I have > solved some of the issues by trial and error but am beginning to identify > the ones I can't resolve. My first minimal example is below. > > I want the sections and subsections not to prefix the part and chapter > numbering, giving me this output: > > Part 1 > Chapter 1.1 > Section 1 > Subsection 1.1 > > The line that used to achieve this result was > > \setupsection[section-3][previousnumber=no] > > and there was also > > \setuphead[section][partnumber=no,chapternum
[NTG-context] Lua error using module pgfplots and shader=interp
Dear all, The following example using module pgfplots does not work in an updated context standalone nor with the texlive 2019 version. %% Workaround for using tikz version in texlive 2019. %% See https://github.com/pgf-tikz/pgf/issues/675 %\unprotect %\def\XC@tgt@mod#1{#1} %\def\XC@sdef#1#2{\edef#1{#2}} %\protect \setupcolors[state=start] \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot3 [ surf, shader=interp, % works with shader=flat samples=10, domain=0:1, ] {x^2*y}; \stopaxis \stoptikzpicture \stoptext The error is the following (where line 19 contains "\stopaxis") lua error > lua error on line 19 in file [...]: ...781ce0dde776fb1556f32e/formats/luatex/lpdf-ini-macro.lua:887: pdf.obj(): object "type" missing I'm attaching the test file, with the .the log and ...-error.log files. Please note that to reproduce the error with the context version of texlive 2019 the first lines must be uncommented due to a bug in the newer version of tikz. I suspect that the problem is with context because same file works with context from texlive 2018 (which has the same pgfplots version) and an equivalent latex version works with lualatex. Could you suggest any workaround? If not I'll file a bug with pgfplots. Thank you in advance, LD open source > level 1, order 1, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' job > passes > version mismatch: 1.3 <> 1.31 system > system > ConTeXt ver: 2019.05.25 10:45 MKIV beta fmt: 2019.5.27 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source> level 2, order 2, name '/home/luca/software/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'minimal_shading', input './minimal_shading', result 'minimal_shading' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/home/luca/Nextcloud/personal/tmpcontext/minimal_shading.tex' colors > 'rgb' color space is supported colors > 'cmyk' color space is supported modules > 'pgfplots' is loaded open source > level 3, order 4, name '/home/luca/software/context/tex/texmf-modules/tex/context/third/pgfplots/t-pgfplots.tex' loading > ConTeXt User Module / Pgfplots open source > level 4, order 5, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgfplots/pgfplots.revision.tex' close source> level 4, order 5, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgfplots/pgfplots.revision.tex' modules > 'tikz' is loaded open source > level 4, order 6, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex' loading > ConTeXt User Module / tikz open source > level 5, order 7, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex' loading > ConTeXt User Module / pgf open source > level 6, order 8, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex' loading > ConTeXt User Module / pgfcor open source > level 7, order 9, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex' loading > ConTeXt User Module / pgfsys open source > level 8, order 10, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex' loading > ConTeXt User Module / pgfrcs open source > level 9, order 11, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex' loading > ConTeXt User Module / pgfmodules close source> level 9, order 11, name '/home/luca/software/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex' open source > level 9, order 12, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex' open source > level 10, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex' close source> level 10, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex' close source> level 9, order 13, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex' open source > level 9, order 14, name '/home/luca/software/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def' close source> level 9, order 14, name '/home/luca/s
Re: [NTG-context] two (2) questions about footnotes
On 05/27/2019 09:35 AM, Hans Hagen wrote: Test1: \index{Adam}Adam. \footnote{Test2: \index{Eve}Eve.} \footnote[note:abel]{Test3: \index[Abel]{Abel in \in{note}[note:abel]}Abel.} \page \placeregister [index] \stoptext Ah excellent, thanks a lot, that makes everything clear! All best Thomas ___ 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] two (2) questions about footnotes
On 5/27/2019 8:45 AM, Thomas A. Schmitz wrote: Hi all, (2) Again, something that has been asked on the mailing list, but not received any replies: would it be possible to have the index report that "Eve" occurs inside a footnote? So it says "Eve 1 n. 1" or something like that? \starttext Test1: \index{Adam}Adam. \footnote{Test2: \index{Eve}Eve.} \footnote[note:abel]{Test3: \index[Abel]{Abel in \in{note}[note:abel]}Abel.} \page \placeregister [index] \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] Bibliography APS Style without unpublished
On Thu, 16 May 2019 12:48:30 +0200 Denis Maier wrote: > (2) there is a clear, defined standard that can be followed. > > This is actually the easier question: A few standard styles > immediately come to mind: MLA, Chicago 16th and 17 edition in its > various variants (author-date, note-bibliography, > fullnote-bibliography, both note styles with and without ibid.), > Modern Humanities Research Association... I guess having a model for > all major variants (authordate, authoryear, numeric, alphanumeric) > would be a good starting point. The main point is to have some document we can turn to as a reference so as to avoid (endless) debates about the "proper" way to do things. It has always been our intention to support more styles, but not endless variants as almost no publishers, universities and other institutions correctly follow any established specifications. > Also, we can implement more styles if (1) there is a need A call for specific use cases. -- 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] Bibliography APS Style without unpublished
I am not the OP, but I'm very much interested in how referencing works with ConTeXt so let me add to this. > You can write your own style, or your own modified style. Is the publications manual still up to date? Is there more recent information available? How would I start writing my own style? Concerning your two requirements for new styles: (2) there is a clear, defined standard that can be followed. This is actually the easier question: A few standard styles immediately come to mind: MLA, Chicago 16th and 17 edition in its various variants (author-date, note-bibliography, fullnote-bibliography, both note styles with and without ibid.), Modern Humanities Research Association... I guess having a model for all major variants (authordate, authoryear, numeric, alphanumeric) would be a good starting point. Also, we can implement more styles if (1) there is a need This is more tricky. I do very much like what ConTeXt has to offer for typesetting finished works, but I currently would not use it for writing a larger work in the Humanities. For smaller pieces I would probably write in Markdown, use pandoc to produce a context source file, and pandoc will me automatic citations via pandoc-citeproc (yet with a few glitches). For a longer work I currently don't have an alternative to biblatex. And I guess that is the point: Those with rather complex requirements for citations will either do them manually or use biblatex for this so it's not so easy to say if "there is a need". Having said that, I would really like being able to use ConTeXt here as well. So having a author-title style for the footnotes and the bibliographies would be more than welcome. ___ 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] 13th International ConTeXt meeting
TL;DR: See https://meeting.contextgarden.net/ for registration! Hi all, Registration for the next ConTeXt meeting is now open! 13th International ConTeXt Meeting == The thirteenth ConTeXt meeting will take place in Bassenge, Belgium on September 16–21, 2019 You are cordially invited to join the 13th ConTeXt meeting. The meeting will host ConTeXt and LuaTeX developers and users and gives you the opportunity to present your results, experiences and ideas on future development. The talks will be followed-up by tutorials on different ConTeXt and LuaTeX techniques. Thematic context The theme for this meeting is: dirty tricks & dangerous bends So we are particularly interested in submissions relating to either: • Sneaky ways to get ConTeXt to do exactly what you want, or • How to properly control ConTeXt is complicated environments The programme committee is Hans Hagen and Taco Hoekwater. Since not every dirty trick or dangerous bend is exciting enough to warrant a standalone presentation, we are also collecting small submissions separately that we will then combine into a single talk. Please email Hans or me with ideas. Social context == Registration opened today. We will be back in ’t Sjetootje in Bassenge-Boirs, the same location as the meetings in 2011 and 2014. There has been some remodelling (there is now an actual conference room with built-in wifi!) but the basic layout of the chateau has not changed so, as before, (single) rooms are very scarce. Note that the meeting starts on Monday evening and ends on Saturday morning. It is possible to stay on for another day (or even two, if you are OK with getting up early on Monday the 23rd). Arriving early is not possible, though. Jan (our previous host) is no longer attached to the chateau but a replacement has been found and there will still be special Belgian beers (and a marking list!). Calendric context = • May 1, 2019, beginning of registration • July 1, 2019, deadline for early bird payment • September 16-21, 2019, 13th ConTeXt Meeting See https://meeting.contextgarden.net/ for more details. Hope to see you there, Taco (your local organizer this year) ___ 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] Text around a figure
Fabrice Couvreur schrieb am 24.04.2019 um 19:44: Hi, Why does bold text touch the figure ? Thank you. Fabrice \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \starttext \placerecipe{}{ \setupbodyfont[8pt,pagella] \startMPcode path p, q ; p:= unitsquare xyscaled (1.5cm,1.5cm) ; q:= unitsquare xyscaled (2.5cm,2.5cm) shifted (1.5cm,0); draw p withpen pencircle scaled 1pt ; draw q withpen pencircle scaled 1pt ; label.llft("$A$", p) ; label.lrt("$M$", p) ; label.ulft("$P$", p) ; label.urt("$N$", p) ; label.lrt("$B$", q) ; label.urt("$Q$", q) ; label.ulft("$R$", q) ; \stopMPcode } Sur la figure ci-contre, \m{[AB]} est un segment de longueur 4. \m{M} est un point mobile sur le segment \m{[AB]} . \m{AMNP} et \m{MBQR} sont deux carrés. On note \m{x} la distance \m{AM}. \blank {\bf On cherche les positions de \m{M} telles que la surface constituée par les deux carrés soit supérieure à 10.} I guess this should work (untested). \dontleavehmode{\bf ...} 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] Text around a figure
Hi, Why does bold text touch the figure ? Thank you. Fabrice \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \starttext \placerecipe{}{ \setupbodyfont[8pt,pagella] \startMPcode path p, q ; p:= unitsquare xyscaled (1.5cm,1.5cm) ; q:= unitsquare xyscaled (2.5cm,2.5cm) shifted (1.5cm,0); draw p withpen pencircle scaled 1pt ; draw q withpen pencircle scaled 1pt ; label.llft("$A$", p) ; label.lrt("$M$", p) ; label.ulft("$P$", p) ; label.urt("$N$", p) ; label.lrt("$B$", q) ; label.urt("$Q$", q) ; label.ulft("$R$", q) ; \stopMPcode } Sur la figure ci-contre, \m{[AB]} est un segment de longueur 4. \m{M} est un point mobile sur le segment \m{[AB]} . \m{AMNP} et \m{MBQR} sont deux carrés. On note \m{x} la distance \m{AM}. \blank {\bf On cherche les positions de \m{M} telles que la surface constituée par les deux carrés soit supérieure à 10.} \blank \startitemize[n] \item À quel intervalle appartient \m{x} ? \item Montrer que le problème revient à résoudre l'inéquation : \startformula 2x²-8x+6\geqslant 0. \stopformula \item Développer le produit \m{(2x-6)(x-1)}. \item En déduire les solutions de l'inéquation \m{2x²-8x+6\geqslant 0} et conclure concernant le problème. \stopitemize \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 ___
[NTG-context] local command description
Hi, Last year after my speech at BachoTeX, Hans told me, that we can get a local catalogue of ConTeXt macros. So I wrote on a piece of paper two commands but did not note much more and now I am not sure what do they stand for mtxrun --script server --auto When I run this, I got this on my console resolvers | trees | analyzing '/home/dthiriet/texmf' mtx-server | running at port: 8088 mtx-server | document root: /usr/local/share/texmf-dist/scripts/context/lua mtx-server | main index file: unknown mtx-server | scripts subpath: /usr/local/share/texmf-dist/scripts/context/lua mtx-server | context services: http://localhost:8088/mtx-server-ctx-startup.lua and then nothing appends for a quite long time (10 minutes). Is it building a base or something like this? How long should I wait to have it made? The second command I note is mtxrun --gethelp --url=http://localhost:8088/mtx-server-ctx-help.lua?command=%command% --command= "\definecolor" When I run this, I get sh: http://localhost:8088/mtx-server-ctx-help.lua?command=definecolor: not found Is it because I did not build the base, or did I miss something (typo or so on?) Thanks, Damien Thiriet ___ 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] endnotes customizing how?
On 4/9/2019 11:19, Hans van der Meer wrote: In typesetting my endnotes with \placenotes[endnote] I seem unable to unfluence the text characteristics. I tried things like (1) \setupnotes[endnote][textcolor=blue] (2) changed fonts before the \ bgroup\bf\placenote\egroup call (3) \startsetups[setups:endnotes] \setupwhitespace[0pt] \stopsetups % textstyle influences endnotemarker in the text. \setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}] (4)\setupnotes[endnote][bodyfont=italic] Where (3) made a difference in linespacing, nothing else does. How can one determine the text characteristics of the endnotes? dr. Hans van der Meer ___ 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 ___ Not sure exactly what you want, but if it helps, here is what I have used. \setupnote handles the in-text reference to the note, \setupnotation handles the note itself. The choice of SignalStyle depends on the appearance of the chosen font's superiors, if they exist. \define[1]\SignalStyle{\high{\small\hairspace#1}} %definefontfeature [f:su] % [sups=yes] %define[1]\SignalStyle{\feature[+][f:su]{\hairspace#1}} \setupnote [endnote][ textseparator={,}, textstyle=\SignalStyle, location=none, bodyfont=, ] \setupnotation[endnote] [headstyle=\small, numbercommand=, after={\blank[halfline]}, ] -- Rik ___ 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] Expanding text across two table cells
On Mon, 8 Apr 2019, Todd DeVries wrote: Hello, I use a progress note format which contains information that doesn't change much from session to session. Items like date, location, people attending a session. I would like to include two longer items, a diagnostic field and info about guardianship at the end of a table. Both of these fields should span two cells in the table and wrap to the full width. Currently, they wrap to the width of the first table column. The cells appear to be spanned correctly, but the text does not extend. What am I missing? Use nx=2 instead of n=2. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Expanding text across two table cells
Hello, I use a progress note format which contains information that doesn't change much from session to session. Items like date, location, people attending a session. I would like to include two longer items, a diagnostic field and info about guardianship at the end of a table. Both of these fields should span two cells in the table and wrap to the full width. Currently, they wrap to the width of the first table column. The cells appear to be spanned correctly, but the text does not extend. What am I missing? Thank you for the assistance. \startcomponent c_DATE_clientcode_progress \project prj_cases \startsection[title=Counseling Progress Note, reference=DATE_clientcode] \placetable{Meeting Info} {\bTABLE \bTR \bTD \ptitle{Client Name}:~John Smith \eTD \bTD \ptitle{Billing code}:~90834 \eTD \eTR \bTR \bTD \ptitle{Date}:~April 8, 2019 \eTD \bTD \ptitle{Start \& stop time}~12:00-13:00 \eTD \eTR \bTR \bTD \ptitle{Next appointment}:~April 15, 2019 \eTD \bTD \ptitle{Punctuality}:~On time. \eTD \eTR \bTR \bTD \ptitle{Location of Service}:~Office \eTD \bTD \ptitle{Those in attendance}:~Counselor and John \eTD \eTR \bTR \bTD[n=2] \ptitle{Diagnosis}:~Adjustment Disorder, Unspecified (F43.20). \eTD \eTR \bTR \bTD[n=2] \ptitle{Children: Location / availability of parent / guardian}:~Not applicable. \eTD \eTR \eTABLE} Todd DeVries *Phone: (208) 847-5996* “Everyone must believe in something. I believe I'll go canoeing.” — Henry David Thoreau ___ 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] follow up
e tell me how to fix it or what is a better way? >> Does >> >> /mtxrun --autogenerate --script context --autopdf {filePath} >> >> work in your editor? >> >> 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 >> - >> >> >> -- >> >> Message: 3 >> Date: Fri, 5 Apr 2019 00:37:27 +0200 >> From: Hans Hagen >> To: mailing list for ConTeXt users , Dmitry >> Starostin >> Subject: Re: [NTG-context] (no subject) >> Message-ID: <2a626d5a-4378-e1f9-2278-d1496f62f...@xs4all.nl> >> Content-Type: text/plain; charset=utf-8; format=flowed >> >> On 4/4/2019 9:30 PM, Dmitry Starostin wrote: >>> In terminal: >>> >>> mtxrun --autogenerate --script context --autopdf Test.tex >>> >>> -> >>> >>> resolvers | initialization | fatal error: kpse library is accessed >>> (key: default_texmfcnf) >> this normally means that there is no file database ... context mkiv nor >> lmtx doesn't use kpse >> >> 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 >> - >> >> >> -- >> >> Message: 4 >> Date: Fri, 5 Apr 2019 08:49:00 +0200 >> From: Otared Kavian >> To: mailing list for ConTeXt users >> Subject: Re: [NTG-context] follow up >> Message-ID: <84d8fe1d-e7f7-418f-b10f-a141dd6d8...@gmail.com> >> Content-Type: text/plain;charset=utf-8 >> >> Hi Dalyoung, >> >> If this can be of any help, here is what I did in order to install >> LuaMetaTeX on MacOS in order to use it with TeXShop: >> >> 1) I downloaded from >> http://www.pragma-ade.nl/install.htm >> the version of the installer for MacOS and installed a folder named >> context-osx-64 at an appropriate place (actually at /context-osx-64) >> >> 2) Then I did >> sh install.sh >> in that folder, and once the download was finished I replaced the directory >> texmf-local with a symbolic link to my texmf-local directory (which sits >> somewhere else) >> >> 3) In the directory >> ~/Library/TeXShop/Engines >> I created a new file named LuaMetaTeX.engine containing the following three >> lines: >> >> #!/bin/bash >> >> export >> PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin >> >> /context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script context >> --autopdf "$1" --purgeall >> >> 4) Then when opening TeXShop, I can choose from the scroll menu which shows >> up on the top left of each a tex file, the engine LuaMetaTeX (or I can set >> it as default in the Preferences) in order to typeset with LuaMetaTeX engine. >> >> 5) When I need to update the installation I just run again >> sh install.sh >> from within the directory /context-osx-64 >> (The symlink to my texmf-local is not destroyed). >> >> 6) If I need to typeset a file from a command line in Terminal, then I need >> to say >> >> export >> PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin >> >> before typesetting myfile.tex by saying >> >> /context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script >> context --autopdf myfile.tex >> >> (Note that the above command should be issued when one is already in the >> directory containing myfile.tex, beacuse otherwise the corresponding pdf >> file will be created in the wrong place…). >> >> Best regards: OK >> >>> On 5 Apr 2019, at 00:17, Jeong Dal wrote: >>> >>> Dear Hans, >>> >>> I have installed both ConTeXt LMTX and ConTeXt MKIV side by side. >>> But I have a problem to run it. >>> >>> If it is OK to run a file in LMTX environment, then I got a follo
Re: [NTG-context] follow up
Test.tex >> >> -> >> >> resolvers | initialization | fatal error: kpse library is accessed >> (key: default_texmfcnf) > this normally means that there is no file database ... context mkiv nor > lmtx doesn't use kpse > > 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 > - > > > -- > > Message: 4 > Date: Fri, 5 Apr 2019 08:49:00 +0200 > From: Otared Kavian > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] follow up > Message-ID: <84d8fe1d-e7f7-418f-b10f-a141dd6d8...@gmail.com> > Content-Type: text/plain; charset=utf-8 > > Hi Dalyoung, > > If this can be of any help, here is what I did in order to install LuaMetaTeX > on MacOS in order to use it with TeXShop: > > 1) I downloaded from > http://www.pragma-ade.nl/install.htm > the version of the installer for MacOS and installed a folder named > context-osx-64 at an appropriate place (actually at /context-osx-64) > > 2) Then I did > sh install.sh > in that folder, and once the download was finished I replaced the directory > texmf-local with a symbolic link to my texmf-local directory (which sits > somewhere else) > > 3) In the directory > ~/Library/TeXShop/Engines > I created a new file named LuaMetaTeX.engine containing the following three > lines: > > #!/bin/bash > > export > PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin > > /context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script context > --autopdf "$1" --purgeall > > 4) Then when opening TeXShop, I can choose from the scroll menu which shows > up on the top left of each a tex file, the engine LuaMetaTeX (or I can set it > as default in the Preferences) in order to typeset with LuaMetaTeX engine. > > 5) When I need to update the installation I just run again > sh install.sh > from within the directory /context-osx-64 > (The symlink to my texmf-local is not destroyed). > > 6) If I need to typeset a file from a command line in Terminal, then I need > to say > > export > PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin > > before typesetting myfile.tex by saying > > /context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script > context --autopdf myfile.tex > > (Note that the above command should be issued when one is already in the > directory containing myfile.tex, beacuse otherwise the corresponding pdf file > will be created in the wrong place…). > > Best regards: OK > >> On 5 Apr 2019, at 00:17, Jeong Dal wrote: >> >> Dear Hans, >> >> I have installed both ConTeXt LMTX and ConTeXt MKIV side by side. >> But I have a problem to run it. >> >> If it is OK to run a file in LMTX environment, then I got a following error >> when I run it in MKIV environment. >> “I can’t fine a file …../defFonts.tex” even though it is there. >> To resolve it, I run “mtxrun —generate” in MKIV. >> But it invoke the same type error in LMTX. >> Here are the command in Atom editor which I use to run it. >> >> LMTX: >> source /Users/graph/ConTeXtLMTX/tex/setuptex; >> context {filePath} >> MKIV: >> source /Users/graph/ConTeXt/tex/setuptex; >> context {filePath} >> >> I may avoid it by adding “mtxrun —generate” before compiling it. >> But it isn’t a good solution. >> I think that there is a better way to do this. >> Would you please tell me how to fix it or what is a better way? >> >> Thank you for reading. >> >> Best regards, >> >> Dalyoung >> >> >>> >>> Hi, >>> >>> We have worked furiously all day kicking-out extra code, and are pleased >>> to present a lean-and-mean version of luatex with your favorite ConTeXt. >>> Same good taste but only half the calories and a new name: luametatex >>> and ConTeXt LMTX. No more Mk-whatever, no more dependencies for we can >>> now stand on our own. Of course, good-old luatex and MkIV (as well as >>> MkII) will continue to coexist and be maintained. However, now you will >>> be able to run ConTeXt lmtx on your smart thermostat or on your >&
Re: [NTG-context] follow up
Hi Dalyoung, If this can be of any help, here is what I did in order to install LuaMetaTeX on MacOS in order to use it with TeXShop: 1) I downloaded from http://www.pragma-ade.nl/install.htm the version of the installer for MacOS and installed a folder named context-osx-64 at an appropriate place (actually at /context-osx-64) 2) Then I did sh install.sh in that folder, and once the download was finished I replaced the directory texmf-local with a symbolic link to my texmf-local directory (which sits somewhere else) 3) In the directory ~/Library/TeXShop/Engines I created a new file named LuaMetaTeX.engine containing the following three lines: #!/bin/bash export PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin /context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script context --autopdf "$1" --purgeall 4) Then when opening TeXShop, I can choose from the scroll menu which shows up on the top left of each a tex file, the engine LuaMetaTeX (or I can set it as default in the Preferences) in order to typeset with LuaMetaTeX engine. 5) When I need to update the installation I just run again sh install.sh from within the directory /context-osx-64 (The symlink to my texmf-local is not destroyed). 6) If I need to typeset a file from a command line in Terminal, then I need to say export PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin before typesetting myfile.tex by saying /context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script context --autopdf myfile.tex (Note that the above command should be issued when one is already in the directory containing myfile.tex, beacuse otherwise the corresponding pdf file will be created in the wrong place…). Best regards: OK > On 5 Apr 2019, at 00:17, Jeong Dal wrote: > > Dear Hans, > > I have installed both ConTeXt LMTX and ConTeXt MKIV side by side. > But I have a problem to run it. > > If it is OK to run a file in LMTX environment, then I got a following error > when I run it in MKIV environment. > “I can’t fine a file …../defFonts.tex” even though it is there. > To resolve it, I run “mtxrun —generate” in MKIV. > But it invoke the same type error in LMTX. > Here are the command in Atom editor which I use to run it. > > LMTX: > source /Users/graph/ConTeXtLMTX/tex/setuptex; > context {filePath} > MKIV: > source /Users/graph/ConTeXt/tex/setuptex; > context {filePath} > > I may avoid it by adding “mtxrun —generate” before compiling it. > But it isn’t a good solution. > I think that there is a better way to do this. > Would you please tell me how to fix it or what is a better way? > > Thank you for reading. > > Best regards, > > Dalyoung > > >> >> Hi, >> >> We have worked furiously all day kicking-out extra code, and are pleased >> to present a lean-and-mean version of luatex with your favorite ConTeXt. >> Same good taste but only half the calories and a new name: luametatex >> and ConTeXt LMTX. No more Mk-whatever, no more dependencies for we can >> now stand on our own. Of course, good-old luatex and MkIV (as well as >> MkII) will continue to coexist and be maintained. However, now you will >> be able to run ConTeXt lmtx on your smart thermostat or on your >> refrigerator for the Internet of Things - the dawn of a new era! >> >> Stay tuned, >> >> Alan and Hans > > ___ > 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] How to update LMTX?
On 4/4/2019 10:27 PM, Henri Menke wrote: Dear list, With ConTeXt standalone there was an easy way to update the install script and the distrivution using rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . sh ./first-setup.sh --context=latest --engine=luatex --modules=all --fonts=all For LMTX it seems that I have to download the zip from http://www.pragma-ade.nl/install.htm, extract it and then run install.sh to first=setup.sh never changed so there was no reason to download that, and the idea is that install.sh also is rather stable (and like fitst-setup it also updates) account for possibly updated installation scripts. Is there a resource where I can download the (unzipped) install script and binaries via rsync directly? currently not, you can just rerun the install script and it will only fetch new files (which is pretty fast) (unzipping the beta zip in texmf-context probably works ok too but that won't update binaries) On another note, it seems that I can't install modules and fonts in LMTX. When running mtxrun --script mtx-install.lua --help I can see the options --modules and --fonts but running for modules and fonts you have to wait till mojca has the garden up and running (for now you can just copy the subtrees from a regular installation) (i don't have such a local fonts tree as my own fonts tree is way larger and i don't want mixups) bin/mtxrun --script ./bin/mtx-install.lua --update --server="..." --instance="..." --modules=all --fonts=all seems to have no effect. How do I install modules and fonts? see above 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] How to update LMTX?
On 5/04/19 9:32 AM, Alan Braslau wrote: > One just runs ./install.sh at any time to update. Yes, just like ./first-setup.sh for ConTeXt standalone, but how to update ./install.sh and mtxrun without downloading the whole zip every time? Cheers, Henri > > Alan > > > On Fri, 5 Apr 2019 09:27:15 +1300 > Henri Menke wrote: > >> Dear list, >> >> With ConTeXt standalone there was an easy way to update the install script >> and >> the distrivution using >> >> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . >> sh ./first-setup.sh --context=latest --engine=luatex --modules=all >> --fonts=all >> >> For LMTX it seems that I have to download the zip from >> http://www.pragma-ade.nl/install.htm, extract it and then run install.sh to >> account for possibly updated installation scripts. Is there a resource >> where I >> can download the (unzipped) install script and binaries via rsync directly? >> >> On another note, it seems that I can't install modules and fonts in LMTX. >> When running >> >> mtxrun --script mtx-install.lua --help >> >> I can see the options --modules and --fonts but running >> >> bin/mtxrun --script ./bin/mtx-install.lua --update --server="..." >> --instance="..." --modules=all --fonts=all >> >> seems to have no effect. How do I install modules and fonts? >> >> Cheers, Henri >> >> ___ >> 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] How to update LMTX?
One just runs ./install.sh at any time to update. Alan On Fri, 5 Apr 2019 09:27:15 +1300 Henri Menke wrote: > Dear list, > > With ConTeXt standalone there was an easy way to update the install script and > the distrivution using > > rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . > sh ./first-setup.sh --context=latest --engine=luatex --modules=all > --fonts=all > > For LMTX it seems that I have to download the zip from > http://www.pragma-ade.nl/install.htm, extract it and then run install.sh to > account for possibly updated installation scripts. Is there a resource where > I > can download the (unzipped) install script and binaries via rsync directly? > > On another note, it seems that I can't install modules and fonts in LMTX. > When running > > mtxrun --script mtx-install.lua --help > > I can see the options --modules and --fonts but running > > bin/mtxrun --script ./bin/mtx-install.lua --update --server="..." > --instance="..." --modules=all --fonts=all > > seems to have no effect. How do I install modules and fonts? > > Cheers, Henri > > ___ > 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 ___
[NTG-context] How to update LMTX?
Dear list, With ConTeXt standalone there was an easy way to update the install script and the distrivution using rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . sh ./first-setup.sh --context=latest --engine=luatex --modules=all --fonts=all For LMTX it seems that I have to download the zip from http://www.pragma-ade.nl/install.htm, extract it and then run install.sh to account for possibly updated installation scripts. Is there a resource where I can download the (unzipped) install script and binaries via rsync directly? On another note, it seems that I can't install modules and fonts in LMTX. When running mtxrun --script mtx-install.lua --help I can see the options --modules and --fonts but running bin/mtxrun --script ./bin/mtx-install.lua --update --server="..." --instance="..." --modules=all --fonts=all seems to have no effect. How do I install modules and fonts? Cheers, Henri ___ 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] Incorrect offset when textframe is used inside TEXpage
On 3/24/2019 5:46 PM, Aditya Mahajan wrote: Hi, With the latest beta, the following example: \definetextbackground [test] [ location=paragraph, ] \starttext \startTEXpage[offset=5cm] \starttest \input knuth \stoptest \stopTEXpage \stoptext gives the attached output. Note that in the output the left and right offsets are zero. Any ideas why this is happening and how to fix that. such backgrounda are normally operating in a (vertical) text flow while a texpage is basically a framed \definetextbackground [test] [topoffset=1cm, bottomoffset=1cm, leftoffset=1cm, rightoffset=3cm, location=paragraph] \starttext \startTEXpage[offset=overlay] \vskip-\strutdepth \starttest \input knuth \stoptest \stopTEXpage \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 ___
[NTG-context] issue with symbol in attachments
Dear list, I have the following sample: \setupinteraction[state=start] \setuppapersize[A9] \starttext \attachment[xml-mkiv.pdf]\\ \attachment[xml-mkiv.pdf] [symbol=Pushpin width=fit, width=fit, depth=fit]\\ \attachment[xml-mkiv.pdf] [symbol=Default]\\ \attachment[xml-mkiv.pdf] [symbol=Paperclip]\\ \attachment[xml-mkiv.pdf] [symbol=Graph]\\ \attachment[xml-mkiv.pdf] [symbol=Pushpin]\\ \stoptext Symbols aren’t distorted with comments, although option "Default" doesn’t seem to work well. \setupinteraction[state=start] \setuppapersize[A9] \starttext \comment[xml-mkiv.pdf]\\ a\comment[xml-mkiv.pdf] [symbol=Default]\\ b\comment[xml-mkiv.pdf] [symbol=Newparagraph]\\ c\comment[xml-mkiv.pdf] [symbol=Note]\\ d\comment[xml-mkiv.pdf] [symbol=Insert]\\ e\comment[xml-mkiv.pdf] [symbol=Help]\\ \stoptext Can anyone confirm that all attachment symbols are distorted, except the first one? BTW, I’m using latest beta (2019.03.21 21:39). 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 ___
[NTG-context] Incorrect offset when textframe is used inside TEXpage
Hi, With the latest beta, the following example: \definetextbackground [test] [ location=paragraph, ] \starttext \startTEXpage[offset=5cm] \starttest \input knuth \stoptest \stopTEXpage \stoptext gives the attached output. Note that in the output the left and right offsets are zero. Any ideas why this is happening and how to fix that. Thanks, Aditya test.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] Spacing between text and footnote line
On 3/24/19 3:50 PM, Huseyin Özoguz wrote: >/[...] />/Thanks, but that does not work. It only changes the distance between the />/footnote-line and the footnote-text. But I want to manipulate the />/distance above the footnote-line: between the (standard) text and the />/footnote-line. / Hi Huseyin, it isn’t clear (at least, to me) what you mean with the footnote line (there is a rule for all footnotes). I think that the "before" key from \setupnote does exactly what you say you want: specify the distance between the rule and the main text. You might use the "before" key in \setupnotation, but that will alter the space before in all footnotes. Maybe you might check the i-context.pdf document (on pages 233 and 234) to check the options for both the \setupnotation (the individual note) and \setupnote (the notes group). (It comes with the ConTeXt Suite distribution, tex/texmf-context/tex/context/interface/mkiv/i-context.pdf) Just in case it might help, Pablo Thank you pablo, it was just my mistake, I confused the both. Thanks for the reference, I will check it out. Huseyin -- Huseyin Özoguz E-Mail: h.oezo...@mmnetz.de ___ 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] Spacing between text and footnote line
On 3/24/19 3:50 PM, Huseyin Özoguz wrote: > [...] > Thanks, but that does not work. It only changes the distance between the > footnote-line and the footnote-text. But I want to manipulate the > distance above the footnote-line: between the (standard) text and the > footnote-line. Hi Huseyin, it isn’t clear (at least, to me) what you mean with the footnote line (there is a rule for all footnotes). I think that the "before" key from \setupnote does exactly what you say you want: specify the distance between the rule and the main text. You might use the "before" key in \setupnotation, but that will alter the space before in all footnotes. Maybe you might check the i-context.pdf document (on pages 233 and 234) to check the options for both the \setupnotation (the individual note) and \setupnote (the notes group). (It comes with the ConTeXt Suite distribution, tex/texmf-context/tex/context/interface/mkiv/i-context.pdf) Just in case it might 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 ___
[NTG-context] (no subject)
I started getting a bug, updated today and am still getting it. I hope someone can at least make a note of it, if not provide a suggestion/solution. MWE included. The bug is the 'incollection' and 'inbook' entries in the bibliography have 1. have page numbers in parentheses for apa and chicago 2. have no book title. It worked just a week ago. Test_Context_html.tex Description: Binary data ___ 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] Bibliography: I think module [aps] is rendering incorrectly the electronic category and others too
On Thu, 21 Mar 2019 13:16:04 -0300 Tomas Badan wrote: > Looking at context documentations and source code, it says that for > electronic category we have: > * Required fields: title > * Optional fields: address, author, howpublished, month, note, > organization, url, year, doi > > So, when I run this simple code: > > \startbuffer[example] > @ELECTRONIC {example, > title = "One title", > url = "http://www.example.org;, > } > \stopbuffer > > \usebtxdefinitions[aps] > > \definebtxdataset[basic] > \usebtxdataset[basic][example.buffer] > \definebtxrendering > [basic] > [aps] > [dataset=basic] > > \setupbtx[dataset=basic] > \nocite[example] > > \starttext > \placelistofpublications[basic] > \stoptext > > I've got an output that is similar with: > > [1] , One title, http://www.example.org (unpublished) > > which seems incorrect to me (author should not be rendered, and I was > expecting year not to be accounted for too). Am I doing something > wrong? > > Thanks in advance > Tomás > > PS. Original question was posted here: > https://tex.stackexchange.com/questions/480416/bibliography-what-is-the-correct-way-to-setup-and-invoke-the-category-electron The APS style definitions currently expect: "author", "collaboration", "organization" and, indeed, if there is none, it should not include the comma. So the texdefinition (in publ-imp-aps.mkvi) should be changed to: \starttexdefinition unexpanded btx:aps:author \btxdoif {author} { \btxflush{author} \btxcomma } \stoptexdefinition Secondly, why do you expect not to have (unpublished)? The APS style guides suggest that unpublished material should be labeled "unpublished" or "private communication". 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 ___
[NTG-context] Bibliography: I think module [aps] is rendering incorrectly the electronic category and others too
Looking at context documentations and source code, it says that for electronic category we have: * Required fields: title * Optional fields: address, author, howpublished, month, note, organization, url, year, doi So, when I run this simple code: \startbuffer[example] @ELECTRONIC {example, title = "One title", url = "http://www.example.org;, } \stopbuffer \usebtxdefinitions[aps] \definebtxdataset[basic] \usebtxdataset[basic][example.buffer] \definebtxrendering [basic] [aps] [dataset=basic] \setupbtx[dataset=basic] \nocite[example] \starttext \placelistofpublications[basic] \stoptext I've got an output that is similar with: [1] , One title, http://www.example.org (unpublished) which seems incorrect to me (author should not be rendered, and I was expecting year not to be accounted for too). Am I doing something wrong? Thanks in advance Tomás PS. Original question was posted here: https://tex.stackexchange.com/questions/480416/bibliography-what-is-the-correct-way-to-setup-and-invoke-the-category-electron ___ 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] ConTeXT install failing
I cannot get ConTeXt working on my other machine though I mimicked everything there from the working one. Installed the contextbeta with the script than try to run but this fails. See the output from what has been done and what results. Also attached the .bashrc setup sofar as regarding TeX. These are the same on both machines. I am stymied of what happened here or what could be amiss. Any pointers to the solution will be very much appreciated. In blue the commands and where they were run, in orange the telltaling error message. Installing and testrun output: 26 ~: cd /Users/hansm/TeX/context-49 27 context-49: contextbeta start download and install of contextbeta first-setup.sh sent 38 bytes received 4845 bytes 3255.33 bytes/sec total size is 4734 speedup is 0.97 mktexlsr: : not a directory, skipping. warning: /Users/hansm/TeX/context-49/tex/texmf/web2c/texmf.cnf:49: (kpathsea) No cnf value on line: OSFONTDIR =. mktexlsr: : not a directory, skipping. warning: /Users/hansm/TeX/context-49/tex/texmf/web2c/texmf.cnf:49: (kpathsea) No cnf value on line: OSFONTDIR =. tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf -> /Users/hansm/Desktop/Context Commands.pdf Context Manuals -> /tex/texmf-context/doc/context/documents/general/manuals rm: mkiv_base: No such file or directory mkiv_base -> tex/texmf-context/tex/context/base/mkiv 28 context-49: cd /Users/hansm/TeX/Test-xml-tex/xml-xtable 29 xml-xtable: echo $CONTEXTBETA context-49 30 xml-xtable: contextformat resolvers | trees | analyzing '/Users/hansm/TeX/context-49/tex' resolvers | trees | analyzing '/Users/hansm/TeX/texmf' resolvers | resolving | configuration files already identified resolvers | resolving | loading configuration file 'selfautoparent:/texmf/web2c/texmfcnf.lua' resolvers | resolving | resolvers | resolving | locating list of '/Users/hansm/TeX/context-49/tex' (runtime) (tree:Users/hansm/TeX/context-49/tex) resolvers | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:Users/hansm/TeX/context-49/tex' resolvers | trees | locator '/Users/hansm/TeX/context-49/tex' found resolvers | resolving | hash '/Users/hansm/TeX/context-49/tex' appended resolvers | resolving | locating list of '/Users/hansm/TeX/texmf' (runtime) (tree:Users/hansm/TeX/texmf) resolvers | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:Users/hansm/TeX/texmf' resolvers | trees | locator '/Users/hansm/TeX/texmf' found resolvers | resolving | hash '/Users/hansm/TeX/texmf' appended resolvers | resolving | resolvers | methods | resolving, method 'generators', how 'uri', handler 'file', argument '/Users/hansm/TeX/context-49/tex' resolvers | expansions | using cached scan of path '/Users/hansm/TeX/context-49/tex', branch '/Users/hansm/TeX/context-49/tex' resolvers | methods | resolving, method 'generators', how 'uri', handler 'file', argument '/Users/hansm/TeX/texmf' resolvers | expansions | using cached scan of path '/Users/hansm/TeX/texmf', branch '/Users/hansm/TeX/texmf' resolvers | methods | resolving, method 'generators', how 'uri', handler 'file', argument '/Users/hansm/TeX/context-49/tex' resolvers | expansions | using cached scan of path '/Users/hansm/TeX/context-49/tex', branch '/Users/hansm/TeX/context-49/tex' resolvers | methods | resolving, method 'generators', how 'uri', handler 'file', argument '/Users/hansm/TeX/texmf' resolvers | expansions | using cached scan of path '/Users/hansm/TeX/texmf', branch '/Users/hansm/TeX/texmf' resolvers | resolving | resolvers | resolving | not saving runtime tree '/Users/hansm/TeX/context-49/tex' resolvers | resolving | not saving runtime tree '/Users/hansm/TeX/texmf' resolvers | resolving | not saving runtime tree '/Users/hansm/TeX/context-49/tex' resolvers | resolving | not saving runtime tree '/Users/hansm/TeX/texmf' ...49/tex/texmf-context/scripts/context/lua/mtx-context.lua:1194: attempt to index a nil value (field 'filenames') 31 xml-xtable: contextrun xtable-test.tex resolvers | trees | analyzing '/Users/hansm/TeX/context-49/tex' resolvers | trees | analyzing '/Users/hansm/TeX/texmf' ...49/tex/texmf-context/scripts/context/lua/mtx-context.lua:1819: attempt to index a nil value (field 'filenames') 32 xml-xtable: bashrc script: # The current version in use: CONTEXTBETA=context-49 export CONTEXTBETA MYTEXMFHOME=$HOME/TeX/texmf export MYTEXMFHOME CONTEXTROOT=$HOME/TeX/$CONTEXTBETA/tex export CONTEXTROOT TEXMF=$HOME/TeX/$CONTEXTBETA/tex:$MYTEXMFHOME export TEXMF PATH=$PATH:$CONTEXTROOT/texmf-osx-64/bin export PATH # a dummy OSFONTDIR=$MYTEXMFHOME/dummy_for_fonts export OSFONTDIR # Note starting with context-30 bst-files changed location to ../mkii BSTINPUTS=$CONTEXTROOT/texmf-context/bibtex/bst/context/:$CONTEXTROOT/texmf-context/b
[NTG-context] Space between initials in bibliography
Hi, By default there seem to be no space between initials in bibliography (which I guess there should be?). I can get a space by adding \setupbtx[ stopper:initials={.\btxspace}, ] but I don't think that this is how the stopper is meant to be used. Do I miss some other key that I can use to get space inbetween initials? Minimal example below, and I attach the result without the setting above (no space V.I. Arnol'd) and with the setting above (space V. I. Arnol'd). /Mikael %Example \startbuffer[ref] @book {arnold, AUTHOR = {Arnold, Vladimir I.}, TITLE = {Ordinary differential equations}, SERIES = {Universitext}, NOTE = {Translated from the Russian by Roger Cooke, Second printing of the 1992 edition}, PUBLISHER = {Springer-Verlag, Berlin}, YEAR = {2006}, PAGES = {ii+334}, ISBN = {978-3-540-34563-3; 3-540-34563-9}, MRCLASS = {34-01 (34Cxx 37-01 37C10)}, MRNUMBER = {2242407}, } \stopbuffer \usebtxdataset[ref][ref.buffer] \setupbtx[dataset=ref] \definebtxrendering[ref][dataset=ref] \setupbtx[ stopper:initials={.\btxspace},%comment to show version without space ] \starttext \startTEXpage[offset=3bp] We study \cite[arnold]. \placelistofpublications[ref][method=dataset] \stopTEXpage \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 ___
Re: [NTG-context] Output problem with nodes.toutf utility function(latest beta 02.26.2019)
Yes, that’s correct, and that’s what I see in pdf. When I use nodes.toutf I suspect that now output in log file is no longer decomposed in T + h chars but it’s the Unicode char corresponding to Th ligature which editor font does not have glyph for. Apparently in previous versions the fonts.hashes.characters lua structure used to store unicode of components of ligature (so unicode element was a lua table/array) and now its 1 single value. local fonthashes = fonts.hashes local chardata = fonthashes.characters local info = chardata[font][c] Before, info could have been a lua table (having 2 values, unicode for T and unicode for h) or a number (unicode for some single non ligature). Now it seems to be always 1 single value (unicode for Th). Is there anyway else I could get the decomposition of the ligature ? Thanks, Joseph De : Rik Kabel Envoyé le :mercredi 27 février 2019 18:37 À : ntg-context@ntg.nl Objet :Re: [NTG-context] Output problem with nodes.toutf utility function(latest beta 02.26.2019) On 2/27/2019 11:53, Joseph Canedo wrote: Dear list, I use lua function nodes.toutf to print text being typeset in log output for debugging purposes etc… and I noticed output is now different for some characters/glyphs. I use EB Garamond font, which might explain. Before, for example output was : user > margin > margin box text Thareh. Now it is : user > margin > margin box text areh. The « Th » was replaced by some placeholder perhaps for unknown character? Please note that typeset text is not impacted, it seems correct. Joseph The dlig feature for EBGaramond causes "Th" to be replaced by a ligature. Look carefully at your typeset text and you will likely see that the "T" and "h" are joined. -- Rik ___ 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] Output problem with nodes.toutf utility function (latest beta 02.26.2019)
On 2/27/2019 11:53, Joseph Canedo wrote: Dear list, I use lua function nodes.toutf to print text being typeset in log output for debugging purposes etc… and I noticed output is now different for some characters/glyphs. I use EB Garamond font, which might explain. Before, for example output was : user > margin > margin box text Thareh. Now it is : user > margin > margin box text areh. The « Th » was replaced by some placeholder perhaps for unknown character? Please note that typeset text is not impacted, it seems correct. Joseph The dlig feature for EBGaramond causes "Th" to be replaced by a ligature. Look carefully at your typeset text and you will likely see that the "T" and "h" are joined. -- Rik ___ 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] Output problem with nodes.toutf utility function (latest beta 02.26.2019)
Dear list, I use lua function nodes.toutf to print text being typeset in log output for debugging purposes etc… and I noticed output is now different for some characters/glyphs. I use EB Garamond font, which might explain. Before, for example output was : user> margin > margin box text Thareh. Now it is : user> margin > margin box text areh. The « Th » was replaced by some placeholder perhaps for unknown character? Please note that typeset text is not impacted, it seems correct. 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] mix two-column and single-column footnotes
Hi, Is it possible to mix two-column and single-column footnotes? Here's my use case. I have two types of footnotes: 1) short one- or two-word terms 2) long descriptions and notes On some pages there are a lot of "short" footnotes which take up a lot of space at the bottom of the page. I'd like to typeset them in 2 or 3 columns. But then the "long" footnotes had better stay in one column. See below for desired input and output. Thanks, ~MHB Sample input: \definenote[shortfootnote][...,n=3] \definenote[longfootnote][...,n=1] \definenotation[shortfootnote][...] \definenotation[longfootnote][...] \starttext \shortfootnote{short}\shortfootnote{short}\shortfootnote{short} \longfootnote{This is a long footnote which spans the entire width of the page.} \shortfootnote{short}\shortfootnote{short} \longfootnote{Another "long" footnote.} \longfootnote{Note that footnotes 5, 6 used only two out of three available columns.} \stoptext Desired output: __ 1 short 2 short 3 short 4 This is a long footnote which spans the entire width of the page. 5 short 6 short 7 Another "long" footnote. 8 Note that footnotes 5, 6 used only two out of three available columns. ___ 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] Missing number, treated as zero
On Fri, 15 Feb 2019 13:59:46 +0100 Wolfgang Schuster wrote: > You need (note the “start”) > > \startsection[title={...}] > > when you use \stopsection. Ahh, I managed to try just those combination which do not work...feeling really embarrassed. :-( Thank you for being kind and exposing my stupidity. ;) Sincerely, Gour -- A person is said to be established in self-realization and is called a yogī [or mystic] when he is fully satisfied by virtue of acquired knowledge and realization. Such a person is situated in transcendence and is self-controlled. He sees everything — whether it be pebbles, stones or gold — as the same. pgpqq1hhraHuS.pgp Description: OpenPGP digital signature ___ 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] Missing number, treated as zero
Gour schrieb am 15.02.19 um 13:54: Hello, another attempt with ConTeXt and I'm getting this: $ context t.tex mtx-context | run 1: luatex --fmt="/home/gour/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en" --jobname="t" --lua="/home/gour/.texlive/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./t.tex" --c:input="./t.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv" This is LuaTeX, Version 1.07.0 (TeX Live 2018/Arch Linux) system commands enabled. open source > level 1, order 1, name '/usr/share/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv' system > system > ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2019.2.14 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' close source> level 2, order 2, name '/usr/share/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 't', input './t', result 't' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/home/gour/tmp/t.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded structure > sectioning > section @ level 3 : 0.0.1 -> Testing ConTeXt tex error > tex error on line 4 in file /home/gour/tmp/t.tex: ! Missing number, treated as zero \23>>currentnamedsection \popmacro ...m_syst_helpers_push_macro \endcsname \global \advance \lastname... l.4 \stopsection 1 \starttext 2 \section[title={Testing ConTeXt}] You need (note the “start”) \startsection[title={...}] when you use \stopsection. 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] Bad names
Hi! I was wondering what context considers a “bad” file name and what consequences that might have. From workflows-mkiv.pdf: “Bad names are reported and suitable action can be taken” Indeed, every run context tells me how many files are badly named: mkiv lua stats > graphics processing time: 0.021 seconds including tex, 14 processed images, 14 unique asked, 7 bad names A small test: \starttext \externalfigure [a] %% good \externalfigure [a.png] %% good \externalfigure [a.b.png] %% good \externalfigure [a.1.png] %% bad \externalfigure [a-1.png] %% good \externalfigure [a-.1.png]%% bad \externalfigure [a-b.1.png] %% bad \externalfigure [a-1.b.png] %% good \externalfigure [A] %% good \externalfigure [A.B] %% good \externalfigure [A.b] %% bad \externalfigure [A.B.png] %% bad \externalfigure [A.png] %% bad \externalfigure [a.c-b.b.png] %% bad %% bad names are reported in red \usemodule [s-figures-names] \stoptext I note that “A.png” and “a.1.png” are bad file names and “a-1.b.png” and “a-1.png” are good file names. What's the idea behind that logic? “A.png” and “a.1.png” seem perfectly fine file names to me. The files are included without issues, regardless of context's opinion about the name. What is a bad name for context? Does it have any consequences if badly named files are used? Just being curious. Marco ___ 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] getting ConTeXt results back to Lua (for typesetting solutions at end of document)
Hi Sanjoy, Two or three years ago Wolfgang helped me to solve an analogous question. Here is an example which works fine, and moreover one can navigate from a question to its hint (if there is one…) and then from the hint to its solution (if present…). Best regards: OK begin interactive-question-hint-answer.tex Here, following Wolfgang Schuster's ideas, we define some macros allowing to couple Questions, Hints and Answers in an automatic way Upon clicking on an interactive title for Question, Hint or Answer one goes to the corresponding Hint, Answer or Question \setupinteraction[state=start] % We define two counters which follow the numbers % appearing in Question and Answer \newcounter\QuestionCounter \newcounter\HintCounter \newcounter\AnswerCounter % We create two commands to be used in the % enumeration environments % Note that the check for trial typestting % \doifnotmode{*trialtypesetting} % is necessary in order to avoid unwanted incrementation \define[1]\QuestionTextCommand {\doifnotmode{*trialtypesetting} {\doglobal\increment\QuestionCounter \pagereference[question:\QuestionCounter]}% \doifreferencefoundelse{hint:\QuestionCounter} {\goto{#1}[hint:\QuestionCounter]} {#1}} \define[1]\HintTextCommand {\doifnotmode{*trialtypesetting} {\doglobal\increment\HintCounter \pagereference[hint:\HintCounter]}% \doifreferencefoundelse{answer:\QuestionCounter} {\goto{#1}[answer:\QuestionCounter]} {#1}} \define[1]\AnswerTextCommand {\doifnotmode{*trialtypesetting} {\doglobal\increment\AnswerCounter \pagereference[answer:\AnswerCounter]}% \doifreferencefoundelse{question:\AnswerCounter} {\goto{#1}[question:\AnswerCounter]} {#1}} % We define here two enumeration environments for % Questions and Answers \defineenumeration[question] [text=Question, headcommand=\QuestionTextCommand, number=yes, prefix=yes, prefixsegments=chapter, coupling=hint] \defineenumeration[hint] [text=Hint, headcommand=\HintTextCommand, number=yes, prefix=yes, prefixsegments=chapter, coupling=answer] \defineenumeration[answer] [text=Answer, headcommand=\AnswerTextCommand, number=yes, prefix=yes, prefixsegments=chapter, coupling=question] % Each question is followed immediately by its answer. % The answers are put in a block which will be used later \defineblock[hint] \hideblocks[hint] \defineblock[answer] \hideblocks[answer] % We define a command used after a % Question for which no Answer is provided % Since the block commands % \beginanswer ... \endanswer % cannot be used directly in a macro definition % we use a trick... % In the buffer the two counters associated to Answer % are incremented... \startbuffer[noanswer] \beginhint \doglobal\increment\HintCounter \incrementcounter[hint] \endhint \beginanswer \doglobal\increment\AnswerCounter \incrementcounter[answer] \endanswer \stopbuffer % ...and then the above buffer is invoked \define\noanswer {\getbuffer[noanswer]} % example of use: \starttext \startchapter[title=Questions] \startquestion[q:1] Prove that ${\rm e}\sim 2.73$ is irrational. This is the first question, with its own reference, for later use. \stopquestion \beginhint \starthint Write ${\rm e}$ as a series. \stophint \endhint \beginanswer \startanswer This is the answer to the first question (to \in{Question}[q:1]). \stopanswer \endanswer \startquestion This is the second question, without its own reference. \stopquestion \beginhint \starthint Do you really need a hint? :-) \stophint \endhint \beginanswer \startanswer[a:Test] This is the answer to the second question. (Note that this answer has a reference named \type{a:Test}). \stopanswer \endanswer \startquestion[q:Obvious] This is the third question, an easy one, without a given solution. \stopquestion % we increment here the counters for Answer \noanswer \startquestion[q:2] This is the fourth question with its own reference. \stopquestion \beginhint \starthint Do you really need a hint? :-) \stophint \endhint \beginanswer \startanswer This is the answer to the fourth question: use the result of \in{Question}[q:1]. \stopanswer \endanswer \startquestion This is the fifth question, without its own reference. ({\it Hint:} look again at \in{Question}[q:Obvious]). \stopquestion \beginhint \starthint Do you really need a hint? :-) \stophint \endhint \beginanswer \startanswer This is the answer to the fifth question. Read again \in{Answer}[a:Test]. \stopanswer \endanswer \stopchapter % Here we say ownnumber=1, in order to match the prefix % of numbers associated to Answer \startchapter[ownnumber=1,title=Hints] \useblocks[hint] \stopchapter \startchapter[ownnumber=1,title=Answers and solutions] \useblocks[answer] \stopchapter \stoptext
Re: [NTG-context] New logo proposal
On 1/30/2019 10:31 AM, Taco Hoekwater wrote: Hi, Just a quick note on logo design: The ConTeXt logo could just as well be a set of tulips or some (TeX-styled) lion or a dutch cow or a windmill or some variation off the Pragma-ADE logo (see pragma-ade.com). There is no real need to display the letters “context”. In fact, having a pictograph instead of / along with textual content is probably a good idea. For use in actual text we already have \CONTEXT. My 2c, ok, let me add 1c ... since 2011 in the distribution there is always a file context-version.[pdf|png] which is a colorful representation of the current context version (date and time) ... probably no one ever noticed it (at some point i dropped the icon file) 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] New logo proposal
Hi, here my humble personal thoughts: I would say, that the multicolor version is dissecting the word ConTeXT to unidentifiable crumbles. It is to my taste to less connected to typesetting, herewith agreeing partly with Clyde. The experiment of Taco however, has some charm. It includes the basic color of the associations blue and it shows nicely the word TeX. - I have no objection against a horizontal version, however in that case one might have to think to put TeX in its original version. Although we ow all thanks to Don Knuth, I believe that we use, as Hans mentions, the TeX logo in typesetting. It is therefore not obligatory to reflect this also in the ConTeXt group logo. I would welcome the version Taco prepared as a logo on the Wiki. Kind regards Willi > On 29 Jan 2019, at 11:32, Taco Hoekwater wrote: > > Hi Paul, > > Nice idea, and I actually like the multi-color version although it is a > bit too informal for some uses (but could be nice for the wiki). > > It would be more coherent if the color of the squares and the color of > the letters trailed each other around the 7 options in the writing order > for the word “CONTEXT” (C = orange+blue, O = blue+green, N = green+red > etc.) But perhaps that is not what you wanted? > > On the blue logo I tried a little experiment myself, using the > colors of http://group.contextgarden.net: > > > > > WDYT? > > Side note: I like what gitlab does with the logo in the circle crop > for its project icon. I believe it would be neat if that could be > formalised into the logo itself, but a simple circle crop does not > quite look right, and more advanced options like distorting the actual > squares are outside of my inkscape knowledge. And it may not look > that good in the end, anyway … > > I’ll be pleased to replace the current green logo on the wiki with > your multi-color one, assuming there is a some agreement and no > strong objections. > > Best wishes, > Taco > > >> On 29 Jan 2019, at 00:18, Paul Schalck wrote: >> >> Dear ConTeXt users and developers, >> >> I want to submit a new ConTeXt logo to you (link to GitLab project): >> >> https://gitlab.com/schickele/new-context-logo >> >> I made this logo in February 2018. At the time, I was planning to do some >> video tutorials on ConTeXt (still work in progress), and I wanted a nice >> looking visual clue for the thumbnails. Recently, I made a few minor tweaks >> and thought it would be the right time to put it out there. >> >> The logo comes in two different layouts (hexagonal and horizontal), and each >> layout comes in two color variations (multicolored and blue). >> >> The hexagonal layout is borrowed from the unofficial ConTeXt logo that has >> been around for some time. I like the idea of a clean geometrical form, and >> the hexagon reminds me of chemistry formulas -- one of the many application >> fields of ConTeXt. >> >> The seven colors have mainly an esthetic purpose. They also denote the >> flexibility of ConTeXt. I've added a monochromatic blue version because >> shiny, saturated colors are not suitable for every case, and blue is >> strongly associated with ConTeXt to me. Blue is also a reminder of Mark IV >> and LuaTeX. >> >> The letters are set in Din17 EF, which I've licensed. I like its simple >> shapes combined with a round and soft touch. It avoids consciously the very >> connoted Computer Modern and can be seen as a modernized and also >> Europeanized interpretation of the TeX tradition. >> >> This logo is just a humble proposal. Perhaps it is of some use to someone. >> It could also make someone else want to create and share his or her logo -- >> that would be great. >> >> I'm using ConTeXt since 2006/07 for almost everything that contains text: >> letters, presentations, invitations, résumés, certificates, manuals, >> reports, flyers, university papers, book typesetting, exercise sheets, song >> sheets, and I'm still amazed by how powerful, flexible and reliable it is. >> Thanks to the whole community -- and particularly to the Dutch wizard -- for >> making this possible! >> >> Greetings from Leimen, Germany >> >> Paul Schalck >> ___ >> 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/conte
Re: [NTG-context] New logo proposal
Hi, Just a quick note on logo design: The ConTeXt logo could just as well be a set of tulips or some (TeX-styled) lion or a dutch cow or a windmill or some variation off the Pragma-ADE logo (see pragma-ade.com). There is no real need to display the letters “context”. In fact, having a pictograph instead of / along with textual content is probably a good idea. For use in actual text we already have \CONTEXT. My 2c, Taco ___ 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] New logo proposal
On 1/29/2019 11:32 AM, Taco Hoekwater wrote: Hi Paul, Nice idea, and I actually like the multi-color version although it is a bit too informal for some uses (but could be nice for the wiki). which brings us to the wiki ... which still needs a bit more fancy css ... It would be more coherent if the color of the squares and the color of the letters trailed each other around the 7 options in the writing order for the word “CONTEXT” (C = orange+blue, O = blue+green, N = green+red etc.) But perhaps that is not what you wanted? On the blue logo I tried a little experiment myself, using the colors of http://group.contextgarden.net: WDYT? Side note: I like what gitlab does with the logo in the circle crop for its project icon. I believe it would be neat if that could be formalised into the logo itself, but a simple circle crop does not quite look right, and more advanced options like distorting the actual squares are outside of my inkscape knowledge. And it may not look that good in the end, anyway … I’ll be pleased to replace the current green logo on the wiki with your multi-color one, assuming there is a some agreement and no strong objections. Best wishes, Taco On 29 Jan 2019, at 00:18, Paul Schalck <mailto:schick...@web.de>> wrote: Dear ConTeXt users and developers, I want to submit a new ConTeXt logo to you (link to GitLab project): https://gitlab.com/schickele/new-context-logo I made this logo in February 2018. At the time, I was planning to do some video tutorials on ConTeXt (still work in progress), and I wanted a nice looking visual clue for the thumbnails. Recently, I made a few minor tweaks and thought it would be the right time to put it out there. The logo comes in two different layouts (hexagonal and horizontal), and each layout comes in two color variations (multicolored and blue). The hexagonal layout is borrowed from the unofficial ConTeXt logo that has been around for some time. I like the idea of a clean geometrical form, and the hexagon reminds me of chemistry formulas -- one of the many application fields of ConTeXt. The seven colors have mainly an esthetic purpose. They also denote the flexibility of ConTeXt. I've added a monochromatic blue version because shiny, saturated colors are not suitable for every case, and blue is strongly associated with ConTeXt to me. Blue is also a reminder of Mark IV and LuaTeX. The letters are set in Din17 EF, which I've licensed. I like its simple shapes combined with a round and soft touch. It avoids consciously the very connoted Computer Modern and can be seen as a modernized and also Europeanized interpretation of the TeX tradition. This logo is just a humble proposal. Perhaps it is of some use to someone. It could also make someone else want to create and share his or her logo -- that would be great. I'm using ConTeXt since 2006/07 for almost everything that contains text: letters, presentations, invitations, résumés, certificates, manuals, reports, flyers, university papers, book typesetting, exercise sheets, song sheets, and I'm still amazed by how powerful, flexible and reliable it is. Thanks to the whole community -- and particularly to the Dutch wizard -- for making this possible! Greetings from Leimen, Germany Paul Schalck ___ 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 ___ Taco Hoekwater Elvenkind BV ___ 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
Re: [NTG-context] New logo proposal
Hi Paul, Nice idea, and I actually like the multi-color version although it is a bit too informal for some uses (but could be nice for the wiki). It would be more coherent if the color of the squares and the color of the letters trailed each other around the 7 options in the writing order for the word “CONTEXT” (C = orange+blue, O = blue+green, N = green+red etc.) But perhaps that is not what you wanted? On the blue logo I tried a little experiment myself, using the colors of http://group.contextgarden.net: WDYT? Side note: I like what gitlab does with the logo in the circle crop for its project icon. I believe it would be neat if that could be formalised into the logo itself, but a simple circle crop does not quite look right, and more advanced options like distorting the actual squares are outside of my inkscape knowledge. And it may not look that good in the end, anyway … I’ll be pleased to replace the current green logo on the wiki with your multi-color one, assuming there is a some agreement and no strong objections. Best wishes, Taco > On 29 Jan 2019, at 00:18, Paul Schalck wrote: > > Dear ConTeXt users and developers, > > I want to submit a new ConTeXt logo to you (link to GitLab project): > > https://gitlab.com/schickele/new-context-logo > > I made this logo in February 2018. At the time, I was planning to do some > video tutorials on ConTeXt (still work in progress), and I wanted a nice > looking visual clue for the thumbnails. Recently, I made a few minor tweaks > and thought it would be the right time to put it out there. > > The logo comes in two different layouts (hexagonal and horizontal), and each > layout comes in two color variations (multicolored and blue). > > The hexagonal layout is borrowed from the unofficial ConTeXt logo that has > been around for some time. I like the idea of a clean geometrical form, and > the hexagon reminds me of chemistry formulas -- one of the many application > fields of ConTeXt. > > The seven colors have mainly an esthetic purpose. They also denote the > flexibility of ConTeXt. I've added a monochromatic blue version because > shiny, saturated colors are not suitable for every case, and blue is strongly > associated with ConTeXt to me. Blue is also a reminder of Mark IV and LuaTeX. > > The letters are set in Din17 EF, which I've licensed. I like its simple > shapes combined with a round and soft touch. It avoids consciously the very > connoted Computer Modern and can be seen as a modernized and also > Europeanized interpretation of the TeX tradition. > > This logo is just a humble proposal. Perhaps it is of some use to someone. It > could also make someone else want to create and share his or her logo -- that > would be great. > > I'm using ConTeXt since 2006/07 for almost everything that contains text: > letters, presentations, invitations, résumés, certificates, manuals, reports, > flyers, university papers, book typesetting, exercise sheets, song sheets, > and I'm still amazed by how powerful, flexible and reliable it is. Thanks to > the whole community -- and particularly to the Dutch wizard -- for making > this possible! > > Greetings from Leimen, Germany > > Paul Schalck > ___ > 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 > ___ Taco Hoekwater Elvenkind BV ___ 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] How to pass a parameter with \definedescription[]
Hi, Hans and Wolfgang helped me to design this framed text. How to pass in text parameter as we can for the length? The text is set to "Note" and I would like it to be "Vocabulary" for the second framed text. Thank you Fabrice \definecolor[MyColorA][s=0.8784] \definecolor[MyColorB][m=0.27,y=1] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorB, location=depth] \defineframedtext [FramedText] [offset=0.5em, style=\ss, toffset=.25\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[12pt]}, align={right, broad}, frame=off, corner=round, radius=1em, width=10cm] \definedescription [Info] [before=, after=, text=Note, title=no, width=fit, distance=1em, headcommand=\FrameTitle, alternative=serried] \starttext \startFramedText[width=\textwidth] \startInfo Cette suite d'appels sera notée Anissa--Boris--Gween et on dira qu'elle a pour longueur 2. \stopInfo \stopFramedText \startFramedText[width=\textwidth] \startInfo La matrice \m{M} est appelée {\bf matrice d'adjacence} du graphe. \stopInfo \stopFramedText \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 ___