Difference between revisions of "User:Luigi.scarso"

From Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Scarso luigi personal pages ==
 
== Scarso luigi personal pages ==
 +
 +
'''WARNING THIS CODE DOES NOT WORK!!'''
 +
<textcode>
 +
% AutoScaled: not what I really want, but
 +
% sometimes works
 +
%
 +
\def\AutoScaled#1#2#3#4#5{%
 +
% #1 horiz. limit
 +
% #2 unused (maybe vert. limit)
 +
% #3 horiz. scale
 +
% #4 vert. scale
 +
% #5 text
 +
\setbox800=\hbox{\color[black]{\scale[sx=#3,sy=#4]{\bf #5}}}%
 +
\newdimen\ScaleX \ScaleX=#3pt \newdimen\ScaleY \ScaleY=#4pt %%
 +
\newdimen\LimitX \LimitX=#1 %
 +
\ifdim\wd800 > \LimitX %
 +
\edef\Ratio{\withoutpt{\the\dimexpr( (2\LimitX/(\wd800 /32768))) }}%
 +
\edef\XSCALE{\withoutpt{\the\dimexpr( \Ratio\ScaleX ) }}%
 +
\edef\YSCALE{\withoutpt{\the\dimexpr( \Ratio\ScaleY ) }}%
 +
\setbox800=\hbox{\color[black]{\scale[sx=\XSCALE,sy=\YSCALE]{\bf #5}}}%
 +
\fi%
 +
\box800\relax%
 +
}%%enddef \Autoscaled
 +
</textcode>
 +
 +
----
 +
 +
 
I have download preprint of EUROTEX 2005
 
I have download preprint of EUROTEX 2005
 
[http://www.gutenberg.eu.org/EuroTeX2005/]
 
[http://www.gutenberg.eu.org/EuroTeX2005/]

Revision as of 11:50, 27 April 2005

Scarso luigi personal pages

WARNING THIS CODE DOES NOT WORK!! <textcode> % AutoScaled: not what I really want, but % sometimes works % \def\AutoScaled#1#2#3#4#5{% % #1 horiz. limit % #2 unused (maybe vert. limit) % #3 horiz. scale % #4 vert. scale % #5 text \setbox800=\hbox{\color[black]{\scale[sx=#3,sy=#4]{\bf #5}}}% \newdimen\ScaleX \ScaleX=#3pt \newdimen\ScaleY \ScaleY=#4pt %% \newdimen\LimitX \LimitX=#1 % \ifdim\wd800 > \LimitX % \edef\Ratio{\withoutpt{\the\dimexpr( (2\LimitX/(\wd800 /32768))) }}% \edef\XSCALE{\withoutpt{\the\dimexpr( \Ratio\ScaleX ) }}% \edef\YSCALE{\withoutpt{\the\dimexpr( \Ratio\ScaleY ) }}% \setbox800=\hbox{\color[black]{\scale[sx=\XSCALE,sy=\YSCALE]{\bf #5}}}% \fi% \box800\relax% }%%enddef \Autoscaled </textcode>



I have download preprint of EUROTEX 2005 [1] It's very interesting.

As soon as possible, I'd like to write something about:

  • transforming a xml from a spreadsheet (I'm working on gnumeric) to pdf by context;
  • about python and context (cfr. TeX forever at preprint of EUROTEX 2005);
  • context programming (cfr. Inside_ConTeXt in [2]); maybe I will start with core-ntb
  • Xy-pic (cfr. [3]) maybe it can be confusing, so I'll be wait a few.