* Dimensions
@ 2009-01-26 18:01 Bart C. Wise
2009-01-26 18:12 ` Dimensions Hans Hagen
0 siblings, 1 reply; 13+ messages in thread
From: Bart C. Wise @ 2009-01-26 18:01 UTC (permalink / raw)
To: Context Mailing List
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Dimensions
2009-01-26 18:01 Dimensions Bart C. Wise
@ 2009-01-26 18:12 ` Hans Hagen
2009-01-26 18:45 ` Dimensions Bart C. Wise
0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2009-01-26 18:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Dimensions
2009-01-26 18:12 ` Dimensions Hans Hagen
@ 2009-01-26 18:45 ` Bart C. Wise
2009-01-26 19:12 ` Dimensions Alan BRASLAU
0 siblings, 1 reply; 13+ messages in thread
From: Bart C. Wise @ 2009-01-26 18:45 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Dimensions
2009-01-26 18:45 ` Dimensions Bart C. Wise
@ 2009-01-26 19:12 ` Alan BRASLAU
2009-01-26 20:32 ` Dimensions Wolfgang Schuster
0 siblings, 1 reply; 13+ messages in thread
From: Alan BRASLAU @ 2009-01-26 19:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 232 bytes --]
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?
[-- Attachment #1.2: Type: text/html, Size: 1593 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Dimensions
2009-01-26 19:12 ` Dimensions Alan BRASLAU
@ 2009-01-26 20:32 ` Wolfgang Schuster
2009-01-27 8:23 ` Dimensions Alan Stone
0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2009-01-26 20:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Dimensions
2009-01-26 20:32 ` Dimensions Wolfgang Schuster
@ 2009-01-27 8:23 ` Alan Stone
0 siblings, 0 replies; 13+ messages in thread
From: Alan Stone @ 2009-01-27 8:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 691 bytes --]
On Mon, Jan 26, 2009 at 9:32 PM, Wolfgang Schuster <
schuster.wolfgang@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
[-- Attachment #1.2: Type: text/html, Size: 1449 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: dimensions
2008-09-02 10:58 ` dimensions Alan Stone
2008-09-02 11:14 ` dimensions Wolfgang Schuster
@ 2008-09-02 11:16 ` Mojca Miklavec
1 sibling, 0 replies; 13+ messages in thread
From: Mojca Miklavec @ 2008-09-02 11:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: dimensions
2008-09-02 10:58 ` dimensions Alan Stone
@ 2008-09-02 11:14 ` Wolfgang Schuster
2008-09-02 11:16 ` dimensions Mojca Miklavec
1 sibling, 0 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2008-09-02 11:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, Sep 2, 2008 at 12:58 PM, Alan Stone
<software.list.1es9s@gmail.com> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: dimensions
2008-09-02 10:36 ` dimensions Mojca Miklavec
@ 2008-09-02 10:58 ` Alan Stone
2008-09-02 11:14 ` dimensions Wolfgang Schuster
2008-09-02 11:16 ` dimensions Mojca Miklavec
0 siblings, 2 replies; 13+ messages in thread
From: Alan Stone @ 2008-09-02 10:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 127 bytes --]
Thanks all.
Was looking for the equivalent in height of a capital. Didn't find it there,
neither elsewhere, so...
Best,
Alan
[-- Attachment #1.2: Type: text/html, Size: 171 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: dimensions
2008-09-02 10:15 dimensions Alan Stone
2008-09-02 10:33 ` dimensions Wolfgang Schuster
2008-09-02 10:36 ` dimensions Mojca Miklavec
@ 2008-09-02 10:37 ` Thomas A. Schmitz
2 siblings, 0 replies; 13+ messages in thread
From: Thomas A. Schmitz @ 2008-09-02 10:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: dimensions
2008-09-02 10:15 dimensions Alan Stone
2008-09-02 10:33 ` dimensions Wolfgang Schuster
@ 2008-09-02 10:36 ` Mojca Miklavec
2008-09-02 10:58 ` dimensions Alan Stone
2008-09-02 10:37 ` dimensions Thomas A. Schmitz
2 siblings, 1 reply; 13+ messages in thread
From: Mojca Miklavec @ 2008-09-02 10:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: dimensions
2008-09-02 10:15 dimensions Alan Stone
@ 2008-09-02 10:33 ` Wolfgang Schuster
2008-09-02 10:36 ` dimensions Mojca Miklavec
2008-09-02 10:37 ` dimensions Thomas A. Schmitz
2 siblings, 0 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2008-09-02 10:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, Sep 2, 2008 at 12:15 PM, Alan Stone
<software.list.1es9s@gmail.com> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* dimensions
@ 2008-09-02 10:15 Alan Stone
2008-09-02 10:33 ` dimensions Wolfgang Schuster
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Alan Stone @ 2008-09-02 10:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 102 bytes --]
Hi,
Is there a font dependant dimension, similar to 1em = width of an M, but in
height ?
Best,
Alan
[-- Attachment #1.2: Type: text/html, Size: 142 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-01-27 8:23 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-26 18:01 Dimensions Bart C. Wise
2009-01-26 18:12 ` Dimensions Hans Hagen
2009-01-26 18:45 ` Dimensions Bart C. Wise
2009-01-26 19:12 ` Dimensions Alan BRASLAU
2009-01-26 20:32 ` Dimensions Wolfgang Schuster
2009-01-27 8:23 ` Dimensions Alan Stone
-- strict thread matches above, loose matches on Subject: below --
2008-09-02 10:15 dimensions Alan Stone
2008-09-02 10:33 ` dimensions Wolfgang Schuster
2008-09-02 10:36 ` dimensions Mojca Miklavec
2008-09-02 10:58 ` dimensions Alan Stone
2008-09-02 11:14 ` dimensions Wolfgang Schuster
2008-09-02 11:16 ` dimensions Mojca Miklavec
2008-09-02 10:37 ` dimensions Thomas A. Schmitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).