~ubuntu-branches/ubuntu/trusty/pyx/trusty

« back to all changes in this revision

Viewing changes to pyx/data/lfs/createlfs.tex

  • Committer: Bazaar Package Importer
  • Author(s): Stuart Prescott
  • Date: 2011-05-20 00:13:52 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110520001352-7jfc1unuvduxji05
Tags: 0.11.1-1
* New upstream release.
* Change documentation build system to sphinx in line with new upstream docs.
* Rebuild lfs files as part of build process.
* Refresh patchs for new version:
  - drop manual-latex-define.patch no longer needed with sphinx.
  - drop siteconfig-static.patch: not needed with new build system
  - drop pyx-text-warnings26.patch: warnings fixed upstream
* Add patch sphinx-mathjax.patch to use pngmath in sphinx rather than mathjax
  which is not yet in Debian.
* Add patch createlfs-no-foiltex.patch to skip generation of foiltex-based
  lfs files that would require non-free components.
* Switch to dpkg-source 3.0 (quilt) format.
* Switch from python-support to dh_python2 as build helper.
* Update copyright format to newer DEP-5 specification.
* Add new files to copyright file.
* Bump standards version to 3.9.2 (no changes required).
* Set DM-Upload-Allowed: yes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
% Copyright (C) 2002 J�rg Lehmann <joergl@users.sourceforge.net>
 
2
% Copyright (C) 2002 Andr� Wobst <wobsta@users.sourceforge.net>
 
3
%
 
4
% This file is part of PyX (http://pyx.sourceforge.net/).
 
5
%
 
6
% PyX is free software; you can redistribute it and/or modify
 
7
% it under the terms of the GNU General Public License as published by
 
8
% the Free Software Foundation; either version 2 of the License, or
 
9
% (at your option) any later version.
 
10
%
 
11
% PyX is distributed in the hope that it will be useful,
 
12
% but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
% GNU General Public License for more details.
 
15
%
 
16
% You should have received a copy of the GNU General Public License
 
17
% along with PyX; if not, write to the Free Software
 
18
% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
19
 
 
20
\endlinechar=-1 % don't add tailing space while \read
 
21
 
 
22
\message{latex style name (e.g. 12ptex)? }
 
23
\read-1 to\latexstylename
 
24
 
 
25
\message{latex class name (e.g. article)? }
 
26
\read-1 to\latexclassname
 
27
 
 
28
\message{latex class options (e.g. 12pt)? }
 
29
\read-1 to\latexclassopt
 
30
 
 
31
\message{initial commands (e.g. \string\usepackage\string{exscale\string})? }
 
32
\read-1 to\latexinit
 
33
 
 
34
\endlinechar=13
 
35
 
 
36
\newwrite\myfile
 
37
 
 
38
\newbox\mybox
 
39
 
 
40
\documentclass[\latexclassopt]{\latexclassname}
 
41
 
 
42
\latexinit
 
43
 
 
44
\newcommand{\writefontsize}[1]{
 
45
  \setbox\mybox=\hbox{#1
 
46
    a $a$
 
47
    \immediate\write\myfile{%
 
48
      \string\def\string#1{%
 
49
        \string\font\string\pyxfont=\fontname\font
 
50
        \string\pyxfont
 
51
        \string\font\string\pyxfonttfa=\fontname\textfont0
 
52
        \string\textfont0=\string\pyxfonttfa
 
53
        \string\font\string\pyxfontsfa=\fontname\scriptfont0
 
54
        \string\scriptfont0=\string\pyxfontsfa
 
55
        \string\font\string\pyxfontssfa=\fontname\scriptscriptfont0
 
56
        \string\scriptscriptfont0=\string\pyxfontssfa
 
57
        \string\font\string\pyxfonttfb=\fontname\textfont1
 
58
        \string\textfont1=\string\pyxfonttfb
 
59
        \string\font\string\pyxfontsfb=\fontname\scriptfont1
 
60
        \string\scriptfont1=\string\pyxfontsfb
 
61
        \string\font\string\pyxfontssfb=\fontname\scriptscriptfont1
 
62
        \string\scriptscriptfont1=\string\pyxfontssfb
 
63
        \string\font\string\pyxfonttfc=\fontname\textfont2
 
64
        \string\textfont2=\string\pyxfonttfc
 
65
        \string\font\string\pyxfontsfc=\fontname\scriptfont2
 
66
        \string\scriptfont2=\string\pyxfontsfc
 
67
        \string\font\string\pyxfontssfc=\fontname\scriptscriptfont2
 
68
        \string\scriptscriptfont2=\string\pyxfontssfc
 
69
        \string\font\string\pyxfonttfd=\fontname\textfont3
 
70
        \string\textfont3=\string\pyxfonttfd
 
71
        \string\font\string\pyxfontsfd=\fontname\scriptfont3
 
72
        \string\scriptfont3=\string\pyxfontsfd
 
73
        \string\font\string\pyxfontssfd=\fontname\scriptscriptfont3
 
74
        \string\scriptscriptfont3=\string\pyxfontssfd
 
75
      }%
 
76
    }
 
77
  }
 
78
}
 
79
 
 
80
\begin{document}
 
81
\immediate\openout\myfile=\latexstylename.lfs
 
82
{\catcode`\%=12\immediate\write\myfile{% This automatically generated file is part of PyX (http://pyx.sourceforge.net/).}}
 
83
{\catcode`\%=12\immediate\write\myfile{% \string\latexstylename="\expandafter\string\latexstylename"}}
 
84
{\catcode`\%=12\immediate\write\myfile{% \string\latexclassname="\expandafter\string\latexclassname"}}
 
85
{\catcode`\%=12\immediate\write\myfile{% \string\latexclassopt="\expandafter\string\latexclassopt"}}
 
86
{\catcode`\%=12\immediate\write\myfile{% \string\latexinit="\expandafter\string\latexinit"}}
 
87
\writefontsize{\tiny}
 
88
\writefontsize{\scriptsize}
 
89
\writefontsize{\footnotesize}
 
90
\writefontsize{\small}
 
91
\writefontsize{\normalsize}
 
92
\writefontsize{\large}
 
93
\writefontsize{\Large}
 
94
\writefontsize{\LARGE}
 
95
\writefontsize{\huge}
 
96
\writefontsize{\Huge}
 
97
\immediate\closeout\myfile
 
98
\end{document}