[NTG-context] mathmatrix vs substack
Dear devs, Thank you very much for fixing this one https://mailman.ntg.nl/pipermail/ntg-context/2017/089790.html Unfortunately it seems like you broke substack and mathmatrix on the way. MWE below fails with version 2017.09.08 17:24 Cheers, Henri --- \starttext \placeformula \startformula \sum_{\startsubstack \NC k \NR \NC \omega_n \NR \stopsubstack} \stopformula \placeformula \startformula \startmathmatrix[left=\left|,right=\right|] \NC 0 \NC 1 \NR \NC 1 \NC 0 \NR \stopmathmatrix = -1 . \stopformula \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] automatically splitting big images (calculation problem)
Am 2017-09-10 um 11:09 schrieb Herbert Voss: > Am 10.09.2017 um 09:13 schrieb Henning Hraban Ramm: >> My current code actually looks like >> % split in #1 page size parts >> \def\clipfigure{\dodoubleempty\doClipFigure} >> \def\doClipFigure[#1][#2]{ >> \ifsecondargument >> \dorecurse{#1}{% >> \tooltip{\clip[ >> height=\textheight, >> voffset=\dimexpr((\recurselevel - 1)\textheight),]{% > > voffset=\numexpr(\recurselevel -1)\textheight]{% Aha, numexpr. Danke! Am 2017-09-10 um 10:09 schrieb Herbert Voss : > Am 10.09.2017 um 09:13 schrieb Henning Hraban Ramm: > >> \def\ausschnitt{\dodoubleempty\doAusschnitt} >> \def\doAusschnitt#1#2{\clip[height=\textheight,voffset=#1]{\externalfigure[#2][width=\textwidth]}\par} >> This also doesn’t work; there I’m trying to set the y coordinate for the >> start like >> \ausschnitt[15cm][verylongimage] > > >> BTW example picture: >> http://www.balderdashcomic.com/comic/ibonus >> i.e. http://www.balderdashcomic.com/comics/1416175460-bonus1.png > > \def\ausschnitt{\dodoubleempty\doAusschnitt} > \def\doAusschnitt[#1][#2]{% > \clip[height=\textheight, > voffset=#1]{\externalfigure[#2][height=\textheight]}\par} So I just forgot the brackets. Me stupid. Thanks! It still doesn’t do what I want, must try further. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ 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] \definemathfence commands
On 9/10/2017 12:09 PM, Otared Kavian wrote: Hi everyone, With the command \definemathfence it is possible to define for instance the following command \definemathfence[duality][angle][command=yes,factor=auto] so that $\duality{T,\phi}$ results in $\langle T,\phi \rangle$ and the \langle and \rangle are appropriately scaled when necessary. How can one create a command called \bracparenth in order to get a left bracket on the left and a right parenthesis on the right, that is $\bracparenth{a,b} = [a,b)$ and so that when necessary it scales automatically. Below is the example for \duality. Thanks in advance: OK %%% begin mathfence-example.tex \definemathfence[duality][angle][command=yes,factor=auto] \definemathfence[parenth][parenthesis][command=yes,factor=auto] \starttext The action of $T$ on a smooth function $\phi$ is denoted by \startformula \duality{T,\phi} \stopformula while the scalar product of two functions $f$ and $g$ is denoted $\parenth{f|g}$. \stoptext %%% end mathfence-example.tex you can set left and right as : left="27E6, right="27E7 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] Obtaining an old standalone
Hi Aditya, Aditya Mahajanwrites: > > Note that this should be luatools --generate (two hyphens, which got > changed to an endash in the previous email). > Unfortunately 'luatools --generate' produces the same error. I have worked round the problem that sparked my original post, so, with thanks to all who offered help, I think we should leave this mystery for posterity. Best wishes, Roger ___ 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] \definemathfence commands
Hi everyone, With the command \definemathfence it is possible to define for instance the following command \definemathfence[duality][angle][command=yes,factor=auto] so that $\duality{T,\phi}$ results in $\langle T,\phi \rangle$ and the \langle and \rangle are appropriately scaled when necessary. How can one create a command called \bracparenth in order to get a left bracket on the left and a right parenthesis on the right, that is $\bracparenth{a,b} = [a,b)$ and so that when necessary it scales automatically. Below is the example for \duality. Thanks in advance: OK %%% begin mathfence-example.tex \definemathfence[duality][angle][command=yes,factor=auto] \definemathfence[parenth][parenthesis][command=yes,factor=auto] \starttext The action of $T$ on a smooth function $\phi$ is denoted by \startformula \duality{T,\phi} \stopformula while the scalar product of two functions $f$ and $g$ is denoted $\parenth{f|g}$. \stoptext %%% end mathfence-example.tex ___ 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] automatically splitting big images (calculation problem)
Am 10.09.2017 um 09:13 schrieb Henning Hraban Ramm: My current code actually looks like % split in #1 page size parts \def\clipfigure{\dodoubleempty\doClipFigure} \def\doClipFigure[#1][#2]{ \ifsecondargument \dorecurse{#1}{% \tooltip{\clip[ height=\textheight, voffset=\dimexpr((\recurselevel - 1)\textheight),]{% voffset=\numexpr(\recurselevel -1)\textheight]{% Herbert \externalfigure[#2]}}{#2 (\recurselevel/#1)}\par} \else \normalfigure[#1] \fi } ___ 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] automatically splitting big images (calculation problem)
Am 10.09.2017 um 09:13 schrieb Henning Hraban Ramm: \def\ausschnitt{\dodoubleempty\doAusschnitt} \def\doAusschnitt#1#2{\clip[height=\textheight,voffset=#1]{\externalfigure[#2][width=\textwidth]}\par} This also doesn’t work; there I’m trying to set the y coordinate for the start like \ausschnitt[15cm][verylongimage] BTW example picture: http://www.balderdashcomic.com/comic/ibonus i.e. http://www.balderdashcomic.com/comics/1416175460-bonus1.png \def\ausschnitt{\dodoubleempty\doAusschnitt} \def\doAusschnitt[#1][#2]{% \clip[height=\textheight, voffset=#1]{\externalfigure[#2][height=\textheight]}\par} \starttext \ausschnitt[15cm][/tmp/test.png] \stoptext worked Herbert ___ 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] automatically splitting big images (calculation problem)
Am 2017-09-09 um 22:06 schrieb Aditya Mahajan: > On Sat, 9 Sep 2017, Henning Hraban Ramm wrote: > >> Ahoi, >> I got some long images that I’d like to split over several pages. >> >> \def\clipfigure{\dodoubleempty\doClipFigure} >> \def\doClipFigure[#1][#2]{ >> \dorecurse{#1}{% >> \clip[ >>height=\textheight, >>voffset=\dimexpr((\recurselevel -1) * \textheight) >> ]{\externalfigure[#2][width=\textwidth]}\par >> } >> } >> >> \clipfigure[3][verylongimage] >> >> But "\dimexpr((\recurselevel -1) * \textheight)" for the vertical offset is >> wrong. >> How can I do this calculation? > > You are missing a comma at the end of the voffset line Thank you, but that’s not the core problem. I get "Illegal unit of measure (pt inserted)". My current code actually looks like % split in #1 page size parts \def\clipfigure{\dodoubleempty\doClipFigure} \def\doClipFigure[#1][#2]{ \ifsecondargument \dorecurse{#1}{% \tooltip{\clip[ height=\textheight, voffset=\dimexpr((\recurselevel - 1)\textheight),]{% \externalfigure[#2]}}{#2 (\recurselevel/#1)}\par} \else \normalfigure[#1] \fi } Another approach: \def\ausschnitt{\dodoubleempty\doAusschnitt} \def\doAusschnitt#1#2{\clip[height=\textheight,voffset=#1]{\externalfigure[#2][width=\textwidth]}\par} This also doesn’t work; there I’m trying to set the y coordinate for the start like \ausschnitt[15cm][verylongimage] Here I get "Missing number, treated as zero". I guess I need to employ the right combination of \the, expansion etc., but I don’t know how. This stuff is still over my head. > but why not use > \clip[nx= .., ny=.., x=, y=...] instead. > http://wiki.contextgarden.net/Using_Graphics#Image_Clipping Because I don’t want to split the picture in even slices, but cut in places where it makes sense. The page height is a simplification, until I get the calculations working. BTW example picture: http://www.balderdashcomic.com/comic/ibonus i.e. http://www.balderdashcomic.com/comics/1416175460-bonus1.png Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ 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 ___