[NTG-context] Problem with SVG an conversion mp (was: Improving pandoc's ConTeXt output)
Am Sun, Jun 05, 2022 at 04:52:52PM -0700 schrieb Thangalin: > This allows me to eliminate the dependency on both Pandoc and Inkscape. > I've also encountered some problems with SVG to MP, but Hans is usually > quick to fix the bugs given a minimal working example that pinpoints the > problem. Either way, it's possible to retain the Inkscape step by telling > ConTeXt not to use the MP conversion, as you alluded to, Juh. So true. So here is a mwe, which works with inkscape and not with mp. As some svg works with mp, I guess that mp cannot handle all svg dialects. But this is only a guess. juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: . http://www.sudelbuch.de Privater Blog: http://www.hasecke.eu Netzliteratur-Projekt: http://www.generationenprojekt.de \starttext %\externalfigure[figure][width=10cm,conversion=mp] \externalfigure[figure][width=10cm,conversion=mp] \stoptext signature.asc Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Gradient fill in embedded pdf disappear in externalfigure (on regular pages)
Am 30.08.21 um 09:58 schrieb Benjamin Buchmuller via ntg-context: (For the record on the list, I attach a small res screenshot to illustrate the matter, description below; My apologies for any inconvenience.) When I open the pdf in evince I see no difference. Maybe also a reader problem? 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 ___
Re: [NTG-context] Rolling out a pandoc-context publication workflow in an organization
Dear Hans, thanks for the hint to the repo. I remember that it was mentiooned before. Am 02.07.21 um 10:42 schrieb Hans Hagen: official : https://bitbucket.org/phg/context-mirror/src/beta/ Is there a how-to-bootstrap-from-repository? How can I get a running context with the repo? 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 ___
Re: [NTG-context] Rolling out a pandoc-context publication workflow in an organization
Am 02.07.21 um 01:07 schrieb Bruce Horrocks: One option you might try, if your cooperative has a web-server available to editors, is to store your own ConTeXt repository. That way you can update the LMTX version when you are ready to. This works because "install.sh" can have a "--server" parameter supplied. By default it goes to lmtx.pragma-ade.com/install-lmtx but if you were to copy the install-lmtx directory and host the copy on your own server at the same path, then you could 'freeze' your LMTX version until you were ready to change. Thanks for this hint. This might solve one more problem. We would like to pin the installation to a version that is known too work. BTW: Are there plans to use a GitHub repository or an alternative to it? As that would ease pinning a bit. 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 ___
Re: [NTG-context] Rolling out a pandoc-context publication workflow in an organization
Hi Taco, thanks for this hint. Am 01.07.21 um 08:44 schrieb Taco Hoekwater: I would put the whole context distribution in the git. That way, you can potentially hotfix something centrally. Would you put texmf-cache into .gitignore? Or is the cache portable to other machines? 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 ___
[NTG-context] Rolling out a pandoc-context publication workflow in an organization
Dear all, in the last weeks I asked more questions than I normally do. The reason is that my organization is discussing to roll out a markdown-pandoc-context publication workflow. Some time ago we started to use context to produce flyers and some other documents. In fact I was the only one to use it. The results are so good that we discussed how to use it more often. Currently we use LaTeX to produce our legal documents, terms of services etc. With ConTeXt we are able to meet our corporate design guidelines and to produce good looking and individually designed documents. But our authors and editors were not willing to use ConTeXt directly so that we decided to look into Pandoc and use Markdown as authors input markup. Markdown is much better supported by text editors than ConTeXt. The main problem for me is to come up with a good organization of the ConTeXt workflow so that it is easy usable and meets our requirements for quality management. These are quite strict. We are a Debian based cooperative and the majority of our editors also use this distribution on their private computers. Some use a MacBook, only one uses of Windows. For this reason we would like to stay with the Debian ConTeXt, which I never used as it is quite old. The same is true for Pandoc which made some improvements in the last years and also is very old in the current Debian distribution. As we did not decide this issue I can't say how much I have to refactor our styles to meet the older versions of ConTeXt. Apart from this I have to organize our style files and ressources, anyway. In another thread Hans said how to use these folders. Thanks a lot. texmf-local : maybe configurations texmf-project : stuff you're working on (styles) texmf-fonts : fonts you downloaded or bought All our styles and our shared image folder are versioned by git so I think that I either put links into texmf-project pointing to our style repository and to our image repository to have easy access to these ressources no matter how we call context or to put them into texmf-project directly. (We did not decide yet whether we call context from pandoc using a tmp directory for building or directly from our build script. If we use the current lmtx distribution, all editors would have to install ConTeXt with the install.sh script on their private computers, then we would either call a post installation script to clone the repositories in texmf-project or to clone them in another folder and set links to texmf-project. Linking seems better as I am not sure what "context generate" would do with the .git folder inside the repositories. All document projects are in their own repository. Currently we use a build script to call pandoc with an individual set of arguments including a custom context template which is stored in the document repository, also. Inside of this template we include all the environments we need for this particular document. We have a lot of small environments to reuse them in different document types. This is our plan so far. But to role out this successfully I would like to ease the way to a working pandoc-context installation for our editors. Do you have an idea how to do this? I come up with the idea of an "organizational context distribution" that has all requirements preinstalled. That could look like this: We have a repository: hs.lmtx which contains the install script and all our ressources (images and styles). Our editors would clone the repository and just call the installation script to download the lmtx distribution. Afterwards they are ready to start as we would point to the right context executable in our build scripts. Problem: What will happen if our editors do a git pull in hs.lmtx and a "context generate"? There are also concerns if something breaks after updating context with the install.sh. Is there a way to reset the installation to a given point release? How do you solve this in a production environment? On my private computer I sometimes install a new version of lmtx in a "staging" folder try it out and redo updating in my "production" folder. I think I will try this out but I am happy if you have any comments on this. 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 ___
[NTG-context] path for custom files (was Different authorconversion for citation alternatives and bibliographic entries)
Sorry for hijacking this thread. Am 30.06.21 um 18:06 schrieb Hans Hagen: or just tex/texmf-project/ What is the difference between tex/texmf-local tex/texmf-project if $TEXMFHOME/tex/context/personal/ gets scanned every run? Any recommandations what to store where? 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 ___
[NTG-context] makeups with local setups
Dear all, how can I use setups in makeups locally? Or do I miss something. In this sample the interlinespace of the coverpage makeup is also used after stopmakeup. Is there a way to define the setups values only locally inside the makeup? Or is it better to use something else? \setupinterlinespace [line=2ex] \startsetups[setups:cover] \setupinterlinespace [line=6ex] \stopsetups \definemakeup [coverpage] [pagestate=start] \setuplayout [coverpage] [setups=setups:cover] \starttext \startmakeup [coverpage] \input lorem \stopmakeup % from here I expect the interlinespace of line=2ex. \input lorem 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 ___
Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin
Hi Wolfgang, I am late as I was busy elsewhere, but thanks a lot for your help. Am 25.06.21 um 13:44 schrieb Wolfgang Schuster: \startsetups [userdata:shiftblock] \signalrightpage \doifelserightpage { \startnarrower[2*left,-2*right] \getuserdata \stopnarrower } { \startnarrower[-2*left,2*right] \getuserdata \stopnarrower } \stopsetups \defineuserdataalternative [shiftblock] [renderingsetup=userdata:shiftblock] \defineuserdata [shiftblock] [before=\blank, after=\blank, alternative=shiftblock] \setuppagenumbering [alternative=doublesided] \starttext \startbuffer \dorecurse{2}{\input knuth\par} \startuserdata[shiftblock] \input ward \stopuserdata \dorecurse{2}{\input zapf\par} \stopbuffer \dorecurse{10}{\getbuffer} \stoptext I'll try to adapt this into my project. Thanks a lot. 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 ___
[NTG-context] paragraph standing out of the normal layout comsuming the margin
Dear all, the mwe shows my try to define a paragraph that stand out like this: On right pages xxx xxx xx xx xxx xxx On left pages xxx xxx xx xx xxx xxx My try with setups does not work. The textcolor is restored but not the layout. Can I reset to the standard layout with an \after command? Any hints? juh \setuplayout [ cutspace=12em, leftmargin=2em, width=middle, backspace=8em, rightmargin=24em ] \startsetups[paragraph:hinweis] \setuplayout [ cutspace=2em, leftmargin=24em, backspace=8em, rightmargin=2em ] \stopsetups \defineparagraph[hinweis] [paragraph] [] \setupparagraph[hinweis] [color=red,setups=paragraph:hinweis] \showframe \starttext \input knuth \startparagraph[hinweis] \input lorem \stopparagraph \input knuth \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] Align in setup header/footer
Am 25.06.21 um 12:36 schrieb denis.ma...@unibe.ch: but you'll perhaps have to put the stuff inside a hbox first \definehbox[pagenumber][12.5mm] \setupfootertexts [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}] [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}][] Thanks a lot. \hfill works but I'll keep the hbox in mind. 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 ___
Re: [NTG-context] Align in setup header/footer
Hi Denis, Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch: Or, for more complex footers/headers you can use: \setupfootertexts [left on odd page] % out [right on odd page] % in [right on even page] % in [left on even page] % out In fact it is something like this \setupfootertexts [margin] [] [\pagenumber] [\pagenumber] [] I want to align the number inside of this area to the right or the left respectively. I only found setuplayouttext to style the area, except that there is no key "align". 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 ___
[NTG-context] Align in setup header/footer
Dear all, while finetuning a layout I would like to change the align in setupfootertext to right align or outer align as it is a doublesided layout. The default is afaics to align to the middle of the two pages. I would like to change this but there is no align key in setupfooter. 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 ___
[NTG-context] splitting tables from csv with first row as header
Hi all, I have this sample: \usemodule[database] \setuppapersize [A6] \setupTABLE [split=yes, header=repeat] \defineseparatedlist [test] [separator={;}, % tab before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] \starttext \processdatabasefile[test][test.csv] \stoptext A test.csv is attached. The table splits but no header is repeated. I guess I have to define that the first row in the file is the header. How to achieve this? TIA juh A;B;C;D;E;F 1;2;3;4;5;6 2;3;4;5;6;7 3;4;5;6;7;8 4;5;6;7;8;9 5;6;7;8;9;10 6;7;8;9;10;11 7;8;9;10;11;12 8;9;10;11;12;13 9;10;11;12;13;14 10;11;12;13;14;15 11;12;13;14;15;16 12;13;14;15;16;17 13;14;15;16;17;18 14;15;16;17;18;19 15;16;17;18;19;20 16;17;18;19;20;21 17;18;19;20;21;22 18;19;20;21;22;23 19;20;21;22;23;24 20;21;22;23;24;25 21;22;23;24;25;26 4;5;6;7;8;9 5;6;7;8;9;10 6;7;8;9;10;11 7;8;9;10;11;12 8;9;10;11;12;13 9;10;11;12;13;14 10;11;12;13;14;15 11;12;13;14;15;16 12;13;14;15;16;17 13;14;15;16;17;18 14;15;16;17;18;19 15;16;17;18;19;20 16;17;18;19;20;21 17;18;19;20;21;22 18;19;20;21;22;23 19;20;21;22;23;24 20;21;22;23;24;25 21;22;23;24;25;26 ___ 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] endash emdash
Am 23.06.21 um 07:11 schrieb Jan U. Hasecke: Dear all, I am completely lost with a ridicously small problem. This was a self motivation. ;-) \starttext -- --- – \stoptext ConTeXt creates two endash rules and a very long dash in the middle, as I expected. But in my project I always get the plain source chars. The culprit was \setbreakpoints[compound] Any idea why this command gives such an effect? current version: 2021.06.10 23:13 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 ___
[NTG-context] endash emdash
Dear all, I am completely lost with a ridicously small problem. \starttext -- --- – \stoptext ConTeXt creates two endash rules and a very long dash in the middle, as I expected. But in my project I always get the plain source chars. I have no idea where I accidentally misconfigured this. For which commands shall I grep in my sources? 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 ___
[NTG-context] named § symbol
Hi all, I use this for legal documents: \setuplabeltext[section=§~] But I wonder if there is a named command like \letterhash for this. 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 ___
[NTG-context] How to write readable source files?
Hi all, how do you format your ConTeXt source files? I recently discovered prettier which reformats source files for different markup and programming languages such as html, markdown, json etc. There are some other tools around but I don't find anything for ConTeXt. Do you know of any prettifying tool? Is there a best practice for ConTeXt source files, at all? Ciao! Jan Ulrich Hasecke ___ 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
Hi, I am afraid that clip stops working in current version: 2021.01.18 18:19 \setupexternalfigure[location=default] \showframe \starttext \clip[height=50mm,voffset=10mm] {\externalfigure[cow.pdf][width=\textwidth]} \stoptext juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: . http://www.sudelbuch.de Privater Blog: http://www.hasecke.eu Netzliteratur-Projekt: http://www.generationenprojekt.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Org-Mode for ConTeXt
Dear all, Emacs and Org-Mode is central to my writing workflow as I use org-mode for organizing my Zettelkasten.[1] Now I am looking for a way to extend the workflow an include ConTeXt. Is anybody aware of a ConTeXt export tool for Org-Mode? Ciao! juh [1] https://www.hasecke.eu/post/luhmanns-zettelkasten-mit-org-brain/ -- Soziale Plastik. Die Kunst der Allmende Essay zum 30. Todestag von Joseph Beuys http://www.amazon.de/dp/1523458763/ Taschenbuch, 130 Seiten, EUR 9,90 -- http://hasecke.com * Business Communication * Werbung für den Mittelstand Schubertstr. 4 * 42719 Solingen * Telefon ++49-212-2331483 https://keys.openpgp.org/vks/v1/by-fingerprint/F6911D6BDD74ABB8FE4586E03B3D738AE614D22D Umsatzsteuer-Identifikationsnummer: DE196439205 Datenschutzerklärung: https://www.hasecke.com/datenschutz/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Text editor support via Digestif
Dear Augusto, Am 31.12.20 um 10:25 schrieb Augusto Stoffel: > Hi all, > > I have worked a bit on ConTeXt support in the Digestif language server > [1], and I think it's pretty usable by this point, so I would like to > invite everyone to check it out. Feedback is welcome. this looks great. Thanks a lot for this. Unfortunately I get Company mode enabled in current buffer Yas minor mode enabled in current buffer eglot--connect: Symbol’s function definition is void: project-root when I activate eglot in emacs. Using (require 'company-lsp) (add-to-list 'company-lsp-filter-candidates '(digestif . nil)) Using lsp-mode I get progn: Symbol’s value as variable is void: company-lsp-filter-candidates for (add-to-list 'company-lsp-filter-candidates '(digestif . nil)) I have no experience with using either eglot or lsp-mode. So I am afraid that I have to adjust something more than written on your Github page. 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 ___
Re: [NTG-context] checkbox in fields show the word yes
Dear all, as nobody answered I would like too repeat my question. If you open the MWE in Firefox, you see the word "yes" written in the checkbox. Is there a way to avoid this? Thanks a lot for your help. juh Am 17.11.20 um 13:50 schrieb Jan U. Hasecke: > Hi all, > > with this example I get a checkbox that does not work; in my real world > document it works, I can't say why. But this minimal example shows the > problem I have in my real document. > > > \usemodule[fields] > \setupinteraction [state=start] > > \setupfield[cbox][width=1em,height=1em,option=printable,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black] > \definefield[test][check][cbox][yes][no] > > \starttext > \field[test] \space Do you see the word »yes«? > \stoptext > > Unfortunately in Firefox and some other PDF Viewer there is the word > "yes" written in the checkbox. > > This makes the form useless as people think the given option is set to > yes by default. > > Can I avoid this somehow? > ___ 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] image align in \clip
Am 09.12.20 um 11:26 schrieb Hans Hagen: > what if you put \removeunwantedspaces in front of the clip The space vanishes when I put it right before \externalfigure. Thanks a lot, Hans! (Still, I would like to know how the space came up in the first place.) 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 ___
[NTG-context] image align in \clip
Dear all, I use \clip to simplify working with images. I have a problem that I am unable to reproduce in a MWE. \setupexternalfigure[location=default] \showframe \starttext \externalfigure[cow.pdf][width=\textwidth] \clip[height=50mm] {\externalfigure[cow.pdf][width=\textwidth]} \stoptext In my real document the clipped image is shifted to the right as if indented by 1em or so. Any hints where to look for the reason? 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 ___
[NTG-context] checkbox in fields show the word yes
Hi all, with this example I get a checkbox that does not work; in my real world document it works, I can't say why. But this minimal example shows the problem I have in my real document. \usemodule[fields] \setupinteraction [state=start] \setupfield[cbox][width=1em,height=1em,option=printable,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black] \definefield[test][check][cbox][yes][no] \starttext \field[test] \space Do you see the word »yes«? \stoptext Unfortunately in Firefox and some other PDF Viewer there is the word "yes" written in the checkbox. This makes the form useless as people think the given option is set to yes by default. Can I avoid this somehow? 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 ___
[NTG-context] statistical charts (was: Changing the colors of Charts in luametafun)
Hi all, I play around with the charts module by Tamara Kocurová & Adriana Kašparová. Great work! I really like it. https://akela.mendelu.cz/~thala/statcharts/ There is one very nitpicking thing. The dots of the grid are not always in a regularly fixed distance as the attached screenshot shows. I am not sure if this can be solved with a customized configuration. Ciao! 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 ___
Re: [NTG-context] Changing the colors of Charts in luametafun
On 18.10.20 22:59, Henning Hraban Ramm wrote: > Hi juh, > >> Am 16.10.2020 um 15:34 schrieb Jan U. Hasecke : >> >> as I'll need to make some business charts in the near future I had a >> look into metafun xl. > > you might like the new charts module by Tamara Kocurová & Adriana Kašparová. Yes! I like it! > Download: https://akela.mendelu.cz/~thala/statcharts/ > Manual/presentation also at > https://meeting.contextgarden.net/2020/talks/2020-09-11-tamara-and-adriana-statistical-charts/AK-TK_charts.pdf > Thanks a lot for this hint. What a wonderful module and excellently documented! Chapeau! 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 ___
Re: [NTG-context] Changing the colors of Charts in luametafun
On 18.10.20 19:04, Hans Hagen wrote: >> How can I change the colors used for the sample? > > fillcolors = { > "red", "green", "blue", > "yellow", "magenta", "cyan", > "gray" > }, Thanks a lot. Argh, it was before my eyes. :-/ 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 ___
[NTG-context] Changing the colors of Charts in luametafun
Hi, as I'll need to make some business charts in the near future I had a look into metafun xl. Here is the first example: \startMPcode draw lmt_chart_circle [ samples = { { 1, 4, 3, 2, 5, 7, 6 } }, percentage = true, trace = true, ] ; \stopMPcode How can I change the colors used for the sample? 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 ___
Re: [NTG-context] text surrounding graphic in columns
Thanks a lot for this hint, Hans! On 15.10.20 09:15, Hans Hagen wrote: > \starttext > > \setupbodyfont[plex,10pt] > \setupalign[tolerant,stretch] > \useMPlibrary[dum] > > \startpagecolumns[n=2] > \dorecurse {10} { > \startplacefigure[location={left,none}] > \externalfigure[dummy][width=3em] > \stopplacefigure > > \dorecurse {4} { > \samplefile{ward}\par > } > } > \stoppagecolumns > > \stoptext > > don't tell Hraban I promise. ;-) I can't test it thoroughly, but I've got these issues. I have problems with the grid on such a page. The last column of three does not align the lines at the grid. With columnsets the grid is ok. These columnsets as described in the manual looked very promising to me as I could change the column layout on the page. The columnsetspan feature is nice to make elements spread over multiple columns. Areas also looks promising but I did not try them. I had some problems while using columnsets with respect to switch this span feature on and off. But I managed it kind of. The last thing I couldn't get to work were images with location left of the text. I'll have a deeper look at the examples in ./tex/texmf-context/doc/context/sources/general/manuals/columnsets Thanks a lot for these features. juh 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 ___
Re: [NTG-context] text surrounding graphic in columns
Thanks Hraban! On 14.10.20 19:36, Henning Hraban Ramm wrote: >> how can I get a graphic that floats left or right from the text in >> columns or columnsets? > > You can’t, sorry. I feared that. I changed my layout a bit and use tables now. 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 ___
[NTG-context] text surrounding graphic in columns
Hi, how can I get a graphic that floats left or right from the text in columns or columnsets? \starttext \startcolumns[2] \placefigure[left, high, none]{} {\externalfigure[dummy][width=3em]} \input ward \input ward \stopcolumns \blank \placefigure[left, high, none]{} {\externalfigure[dummy][width=3em]} Without columns it works. \input ward \input ward \stoptext 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 ___
Re: [NTG-context] A Spanish introduction to ConTeXt Mark IV
Hola Joaquín, On 14.10.20 06:27, Joaquín Ataz López wrote: > Its title is "An Introduction (not too short) to ConTeXt Mark IV". what a great introduction! And just another hint for me to improve my Spanish. ;-) Jan Ulrich Hasecke ___ 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] footnotes missing in heads
Am 03.09.20 um 07:50 schrieb Pablo Rodriguez: > Dear list, > > the following minimal sample: > > \starttext > \chapter{Chapter\footnote{Note}} > \section{Section\footnote{Note}} > \stoptext > > Using current latest (from 2020.09.02 20:37) doesn’t display the footnotes. > > I’m afraid this may be a bug. Could anyone confirm this? > No notes with current version: 2020.08.31 22:16 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 ___
[NTG-context] Bug in lmtx or wrong setup?
Hi all, I encountered a very strange problem. I want to have section headlines expanding the whole textarea, but the following copy text of the section shall be typeset in columns. I have this setup and it works fine. \setuphead [section] [ insidesection=\startcolumns, aftersection=\stopcolumns, ] Except for one big problem. ConTeXt (current lmtx from 2020.05.18 16:50) sometimes has problems to make a page break. And I get the weird result shown on the attached screenshot. After the page break the text of the section does not continue. Instead a number is shown. In the log file I can't find something suspicious. When I compile the source with current context (2020.01.30 14:13) I get something like an infinite loop. ConTeXt hangs and has to be killed with kill pid, Ctrl-C in terminal does not work So, in my opinion my layout or setup causes a bad situation, where ConTeXt does not know where to make a page break. While context hangs and warns me, lmtx runs smoothly but places a number in the text, which is bad as I might overlook it. I tried to make mwe but I cannot reproduce the error. Any ideas to improve my setup? Is this a bug or the intended behaviour? 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 ___
Re: [NTG-context] Let chapter start on odd page and make the even page before show an image
Am 29.05.20 um 18:03 schrieb Aditya Mahajan: > The magic of loading and reusing them happens behind the scenes, so the > user doesn't have to worry about it. See > https://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Multi-pass_data > for more details. > > Now, suppose you wanted to use the image defined as part of > `\startchapter` as the background image of the _current_ page, then you > could access the value of the \structureuservariable. For example, > > \startchapter[title=whatever][image=filename] > > \structureuservariable{image} > > \stopchapter > > But you want to use the value of the image _before_ the start of the > chapter. So, Wolfgang is using the two-pass mechanism to store the value > of the image in the database named 'chapter` in the hash-location > `\ChapterCounter` and then retrieving it before it is defined! Thanks a lot for the clarification! 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 ___
Re: [NTG-context] Let chapter start on odd page and make the even page before show an image
Hi Wolfgang, thank you very much. Amazing! Am 29.05.20 um 15:35 schrieb Wolfgang Schuster: > \definedataset [chapter] > > \startsetups [chapter:before] > > \page[yes] > > \doglobal\increment\ChapterCounter > > \doifoddpageelse > {} > {\doifsomething > {\datasetvariable{chapter}{\ChapterCounter}{image}} > {\startlayout[page] > \centerbox{\externalfigure > [\datasetvariable{chapter}{\ChapterCounter}{image}][factor=min]} > \stoplayout}} > > \stopsetups > > \setuphead > [chapter] > [page=, > beforesection=\directsetup{chapter:before}, > insidesection={\setdataset[chapter][\ChapterCounter][image=\structureuservariable{image}]}] > One and a half question. Why did you set \ChapterCounter explizitly and why is \ChapterCounter part of the datasetvariable? 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 ___
Re: [NTG-context] Let chapter start on odd page and make the even page before show an image
Am 29.05.20 um 12:45 schrieb Wolfgang Schuster: > juh schrieb am 29.05.2020 um 10:29: >> Dear all, >> >> with your help I can colorize the empty even page right before a >> chapter starts >> on the odd page. The mwe below shows it. >> >> Now I would like to redefine the contents of the left page on the fly >> in the text >> so that I could place images on this page. >> >> I thought that I could get a simple solution by inserting a TEXpage as >> even >> page, but this does not work for several reasons. First a TEXpage is >> not counted >> correctly like a normal page. And secondly I found now way to put it >> on the >> even page. >> >> So what I really want to achieve is a way to redefine this setups at >> some point >> in the text to insert eg. a picture on the even page before a chapter. >> >> \startsetups [chapter:before] >> \doifoddpageelse >> {} >> {\pushbackground[page] >> \setupbackgrounds[page][background=color,backgroundcolor=blue,] >> \page[empty,right] >> \popbackground} >> \stopsetups >> >> As you see the image is not in the right place and of course the >> pagenumbering >> is wrong. > Use \startTEXpage[pagestate=start] to increase the page number with TEX > pages. Thanks for this hint. >> I want that one of these blue pages shows an image. Is this possible? > Yes but there are different ways for different requirements. > > - Do you you have a picture before *every* chapter? No, the additional image page shall appear only if the last chapter ends on an odd page. Then I need the image page to push the new chapter to the next odd page. > - Do you use full page images? > - Are the images cropped to fit the page dimension, stretched or > centered with margins? For this usecase images are blown up and cropped to fit the page dimension including the bleed. 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 ___
Re: [NTG-context] two superscript versions with Garamond Libre
Am 18.05.20 um 22:23 schrieb Henning Hraban Ramm: > > >> Am 18.05.2020 um 17:18 schrieb Pablo Rodriguez : >> >> Typeface is available at >> https://github.com/dbenjaminmiller/garamond-libre/releases/latest. > > Thank you for the hint, I’m always looking for interesting fonts. > This is a nicely designed classical Garamond with a big glyph repertoire > (Latin, poly Greek, Cyrillic, Byzantine/Greek music symbols, math and other > symbols), but after first tests I found flaws: > – Numbers are a bit too dark; table numbers look a bit too big, oldstyle > numbers a bit too small. > – Small caps are lacking accented vowels including umlauts. > – Cyrillic is missing Kyrgyz/Kazakh letters (i.e. Cyrillic extended). > – Kerning is not yet perfect. > – Accents sit a bit too close on the letters. > – Swash capitals don’t fit the style at all, they look like some modern hand > font like Lucida Handwriting. Thanks a lot for your insights. From the repo I guess that this is a quite new project; you could post bug reports. 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 ___
Re: [NTG-context] Styling of included buffers or files
Am 17.05.20 um 19:04 schrieb Marco Patzer: >> >> Is it somehow possible to apply styles to all buffers that gets >> included via \getbuffer by defining a special getbuffer-style? > > \setupbuffer has before and after keys which can be used. Example: > > \setupbuffer > [before=\blank\blackrule\startnarrower\BufferStyle, > after=\stopnarrower\blackrule\blank] > > %% alternatively define custom buffers > \definebuffer > [foobar] > > \setupblackrules > [width=1cm, >height=1pt, >color=gray] > > \definehighlight > [BufferStyle] > [style=smallitalic, >color=blue] > > \startbuffer > \samplefile{knuth} > \stopbuffer > > \starttext > \samplefile{knuth} > \getbuffer > \samplefile{knuth} > > \stoptext > So easy! I am humbled. For some reason I wasn't able to find this in setup-en.pdf. Thanks a lot. 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 ___
[NTG-context] Styling of included buffers or files
Hi all, I am currently writing a text where I want to include text snippets either by including files or including buffers. What is the best way to style all these included buffers? I know that I can do something like this: \startcolumns \getbuffer[Muenchen] \stopcolumns Or do something with \defineparagraph Is it somehow possible to apply styles to all buffers that gets included via \getbuffer by defining a special getbuffer-style? 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 ___
Re: [NTG-context] Typesetting Markdown - Part 8
Am 28.04.20 um 10:35 schrieb Saša Janiška: > On Tue, 28 Apr 2020 08:32:57 +0200 > "Jan U. Hasecke" wrote: > >> 3. Being a writer I think that Markdown --> ConTeXt is the best way to >> achieve what I want: easy writing and professional looking books. > > I've the same opinion! > >> Up to now I used Pablos way via pandoc and XHTML described here: >> http://www.from-pandoc-to-context.tk/ > > What do you use now? Oh I still use it. But Daves posts might offer an alternative for me. >> The problem with pandoc is that it does not generate a perfect ConTeXt >> source to build the file as some things are missing. > > You mean Pablos pandoc --> from-pandoc-to-context or Yes. 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 ___
Re: [NTG-context] Typesetting Markdown - Part 8
Hi Dave, Am 28.04.20 um 04:00 schrieb Thangalin: > Hi folks! > > Second last part in the series. The project, product, component, and > environment relations were a bit finicky. Those willing to point out > improvements that can be made---Hans, Taco, Wolfgang, Aditya, and > others---would be very much appreciated. > > Specifically, it seems that some project environment settings can be > overruled inside products, but other project settings cannot. It's not > really clear to me whether this is due to dependency order or that > definitions cannot be redefined across environments. Thoughts? > > https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdown-part-8/ thank you very much. I really appreciate your series. There is so much in it that suits to my needs that I have to read it carefully later. But I have some short remarks anyway. Some topics are especially of interest to me: 1. Nameing and organizing the project, product and environments files. I am currently reorganising the files for my cooperative. I think that besides some nameing conventions it is more or less up to me how I organise our print work. Any recommendations welcome. 2. The "Deutsches Text Archiv" has prepared a text corpus of German texts up to 1900 in TEI PS XML, so we could use them directly to typeset books. What I am looking for is a script to extract all XML tags/tokens from their files to have a complete list of things that should be handled in a ConTeXt style file. Five years ago I tried to create such a style file by hand, but I gave up. https://github.com/juh2/tei-style-dta-context The tokens/tags differ from text to text and I think the structure too so that it was beyond my knowledge to generate a general style file for all texts. 3. Being a writer I think that Markdown --> ConTeXt is the best way to achieve what I want: easy writing and professional looking books. Up to now I used Pablos way via pandoc and XHTML described here: http://www.from-pandoc-to-context.tk/ The problem with pandoc is that it does not generate a perfect ConTeXt source to build the file as some things are missing. Annotations and eg. your classify.lua might be a second approach to achieve what I want. So thanks a lot for your work. @all: Feel free to comment on my three topics any hints are welcome. Ciao! 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 ___
Re: [NTG-context] useexternaldocument with custom file type
Am 23.04.20 um 19:25 schrieb Henning Hraban Ramm: > >> Am 23.04.2020 um 16:36 schrieb Jan U. Hasecke : >> >> Am 23.04.20 um 16:10 schrieb Vladimir Lomov: >>> Please see the page about '\goto' command, it was written for a reason! >> >> Ok, with \goto{linkname}[program(target.doc)] it works. >> >> "works" means some PDF Viewers opens the right program. > > > In the beginning, you could even start programs with program(...), but Adobe > recognized soon this might be a security problem. > > Nowadays, the “best” behaviour is when the viewer asks you if you really want > to open such a link but then hands control to the OS. > > Last time I checked, Adobe Reader even let you open hidden files from > arbitrary paths. > > Several other viewers just do nothing. Yes this is not bullet proofed but I need it for internal usage. I think we'll have many okular users. 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 ___
Re: [NTG-context] useexternaldocument with custom file type
Am 23.04.20 um 16:10 schrieb Vladimir Lomov: > Please see the page about '\goto' command, it was written for a reason! Ok, with \goto{linkname}[program(target.doc)] it works. "works" means some PDF Viewers opens the right program. 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 ___
Re: [NTG-context] useexternaldocument with custom file type
Am 23.04.20 um 14:22 schrieb Vladimir Lomov: > Otherwise could you describe what exactly you want to achive? This works: \setupinteraction[state=start] \setupcolors[state=start] \starttext \goto{linkname}[file(target.pdf)] \stoptext This does not work: \setupinteraction[state=start] \setupcolors[state=start] \starttext \goto{linkname}[file(target.doc)] \stoptext The PDF Viewer does not support the file type. 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 ___
Re: [NTG-context] useexternaldocument with custom file type
Hi Wolfgang, thanks for the fast reply. Am 23.04.20 um 12:06 schrieb Wolfgang Schuster: > Jan U. Hasecke schrieb am 23.04.2020 um 11:54: >> Hi, >> >> can I link to a file with custom file type eg. OpenDocument with >> \useexternaldocument? >> >> This does not work. >> >> \useexternaldocument[test][test.ods][A test document] >> >> As the PDF viewer is opened first, it does not recognize the file type. > > The \useexternaldocument is used to access referecens from other ConTeXt > documents. Ok. No way to link to other file types from the pdf? > https://mailman.ntg.nl/pipermail/ntg-context/2019/095564.html I must confess that I don't understand this utilitydata-Thread. 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 ___
[NTG-context] useexternaldocument with custom file type
Hi, can I link to a file with custom file type eg. OpenDocument with \useexternaldocument? This does not work. \useexternaldocument[test][test.ods][A test document] As the PDF viewer is opened first, it does not recognize the file type. 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 ___
Re: [NTG-context] Project Gutenberg Projects
Am 12.04.20 um 20:23 schrieb Thangalin: > Hi list! > > Another blog post for you all, tangentially related to ConTeXt: > > https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects > > In particular, the conversion from XHTML to Markdown so that pandoc > can convert Markdown to ConTeXt may be of interest: > > https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects/#xhtml-to-markdown > > This is in preparation for part 8 of the typesetting Markdown series, > which discusses how ConTeXt can be used to typeset annotations in > pandoc's extended Markdown. If there's anything else you'd like to > see, let me know. Thanks a lot for this blog post. I tried to typeset texts from the German text archive and played a little bit with the ability of ConTeXt to directly typeset XML. Because of my very limited insights the results were poor, but I think someone with more skills could do it much better. At least the markup of the German Text Archive seems to be quite consistent. https://github.com/juh2/tei-style-dta-context http://www.deutsches-textarchiv.de/ In fact I also used the archive to make epubs with Pandoc. Happy Easter! 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 ___
Re: [NTG-context] Quick question about dual output pdf and epub
Am 03.03.20 um 22:04 schrieb Rik Kabel: > Instructions for creating the .epub from the export are contained in the > log file. Has anyone ever got an epub that validates? 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 ___
Re: [NTG-context] metapost: remapping colors of an SVG picture
Am 18.02.20 um 19:24 schrieb Jan U. Hasecke: > Am 18.02.20 um 19:17 schrieb mf: >> Il 18/02/20 19:07, Jan U. Hasecke ha scritto: >>> Am 18.02.20 um 14:53 schrieb Hans Hagen: >>> >>>> \setupcolors[rgb=no] >>>> \startMPcode >>>> draw lmt_svg [ filename = "sample.svg" ] ; >>>> \stopMPcode >>> I get this error. >>> >>> ! Not implemented: (unknown numeric)=(string). >>> >>> ] >>> <*> ... ; p := lmt_svg [ filename = "sample.svg" ] >>> >> That's because it's LMTX only (the "lmt" prefix of "lmt_svg" should >> stand for "luametatex"). > > Yes, with lmtx it works but there is no image in the resulting file. Sorry for digging deeper. I am very thrilled by the idea that I could simply adjust a RGB SVG to well defined CMYK colors with this trick. Can anybody confirm if this works? 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 ___
[NTG-context] Fonts not in preview of online print shop
Dear all, strange problem with my online print shop. I want to print 3 products. 1. Business Cards 2. Flyer 3. Poster All definitions for fonts, colors, color profiles and pdf version come from one an the same file (env-cd.tex). All PDFs passed the data check without problems, but Business Cards and Poster appear without any fonts in the final preview. Only the Flyer looks ok. The service staff is nice but has no idea where to look, never heard of ConTeXt. For the business cards the print shop will do paid manual enhancement. The poster is not as time critical. Any idea where to look? 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 ___
Re: [NTG-context] metapost: remapping colors of an SVG picture
Am 18.02.20 um 19:17 schrieb mf: > Il 18/02/20 19:07, Jan U. Hasecke ha scritto: >> Am 18.02.20 um 14:53 schrieb Hans Hagen: >> >>> \setupcolors[rgb=no] >>> \startMPcode >>> draw lmt_svg [ filename = "sample.svg" ] ; >>> \stopMPcode >> I get this error. >> >> ! Not implemented: (unknown numeric)=(string). >> >> ] >> <*> ... ; p := lmt_svg [ filename = "sample.svg" ] >> > That's because it's LMTX only (the "lmt" prefix of "lmt_svg" should > stand for "luametatex"). Yes, with lmtx it works but there is no image in the resulting file. 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 ___
Re: [NTG-context] metapost: remapping colors of an SVG picture
Am 18.02.20 um 14:53 schrieb Hans Hagen: > > \setupcolors[rgb=no] > \startMPcode > draw lmt_svg [ filename = "sample.svg" ] ; > \stopMPcode I get this error. ! Not implemented: (unknown numeric)=(string). ] <*> ... ; p := lmt_svg [ filename = "sample.svg" ] 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 ___
Re: [NTG-context] Any plans for an active color management?
Hi Henning Hraban, I contacted three print shops and they demand three different color profiles, one of them prints on "100 % recycling paper" with an uncoated profile. The other two use ISO Coated v2 300% and Coated Fogra 39. Being online shops I think they will complain if not the right profile is provided. But anyway. I will summarize: Am 17.02.20 um 16:35 schrieb Henning Hraban Ramm: > That means you should keep your photos in (profiled) RGB. Probably > best use sRGB to stay device independend, because that’s default for > monitors, even if printshops like Adobe RGB or one of the profiles > that shrink the RGB color space to printable colors. 1. All my images should be profiled. I think I can do this in Gimp. > For type and logos I still rely on (device dependend) CMYK colors and > my experience how they’ll come out in Euroscale printing. Device depended means what? I did this to convert our RGB corporate colors to device depended CMYK: transicc -i sRGB.icc -o Fogra/Iso-whatever.icc But what shall I do with the logo? It is a RGB SVG. Do I understand you correctly that the best would be to ask someone with Indesign to convert it to CMYK with the above cited profile chain? Or shall I tell the designer: These are the values I need as CMYK, just do it. > Colors that you define in TeX or Metapost are a different problem. I > *think* they should use the output intent as their profile. But I > don’t know if the intent option of \setupcolors and/or \setupbackend > really works this way. (My only means to check was Acrobat Pro 9, and > that won’t run on a current macOS any more.) I do it like this: \startmode[fogra39] \definecolor [hs-logoblau] [c=1.000, m=0.735, y=0.279, k=0.160] \definecolor [hs-dunkelblau] [c=0.844, m=0.544, y=0.070, k=0.000] \definecolor [hs-hellblau] [c=0.468, m=0.220, y=0.086, k=0.002] \definecolor [hs-orange] [c=0.127, m=0.832, y=1.000, k=0.042] \setupcolors[cmyk=yes,rgb=no,] \setupbackend[ format=PDF/X-3:2003, intent={Coated FOGRA39 (ISO 12647-2:2004)}, ] \stopmode I like your thought that all profiles are more or less the same. That would mean that my designer could convert our SVG logo and our SVG icons to Device-profiled CMYK-PDF and I am good. Thanks for your help. 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 ___
[NTG-context] Any plans for an active color management?
Hi all, I would like to come back to a discussion from 2018 on this list. After printing some flyers for my cooperative I come to the conclusion that color management *is* very difficult. In my eyes, the only way of getting good results seems to be the following process. My starting point are RGB colors as we are doing online first. So if I create a poster or a flyer I have to do this: 1. Decide which print shop will print the material. 2. Download and install the color profile for this print shop in ConTeXt. 3. Specify CMYK values by using transicc with the given profile 4. Define named corporate colors with these CMYK values for typography, colored background in ConTeXt. 5. Convert all RGB images to CMYK using the given color profile especially if they contain corporate colors. Now if we decide to use another print shop, the whole process has to start again. The result is that I end up with color settings for x different print shops and cmyk images for x different print shops. Are there any plans to automate these steps into ConTeXt? That would enable us to work in RGB the whole time. Only when creating a print pdf we would specify a color profile and ConTeXt would do the rest by converting all rgb values to cmyk values due to the given color profile. As this seems very complex I fear that there are no plans to do this. What alternatives I have? = What if deliberately define my own cmyk values once and for all? Can I work with the same cymk values no matter what profile is used by the print shop? 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 ___
Re: [NTG-context] Repeat backgrounds on slides
\structureuservariable – this is really cool. Thanks a lot Wolfgang. juh Am 14.02.20 um 19:53 schrieb Wolfgang Schuster: > \setupexternalfigures[location=default] > > \defineoverlay > [SlideBackground] > [\doifsomething > {\structureuservariable{background}} > {\externalfigure[\structureuservariable{background}][factor=max]}] > > \setuppapersize[S6] > \setupbackgrounds[page][background=SlideBackground] > > %\setuppapersize[S6][S6,oversized] > %\setupbackgrounds[paper][background=SlideBackground] > %\setuplayout[location=middle] > > \definehead[Slide][chapter] > > \starttext > > \startSlide[title=Cow][background=cow] > \dorecurse{3}{\dontleavehmode\page} > \stopSlide > > \startSlide[title=Hacker][background=hacker] > \dorecurse{3}{\dontleavehmode\page} > \stopSlide > > \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] Repeat backgrounds on slides
Am 13.02.20 um 20:39 schrieb Wolfgang Schuster: > > This is normal behaviour for layers but you can repeat it on every page with > > \definelayer [bg:...] [state=repeat] Thanks. There was a dark idea of this in the back of my brain. > > In your case a simple overlay is the simpler solution to get repeated images > on every page, i.e. > > \defineoverlay [bg:hs2020-mond] > [{\externalfigure[background.jpg][height=\paperheight]}] > > or > > \defineoverlay [bg:hs2020-mond] [\overlayfigure{background.jpg}] Is this defining and setting in one command? Can I set the offset in this way, too? 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 ___
Re: [NTG-context] Color Profiles in lmtx
Am 12.02.20 um 19:48 schrieb Pablo Rodriguez: > On 2/12/20 5:15 PM, Jan U. Hasecke wrote: >> [...] >> I just realized that the above output is the right output. > > Hi Jan Ulrich, > > you might check profiles that with VeraPDF (or simply \nopdfcompression > as first command in the source and search for the profile 😎), > >> Ok. But now I have another question >> >> I want to install a new profile I downloaded from eci.org >> [...] >> 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? > > How about deleting the cache (simply remove > tex/context-cache/luatex-cache) and generate it again (by running > "mtxrun --generate", before compiling your source again? I get the error that was reported in another thread. :-( resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) .sh ./install.sh was the solution. I cannot use mtxrun in a way like "mtxrun --locate" in lmtx: $ mtxrun --locate mtxrun | forcing cache reload resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/juh/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/juh/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/juh/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/juh/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/juh/texmf/web2c' from specification 'selfautoparent:/texmf/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/juh/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/juh/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/juh/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/juh/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/juh/texmf/web2c' from specification 'selfautoparent:/texmf/web2c' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated ___ 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.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? 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 ___
Re: [NTG-context] xml differences between old context and lmtx
Am 27.12.19 um 14:03 schrieb Hans Hagen: > On 12/26/2019 1:19 PM, Jan U. Hasecke wrote: >> Hi all, >> >> are there any documented differences between the xml features of normal >> context and lmtx? >> >> In a fun project I compile xml sources from www.deutschestextarchiv.de >> to pdf via context using xmlsetups which kinda works with normal context >> current version: 2019.08.09 18:29 >> >> With lmtx current version: 2019.12.12 01:08 I don't get a usable result. >> >> And there is a change in file naming I discovered. >> >> Files from the deutschestextarchiv have names like >> marx_kapital01_1867.TEI-P5.xml >> >> lmtx skips the TEI-P5 part >> >> Any hints how I can adjust my xmlsetups? > how do you load the file With the --environment switch: context --environment=tei-style.tex marx_kapital01_1867.TEI-P5.xml 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 ___
[NTG-context] xml differences between old context and lmtx
Hi all, are there any documented differences between the xml features of normal context and lmtx? In a fun project I compile xml sources from www.deutschestextarchiv.de to pdf via context using xmlsetups which kinda works with normal context current version: 2019.08.09 18:29 With lmtx current version: 2019.12.12 01:08 I don't get a usable result. And there is a change in file naming I discovered. Files from the deutschestextarchiv have names like marx_kapital01_1867.TEI-P5.xml lmtx skips the TEI-P5 part Any hints how I can adjust my xmlsetups? 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 ___
Re: [NTG-context] Ebooks with ConTeXt?
Am 10.12.19 um 20:38 schrieb Nicola: > As for ConTeXt, I have tried the latest beta with: > > context mybook.tex > mtxrun --script epub --make mybook > > This, among the rest, creates an .epub file, which unfortunately the > above mentioned tools do not like (maybe, that output is still > experimental?). From time to time I publish an ebook either created with Pandoc or with the pythonic Sphinx documentation tool. In most cases Pandoc epubs validate fine. Sphinx only lately produces epub that validates without errors. But I had issues with Apple when I tried to publish a valid epub on their platform. You can validate epubs with epubcheck: https://github.com/w3c/epubcheck I don't know if ConTeXt produces epub2 or epub3. http://idpf.org/epub/30/ HTH juh -- Das ZEN von Pandoc Bücher und E-Books einfach und professionell produzieren http://www.amazon.de/Das-ZEN-von-Pandoc-professionell/dp/1505218799/ Paperback (232 Seiten) und E-Book ___ 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] Ebooks with ConTeXt?
Am 10.12.19 um 08:50 schrieb Nicola: > On 2019-12-10, Jan U. Hasecke wrote: > Thanks, I didn't think of Pandoc, I'll give it a try. In the past, > I have tried to create some simple content (slides) with Markdown, but > my conclusion was that if you know TeX, it doesn't make sense to use > Markdown :) > > Perhaps this is a silly question (excuse my ignorance about the topic): > what if you want to add some stylistic touches to your ebooks, such as > initials? Or Non-breaking spaces? How about adding, say, a text box with > a different background and a smaller font? Ebooks are xhtml so styles are limited to the capabilities of css. I fear that initials has to be left flowing images. >*** > > Or fine control page numbering, headers, footnotes, ligatures, or the > spacing between paragraphs, or center a separator as above? Do you need > to modify the generated CSS for that, or would ConTeXt (or Pandoc) > allow you to take care of (some of) those things? No page numbers in E-Books and I would avoid headers. Footnotes are endnotes. Ligatures might be possible if directly inserted, sorry never tried this in an ebook. You can modify the css to achieve what is possible in xhtml, though. I have to confess that I never managed to create an ebook with context right aways. AFAIK, please correct me Hans, you end up with an epub folder not the compressed epub itself. I would guess that it is a good thing if you want to postprocess the book manually by editing content files or css. What I can say about epub generally is: It's better to avoid fancy styling at all and use the default fonts and styles of the ebook devices. HTH 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 ___
Re: [NTG-context] Ebooks with ConTeXt?
Am 09.12.19 um 22:13 schrieb Nicola: > What is the current status of epub support in ConTeXt? > > I have never followed ConTeXt's development on the XML front too > closely, but recently I have been asked to help format a text-only > manuscript for publishing on platforms such as Kindle or Apple Books > Store. Can ConTeXt be used (or perhaps even recommended) for that? Or > would I have better luck with the proprietary tools (Kindle Create, > iBooks Author)? Sorry, no info concerning ConTeXT. You don't have to use proprietary tools. An easy way to create ebooks from Markdown files (or other sources) is Pandoc. https://pandoc.org/ I produce all of my ebooks in this way. In most cases they validate without errors. If there are some errors though I use Calibre to fix them manually. HTH 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 ___
Re: [NTG-context] ConTeXt as a service
Am 22.11.19 um 10:05 schrieb Henning Hraban Ramm: > Am 2019-11-22 um 09:46 schrieb Mojca Miklavec > : >> >> On Fri, 22 Nov 2019 at 08:51, Jan U. Hasecke wrote: >>> >>> I am very interested in running ConTeXt as a service, too. I am still >>> nurturing the idea of a publishing cooperative for self publishers with >>> a Markdown --> Pandoc --> ConTeXt workflow with a nice web frontend. I >>> hope to make it to the next ConTeXt meeting to discuss it. >> >> If you want to start from a simple markup language, at least go for >> asciidoc or restructured text. >> Markdown is a mess for anything but very very very trivial structure, >> and very very soon you basically end up with "basically ugly html with >> some embeded plain text every now and then". >> >> There is some proof-of-concept test document which goes via the >>asciidoc --[asciidoctor]--> docbook (xml) --[context]--> pdf >> path (but it needs more work to be fully useful). > > Wouldn’t it make sense to go (X)HTML->ConTeXt? This is what I am currently doing locally with Pablos from-pandoc-to-context workflow. 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 ___
Re: [NTG-context] ConTeXt as a service
Am 20.11.19 um 18:10 schrieb Henning Hraban Ramm: > Hi! > > I’m running ConTeXt on my web server e.g. to generate shipping forms for a > customer. > > As Hans said, it makes sense to use an asynchronous setup; in my case it’s > celery/RabbitMQ behind Django. > > You probably need to set a few environment variables: I find HOME, PATH, > TEXROOT and TEXMFOS in my setup. I don’t know if you really need all of them, > it’s already running for several years… > Also your web server process might only run binaries that belong to some > user/group like wwwrun. > > It won’t work in shared hosting, because you can’t install your own programs. Generally this is correct. But there are providers such as the Hostsharing cooperative where it is possible to install programs in a shared hosting environment. We do it for years. ;-) > Otherwise: What kind of documentation do you need? Installing ConTeXt on a > (web) server is not different from any other Linux system. Calling ConTeXt > from a web application is not different from calling any other external > program. The rest depends on your setup and web frameworks. I am very interested in running ConTeXt as a service, too. I am still nurturing the idea of a publishing cooperative for self publishers with a Markdown --> Pandoc --> ConTeXt workflow with a nice web frontend. I hope to make it to the next ConTeXt meeting to discuss it. Many greetings juh -- Hostsharing eG – die Hosting-Genossenschaft Souveränität – Nachhaltigkeit – Exzellenz https://www.hostsharing.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 footnote in LMTX
Am 08.10.19 um 16:44 schrieb Jan U. Hasecke: >> Could anyone confirm this issue with links in footnotes for LMTX? > > Yes, no link with LMTX 2019.10.02 22:33 Sorry. I mixed up my versions somehow. Please forget my mail. 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 ___
Re: [NTG-context] issue with footnote in LMTX
Am 08.10.19 um 15:11 schrieb Pablo Rodriguez: > Dear list, > > I have the following sample: > > \setupinteraction[state=start, focus=standard] > \starttext > a\footnote{b} > \stoptext > > Using latest beta from MkXL (2019.10.05 14:56), link form footnote to > main text body doesn’t work. > > Latest beta from MkIV (2019.10.05 14:45) has no issue and the footnote > link works perfectly fine. > > Could anyone confirm this issue with links in footnotes for LMTX? Yes, no link with LMTX 2019.10.02 22:33 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 ___
Re: [NTG-context] beta
Am 02.10.19 um 16:06 schrieb Hans van der Meer: > You can add to the end of the install script: > > echo "Removing luatex-cache/context" > rm -r tex/texmf-cache/luatex-cache/context > I reinstalled 64 bit Linux from http://www.pragma-ade.nl/install.htm and now it works again. Thanks a lot for supporting debian stable again. One thing, with: mtxrun --autogenerate --script context as suggested by the install script I get unknown script 'context.lua' or 'mtx-context.lua' The command "/home/juh/context-linux-64/tex/texmf-linux-64/bin/context" works. Any hints? 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 ___
[NTG-context] ConTeXt on current Debian
Dear all, todays upgrade broke my context installation (context and lmtx) as context now uses GLIBC_2.29 which is not available in Debian 10 buster. After using my backup I now wonder if from now on ConTeXt won't support Debian stable anymore? 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 ___
[NTG-context] Error during installation of LMTX
I tried to update or install LMTX today and get this error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/juh/context-linux-64/bin/mtxrun) I am running debian 10 buster. 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 ___
Re: [NTG-context] CMYK Color profile
Am 30.05.19 um 23:34 schrieb Benjamin Koppe: > Hello everyone, > > I'm about creating a DIN Lang Folder brochure with ConTEXt. I got > everything set up the way I'd like it to. Now that I'm done with the > work, I've been told the output pdf should have a CMYK Color profile > embedded for the on demand printing service to be able to deal with the > file... > > I am unsure what steps I have to take to make my output pdf compliant > with CMYK. I don't even know how I could verify it does indeed have > CMYK. Evince doesn't seem to show that info... > > So if anybdy of you could give me some hints, that's be wonderful. > > Cheers > De Benny Hi Benny, if you can read German you might find some hints in my articles about creating din lang folders https://www.hasecke.eu/post/werbemittel-mit-context-gestalten/ On colors read the second part: https://www.hasecke.eu/post/wie-wir-bei-hostsharing-mit-context-arbeiten/ Search the mailing list for color profile questions because I had to ask often to make my things work. ;-) The wiki contains some hints, too. What you can do is to create a mode like this: \startmode[fogra39] \doiffileelse{CoatedFOGRA39.icc}{}{\farbprofilnichtgefunden} % This will be printed in log if context does not find the profile for % some reason \definecolor [hs-logoblau] [c=1.000, m=0.735, y=0.279, k=0.160] \definecolor [hs-dunkelblau] [c=0.844, m=0.544, y=0.070, k=0.000] \definecolor [hs-hellblau] [c=0.468, m=0.220, y=0.086, k=0.002] \definecolor [hs-orange] [c=0.127, m=0.832, y=1.000, k=0.042] \setupcolors[cmyk=yes,rgb=no,] \setupbackend[ format=PDF/X-3:2003, intent={Coated FOGRA39 (ISO 12647-2:2004)}, ] \stopmode If you call context with --mode=fogra39 you will get these color definitions and the defined pdf format with the right profile (intent). If you download additional icc profiles (eg. the fogra one is missing in the context distribution) put them here: context/tex/texmf-local/colors/icc In this folder they won't be overwritten by an update. There are some limitations in ConTeXt concerning colors as embedded images are not converted, so RGB images are converted only by the print shop during printing, which can lead to strange results. I think the only way to control the output is to convert all images to CMYK by hand. By doing this you can modify them to get the best results. I hope that helps 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 ___
Re: [NTG-context] Wiki update
Am 30.05.19 um 12:07 schrieb Taco Hoekwater: > url: > https://wiki.contextgarden.net/Command/setupdescription > > content: > == Syntax == > > setupdescription Brilliant! Thanks a lot! 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 ___
Re: [NTG-context] Typesetting Markdown
Am 23.05.19 um 07:18 schrieb Thangalin: > Hi folks! > > I'm thinking about writing a series of blog posts about how to typeset > Markdown using ConTeXt. I've written the first part and am wondering if > anyone would be interested in reading more: > > https://dave.autonoma.ca/blog/2019/05/22/typesetting-markdown-part-1/ > That is interesting. Do you provide a RSS feed for your blog? 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 ___
Re: [NTG-context] Bibliography APS Style without unpublished
Am 16.05.19 um 16:12 schrieb nyssus: > Honestly, some way to use CSL files to style bibliography would be ideal > here, but that doesn't seem to currently exist Have a look at Pablos way to go from pandoc via xhtml to context: https://github.com/ousia/from-pandoc-to-context Or a slightly improved fork: https://github.com/aksdb/pandoc-xhtml I use this to write books with Markdown and produce the outputs with pandoc to epub and pdf. With Pandoc you can use CSL files and include the bibliography via XML into ConTeXt. HTH 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 ___
Re: [NTG-context] Bibliography APS Style without unpublished
Hi Alan, thanks a lot for these hints. Am 16.05.19 um 02:05 schrieb Alan Braslau: > On Wed, 15 May 2019 14:27:21 +0200 > "Jan U. Hasecke" wrote: > >> is there an option to eliminate the "unpublished" in aps bibliography? > > I suppose you mean the APS setup when NO date field is given > ("to be published" for an article, "in press" for a book, and > "unpublished" otherwise)? > > You can redefine the setup btx:aps:nd (no date) to give something else, > but you might have to go further not to get empty parenthesis. > > A better solution, using the APS specification is to have a correct > database. Maybe a different publication type category might be more > appropriate. I browsed through the mailing list to see that bibliographies are not that easy. ;-) I think I found a solution by providing a "year" in my database. That's good enough for me. But as I collect my internet citations with zotero I always get a urldate for all internet entries. I think that giving the urldate is better than insert a publication year as nobody knows how long a website was present and when it was published for the first time. Is it possible to insert something like "last accessed on the internet on -MM-DD" in that field automatically if no publication year is provided but a urldate? Greetings 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 ___
[NTG-context] Bibliography APS Style without unpublished
Hi all, is there an option to eliminate the "unpublished" in aps bibliography? I understand that apa and aps are the only implemented styles. Is there any other style I can use? 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 ___
Re: [NTG-context] serial letters
Am 10.04.19 um 09:08 schrieb Henning Hraban Ramm: > Thank you very much! I’ll try to come up with a solution (and document it). Did you find a solution? I am very interested as LibreOffice's serial letter function is annoying. Grüße juh -- Software-Dokumentation mit Sphinx Zweite überarbeitete Auflage (Sphinx 2.0) https://www.amazon.de/dp/1793008779 Paperback: 282 Seiten ___ 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] Blogging about ConTeXt at Hostsharing
Dear all, with your kind help I was able to establish an inhouse workflow to produce print material for my hosting cooperative Hostsharing. We are going to use ConTeXt for flyers, writing pads, business cards, posters and published documents such as sustainability reports. Many thanks to all who supported me in this mailing list. Being still a novice in ConTeXt I am going to blog about our experiences starting today with this post. https://www.hasecke.eu/post/werbemittel-mit-context-gestalten/ The text is in German only. I hope to find the time to write an English version in the near future. If anyone of you is visiting the Chemnitzer Linux-Tage this weekend join us at our Hostsharing booth to see the printed results. Our booth is not far away from the DANTE booth. https://chemnitzer.linux-tage.de/2019/de/programm/live Thanks a lot and a happy weekend juh -- Hostsharing eG – die Hosting-Genossenschaft Souveränität – Nachhaltigkeit – Exzellenz https://www.hostsharing.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] Printing 3 din lang pages on one dina4 page
Am 12.03.19 um 17:25 schrieb Wolfgang Schuster: > \definepapersize [A4/3] [width=99mm,height=210mm] > > \setuppapersize [A4/3] [A4,landscape] > > \setuppaper [nx=3,ny=1] > > \setuparranging [XY] > > \setupbodyfont [10pt] > > \showframe[page] > > \starttext > \dorecurse{10}{\samplefile{tufte}} > \stoptext Thanks a lot, Wolfgang. juh -- Soziale Plastik. Die Kunst der Allmende Essay zum 30. Todestag von Joseph Beuys http://www.amazon.de/dp/1523458763/ Taschenbuch, 130 Seiten, EUR 9,90 ___ 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 3 din lang pages on one dina4 page
Hi, I managed to print din long flyers (100mmx210mm with 97mmx210mm fold page) with 6 pages using a lot of pageshifts etc. But how can I print one simple din long page (99mmx210mm) three times on a din a4 page so that I can cut it myself? The following does not work. \definepapersize [flyer] [width=99mm,height=210mm] \setuppapersize [flyer] [a4] \setuparranging[1*3] The option [1*3] does not exist for \setuparranging. But I thought this could be what I want one sheet three pages. 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 ___
Re: [NTG-context] Macro for a header does not work as well
Am 19.02.19 um 12:55 schrieb Otared Kavian: > Hi Fabrice, > > After adding > >\mainlanguage[fr] > > to your file I obtain the attached output (Context version 2019.02.14 16:57). > I have a similar problem with a lua snippet, where mainlanguage does not solve the problem. In a context version from last year this showed the right date format, now it shows: d=1m=3y=2019 \def\duedate{\ctxlua{ local t = os.date('*t', os.time()+ 10 * 24 * 3600) context.date{d=t.day, m=t.month, y=t.year } }} \mainlanguage[de] \starttext \duedate \stoptext 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 ___
Re: [NTG-context] Creating business cards with CSV
Thanks Pablo, great documentation and just the tool I was looking for. 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 ___
Re: [NTG-context] Metapost graphic in setupbackground
Thanks a lot Wolfgang and Marco. :-) juh Am 08.02.19 um 12:57 schrieb Wolfgang Schuster: > > > Jan U. Hasecke schrieb am 08.02.19 um 12:36: >> Hi all, >> >> I make my first steps with Metapost. >> >> I would like to set the background of all pages to a Metapost graphic. >> >> But only the first page has the defined background. >> >> I also tried with >> >> \startuseMPgraphic >> >> with no success >> >> --- mwe --- >> >> \startreusableMPgraphic{kreis} >> draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm; >> \stopreusableMPgraphic >> >> \definelayer[kreisbackground][width=70mm,height=70mm] > > \definelayer[kreisbackground][state=repeat] > > Wolfgang > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Metapost graphic in setupbackground
Hi all, I make my first steps with Metapost. I would like to set the background of all pages to a Metapost graphic. But only the first page has the defined background. I also tried with \startuseMPgraphic with no success --- mwe --- \startreusableMPgraphic{kreis} draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm; \stopreusableMPgraphic \definelayer[kreisbackground][width=70mm,height=70mm] \setlayer[kreisbackground] [x=-3mm,y=-3mm] {\reuseMPgraphic{kreis}} \setupbackgrounds[paper][background=kreisbackground, state=start] \starttext \input lorem \page \input lorem \stoptext 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 ___
Re: [NTG-context] Making ConTeXt stop on all or some errors
Am 07.02.19 um 17:46 schrieb Alan Braslau: > On Thu, 7 Feb 2019 07:27:57 +0100 (UTC) > "Jan U. Hasecke" wrote: > >> At least a missing file should make ConTeXt stop immediately. > > Why? > > (I often process with missing figures, etc. Of course, not for a final > run, but adding showstoppers leads to overhead and longer processing > times. People first coming to ConTeXt look for such bells and whistles > as many other programs hold your hand in this way. This also explains > why these programs often lack in performance as well.) > > Alan > You see placeholders in the pdf, if a figure is missing. The only info that the color profile is missing is in the log file. You don't see it. 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 ___
[NTG-context] Creating business cards with CSV
Hi all, I found some hints to CSV in the wiki, but they all refer to tables. What are the building block to create business cards from a csv file? My business-card.tex looks like this: \starttext {\bf Vorname Name}\\ Function \blank Company\\ Street\\ PLZ City\\ Germany\\ Telefon: 12345678\\ n...@example.com\\ www.example.com\\ \stoptext In pseudo code I think something like this could work: for i in csv: {\bf $Vorname $Name}\\ $Function \blank $Company\\ $Street\\ etc. \page The variables ($Vorname, $Name etc) could be named according to the columns in the first row in the csv-file. Each row starting from the second is creating a page (business card). 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 ___
Re: [NTG-context] Making ConTeXt stop on all or some errors
Am 06.02.19 um 19:31 schrieb Pablo Rodriguez: > On 2/5/19 8:07 AM, Jan U. Hasecke wrote: >> Hola Pablo, > > Hallo Jan-Ulrich, > >> I inserted this in the setupbackend command so that ConTeXt stops with >> the unknown command \colorprofilenotfound I inserted in the else clause. >> >> But more and more I think that ConTeXt should fail if it does not find >> the color profile, because if you forget to study the log file before >> sending the pdf to the print shop you can loose a lot of money. > > But the scenarios in which you could loose a lot of money are many more > than you might think. > > Imagine the following: > > \startbuffer > A Greek sentence: > χαλεπὰ τὰ καλά > \stopbuffer > \definefallbackfamily[mainface][rm][GFS Didoto] > [preset=range:greek] > \definefontfamily[mainface][rm][Latin Modern Roman] > \definefallbackfamily[amainface][rm][GFS Didot] > [preset=range:greek] > \definefontfamily[amainface][rm][TeX Gyre Pagella] > \definefallbackfamily[smainface][rm][GFS Didot] > [preset=range:greek, force=yes] > \definefontfamily[smainface][rm][TeX Gyre Pagella] > \setupbodyfont[mainface] > \starttext > \startTEXpage[offset=2em] > \getbuffer\\ > \amainface\getbuffer\\ > \smainface\getbuffer > \stopTEXpage > \stoptext > > Not embedding all glyphs for the fallback font (failing to type > "force=yes") could lead to weird results. Not to mention when a font > isn’t embedded at all. > >> And as we use ConTeXt in a group where people have different ConTeXt >> knowledge the generation should be bullet proofed. > > I totally agree with that. But it mainly relies on how source documents > are written. ConTeXt cannot type the source for us. > >> The behaviour of ConTeXt is AFAICS the following. >> If you install icc-profiles in texmf-context they get lost during the >> next update of ConTeXt. But ConTeXt will not stop the complilation only >> warning that there is no profile file. >> >> ConTeXt only stops to compile if you delete a profile which was present >> during installation/update or which was present during a "mtxrun >> --generate" (Thanks to Mojca for this hint). Then the file is registered >> and ConTeXt wants to access it, failing if it is not there. >> >> If you install profiles in texmf-local and then do a "mtxrun --generate" >> you are quite safe as long as you do not install ConTeXt from scratch. > > No computer can read your mind. Or a brand-new installation cannot guess > whether you are up to some auxiliary files (name them color profiles, > fonts, or whatever you want). > >> If you want to compile a ConTeXt project on an other computer you have >> to study the log file to see that it does not find a color profile. And >> this is dangerous, because none expects this to be a problem. I think >> ConTeXt should fail and stop if the profile is not there. > > But checking if the file exists is a safe way to know whehter it can be > embedded in the output PDF document. > > Another scenario would be attaching files to a PDF document using the > \attachment command. I have done it myself. > > With some of my documents, I had to attach a variable number of extra > documents to the final PDF. The only way to secure the attachment was > \doiffileelse{file.pdf}{\attach[file.pdf]}{\ssbf\color[red]{missing > attachment}}. > > Just in case it helps, Yes, your solution helps and I use it for now. But I am still looking for a switch to have a nitpickier runlevel of ConTeXt. From the documentation suite Sphinx I know such a switch which turns warnings into errors (causing Sphinx to stop) and vice versa. At least a missing file should make ConTeXt stop immediately. 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 ___
Re: [NTG-context] Making ConTeXt stop on all or some errors
Hola Pablo, Am 04.02.19 um 18:42 schrieb Pablo Rodriguez: > On 2/4/19 7:30 AM, Jan U. Hasecke wrote: >> Hi all, >> >> yesterday I asked about where to put color profiles. >> >> My problem was that ConTeXt for some unknown reason didn't find the >> color profiles I downloaded. But most annoying was the fact that I >> didn't saw the error in the log because ConTeXt only complains about not >> finding the profile. >> >> Is there a way to make ConTeXt stop if it does not find the profile like >> it stops if I use a unknown command? >> >> I want to avoid that we send a pdf without a profile to the print shop, >> because we overlook a message in the logs. > > Hi Jan Ulrich, > > maybe testing if the file is there may work for you. > > Here is a sample: > > \starttext > \doiffileelse{srgb.icc}{fine now}{\red\ss\bfd HUGE MISTAKE} > > \doiffileelse{srgb.icca}{fine now}{\red\ss\bfd HUGE MISTAKE} > \stoptext > > The first profile is provided within the ConTeXt Suite, the second one > is a wrong file name. > > Just in case it might help, I inserted this in the setupbackend command so that ConTeXt stops with the unknown command \colorprofilenotfound I inserted in the else clause. But more and more I think that ConTeXt should fail if it does not find the color profile, because if you forget to study the log file before sending the pdf to the print shop you can loose a lot of money. And as we use ConTeXt in a group where people have different ConTeXt knowledge the generation should be bullet proofed. The behaviour of ConTeXt is AFAICS the following. If you install icc-profiles in texmf-context they get lost during the next update of ConTeXt. But ConTeXt will not stop the complilation only warning that there is no profile file. ConTeXt only stops to compile if you delete a profile which was present during installation/update or which was present during a "mtxrun --generate" (Thanks to Mojca for this hint). Then the file is registered and ConTeXt wants to access it, failing if it is not there. If you install profiles in texmf-local and then do a "mtxrun --generate" you are quite safe as long as you do not install ConTeXt from scratch. If you want to compile a ConTeXt project on an other computer you have to study the log file to see that it does not find a color profile. And this is dangerous, because noone expects this to be a problem. I think ConTeXt should fail and stop if the profile is not there. There is the switch --errors=list which might be of some use here, but I could not find documentation, so I don't know how to call ConTeXt and make it fail if the error occurs. Thanks for the hint, which I use as a workaround. 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 ___
[NTG-context] Making ConTeXt stop on all or some errors
Hi all, yesterday I asked about where to put color profiles. My problem was that ConTeXt for some unknown reason didn't find the color profiles I downloaded. But most annoying was the fact that I didn't saw the error in the log because ConTeXt only complains about not finding the profile. Is there a way to make ConTeXt stop if it does not find the profile like it stops if I use a unknown command? I want to avoid that we send a pdf without a profile to the print shop, because we overlook a message in the logs. 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 ___
Re: [NTG-context] Where to put icc color profiles
Am 03.02.19 um 18:19 schrieb Mojca Miklavec: > Dear Jan, > > On Sun, 3 Feb 2019 at 14:49, Jan U. Hasecke wrote: >> >> I downloaded some color profiles and stored them in: >> >> /context/tex/texmf-context/colors/icc/profiles >> >> But they get overwritten, when I update context. > > Please try to put them to > /context/tex/texmf-local/colors/icc/profiles > instead (and maybe run "mtxrun --generate" afterwards just in case). Thanks. Seems to work. :-) 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 ___
Re: [NTG-context] Title from setupinteraction used in header
Am 03.02.19 um 17:34 schrieb Wolfgang Schuster: > > Use \setupdocument to set the metadata for the PDF. You can access the > values with the \documentvariable command. > > \setuppagenumbering > [location=] > > \setupheadertexts > [\documentvariable{metadata:title} – \documentvariable{metadata:author}] > > \setupdocument > [metadata:title={foo}, > metadata:subtitle={bar}, > metadata:author={Peter}, > metadata:keyword={context}] > > \starttext > \samplefile{lorem} > \stoptext > Thank you, Wolfgang. 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 ___
Re: [NTG-context] Color profile not found
Am 03.02.19 um 15:26 schrieb Jan U. Hasecke: > I get an error when I use. > > \setupbackend[ >format=PDF/X-3:2003, >intent={Coated FOGRA39 (ISO 12647-2:2004)}, >] > > backend > profiles > profile specification 'Coated FOGRA39 (ISO > 12647-2:2004)' loaded from > '/home/juh/context/tex/texmf-context/colors/icc/context/colorprofiles.xml' > backend > profiles > error, couldn't locate profile > 'CoatedFOGRA39.icc' > backend > profiles > invalid output intent 'Coated FOGRA39 (ISO > 12647-2:2004)' > > I copied the file CoatedFOGRA39.icc to > > context/tex/texmf-context/colors/icc/profiles > > My setup worked before. > > Using the intent "ISO Coated v2 300\letterpercent\space (ECI)" I get no > error. > I solved the problem by installing the color profiles on my debian machine so that they are in ~/.colors/icc Then I exported in .bashrc export OSCOLORDIR="$HOME/.color/icc" This solved the issue here. But as I am working in a group I would like to have a solution that works without installing the color profiles locally. 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 ___
[NTG-context] Color profile not found
I get an error when I use. \setupbackend[ format=PDF/X-3:2003, intent={Coated FOGRA39 (ISO 12647-2:2004)}, ] backend > profiles > profile specification 'Coated FOGRA39 (ISO 12647-2:2004)' loaded from '/home/juh/context/tex/texmf-context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'CoatedFOGRA39.icc' backend > profiles > invalid output intent 'Coated FOGRA39 (ISO 12647-2:2004)' I copied the file CoatedFOGRA39.icc to context/tex/texmf-context/colors/icc/profiles My setup worked before. Using the intent "ISO Coated v2 300\letterpercent\space (ECI)" I get no error. 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 ___
[NTG-context] Where to put icc color profiles
Hi all, I downloaded some color profiles and stored them in: /context/tex/texmf-context/colors/icc/profiles But they get overwritten, when I update context. Can I put color profiles in the working folder of my project. And how do I access them with setupbackend? TIA juh -- Software-Dokumentation mit Sphinx http://www.amazon.de/dp/1497448689/ Paperback: 224 Seiten ___ 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] Title from setupinteraction used in header
Hi all, it is quite easy to have chapters in headers and footers as shows this example. \setuppagenumbering[location=] \setupheadertexts [text] [chapter] [] [] [chapter] \setupinteraction [title={foo}, subtitle={bar}, author={Peter}, keyword={context}] \starttext \startchapter[title={chapter title},] \input lorem \stopchapter \startchapter[title={another chapter title},] \input lorem \stopchapter \stoptext How can I insert title, subtitle and author from setupinteraction into headertexts? Background: authors shall define title, subtitle etc in the product file with setupinteraction (or a better method if available). In the environment file I want to insert theses informations into headers and footers. 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 ___
Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page
Am 14.01.19 um 19:25 schrieb Wolfgang Schuster: > >> I'll try to wikify this later this week. I wikified it here: https://wiki.contextgarden.net/Command/setuphead Is there a way to suppress the context output? The output does not show the effect. 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 ___
Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page
Am 13.01.19 um 16:56 schrieb Wolfgang Schuster: > Here is a example which shows how you can change the background color > of a empty page before the chapter title. > > \setuppagenumbering > [alternative=doublesided] > > \startsetups [chapter:before] > \doifoddpageelse > {} > {\pushbackground[page] > \setupbackgrounds[page][background=color,backgroundcolor=black] > \page[empty,right] > \popbackground} > \stopsetups > > \setuphead > [chapter] > [page=yes, > before=\directsetup{chapter:before}] > > \starttext > > \startchapter[title={Knuth}] > \dorecurse{10}{\samplefile{knuth}} > \stopchapter > > \startchapter[title={Zapf}] > \dorecurse{10}{\samplefile{zapf}} > \stopchapter > > \startchapter[title={Ward}] > \dorecurse{10}{\samplefile{ward}} > \stopchapter > > \stoptext Thanks a lot Wolfgang! This was just the thing I was looking for. These setups seems to be the golden bullet in ConTeXt but I often have difficulties to understand the mechanism. I'll try to wikify this later this week. The push-pop-background pair is mentionend in x-setups-overview together with some other push-pop-pairs or push single commands. Are they documented somewhere? 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 ___
Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page
Hi Aditya, Am 12.01.19 um 20:11 schrieb Aditya Mahajan: > On Sat, 12 Jan 2019, Jan U. Hasecke wrote: > >> Hi all, >> >> in my document \startchapter and \starttitle starts a new chapter on the >> right (odd) page. So sometimes, there is a blank even page just before a >> new chapter. >> >> I would like to manipulate this blank even page. >> >> There are several things I would like to do, eg. having no headers and >> footers, setting the background color to a named color, placing an image >> or some graphics on the page. >> >> Is there a way to define such a page, name it and call it in >> \startchapter so that it is placed on the left side. > > See https://tex.stackexchange.com/q/457428/323 Thanks a lot, but I wasn't looking for a way to just delete page numbers but to style the empty page in arbitrary ways. Maybe it is better to do this manually. I would let chapter open on even pages too and just insert a styled page by hand. 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 ___