Re: [NTG-context] Images centered on page
On Fri, 23 Nov 2007 22:32:46 -0700 Idris Samawi Hamid [EMAIL PROTECTED] wrote: On Fri, 23 Nov 2007 12:30:48 -0700, Wolfgang Schuster [EMAIL PROTECTED] wrote: \unprotect \def\fullpagebox {\bgroup \dowithnextbox {\!!widtha\dimexpr\paperwidth/\nextboxwd\relax \!!widthb\dimexpr\paperheight/\nextboxht\relax \ifdim\!!widtha\!!widthb \setbox\nextbox\vbox\!!to\paperheight{\vss\expanded{\scale[\c!width=\paperwidth]{\flushnextbox}}\vss}% \else \setbox\nextbox\hbox\!!to\paperwidth{\hss\expanded{\scale[\c!height=\paperheight]{\flushnextbox}}\hss}% \fi \setbox\nextbox\hbox{\clip[\c!width=\paperwidth,\c!height=\paperheight]{\flushnextbox}}% \startTEXpage \flushnextbox \stopTEXpage \egroup} \hbox} \protect \starttext \fullpagebox{\externalfigure[image]} \stoptext Now THAT's the 1st-class gangster we know and love so much ;-) Question: How can we, if desired, fit the image to the page dimensions? See what happens with \starttext \fullpagebox{\externalfigure[cow][scale=fit]} \stoptext Can you try \pagefigure, my solution was to scale a image to the papersize and remove parts. \pagefigure includes a figure within a TEXpage and you scale now the figure to the size of the document. \starttext \pagefigure[cow][width=\paperwidth,height=\paperheight] \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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Images centered on page : Solved
On Fri, 23 Nov 2007 23:50:42 +0100 luigi scarso [EMAIL PROTECTED] wrote: On Nov 23, 2007 9:39 PM, Vyatcheslav Yatskovsky [EMAIL PROTECTED] wrote: Hello, Thank you all very much. I'm pleased with number and quality of solutions to my problem. Did you look in supp-box at centerbox definition ? it' something like \vbox to \adimension{\vfill \vfill} (well, not \vfill, but \vss) You approach was not so distant to solutions , you only forget that \vfill need a bit of attention. (hey even today sometimes i'm lost with \def and \edef...) Compare \starttext \vfill a \vfill \stoptext with \starttext \hskip1sp \vfill a \vfill \stoptext Given that 1sp is invisible to human eye , one can appreciate here a butterfly effect :)) Hi Luigi, you can use \dontleavehmode in this case. \starttext \dontleavehmode\vfill a \vfill \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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Images centered on page : Solved
you can use \dontleavehmode in this case. yes, i know. \meaning\ \dontleavehmode gives \quitvmode \meaning\quitvmode gives \quitvmode hence \quitvmode is a primitive . \quitvmode The primitive instructs pdfTEX to quit the vertical mode and start typesetting a paragraph. \quitvmode has the same effect as \leavevmode definition from plain macro package. Note however, that \leavevmode may conflict with \everypar tokens list. No such risk while using \quitvmode instead The primitive has been introduced in pdfTEX 1.21a. \hskip1sp give more the sense of invisible touch ... -- luigi ... it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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
Dear Dalyoung, On Fri, 23 Nov 2007 22:56:30 -0700, Jeong Dalyoung [EMAIL PROTECTED] wrote: Dear Idris, I have used buffers and \plcadefigures to display formula and figure together. Here is my short sample file. \startbuffer[one] \startformula \startmatrix \NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5 \NR \NC u \NC 0 \NC 1 \NC 1 \NC 0 \NC 1 \NR \NC v \NC 1 \NC 0 \NC 1 \NC 0 \NC 0 \NR \NC w \NC 1 \NC 1 \NC 0 \NC 1 \NC 0 \NR \NC x \NC 0 \NC 0 \NC 1 \NC 0 \NC 1 \NR \NC y \NC 1 \NC 0 \NC 0 \NC 1 \NC 0 \NR \stopmatrix \stopformula \stopbuffer \starttext \placefigure[here][fig:test]{Test of buffers} {\startcombination[2*2] {\externalfigure[7starmagic1][width=.25\makeupwidth]}{G} {\externalfigure[one.tmp]}{AA} {\externalfigure[one.tmp]}{BB} {\externalfigure[one.tmp]}{CC} \stopcombination} \stoptext Then, I got a strange output(fig 1: wide blank spaces between columns). If I use \getbuffer instead of \externalfigure, I got somewhat proper output(fig 2), but the figure is located much higher than the matrix(horizontal alignment is bad). What is wrong in my sample? Is there any option for \startcombination? \start-stopformula are for math display mode ($$-$$). Apparently having display mode turned on within the buffer creates the extra space. Since you are using combinations for your display there is no need for display mode. The following works here: === \startbuffer[one] %\startformula \startmatrix \NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5 \NR \NC u \NC 0 \NC 1 \NC 1 \NC 0 \NC 1 \NR \NC v \NC 1 \NC 0 \NC 1 \NC 0 \NC 0 \NR \NC w \NC 1 \NC 1 \NC 0 \NC 1 \NC 0 \NR \NC x \NC 0 \NC 0 \NC 1 \NC 0 \NC 1 \NR \NC y \NC 1 \NC 0 \NC 0 \NC 1 \NC 0 \NR \stopmatrix %\stopformula \stopbuffer \starttext \setupcombinations[distance=2cm] \placefigure[here][fig:test]{Test of buffers} {\startcombination[2*2] % {\externalfigure[7starmagic1][width=.25\makeupwidth]}{G} {\externalfigure[one.tmp]}{AA} {\externalfigure[one.tmp]}{BB} {\externalfigure[one.tmp]}{CC} {\externalfigure[one.tmp]}{DD} \stopcombination} \stoptext === Notice the \setupcombinations[distance=2cm] ! Best 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] Gentium Basic/Book (getting even weirder)
It stays exactly the same: no improvement! (see below) Am 24.11.2007 um 01:25 schrieb Mojca Miklavec: On Nov 23, 2007 5:33 PM, Steffen Wolfrum wrote: OK, so I followed Mojca's tip and used this: \usetypescriptfile[times] \usetypescript[times] \mainlanguage[de] \setupbodyfont[times,10pt] \setupinterlinespace[line=12pt] \starttext Wort und Tat in 1906 \stoptext But this takes about 95 (!) seconds to typeset with a lot of strange log entries: )kpathsea: Illegal fontname `texgyretermes- regular:script=latn;language=dflt;+liga;+kern;mapping=tex- text;mapping=tex-text;': contains ':' Thers MUST be something wrong/missing!!! Wait ... I have been reading in the wrong order: so it does work, only too slow? Actually, being slow and those weird lines in log are normal for the current imlementation - it's a price for flexibility over efficiency, but being so inefficient that its flexibility is nearly useless. What happens if you: - use the latest xetex (http://minimals.contextgarden.net/current/ bin/xetex/) I did. - use the attached fixed file (it has been fixed a while ago, but Hans hasn't released a new version yet) I had already (is exactly the same as in the distro). - make sure that you have termes otf files I have texgyretermes... - only use \usetypescript[times] \mainlanguage[de] \setupbodyfont[times,10pt] \setupinterlinespace[line=12pt] \starttext Wort und Tat in 1906 \stoptext Ok did it, but nothing changes ... 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] [OT] gnupdf.org
Am 2007-11-24 um 07:33 schrieb luigi scarso: http://tinyurl.com/3bahws http://wiki.contextgarden.net/User:Luigi.scarso#Cool_links (well, no so coool..) I collect links about pdf, libray, edit . Given i'm working with python sometimes I use http://pybrary.net/pyPdf/ If you know others, feel free to add them. http://ccxvii.net/apparition/ http://www.fpdf.org/ (PHP) http://portablesigner.sourceforge.net/ (sign PDFs - might be useful to implement in someTeX) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] gnupdf.org
http://ccxvii.net/apparition/ http://www.fpdf.org/ (PHP) http://portablesigner.sourceforge.net/ (sign PDFs - might be useful to implement in someTeX) wikified. btw , I'm collecting about pdflibrary and binding. -- luigi ... it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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] backward compatibility
Peter Münster wrote: Dear ConTeXt developers, With the new generation of ConTeXt, MKIV, would it be possible to drop backward compatibility at some places, where it was the only reason to keep some undesired behaviour? Examples: align=left|right or insertion of \dontleavehmode before \externalfigure and \framed align ... just use flushleft and flushright instead ... has been there for a while now dontleavehmode ... that's hard to do automaticaly, too much changes for interferences ... however, i will reimplemenent some code in mkiv and using different tricks - 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] Quickie about Line Numbering
Matthias Wächter wrote: Thomas A. Schmitz schrieb: Just wondering how I can manage to number all the lines of my document. Thought that this would work but it actually doesn't. I have some dim recollection that I asked a similar question some time ago, and the answer was: you can't (but I can't find a reference in the archive, so I may be wrong). You'll have to explicitly tell ConTeXt to start line numbering after headings: Thanks for your (sad) answer. I really wonder why this is not implemented. It's so easy to do in LaTeX, and we _really_ need it for our review process. I will never convince my boss to change to ConTeXt without document-wide line numbers :/ But maybe in Lua it's just a three-liner, so I won't give up hope. Not now. :) afaik in latex they tweak the output routine by handling line by line which is ok for proofing article like stuff where messing up the spacing is no problem in context, which has much more integrated in the otr that will not work out ok and i don't like implementing things half broken (apart from not needing it) in mkiv i will deal with line numbering in a different way (i have some experimental code) and there it will be available in a couple of months (i just need time and reason) 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] defining and expanding in xml
Thomas A. Schmitz wrote: \define\sln {\externalfigure[presentations/07_11_23.pdf][page= \currentSlideNumber]\incrementSlideNumber} does it work with simple filenames? like abc.pdf? - 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] kpse.rb bad guess for distribution (web2c vs miktex)
George N. White III wrote: I use MiKTeX's package manager to install updates on linux TeXLive. I put mpm in /opt/miktex/bin, which causes kpse.rb to deduce that distribution=miktex (rather than web2c). Here is a trivial patch that adds a test for mswin: ok - 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] Gentium Basic/Book (getting weird)
Mojca Miklavec wrote: Hmmm when thinking agin ... I know that you asked me which regime name to pass to XeTeX and I said don't worry, it should be more or less the same, but 8859-1 isn't valid regime name either. I'll take a look and report back. ok, probably some trueregimename kind of mapping is needed - 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] Gentium Basic/Book (getting even weirder)
On Nov 24, 2007 10:33 PM, Steffen Wolfrum wrote: - use the attached fixed file (it has been fixed a while ago, but Hans hasn't released a new version yet) I had already (is exactly the same as in the distro). I'm sorry. Something weird is happenning. You need to change these lines (add file: prefix): \definefontsynonym [Times-Roman] [file:texgyretermes-regular] [features=default] \definefontsynonym [Times-Italic] [file:texgyretermes-italic] [features=default] \definefontsynonym [Times-Bold][file:texgyretermes-bold] [features=default] \definefontsynonym [Times-BoldItalic] [file:texgyretermes-bolditalic] [features=default] \definefontsynonym [Times-Caps][file:texgyretermes-regular] [features=smallcaps] and possibly remake the formats. Does that change anything? (Needs to be changed in the distpibution as well.) Mojca ___ 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 Sat, 24 Nov 2007, Idris Samawi Hamid wrote: Dear Dalyoung, On Fri, 23 Nov 2007 22:56:30 -0700, Jeong Dalyoung [EMAIL PROTECTED] wrote: Dear Idris, I have used buffers and \plcadefigures to display formula and figure together. Here is my short sample file. \startbuffer[one] \startformula \startmatrix \NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5 \NR \NC u \NC 0 \NC 1 \NC 1 \NC 0 \NC 1 \NR \NC v \NC 1 \NC 0 \NC 1 \NC 0 \NC 0 \NR \NC w \NC 1 \NC 1 \NC 0 \NC 1 \NC 0 \NR \NC x \NC 0 \NC 0 \NC 1 \NC 0 \NC 1 \NR \NC y \NC 1 \NC 0 \NC 0 \NC 1 \NC 0 \NR \stopmatrix \stopformula \stopbuffer \starttext \placefigure[here][fig:test]{Test of buffers} {\startcombination[2*2] {\externalfigure[7starmagic1][width=.25\makeupwidth]}{G} {\externalfigure[one.tmp]}{AA} {\externalfigure[one.tmp]}{BB} {\externalfigure[one.tmp]}{CC} \stopcombination} \stoptext Then, I got a strange output(fig 1: wide blank spaces between columns). If I use \getbuffer instead of \externalfigure, I got somewhat proper output(fig 2), but the figure is located much higher than the matrix(horizontal alignment is bad). What is wrong in my sample? Is there any option for \startcombination? \start-stopformula are for math display mode ($$-$$). Apparently having display mode turned on within the buffer creates the extra space. Since you are using combinations for your display there is no need for display mode. The following works here: === \startbuffer[one] %\startformula \startmatrix \NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5 \NR \NC u \NC 0 \NC 1 \NC 1 \NC 0 \NC 1 \NR \NC v \NC 1 \NC 0 \NC 1 \NC 0 \NC 0 \NR \NC w \NC 1 \NC 1 \NC 0 \NC 1 \NC 0 \NR \NC x \NC 0 \NC 0 \NC 1 \NC 0 \NC 1 \NR \NC y \NC 1 \NC 0 \NC 0 \NC 1 \NC 0 \NR \stopmatrix %\stopformula \stopbuffer \starttext \setupcombinations[distance=2cm] \placefigure[here][fig:test]{Test of buffers} {\startcombination[2*2] % {\externalfigure[7starmagic1][width=.25\makeupwidth]}{G} {\externalfigure[one.tmp]}{AA} {\externalfigure[one.tmp]}{BB} {\externalfigure[one.tmp]}{CC} {\externalfigure[one.tmp]}{DD} \stopcombination} \stoptext I would also add $\displaystyle ... $ around the matrices. 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] gnupdf.org
Hi Luigi, On Sat, 24 Nov 2007, luigi scarso wrote: http://tinyurl.com/3bahws http://wiki.contextgarden.net/User:Luigi.scarso#Cool_links (well, no so coool..) I collect links about pdf, libray, edit . Given i'm working with python sometimes I use http://pybrary.net/pyPdf/ If you know others, feel free to add them. You have some really nice stuff on your user page. However, can you move some of the more useful things to a separate wiki page? (and link still link them, or include them completely in your user page). Occasionaly I have wanted to add some more information to something in your user page, but have not done so thinking that it is rude for me to edit your user page. Thanks, 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] gnupdf.org
btw , I'm collecting about pdflibrary and binding. Hum, just this minute I came across http://www.coherentgraphics.co.uk/camlpdf.html :-) ___ 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] Preventing page break in a paragraph
Hi, How do I prevent a paragraph to be broken between pages (or columns)? Thanks, Maurício ___ 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] Preventing page break in a paragraph
On Sun, 25 Nov 2007, Maurício wrote: Hi, How do I prevent a paragraph to be broken between pages (or columns)? Add a \vbox{} around the paragraph. You can also use \framed[align=normal], or \start-stop framed, which are fancier vboxes and provide more control. 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] gnupdf.org
On Nov 25, 2007 6:26 AM, Arthur Reutenauer [EMAIL PROTECTED] wrote: btw , I'm collecting about pdflibrary and binding. Hum, just this minute I came across http://www.coherentgraphics.co.uk/camlpdf.html :-) http://search.cpan.org/dist/CAM-PDF/ -- luigi ... it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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 ___