Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination
Thanks Wolfgang and Alan! I will experiment with them tomorrow. Best Wishes Keith McKay On Thu, 16 Mar 2023, 18:07 Alan Braslau, wrote: > On Thu, 16 Mar 2023 18:27:53 +0100 > Wolfgang Schuster via ntg-context wrote: > > > Keith McKay via ntg-context schrieb am 16.03.2023 um 17:59: > > > > > > Hi, > > > > > > I would like to position a combination of images where the centre > > > of the combination coincides with the centre of the text area of a > > > page. In the example below I have made the combination into a layer > > > thinking that this would be the easiest way to position it where I > > > wanted. However to position in the centre of the page I would need > > > to know the size of the combination and use this to calculate the x > > > and y values for positioning of the layer. I have looked at the > > > Wiki page on image size of combinations but still cant figure out > > > how to do it. Any suggestions on how to go about this or is their a > > > better way? > > > > > > Wiki Page reference: > > > https://wiki.contextgarden.net/Combinations#Image_Width > > > > > > Thanks > > > > > > Keith McKay > > > > > > %%% example %%% > > > > > > \setuppapersize[A4,portrait]%[A4,portrait] > > > > > > \setuplayout > > > > > > [backspace=2.5cm, > > > > > > topspace=1cm, > > > > > > height=28cm, > > > > > > width=17cm, > > > > > > header=0cm, > > > > > > footer=0.75cm, > > > > > > ] > > > > > > \useMPlibrary [dum] > > > > > > \starttext > > > > > > \definelayer[test3] > > > > > > \setlayer[test3][x=2cm,y=15cm] > > > > > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] > > > > > > {\externalfigure[dummy]}{} > > > > > > \rotate[rotation=90]{\externalfigure[dummy]}{} > > > > > > {\externalfigure[dummy][]}{} > > > > > > \stopcombination} > > > > > > \flushlayer[test3] > > > > > > \stoptext > > > > > > > \useMPlibrary [dum] > > > > \showframe [text] [text] > > > > \setuplayout [tight] > > > > \starttext > > > > \centerbox > > {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}] > > \bTR > > \bTD > > \externalfigure[dummy] > > \eTD > > \bTD > > \rotate[rotation=90]{\externalfigure[dummy]} > > \eTD > > \bTD > > \externalfigure[dummy] > > \eTD > > \eTR > > \eTABLE} > > > > \stoptext > > > > Wolfgang > > Or you could put the combination in a frame: > > \startparagraph [align=middle] > \startframed [frame=off,offset=\zeropoint] > \startcombination [nx=3,ny=1] > {first} {} > {second}{} > {third} {} > \stopcombination > \stopframed > \stopparagraph > > Alan > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Printing problem
I was able to print Mikael's PDF without any problem. I used a HP Laser Jet Pro MFP M276WBUT I should note that I also used the PostScript driver available from HP's Linux-specific web pages: https://developers.hp.com/hp-linux-imaging-and-printing/ Michael On 2023-03-16 04:49, Mikael Sundqvist via ntg-context wrote: > Hi all, > > I have had some printing problems lately, and it is not perfectly > clear to me (or to Hans, we have discussed this a bit) whether it is > the printer that has a lack of memory or if the pdf files are somehow > corrupted. It might have to do with type3 fonts. > > I attach a pdf file that does not print on our printer at work. Or > well, it prints almost all of the page, but stops at the word > "negativa" (or was it "egenvärden", I do not have the printout here > right now). Then the printer also prints an error report about some > "offending command". > > So, a request: If you have an easy access to a printer, can you print > this page and report back if all of it comes out, or what is > happening? > > Thanks > > /Mikael > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ dugga.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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination
On Thu, 16 Mar 2023 18:27:53 +0100 Wolfgang Schuster via ntg-context wrote: > Keith McKay via ntg-context schrieb am 16.03.2023 um 17:59: > > > > Hi, > > > > I would like to position a combination of images where the centre > > of the combination coincides with the centre of the text area of a > > page. In the example below I have made the combination into a layer > > thinking that this would be the easiest way to position it where I > > wanted. However to position in the centre of the page I would need > > to know the size of the combination and use this to calculate the x > > and y values for positioning of the layer. I have looked at the > > Wiki page on image size of combinations but still cant figure out > > how to do it. Any suggestions on how to go about this or is their a > > better way? > > > > Wiki Page reference: > > https://wiki.contextgarden.net/Combinations#Image_Width > > > > Thanks > > > > Keith McKay > > > > %%% example %%% > > > > \setuppapersize[A4,portrait]%[A4,portrait] > > > > \setuplayout > > > > [backspace=2.5cm, > > > > topspace=1cm, > > > > height=28cm, > > > > width=17cm, > > > > header=0cm, > > > > footer=0.75cm, > > > > ] > > > > \useMPlibrary [dum] > > > > \starttext > > > > \definelayer[test3] > > > > \setlayer[test3][x=2cm,y=15cm] > > > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] > > > > {\externalfigure[dummy]}{} > > > > \rotate[rotation=90]{\externalfigure[dummy]}{} > > > > {\externalfigure[dummy][]}{} > > > > \stopcombination} > > > > \flushlayer[test3] > > > > \stoptext > > > > \useMPlibrary [dum] > > \showframe [text] [text] > > \setuplayout [tight] > > \starttext > > \centerbox > {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}] > \bTR > \bTD > \externalfigure[dummy] > \eTD > \bTD > \rotate[rotation=90]{\externalfigure[dummy]} > \eTD > \bTD > \externalfigure[dummy] > \eTD > \eTR > \eTABLE} > > \stoptext > > Wolfgang Or you could put the combination in a frame: \startparagraph [align=middle] \startframed [frame=off,offset=\zeropoint] \startcombination [nx=3,ny=1] {first} {} {second}{} {third} {} \stopcombination \stopframed \stopparagraph Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Undefined control sequence error message
On 3/16/23 17:44, Leah Neukirchen via ntg-context wrote: > Hi, > > LMTX prints a bit weird error message for undefined control > sequences: > > \starttext > \zong > \stoptext > > tex error > tex error on line 2 in file ./foo.tex: Undefined > control sequence \undefined > [...] > Shouldn't it print "\zong" in the "tex error" line too? Hi Leah, I totally agree: "Undefined control sequence \zong" would be better. Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination
On 3/16/23 17:59, Keith McKay via ntg-context wrote: > Hi, > > I would like to position a combination of images where the centre of the > combination coincides with the centre of the text area of a page. Hi Keith, I think the following sample might achieve what you want: \showframe \setupexternalfigures[location={default}] \setuplayout [backspace=2.5cm, topspace=1cm, height=28cm, width=17cm, header=0cm, footer=0.75cm, ] \definelayer[test3] %[x=.5\paperwidth, y=.5\paperheight] [x=.5\textwidth, y=.5\textheight] %\setupbackgrounds[page] \setupbackgrounds[text] [background=test3] \starttext \setlayer[test3][location={middle}] \framed[offset=overlay]{{\startcombination[nx=3,ny=1,distance=15mm] {\externalfigure[cow][width=15mm]}{} \rotate[rotation=90]{\externalfigure[cow][width=15mm]}{} {\externalfigure[cow][width=15mm]}{} \stopcombination}} \null \stoptext BTW, A4 portrait is the default page size. \setupbackgrounds is the standard way to place layers. Page and text centering would require different positions (I have commented out the option for page centering). I hope it helps (since I’m not sure I’m getting your point here), Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination
Keith McKay via ntg-context schrieb am 16.03.2023 um 17:59: Hi, I would like to position a combination of images where the centre of the combination coincides with the centre of the text area of a page. In the example below I have made the combination into a layer thinking that this would be the easiest way to position it where I wanted. However to position in the centre of the page I would need to know the size of the combination and use this to calculate the x and y values for positioning of the layer. I have looked at the Wiki page on image size of combinations but still cant figure out how to do it. Any suggestions on how to go about this or is their a better way? Wiki Page reference: https://wiki.contextgarden.net/Combinations#Image_Width Thanks Keith McKay %%% example %%% \setuppapersize[A4,portrait]%[A4,portrait] \setuplayout [backspace=2.5cm, topspace=1cm, height=28cm, width=17cm, header=0cm, footer=0.75cm, ] \useMPlibrary [dum] \starttext \definelayer[test3] \setlayer[test3][x=2cm,y=15cm] {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] {\externalfigure[dummy]}{} \rotate[rotation=90]{\externalfigure[dummy]}{} {\externalfigure[dummy][]}{} \stopcombination} \flushlayer[test3] \stoptext \useMPlibrary [dum] \showframe [text] [text] \setuplayout [tight] \starttext \centerbox {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}] \bTR \bTD \externalfigure[dummy] \eTD \bTD \rotate[rotation=90]{\externalfigure[dummy]} \eTD \bTD \externalfigure[dummy] \eTD \eTR \eTABLE} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Absolute positioning of \startcombination... \stopcombination
Hi, I would like to position a combination of images where the centre of the combination coincides with the centre of the text area of a page. In the example below I have made the combination into a layer thinking that this would be the easiest way to position it where I wanted. However to position in the centre of the page I would need to know the size of the combination and use this to calculate the x and y values for positioning of the layer. I have looked at the Wiki page on image size of combinations but still cant figure out how to do it. Any suggestions on how to go about this or is their a better way? Wiki Page reference: https://wiki.contextgarden.net/Combinations#Image_Width Thanks Keith McKay %%% example %%% \setuppapersize[A4,portrait]%[A4,portrait] \setuplayout [backspace=2.5cm, topspace=1cm, height=28cm, width=17cm, header=0cm, footer=0.75cm, ] \useMPlibrary [dum] \starttext \definelayer[test3] \setlayer[test3][x=2cm,y=15cm] {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] {\externalfigure[dummy]}{} \rotate[rotation=90]{\externalfigure[dummy]}{} {\externalfigure[dummy][]}{} \stopcombination} \flushlayer[test3] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Undefined control sequence error message
Hi, LMTX prints a bit weird error message for undefined control sequences: \starttext \zong \stoptext tex error > tex error on line 2 in file ./foo.tex: Undefined control sequence \undefined \zong Shouldn't it print "\zong" in the "tex error" line too? -- Leah Neukirchenhttps://leahneukirchen.org/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Automatic numbering of footnotes set with \note (not with \footnote)
Thank you very much, it is a perfect solution. El 16/3/23 a las 12:19, Bruce Horrocks escribió: I don't have the answer to your explicit question, but a work-around might be to put the footnotes into buffers instead of \footnotetext and then use /footnote[...]{\getbuffer[name]} in the body. That way ConTeXt sees them in order of appearance in the body and so the numbering should be as you want. On 15 Mar 2023, at 09:19, Joaquín Ataz López via ntg-context wrote: Good Morning to all list members. I am writing a document with very long footnotes, and in order not to break (in the source file) the flow of the main text, instead of using the \footnote macro, I introduce the footnotes using \note[label] at the point where the call to the footnote should be placed, and in a separate place in the source file I write the text associated to the footnote using \footnotetext[label]. This works quite well and allows to create a more readable source file. There is, nevertheless, a small inconvenience, and it is that when processing the document ConTeXt goes numbering automatically the notes, attending to the order in which they are, in the source file, the \footnotetext commands. Would there be a simple way so that the automatic numbering follows the order of the \note commands, and not that of \footnotetext? Maybe something with \startbuffer combined with a counter? -- Joaquín Ataz López Departamento de Derecho civil Universidad de Murcia — Bruce Horrocks Hampshire, UK -- Joaquín Ataz López Departamento de Derecho civil Universidad de Murcia ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Printing problem
Kyocera FS-C5100DN, * Apple Preview: ok * Adobe Acrobat Pro 9: doesn’t print, no error * Adobe Acrobat Reader DC: PostScript Error (after "poäng") * Qoppa PDF Studio 2019: ok * Skim: ok * Firefox (pdf.js): ok (prints as lowres image, as usual) * Foxit PDF Reader 11: ok Looks like it might be a problem with Adobe’s PS/PDF library. Hraban Am 16.03.23 um 12:49 schrieb Mikael Sundqvist via ntg-context: Hi all, I have had some printing problems lately, and it is not perfectly clear to me (or to Hans, we have discussed this a bit) whether it is the printer that has a lack of memory or if the pdf files are somehow corrupted. It might have to do with type3 fonts. I attach a pdf file that does not print on our printer at work. Or well, it prints almost all of the page, but stops at the word "negativa" (or was it "egenvärden", I do not have the printout here right now). Then the printer also prints an error report about some "offending command". So, a request: If you have an easy access to a printer, can you print this page and report back if all of it comes out, or what is happening? Thanks /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Printing problem
Sent from my phone to a HP Color LaserJet MFP M283 printer. Perfect print. Keith McKay On Thu, 16 Mar 2023, 11:51 Mikael Sundqvist via ntg-context, < ntg-context@ntg.nl> wrote: > Hi all, > > I have had some printing problems lately, and it is not perfectly > clear to me (or to Hans, we have discussed this a bit) whether it is > the printer that has a lack of memory or if the pdf files are somehow > corrupted. It might have to do with type3 fonts. > > I attach a pdf file that does not print on our printer at work. Or > well, it prints almost all of the page, but stops at the word > "negativa" (or was it "egenvärden", I do not have the printout here > right now). Then the printer also prints an error report about some > "offending command". > > So, a request: If you have an easy access to a printer, can you print > this page and report back if all of it comes out, or what is > happening? > > Thanks > > /Mikael > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Printing problem
Hello Mikael, As asked, I printed the page on a HP Officejet Pro 7740 as well in draft- as in high-quality mode. The print-out looks ok in both cases, there is all text and no errors. Kind regards Willi > On 16 Mar 2023, at 12:49, Mikael Sundqvist via ntg-context > wrote: > > Hi all, > > I have had some printing problems lately, and it is not perfectly > clear to me (or to Hans, we have discussed this a bit) whether it is > the printer that has a lack of memory or if the pdf files are somehow > corrupted. It might have to do with type3 fonts. > > I attach a pdf file that does not print on our printer at work. Or > well, it prints almost all of the page, but stops at the word > "negativa" (or was it "egenvärden", I do not have the printout here > right now). Then the printer also prints an error report about some > "offending command". > > So, a request: If you have an easy access to a printer, can you print > this page and report back if all of it comes out, or what is > happening? > > Thanks > > /Mikael > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Printing problem
Prints fine on a LaserJet Pro M501 from Preview.app. __martin On 16 Mar 2023, at 11:49, Mikael Sundqvist via ntg-context wrote: Hi all, I have had some printing problems lately, and it is not perfectly clear to me (or to Hans, we have discussed this a bit) whether it is the printer that has a lack of memory or if the pdf files are somehow corrupted. It might have to do with type3 fonts. I attach a pdf file that does not print on our printer at work. Or well, it prints almost all of the page, but stops at the word "negativa" (or was it "egenvärden", I do not have the printout here right now). Then the printer also prints an error report about some "offending command". So, a request: If you have an easy access to a printer, can you print this page and report back if all of it comes out, or what is happening? Thanks /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Printing problem
Hi all, I have had some printing problems lately, and it is not perfectly clear to me (or to Hans, we have discussed this a bit) whether it is the printer that has a lack of memory or if the pdf files are somehow corrupted. It might have to do with type3 fonts. I attach a pdf file that does not print on our printer at work. Or well, it prints almost all of the page, but stops at the word "negativa" (or was it "egenvärden", I do not have the printout here right now). Then the printer also prints an error report about some "offending command". So, a request: If you have an easy access to a printer, can you print this page and report back if all of it comes out, or what is happening? Thanks /Mikael dugga.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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Automatic numbering of footnotes set with \note (not with \footnote)
I don't have the answer to your explicit question, but a work-around might be to put the footnotes into buffers instead of \footnotetext and then use /footnote[...]{\getbuffer[name]} in the body. That way ConTeXt sees them in order of appearance in the body and so the numbering should be as you want. > On 15 Mar 2023, at 09:19, Joaquín Ataz López via ntg-context > wrote: > > Good Morning to all list members. > > I am writing a document with very long footnotes, and in order not to break > (in the source file) the flow of the main text, instead of using the > \footnote macro, I introduce the footnotes using \note[label] at the point > where the call to the footnote should be placed, and in a separate place in > the source file I write the text associated to the footnote using > \footnotetext[label]. > > This works quite well and allows to create a more readable source file. There > is, nevertheless, a small inconvenience, and it is that when processing the > document ConTeXt goes numbering automatically the notes, attending to the > order in which they are, in the source file, the \footnotetext commands. > Would there be a simple way so that the automatic numbering follows the order > of the \note commands, and not that of \footnotetext? Maybe something with > \startbuffer combined with a counter? > > -- > > Joaquín Ataz López > Departamento de Derecho civil > Universidad de Murcia — 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___