From: Marcin Borkowski <mbork@atos.wmid.amu.edu.pl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Dividing dimensions
Date: Sun, 22 Mar 2009 01:02:52 +0100 [thread overview]
Message-ID: <20090322000252.GU14844@atos.labs.wmid.amu.edu.pl> (raw)
In-Reply-To: <alpine.LNX.2.00.0903211804570.13753@ybpnyubfg.ybpnyqbznva>
Dnia Sat, Mar 21, 2009 at 06:08:41PM -0400, Aditya Mahajan napisał(a):
> Hi,
>
> Can I divide dimensions to get a number in pdftex?
>
> I have four dimensions \!!dimena, \!!dimenb, \!!dimenc and \!!dimend, and
> I want
>
> if (dimena/dimenb) > (dimenc/dimend)
> do something
> else
> do otherthing
What about
if (dimena*dimend) > (dimenc*dimenb) ... ?
If dimenb and dimend are positive, this should be equivalent (assuming
you don't run into overflow).
> Any hints on how to do this in ConTeXt.
>
> Thanks,
> Aditya
Regards
--
Marcin Borkowski (http://mbork.pl)
Ja nie chcę czytać tych głupich gazet
I wymyślonych oglądać historii.
(Chili My)
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-03-22 0:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-21 22:08 Aditya Mahajan
2009-03-21 22:26 ` Arthur Reutenauer
2009-03-21 22:41 ` Wolfgang Schuster
2009-03-21 22:49 ` Aditya Mahajan
2009-03-21 23:00 ` Wolfgang Schuster
2009-03-23 7:15 ` Alan BRASLAU
2009-03-23 11:35 ` Arthur Reutenauer
2009-03-23 12:12 ` Wolfgang Schuster
2009-03-23 12:22 ` Arthur Reutenauer
2009-03-23 23:27 ` Alan BRASLAU
2009-03-24 6:51 ` Mojca Miklavec
2009-03-24 7:07 ` Hans Hagen
2009-03-22 8:38 ` Wolfgang Schuster
2009-03-22 0:02 ` Marcin Borkowski [this message]
2009-03-22 2:13 ` Aditya Mahajan
2009-03-22 9:41 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090322000252.GU14844@atos.labs.wmid.amu.edu.pl \
--to=mbork@atos.wmid.amu.edu.pl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).