ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* is it possible to add lengths?
@ 2005-07-09  5:53 Paul Tremblay
  2005-07-09  6:56 ` Stuart Jansen
  2005-07-09  7:55 ` Mikael Persson
  0 siblings, 2 replies; 6+ messages in thread
From: Paul Tremblay @ 2005-07-09  5:53 UTC (permalink / raw)


Is it possible to add lengths in ConTexT?

backspace= 55m + 1in

Thanks

Paul

-- 

************************
*Paul Tremblay         *
*phthenry@iglou.com    *
************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: is it possible to add lengths?
  2005-07-09  5:53 is it possible to add lengths? Paul Tremblay
@ 2005-07-09  6:56 ` Stuart Jansen
  2005-07-09  7:55 ` Mikael Persson
  1 sibling, 0 replies; 6+ messages in thread
From: Stuart Jansen @ 2005-07-09  6:56 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 487 bytes --]

On Sat, 2005-07-09 at 01:53 -0400, Paul Tremblay wrote:
> Is it possible to add lengths in ConTexT?
> 
> backspace= 55m + 1in

I don't know enough about ConTeXt to declare this The Right Way(tm), but
here's one way that Works For Me(tm):

\starttext
\newdimen\mydimen
\mydimen=1in
\hbox{\framed[height=\mydimen,width=1in]{before}
 \advance\mydimen by 55mm
 \framed[height=\mydimen,width=1in]{after}}
\stoptext

-- 
Stuart Jansen <sjansen@gurulabs.com>
Guru Labs, L.C.

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: is it possible to add lengths?
  2005-07-09  5:53 is it possible to add lengths? Paul Tremblay
  2005-07-09  6:56 ` Stuart Jansen
@ 2005-07-09  7:55 ` Mikael Persson
  2005-07-09  8:47   ` Hans Hagen
  2005-07-09  8:52   ` Vit Zyka
  1 sibling, 2 replies; 6+ messages in thread
From: Mikael Persson @ 2005-07-09  7:55 UTC (permalink / raw)


On 7/9/05, Paul Tremblay <phthenry@iglou.com> wrote:
> Is it possible to add lengths in ConTexT?
> 
> backspace= 55m + 1in
> 
> Thanks
> 
> Paul
> 
> 

Hello Paul,

I think
backspace=\dimexpr(55mm+1in)
should work.

Best regards, Micke P

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: is it possible to add lengths?
  2005-07-09  7:55 ` Mikael Persson
@ 2005-07-09  8:47   ` Hans Hagen
  2005-07-09  8:52   ` Vit Zyka
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2005-07-09  8:47 UTC (permalink / raw)


Mikael Persson wrote:
> On 7/9/05, Paul Tremblay <phthenry@iglou.com> wrote:
> 
>>Is it possible to add lengths in ConTexT?
>>
>>backspace= 55m + 1in
>>
>>Thanks
>>
>>Paul
>>
>>
> 
> 
> Hello Paul,
> 
> I think
> backspace=\dimexpr(55mm+1in)
> should work.

better: \dimexpr 55mm+1in\relax


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: is it possible to add lengths?
  2005-07-09  7:55 ` Mikael Persson
  2005-07-09  8:47   ` Hans Hagen
@ 2005-07-09  8:52   ` Vit Zyka
  2005-07-09 20:59     ` Paul Tremblay
  1 sibling, 1 reply; 6+ messages in thread
From: Vit Zyka @ 2005-07-09  8:52 UTC (permalink / raw)


Mikael Persson wrote:
> On 7/9/05, Paul Tremblay <phthenry@iglou.com> wrote:
> 
>>Is it possible to add lengths in ConTexT?
>>
>>backspace= 55m + 1in
>>
>>Thanks
>>
>>Paul
>>
>>
> 
> 
> Hello Paul,
> 
> I think
> backspace=\dimexpr(55mm+1in)
> should work.

This sometimes works but correct syntax is

backspace=\dimexpr 55mm+1in \relax

vit

> 
> Best regards, Micke P
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

-- 
=======================================================
Ing. Vít Zýka, Ph.D.                         TYPOkvítek

database publishing              databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189     www: http://typokvitek.com
=======================================================

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: is it possible to add lengths?
  2005-07-09  8:52   ` Vit Zyka
@ 2005-07-09 20:59     ` Paul Tremblay
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Tremblay @ 2005-07-09 20:59 UTC (permalink / raw)


On Sat, Jul 09, 2005 at 10:52:47AM +0200, Vit Zyka wrote:
> 
> Mikael Persson wrote:
> >On 7/9/05, Paul Tremblay <phthenry@iglou.com> wrote:
> >
> >>Is it possible to add lengths in ConTexT?
> >>
> >>backspace= 55m + 1in
> >>
> >>Thanks
> >>
> >>Paul
> >>
> >>
> >
> >
> >Hello Paul,
> >
> >I think
> >backspace=\dimexpr(55mm+1in)
> >should work.
> 
> This sometimes works but correct syntax is
> 
> backspace=\dimexpr 55mm+1in \relax
> 
> vit
> 

Thanks. This works very nicely.

Paul

-- 

************************
*Paul Tremblay         *
*phthenry@iglou.com    *
************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-07-09 20:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-09  5:53 is it possible to add lengths? Paul Tremblay
2005-07-09  6:56 ` Stuart Jansen
2005-07-09  7:55 ` Mikael Persson
2005-07-09  8:47   ` Hans Hagen
2005-07-09  8:52   ` Vit Zyka
2005-07-09 20:59     ` Paul Tremblay

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).