Re: [NTG-context] Dimensions

2009-01-27 Thread Alan Stone
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

2009-01-26 Thread Hans Hagen

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
___


Re: [NTG-context] Dimensions

2009-01-26 Thread Bart C. Wise
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

2009-01-26 Thread 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?
___
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

2009-01-26 Thread Wolfgang Schuster


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

2008-09-02 Thread Wolfgang Schuster
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
___


Re: [NTG-context] dimensions

2008-09-02 Thread Mojca Miklavec
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

2008-09-02 Thread Thomas A. Schmitz

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

2008-09-02 Thread Alan Stone
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

2008-09-02 Thread Mojca Miklavec
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

2008-09-02 Thread Wolfgang Schuster
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 of a picture

2005-02-05 Thread Matt Gushee
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 image_file
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