Re: [NTG-context] TLS Certificate Expired for the Wiki
> On 12 Oct 2021, at 08:41, Ramkumar KB via ntg-context > wrote: > > Hello, > > The TLS certificate for the Context wiki expired yesterday - valid only upto > 12-October-2021. I’ll fix that in a bit. > > Just an alert as Chrome now pops up the "Unsafe" alerts. > > Thank you, > > best regards, > Ramkumar > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] TLS Certificate Expired for the Wiki
Hello, The TLS certificate for the Context wiki expired yesterday - valid only upto 12-October-2021. Just an alert as Chrome now pops up the "Unsafe" alerts. Thank you, best regards, Ramkumar ___ 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] TeX's \downbracefill and \upbracefill
Hello to all, in Knuth's "The TeXbook" page 225/226 (excerpt is appended here) braces are to be seen which I'd need to typeset a genealogical table. Now, the commands \downbracefill and \upbracefill are no context commands. Please, are there correspondings to them? Regards, Rudolf ___ 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] Clickable url problem with \useurl and \url
Hello List, I notice an inconsistency in the clickable area when using \useurl. With the following example, both the \from and the \url are clickable in some lines (as noted iin the value of \from) but in others, the \from is clickable but not the \url. It does seem sensitive to the urlL, but I cannot see a pattern. Example: \setupinteraction [state=start] \useurl[earlBA] [https://www.bartleby.com/sv/welcome.html] [] [Not clickable] \useurl[earlPD] [https://www.perseus.tufts.edu/hopper/] [] [Not clickable] \useurl[earlWC] [https://www.worldcat.org/] [] [Not clickable] \useurl[earlFC] [https://www.futilitycloset.com/] [] [Not clickable] \useurl[earlQU] [http://www.quote-unquote.org.uk/] [] [Not clickable] \useurl[earlAL] [https://www.aldaily.com/] [] [Not clickable] \useurl[earlTL] [http://stephanus.tlg.uci.edu/] [] [Not clickable] \useurl[earlQI] [https://quoteinvestigator.com/] [] [Clickable] \useurl[earlLH] [https://languagehat.com/] [] [Clickable] \useurl[earlSF] [https://stancarey.wordpress.com/] [] [Clickable] \starttext \from[earlLH] (\url[earlLH]) \par \from[earlQI] (\url[earlQI]) \par \from[earlFC] (\url[earlFC]) \par \from[earlWC] (\url[earlWC]) \par \from[earlQU] (\url[earlQU]) \par \from[earlAL] (\url[earlAL]) \par \from[earlSF] (\url[earlSF]) \par \from[earlBA] (\url[earlBA]) \par \from[earlPD] (\url[earlPD]) \par \from[earlTL] (\url[earlTL]) \par \stoptext Should I use something other than \url[earlXX] here to get the clickable literal url from useurl? -- Rik Kabel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions
An alternative solution is to isolate the setting of the autopunctuation btx option: ``` % Because some common punctuation characters are escaped in publ-ini.mkiv, % we have to set this option separately \pushcatcodetable \setcatcodetable\ctxcatcodes \setupbtx[sbl][autopunctuation={!,.:;?}]% undelimited list of trailing punctuation to move before footnote citations \popcatcodetable ``` Joey On Sun, Oct 10, 2021 at 9:40 AM Joey McCollum wrote: > Thanks for these replies! Adding \unexpanded or \protected before \def > didn't fix the problem, and surrounding the definition with \unprotect ... > \protect didn't work either. But surrounding it with \pushcatcodetable > \setcatcodetable\ctxcatcodes ... \popcatcodetable worked. > > I've never seen these commands before, but I gather from the existing > documentation that the current catcode governs which characters are treated > as special when a buffer is being processed. So here, it looks like I'm > temporarily switching from some other catcode set (it looks like in > publ-ini.mkiv, \catcode\commentasciicode\othercatcode gets invoked > in \publ_set_publication, so perhaps that's what's happening?) to the > default ConTeXt catcodes and then back. > > Thanks again! > > Joey > > On Sun, Oct 10, 2021 at 6:40 AM Wolfgang Schuster < > wolfgang.schuster.li...@gmail.com> wrote: > >> Joey McCollum via ntg-context schrieb am 10.10.2021 um 05:42: >> >> The test using \removepunctuation that you provided does what it should >> be doing (it produces 6 instances of "test-test" with the intervening >> punctuation mark in each case removed), but it doesn't do what I'm trying >> to do in the MWE above. I'm trying to take certain punctuation marks that >> follow the \autopuncttest macro and place them before it instead. >> Looking at the typo-chr .lua and .mkiv files, I see that there are >> \pushpunctuation >> and \poppunctuation methods in addition to the \removepunctuation >> method. These might be useful for this purpose, but in any case, I still >> have to check if the trailing character is one of the characters in a >> specified set/string, and this is where the error is arising. >> >> >> Add \protected (or \unexpanded) to your command definition. >> >> \startbtxrenderingdefinitions[myspec] >> \protected\def\autopuncttest#1#2% >> {\removeunwantedspaces% >>\doifinstring{#2}{,.!?;:}{#2}% >>\footnote{#1}% >>\doifnotinstring{#2}{,.!?;:}{#2}} >> \stopbtxrenderingdefinitions >> >> 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] body text and footnote space
Dear list, I note previous discussions on the matter of body text invading footnote space (as late as last year). As I am currently typesetting a 400 plus page academic text with hundreds of footnotes, and do not have the option of making them endnotes, I am facing this issue page after page. The only solution I have for now is to make per page layout adjustments to reduce a line or two, so there is a way to handle it, but given ConTeXt's 'perfection' generally, I would be very interested to know if there is any other solution forthcoming. I've tried various options in \setupfootnotes and \setuptolerance', but to no avail. Julian ___ 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] Converting LaTeX math to ConTeXt
On Sun, 10 Oct 2021, Jason Ross via ntg-context wrote: > On 10/10/21 3:23 AM, Hans Hagen wrote: > > These are just a couple examples, but in general it's not enough to do > naive string substitution in LaTeX and get valid ConTeXt back, and my > patchwork solutions are starting to smell. You can use pandoc to parse latex and convert it to mathml: $ cat math.tex \documentclass{amsart} \begin{document} \begin{align} a &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, b &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, \\ c &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, d &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, \end{align} \end{document} $ pandoc -f latex -t html --mathml math.tex http://www.w3.org/1998/Math/MathML";>a=(123123123),b=(123123123),c=(123123123),d=(123123123),\begin{aligned} a &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, b &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, \\ c &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix}, d &= \begin{pmatrix} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{pmatrix},\end{aligned} Processing this in context (see attached files), gives a partially working solution. It doesn't look okay, but should be easily fixable. Do note that this is almost same as compiling latex output to PDF because editing presentation mathml by hand is no fun. Aditya test.tex Description: TeX document test.pdf Description: Adobe PDF document ___ 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] Generating HTML
I would want to generate HTML, but in the example below, "html-test.tex", the index does not show in the file "html-test-export/html-test-div.html", and the source file \index{…}, gets in the HTML a black triangle. The index and links work fine in "html-test.pdf", though. — html-test.tex — \definefontfamily [mainface][math][stix] \setupbodyfont[mainface,10pt] \setupinteraction[state=start, click=yes, focus=standard, color=darkblue] \setupbackend[export=yes] % Exporting HTML/XML \defineregister [index] \setupregister [index] [indicator=no] \startchapter[title={Introduction}] Foobar\index{foobar} out of working order. \startbodymatter Foo\index{foo} or bar\index{bar}. \startbackmatter \completeindex \stopbackmatter \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] Acrobat doesn’t read imported metadata
On 10/10/21 6:51 PM, Hans Hagen via ntg-context wrote: > On 10/10/2021 5:46 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> Being the sample file https://pdf.ousia.tk/metadata.pdf, Acrobat cannot >> display the imported title or either the creation or modification dates. >> >> What am I missing to make Acrobat display the imported metadata? > timing, so best use the official methods: > [...] > acrobat looks at the metadata blob Many thanks for your reply, Hans. This works in MkIV, but not in LMTX: context.setupinteraction { title = main_doc.Info.Title } BTW, is there a way to add CreationDate and ModDate? Many thanks for your help again, 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] Short forms and abbreviations in bibliography
If it helps with troubleshooting, I've also tried to do this with \fastsetup instead of \texdefinition: ``` \expanded{\abbreviation[\currentbtxtag]{\fastsetup{btx:sbl:cite:shorthand}}{ \fastsetup{btx:sbl:cite:listsubcite}}} ``` This also doesn't work, but I at least get a "Missing control sequence inserted" error. The following MWE should reproduce the error (it modifies the existing Chicago rendering, but since I couldn't figure out how to add a shorthand field to the @book category in the chicago spec from within the MWE, I just used the note field as a placeholder for it): ``` % Setup a minimal bibliography \startbuffer [bib] @book{Author1:2016, author={Author1}, title={Work1}, note={W1}, publisher={Publisher1}, year=2016, } @book{Author2:2015, author={Author2}, title={Work2}, publisher={Publisher2}, year=2015, } \stopbuffer \usebtxdataset [bib.buffer] % Setup a new cite alternative to test the desired functionality \startbtxrenderingdefinitions[chicago] \definesynonyms[abbreviation][abbreviations][\infull][\inshort] % we need the \inshort command to access abbreviations by their entry tag \startsetups btx:chicago:cite:shorthand \fastsetup{btx:cite:concat} \fastsetup{btx:cite:lefttext} \begingroup \def\currentbtxcitealternative{short} \def\currentbtxcategory{\btxfield{category}} \btxstartstyleandcolor[sbl:\s!list:title:\currentbtxcategory] \btxusecommand[sbl:\s!list:title:\currentbtxcategory]{ \btxflush{note}% set the shorthand according to the current category } \btxstopstyleandcolor \endgroup \fastsetup{btx:cite:righttext} \stopsetups \startsetups btx:chicago:cite:test \fastsetup{btx:cite:concat} \fastsetup{btx:cite:lefttext} \btxdoifelse{note} { %\expanded{\definesynonym[yes][abbreviation][\currentbtxtag]{\fastsetup{btx:chicago:cite:shorthand}}{\fastsetup{btx:cite:entry}}}% this throws a Missing control sequence inserted error \expanded{\definesynonym[yes][abbreviation][\currentbtxtag]{\cite[alternative=shorthand][\currentbtxtag]}{\cite[alternative=entry][\currentbtxtag]}}% this works, but recursively cites the same tag \inshort{\currentbtxtag} } { \fastsetup{btx:cite:entry} } \fastsetup{btx:cite:righttext} \stopsetups \stopbtxrenderingdefinitions % Use this cite alternative by default \usebtxdefinitions[chicago] \setupbtx[chicago:cite][alternative=test] \starttext \cite[Author1:2016]\blank \cite[Author2:2015]\blank \page \startsubject[title=Abbreviations] \placelistofabbreviations \stopsubject \page \startsubject[title=Bibliography] \placelistofpublications \stopsubject \stoptext ``` Joey On Fri, Oct 8, 2021 at 7:38 AM Hans Hagen wrote: > On 10/7/2021 6:38 AM, Joey McCollum via ntg-context wrote: > > A concise solution that I found would work was to define a "shorthand" > > citation alternative and just print the shorthand with that: > > > > ``` > > % Shorthand citation setup > > \startsetups btx:sbl:cite:shorthand > >\begingroup > >\def\currentbtxcategory{\btxfield{category}} > >\texdefinition{btx:sbl:inline:shorthand} > >\endgroup > >\removeunwantedspaces > >\removepunctuation > > \stopsetups > > > > ... > > > > > \expanded{\abbreviation[\currentbtxtag]{\textcite[alternative=shorthand,lefttext=,righttext=][\currentbtxtag]}{\textcite[alternative=listsubcite,lefttext=,righttext=][\currentbtxtag]}} > > ``` > > > > Again, this works, although I'm still not sure why > > invoking \texdefinition{btx:sbl:inline:shorthand} directly doesn't. > I leave it to Alan to comment on this as he's the bib guru > > 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] combination with lua
Hi, I am trying to use a combination figure with luacode (both with latest MKIV and LMTX). However, the figures do not line up in the grid of the combination. I get the correct result with examples 1 and 2 below, but example 3 using lua functions for combination and externalfigure is what I wanted to use in the first place. MWE: \starttext \startluacode -- Combination 1 context.startplacefigure({title = "Figure"}) context.startcombination({nx = "2", ny = "2"}, "\\externalfigure[cow][width=50mm]","Caption 1", "\\externalfigure[cow][width=50mm]","Caption 2", "\\externalfigure[cow][width=50mm]","Caption 3", "\\externalfigure[cow][width=50mm]","Caption 4" ) context.stopcombination() context.stopplacefigure() -- Combination 2 context.startplacefigure({title = "Figure"}) context.startcombination({nx = "2", ny = "2"}, "Picture 1","Caption 1", "Picture 2","Caption 2", "Picture 3","Caption 3", "Picture 4","Caption 4" ) context.stopcombination() context.stopplacefigure() -- Combination 3 context.startplacefigure({title = "Figure"}) context.startcombination({nx = "2", ny = "2"}, context.externalfigure({"cow"},{width = "50mm"}),"Caption 1", context.externalfigure({"cow"},{width = "50mm"}),"Caption 2", context.externalfigure({"cow"},{width = "50mm"}),"Caption 3", context.externalfigure({"cow"},{width = "50mm"}),"Caption 4" ) context.stopcombination() context.stopplacefigure() \stopluacode \stoptext Any hints on what I am doing wrong in example 3? Thanks, Adam ___ 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] undefined command in current latest
On 10/11/2021 11:33 AM, mf via ntg-context wrote: It looks like the argument of \getmarking is not expanded, since you get "\it knuth" instead of an italicized "knuth" in the headers of this MWE: \definemarking[myheader] \setupheadertexts[{\getmarking[myheader][last]}] \starttext \dorecurse{10}{\samplefile{knuth}\marking[myheader]{\it knuth}\par} \stoptext we switched to the new marking code; i'll sent you a file to test fyi: in mkii/mkiv we had to work around limitations of mark synchronization and in mkiv that went even further; in lmtx we can use some new engine features so the whole lot could be simplified, which should also perfoem a little better; it means that mark content follows a bit different route 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] composing commands
Is it possible to add \withinvertedbrevebelow to the list? On Mon, Feb 8, 2021 at 6:53 AM Hans Hagen wrote: > On 2/6/2021 11:41 PM, T. Kurt Bond wrote: > > > I think that it would be useful. I use Unicode characters extensively > > in my ConTeXt input, but only because I edit it in Emacs and can set up > > keymaps that map to the Unicode characters in a way that I can actually > > remember. I think that this would add an easily remembered way for > > people to add combining characters to their documents. Sometimes a > > slightly more verbose way to do something is helpful when it is more > > easily remembered. (Honestly, I can't remember the hex codes for any > > Unicode characters after you get out of the range that maps to plain > ASCII > I anyway uprgade this mechanism. First of all, the short commands will > be equivalents to more verbose ones. > > \withgrave {a} == \\`{a} > \withacute {a} == \\'{a} > \withcircumflex {a} == \\^{a} > \withtilde {a} == \\~{a} > \withmacron {a} == \\={a} > \withbreve {e} == \\u{e} > \withdot {c} == \\.{c} > \withdieresis{e} == \\"{e} > \withring{u} == \\r{u} > \withhungarumlaut{u} == \\H{u} > \withcaron {e} == \\v{e} > \withcedilla {e} == \\c{e} > \withogonek {e} == \\k{e} > > Did I miss one? > > Then we can deprecate the short ones (keep them a low profile, with > permission to overload). After all, I don't expect someone who needs > lots of them to use these commands, so more verbose is better then. Aas > I already mentioned, in bib files they are treated differently already. > > The low level helper is \chr, that can be used as > > \chr {à} \chr {á} \chr {ä} > \chr {`a} \chr {'a} \chr {"a} > \chr {a acute} \chr {a grave} \chr {a umlaut} > \chr {aacute} \chr {agrave} \chr {aumlaut} > > (I can add more of the verbose, like {cyrillic a} if really needed. It > means that we can declare \eacute etc also depricated (these verbose > names date from \MKII, encoding neutral labels, utf handling, remapping > to backend encodings etc but we don't need that and I'm not sure if > anyone ever used those long names. Again, depricated, not removed (yet).) > > Then there is the question what to do with \AE and \ij and such ... > these were used to enforce specific ligatures into a file assuming that > f ont has them but nowadays that's the job of a font handler (script > language control). We can keep them but assume them legacy. They > normally don't belong in input. (Being Dutch I actually never used \IJ > or \ij). > > Now, we can assume that when your languages needs characters with > accents that you use a font that has them. In MKIV and LMTX one can > enable a checker > > \enabletrackers[fonts.missing] > \enabletrackers[fonts.missing=replace] > \enabletrackers[fonts.missing=remove] > > but in LMTX it's upgraded with more clever replacements (Jano will > document that + more about checking missing stuff in the wiki). > > So, in LMTX we have more options (maybe I'll backport that to MKIV) > > \checkmissingcharacters \enabletrackers[fonts.missing] > \removemissingcharacters \enabletrackers[fonts.missing=remove] > \replacemissingcharacters \enabletrackers[fonts.missing=replace] > \handlemissingcharacters > \enabletrackers[fonts.missing={decompose,replace}] > > the last one will inject decomposed characters into the list when font > lacks the real thing. The replacements visualize similar to MKIV but > adapt to the style. > > Hans > > (no upload yet) > > - >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 > > ___ > -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ 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
Re: [NTG-context] SyncTeX does not work with Zathura
> I can't say ... what is missing? Can you figure out what makes Zathura unhappy? I run gdb with breakpoint set on zathura/synctex.c:86 and while `synctex_get_input_line_column` returns true, `input_file` is `NULL` so the "else" branch is executed. That is all I managed to debug, I don't know how I could step into the SyncTeX function. > here with > > \starttext > Hello, world! > \stoptext > > i get > > SyncTeX Version:1 > Input:1:oeps.tex > Output:pdf > Magnification:1000 > Unit:1 > X Offset:0 > Y Offset:0 > Content: > !103 > {1 > [0,0:0,0:0,0,0 > v0,0:0,55380990:39158276,55380990,0 > h1,6:4661756,9176901:4275840,655360,327680 > ] > !104 > }1 > !8 > Postamble: > Count:3 > !22 > Post scriptum: > > (also with context --synctex oeps) For me it generated a slightly smaller file: > SyncTeX Version:1 > Input:1:/home/nawordar/projects/zathura/build/oeps.tex > Output:pdf > Magnification:1000 > Unit:1 > X Offset:0 > Y Offset:0 > Content: > !141 > {1 > [0,0:0,0:0,0,0 > v0,0:0,55380990:39158276,55380990,0 > ] > !61 > }1 > !7 > Postamble: > Count:2 > !22 > Post scriptum: Similarly to previous examples, `mtxrun --script synctex --list oeps.synctex` only showed me that much: ``` mtx-synctex | begin page: 1 mtx-synctex | end page: 1 ``` When I executed it on your SyncTeX file, it showed one line more: ``` mtx-synctex | begin page: 1 mtx-synctex | [ 71 135 136 149] : 6 : oeps.tex mtx-synctex | end page: 1 ``` Still, with both files Zathura gave me the same error :/. It is really weird though, that ConTeXt generated a different SyncTeX file for me for the same exact file and command. The versions of ConTeXt and SyncTeX: ``` $ synctex help This is SyncTeX command line utility, version 1.5 usage: synctex [options] [args] Synchronize TeXnology command-line client, version 1.21 $ context --version mtx-context | ConTeXt Process Management 1.04 ``` > btw, the script approach permits two way sync, so in texshop one can go from pdf to source and source to pdf Could you send me the exact commands for that? I can't get any meaningful output from `mtxrun --script synctex` either. It always prints me just an empty line. All the options described in usage look like they are for going to source code. [1]: https://github.com/pwmt/zathura/blob/9bc3e9bfafc11a526b6f94d62b8da5ac209f6da0/zathura/synctex.c#L86 ___ 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] Regular online meet-up
Reminder: You’re invited to join tomorrow, Tuesday, October 12th, 15:00 CEST (11:00 EDT, 21:00 SGT) at https://lecture.senfcall.de/hen-rbr-rku-oke ConTeXt users of all levels are welcome! There’s no prepared subject/talk/presentation (from my side – feel free to share something). But I guess we will discuss PDF viewers some more... This is meant to be regular, i.e. every second Tuesday of a month. Next time is November 11th. Let’s see how this works out; maybe we need a different day/time. If we become many, it might make sense to offer something regional or language specific... [Howto] * No special software installation required; most modern browsers should work (WebRTC required). * Open the above URL, accept the privacy statement, * enter your name (or anything you want to be known as), * click "join" (or "start" if you’re the first), * click "with microphone", allow your browser to access it, check the audio. (Some strings might be different, I see the German interface, you should get the main language of your browser.) * Your microphone is muted if you join. Activate microphone and/or camera with the buttons at the bottom. * Minimize the default presentation with the "screen" button, bottom right. * If you’d like to share your screen or upload a file, you can make yourself the presenter: Click on your user name, change the setting, then you’ll see the "screen sharing" button beside the camera button; also there’s now "manage presentations" behind the "plus" button. Beware there is only one presenter, so don’t kill someone else’s presentation. [Technical hints] * Sound is usually better if you use a headset (less noise for everyone). * Connection problems are mostly due to low bandwidth or high latency on your side, e.g. with mobile connections. * If audio/video doesn’t work for you, you can still use the text chat. * Screen sharing needs a lot of bandwidth. * You can also join with a regular telephone (audio only, of course), call +49-6151-86275-22 (German landline); then you must enter a PIN that changes every time – if you need it, ask me for it via email. Mute/unmute your microphone with "0". [Netiquette] * Mute your microphone while you’re not talking. * It’s nice to show your face at least when you join. * If there are connection problems, stop camera sharing. * The room is set to “everyone’s a moderator“, I trust you... See you, Hraban > Am 26.09.2021 um 12:16 schrieb Henning Hraban Ramm via ntg-context > : > > Am 2021-09-26 11:03, schrieb Alain Delmotte via ntg-context: >> Hi, >> What is the BigBlueButton “room”? >> I am interested. > > Welcome! > > We’re using the facilities of the German charity “Computerwerk Darmstadt > e.V.”; the’re very privacy-aware, their free “senfcall.de“ service is based > on BigBlueButton (https://bigbluebutton.org). > Since I got an account, we can use the same “room” all the time: > https://lecture.senfcall.de/hen-rbr-rku-oke > I would have published the address later. > >> I hope that the “just finished meeting” was enjoyable, calm, not >> necessarily reposing😂 and of course fruitful.😁 > > It was, and very inspiring. > Of course, it was also too much information to process (I still can’t wrap my > mind around MetaPost, even less LPEG). > > Hraban > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] undefined command in current latest
It looks like the argument of \getmarking is not expanded, since you get "\it knuth" instead of an italicized "knuth" in the headers of this MWE: \definemarking[myheader] \setupheadertexts[{\getmarking[myheader][last]}] \starttext \dorecurse{10}{\samplefile{knuth}\marking[myheader]{\it knuth}\par} \stoptext context version: 2021.10.10 23:43 Massi Il 11/10/21 09:06, Alexandre Christe via ntg-context ha scritto: Indeed I can report similar issues with \getmarking after updating to the latest version of Context. Did something change regarding its definition / use recently? context -version mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2021.10.08 20:18 mtx-context | main context file: /Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2021.10.08 20:18 Alex ___ 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 metafun pictures fainter (shading, uncolored clash)
On 10/11/2021 6:30 AM, Gavin via ntg-context wrote: Hi List, I made good progress producing fainter pictures in metafun. Here is a uniformly accelerated cow in the style of my book. I abandoned transparency, since I actually don’t want to see through anything. I am using uncolored to get the fade. It works great with a picture that is made with fill and draw, but it doesn’t work with shading. The example below has a flat disk and a round ball. The disk looks fine, but the shaded ball is not surviving the application of inverted / uncolored. \startMPinclusions picture disk, ball; disk := image( fill fullcircle scaled 1cm withcolor .4white; draw fullcircle scaled 1cm withpen pencircle scaled 0.8pt ;); ball := image( fill fullcircle scaled 1cm withshademethod "circular" withshadecenter (.25,.25) withshadecolors (.8white, black); draw fullcircle scaled 1cm withpen pencircle scaled 0.8pt ;); \stopMPinclusions \startMPpage draw inverted (disk uncolored .1white) ; draw inverted (disk uncolored .2white) shifted (0.25cm,0) ; draw inverted (disk uncolored .5white) shifted (1cm,0) ; draw disk shifted (2.25cm,0) ; draw inverted (ball uncolored .1white) shifted (0, -2cm) ; draw inverted (ball uncolored .2white) shifted (0.25cm, -2cm) ; draw inverted (ball uncolored .5white) shifted (1cm, -2cm) ; draw ball shifted (2.25cm, -2cm) ; \stopMPpage Same result in LMTX and MkIV. (ConTeXt ver: 2021.09.17 10:01 LMTX fmt: 2021.9.21 int: english/english) I’m pretty happy with this uncolored trick, and will be even happier if I can get it to work with the shadings. Any suggestions? \startMPpage fill fullcircle scaled 10cm shifted (3cm,0) withcolor white ; fill fullcircle scaled 10cm shifted (3cm,0) withcolor black withtransparency (1,.25) ; fill fullcircle scaled 5cm shifted (3cm,0) withcolor .25[red,white] ; \stopMPpage - 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] ConTeXt's equivalent of raisebox
On 10/11/2021 12:16 AM, noib3 via ntg-context wrote: How can I make vertical microadjustments to individual characters in ConTeXt? In LaTeX I would do it with ``` \documentclass{article} \begin{document} \raisebox{-1pt}{f}oo \end{document} ``` however the following doesn't work ``` \starttext \raisebox{-1pt}{f}oo \stoptext depends on if you want to keep kerning and ligature building etc \starttext xx\glyph yoffset 1pt `f\relax oo xx\glyph yoffset 1pt `f\relax \glyph yoffset -1pt `o\relax \glyph yoffset 2pt `o\relax xx\glyph yoffset 1pt `f\relax fi \dontleavehmode\offset[y=-1pt]{f}oo \stoptext - 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] undefined command in current latest
Update: after updating Context again today the issue is gone. ___ 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] undefined command in current latest
Indeed I can report similar issues with \getmarking after updating to the latest version of Context. Did something change regarding its definition / use recently? context -version mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2021.10.08 20:18 mtx-context | main context file: /Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2021.10.08 20:18 Alex___ 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 ___