Re: [NTG-context] Bloody PDF boxes and cr*p marks!
Thank you for this, that's the first time this stuff has made any sense to me. On Sat, 30 Oct 2021 at 20:22, Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote: > I finally reworked the wiki page https://wiki.contextgarden.net/PDF_Boxes > and also extended https://wiki.contextgarden.net/PDFX a bit. > > Hraban > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \doifinstring: strange characters on the output
Hi all, I noticed that \doifinstring produces quite strange output if a command follows immediately (or with any amount of spaces) after the substring I am searching for: -MWE \starttext \def\xxx{asdf \bf Z:\bf asdf} % strange \def\xxx{asdf \bf Z: \bf asdf}% strange \def\xxx{asdf \bf Z:: \bf asdf} % OK \def\xxx{asdf \bf Z: text \bf asdf} % OK \def\xxx{asdf \bf Z:{} \bf asdf} % OK \doifinstring{Z:}{\xxx}{yes!} \stoptext --OUTPUT fbf@yes! fbf@yes! yes! yes! yes! If I insert another character, text or {} between them (with or without spaces), all is ok. I would like to ask what is the cause of this behavior and how to use the \doifinstring to prevent the "fbf@" on the output. Best wishes Tomáš ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] \externafigure and \at do not work together
Hi, Your example has two issues, since you invoke \externalfigure before \starttext, and moreover you don’t use the place figure mechanism. The following gives the result you want: \setupinteraction[state=start] \starttext \startplacefigure[reference=clock] \externalfigure[clock.jpg] \stopplacefigure In figure \at[clock] you see a clock \page In figure \at[clock] you see a clock. Or better: in \in{Figure}[clock] you see a clock. \stoptext Best regards: Otared > On 31 Oct 2021, at 13:49, a badin via ntg-context wrote: > > The fix is not really a fix thought, as it makes the image of the > figure disappear. > Still don't know how to make a .jpg work with \at > > On Sun, 31 Oct 2021 at 13:07, a badin wrote: >> >> Hello, perhaps this is how it is supposed to work, but: >> >> \externalfigure[clock.jpg][clock] >> \starttext >> \at[clock] refers to a clock >> \stoptext >> >> produces "?? refers to a clock", instead of "1 refers a clock" --- the >> wiki of \at says, that labels of figures can be refered to. Is this a >> bug, or can only some labels be refered to? I was able to fix it >> using: >> >> \reference[clock]{\externalfigure[clock.jpg]} >> \starttext >> \at[clock] refers to a clock >> \stoptext >> >> and >> >> \externalfigure[clock][] >> \starttext >> \at >> \stoptext >> >> produces an interesting artwork... so I thought maybe this could be a >> bug. LMTX 2021.10.21 >> >> Best, >> Andrej > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Cannot access Lua function
On Sunday, October 31, 2021 2:43:48 PM IST Hans Hagen wrote: > I bet that clever students can trace that down -) Just to clarify, I am a student at university. Have to make some documents as a teaching assistant in courses so many students use the same abbreviations. > > in that case you probably need to hide more .. (when you process with > \nopdfcompression at the top you can look in the pdf, i.e. compression > is not encryption > > one thing you can do is make a copy of lpdf-xmp.lmt and wipe all tricky > values and then use that to make a format > > but if security is important, maybe better is to use "qpdf" to encrypt > the file (you can then also prevent editing for instance) I will try this out. Many thanks for your detailed response Hans! Best kauśika ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] \externafigure and \at do not work together
I thought it was necessary to use one of the derivations of \placefloat in order to get the reference generated. In your case this would be \placefigure thus: \starttext \placefigure [ ] [clock] { } {\externalfigure[clock.jpg]} \at[clock] refers to a clock \stoptext > On 31 Oct 2021, at 12:49, a badin via ntg-context wrote: > > The fix is not really a fix thought, as it makes the image of the > figure disappear. > Still don't know how to make a .jpg work with \at > > On Sun, 31 Oct 2021 at 13:07, a badin wrote: >> >> Hello, perhaps this is how it is supposed to work, but: >> >> \externalfigure[clock.jpg][clock] >> \starttext >> \at[clock] refers to a clock >> \stoptext >> >> produces "?? refers to a clock", instead of "1 refers a clock" --- the >> wiki of \at says, that labels of figures can be refered to. Is this a >> bug, or can only some labels be refered to? I was able to fix it >> using: >> >> \reference[clock]{\externalfigure[clock.jpg]} >> \starttext >> \at[clock] refers to a clock >> \stoptext >> >> and >> >> \externalfigure[clock][] >> \starttext >> \at >> \stoptext >> >> produces an interesting artwork... so I thought maybe this could be a >> bug. LMTX 2021.10.21 >> >> Best, >> Andrej > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] \externafigure and \at do not work together
The fix is not really a fix thought, as it makes the image of the figure disappear. Still don't know how to make a .jpg work with \at On Sun, 31 Oct 2021 at 13:07, a badin wrote: > > Hello, perhaps this is how it is supposed to work, but: > > \externalfigure[clock.jpg][clock] > \starttext > \at[clock] refers to a clock > \stoptext > > produces "?? refers to a clock", instead of "1 refers a clock" --- the > wiki of \at says, that labels of figures can be refered to. Is this a > bug, or can only some labels be refered to? I was able to fix it > using: > > \reference[clock]{\externalfigure[clock.jpg]} > \starttext > \at[clock] refers to a clock > \stoptext > > and > > \externalfigure[clock][] > \starttext > \at > \stoptext > > produces an interesting artwork... so I thought maybe this could be a > bug. LMTX 2021.10.21 > > Best, > Andrej ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] \externafigure and \at do not work together
Hello, perhaps this is how it is supposed to work, but: \externalfigure[clock.jpg][clock] \starttext \at[clock] refers to a clock \stoptext produces "?? refers to a clock", instead of "1 refers a clock" --- the wiki of \at says, that labels of figures can be refered to. Is this a bug, or can only some labels be refered to? I was able to fix it using: \reference[clock]{\externalfigure[clock.jpg]} \starttext \at[clock] refers to a clock \stoptext and \externalfigure[clock][] \starttext \at \stoptext produces an interesting artwork... so I thought maybe this could be a bug. LMTX 2021.10.21 Best, Andrej ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] SyncTeX setup
Hi, has anyone a working SyncTeX setup with ConTeXt LMTX for anything else than TeXshop? With LaTeX, it works for me with Skim (+ Atom/Textadept/TeXworks) and TeXstudio. And in TeXshop we got our own parser. But can we expect others to adapt to our “superior” SyncTeX format? (I don’t understand the format yet and can’t tell what’s the difference.) Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Cannot access Lua function
On 10/31/2021 5:35 AM, kauśika cittūr wrote: On Saturday, October 30, 2021 9:16:15 PM IST Hans Hagen wrote: cf the pdf speca: Creator: If the document was converted to PDF from another format, the name of the PDF processor that created the original document from which it was converted. Producer: If the document was converted to PDF from another format, the name of the PDF processor that converted it to PDF. so changing that is kind of cheating. Hans Dear Hans, Thanks for the reference. Just to clarify, I only do this for VERY FEW documents I make, not all. In some cases, I need to keep the author of the document unidentifiable for purposes of security, since otherwise, people who know how to look for metadata can easily identify that I am the author given the small # of people using ConTeXt. In my department at university I am the only one using it as far as I know. The 'IKTS-VTR' values above are just an abbreviation for my lab/course. I bet that clever students can trace that down -) Anyway, since it is not good practice, I will try to make do without this. in that case you probably need to hide more .. (when you process with \nopdfcompression at the top you can look in the pdf, i.e. compression is not encryption one thing you can do is make a copy of lpdf-xmp.lmt and wipe all tricky values and then use that to make a format but if security is important, maybe better is to use "qpdf" to encrypt the file (you can then also prevent editing for instance) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___