[NTG-context] issue with links
Dear list, this MWE shows that links may be misbehaving again: \setupindenting[yes, always, big] \setupinteraction[state=start] \enabledirectives[references.border] \unexpanded\def\MyURL#1% {\bgroup\goto{{\tt\hyphenatedurl{#1}}}[url(#1)]\egroup} \starttext \dorecurse{10}{word } \MyURL{https://www.mobileread.com/forums/showthread.php?t=183423} \stoptext Could anyone confirm this? I experienced it first with the LMTX release from yesterday. MkIV (from 2020.01.30 14:13) doesn’t seem to be affected by this issue. Many thanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] autostart included video
On Thu, 19 Nov 2020, Hans Hagen wrote: > On 11/19/2020 8:12 AM, Aditya Mahajan wrote: > > > I use \externalfigure[filename.mp4] to include a video in a presentation. Is > > it possible to autostart the video automatically when the page is loaded? > Video (and audio) and acrobat ... any browser can play a video but it seems > too complex for adobes pdf viewers and technology > > [] I understand and am pretty frustrated with Adobe (they had decent support on linux but simply gave up at some stage)However, sometimes videos are the best way to present some information in a presentation. The method that you sent in the other message: \gotobox{\externalfigure[cow.pdf]}[url(woodwork.mp4)] works (clicking on the file opens the file in an external viewer) but I prefer to show the video inside the PDF. My current solution is to use pdfpc (https://pdfpc.github.io/), which is able to play the usual \externalfigure[filename.mp4] videos well...just that I need to click the video in order to start it. They do have a latex specific method to autostart a video...I'll try to see if I can figure out what is the actual PDF code that needs to be embedded and try to replicate it in context. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] LMTX MkIV difference in expansion
Rik Kabel schrieb am 19.11.2020 um 21:20: Another LMTX/MkIV difference, this time with expansion: \define\Align{yes} \starttext \startalignment[\Align] This works with MkIV but fails with LMTX, complaining: {\tt tex error on line 3 in file G:/expand.mkvi: The file ended when scanning an argument.} \blank It works in both when \tex{def} or \tex{defineexpandable} is used instead of \tex{define}. \blank What changed? \stopalignment \stoptext It may well be that I have been abusing some laxity in MkIV and that LMTX is a bit stricter in what it accepts, but I would like to know if this is an expected difference. You have to wait for Hans to get an answer but here is a minimal example. \starttext \protected\def\testparameter{test} %\def\testparameter{test} \def\test[#1]% {\expandafter\let\expandafter\testargumentlist\csname#1\endcsname} \test[\testparameter] \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] LMTX MkIV difference in expansion
Another LMTX/MkIV difference, this time with expansion: \define\Align{yes} \starttext \startalignment[\Align] This works with MkIV but fails with LMTX, complaining: {\tt tex error on line 3 in file G:/expand.mkvi: The file ended when scanning an argument.} \blank It works in both when \tex{def} or \tex{defineexpandable} is used instead of \tex{define}. \blank What changed? \stopalignment \stoptext It may well be that I have been abusing some laxity in MkIV and that LMTX is a bit stricter in what it accepts, but I would like to know if this is an expected difference. -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bilingual text on facing pages
On 11/18/20 8:03 PM, MANUEL GONZALEZ SUAREZ wrote: > Hello everyone: > > Do you know if we can make bilingual editions with ConTeXt, as they are > done with the reledpar package for LaTeX? I have consulted this page > (https://tex.stackexchange.com/questions/113899/parallel-text-in-context), > but I don't really understand what can be done. I have tried the code > with MKIV but it does not work well. Hi Manuel, parallel texts are something that need to be implemented by Hans. From time to time, there is someone that comments this issue. Sorry for not being helpful, but this depends on a unified proposal and Hans being challenged to implement it. Best wishes, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] LMTX MkIV difference in expansion
On 11/19/2020 9:41 PM, Wolfgang Schuster wrote: Rik Kabel schrieb am 19.11.2020 um 21:20: Another LMTX/MkIV difference, this time with expansion: \define\Align{yes} \starttext \startalignment[\Align] This works with MkIV but fails with LMTX, complaining: {\tt tex error on line 3 in file G:/expand.mkvi: The file ended when scanning an argument.} \blank It works in both when \tex{def} or \tex{defineexpandable} is used instead of \tex{define}. \blank What changed? \stopalignment \stoptext It may well be that I have been abusing some laxity in MkIV and that LMTX is a bit stricter in what it accepts, but I would like to know if this is an expected difference. You have to wait for Hans to get an answer but here is a minimal example. \starttext \protected\def\testparameter{test} %\def\testparameter{test} \def\test[#1]% {\expandafter\let\expandafter\testargumentlist\csname#1\endcsname} \test[\testparameter] \stoptext Often arguments to commands like \startsomething[xx] let the xx end up in some \(if)csname expansion. A protected (\unexpanded in context speak) macro doesn't expand inside for instance an \edef (or comparable expandable situation). Now, from that it makes perfect sense to also not let it expand inside a \csname or \ifcsname. One reason is that when it does expand, you can get a pretty wild (nested) sequence of nested expansions and one can be pretty sure that we then don't have a proper csname. This is why in luatex we have a catch for running wild csname checking. The original \ifcsname test was inherited from etex. The \protected feature also comes from etex. But \csname is a tex natural. In pdftex (and luatex) a protected macro inside an \(if)csname does expand which to makes no sense and smells like a bug. Or maybe it was tricky to catch (the implementation of protected a bit of a hack). In luametatex protected macros are native and in the process I also decided to *not* expand them in a \(if)csname where I expect (as said) protected macros to behave like in an edef. I nice side effect is that running wild no longer happens (but we still catch it) which can save quite some useless backup token list construction (needed because tex has to push back stuff in order to be able to report an error). So, when you still don't understand it (which I can understand) I'm sure Wolfgang can explain it better now. \starttext \def\foo{foo} \protected\def\oof{oof} \csname foo\endcsname \csname oof\endcsname \csname \foo\endcsname % error in luametatex, ok in pdftex/luatex: % \csname \oof\endcsname \ifcsname foo\endcsname yes\else nop\fi \ifcsname oof\endcsname yes\else nop\fi \ifcsname \foo\endcsname yes\else nop\fi % nop in luametatex (error intercepted), yes in pdftex/luatex \ifcsname \oof\endcsname yes\else nop\fi \stoptext Now, one can argue that if I consider it a but in the other engines, why I don't argue that it should be solved. Well, there is too much legacy code already that might use it as feature so it will not change. But in luametatex we can 'fix' these things. (We also use the csname in a rather predictable way in context so i don't expect issues in the core.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] LMTX MkIV difference in expansion
On 11/19/2020 17:03, Hans Hagen wrote: On 11/19/2020 9:41 PM, Wolfgang Schuster wrote: Rik Kabel schrieb am 19.11.2020 um 21:20: Another LMTX/MkIV difference, this time with expansion: \define\Align{yes} \starttext \startalignment[\Align] This works with MkIV but fails with LMTX, complaining: {\tt tex error on line 3 in file G:/expand.mkvi: The file ended when scanning an argument.} \blank It works in both when \tex{def} or \tex{defineexpandable} is used instead of \tex{define}. \blank What changed? \stopalignment \stoptext It may well be that I have been abusing some laxity in MkIV and that LMTX is a bit stricter in what it accepts, but I would like to know if this is an expected difference. You have to wait for Hans to get an answer but here is a minimal example. \starttext \protected\def\testparameter{test} %\def\testparameter{test} \def\test[#1]% {\expandafter\let\expandafter\testargumentlist\csname#1\endcsname} \test[\testparameter] \stoptext Often arguments to commands like \startsomething[xx] let the xx end up in some \(if)csname expansion. A protected (\unexpanded in context speak) macro doesn't expand inside for instance an \edef (or comparable expandable situation). Now, from that it makes perfect sense to also not let it expand inside a \csname or \ifcsname. One reason is that when it does expand, you can get a pretty wild (nested) sequence of nested expansions and one can be pretty sure that we then don't have a proper csname. This is why in luatex we have a catch for running wild csname checking. The original \ifcsname test was inherited from etex. The \protected feature also comes from etex. But \csname is a tex natural. In pdftex (and luatex) a protected macro inside an \(if)csname does expand which to makes no sense and smells like a bug. Or maybe it was tricky to catch (the implementation of protected a bit of a hack). In luametatex protected macros are native and in the process I also decided to *not* expand them in a \(if)csname where I expect (as said) protected macros to behave like in an edef. I nice side effect is that running wild no longer happens (but we still catch it) which can save quite some useless backup token list construction (needed because tex has to push back stuff in order to be able to report an error). So, when you still don't understand it (which I can understand) I'm sure Wolfgang can explain it better now. \starttext \def\foo{foo} \protected\def\oof{oof} \csname foo\endcsname \csname oof\endcsname \csname \foo\endcsname % error in luametatex, ok in pdftex/luatex: % \csname \oof\endcsname \ifcsname foo\endcsname yes\else nop\fi \ifcsname oof\endcsname yes\else nop\fi \ifcsname \foo\endcsname yes\else nop\fi % nop in luametatex (error intercepted), yes in pdftex/luatex \ifcsname \oof\endcsname yes\else nop\fi \stoptext Now, one can argue that if I consider it a but in the other engines, why I don't argue that it should be solved. Well, there is too much legacy code already that might use it as feature so it will not change. But in luametatex we can 'fix' these things. (We also use the csname in a rather predictable way in context so i don't expect issues in the core.) Hans You are right about not quite understand. Does this mean that I can have the same definitions in MkIV and LMTX (after some future update), or should I hunt down the \defines in both, or that I should fork (or mode test) my source environment files, one set for LMTX and one for MkIV? -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Piecewise margin line
Hi Johann, Here is an example (extracted from one of my files…) which might give what you want: you can change some of the specifications easily. % begin proclaim-leftbar.tex %%% \startuseMPgraphic{mpos:region:leftbar} draw_multi_pars; draw_multi_side; \stopuseMPgraphic \definetextbackground[leftbartext] [location=paragraph, mp=mpos:region:leftbar, width=broad, frame=off, framecolor=darkred, rulethickness=2pt, frameoffset=1.25em, topoffset=-2ex, bottomoffset=-2ex, background=color, backgroundcolor=white, ] %%% \defineenumeration[proclaim] [text=, before={\starttextbackground[leftbartext]}, after={\stoptextbackground}, style=slanted, title=yes, titleleft=, titleright={.}, alternative=hanging, width=fit, right={~}, way=bysection, prefix=yes, prefixsegments={chapter:section}] %%% \starttext \startchapter[title={Topologie des nombres réels},reference=chap:R] \startproclaim[lem:Q-Archimedien]{Proposition} L'ensemble ${\Bbb Q}$ est {\bi archimédien}\index{archimédien}, c'est-à-dire que si $\epsilon \in {\Bbb Q}$ et $\epsilon > 0$, pour tout $R \in {\Bbb Q}$ tel que $R > 0$ il existe un entier $n \in {\Bbb N}$ tel que $n\epsilon > R$. Plus précisément il existe un unique entier $m \geq 0$ tel que $m\epsilon \leq R < (m+1)\epsilon$~: cet entier $m$ est appelé partie entière de $R/\epsilon$ et souvent noté $m = \lfloor R/\epsilon \rfloor$ (et l'entier $(m+1)$ est noté $m+1 = \lceil R/\epsilon \rceil$). \stopproclaim \stopchapter \stoptext %%% % end proclaim-leftbar.tex Best regards: Otared > On 20 Nov 2020, at 02:06, Johann Birnick wrote: > > On Thu, 2020-11-19 at 11:25 +0100, mf wrote: >> Il 19/11/20 10:39, Johann Birnick ha scritto: >>> Hello, >>> >>> I want to setup some fancy theorem style for my math notes. For this I want >>> to >>> have a colored margin line next to my theorems. It should look like this: >>> >>> https://i.ibb.co/F6L59pD/idea.png >>> >>> The line should stretch over the whole theorem, not just the first line. >>> (But the latter would be a beginning, though.) >>> >>> Important to note is that the line should be *on the margin*, not in the >>> text. >>> >>> So do you have an idea on how I could do that? I would greatly appreciate >>> your >>> answer. Thank you! >>> >> Look for \startsidebar \stopsidebar and \setupsidebar. >> >> \setupsidebar [...,...] [..,..=..,..] >>1 2 >> OPT >> 1 NAME >> 2 rulethickness = DIMENSION >>rulecolor = COLOR >>alternative= NUMBER >>topoffset = DIMENSION >>bottomoffset = DIMENSION >>distance = DIMENSION >>leftmargindistance = DIMENSION >>level = NUMBER >> >> Massi > > Thank you! I have two more questions: > > 1. Where can I find a documentation for this command? Even Google finds > nothing. > > 2. Unfortunately, adding \startsidebar and \stopsidebar into the `before` and > `after` options of my enumeration messes up whitespace at the end. Here is a > screenshot: > > https://s12.directupload.net/images/201120/lfmwp5lh.png > > The theorem is a normal enumeration. Like this: > > \defineenumeration[Theorem][before=\startsidebar, after=stopsidebar] > > I would greatly appreciate your help. > > Thank you! > Johann > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] new upload
Hi, Problem also fixed on OpenBSD 6.8 amd64. New binaries installed and working like a charm. Makes my workflow much easier, so many thanks to Pablo for finding the bug and to Hans for fixing it. Best regards, Damien Thiriet ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Piecewise margin line
On Thu, 2020-11-19 at 11:25 +0100, mf wrote: > Il 19/11/20 10:39, Johann Birnick ha scritto: > > Hello, > > > > I want to setup some fancy theorem style for my math notes. For this I want > > to > > have a colored margin line next to my theorems. It should look like this: > > > > https://i.ibb.co/F6L59pD/idea.png > > > > The line should stretch over the whole theorem, not just the first line. > > (But the latter would be a beginning, though.) > > > > Important to note is that the line should be *on the margin*, not in the > > text. > > > > So do you have an idea on how I could do that? I would greatly appreciate > > your > > answer. Thank you! > > > Look for \startsidebar \stopsidebar and \setupsidebar. > > \setupsidebar [...,...] [..,..=..,..] > 1 2 > OPT > 1 NAME > 2 rulethickness = DIMENSION > rulecolor = COLOR > alternative = NUMBER > topoffset = DIMENSION > bottomoffset = DIMENSION > distance = DIMENSION > leftmargindistance = DIMENSION > level = NUMBER > > Massi Thank you! I have two more questions: 1. Where can I find a documentation for this command? Even Google finds nothing. 2. Unfortunately, adding \startsidebar and \stopsidebar into the `before` and `after` options of my enumeration messes up whitespace at the end. Here is a screenshot: https://s12.directupload.net/images/201120/lfmwp5lh.png The theorem is a normal enumeration. Like this: \defineenumeration[Theorem][before=\startsidebar, after=stopsidebar] I would greatly appreciate your help. Thank you! Johann ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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 MkIV difference in expansion
On 11/20/2020 12:18 AM, Rik Kabel wrote: You are right about not quite understand. Does this mean that I can have the same definitions in MkIV and LMTX (after some future update), or should I hunt down the \defines in both, or that I should fork (or mode test) my source environment files, one set for LMTX and one for MkIV? Kind of \protected\def\MyCommand#1{\tricky{?}\stuff{!}} \def\MyKeyword{tricky stuff} because you want to always expand MyKeyword and in controlled cases \MyCommand. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bilingual text on facing pages
Thanks for you replay, Pablo. -Mensaje original- De: ntg-context [mailto:ntg-context-boun...@ntg.nl] En nombre de Pablo Rodriguez Enviado el: jueves, 19 de noviembre de 2020 22:37 Para: ntg-context@ntg.nl Asunto: Re: [NTG-context] Bilingual text on facing pages On 11/18/20 8:03 PM, MANUEL GONZALEZ SUAREZ wrote: > Hello everyone: > > Do you know if we can make bilingual editions with ConTeXt, as they > are done with the reledpar package for LaTeX? I have consulted this > page > (https://tex.stackexchange.com/questions/113899/parallel-text-in-conte > xt), but I don't really understand what can be done. I have tried the > code with MKIV but it does not work well. Hi Manuel, parallel texts are something that need to be implemented by Hans. From time to time, there is someone that comments this issue. Sorry for not being helpful, but this depends on a unified proposal and Hans being challenged to implement it. Best wishes, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Piecewise margin line
Il 20/11/20 02:06, Johann Birnick ha scritto: On Thu, 2020-11-19 at 11:25 +0100, mf wrote: Il 19/11/20 10:39, Johann Birnick ha scritto: Hello, I want to setup some fancy theorem style for my math notes. For this I want to have a colored margin line next to my theorems. It should look like this: https://i.ibb.co/F6L59pD/idea.png The line should stretch over the whole theorem, not just the first line. (But the latter would be a beginning, though.) Important to note is that the line should be *on the margin*, not in the text. So do you have an idea on how I could do that? I would greatly appreciate your answer. Thank you! Look for \startsidebar \stopsidebar and \setupsidebar. \setupsidebar [...,...] [..,..=..,..] 1 2 OPT 1 NAME 2 rulethickness = DIMENSION rulecolor = COLOR alternative = NUMBER topoffset = DIMENSION bottomoffset = DIMENSION distance = DIMENSION leftmargindistance = DIMENSION level = NUMBER Massi Thank you! I have two more questions: 1. Where can I find a documentation for this command? Even Google finds nothing. I took it from the "Commands" manual. You can find it here: ./tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf in your ConTeXt directory. 2. Unfortunately, adding \startsidebar and \stopsidebar into the `before` and `after` options of my enumeration messes up whitespace at the end. Here is a screenshot: https://s12.directupload.net/images/201120/lfmwp5lh.png The theorem is a normal enumeration. Like this: \defineenumeration[Theorem][before=\startsidebar, after=stopsidebar] \startsidebar and \stopsidebar should be called in horizontal mode, since you might want to mark in the margin only a part of a paragraph. In that case the bar would extend from the start of the marked text until its end. The default behavior of the bar is extending from the top of the first line to the bottom of the last one. Once you ended a paragraph with \par, you're in a new line and the bar will extend to the bottom of it. A solution could be something like this: \dontleavehmode\startsidebar Theorem: ... \stopsidebar\par Otherwise you could adjust the bottomoffset parameter to the line height, so that the bar ends a line height before its default. That way you could keep > \defineenumeration[Theorem][before=\startsidebar, after=stopsidebar] or, better: \definesidebar[Theorem][bottomoffset=...] \defineenumeration[Theorem][before={\startsidebar[Theorem]},after=\stopsidebar] Massi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Piecewise margin line
Hello, I want to setup some fancy theorem style for my math notes. For this I want to have a colored margin line next to my theorems. It should look like this: https://i.ibb.co/F6L59pD/idea.png The line should stretch over the whole theorem, not just the first line. (But the latter would be a beginning, though.) Important to note is that the line should be *on the margin*, not in the text. So do you have an idea on how I could do that? I would greatly appreciate your answer. Thank you! Best regards, Johann ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] autostart included video
On 11/19/2020 8:12 AM, Aditya Mahajan wrote: I use \externalfigure[filename.mp4] to include a video in a presentation. Is it possible to autostart the video automatically when the page is loaded? Video (and audio) and acrobat ... any browser can play a video but it seems too complex for adobes pdf viewers and technology It all started out simple: there was a video annotation with associated controls. It uses the quicktime plugin and when (i guess) apple and adobe fell out of love that one was ditched. Goodbye easy media support; it worked well and was quite robust too. In the years following that mechanisms came and went and we got this redicoulous complex (split annotation) media subystem that, guess what, depended on flash to show something at all. One had to embed some flash wrapper. Then adobe fell out of love with flash. (There was actually a time when SMIL was supported which was quite ok, but all my old demos (mediashow.pdf etc) now pop up with missing players. At least it was some kind of (probably as usual some reversed engineered application xml but I 'm not sure about that). Now, although I never really needed it. I spent a lot of time on all that and end of this year flash will be removed so I'll probably remove all that stuff from lmtx too. Goodbye audio and video ... I'd better spent my time on reading books, listening music or watching movies. I really don't understand those policies. Come up with a trivial annotation for video and audio, take a few stable formats and keep supporting that. How hard is that? Plenty of libraries for that too. I guess that the next thing to fade away is this 3d subsystem, and after that widgets and javascript (some already gone). So, probably best is some hyperlink to a simple local webpage that pops up the video. Don't rely on acrobat (and adobe) for long term support of anything beyond text. It never pays back to waste time on dynamic annotations, widgets etc. It probably never pays back to invest in anything those large companies come up with anyway. Don't buy into the 'there's a large company (or organization) behind it so it is okay and will stay'. (Actually, anything beyond text and graphics rendering in pdf is kind of weird. So, let's for instance not try to analyze tagged pdf here.) I'll probably add some code for url pop ups for media ... makes more sense. Delegate to a browser. But maybe it's better to first move the fancy annotation stuff to the attic. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Piecewise margin line
Il 19/11/20 10:39, Johann Birnick ha scritto: Hello, I want to setup some fancy theorem style for my math notes. For this I want to have a colored margin line next to my theorems. It should look like this: https://i.ibb.co/F6L59pD/idea.png The line should stretch over the whole theorem, not just the first line. (But the latter would be a beginning, though.) Important to note is that the line should be *on the margin*, not in the text. So do you have an idea on how I could do that? I would greatly appreciate your answer. Thank you! Look for \startsidebar \stopsidebar and \setupsidebar. \setupsidebar [...,...] [..,..=..,..] 1 2 OPT 1 NAME 2 rulethickness = DIMENSION rulecolor = COLOR alternative= NUMBER topoffset = DIMENSION bottomoffset = DIMENSION distance = DIMENSION leftmargindistance = DIMENSION level = NUMBER Massi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] autostart included video
On 11/19/2020 8:12 AM, Aditya Mahajan wrote: I use \externalfigure[filename.mp4] to include a video in a presentation. Is it possible to autostart the video automatically when the page is loaded? This works here: \setupinteraction[state=start] \starttext \gotobox{\externalfigure[cow.pdf]}[url(woodwork.mp4)] \stoptext instead of cow take a screendump of the first frame of the movie. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] new upload
Hi, A new upload. Hopefully with the linux install fixed. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Section head placement wrong when the after key is used
Hi! In the following example the 2nd section head stays on page one when the “after” key is used. If the blackrule is commented out the section head moves to page two as intended. What's the reason the section head stays on the previous page when the “after” is used and how to fix this? \setuphead [section] [after=\blackrule] %% works as desired when commenting this one out \starttext \startsection [title=Foo] \samplefile{knuth} \stopsection \startsection [title=Bar] \framed[height=15cm]{} \samplefile{knuth} \stopsection \stoptext Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] new upload
Il 19/11/20 12:00, mf ha scritto: Tested. It works. - download the binaries from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip - unzip it in your context directory - make install.sh and bin/mtxrun executable - run install.sh and you can see the upgrade progression again. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] new upload
Tested. It works. - download the binaries from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip - make install.sh and bin/mtxrun executable - run install.sh and you can see the upgrade progression again. Thanks Hans, Massi Il 19/11/20 11:35, Hans Hagen ha scritto: Hi, A new upload. Hopefully with the linux install fixed. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] new upload
Hi Hans, Thanks for the new upload and the fix for the install script: it works again also for MacOS. Best regards: OK > On 19 Nov 2020, at 11:35, Hans Hagen wrote: > > Hi, > > A new upload. Hopefully with the linux install fixed. > > 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 > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] new upload
On 11/19/20 11:35 AM, Hans Hagen wrote: > Hi, > > A new upload. Hopefully with the linux install fixed. Many thanks for the new upload, Hans. It fixes the issue in both Windows and Linux (I guess the same should apply to macOS). BTW, the message about resolver databases not found or outdated still pops up. Althought this is a minor cosmetic issue. 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 mtx-install | server : lmtx.pragma-ade.com mtx-install | instance : install-lmtx mtx-install | platform : linux-64 mtx-install | system : unix mtx-install | updating tex/texmf, 1541 files mtx-install | updating tex/texmf-context, 3922 files Just in case it helps, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Section head placement wrong when the after key is used
On 11/19/20 11:55 AM, Marco Patzer wrote: > Hi! > [...] > What's the reason the section head stays on the previous page when > the “after” is used and how to fix this? Hi Marco, by default (according to strc-def.mkiv), \section has "after=\blank". In some cases, I had used "after={”\blank[samepage, medium]}" to prevent similar issues. In this case, a nasty trick could be "after={”\blackrule\blank[samepage, Opt]}". Just in case it helps, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Section head placement wrong when the after key is used
On Thu, 19 Nov 2020 16:53:52 +0100 Pablo Rodriguez wrote: > On 11/19/20 11:55 AM, Marco Patzer wrote: > > Hi! > > [...] > > What's the reason the section head stays on the previous page when > > the “after” is used and how to fix this? > > Hi Marco, > > by default (according to strc-def.mkiv), \section has "after=\blank". > > In some cases, I had used "after={”\blank[samepage, medium]}" to > prevent similar issues. In my actual document I already use \blank[halfline]. Changing this to \blank[halfline, samepage] fixes it. Thank you very much. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___