Re: [NTG-context] Dimensions
On Mon, Jan 26, 2009 at 9:32 PM, Wolfgang Schuster < schuster.wolfg...@googlemail.com> wrote: > > Am 26.01.2009 um 20:12 schrieb Alan BRASLAU: > > > The syntax of \dimexpr and \numexpr is subtle and mysterious. >> For example, >> >> \framed[width=.61\textwidth,height=\dimexpr.61\textwidth*1486/1200\relax]{} >> works, but I never understood the limitations. >> How about an entry on the wiki? >> > > \dimexpr and \numexpr are explaines in the e-tex manual. ... which you'll find here: http://www.ntg.nl/maps/20/38.pdf Best, Alan > The only important thing for \dimexpr is to write the dimen value > as first value after the \dimexpr command and then the numeric values. > > 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] Dimensions
Am 26.01.2009 um 20:12 schrieb Alan BRASLAU: The syntax of \dimexpr and \numexpr is subtle and mysterious. For example, \framed[width=.61\textwidth,height=\dimexpr. 61\textwidth*1486/1200\relax]{} works, but I never understood the limitations. How about an entry on the wiki? \dimexpr and \numexpr are explaines in the e-tex manual. The only important thing for \dimexpr is to write the dimen value as first value after the \dimexpr command and then the numeric values. 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] Dimensions
The syntax of \dimexpr and \numexpr is subtle and mysterious. For example, \framed[width=.61\textwidth,height=\dimexpr.61\textwidth*1486/1200\relax]{} works, but I never understood the limitations. How about an entry on the wiki? ___ 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] Dimensions
On Mon January 26 2009 11:12:48 am Hans Hagen wrote: > Bart C. Wise wrote: > > How do I specify a dimension that is an arithmetic expression? > > > > For example, > > \framed[width=\dimexpr\textwidth-12pt\relax]{} > > Thanks Hans. Bart ___ 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] Dimensions
Bart C. Wise wrote: How do I specify a dimension that is an arithmetic expression? For example, \framed[width=\dimexpr\textwidth-12pt\relax]{} Thanks, Bart ___ 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 ___ -- - 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 ___
[NTG-context] Dimensions
How do I specify a dimension that is an arithmetic expression? For example, \framed[width=\textwidth-12pt]{} Thanks, Bart ___ 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] dimensions
On Tue, Sep 2, 2008 at 12:58 PM, Alan Stone <[EMAIL PROTECTED]> wrote: > Thanks all. > > Was looking for the equivalent in height of a capital. Didn't find it there, > neither elsewhere, so... \strutht 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] dimensions
On Tue, Sep 2, 2008 at 12:58 PM, Alan Stone wrote: > Thanks all. > > Was looking for the equivalent in height of a capital. Didn't find it there, > neither elsewhere, so... One thing that you can always do: \box0=\hbox{012} and then you can access \ht0, \wd0, \dp0 (height, width and depth) of whatever text you desire. 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] dimensions
Thanks all. Was looking for the equivalent in height of a capital. Didn't find it there, neither elsewhere, so... Best, Alan ___ 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] dimensions
On Sep 2, 2008, at 12:15 PM, Alan Stone wrote: > Hi, > > Is there a font dependant dimension, similar to 1em = width of an M, > but in height ? > > Best, > Alan Please spend some of your precious time on a reference. http://eijkhout.net/texbytopic/texbytopic.html You want chapter 4. Thomas ___ 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] dimensions
On Tue, Sep 2, 2008 at 12:15 PM, Alan Stone wrote: > Hi, > > Is there a font dependant dimension, similar to 1em = width of an M, but in > height ? 1ex (= height of x). 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] dimensions
On Tue, Sep 2, 2008 at 12:15 PM, Alan Stone <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a font dependant dimension, similar to 1em = width of an M, but in > height ? ex 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 ___
[NTG-context] dimensions
Hi, Is there a font dependant dimension, similar to 1em = width of an M, but in height ? Best, Alan ___ 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] Dimensions of a picture
Taco Hoekwater wrote: It seems probable that your JPEG file is broken, there is no size limit for JPEG images, but there are some checks to make sure that the file is 'valid ', and your image failed one of those checks. There are several command-line utilities for checking image files. The ImageMagick suite has a program called 'identify,' which will give you lots of information (probably more than you want!): identify -verbose If you're running Linux, ImageMagick is available for just about any distribution, and may already be installed on your system. I think you can get a version for Windows, too; not sure about MacOS. If the file is broken, 'identify' will tell you so. Otherwise, post the output of the command to the list, and hopefully someone will be able to tell you if there's something unusual about your file that makes it incompatible with pdefetex. -- Matt Gushee Englewood, CO, USA ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Dimensions of a picture
François Fasoli wrote: Is there a limitation of the dimensions of a picture ? Or another problem ? It seems probable that your JPEG file is broken, there is no size limit for JPEG images, but there are some checks to make sure that the file is 'valid ', and your image failed one of those checks. There is nothing more I can say without the actual image file. Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Dimensions of a picture
I have a problem with the following fie : \useexternalfigure[fig1][Mouette1]%1600x1200\useexternalfigure[fig2][Mouette2]%1024x768 \starttext%the following line gives an error :%Error: pdfetex.exe (file ./Mouette1.jpg): reading JPEG image failed%\externalfigure[fig1] %the following lines runs very well \page\externalfigure[fig2]\stoptext Is there a limitation of the dimensions of a picture ? Or another problem ?Thank you ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context