Re: [NTG-context] [OT] \internalfigure
luigi scarso wrote: > On Nov 21, 2007 12:26 AM, Hans Hagen <[EMAIL PROTECTED]> wrote: > >> luigi scarso wrote: >>> We all know that exists \externalfigure[...][...] >>> Now, suppose I'm able to make a buffer with raw data, >>> something like >>> \Raw{<89>PNG^M >>> ^Z >>> [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@ >>> [EMAIL PROTECTED]@^@ >>> [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@^AsRGB^@(R)[EMAIL >>> PROTECTED]@^@ >>> [EMAIL PROTECTED]@[EMAIL PROTECTED]@^K^S^A^@<9a><9c>[EMAIL >>> PROTECTED]@[EMAIL PROTECTED] >>> ^O°<94>[EMAIL PROTECTED]@[EMAIL PROTECTED]@Created with >>> >> GIMPW<81>[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]<8d>[EMAIL >> PROTECTED]@[EMAIL PROTECTED]@IEND(R)B`<82>} >>> (it's a black png 10x10 pixel, in attach.) >>> How can I use it with, let's say >>> \internalfigure[\Raw][...] ? >>> Of course, write it down to a temp file and then use >>> \externalfigure[temp][..], >>> but I would like to avoid this way . >> you mean that the bytes should become an image? >> > yes, exactly so > >> well, you can try some pdf magic using inline image date in hex format >> or so, but i never looked into that >> > a little suggestion .? pdf ref manual : SECTION 4.9 Form XObjects 355 Example 4.30 q% Save graphics state 17 0 0 17 298 388 cm% Scale and translate coordinate space BI% Begin inline image object /W 17% Width in samples /H 17% Height in samples /CS /RGB% Color space /BPC 8% Bits per component /F [ /A85 /LZW ]% Filters ID% Begin image data J1/gKA>.]AN&J?]- EI% End inline image object Q% Restore graphics state - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] \internalfigure
On Nov 21, 2007 12:26 AM, Hans Hagen <[EMAIL PROTECTED]> wrote: > luigi scarso wrote: > > We all know that exists \externalfigure[...][...] > > Now, suppose I'm able to make a buffer with raw data, > > something like > > \Raw{<89>PNG^M > > ^Z > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@ > > [EMAIL PROTECTED]@^@ > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@^AsRGB^@(R)[EMAIL > > PROTECTED]@^@ > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@^K^S^A^@<9a><9c>[EMAIL > > PROTECTED]@[EMAIL PROTECTED] > > ^O°<94>[EMAIL PROTECTED]@[EMAIL PROTECTED]@Created with > > > GIMPW<81>[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]<8d>[EMAIL > PROTECTED]@[EMAIL PROTECTED]@IEND(R)B`<82>} > > (it's a black png 10x10 pixel, in attach.) > > How can I use it with, let's say > > \internalfigure[\Raw][...] ? > > Of course, write it down to a temp file and then use > > \externalfigure[temp][..], > > but I would like to avoid this way . > > you mean that the bytes should become an image? > yes, exactly so > > well, you can try some pdf magic using inline image date in hex format > or so, but i never looked into that > a little suggestion .? -- luigi ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] \internalfigure
luigi scarso wrote: > We all know that exists \externalfigure[...][...] > Now, suppose I'm able to make a buffer with raw data, > something like > \Raw{<89>PNG^M > ^Z > [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@ > [EMAIL PROTECTED]@^@ > [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@^AsRGB^@(R)[EMAIL > PROTECTED]@^@ > [EMAIL PROTECTED]@[EMAIL PROTECTED]@^K^S^A^@<9a><9c>[EMAIL PROTECTED]@[EMAIL > PROTECTED] > ^O°<94>[EMAIL PROTECTED]@[EMAIL PROTECTED]@Created with > GIMPW<81>[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]<8d>[EMAIL > PROTECTED]@[EMAIL PROTECTED]@IEND(R)B`<82>} > (it's a black png 10x10 pixel, in attach.) > How can I use it with, let's say > \internalfigure[\Raw][...] ? > Of course, write it down to a temp file and then use > \externalfigure[temp][..], > but I would like to avoid this way . you mean that the bytes should become an image? well, you can try some pdf magic using inline image date in hex format or so, but i never looked into that Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typesetting a formula as a figure
On Nov 20, 2007 11:23 PM, Idris Samawi Hamid <[EMAIL PROTECTED]> wrote: > Hi Peter, > > On Tue, 20 Nov 2007 15:15:35 -0700, Peter I. Hansen <[EMAIL PROTECTED]> > wrote: > > > > Hi > > > > I would like to typeset a formula as a figure, so that the formula > > enters the numbering scheme of figures and that I gain the possibility > > of adding a figure caption. An example were this would be practical is > > when using ppchtex. > > I've been googling but having trouble finding hints on how to make > > such a construction. > > Is it possible at all? > > See Section 13.5 page 300 (absolute page 303) of cont-eni.pdf. Uses a > buffer and a tmp-file name. This works nicely, thanks. -Peter ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [OT] \internalfigure
We all know that exists \externalfigure[...][...] Now, suppose I'm able to make a buffer with raw data, something like \Raw{<89>PNG^M ^Z [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@ [EMAIL PROTECTED]@^@ [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@^AsRGB^@(R)[EMAIL PROTECTED]@^@ [EMAIL PROTECTED]@[EMAIL PROTECTED]@^K^S^A^@<9a><9c>[EMAIL PROTECTED]@[EMAIL PROTECTED] ^O°<94>[EMAIL PROTECTED]@[EMAIL PROTECTED]@Created with GIMPW<81>[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]<8d>[EMAIL PROTECTED]@[EMAIL PROTECTED]@IEND(R)B`<82>} (it's a black png 10x10 pixel, in attach.) How can I use it with, let's say \internalfigure[\Raw][...] ? Of course, write it down to a temp file and then use \externalfigure[temp][..], but I would like to avoid this way . -- luigi <>___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] typesetting a formula as a figure
Hi Peter, On Tue, 20 Nov 2007 15:15:35 -0700, Peter I. Hansen <[EMAIL PROTECTED]> wrote: > Hi > > I would like to typeset a formula as a figure, so that the formula > enters the numbering scheme of figures and that I gain the possibility > of adding a figure caption. An example were this would be practical is > when using ppchtex. > I've been googling but having trouble finding hints on how to make > such a construction. > Is it possible at all? See Section 13.5 page 300 (absolute page 303) of cont-eni.pdf. Uses a buffer and a tmp-file name. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] typesetting a formula as a figure
Hi I would like to typeset a formula as a figure, so that the formula enters the numbering scheme of figures and that I gain the possibility of adding a figure caption. An example were this would be practical is when using ppchtex. I've been googling but having trouble finding hints on how to make such a construction. Is it possible at all? Thanks, Peter ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parallel texts
On Nov 20, 2007 8:32 PM, Idris Samawi Hamid <[EMAIL PROTECTED]> wrote: > Hi, > > On Tue, 20 Nov 2007 12:24:50 -0700, Steffen Wolfrum > <[EMAIL PROTECTED]> wrote: > > > > > Am 20.11.2007 um 19:38 schrieb luigi scarso: > > > >> I am looking for a way to typeset bilingual text as parallel text, > >> keeping each paragraph opposite the corresponding paragraph (left/ > >> right page). > >> > >> The ledpar package from the ledmac bundle does this (I was told). > >> > >> > >> How can this be done with ConTeXt? > >> maybe streams? > > > > > > Maybe streams. > > > > Right! Idris started a thread on parallel texts called "Streams" in > > March, 7th. > > But this thread never received any answer ... o( > > True, but there is a m-streams module in the distribution. Hans was > experimenting with these once upon a time and you can check them out. I > think luigi was referring to that. > It's not mine! search for thomas.schmitz at uni-bonn.de %%% \usemodule[streams] \def\StartCouple{\page\SwitchToNormal} \def\StopCouple {\SwitchToNormal \SynchronizeLeftAndRight \FlushLeftAndRight} \def\Original {\SwitchToNormal\SynchronizeLeftAndRight\SwitchToLeft} \def\Translation{\SwitchToRight} %%So you put the part of your document where synchronization should %%take place between \StartCouple and \StopCouple. After that , %%\Original and \Translation switches between even and odd pages. \starttext \scale[width=\textwidth,height=\textheight,factor=fit]{\ss m-streams} \page \StartCouple \Original this is an original text \crlf \input knuth \blank[1cm] \Translation THIS IS THE TRANSLATION \crlf \input tufte \Original \ss this is an original text \crlf \input knuth \Translation \tt THIS IS THE TRANSLATION \crlf \input tufte \StopCouple \stoptext > > Best wishes > Idris > > -- > Professor Idris Samawi Hamid, Editor-in-Chief > International Journal of Shi`i Studies > Department of Philosophy > Colorado State University > Fort Collins, CO 80523 > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > > ___ > 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://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > -- luigi ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parallel texts
Hi, On Tue, 20 Nov 2007 12:24:50 -0700, Steffen Wolfrum <[EMAIL PROTECTED]> wrote: > > Am 20.11.2007 um 19:38 schrieb luigi scarso: > >> I am looking for a way to typeset bilingual text as parallel text, >> keeping each paragraph opposite the corresponding paragraph (left/ >> right page). >> >> The ledpar package from the ledmac bundle does this (I was told). >> >> >> How can this be done with ConTeXt? >> maybe streams? > > > Maybe streams. > > Right! Idris started a thread on parallel texts called "Streams" in > March, 7th. > But this thread never received any answer ... o( True, but there is a m-streams module in the distribution. Hans was experimenting with these once upon a time and you can check them out. I think luigi was referring to that. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parallel texts
Am 20.11.2007 um 19:38 schrieb luigi scarso: > I am looking for a way to typeset bilingual text as parallel text, > keeping each paragraph opposite the corresponding paragraph (left/ > right page). > > The ledpar package from the ledmac bundle does this (I was told). > > > How can this be done with ConTeXt? > maybe streams? Maybe streams. Right! Idris started a thread on parallel texts called "Streams" in March, 7th. But this thread never received any answer ... o( Steffen ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parallel texts
On Nov 20, 2007 6:18 PM, Steffen Wolfrum <[EMAIL PROTECTED]> wrote: > Hi, > > I am looking for a way to typeset bilingual text as parallel text, > keeping each paragraph opposite the corresponding paragraph (left/ > right page). > > The ledpar package from the ledmac bundle does this (I was told). > > > How can this be done with ConTeXt? > maybe streams? -- luigi ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Parallel texts
Hi, I am looking for a way to typeset bilingual text as parallel text, keeping each paragraph opposite the corresponding paragraph (left/ right page). The ledpar package from the ledmac bundle does this (I was told). How can this be done with ConTeXt? Thanks, Steffen ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] TABLE splitting on entry spanning multiple rows
Hello, I'm using ConTeXt as part of an XML->PDF workflow that is heavy on tables. The XML table model allows cells to span rows and columns. While ConTeXt has handled row/column spanning perfectly up to this point, I believe I have found an issue. When an entry that spans multiple rows is on the split point between pages, you get ragged entries on the page boundaries. The code below demonstrates this on live.contextgarden.net (PDFTex): \starttext \setupTABLE[row][odd][background=color,backgroundcolor=red, width=.2\textwidth] \bTABLE[split=yes] \dorecurse{31}{\bTR \bTD[nc=4] filler \eTD \eTR} \bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3 \eTD \bTD[nr=3] 4 \eTD \eTR \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR \bTR \bTD[nc=3] 1/2/3 \eTD \bTD 4 \eTD \eTR \bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR \eTABLE \stoptext Does anyone have any suggestions for visually cleaning this up? Cheers, Mike ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___