~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to demos/simulation/wheel2/Maple/transfig.tex

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
% Copyright ENPC
 
2
\typeout{TransFig: figure text in LaTeX.}
 
3
\typeout{TransFig: figures in PostScript.}
 
4
 
 
5
\begingroup\makeatletter
 
6
% extract first six characters in \fmtname
 
7
\def\x#1#2#3#4#5#6#7\relax{\def\x{#1#2#3#4#5#6}}
 
8
\expandafter\x\fmtname xxxxxx\relax \def\y{splain}
 
9
\ifx\x\y   % LaTeX or SliTeX?
 
10
\gdef\SetFigFont#1#2#3{%
 
11
  \ifnum #1<17 \tiny\else \ifnum #1<20 \small\else
 
12
  \ifnum #1<24 \normalsize\else \ifnum #1<29 \large\else
 
13
  \ifnum #1<34 \Large\else \ifnum #1<41 \LARGE\else
 
14
     \huge\fi\fi\fi\fi\fi\fi
 
15
  \csname #3\endcsname}
 
16
\else
 
17
\gdef\SetFigFont#1#2#3{\begingroup
 
18
  \count@#1\relax \ifnum 25<\count@ \count@25 \fi
 
19
  \def\x{\endgroup\@setsize\SetFigFont{#2pt}}%
 
20
  \expandafter\x
 
21
    \csname \romannumeral\the\count@ pt\expandafter\endcsname
 
22
    \csname @\romannumeral\the\count@ pt\endcsname
 
23
  \csname #3\endcsname}
 
24
\fi
 
25
\endgroup
 
26
 
 
27
\endinput