ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* calculations
@ 2006-09-19 20:53 Henning Hraban Ramm
  2006-09-19 21:22 ` calculations Hans Hagen
  2006-09-19 21:34 ` calculations nico
  0 siblings, 2 replies; 16+ messages in thread
From: Henning Hraban Ramm @ 2006-09-19 20:53 UTC (permalink / raw)


Sorry, I skimmed the TeXbook for an hour but couldn't find how to do  
simple calculations in TeX...

This is a snippet from t-lilypond.tex:

\def\LPscale{0.6315789} % downscale the image
    \ifvmode
       \getfiguredimensions[\bufferprefix lilypond-\the\lily! 
figures.pdf][]%
%      \def\FigWidth{\LPscale\figurewidth}
       \leavevmode
       \ifdim\FigWidth>\localhsize
         \!!dimena=\localhsize
         \advance\!!dimena by-\FigWidth
         \noindent\hskip\!!dimena
       \fi
    \fi
    \externalfigure[\lily!img][scale=1000\LPscale]%
    \egroup%

I need to downscale every score to 63%, and the shown width check  
should use the corrected width.
How can I do that? (FigWidth should be LPscale * figurewidth)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

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

end of thread, other threads:[~2006-09-26 20:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-19 20:53 calculations Henning Hraban Ramm
2006-09-19 21:22 ` calculations Hans Hagen
2006-09-19 21:34 ` calculations nico
2006-09-19 22:04   ` calculations Henning Hraban Ramm
2006-09-19 22:40     ` calculations nico
2006-09-20 20:39       ` calculations Henning Hraban Ramm
2006-09-21  8:04         ` calculations Vit Zyka
2006-09-21 19:12         ` calculations Peter Rolf
2006-09-24 19:47           ` calculations Henning Hraban Ramm
2006-09-25  9:46             ` calculations Peter Rolf
2006-09-25 10:21               ` calculations Hans Hagen
2006-09-25 21:11               ` calculations Henning Hraban Ramm
2006-09-26  6:53                 ` calculations Taco Hoekwater
2006-09-26 17:14                   ` calculations Henning Hraban Ramm
2006-09-26 20:14                     ` calculations Peter Rolf
2006-09-26 20:19                       ` calculations Hans Hagen

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