[NTG-context] Re: Downsampling images (again)
On Sat, Sep 21 2024, Henning Hraban Ramm wrote: > How can a converter function access … > – the final (scaled) size of a placed image Hi, I use "figures.current().request" in my module (here attached). > – the original pixel size of an image ? I use img.scan() for that. HTH, -- Peter grph-downsample.lua 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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Emacs and spell check
On Thu, Jul 25 2024, Shiv Shankar Dayal wrote: > Can you please share your Emacs config for this? Hi, I use hunspell. Works very nicely: (setq-default ispell-program-name "hunspell") -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: context / auctex problem?
On Mon, Jun 17 2024, Joaquín Ataz López wrote: > The standard AucTeX configuration does not allow to compile with the > latest version of LMTX. Hi, What is the issue please? (I’m using the latest ConTeXt and the latest AucTeX and don’t have any problem.) TIA, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: missing space with French quotation
On Thu, May 30 2024, Peter Münster wrote: > \mainlanguage[fr] > \setcharacterspacing[frenchpunctuation] > \starttext > bla \quotation{OK} bla\\ > bla «OK» bla > \startquotation > Not Ok: a space is missing > \stopquotation > \stoptext It seems, that this workaround solves the problem: \setupquotation[before={\setcharacterspacing[reset]}] What do you think about it? Is this the right way to do it? -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: missing space with French quotation
On Thu, May 30 2024, Peter Münster wrote: > Is this a bug or a feature? And if it’s a bug, will it be fixed? TIA for any hints, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: self defined conversion in \date
On Thu, May 30 2024, Wolfgang Schuster wrote: > The \date mechanism can only use conversions which are defined on the Lua side Ok. How please? This does not work: --8<---cut here---start->8--- \startluacode -- from https://wiki.contextgarden.net/Command/defineconversion: interfaces.implement { name = "FRdate", public= true, arguments = "string", actions = function(s) local n = tonumber(s) if n == 1 then context"1\\ier" else context(s) end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK)\\ Dates: \date[d=1], \date[d=2] (not OK) \stoptext --8<---cut here---end--->8--- -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] missing space with French quotation
Hi, When using \start/stopquotation in French documents, there is a missing space: \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \starttext bla \quotation{OK} bla\\ bla «OK» bla \startquotation Not Ok: a space is missing \stopquotation \stoptext Is this a bug or a feature? How could I get a space before "»" please? TIA for any help, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] self defined conversion in \date
Hi, It seems, that you cannot use self defined conversions in \date: \defineconversion[mytest][X-\romannumerals] \starttext Self defined conversion: \convertnumber{mytest}{1} (OK)\\ Predefined conversion in date: \date[d=1][day:a] (OK)\\ Self defined conversion in date: \date[d=1][day:mytest] (not OK) \stoptext Is this a bug, or a feature? How could one use self defined conversions in \date please? TIA for any help, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] bug tracker
Hi, Is there a bug tracker for ConTeXt? (It seems, that https://tracker.luatex.org/ is no more used...) TIA for any hints, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: preventing column break after section title
On Thu, Apr 18 2024, Peter Münster wrote: > How could I prevent a column break after the second section title please? Ok, found it: \setupitemize[each][autointro] -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] preventing column break after section title
Hi, How could I prevent a column break after the second section title please? Minimal example: \starttext \startcolumns[n=2] \section{title 1} \dorecurse{22}{bla\par} \section{title 2} % Here starts a new column. \startitemize \dorecurse{15}{\item bla} \stopitemize \stopcolumns \stoptext I’ve tried "\setuphead[section][after={\columnbreak[no]}]", but it does not help. TIA for any hints, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Wiki - test/proposal to further clarify documentation
> On 17/04/2024, at 7:11 AM, Henning Hraban Ramm wrote: > > In my poster (still WIP) I wrote: > … Excellent ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Wiki - test/proposal to further clarify documentation
It would be great if the main page actually said what Context does. > On 15/04/2024, at 2:18 AM, Henning Hraban Ramm wrote: > > Hi Garulfo, > > I’m not against the “new order”, but I’d keep the colorful subject tiles. > Different accesses are good IMO (as long as it doesn’t get to convoluted). > > I’d say updating, sorting, restructuring pages is more important than a new > start page. > > Yes, please sort out reference vs. tutorials! > > Often examples make sense in the reference pages, so the distinction is a bit > fuzzy, but there are enough where a subject/tutorial page would make more > sense than examples spread over several single command pages. > > We could also define if the “main” reference page (with examples) is > \definestuff, \setupstuff, or \stuff – IMO \setupstuff makes the most sense, > since usually the others inherit from it. > > Often enough, parameters aren’t explained in the reference pages; sometimes > you can find examples using them, but there are too many holes. I tried to > fix that where I could, but too often I don’t understand enough of the > sources to make sense of some setting. > > For wiki contributors, it might make sense to combine the markup pages – in > many pages e.g. is used where would make more > sense; often \starttext … \stoptext is not necessary and just blows up > examples; markup is generally somewhat chaotic (e.g. , , or ``?). > > Hraban > >> Am 14.04.24 um 13:21 schrieb garu...@azules.eu: >> I just discover the Diátaxis documentation framework : >> - https://www.diataxis.fr/ >> - 30min video : "What nobody tells you about documentation", >> https://www.youtube.com/watch?v=t4vKPhjcMZg , from Daniele Procida at PyCon >> 2017 >> As I understand it, it can help both readers and writers of the >> documentation by clarifying the purpose of each element. >> So I started a potential new "welcome page" : >> https://wiki.contextgarden.net/Main_Page2 >> The main lines would be : >> - Tutorials: installation pages, step by step examples >> - How-to guides: most of the existing wiki pages which are not >> https://wiki.contextgarden.net/Commands/ ... >> - Discussions and manuals: most of the existing manuals >> - Reference : the pages dedicated to commands which already include link to >> mailing list, stack exchange, ConTeXt's source >> - https://wiki.contextgarden.net/Category:Commands >> - https://wiki.contextgarden.net/Special:PrefixIndex?prefix=Command%2F >> To match the logic of Diátaxis, maybe some material from command pages >> should be moved from "Reference" to "How-to guides", >> for example, when the examples go beyond "pure description" and begin to >> deal with "how-to" cases, e.g. : >> - Reference for setuphead: https://wiki.contextgarden.net/Command/setuphead >> - How-to guides for headings: https://wiki.contextgarden.net/Titles >> If it make sense, and according to your feedbacks, I can continue to >> reallocate existing contents. >> Thanks for your feedback and thoughts. >> Garulfo >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> maillist : ntg-context@ntg.nl / >> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl >> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) >> archive : https://github.com/contextgarden/context >> wiki : https://wiki.contextgarden.net >> ___ > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: error with \sc
On Tue, Apr 02 2024, Andres Conrado Montoya wrote: > You shouldn't run context as root in any case. I don’t run context as root. But I need to erase the cache in /opt/context/tex/texmf-cache as root, because the user doesn’t have the permission to do that. -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: error with \sc
On Tue, Apr 02 2024, Pablo Rodriguez via ntg-context wrote: > mtxrun --script cache --erase && mtxrun --generate Thanks. It did not work after doing it as root, but then I saw, that there is also a cache in the user home-directory, so I’ve done it as the user too, and now it works. -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] error with \sc
Hi, With ConTeXt version 2024.04.01, the \sc command produces an error: fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern rm 12pt' is loaded pages > flushing realpage 1, userpage 1, subpage 1 close source> level 1, order 3, name './test.tex' backend > xmp > using file '/opt/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' mtx-context | fatal error: return code: 1 Test file: \starttext \sc test \stoptext Is this a bug, or some misconfiguration of my installation? TIA for any hints, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] offset with \copypages
Hi, When inserting pages with \copypages, the included pages are slightly shifted to the left and to the bottom. Minimal example: % test-file.tex: \setuplayout[page] \starttext \input tufte \vfill \input tufte \stoptext % test.tex: \starttext \copypages[test-file.pdf] \stoptext How could I avoid this offset please? TIA for any hints, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: An announcement of my new book.
Thank you Sir Coleman. I’m a Context beginner and I’d love a good book introducing me to Context. I’ve wasted many hours trying to figure out how to do things that turned out to be simple. The answer is often/sometimes buried in the documentation, and what would really help me is a book that is more of an index to the existing documentation that is not out of date, with perhaps some simple examples. One case that comes to mind is to pass a couple of numbers to Lua, have it do a calculation and use the result in Context. Regards, Peter > On 14/02/2024, at 9:03 AM, Sir Coleman via ntg-context > wrote: > > Acknowledged. > > However, this does reinforce my point, that the documentation needs to be > updated. The examples on the wiki still use \getcounter, and naturally they > all fail to compile. Hence, my ambition to create a book to serve as the > documentation, which I find is a better medium for communication rather than > wikis. > > Now, as to my question, to understand the low level TeX programming language, > will the manuals "Low Level TeX" be enough? > > Thanks. > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: usage of conversion in \date
On Wed, Nov 29 2023, Peter Münster wrote: > According to https://wiki.contextgarden.net/Command/date: > "The name suffixes indicate number conversions. Any conversion, either > built-in or defined by \defineconversion, can be used there." > > But it does not seem to work... Hi, Should I add this to the bug-tracker? If yes, where please? It seems, that tracker.luatex.org is no more used. TIA, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: error with definestartstop and startmode
On Sat, Dec 16 2023, Hans Hagen via ntg-context wrote: > \usemodule[abbreviations-logos] > \defineblock [H] [before=\startcolor[blue],after=\stopcolor] > \keepblocks[H] Thanks for this solution. Is there also something for inline-mode? Example: test \beginH TEST\endH test TIA, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] error with definestartstop and startmode
Hi, I get an "runaway error" with the following example: --8<---cut here---start->8--- \definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}] \starttext test \startH TEST \stopH \stoptext --8<---cut here---end--->8--- How could I create such start-stop pair please? TIA for any hints, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: usage of conversion in \date
On Wed, Nov 29 2023, Hans Hagen wrote: > \setuplanguage[fr][date={day:++,\ ,month,\ ,year}] Unfortunately this does not work as I need. Only the "1" should be converted to 1er, not the other numbers. French is a bit special: You say "le premier novembre" but not "le un novembre". You say "le deux novembre" but not "le deuxième novembre". According to https://wiki.contextgarden.net/Command/date: "The name suffixes indicate number conversions. Any conversion, either built-in or defined by \defineconversion, can be used there." But it does not seem to work... -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] usage of conversion in \date
Hi, When printing a date in French, I would like to convert the "1" to "1\ier", but it does not work as I expect: --8<---cut here---start->8--- \startluacode -- from https://wiki.contextgarden.net/Command/defineconversion: interfaces.implement { name = "FRdate", public= true, arguments = "string", actions = function(s) local n = tonumber(s) if n == 1 then context"1\\ier" else context(s) end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK)\\ Dates: \date[d=1], \date[d=2] (not OK) \stoptext --8<---cut here---end--->8--- How could I get "1\ier\ novembre 2023" please? TIA for any help, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: list of modules: need changes/testing/response
On Wed, Aug 30 2023, Henning Hraban Ramm wrote: > If their authors are present, I’d appreciate a comment if we should keep them. Hi Hraban, I don't know. My modules are probably all outdated and don't work with the latest ConTeXt version. On the one hand they are probably no more useful, on the other hand there could be perhaps some future users and/or developers, who would like to use them and send patches. Perhaps a flag like "unmaintained" would do the trick? But it's no problem for me, if you prefer to delete them. -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] English-Vietnamese facing pages
On Mon, Apr 03 2023, jbf via ntg-context wrote: > Q 1: Has anybody reading this actually produced a bilingual book (it doesn't > have to be en-vn) with ConTeXt? Hi, Only some pages of a book: https://wiki.contextgarden.net/Catalogue_raisonné HTH, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] bold small caps
Hi, I'm quite sure, that this worked some time ago with the standard font (LM): \setff{smallcaps} Normal and \bf bold Small Caps. (See also https://wiki.contextgarden.net/Bold_small_caps). But it does not work with the latest ConTeXt version. How could I get bold small caps with the latest version please? TIA for any hints, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Float control
Yes, me too. I found the best thing is to post on LaTeX stack exchange a short piece of context that shows one problem you are having. Tag it #context. Someone will kindly help. Repeat for your other problems. I use layers a lot to avoid floats. Good luck, Peter > On 28/02/2023, at 11:47 PM, Denis Maier via ntg-context > wrote: > > > Hi everyone, > > I’ve recently had to typeset a document that gave me some headaches with the > floats. The floats where jumping around, appearing in a different order than > in the source file, tables ended up split up at weird points, some > positioning keys had not the intended effect (e.g. top), «page» moved the > float more than seemed necessary for me... I know, TeX’s float positioning > algorithm should be rather reliable and stable, and it’s quite possible that > I’m messing things up in my setups–especially since my source files are XML. > > Anyway, I’d like to learn more about the whole float issue. Is there anything > particular I could read to learn more about the whole thing? Maybe I’m > missing out on something fundamental... > > Best, > Denis > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] missing space with French quotation
On Thu, Sep 22 2022, Jean-Pierre Delange via ntg-context wrote: > But why use \startquotation when \quotation{something} does the job > just fine? It's not the same: \starttext bla \quotation{quotation} bla \blank[big] bla \startquotation quotation \stopquotation bla \stoptext > I use the command \startnarrower and \stopnarrower. It's not the same: \starttext \startquotation quotation\\quotation \stopquotation \startnarrower \quotation{quotation\\quotation} \stopnarrower \stoptext -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] missing space with French quotation
Hi, With the latest ConTeXt version, there is a missing space: \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \starttext bla \quotation{OK} bla\\ bla «OK» bla \startquotation Here is missing space \stopquotation \stoptext How could I get back the space before "»" please? TIA for any help, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Typearea module fails with “Missing number”
On Mon, Aug 29 2022, Wolfgang Schuster via ntg-context wrote: > remove one pair of curly braces Hi Wolfgang, Thanks. Here a new version: http://pmrb.free.fr/tmp/t-typearea.zip Unfortunately, I can not upload it to modules.contextgarden.net: "Unknown user or bad password!" Taco, what should I do please? TIA, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] shapepar for ConTeXt
Hi, Is there something like shapepar (LaTeX-package) for ConTeXt? I would like to do the same as "\heartpar{text}" (see http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf page 9) with ConTeXt. TIA for any hints, -- Peter ___ 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] Influence location of luametatex-cache
On Mon, Nov 29 2021, Marco Patzer via ntg-context wrote: > How to influence the location of the cache directory? Hi, I have the line "export TEXMFCACHE=~/.cache" in my ~/.profile and then context creates the directory ~/.cache/luametatex-cache. Cheers, -- Peter ___ 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] compatibility with AucTeX (was: result saved in file: ./file.pdf)
On Mon, Aug 16 2021, Peter Münster via ntg-context wrote: > that breaks the error-checker of AucTeX. No, sorry. It's something else, that breaks it: lines, that begin like "4:5: [glue]<1: ...". Such lines look like errors to AucTeX. What does "4:5" mean? Is this going to change? TIA, -- Peter ___ 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] result saved in file: ./file.pdf
Hi, The latest version of ConTeXt writes "result saved in file: ./file.pdf" instead of "saved in file: file.pdf", that breaks the error-checker of AucTeX. Is this wanted? Or are you going to change it back to a filename without the "./"? TIA, -- Peter ___ 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] Verbose numbers in swedish
Aha! Thank you so much! On Sat, Apr 17, 2021 at 7:17 PM Hans Hagen wrote: > > On 4/17/2021 6:50 PM, peter kvillegard wrote: > > Hi, I'm trying to get verbose numbers (i.e. "five" instead of 5) to > > work when \mainlanguage[sv] is set. I'm new to ConTeXt so I'm still > > struggling to grasp how everything fits together, but I found the > > spanish verbose numbers in core-con.lua, and added functions for > > swedish to match that which seemed relevant. I'm attaching my > > core-con.lua if that helps. (My additions start at line 1418) > > > > My question is, are there more places in other files that also need to > > be modified for this to work? If so, I would be grateful if you could > > point me in the right direction. There must be some step that I'm > > missing. > > Thank you. > > > > MWE where I expect the word "ett" instead of "1": > > \mainlanguage[sv] > > \starttext > > \convertnumber{words}{1} > > \stoptext > You have to remake the format: > > context --make > > (I'll check the code and add it to the distribution later). > > 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] Verbose numbers in swedish
Hi, I'm trying to get verbose numbers (i.e. "five" instead of 5) to work when \mainlanguage[sv] is set. I'm new to ConTeXt so I'm still struggling to grasp how everything fits together, but I found the spanish verbose numbers in core-con.lua, and added functions for swedish to match that which seemed relevant. I'm attaching my core-con.lua if that helps. (My additions start at line 1418) My question is, are there more places in other files that also need to be modified for this to work? If so, I would be grateful if you could point me in the right direction. There must be some step that I'm missing. Thank you. MWE where I expect the word "ett" instead of "1": \mainlanguage[sv] \starttext \convertnumber{words}{1} \stoptext attachment_core-con.lua 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 ___
[NTG-context] missing space after \date[] (was: printing the current date)
On Wed, Jan 27 2021, Wolfgang Schuster wrote: > When not all optional arguments are used the space after the last > given argument is gobbled. This was normal behavior for a long time > until you changed the code in MkIV to keep them. Hi, What does that mean? Is that going to be changed? How should \date[] be used now in the text? For now, I do it like "bla \date[d=3]\ bla". Is there a nicer way? TIA for any hints, -- Peter ___ 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] vertical offset with "i" in position-command
On Fri, Feb 12 2021, Wolfgang Schuster wrote: > 2. Add \strut, e.g. \position(1, 1){\strut i} Ah, thanks. So the anchor is not the baseline, but the top-left corner of the content. Since "\setuppositioning[before=\strut]" does not work, I use this workaround now: \def\myPosition(#1, #2)#3{\position(#1, #2){\strut#3}} Would it make sense to add the "before" key to \setuppositioning? -- Peter ___ 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] vertical offset with "i" in position-command
Hi, When I want to type an "i" in the position-command, there is some vertical offset: \starttext \startpositioning \position(1, 1){i} \position(2, 1){x} \position(1, 2){x} \position(2, 2){i} \position(1, 3){a} \position(2, 3){x} \position(1, 4){x} \position(2, 4){a} \stoppositioning \stoptext Why is it so, and how could I avoid that please? TIA for any hints, -- Peter ___ 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] printing the current date
On Sun, Jan 10 2021, Peter Münster wrote: > \currentdate% same as \date, but I would expect the day of today... Should I fill a bug-report on the tracker? Perhaps also for the missing space after \date[]? TIA, -- Peter ___ 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] understanding \startTEXpage
Hi, According to https://wiki.contextgarden.net/Command/startTEXpage it "starts a page that fits its contents exactly". But it seems, that part of the content is cropped here: \startTEXpage X \hskip20cm X \stopTEXpage No problem with 10cm instead of 20cm... Is this a bug or expected behaviour? TIA, -- Peter ___ 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] --extra=combine no more working
On Wed, Jan 27 2021, Hans Hagen wrote: > then it's an invalid pdf ... maybe you can use QPDF to fix those files Yes, indeed, QPDF fixes it. So my old ConTeXt-version is no more needed, thanks! -- Peter ___ 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] --extra=combine no more working
On Wed, Jan 27 2021, Hans Hagen wrote: > Works here so how do these pdf files look? I've just checked with other PDF-files, and it works ok here too. But unfortunately it does not work with PDF-files from my bank, that I cannot share here. There is no such problem with context-2017.08.29-19:35. The files start like this: --8<---cut here---start->8--- %PDF-1.4 %\200\201\202\203\204 76 0 obj << /Length 3961/Filter/FlateDecode >> stream --8<---cut here---end--->8--- -- Peter ___ 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] --extra=combine no more working
Hi, The command "context --extra=combine file-1.pdf file-2.pdf" doesn't work any more with the latest version. Here is the output: --8<---cut here---start->8--- mtx-context | processing extra: /opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine.tex resolvers | formats | executing runner 'run luametatex format': /opt/context/tex/texmf-linux-64/bin/luametatex --jobname="mtx-context-combine" --fmt=/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui /opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine.tex --c:currentrun=1 --c:extra="combine" --c:files="file-1.pdf,file-2.pdf" --c:fulljobname="/opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine.tex" --c:input="/opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall --c:result="context-extra" --c:texmfbinpath="/opt/context/tex/texmf-linux-64/bin" open source > level 1, order 1, name '/opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine.tex' system > system > ConTeXt ver: 2021.01.24 16:07 LMTX fmt: 2021.1.26 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 2, order 2, name '/opt/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source> level 2, order 2, name '/opt/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > files > jobname 'mtx-context-combine', input '/opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine', result 'context-extra' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name 'mtx-context-common.tex' close source> level 2, order 3, name 'mtx-context-common.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded mtx-context | fatal error: return code: 139 --8<---cut here---end--->8--- How could that be fixed please? TIA, -- Peter ___ 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] printing the current date
On Sun, Jan 10 2021, Fabrice L wrote: > For exemple: > > \date[][weekday,day,month,year] and \currenttime[h,{\,:\,},m] Sorry, I should have mentioned, that I use the latest version: context-2021.01.08 -- Peter ___ 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] printing the current date
Hi, I would expect, that \currentdate prints the current date, but it does not: --8<---cut here---start->8--- \starttext \date[d=1]% first day of this month, ok \date% again first day, last parameters are used, this is ok \currentdate% same as \date, but I would expect the day of today... \stoptext --8<---cut here---end--->8--- How could I print the current date please? TIA for any hints, -- Peter ___ 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] space after \date[]
Hi, There is no more space after \date[] with the latest version. Is this wanted, or a bug? Example: \starttext \date[d=1] X % no space before "X" \stoptext Kind regards, -- Peter ___ 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] cow-font
Hi, How could I make use of the cow-font please? I've tried this test-file: --8<---cut here---start->8--- \setupbodyfont[cow] \starttext test \stoptext --8<---cut here---end--->8--- But the page is empty. With version 2017.08.29 it worked well... TIA for any help, -- Peter ___ 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] specify column-width, with option=stretch
On Wed, Nov 04 2020, Peter Münster wrote: > I would like to specify the column-width of the first column to 5mm: > > \starttext > [...] > \stoptext Sorry, that wasn't really a minimal example. Here a better file, to show what I'm looking for: \setupTABLE[textwidth=10cm, option=stretch] \setupTABLE[c][1][width=15mm] \starttext Width of first column should be 15mm, but it is not:\par \bTABLE \bTR \bTD ? \eTD \bTD bla \eTD \bTD blablablabla \eTD \eTR \eTABLE\par \stoptext TIA for any help, -- Peter ___ 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] specify column-width, with option=stretch
Hi, I would like to specify the column-width of the first column to 5mm: --8<---cut here---start->8--- \starttext \setupTABLE[textwidth=99mm, option=stretch] \setupTABLE[c][each][align={lohi, middle}] \setupTABLE[c][1][height=5mm, style=\tfxx] \framed[width=5mm, offset=0pt]{5} \bTABLE \bTR \bTD[nr=2] \setupinterlinespace[1.8ex] 1\\2\\3 \eTD \bTD bla \eTD \bTD blablabla \eTD \eTR \bTR \bTD[nc=2] blabla \eTD \eTR \eTABLE\par \framed[width=99mm, offset=0pt]{99} \stoptext --8<---cut here---end--->8--- How could I do that please? TIA for any hints, -- Peter ___ 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] More table questions
On Tue, Sep 22 2020, Aditya Mahajan wrote: > The same effect is rather easy to achieve when using natural tables as > well. But it fails, when there is only one data-row... :( \startsetups booktabs \setupTABLE[each][each][frame=off] \setupTABLE[row][first][topframe=on,rulethickness=1.2bp] \setupTABLE[row][2][topframe=on,rulethickness=0.6bp] \setupTABLE[row][last] [bottomframe=on, rulethickness=1.2bp] \setupTABLE[row][first][style=bold] \stopsetups \startsetups workaround \setupTABLE[each][each][frame=off] \setupTABLE[row][first][topframe=on,rulethickness=1.2bp,offset=0pt] \setupTABLE[row][2][style=bold, bottomframe=on,rulethickness=0.6bp] \setupTABLE[row][last] [bottomframe=on, rulethickness=1.2bp] \stopsetups \starttext \startTABLE[setups=booktabs] \NC Heading 1 \NC Heading 2 \NC Heading 3 \NC \NR \NC Value 1 \NC Value 2 \NC Value 3 \NC \NR \stopTABLE \blank \startTABLE[setups=workaround] \NC\NC\NC\NC\NR \NC Heading 1 \NC Heading 2 \NC Heading 3 \NC \NR \NC Value 1 \NC Value 2 \NC Value 3 \NC \NR \stopTABLE \stoptext -- Peter ___ 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] white-space after section-head in columns
Hi, What is the right way please to get normal white-space after a section in columns, i.e. not too much? Example, that shows the problem: --8<---cut here---start->8--- \starttext \startsection[title=Space is ok here] \input tufte \stopsection \startcolumns[n=2] \startsection[title=Too much white-space here] \input tufte \stopsection \setuphead[section][after=\vskip-2ex] \startsection[title=Space is ok here with workaround] \input tufte \stopsection \stopcolumns \stoptext --8<---cut here---end--->8--- TIA, -- Peter ___ 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] lmtx: rotation problem with float numbers
Am 27.05.2020 um 17:46 schrieb Wolfgang Schuster: > Hans Hagen schrieb am 27.05.2020 um 17:39: >> On 5/27/2020 5:30 PM, Wolfgang Schuster wrote: >>> Peter Rolf schrieb am 27.05.2020 um 16:38: >>>> Hi, >>>> >>>> this used to work, but wants a dimension now >>> In which way? Did you get the desired result or was there just no >>> error message. >>>> \starttext >>>> \rotate[rotation=-0.2]{Rotation} >>>> \stoptext >>>> >>>> No such problems with integer rotation numbers. >>> ConTeXt expects a integer for the rotation value and decimals are >>> only possible for a dimension. >> can you test with: >> >> \clf_analyzerotate % rather accurate >> \p_rotation_rotation\space >> >> in grph-trf.mkiv > It works. > Thanks for the quick fix and the testing :) ___ 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] lmtx: rotation problem with float numbers
Hi, this used to work, but wants a dimension now \starttext \rotate[rotation=-0.2]{Rotation} \stoptext No such problems with integer rotation numbers. Peter T:\tmp>context --version mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: V:/tmp/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2020.05.25 23:39 mtx-context | main context file: V:/tmp/context/tex/texmf-context/tex/context/base/mkiv/context.mkxl mtx-context | current version: 2020.05.25 23:39 \starttext \rotate[rotation=-0.2]{Rotation} \stoptext open source > level 1, order 1, name 'cont-yes.mkiv' system > system > ConTeXt ver: 2020.05.25 23:39 MKIV beta fmt: 2020.5.27 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name 'V:/tmp/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 'V:/tmp/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'rotation', input './rotation', result 'rotation' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name './rotation.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded tex error > tex error on line 2 in file ./rotation.tex: ! Illegal unit of measure (pt inserted) \relax \grph_rotate_finish_yes ...f_analyzerotate \numexpr \p_rotation_rotation \relax \d_grph_rotate_width \d_grph_rotate_height \d_grp... \grph_rotate_finish_indeed ...h_rotate_finish_nop \else \grph_rotate_finish_yes \fi \egroup \syst_boxes_with_next_box ->\grph_rotate_finish_indeed \egroup l.2 \rotate[rotation=-0.2]{Rotation} 1 \starttext 2 >> \rotate[rotation=-0.2]{Rotation} 3 \stoptext 4 Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one! I'll assume that you meant to say pt, for printer's points. two letters. ___ 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] paperformat=landscape not working
On Wed, May 20 2020, Hans Hagen wrote: >> [offset=\getdocumentargumentdefault{paperformat_to}{0pt}] > > shouldn't that one then become > > \setuppaper > [offset=\getdocumentargumentdefault{paperformat_print}{0pt}] Yes, I guess. >> With LMTX, --extra=select is not working at all. I get this error: >> >> mtx-context | processing extra: mtx-context-select.tex >> mtx-context | redirect luametatex -> luatex: luatex --luaonly >> "/opt/context-lmtx/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context >> --extra=select --selection=2 file.pdf --redirected >> mtx-context | processing extra: mtx-context-select.tex >> mtx-context | warning: lua mismatch (luv: 0 <> bin: 5.2), forcing remake >> /usr/share/texmf/scripts/context/lua/mtx-context.lua:1176: attempt to index >> field 'instance' (a nil value) > that's not lmtx, but mkiv that you call Ok, I've found the problem: context.lua and mtxrun.lua in texmf-linux-64/bin did not have the execute permissions. It works after adding the permissions. Thanks, -- Peter ___ 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] paperformat=landscape not working
Hi, When the PDF-document is in landscape format, this does not work: context --extra=select --selection=X --paperformat=A4,landscape*A4,landscape file.pdf This patch helps: --- mtx-context-select.tex~ 2020-05-20 10:28:42.702314061 +0200 +++ mtx-context-select.tex 2020-05-20 10:28:53.730225887 +0200 @@ -31,8 +31,8 @@ \input mtx-context-common.tex \setuppapersize - [\getdocumentargumentdefault{paperformat_from}{A4}] - [\getdocumentargumentdefault{paperformat_to}{A4}] + [\getdocumentargumentdefault{paperformat_paper}{A4}] + [\getdocumentargumentdefault{paperformat_print}{A4}] \setuppaper [offset=\getdocumentargumentdefault{paperformat_to}{0pt}] With LMTX, --extra=select is not working at all. I get this error: mtx-context | processing extra: mtx-context-select.tex mtx-context | redirect luametatex -> luatex: luatex --luaonly "/opt/context-lmtx/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context --extra=select --selection=2 file.pdf --redirected mtx-context | processing extra: mtx-context-select.tex mtx-context | warning: lua mismatch (luv: 0 <> bin: 5.2), forcing remake /usr/share/texmf/scripts/context/lua/mtx-context.lua:1176: attempt to index field 'instance' (a nil value) Kind regards, -- Peter ___ 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] \setbreakpoints[compound] and numbers
Hi, How could I get breaking lines with numbers please? Example: \setbreakpoints[compound] \setuplayout[width=1mm] \starttext xxx/xxx % line break is ok here xx1/xxx % I would like a linebreak here too \stoptext TIA for any help, -- Peter ___ 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] Color Profiles in lmtx
Am 12.02.2020 um 17:15 schrieb Jan U. Hasecke: > Am 12.02.20 um 11:09 schrieb Peter Rolf: > >>> I get this in my logs >>> >>> backend > profiles > profile specification 'ISO Coated v2 300% >>> (ECI)' loaded from >>> '/home/juh/context-linux-64/tex/texmf-context/colors/icc/context/colorprofiles.xml' > > I just realized that the above output is the right output. > > Ok. But now I have another question > > I want to install a new profile I downloaded from eci.org > > I extended colorprofiles.xml putting it in > texmf-local/colors/icc/context/ with this additional xml: > > > PSO_Uncoated_ISO12647_eci.icc > CMYK > prtr > Custom > PSO Uncoated ISO12647 ECI > ae81087e1c54c6fdda2f93bd2d47cfaf > 200 > http://www.eci.org > Commercial and specialty offset, paper type 4, > uncoated white paper, positive plates, tone value increase curves C > (CMY) and D (K), white backing. > > > > I generated the md5 checksum from the file PSO_Uncoated_ISO12647_eci.icc. > > But the file in texmf-local is not found > > backend > profiles > profile specification 'PSO Uncoated > ISO12647 ECI' not found in 'colorprofiles.xml, colorprofiles.lua' > > How can I make context aware of the files? > Just tried to do the same and after some fiddling it worked. I used this settings for the profile (slightly modified) PSO_Uncoated_ISO12647_eci.icc CMYK prtr Fogra47L PSO Uncoated ISO12647 (ECI) ae81087e1c54c6fdda2f93bd2d47cfaf 200 http://www.eci.org Commercial and specialty offset, paper type 4, uncoated white paper, positive plates, tone value increase curves C (CMY) and D (K), white backing. Copy the icc-profile into the same folder as the shipped profiles. Call "context --make" to make a new format, update the file database. %-- \enabletrackers[backend.pdfx] \setupbackend[ format=PDF/X-3:2003, intent={PSO Uncoated ISO12647 (ECI)}, ] \setupcolors[cmyk=yes,rgb=no] \nopdfcompression \starttext foo \stoptext %--- The produced PDF has a size of 1.7MB. Tested with context --version mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: r:/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2020.01.26 18:34 mtx-context | main context file: r:/tex/texmf-context/tex/context/base/mkiv/context.mkxl mtx-context | current version: 2020.01.26 18:34 ___ 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] Color Profiles in lmtx
Am 12.02.2020 um 09:41 schrieb juh: > Hi all, > > again I have a question concerning color profiles. > > I have this to load the ISO Coated v2 300% profile. > > \setupbackend[ >format=PDF/X-3:2003, >intent={ISO Coated v2 300\letterpercent\space (ECI)}, >] > > \setupcolors[cmyk=yes,rgb=no,] > > But is this profile part of the new lmtx version? > > I get this in my logs > > backend > profiles > profile specification 'ISO Coated v2 300% (ECI)' > loaded from > '/home/juh/context-linux-64/tex/texmf-context/colors/icc/context/colorprofiles.xml' > > But I am not sure whether the profile is really loaded. > > In the old context distribution I had to put the profile in texmf-local. > > There is this in lmtx: > > ~/context-linux-64/tex/texmf-context/colors/icc/profiles$ ls -l > insgesamt 3652 > -rw-r--r-- 1 juh juh 416 Jan 6 16:32 default_gray.icc > -rw-r--r-- 1 juh juh1992 Jan 6 16:32 ecirgb_v2.icc > -rw-r--r-- 1 juh juh 700 Jan 6 16:32 ecirgb_v2_iccv4.icc > -rw-r--r-- 1 juh juh 1829093 Jan 6 16:32 isocoated_v2_300_eci.icc > -rw-r--r-- 1 juh juh 1829077 Jan 6 16:32 isocoated_v2_eci.icc > -rw-r--r-- 1 juh juh3144 Jan 6 16:32 srgb.icc > -rw-r--r-- 1 juh juh 60960 Jan 6 16:32 srgb_v4_icc_preference.icc > > I am not sure if the file name matches as in profiles.xml we have this with > mixed upper and lower cases: > > > ISOcoated_v2_300_eci.icc > CMYK > prtr > FOGRA39 > ISO Coated v2 300% (ECI) > e14f5db955711d914d877df35ad7a1b5 > 2400 > http://www.color.org > Offset printing, according to ISO 12647-2:2004/Amd > 1, OFCOM, paper type 1 or 2 = coated art, 115 g/m2, tone value increase > curves A (CMY) and B (K) > > > Is there a linux tool to test if the correct profile is part of the pdf? > > Any hints? > TIA > juh > Hi juh, I guess the problem are the file names of the profiles. On Windows it doesn't matter if you use upper or lower case letters. AFAIK Linux handles that differently. In the end the entries in "[..]/texmf-context/colors/icc/context/colorprofiles.xml" and the real file names must be "equal" for all OS. Add \enabletrackers[backend.pdfx] to your document to get more info about the profile inclusion. Not sure if this is the correct tracker though... no time to check, as I have to make lunch now. Hope that helps, Peter ___ 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] issues with \attachment when specifying name
Am 08.02.2020 um 09:31 schrieb Pablo Rodriguez: > Hi Peter, > > here you have a minimal sample with file name changed inside the > attachment command: > >\setupinteraction[state=start] > \starttext > an attachment\attachment[file=secret-name.pdf, > type={application/pdf}, > %~ method=hidden, > name=other-name] > \stoptext > > If method is hidden (no annotation), /EmbeddedFiles doesn’t honor the > "name" option. > > If method is normal (generating an annotation), /T in /FileAttachment > doesn’t "honor the "name" option. > > Would it be possible that both cases contain the value from the name > "option" instead of file? > > Many thanks for checking this, > > Pablo > -- > http://www.ousia.tk > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ > Hi Pablo, my first thought was: how can you rename something that isn't showing up (as text) in the PDF anywhere? On a second thought this makes sense, if you want to hide the original file name in the PDF code. Shouldn't be to hard to make this work even for hidden attachments. But it can also be argued that this feature gives the user a false sense of security. Any attachment with metadata may contain additional information that makes the prior name change useless. And in the end the author of the document is responsible for it. In my opinion renaming a file before embedding it, is acceptable in this security context. But maybe I'm wrong here... Peter ___ 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] attachments working again (issue with /EmbeddedFiles)
Am 07.02.2020 um 22:37 schrieb Hans Hagen: > On 2/7/2020 9:55 PM, Pablo Rodriguez wrote: >> On 2/7/20 9:19 PM, Rik Kabel wrote: >>> >>> On 2/7/2020 14:46, Pablo Rodriguez wrote: >>>> many thanks for having fixed the issues with attachments (in latest >>>> beta >>>> from 2020.02.07 18:36). I haven’t tested attachments with PDF/A-3a. >>>> >>> PDF/A-3a attachments still fail validation with the same issues. >> >> Hi Rik, >> >> it has way less issues, at least using verapdf-1.5.18 and the following >> sample: >> >> \setuptagging[state=start] >> >> \setupbodyfont[30pt] >> >> \setupbackend >> [format=PDF/A-3a, >> intent=sRGB IEC61966-2.1, >> profile={sRGB.icc,default_gray.icc}, >> level=0] >> >> \setupcolors[pagecolormodel=auto] >> >> \setupinteraction[state=start] >> \starttext >> \startTEXpage[offset=1em] >> an attachment\attachment[file=xml-mkiv.pdf, >> type={application/pdf}] >> \stopTEXpage >> \stoptext >> >> With "method=hidden" (no attachment annotation) it has no issue. >> >> Both issues are related to annotations in general: >> >> - If the flag annotation is present (/F key), it should be set to print >> and disable everything else. >> - Annotations need an appearance dictionary (unless their /Rect is one >> and the same point, or /Popup or /Link annotations). >> >> Actual value of the annotation flag key is "/F null". I wonder whether >> this is a bug (for having wanted to avoid the presence of /F at all). >> >> Otherwise, I don’t think that setting all embedded file annotations to >> printable is a good default. >> >> Just in case it helps to the discussion, > Peter is stepwise looking into all these issues but we decided to also > see how that checking and standards evolve in cases where it's a > confusing mess. And these 'appearance dicts' are an example of a mess. > On the one hand there's predefined appearances and on the other hand > enforced renderings which gives some chicken-egg issue. It smells a lot > like bugs became features (standards) or 'acrobat behaviour' made the > standard or ... (like the zero rect thing, which, given t e plenty of > flags there are and verbosity there is in pdfm is pretty weird and > actually can make viewers bark. Irr the current approach we follow is > kind of a compromis. > > Now, of course we can play safe and *always* have some fake appearance > (we could basically choose whatever funny shape we like as over time > people will interpret hard codes symbols for attachments differently) > and drop support for standardized renderings (that could adapt over time). > > So ... no changes etc till Peter gives his blessing as he is testing all > this in the framework we've set up for it. > > Hans > As Hans stated, we are working on it and two of the three validation problems are already solved (needs more testing though). The only remaining problem is this https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-633-1 I attached the current code, so you and Rik are able to test it if you want (creating a new format is required). Best contact me off-list if you run into new problems. Peter lpdf-wid.7z 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 ___
[NTG-context] overlay problem (beta 31.12.2019)
Hi Hans There is a small problem with overlays. %- \starttext \defineoverlay[foo][{\blackrule[color=black,width=20mm,height=20mm]}]% \framed[background=foo,strut=no,offset=overlay]%{\blackrule[color=white,width=16mm,height=16mm]} \stoptext %- The inner square should be centered. Peter ___ 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] Transparency in PNGs becomes black in PDF/X
Hi Hraban, PDF/X-1a:2001 doesn't support transparency. You have to use PDF/X-4(p) for that (the first X variant that supports transparency). PDF/A-2|3 may also be an option. These formats also support transparency. Peter Am 19.12.2019 um 21:49 schrieb Henning Hraban Ramm: > I think this is the same problem that I had in Bassenge: > The transparent part of PNGs like the attached one becomes black if I > try to make an PDF/X. > > I hope that is solvable... > > \setupbackend[format=PDF/X-1a:2001] > > \starttext > \externalfigure[kinder/esel_kl] > \stoptext > > > Best, Hraban > > ___ > 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] PDF/A-3a attachment support query
Am 06.12.2019 um 16:56 schrieb Hans Hagen: > On 12/6/2019 4:21 PM, Peter Rolf wrote: >> Hi Rik, >> >> I guess it's not supported yet. >> >> In "lpdf-fmt.lua" it says: >> [..] >> ["pdf/a-3a"] = { -- untested; NEW: any type of attachment is >> allowed >> [..] >> >> I remember adding the "a-2a" and "a-3a" versions back when Hans and I >> added experimental support for "PDF/UA-1" (which is based on "PDF/A-3a", >> but much more limited). This all lies back a few years, can't remember >> the details. >> >> So we have only basic support for "PDF/A-3a", the more advanced features >> of that format are not supported yet. The main problem here is the >> lacking PDF/A documentation (ISO pay wall). I guess there is currently >> no real reason to use that format at all (?). > indeed (and to be honest, i never need these options myself) > > anyway, i happily wait till you come up with an entry for it > > (i have no clue what 'advanced' features mean here, something we need to > implement or just something that needs a flag) > @Hans: I'll look into it. Give me some days to read the documentation (not that much anyway) and to play around with it. All the "new" features are already implemented as building blocks for the PDF/X variants, so I guess it's mostly just adding some new table entries ('b|u' variants). Attachments seem to need several extra PDF entries. Will report back to you and Luigi. @Luigi: mh, that really looks like a lot of fun https://docs.verapdf.org/validation/pdfa-parts-2-and-3/ @Pablo, Rik: We can put you in cc if you volunteer for testing. Just say aye :D Peter ___ 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] PDF/A-3a attachment support query
Hi Rik, I guess it's not supported yet. In "lpdf-fmt.lua" it says: [..] ["pdf/a-3a"] = { -- untested; NEW: any type of attachment is allowed [..] I remember adding the "a-2a" and "a-3a" versions back when Hans and I added experimental support for "PDF/UA-1" (which is based on "PDF/A-3a", but much more limited). This all lies back a few years, can't remember the details. So we have only basic support for "PDF/A-3a", the more advanced features of that format are not supported yet. The main problem here is the lacking PDF/A documentation (ISO pay wall). I guess there is currently no real reason to use that format at all (?). Best wishes, Peter Am 06.12.2019 um 03:11 schrieb Rik Kabel: > Hello list, > > The following document fails PDF/A-3a validation. It passes without the > attachment. > > \setuplanguage [en] > \setuptagging [state=start] > \setupinteraction [state=start] > \setupbackend [format={pdf/a-3a},profile={default_gray.icc}, > intent={ISO coated v2 300\letterpercent\space > (ECI)}] > \setupstructure [state=start,method=auto] > \setupcolors [pagecolormodel=auto,start=yes,rgb=no,cmyk=no] > \setupbodyfont [Palatino,10pt] > \starttext > > Attaching a plain text file. > > % \attachment [file=test.tex, > % type={text/plain;charset=UTF-8}] > % The \ConTeXt\ source code for this document is attached here. > \attachment [file=testa.pdf, > type={application/pdf}] > A successfully validated pdf/a-3a file is attached here. > > \stoptext > > pdf-online <https://www.pdf-online.com/osa/validate.aspx>reports: > > Validating file "test.pdf" for conformance level pdfa-3a > The key F is required but missing. > The appearance dictionary doesn't contain an entry. > File specification 'testa.pdf' not associated with an object. > The document does not conform to the requested standard. > The document doesn't conform to the PDF reference (missing required > entries, wrong value types, etc.). > The document contains hidden, invisible, non-viewable or > non-printable annotations. > The document contains annotations or form fields with ambigous or > without appropriate appearances. > The document does not conform to the PDF/A-3a standard. > Done. > > My understanding is that 3-a should support both pdf and non-pdf > attachments. This fails in a similar manner with both pdf/a-3a-validated > files and with plain text files. I also tested with verapdf, and it also > rejected the document with an attachment. > > Is this my error, or is it not yet supported? > > -- > 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 > ___ > ___ 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 JavaScript in Acrobat
Hi Pablo Nearly no experience with JavaScript, no working Acrobat version installed (no testing possible). So take the following with a grain of salt... I guess it's just the too small call interval of the "step_clock" function. Calling it a thousand times per second doesn't seem to work. If the function is called a hundred times per second only, your clock counter is also incremented only a hundred times. I would use a system clock value instead (difference between start time and current time), so you can limit the call interval to a more reasonable value (1/10s). Regards, Peter Am 06.10.2019 um 21:13 schrieb Pablo Rodriguez: > Dear list, > > I have this minimal sample: > > \setupinteraction[state=start] > \setupinteractionscreen[option=max] > \startJSpreamble {varia} used now > var transitions = [1000, > 2000, > 3000, > 4000, > 5000, > 6000, > 7000, > 8000, > 9000]; > > var msecs = 0; > > function step_clock() { > try { ++msecs ; > if ((msecs >= (transitions[this.pageNum]/10)) && ( this.pageNum > < this.numPages )) { ++this.pageNum; }; > } catch (e) {} > } > > advance = app.setInterval ("step_clock()", 1); > advance.count = 0; > \stopJSpreamble > \starttext > \dorecurse{10}{\startTEXpage[pagestate=start, offset=1em] > \pagenumber > \stopTEXpage} > \stoptext > > Acrobat is required. And I have an issue with it > > Each slide takes a full second (1000 milliseconds). But the conditional > in step_clock() needs to divide the elements from transitions array by > ten. Otherwise it is ten times slower. > > Am I missing something here? Or why is "step_clock()" ten times slower > than it should be? > > 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] Produce multiple versions in one run
On Fri, Aug 23 2019, Denis Maier wrote: > Or is a makefile better suited for this? Probably yes. Example is here: https://wiki.contextgarden.net/Catalogue_raisonné -- Peter ___ 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] background problem with layers
Am 22.07.2019 um 19:00 schrieb Wolfgang Schuster: > Peter Rolf schrieb am 22.07.2019 um 13:32: >> Hi, >> >> I have a problem with a not printed color background when using layers. >> Small test file is attached. > Below is a simpler example of your problem. > > The frame disappears when you repeat the layer which change how the content > if flushed, in the example below you can test it by changing > \box\scratchbox > to \copy\scratchbox. > > \starttext > > \setbox\scratchbox\hbox{\frule width 6cm height 4cm \relax} > > \dontleavehmode > \box\scratchbox % works > %\copy\scratchbox % fails > > \stoptext > > Wolfgang > > I see. Thanks for the info. I have to adapt my code then. Peter ___ 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] background problem with layers
Hi, I have a problem with a not printed color background when using layers. Small test file is attached. ConTeXt version: 2019.07.16 18:23 Peter test.pdf Description: Adobe PDF document \defineframed[framedclass][ foregroundcolor=black, foregroundstyle=\bfa, backgroundcolor=darkgray, background=color, backgroundoffset=1mm, backgroundcorner=round, backgroundradius=1mm, frame=on, framecolor=black, ] \definelayer[foo][width=\the\paperwidth, height=\the\paperheight, state=repeat] \setlayer[foo][x=70mm, y=40mm] {\framedclass{no style here}} \setupbackgrounds[paper][background={foo}] \starttext \framedclass{works fine} \setlayer[foo][x=40mm, y=70mm] {\framedclass{no background here}} \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] reference containing parentheses causes trouble
Am 10.07.2019 um 21:29 schrieb Wolfgang Schuster: > Sanjoy Mahajan schrieb am 10.07.2019 um 04:15: >> Dear List, >> >> Warning: The following may be a bug or feature or just my >> misunderstanding! It seems that parentheses cause trouble in >> references. > Braces are used for the argument of reference actions. > > \setupinteraction[state=start] > > \starttext > > \goto{Second page}[page(2)] > > \page > > \goto{ConTeXt garden}[url(http://wiki.contextgarden.net)] > > \stoptext > > Wolfgang > I see. Thanks for clearifying. Peter ___ 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] [DKIM Failure] Re: reference containing parentheses causes trouble
Am 10.07.2019 um 13:36 schrieb Sanjoy Mahajan: > On 2019-07-10 13:04, Peter Rolf wrote: > >> 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. > > Peter, > > I think that's right, but there are small differences. For example, > variables in most languages don't allow hyphens, because they are > interpreted as minus signs. But ConTeXt references do allow them (and I > use them all the time). That may be why I expected free reign to use > any characters in the reference (except, as you say, for whitespace!) > and wrote my script accordingly to turn problem titles into references > (by replacing whitespace with a hyphen). > I agree (I always use the underscore instead of space). In general it's best to avoid problems if you can. If you use messy third party data as reference things are totally different. In my current project I have one dead link out of 1275 (also caused by parenthesis). Not enough to make me write some extra code to deal with it. Peter ___ 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 ___
Re: [NTG-context] \startcolumns and multi-line footnotes
On Wed, Jan 16 2019, Taco Hoekwater wrote: > Which is a tad annoying, Indeed. Any news about this issue? To what version should I downgrade to get multi-line footnotes in columns please? TIA for any help, -- Peter ___ 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] Fwd: Re: Already new binaries?
Am 14.04.2019 um 15:44 schrieb Hans Hagen: > Hi, > > Forwarded ... gmx.* mail accounts bounce here (always have) so i cc to > the list. > > > Forwarded Message > Subject: Re: Already new binaries? > Date: Sun, 14 Apr 2019 15:25:02 +0200 > From: Hans Hagen > To: Peter Rolf > > On 4/14/2019 2:13 PM, Peter Rolf wrote: >> Hi Hans, >> >> does the latest version (2019.04.13 17:01) already contain the binaries >> with increased stack size? I can see that the binaries are new, but the >> crash still occurs at the same page. Before I waste my time in bug >> hunting, I just want to make sure that the binaries are already adjusted. > > Akira was talking of his windows binaries. The lmtx ones are cross > compiled by me. I do nothing with sizes. > >> In the meantime I have tested all the included PDF (exported from >> Inkscape) with an online validator. No problems found. >> >> Thanks for all the help so far (also to Luigi and Akira). > > You can try > > \showusage > > and see what mem values you have to change. > > Hans > Thanks for the quick reply. I have to wait for Akira then or install Linux in a VM and cross compile from the sources. I guess I will wait a bit more... I'll test \showusage later on. Peter ___ 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] luatex crash around page 1000
Am 12.04.2019 um 07:36 schrieb Akira Kakuto: >> mtx-context | fatal error: return code: -1073741571 > > I suspect that may be a limitation in 32bit binary. > Try to install 64bit ConTeXt if you are using 32bit one > and your OS is 64bit. > I'm already on 64bit, so that won't help here. The event manager says, that it is a stack exhaustion (0xc0fd, STATUS_STACK_OVERFLOW). The PDF is data driven and I need to call a lot of functions per page to collect all components and values for a complete 'Mech. This seems to sum up and I just run out of stack memory after around 1000 pages. Screenshots from the event manager (application error), Process Explorer (peak memory values) and an outdated version of the PDF can be found here https://spideroak.com/browse/share/indiego/public/RogueTech/ Peter ___ 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] luatex crash around page 1000
Hi, I have a compilation problem with a data driven document. This is what I get after around 12min (first run)... [..] pages > flushing realpage 991, userpage 970, subpage 991 pages > flushing realpage 992, userpage 971, subpage 992 pages > flushing realpage 993, userpage 972, subpage 993 mtx-context | fatal error: return code: -1073741571 It compiles fine if I just use the first or second "half" of the data. But as soon as I reach a certain amount of pages, it crashes. An older version compiled fine with 958 users pages (977 total). Seems that the data has reached a dimension that causes a resource problem. Any advice? I looked into "texmf.cnf" and "texmfcnf.lua" for possible bottlenecks, but I lack the knowledge what to change. And it simply takes too much (run)time to just play around with some values. Peter >context --version mtx-context | ConTeXt Process Management 1.02 mtx-context | mtx-context | main context file: r:/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2019.04.04 13:31 >luatex --version This is LuaTeX, Version 1.10.0 (TeX Live 2019/W32TeX) ___ 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] t-downsample.lua
On Sun, Feb 17 2019, Hans Hagen wrote: >> +if width then >> +hash = hash .. "[w:" .. width .. "]" >> +end >> +if height then >> +hash = hash .. "[h:" .. height .. "]" >> +end >> > hm that needs a bit of thinking because here we have cases where we downsample > from say 600 to 150 dpi but then use that same one for all kind of sizes (and > then a different wd/ht should not trigger an extra downsample) Ok. Perhaps with a configuration option? Like "conversion-if-new-dimens=yes/no"? -- Peter ___ 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] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?
On Fri, Feb 22 2019, Rudolf Bahr wrote: > The picture sizes in px One gets by invoking for instance graphics Magick's > identify > in a lua program: Or just img.scan(): \startluacode local image = img.scan{filename = "my-image.jpg"} logs.report("xsize", image.xsize) logs.report("ysize", image.ysize) \stopluacode -- Peter ___ 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] degrade module
On Mon, Feb 18 2019, Alan Braslau wrote: > manipulating them on the fly as one changes layout or image placement > hardly seems efficient, Our use cases are perhaps different: in my case, manipulating them on the fly automatically is *very* efficient. > even if one were to be clever in storing copies and looking at time > stamps. ConTeXt does it already in grph-inc.lua, no need to be clever... ;) -- Peter ___ 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] degrade module
On Mon, Feb 18 2019, Alan Braslau wrote: > Incorrect, an image file contains width and height (in pixels) as well as a > resolution, Optionally a resolution in the metadata. Then, of course, you have a "natural size". But that doesn't matter, if you want other dimensions. -- Peter ___ 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] degrade module
On Mon, Feb 18 2019, Alan Braslau wrote: > My working solution is to put figures in subdirectories by resolution, The purpose of the downsample module is something else: a well defined resolution of the image in the PDF-file. A bitmap image does not have a resolution, only a width and a height in pixels. The resolution gets defined, when you specify the real dimensions. -- Peter ___ 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] degrade module
On Mon, Feb 18 2019, Marco Patzer wrote: > assumed there is a better solution. I guess, that Hans will tell us, if there is. And in the meantime, it can be distributed IMO. -- Peter ___ 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] degrade module
On Fri, Feb 15 2019, Marco Patzer wrote: > - It's 99% Peter's code, he's the maintainer of the module and > probably he should just fix his code. Done. > - My modification contains an ugly hack that just renames all files > to pdf, regardless of the actual file type because I have no clue > how to do that properly. I've included your hack, because I don't have any better idea... > That code shouldn't make it into the distribution. Why not? Just because of the hack? -- Peter ___ 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] t-downsample.lua
On Sun, Feb 17 2019, Peter Münster wrote: > Later, I'll upload it to modules.contextgarden.net. Ok, done. -- Peter ___ 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] t-downsample.lua
Hi, Please find attached a new version of the module, with some ideas from Marco. Later, I'll upload it to modules.contextgarden.net. Here a usage example: \usemodule[downsample] \setupexternalfigures[ location=default, % find hacker.jpg and mill.png cache=/tmp,% where to put the low resolution images resolution=50, % resolution in DPI conversion=downsample.pdf] % use this module \starttext \externalfigure[hacker][width=0.4\textwidth] \setupexternalfigures[resolution=20] \externalfigure[mill][width=4in, height=3in] \setupexternalfigures[resolution=200] \externalfigure[mill][width=4in, height=3in] \stoptext Hans, it would be nice, to apply this patch, to trigger new conversion, when figure dimensions change: --- grph-inc.lua~ 2019-02-14 17:04:12.0 +0100 +++ grph-inc.lua2019-02-17 08:45:38.129971581 +0100 @@ -864,6 +864,14 @@ newbase = prefix .. newbase end local hash = "" +local width = figures.current().request.width +local height = figures.current().request.height +if width then +hash = hash .. "[w:" .. width .. "]" +end +if height then +hash = hash .. "[h:" .. height .. "]" +end if resolution then hash = hash .. "[r:" .. resolution .. "]" end TIA, -- Peter t-downsample.lua 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] degrade module
On Thu, Feb 14 2019, Wolfgang Schuster wrote: > Take a look at section 3.2 of the workflows [1] document. > > [1] http://www.pragma-ade.nl/general/manuals/workflows-mkiv.pdf Sorry, I don't understand. How will the "convert" command "convert -geometry %nx%x%ny% -compress JPEG ..." ever know, that the target height is 10cm? -- Peter ___ 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] degrade module
On Thu, Feb 14 2019, Marco Patzer wrote: > Apparently it's not on the wiki It's here: https://modules.contextgarden.net/dl/grph-downsample.lua-1.001.zip -- Peter ___ 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] degrade module
On Thu, Feb 14 2019, Lutz Haseloff wrote: > I wanted to use the degrade module with recent ConTeXt and LuaTeX. Hi Lutz, Could you please check, if the module grph-downsample.lua could fit your needs? > The minimal example from the degrade manual gives an error. > See the attached log. > Is there any chance to get the module working again? There is always a chance. The question is just: who will afford the efforts... Please check first the downsample module, and then let's see, if you still need this very old and hackish degrade module. Cheers, -- Peter ___ 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] Drops Module
Hi Aditya, thanks for the hint. I run into the same problem some time ago (also uploaded a new version). Sadly no final fix, because I had a naming problem (number part) with luajit some days later. The current (local) version works so far, but is a bit hackish (no time for a clean solution). I'll look into it on the weekend. Peter Am 10.12.2018 um 18:47 schrieb Aditya Mahajan: > Hi Peter, > > I noticed that the drops module recently stopping running with the error: > > /home/adityam/texmf/tex/context/third/drops/t-drops.lua:1098: bad > argument #3 to 'format' (number has no integer representation) > stack traceback: > [C]: in function 'string.format' > /home/adityam/texmf/tex/context/third/drops/t-drops.lua:1098: in > upvalue 'get_IM_paths' > /home/adityam/texmf/tex/context/third/drops/t-drops.lua:1380: in > field 'shadow' > [ctxlua]:1: in main chunk > > This is due to the change in Lua5.3 with respect to floating point > numbers. The simplest solution is to change '%d' to '%.0f' at > appropriate places. > > Thanks, > 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 > ___ ___ 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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)
Am 2018-11-14 um 15:36 schrieb Jan U. Hasecke: > Thanks a lot, Peter. > > Am 14.11.18 um 14:58 schrieb Peter Rolf: >> Hi Jan, >> >> I donno if things have changed (ConTeXt is a fast moving target), so >> take my answers with a grain of salt. >> >> (1) >> AFAIK there is no ACTIVE color management in ConTeXt in the sense that >> there is an automatic color conversion from one profiled(!) colorspace >> into another profiled color space. This means that all given colors >> (objects) have to be in the correct (profiled) color space already! >> >> Objects with embedded color profiles (e.g. a PDF bitmap graphic with icc >> profile) will use those. Objects without a profile will use the >> corresponding "default" color space profiles. These default color space >> profiles can be defined via "profile" in \setupbackend. >> This way every color in the PDF is defined properly. > > This would clarify some of the issues. > > When I define rgb colors AND use not-print-modus I get the right rgb > colors in the pdf. > > When I define cmyk colors AND use print modus I get colors that might be > correct (tested next week) > > But obviously it is not possible to define both color spaces in > \definecolor because I don't get the same colors in the pdf as with the > cmyk-only defined file. > > Maybe I misunderstood this, I've got a hint here, that I could define > rgb and cmyk in the same \definecolor and choose the right color space > in \setupcolors. > > The correct method of defining rgb AND cmyk in the same file would be to > put the definecolor command inside a startstopmode-environment. > > Can someone confirm this? > Should work (the other part is invisible for ConTeXt). >> >> (2) >> >> I think so. Can't test, because my Windows 10 is beyond repair after >> three "upgrades" and Acrobat is not working properly anymore. >> >> (3) >> >> Judging from the size of the final PDF, the icc profile is not embedded. >> The profiles have to be installed in "the right place" (this includes >> ConTeXt but also the PDF viewer software). >> >> See "ICC profiles" section at >> >> https://wiki.contextgarden.net/PDFX >> > > With --mode=print (which uses the color profiles) the pdf get bigger. >> 10.000 compared to 8.000 without the mode. So I would guess that they > are included. > Mh, the file size of "ISOcoated_v2_300_eci.icc" is around 1.7MB. I highly doubt that ConTeXt can compress it into a 10KB PDF. But I'm not so sure if PDF/X-3 needs embedding (there was an exception). Never used it (only PDF/X-4p) and I can't remember the specifications (all those stuff was added over 8 years ago). I just assume you have installed the icc profiles properly (needs a manual installation!) :D > I hope I get this sorted out, because I want to print a series of > folders and other print products with ConTeXt in the near future. > > juh > >> (5) see (1) and (3) >> >> >> >> Hope this helps, >> >> >> Peter >> >> >> Am 2018-11-14 um 11:39 schrieb Jan U. Hasecke: >>> Hi all, >>> >>> attached you find my colormanagement tests and I need your help to >>> understand and debug the situation. >>> >>> I am testing together with a friend of mine, a professional >>> colormanager, who does not know ConTeXt. >>> >>> >>> There are several files in the archive: >>> >>> The differences in the files are the color definition and the color >>> profile used. >>> >>> - rgb-xxx.tex – colors are defined with RGB values only. >>> >>> - rgb-cmyk-xxx.tex – colors are defined with RGB and CMYK values. >>> >>> The cmyk colors are derived from the rgb values using gimp and the >>> color profiles sRGB/ISOCoated >>> >>> - cmyk-xxx.tex – colors are defined with CMYK values only. >>> >>> The xxx stand for two color profiles: iso-coated and swop. >>> >>> What I see is this: >>> >>> Colors in pdfs are the same no matter what color profile I choose. >>> >>> With rgb values and rgb/cmyk values I get the same colors in pdf (the >>> wrong ones). >>> >>> With cmyk values only I get other colors in pdf. Next week my friend >>> will test if these are the right ones. >>> >>> I have many questions: >>> >>> 1. Is colormanagement working in ConTeXt at all? >>> 2. Is my code corre
Re: [NTG-context] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)
Hi Jan, I donno if things have changed (ConTeXt is a fast moving target), so take my answers with a grain of salt. (1) AFAIK there is no ACTIVE color management in ConTeXt in the sense that there is an automatic color conversion from one profiled(!) colorspace into another profiled color space. This means that all given colors (objects) have to be in the correct (profiled) color space already! Objects with embedded color profiles (e.g. a PDF bitmap graphic with icc profile) will use those. Objects without a profile will use the corresponding "default" color space profiles. These default color space profiles can be defined via "profile" in \setupbackend. This way every color in the PDF is defined properly. (2) I think so. Can't test, because my Windows 10 is beyond repair after three "upgrades" and Acrobat is not working properly anymore. (3) Judging from the size of the final PDF, the icc profile is not embedded. The profiles have to be installed in "the right place" (this includes ConTeXt but also the PDF viewer software). See "ICC profiles" section at https://wiki.contextgarden.net/PDFX (5) see (1) and (3) Hope this helps, Peter Am 2018-11-14 um 11:39 schrieb Jan U. Hasecke: > Hi all, > > attached you find my colormanagement tests and I need your help to > understand and debug the situation. > > I am testing together with a friend of mine, a professional > colormanager, who does not know ConTeXt. > > > There are several files in the archive: > > The differences in the files are the color definition and the color > profile used. > > - rgb-xxx.tex – colors are defined with RGB values only. > > - rgb-cmyk-xxx.tex – colors are defined with RGB and CMYK values. > > The cmyk colors are derived from the rgb values using gimp and the > color profiles sRGB/ISOCoated > > - cmyk-xxx.tex – colors are defined with CMYK values only. > > The xxx stand for two color profiles: iso-coated and swop. > > What I see is this: > > Colors in pdfs are the same no matter what color profile I choose. > > With rgb values and rgb/cmyk values I get the same colors in pdf (the > wrong ones). > > With cmyk values only I get other colors in pdf. Next week my friend > will test if these are the right ones. > > I have many questions: > > 1. Is colormanagement working in ConTeXt at all? > 2. Is my code correct? > 3. Why do pdfs with different color profiles show the same colors? > 4. Why does ConTeXt not take the cmyk colors from \definecolor when > there are rgb values as well? > 5. Where can I define a coresponding rgb profile? In Scribus you have to > define two profiles (eg. sRGB and ISOCoated) to make colormanagement work. > > TIA > juh > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ > ___ 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 with \setupcolumnset
Am 2018-11-10 um 13:00 schrieb Peter Rolf: > Hi Wolfgang, > > thanks for the info. I will download the new manual right now. > Mh, already on my RAM disk :D I tend to ignore the shipped documentation. My bad. > > Best wishes, Peter > > Am 2018-11-10 um 12:03 schrieb Wolfgang Schuster: >> Hi Peter, >> >> the new columnset mechanism accepts only two arguments for the >> \setupcolumnset command but you can load the old code with >> \usemodule[old-columnsets]. >> >> How you can apply backgrounds per column with the new code is shown in a >> example in the manual. >> >> Wolfgang >> >> >> Peter Rolf schrieb am 09.11.18 um 17:23: >>> Hi, >>> >>> I run into this error after updating my ConTeXt version. >>> Small (but not minimal) example attached. >>> >>> mtx-context | current version: 2018.10.18 00:07 >>> >>> >>> Peter >>> >>> >>> ___ >>> If your question is of interest to others as well, please add an entry to >>> the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> http://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>> wiki : http://contextgarden.net >>> ___ >> > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] index problem with \setupcolumnset
Hi Wolfgang, thanks for the info. I will download the new manual right now. Best wishes, Peter Am 2018-11-10 um 12:03 schrieb Wolfgang Schuster: > Hi Peter, > > the new columnset mechanism accepts only two arguments for the > \setupcolumnset command but you can load the old code with > \usemodule[old-columnsets]. > > How you can apply backgrounds per column with the new code is shown in a > example in the manual. > > Wolfgang > > > Peter Rolf schrieb am 09.11.18 um 17:23: >> Hi, >> >> I run into this error after updating my ConTeXt version. >> Small (but not minimal) example attached. >> >> mtx-context | current version: 2018.10.18 00:07 >> >> >> Peter >> >> >> ___ >> 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] index problem with \setupcolumnset
Hi, I run into this error after updating my ConTeXt version. Small (but not minimal) example attached. mtx-context | current version: 2018.10.18 00:07 Peter \startuniqueMPgraphic{column:bg} fill OverlayBox withcolor yellow; \stopuniqueMPgraphic \defineoverlay[columnbg][\uniqueMPgraphic{column:bg}] \definecolumnset[TOC][n=4] %\setupcolumnset[TOC][background=columnbg]% works ok \setupcolumnset[TOC][1][background=columnbg]% any indexed setup fails % in my real world example the complete third argument is printed instead \starttext \startcolumnset[TOC] \input tufte.tex \stopcolumnset \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] Invoice Forms
On Wed, Jun 13 2018, jdh wrote: > Is there a source of context document forms for invoices, (and other > documents), that have been contributed for open modifications and use? If not > it would be very beneficial to people to have such a depository. Please let me > know. These pages can help perhaps: - https://mailman.ntg.nl/pipermail/ntg-context/2008/031680.html - https://mailman.ntg.nl/pipermail/ntg-context/2009/037920.html - https://mailman.ntg.nl/pipermail/ntg-context/2014/076641.html -- Peter ___ 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] Feature request: \digits command
On Wed, Jun 25 2008, Flavien Lambert wrote: > did not found a way to cut a number by group of three digits like the > numprint command, e.g. 100 becomes 1 000 000. With the digits > option 3, dots become thinmuskips. I would like to do something > similar but automatically for groups of three digits. Hi, Does this feature exist now in ConTeXt? TIA for any hints, -- Peter ___ 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] path for luatex cache
On Wed, Apr 25 2018, Hans Hagen wrote: > the cache is created in the first writeable path found Ah, thanks! I had /opt/context/tex/texmf-cache/luatex-cache writeable, but even /opt/context/tex/texmf-cache must be writeable, then it works. -- Peter ___ 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] path for luatex cache
Hi, What should I do please, to prevent ConTeXt from creating $HOME/luatex-cache? I tried: - TEXMFCACHE=/opt/context/tex/texmf-cache - TEXMFVAR=/opt/context/tex/texmf-cache - LUATEX_CACHE=/opt/context/tex/texmf-cache/luatex-cache but without success... TIA for any help, -- Peter ___ 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] External graphics directory
On Thu, Oct 19 2017, N. Raghavendra wrote: > Is it possible to specify an external graphics directory either as an > environment variable, or as a command line option to `context', instead > of writing `\setupexternalfigures [directory=../../foo]'? Yes. Command: "context --arguments=imagedir=../../foo file" File: "\setupexternalfigures[directory=\env{imagedir}]" -- Peter ___ 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 external image and PDF/A-3a
Am 05.10.2017 um 22:40 schrieb Pablo Rodriguez: > On 10/05/2017 09:05 PM, luigi scarso wrote: >> On Thu, Oct 5, 2017 at 8:18 PM, Pablo Rodriguez wrote: >>> [...] >>> Well, this is a minimal sample, but my real document is much bigger. Is >>> there any way to convert the stream to something that ConTeXt can handle >>> directly? >> >> hm, the only reliable way that I know w is to convert it to a flattened png > > Many thanks for your reply, Luigi. > > The real graphic is a vector logo and I need to keep it as a vector > image. I converted it from a SVG source into a PDF document (years ago). > > I cannot remember if the vector image contains transparency. If needed, > I would remove it from the image. > > The way to convert it may be using Inkscape into a PostScript document > and then to MetaPost using pstoedit (as I have just discovered). > Just a hint: pstoedit seems to be incompatible (uses a deprecated option) with the actual gs (v9.22). I tested it with v9.18 and all worked fine. Of course the transparency was removed in the process of the eps export. Not a real problem with the metapost code at hand. pstoedit -v -ssp -f "mpost:" transparent.eps transparent.mp Tested on Windows 10 (1703), Inkscape v0.92.2, gs v9.18, pstoedit v3.70; all 64bit > Is that right or could something get lost in the translation? > All unsupported features (like transparency). > Many thanks for your help, > > Pablo > Best wishes, Peter ___ 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 ___