Re: [NTG-context] State of the reference manual contextref.pdf
Hi, > On 11 Feb 2019, at 07:43, Hans Hagen wrote: > > >> The wiki should reflect that, at least the old repo information >> (foundry.supelec.fr) should go. The manual can stay. But before >> removing the info on the wiki someone needs to confirm there's no >> repo any longer. Yes, the repo is gone. The page at https://wiki.contextgarden.net/Manuals feels a bit out-of-date anyway, but I removed the reference to supelec.fr right now. Clearly more work is needed on how to present the ConTeXt documentation, and that is something that we are still working on. > Sure, so best coordinate this with taco who is cleaning up / upgrading the > wiki andhas a shadow to play with running. Actually some more input on / help > with that is welcome. And there is a mailing list to go with it: https://lists.contextgarden.net/mailman/listinfo/wiki 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] State of the reference manual contextref.pdf
On Mon, 11 Feb 2019 09:11:53 +0100 Taco Hoekwater wrote: > Hi, > > > On 11 Feb 2019, at 07:43, Hans Hagen wrote: > > > > > >> The wiki should reflect that, at least the old repo information > >> (foundry.supelec.fr) should go. The manual can stay. But before > >> removing the info on the wiki someone needs to confirm there's no > >> repo any longer. > > Yes, the repo is gone. Thanks for confirming. In case someone needs the sources, I uploaded them to github (if no one objects). But I doubt I'll find the time to keep it updated. https://github.com/mpfusion/context-contextman > The page at https://wiki.contextgarden.net/Manuals feels a bit > out-of-date anyway, but I removed the reference to supelec.fr > right now. While you're at it. This one points to supelec, too: https://wiki.contextgarden.net/Improving_the_manuals > Clearly more work is needed on how to present the ConTeXt > documentation, and that is something that we are still working on. Never-ending story. But at least we should remove obviously wrong/outdated information. If my wiki login still works and have the permission, I can have a go myself some time this week. > > Sure, so best coordinate this with taco who is cleaning up / > > upgrading the wiki andhas a shadow to play with running. Actually > > some more input on / help with that is welcome. > > And there is a mailing list to go with it: > > https://lists.contextgarden.net/mailman/listinfo/wiki I didn't know there's a list for the wiki. Signed up. 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] about the location of subscript of integral sign
On Fri, Feb 1, 2019 at 9:55 AM Jeong Dal wrote: > > Hi, > > Four days ago, I updated the standalone ConTeXt and found a strange behavior > in the integral sign. > The number at the bottom is far from the integral sign while the number at > the top is OK. > I don’t know when it began since I didn’t use \int for a few month. > > Here is a small sample. > In the output, you can see the location of “a” is too far from the integral > sign. > Here is the beginning of log file. > > This is LuaTeX, Version 1.09.0 (TeX Live 2019/dev) > system commands enabled. > open source > level 1, order 1, name > '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' > system > > system > ConTeXt ver: 2019.01.25 20:06 MKIV beta fmt: 2019.1.28 int: > english/english > system > > *** > > Best regards, > > Dalyoung > > % > \starttext > > \startformula > \int_a^b f(x)\ dx > \stopformula > > $\displaystyle \int_a^b f(x)\ dx$ and $ \int_a^b f(x)\ dx$ > > \setupmathematics[integral=nolimts] >\startformula >\int_a^b f(x)\ dx >\stopformula > >$\displaystyle \int_a^b f(x)\ dx$ and $ \int_a^b f(x)\ dx$ > > \stoptext > Hi, this problem has been discussed earlier this year, https://mailman.ntg.nl/pipermail/ntg-context/2019/093710.html I hope it helps! /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] CID set missing with plain fontloader
When I run \font\test={name:Georgia} \test abcx \bye with the plain fontloader (similar with luaotfload), and then check in preflight against the pdf/A-2b or pdf/A-3b I get (beside other not relevant complaints) CIDset in subset font is incomplete (font contains glyphs that are not listed) The details say additionally (translated): "CID stream contains *all* CID sets of the embedded font: not true" If I run with context \starttext \font\test={name:Georgia} \test abcx \stoptext I don't get the complain. What is context doing additionally here? I don't think that it is a engine problem, I tried also with luatex 1.09.0 and 1.09.2. -- Ulrike Fischer http://www.troubleshooting-tex.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 ___
[NTG-context] index problem: [entry not flushed]
Dear all, I used a customized Theorem structure which is made by the help of experts in this list. I have two questions. 1. Recently I added titles of theorems which was indexed and found a strange error message "[entry not flushed]” in the list of index. Please run the following sample code? %% \defineframed [MyFramed] [frame=off, loffset=1ex, roffset=1ex, foregroundstyle=\ssbf] \startuseMPgraphic{MyFrame} picture p ; numeric o ; path a, b ; pair c ; %p := textext.rt("\FunnyFramed{\enumerationparameter{text} \convertedcounter[Theorem]}") ; p := textext.rt("\wrappedconstruction{\MyFramed{\currentconstructiontext}}") ; % p := textext.rt("\FunnyFramed{\currentconstructiontext}") ; o := BodyFontSize ; a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ; p := p shifted (2o,OverlayHeight-ypart center p) ; drawoptions (withpen pencircle scaled 1pt withcolor .625red) ; b := a superellipsed .95 ; draw b ; b := (boundingbox p) superellipsed .95 ; fill b withcolor .85white ; draw b ; draw p withcolor black ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[MyFrame][\useMPgraphic{MyFrame}] \defineframedtext [MyText] [frame=off, background=MyFrame, before={\blank[line,halfline]}, after={\blank[line]}, offset=\bodyfontsize, width=\textwidth] \defineenumeration[Theorem] [alternative=empty, title=yes, titleleft=, titleright=, text={\translate[en=Theorem, kr=정리]}, prefix=yes, prefixsegments=chapter, way=bychapter, % alternative=command, before=\startMyText, after=\stopMyText] \defineenumeration[Lemma] [alternative=empty, title=no, text={\translate[en=Lemma, kr=보조정리]}, prefix=yes, prefixsegments=chapter, way=bychapter, counter=Theorem, before=\startMyText, after=\stopMyText] \defineenumeration[Exam] [text={\white\translate[en=Example, kr=예제]}, numbercommand={\inframed[corner=round, framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, background=color,backgroundcolor=blue]}, %height=1.3em, title=yes, prefix=yes, prefixsegments=chapter, way=bychapter, before={\blank}, after=\blank] \setupbodyfont[rm, 11pt] \starttext \startchapter[title={First}] \startTheorem This is the first Theorem \stopTheorem \startExam We call it \index{OneTwo}{\bf OneTwo} \stopExam \startTheorem{\index{OneOne}{\bf OneOne}} This is the first Theorem \stopTheorem \startExam We call it \index{OneTwo}{\bf OneTwo} \stopExam \stopchapter \startchapter[title={Second}] \startTheorem{\index{TwoOne}{\bf TwoOne}} This is the first Theorem \stopTheorem \startExam We call it \index{Two 3}{\bf Two 3} \stopExam \startExam We call it \index{TwoTwo}{\bf TwoTwo} \stopExam \stopchapter \startchapter[title={Third}] \startExam We call it \index{Three 1}{\bf Three 1} \stopExam \startTheorem{\index{ThreeOne}{\bf ThreeOne}} This is the first Theorem \stopTheorem \startExam We call it \index{ThreeThree}{\bf ThreeThree} \stopExam \stopchapter \page \placeindex \stoptext %% How to get rid of the message [entry not flushed]? 2. Also, the numbers of examples is not reset even though the new chapter began, for example, Example 2.3, 2.4, 3.5, 3.6 etc. However, I couldn’t make the same error with this code, It never happened without theorems, but it appeared when I added \startTheorem in my book. So, I add "\setcounter[Exam][0]” before the \startchapter everytime. I couldn’t figure out what relation is there between Theorems and Exam. Thank you for reading. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] index problem: [entry not flushed]
Dear all, I just found that the counter problem has no relation with theorems. It happened without theorems while some examples worked correctly. There may be another problem in my definitions in environment file. I’ll do more tests. Thank you for reading. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] CID set missing with plain fontloader
On 2/11/2019 10:59 AM, Ulrike Fischer wrote: When I run \font\test={name:Georgia} \test abcx \bye with the plain fontloader (similar with luaotfload), and then check in preflight against the pdf/A-2b or pdf/A-3b I get (beside other not relevant complaints) CIDset in subset font is incomplete (font contains glyphs that are not listed) The details say additionally (translated): "CID stream contains *all* CID sets of the embedded font: not true" If I run with context \starttext \font\test={name:Georgia} \test abcx \stoptext I don't get the complain. What is context doing additionally here? I don't think that it is a engine problem, I tried also with luatex 1.09.0 and 1.09.2. we don't include the cidset by default \pdfvariable omitcidset 1 -- - 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] CID set missing with plain fontloader
Am Mon, 11 Feb 2019 12:45:42 +0100 schrieb Hans Hagen: > \pdfvariable omitcidset 1 ouch, how obvious. I should have checked the documentation better. Thanks. -- Ulrike Fischer https://www.troubleshooting-tex.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] index problem: [entry not flushed]
Dear all, Since the customized Theorem structure is already complicate, I just extract \index from the title as following: \startTheorem{\bf title of theorem} \index{title of theorem} bla bla bla \stopTheorem In this way, I cleared the message "[entry not flushed]” in the indices. There may be a better way. However, I couldn’t locate what hindered the resetting of counter Exam yet. I have to check the definition in the environment file one by one. Thank you for reading. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] index problem: [entry not flushed]
Jeong Dal schrieb am 11.02.19 um 11:17: 2. Also, the numbers of examples is not reset even though the new chapter began, for example, Example 2.3, 2.4, 3.5, 3.6 etc. However, I couldn’t make the same error with this code, It never happened without theorems, but it appeared when I added \startTheorem in my book. So, I add "\setcounter[Exam][0]” before the \startchapter everytime. I couldn’t figure out what relation is there between Theorems and Exam. The numbers are correct with the latest beta. mtx-context | current version: 2019.02.10 17:43 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] upcoming current
Hi, We're entering the TeXLive code freeze period. TL 2019 will ship luatex 1.10 (currently we have 1.09 but that version number will be bumped). After 1.00 this more or less what stock luatex will be from now on. In a few weeks we will post a new current. As previous years it will probably take a few currents before mojca/luigi push it into the tex live repository. Of course serious bugs (show stoppers) will be fixed but no functional changed wil happen. As most users normally update from the garden fixes will happen anyway, but it's nice to have a tl version that works well. After that I will start shuffling around some lua code that can be better organized and as that might lead to (e.g. renaming) issues it's best if users keep a snapshot, although as usual fixes will be asap. On the agenda for later this year are for instance some more font juggling (more for fun), new metapost modules (alan is for instance working on a new graph module), some bidi-layout stuff, some (interfaces to) low level math configuration options (needs thinking). These will happen in the betas but they are unlikely to interfere with regular functionality. If something more drastic happens I'll try not to forget to warn you. We currently have mkii and mkiv, using the rsync based installer. Mkii is frozen for years now, and seldom needs fixes. I have a new installer in the working that uses http (so we can avoid rsyn port limitations that some organizations impose) and that one will be used to experiment with a mkiv only installation (it works ok at my end already, a bit slower initial install but a faster update). For all this to be possible the context garden as well as the build farm are pretty important. Hans (A big thank you to all those involved in making this possible; you know the names!) - 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] Compilation fails on 20190210 beta with Unidentified user defined whatsit
The following works well with previous versions and fails on the 20190210 beta. \defineenumeration[ID] [before=\dontleavehmode, alternative=inright] \starttext \ID[id1]This is only a test. \stoptext The problem appears to be associated with the inright alternative. -- 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] Compilation fails on 20190210 beta with Unidentified user defined whatsit
Rik Kabel schrieb am 11.02.19 um 19:44: The following works well with previous versions and fails on the 20190210 beta. \defineenumeration[ID] [before=\dontleavehmode, alternative=inright] \starttext \ID[id1]This is only a test. \stoptext The problem appears to be associated with the inright alternative. or \inirght itself \starttext \dontleavehmode\inright{XXX} \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] Creating business cards with CSV
On 2/10/19 11:01 AM, Jan U. Hasecke wrote: > Thanks Pablo, > > great documentation and just the tool I was looking for. Jan Ulrich, Jaroslav Hajtmar has done a great job with the handlecsv module. I have used it and I find it extremely useful. The least I could do was to write the documentation. Cheers, 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] interactive tests with AcroJS
Dear list, is there any way that I can generate PDF document with ConTeXt containing a test with questions and multiple-choice answers and that the user can check the right and wrong answers (using AcroJS)? Sorry for the too general question, but I think it is clear enough. 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] interactive tests with AcroJS
On 12/02/19 8:16 AM, Pablo Rodriguez wrote: > Dear list, > > is there any way that I can generate PDF document with ConTeXt > containing a test with questions and multiple-choice answers and that > the user can check the right and wrong answers (using AcroJS)? http://www.pragma-ade.nl/general/manuals/interaction.pdf > > Sorry for the too general question, but I think it is clear enough. > > Many thanks for your help, > > Pablo > ___ 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] current values of \lefthyphenmin and \righthyphenmin
Dear list, how can i read the current values of \lefthyphenmin and \righthyphenmin? TIA, Massimiliano ___ 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] index problem: [entry not flushed]
Dear Wolfgang, >> I couldn’t figure out what relation is there between Theorems and Exam. > The numbers are correct with the latest beta. > > mtx-context | current version: 2019.02.10 17:43 > You are right. The example which I sent last time had no problem in numbers. I checked it by adding definitions one by one and finally found the reason. One line in my environment file cause the problem. \setupenumeration[alternative=serried,width=broad,distance=0.5em] Also, I found very strange phenomena that it depends on the order of appearance of that line. That is, it is OK if the command \setupenumeration… before the \defineenumeration[Exam], but if the command \setupenumeration… after the \defineenumeration[Exam] cause the problem. After change the order of appearance such a commnad in my environment file, the numbers of Exam are correct. Now, I have to find the other possible changes. Please run the following code changing the location of the commnad “\setupenumeration…”. Thank you so much. Best regards, Dalyoung general setting for enumerations:Exam,Theorem,Lemma,Definition \setupenumeration[alternative=serried,width=broad,distance=0.5em] % \setupwhitespace[medium] \defineenumeration[Exam] [text={\white\translate[en=Example, kr=예제]}, numbercommand={\inframed[corner=round, framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, background=color,backgroundcolor=blue]}, %height=1.3em, title=yes, prefix=yes, prefixsegments=chapter, way=bychapter, before={\blank}, after=\blank] \setupbodyfont[rm, 11pt] \starttext \dorecurse{3}{ \startchapter[title={Chapter Title}] \startExam We call it \index{OneTwo}{\bf OneTwo} \stopExam \startExam We call it \index{OneTwo}{\bf OneTwo} \stopExam \stopchapter } \page \placeindex \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 ___
[NTG-context] Macro in a macro with optional argument
Hello, I try to define automatically some macros to include cliparts in my TikZ drawings and I've defined the following macro : \def\clipart#1#2{% \expandafter\def\csname tk#1\endcsname{\dosingleempty\expandafter\csname dotk#1\endcsname}% \expandafter\def\csname dotk#1\endcsname[##1]{\iffirstargument\image{cisco/#1}{##1}\else\image{cisco/#1}{#2}\fi} } \clipart{pc}{.8} % defines the macro \tkpc to include the picture "cisco/pc" The issue arises when I use the newly defined \tkpc : the argument is not optional and I have to put \kpc[.5] for example. To add insult to injury, the value passed in argument is ignored also : \iffirtargument return always false... Do you have any idea ? Best regards, Pierre-François. -- Bonnefoi Pierre-Francois| E-mail : bonne...@unilim.fr http://p-fb.net/ Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 123 av Albert Thomas| Mrs. Peel, we're needed... 87060 Limoges CEDEX - FRANCE| The Avengers. ___ 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] interactive tests with AcroJS
Am 2019-02-11 um 21:15 schrieb Henri Menke : > On 12/02/19 8:16 AM, Pablo Rodriguez wrote: >> Dear list, >> >> is there any way that I can generate PDF document with ConTeXt >> containing a test with questions and multiple-choice answers and that >> the user can check the right and wrong answers (using AcroJS)? > > http://www.pragma-ade.nl/general/manuals/interaction.pdf See also (links in) https://wiki.contextgarden.net/Widgets Please update that page with your experiences. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___