summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/jamtimes/jamtimes.dtx
blob: 76ed36f71d2bf95b3e85d4487b9c629b414bc062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
% \iffalse
% $Id: jamtimes.dtx,v 1.26 2010-09-16 02:32:45 boris Exp $
%
% Copyright (c) 2010, Boris Veytsman
%
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions
% are met: 
%
%    * Redistributions of source code must retain the above copyright
%    notice, this list of conditions and the following disclaimer. 
%    * Redistributions in binary form must reproduce the above
%    copyright notice, this list of conditions and the following
%    disclaimer in the documentation and/or other materials provided
%    with the distribution. 
%    * Neither the name of the original author nor the names of the
%    contributors may be used to endorse or promote products derived
%    from this software without specific prior written permission. 
%
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
% CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
% INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
% MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
% DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
% BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
% EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
% TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
% DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
% ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
% OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
% OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
% POSSIBILITY OF SUCH DAMAGE.
%
% \fi 
% \CheckSum{686}
%
%
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~} 
%
%\iffalse
% Taken from xkeyval.dtx
%\fi
%\makeatletter
%\def\DescribeOption#1{\leavevmode\@bsphack
%              \marginpar{\raggedleft\PrintDescribeOption{#1}}%
%              \SpecialOptionIndex{#1}\@esphack\ignorespaces}
%\def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
%\def\SpecialOptionIndex#1{\@bsphack
%    \index{#1\actualchar{\protect\ttfamily#1}
%           (option)\encapchar usage}%
%    \index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
%           usage}\@esphack}
%\def\DescribeOptions#1{\leavevmode\@bsphack
%  \marginpar{\raggedleft\strut\emph{options}%
%  \@for\@tempa:=#1\do{%
%    \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
%  }}\@esphack\ignorespaces}
%\makeatother
%
%
% \MakeShortVerb{|}
% \GetFileInfo{jamtimes.dtx}
% \title{Expanded Times Roman Fonts As Used in 
%   \emph{Journal d'Analyse Math\'ematique}}
% \author{Boris Veytsman\thanks{%
% \href{mailto:borisv@lk.net}{\texttt{borisv@lk.net}},
% \href{mailto:boris@varphi.com}{\texttt{boris@varphi.com}}}} 
% \date{\filedate, \fileversion}
% \maketitle
% \begin{abstract}
%   This package provides \LaTeX{} support for expanded Times Roman
%   font, which has been used by \emph{Journal d'Analyse
%     Math\'ematique} for many years.  Mathematics support is based on
%   \emph{Belleek} fonts.
% \end{abstract}
% \tableofcontents
%
% \changes{v1.0}{2009/10/12}{First fully functional version} 
% \changes{v1.2a}{2010/04/22}{Documentation update} 
% \changes{v1.3}{2010/05/07}{Corrected map entries} 
% \changes{v1.5}{2010/05/31}{Added symbols missing from the Belleek
% fonts} 
% \changes{v1.6}{2010/06/22}{Documentation changes} 
% \changes{v1.7}{2010/07/08}{Uppercase upright Greek} 
% \changes{v1.7}{2010/07/28}{Documentation changes} 
% \changes{v1.9}{2010/09/15}{Fixed a bug in installation script} 
%
% \section{Introduction}
% \label{sec:intro}
% 
% For about a decade \emph{Journal d'Analyse Math\'ematique}
% (\url{http://www.ma.huji.ac.il/jdm/}) used a set of fonts based on
% the well known Times Roman family\footnote{It is now difficult to
%   say who designed these fonts initially.  Dov Goldstein supported
%   the fonts for a number of years.}.  The fonts were slightly
% expanded in the $x$ direction.  This small change gave the journal
% its unique look and feel.  The fonts worked for many years.
% However, over this time a number of problems turned up:
% \begin{enumerate}
% \item The fonts were originally created for |dvips| and included
% some PostScript trickery (for example, in dotless $\jmath$).  This
% made their use with |pdftex| difficult.
% \item The fonts included only |OT1| encoding.
% \item The math was based on the combination of Times Roman
% \emph{and} Computer Modern for the symbols absent in Times Roman.
% These fonts do not mesh well.  Later the journal tried to use just
% Computer Modern math throughout, which still contrasted with the
% body text.
% \item It was considered beneficial to give the authors the option of
% prepare their papers with the journal fonts, and the package lacked
% documentation and installation instruction.
% \end{enumerate}
% At last \emph{Magnes Press,} the publisher of \emph{Journal
%   d'Analyse Math\'ematique,} commissioned the overhaul of the
% journal \TeX{} styles.  This package is a part of the effort.
%
% We recreate the fonts from scratch.  The mathematics is based on
% Belleek fonts~\cite{Kinch98:Belleek}, expanded to match the body.
% The text fonts are provided in |OT1| and |T1| encoding.  
%
%
% The package works both with the |pdflatex| route and the
% |latex|$to$|dvips| route.  The files |textsample.pdf|,
% |mathsample.pdf| and |textsample_ps.pdf|, |mathsample_ps.pdf|
% provide the sample of output for these two routes.  
%
%\section{User Guide}
%\label{sec:userguide}
%
%
%\subsection{Installation}
%\label{sec:install}
%
% You need Belleek fonts~\cite{Kinch98:Belleek} and (optionally) Math
% Design fonts~\cite{Pichaureau05:MathDesign}.  They are now a part
% of most modern distributions.  If you do not have them, just
% download them from CTAN.  
%
% Download the file 
% \url{http://ctan.tug.org/install/fonts/psfonts/public/jamstimes.tds.zip} 
% and unzip it in the \path{$TEXMF} directory. For \TeX Live it is
% probably \path{/usr/local/texlive/texmf-local}, or
% \path{/usr/local/share/texmf-local}, or \path{~/texmf}, or
% \path{C:\Program Files\texlive\texmf-local}, etc.  For Mik\TeX{} it
% is probably \path{C:\miktex\texmf} or \path{C:\miktex\localtexmf}.
% Run |texhash| to update the database of file names.  
% 
% Now you need to add the map file |jtm.map| to the configuration files
% of |dvips| and |pdftex|.  This again depends on your
% distribution. For \TeX Live you create a file
% \path{$TEXMF/updmap.d/50jtm.cfg} with just the line
% \begin{verbatim}
% Map jtm.map
% \end{verbatim}
% and then run |texhash| and |updmap|.  If you use Debian or Ubuntu,
% the system-wide |updmap.d| directory is located in |/etc|, and you
% need to create the file |jtm.list| in
% \path{/var/lib/tex-common/fontmap-cfg/whitnca.list} with the line
% \begin{verbatim}
% 50jtm
% \end{verbatim}
%
%
% If you use Mik\TeX2.6, run
% \begin{verbatim}
% initexmf --edit-config-file updmap  
% \end{verbatim}
% Add to the config file
% \begin{verbatim}
%  Map jtm.map
% \end{verbatim}
% save, exit and run |updmap|. 
% 
% If you use Mik\TeX2.5 or earlier, edit
% \path{localtexmf\web2c\updmap.cfg}, adding the line
% \begin{verbatim}
% Map jtm.map
% \end{verbatim}
% and run |updmap|.
%
% Refer to your distribution documentation for the details.
%
%
% An interesting question: it is possible to use the package with the
% commercial MathTime\textsuperscript{\texttrademark} fonts from
% PC\TeX{} (\url{http://www.pctex.com/})?  I think that the answer is
% positive, but since I do not have these fonts, I have not tested
% this setup.  If you have them, just change the lines in the file
% |jtm.map| to refer to the proper fonts.  Note that these fonts have
% some options (bold math, heavy math) not supported by the package.
%
%\subsection{Usage}
%\label{sec:usage}
%
% If your installation have been successful, add  the line
% \begin{quote}
% |\usepackage|\oarg{options}\marg{jamtimes}  
% \end{quote}
% to the preamble of your document. Note that this package changes
% both math and text fonts.
%
% The package provides a number of options.  The default values of the
% options correspond to the practice of \emph{Journal d'Analyse
%   Math\'ematique.}  You can try to change them to get a different
%   look and feel.
%
%
% \DescribeOption{scaled}
% The package has the option |scaled=...|.  The fonts are uniformly
% scaled  according to the numerical value of the option.  By default
% the fonts are scaled 5\%, as if the setting |scaled=1.05| is in
% effect.  If you do not want to scale 
% the fonts at all, just call the package with the option |scaled=1|.
% 
%
% \DescribeOptions{sffamily,ttfamily}
% By default the package uses Helvetica as the sans serif font and
% Courier as the monospaced font.  This default can be changed with
% the options |sffamily=...| (the default value is |phv|) and
% |ttfamily=...| (the default value is |pcr|).  
%
% \DescribeOption{sfscaled}
% If the sans serif family is Helvetica, the package provides an
% additional options |sfscaled=...|.  It sets the  scaling
% of the sans serif fonts.  By default it is 0.94:  this provides a
% good mesh with 5\% scaled Times fonts.
%
% \DescribeOption{amsfontsscaled}
% The package automatically loads  amsfonts, including Euler Script,
% and Euler Fraktur fonts.  The option |amsfontsscaled=...| provides a
% way to change the scaling of these fonts.  By default they are
% scaled 5\%, just as the body and main math fonts.
%
%
% The package provides the fonts listed in Table~\ref{tab:fonts}.
% Note that the expansion mentioned there always means expansion along
% the horizontal axis \emph{in addition} to the scaling set by the
% package options.
%
% \DescribeMacro{\bfdefault}
% Another notable detail is that usually \LaTeX{} sets |\bfdefault| to
% be |bx| (bold extended), and most font packages substitute it to |b|
% (bold).  Our fonts have both bold and bold extended fonts, and by
% default use bold extended fonts for |\bfdefault|.  If you want to
% use bold extended fonts instead, just say
% \begin{quote}
%   |\renewcommand{\bdefault}{b}|
% \end{quote}
% 
%
% \begin{table}
%   \begin{minipage}{\linewidth}
%     \renewcommand{\thefootnote}{\thempfootnote}
%     \centering
%     \caption{Fonts Provided by the Package.  \texttt{EE} corresponds
%       to font encoding (see~\cite{fontname}).}
%     \label{tab:fonts}
%     \begin{tabular}{llp{2.2in}}
%       \toprule
%       NFSS Code & Fontname Name  & Comments\\
%       \midrule
%       \emph{c, n} & |jtmrEEc| & Times Roman, compressed 20\%\\
%       \emph{m, n} & |jtmrEEe| & Times Roman, expanded 5\%\\
%       \emph{m, it} & |jtmriEEe| & Times Roman Italic, expanded 5\%\\
%       \emph{m, sl} & |jtmroEEe| & (fake) Times Roman Oblique,
%       expanded 5\%\\ 
%       \emph{m, sc} & |jtmrcEEe| & (fake) Small Caps Times Roman,
%       expanded 5\%\\ 
%       \emph{b, n} & |ptmbEE|\footnote{These fonts coincide with the
%       standard Times fonts} & Times Bold\\
%       \emph{b, it} & |ptmbiEE|\footnotemark[1] & Times Bold Italic\\
%       \emph{b, sl} & |ptmboEE|\footnotemark[1] & (fake) Times Bold Oblique\\
%       \emph{b, sc} & |ptmbcEE|\footnotemark[1] & (fake) small caps Times Bold\\ 
%       \emph{x, n} & |jtmrEEw| & Times Roman, expanded 25\%\\
%       \emph{x, it} & |jtmriEEw| & Times Roman Italic, expanded 25\%\\
%       \emph{x, sl} & |jtmroEEw| & (fake) Times Roman Oblique,
%       expanded 25\%\\ 
%       \emph{x, sc} & |jtmrcEEw| & (fake) Small Caps Times Roman,
%       expanded 25\%\\ 
%       \emph{bx, n} & |jtmbEEv| & Times Bold, expanded 15\%\\
%       \emph{bx, it} & |jtmbiEEv| & Times Bold Italic, expanded 15\%\\
%       \emph{bx, sl} & |jtmboEEv| & (fake) Times Bold Oblique, expanded
%       15\%\\
%       \emph{bx, sc} & |jtmbcEEv| & (fake) small caps Times Bold,
%       expanded 15\%\\ 
%       \bottomrule
%     \end{tabular}
%   \end{minipage}
% \end{table}
% 
%
%
%
% \StopEventually{
%   \clearpage
% \paragraph{Acknowledgements}
%
% This package was commissioned by \emph{Magnes Press,}
% \url{http://www.magnespress.co.il}. I am greatly indebted to Eva
% Goldman for the patient testing of the fonts.
%
%   \bibliography{jamtimes}
%   \bibliographystyle{unsrt}}
%
% \clearpage
%\section{Implementation}
%\label{sec:impl}
%
%\subsection{Identification}
%\label{sec:ident}
%
% We start with the declaration who we are.  Most |.dtx| files put
% driver code in a separate driver file |.drv|.  We roll this code into the
% main file, and use the pseudo-guard |<gobble>| for it.
%    \begin{macrocode}
%<style>\NeedsTeXFormat{LaTeX2e}
%<*gobble>
\ProvidesFile{jamtimes.dtx}
%</gobble>
%<style>\ProvidesClass{jamtimes}
%<drv>\ProvidesFile{drv.tex}
%<map>\ProvidesFile{map.tex}
%<jamomlhax>\ProvidesMtxPackage{jamomlhax.mtx}
%<*style|drv|map>
[2010/09/15 v1.9 Expanded Times Fonts (Journal d'Analyse Mathematique)]
%</style|drv|map>
%    \end{macrocode}
% And the driver code:
%    \begin{macrocode}
%<*gobble>
\documentclass{ltxdoc}
\usepackage{booktabs}
\usepackage[tableposition=top]{caption}
\usepackage{url}
\usepackage[breaklinks,colorlinks,linkcolor=black,citecolor=black,
            pagecolor=black,urlcolor=black,hyperindex=false]{hyperref}
\PageIndex
\CodelineIndex
\RecordChanges
\EnableCrossrefs
\begin{document}
  \DocInput{jamtimes.dtx}
\end{document}
%</gobble> 
%    \end{macrocode}
%
%\subsection{Fontinst Driver}
%\label{sec:pnb-drv}
%
% This follows~\cite{fontinstallationguide}.
% 
% First, the preamble
%    \begin{macrocode}
%<*drv>
\input fontinst.sty
%    \end{macrocode}
%
% Definition of the parameters
%    \begin{macrocode}
\setint{slant}{167}
\setint{smallcapsscale}{750}
\setint{compressedscale}{800}
\setint{extendedscale}{1050}
\setint{extraextendedscale}{1150}
\setint{widescale}{1250}
%    \end{macrocode}
%
% Starting recording transforms:
%    \begin{macrocode}
\recordtransforms{rec.tex}
%    \end{macrocode}
%
% Scale all text fonts in the |8r| encoding.  Interesting enough, Dov
% preferred medium fonts to be extended comparing to the bold ones.
% We preserve this choice.
%    \begin{macrocode}
\transformfont{jtmr8rc}{\xscalefont{\int{compressedscale}}%
  \reencodefont{8r}{\fromafm{ptmr8a}}}
\transformfont{jtmr8re}{\xscalefont{\int{extendedscale}}%
  \reencodefont{8r}{\fromafm{ptmr8a}}}
\transformfont{jtmri8re}{\xscalefont{\int{extendedscale}}%
  \reencodefont{8r}{\fromafm{ptmri8a}}}
\transformfont{jtmro8re}{\slantfont{\int{slant}}%
  \fromany{jtmr8re}}
\transformfont{jtmr8rw}{\xscalefont{\int{widescale}}%
  \reencodefont{8r}{\fromafm{ptmr8a}}}
\transformfont{jtmri8rw}{\xscalefont{\int{widescale}}%
  \reencodefont{8r}{\fromafm{ptmri8a}}}
\transformfont{jtmro8rw}{\slantfont{\int{slant}}%
  \fromany{jtmr8rw}}
\transformfont{jtmb8rv}{\xscalefont{\int{extraextendedscale}}%
  \reencodefont{8r}{\fromafm{ptmb8a}}}
\transformfont{jtmbi8rv}{\xscalefont{\int{extraextendedscale}}%
  \reencodefont{8r}{\fromafm{ptmbi8a}}}
\transformfont{jtmbo8rv}{\slantfont{\int{slant}}%
  \fromany{jtmb8rv}}
%    \end{macrocode}
% 
% Same with math fonts.  Note that Dov wanted medium weight
% mathematical fonts \emph{not} extended.  We reverse this decision.
% Note that |rblmi| does not have non-Greek letters, so we call its
% encoding |7z| instead of |7m|
%    \begin{macrocode}
%\transformfont{jtmr7voe}{\fromafm{blex}}
\transformfont{jtmr7yoe}{\xscalefont{\int{extendedscale}}\fromafm{blsy}}
\transformfont{jtmri7ze}{\xscalefont{\int{extendedscale}}\fromafm{rblmi}}
%    \end{macrocode}
% 
%
% There is no hook in |fontinst.sty| for writing our own preamble to
% |.fd| file.  However, we need to add scaling commands to the
% preamble. OK, we will patch fontinst:
%    \begin{macrocode}
\fontinstcc
\def\fd_family#1#2#3{
   \a_toks{#3}
   \edef\lowercase_file{\lowercase{
     \edef\noexpand\lowercase_file{#1#2.fd}}}
   \lowercase_file
   \open_out{\lowercase_file}
   \out_line{\percent_char~Filename:~\lowercase_file}
   \out_line{\percent_char~Created~by:~tex~\jobname}
   \out_line{\percent_char~Created~using~fontinst~v\fontinstversion}
   \out_line{}
   \out_line{\percent_char~THIS~FILE~SHOULD~BE~PUT~IN~A~TEX~INPUTS~
      DIRECTORY}
   \out_line{}
   \out_line{\string\ProvidesFile{\lowercase_file}}
   \out_lline{[
      \the\year/
      \ifnum10>\month0\fi\the\month/
      \ifnum10>\day0\fi\the\day\space
      Fontinst~v\fontinstversion\space
      font~definitions~for~#1/#2.
   ]}
   \out_line{}
%    \end{macrocode}
% Here is our patch:
%    \begin{macrocode}
   \out_line{\string\expandafter\string\ifx\string\csname\space
     Jtms@scale\string\endcsname\string\relax}
   \out_line{\space\string\let\string\Jtms@@scale\string\@empty}
   \out_line{\string\else}
   \out_line{\space\string\edef\string\Jtms@@scale\left_brace_char 
       s*[\string\csname\space Jtms@scale\string\endcsname]
       \right_brace_char\percent_char}
   \out_line{\string\fi\percent_char}
   \out_line{}
%    \end{macrocode}
% End of the patch.
%    \begin{macrocode}
   \out_line{\string\DeclareFontFamily{#1}{#2}{\the\a_toks}}
   {
      \csname #1-#2\endcsname
      \out_line{}
      \let\do_shape=\substitute_shape
      \csname #1-#2\endcsname
      \let\do_shape=\remove_shape
      \csname #1-#2\endcsname
   }
   \x_cs\g_let{#1-#2}\x_relax
   \out_line{}
   \out_line{\string\endinput}
   \close_out{Font~definitions}
}
\normalcc
%    \end{macrocode}
% 
% Now we are ready to install fonts.  Note that bold fonts here are
% not extended, so we use standard Times fonts for bold.
% 
% First, |OT1|:
%    \begin{macrocode}
\installfonts
\installfamily{OT1}{jtm}{\skewchar\font=127}
\installfont{jtmr7tc}{jtmr8rc,jtmri7ze,newlatin,jamot1hax}{ot1}{OT1}{jtm}{c}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmr7te}{jtmr8re,jtmri7ze,newlatin,jamot1hax}{ot1}{OT1}{jtm}{m}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmri7te}{jtmri8re,jtmri7ze,newlatin,jamot1hax}{ot1}{OT1}{jtm}{m}{it}{
  <->\string\Jtms@@scale}
\installfont{jtmro7te}{jtmro8re,jtmri7ze,newlatin,jamot1hax}{ot1}{OT1}{jtm}{m}{sl}{
  <->\string\Jtms@@scale}
\installfont{jtmrc7te}{jtmr8re,jtmri7ze,newlatin,jamot1hax}{ot1c}{OT1}{jtm}{m}{sc}{
  <->\string\Jtms@@scale}
\installfontas{ptmb7t}{OT1}{jtm}{b}{n}{
  <->\string\Jtms@@scale}
\installfontas{ptmbi7t}{OT1}{jtm}{b}{it}{
  <->\string\Jtms@@scale}
\installfontas{ptmbo7t}{OT1}{jtm}{b}{sl}{
  <->\string\Jtms@@scale}
\installfontas{ptmbc7t}{OT1}{jtm}{b}{sc}{
  <->\string\Jtms@@scale}
\installfont{jtmr7tw}{jtmr8rw,jtmri7ze,newlatin,jamot1hax}{ot1}{OT1}{jtm}{x}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmri7tw}{jtmri8rw,jtmri7ze,newlatin,jamot1hax}{ot1}{OT1}{jtm}{x}{it}{
  <->\string\Jtms@@scale}
\installfont{jtmro7tw}{jtmro8rw,jtmri7ze,newlatin,jamot1hax}{ot1}{OT1}{jtm}{x}{sl}{
  <->\string\Jtms@@scale}
\installfont{jtmrc7tw}{jtmr8rw,jtmri7ze,newlatin,jamot1hax}{ot1c}{OT1}{jtm}{x}{sc}{
  <->\string\Jtms@@scale}
\installfont{jtmb7tv}{jtmb8rv,jtmri7ze,newlatin,jamot1hax}{ot1}{OT1}{jtm}{bx}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmbi7tv}{jtmbi8rv,jtmri7ze,newlatin,jamot1hax}{ot1}{OT1}{jtm}{bx}{it}{
  <->\string\Jtms@@scale}
\installfont{jtmbo7tv}{jtmbo8rv,jtmri7ze,newlatin,jamot1hax}{ot1}{OT1}{jtm}{bx}{sl}{
  <->\string\Jtms@@scale}
\installfont{jtmbc7tv}{jtmb8rv,jtmri7ze,newlatin,jamot1hax}{ot1c}{OT1}{jtm}{bx}{sc}{
  <->\string\Jtms@@scale}
%    \end{macrocode}
% 
% Then |T1|
%    \begin{macrocode}
\installfamily{T1}{jtm}{}
\installfont{jtmr8tc}{jtmr8rc,jtmri7ze,newlatin}{t1}{T1}{jtm}{c}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmr8te}{jtmr8re,jtmri7ze,newlatin,jtmri7ze}{t1}{T1}{jtm}{m}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmri8te}{jtmri8re,jtmri7ze,newlatin,jtmri7ze}{t1}{T1}{jtm}{m}{it}{
  <->\string\Jtms@@scale}
\installfont{jtmro8te}{jtmro8re,jtmri7ze,newlatin}{t1}{T1}{jtm}{m}{sl}{
  <->\string\Jtms@@scale}
\installfont{jtmrc8te}{jtmr8re,jtmri7ze,newlatin}{t1c}{T1}{jtm}{m}{sc}{
  <->\string\Jtms@@scale}
\installfontas{ptmb8t}{T1}{jtm}{b}{n}{
  <->\string\Jtms@@scale}
\installfontas{ptmbi8t}{T1}{jtm}{b}{it}{
  <->\string\Jtms@@scale}
\installfontas{ptmbo8t}{T1}{jtm}{b}{sl}{
  <->\string\Jtms@@scale}
\installfontas{ptmbc8t}{T1}{jtm}{b}{sc}{
  <->\string\Jtms@@scale}
\installfont{jtmr8tw}{jtmr8rw,jtmri7ze,newlatin}{t1}{T1}{jtm}{x}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmri8tw}{jtmri8rw,jtmri7ze,newlatin}{t1}{T1}{jtm}{x}{it}{
  <->\string\Jtms@@scale}
\installfont{jtmro8tw}{jtmro8rw,jtmri7ze,newlatin}{t1}{T1}{jtm}{x}{sl}{
  <->\string\Jtms@@scale}
\installfont{jtmrc8tw}{jtmr8rw,jtmri7ze,newlatin}{t1c}{T1}{jtm}{x}{sc}{
  <->\string\Jtms@@scale}
\installfont{jtmb8tv}{jtmb8rv,jtmri7ze,newlatin}{t1}{T1}{jtm}{bx}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmbi8tv}{jtmbi8rv,jtmri7ze,newlatin}{t1}{T1}{jtm}{bx}{it}{
  <->\string\Jtms@@scale}
\installfont{jtmbo8tv}{jtmbo8rv,jtmri7ze,newlatin}{t1}{T1}{jtm}{bx}{sl}{
  <->\string\Jtms@@scale}
\installfont{jtmbc8tv}{jtmb8rv,jtmri7ze,newlatin}{t1c}{T1}{jtm}{bx}{sc}{
  <->\string\Jtms@@scale}
%    \end{macrocode}
%
% Then |TS1|.  We do not fake small caps here, so |textcomp| can take
% (faked) |\texteuro| from normal fonts.
%    \begin{macrocode}
\installfamily{TS1}{jtm}{}
\installfont{jtmr8cc}{jtmr8rc,textcomp}{ts1}{TS1}{jtm}{c}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmr8ce}{jtmr8re,textcomp,jtmri7ze}{ts1}{TS1}{jtm}{m}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmri8ce}{jtmri8re,textcomp,jtmri7ze}{ts1}{TS1}{jtm}{m}{it}{
  <->\string\Jtms@@scale}
\installfont{jtmro8ce}{jtmro8re,textcomp}{ts1}{TS1}{jtm}{m}{sl}{
  <->\string\Jtms@@scale}
%\installfont{jtmrc8te}{TS1}{jtm}{m}{sc}{
%  <->\string\Jtms@@scale}
\installfontas{ptmb8c}{TS1}{jtm}{b}{n}{
  <->\string\Jtms@@scale}
\installfontas{ptmbi8c}{TS1}{jtm}{b}{it}{
  <->\string\Jtms@@scale}
\installfontas{ptmbo8c}{TS1}{jtm}{b}{sl}{
  <->\string\Jtms@@scale}
%\installfontas{ptmbc8t}{TS1}{jtm}{b}{sc}{
%  <->\string\Jtms@@scale}
\installfont{jtmr8cw}{jtmr8rw,textcomp}{ts1}{TS1}{jtm}{x}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmri8cw}{jtmri8rw,textcomp}{ts1}{TS1}{jtm}{x}{it}{
  <->\string\Jtms@@scale}
\installfont{jtmro8cw}{jtmro8rw,textcomp}{ts1}{TS1}{jtm}{x}{sl}{
  <->\string\Jtms@@scale}
%\installfontas{jtmrc8tw}{TS1}{jtm}{x}{sc}{
%  <->\string\Jtms@@scale}
\installfont{jtmb8cv}{jtmb8rv,textcomp}{ts1}{TS1}{jtm}{bx}{n}{
  <->\string\Jtms@@scale}
\installfont{jtmbi8cv}{jtmbi8rv,textcomp}{ts1}{TS1}{jtm}{bx}{it}{
  <->\string\Jtms@@scale}
\installfont{jtmbo8cv}{jtmbo8rv,textcomp}{ts1}{TS1}{jtm}{bx}{sl}{
  <->\string\Jtms@@scale}
%\installfontas{jtmbc8tv}{TS1}{jtm}{bx}{sc}{
%  <->\string\Jtms@@scale}
%    \end{macrocode}
%
%
% Now math fonts.  We add italics to the |OML| fonts.  Since there are
% some fonts missing in the Beleek smybols fonts, we reset them and
% take fake fonts from Computer Modern
% \changes{v1.1}{2009/10/14}{Added skewchar parameters} 
%    \begin{macrocode}
\installfamily{OML}{jtm}{\skewchar\font=127}
\installfont{jtmri7me}{jtmri7ze,jtmri7te,cmmi10,jamomlhax}{oml}{OML}{jtm}{m}{it}{
  <->\string\Jtms@@scale}
\installfont{jtmbi7me}{jtmbi7tv,jtmri7ze,cmmib10,jamomlhax}{oml}{OML}{jtm}{bx}{it}{
  <->\string\Jtms@@scale}
\installfamily{OMS}{jtm}{\skewchar\font=48}
\installfont{jtmr7ye}{jtmr7yoe,cmsy10}{oms}{OMS}{jtm}{m}{n}{
  <->\string\Jtms@@scale}
%    \end{macrocode}
% 
%
% And the end:
%    \begin{macrocode}
\endinstallfonts
\endrecordtransforms
\bye
%</drv>
%    \end{macrocode}
% 
%\subsection{Fontmap Generation}
%\label{sec:fontmap}
%
% This is a standard procedure~\cite{fontinstallationguide}.  We
% use URW Times files, because |pdftex| cannot extend fonts unless
% they are embedded.  
%    \begin{macrocode}
%<*map>
\input finstmsc.sty
\resetstr{PSfontsuffix}{.pfb}
\specifypsfont{Times-Roman}{\download{utmr8a.pfb}}
\specifypsfont{Times-Italic}{\download{utmri8a.pfb}}
\specifypsfont{Times-Bold}{\download{utmb8a.pfb}}
\specifypsfont{Times-BoldItalic}{\download{utmbi8a.pfb}}
%\etxtoenc{omx}{texmext}
%\enctoetx{texmext}{omx}
\adddriver{dvips}{jtm.map}
\input rec.tex
\donedrivers
\bye
%</map>
%    \end{macrocode}
%
%\subsection{Style File}
%\label{sec:style}
%
% First, define all options:
%    \begin{macrocode}
%<*style>
\RequirePackage{xkeyval}
\DeclareOptionX{scaled}{\gdef\Jtms@scale{#1}}
\DeclareOptionX{sfscaled}{\gdef\Hv@scale{#1}}
\DeclareOptionX{amsfontsscaled}{\gdef\AmsFonts@scale{#1}}
\DeclareOptionX{sffamily}{\gdef\sfdefault{#1}}
\DeclareOptionX{ttfamily}{\gdef\ttdefault{#1}}
\ExecuteOptionsX{scaled=1.05,sfscaled=0.94,amsfontsscaled=1.05,sffamily=phv,%
  ttfamily=pcr}
\ProcessOptionsX
\edef\AmsFonts@@scale{*[\csname AmsFonts@scale\endcsname]}
%    \end{macrocode}
%
%   Now we make |jtm| the text default.
%    \begin{macrocode}
\def\rmdefault{jtm}
%    \end{macrocode}
%
%
% \changes{v1.1}{2009/10/14}{Used math design for large symbols} 
% Math is more complex.  We follow mostly~\cite{Hoenig98:TeXUnbound}.
% Note that |blex| font is broken, so we use math design font
% |cmex| for large symbols.
%    \begin{macrocode}
\DeclareSymbolFont{operators}       {OT1}{jtm}{m}{n}
\DeclareSymbolFont{letters}         {OML}{jtm}{m}{it}
\DeclareSymbolFont{symbols}         {OMS}{jtm}{m}{n}
\DeclareSymbolFont{largesymbols}    {OMX}{cmex}{m}{n}
\SetSymbolFont{operators}{bold}     {OT1}{jtm}{bx}{n}
\SetSymbolFont{letters}{bold}       {OML}{jtm}{bx}{it}
\SetMathAlphabet{\mathrm}{normal}{OT1}{\rmdefault}{m}{n}
\SetMathAlphabet{\mathbf}{normal}{OT1}{\rmdefault}{b}{n}
\SetMathAlphabet{\mathit}{normal}{OT1}{\rmdefault}{m}{it}
\SetMathAlphabet{\mathsf}{normal}{OT1}{\sfdefault}{m}{n}
\SetMathAlphabet{\mathtt}{normal}{OT1}{\ttdefault}{m}{n}
\DeclareMathAlphabet{\mathbold}   {OT1}{jtm}{bx}{it}
\DeclareMathSymbol{\nabla}{\mathord}{symbols}{114}
\DeclareMathSymbol{\Gamma}{\mathalpha}{operators}{0}
\DeclareMathSymbol{\Delta}{\mathalpha}{operators}{1}
\DeclareMathSymbol{\Theta}{\mathalpha}{operators}{2}
\DeclareMathSymbol{\Lambda}{\mathalpha}{operators}{3}
\DeclareMathSymbol{\Xi}{\mathalpha}{operators}{4}
\DeclareMathSymbol{\Pi}{\mathalpha}{operators}{5}
\DeclareMathSymbol{\Sigma}{\mathalpha}{operators}{6}
\DeclareMathSymbol{\Upsilon}{\mathalpha}{operators}{7}
\DeclareMathSymbol{\Phi}{\mathalpha}{operators}{8}
\DeclareMathSymbol{\Psi}{\mathalpha}{operators}{9}
\DeclareMathSymbol{\Omega}{\mathalpha}{operators}{10}
%    \end{macrocode}
% 
%
% We change the scale of amsfonts:
%    \begin{macrocode}
\RequirePackage{eucal,amsfonts}
\DeclareFontFamily{U}{msa}{}
\DeclareFontShape{U}{msa}{m}{n}{%
  <5><6><7><8><9>  gen\AmsFonts@@scale msam%
  <10><10.95><12><14.4><17.28><20.74><24.88> s\AmsFonts@@scale msam10%
  }{}
\DeclareFontFamily{U}{msb}{}
\DeclareFontShape{U}{msb}{m}{n}{%
  <5><6><7><8><9>gen\AmsFonts@@scale msbm%
  <10><10.95><12><14.4><17.28><20.74><24.88>s\AmsFonts@@scale msbm10%
  }{}
\DeclareFontFamily{U}{euf}{}
\DeclareFontShape{U}{euf}{m}{n}{%
  <5><6><7><8><9>gen\AmsFonts@@scale eufm%
  <10><10.95><12><14.4><17.28><20.74><24.88>s\AmsFonts@@scale eufm10%
  }{}
\DeclareFontShape{U}{euf}{b}{n}{%
  <5><6><7><8><9>gen\AmsFonts@@scale eufb%
  <10><10.95><12><14.4><17.28><20.74><24.88>s\AmsFonts@@scale eufb10%
  }{}
\DeclareFontFamily{U}{euex}{}
\DeclareFontShape{U}{euex}{m}{n}{%
  <5-8>sfixed\AmsFonts@@scale euex7<8><9>gen\AmsFonts@@scale euex%
  <10><10.95><12><14.4><17.28><20.74><24.88>s\AmsFonts@@scale euex10%
  }{}
\DeclareFontFamily{U}{eus}{\skewchar\font'60}
\DeclareFontShape{U}{eus}{m}{n}{%
  <5><6><7><8><9>gen\AmsFonts@@scale eusm%
  <10><10.95><12><14.4><17.28><20.74><24.88>s\AmsFonts@@scale eusm10%
  }{}
\DeclareFontShape{U}{eus}{b}{n}{%
  <5><6><7><8><9>gen\AmsFonts@@scale eusb%
  <10><10.95><12><14.4><17.28><20.74><24.88>s\AmsFonts@@scale eusb10%
  }{}
%    \end{macrocode}
% 
% \begin{macro}{\hbar}
% \changes{v1.1}{2009/10/14}{Added macro} 
% Redefine \verb|\hbar|, so it is like $h$ (\verb|amsmath| defines a
% different shape).  The trick is
% from~\cite{Schmidt04:PSNFSS9.2}
%    \begin{macrocode}
\DeclareRobustCommand\hbar{{%
 \dimen@.04em%
 \dimen@ii.06em%
 \def\@tempa##1##2{{%
   \lower##1\dimen@\rlap{\kern##1\dimen@ii\the##2 0\char22}}}%
 \mathchoice\@tempa\@ne\textfont
            \@tempa\@ne\textfont
            \@tempa\defaultscriptratio\scriptfont
            \@tempa\defaultscriptscriptratio\scriptscriptfont
  h}}
%    \end{macrocode}
% \end{macro}
% 
%    \begin{macrocode}
%</style>
%    \end{macrocode}
%
%
%\subsection{Some Auxiliary Files}
%\label{sec:aux}
%
% \changes{v1.2}{2010/04/10}{Added jamot1hax.mtx}
% 
% In the OT1 encoding we want upcase Greek
%    \begin{macrocode}
%<*jamot1hax>
\relax

Upcase Greek for OT1

\metrics

\unsetglyph{Gamma}
\setglyph{Gamma}
\glyph{Gamma1}{1000}
\endsetglyph
\unsetglyph{Delta}
\setglyph{Delta}
\glyph{Delta1}{1000}
\endsetglyph
\unsetglyph{Theta}
\setglyph{Theta}
\glyph{Theta1}{1000}
\endsetglyph
\unsetglyph{Theta}
\setglyph{Theta}
\glyph{Theta1}{1000}
\endsetglyph
\unsetglyph{Lambda}
\setglyph{Lambda}
\glyph{Lambda1}{1000}
\endsetglyph
\unsetglyph{Xi}
\setglyph{Xi}
\glyph{Xi1}{1000}
\endsetglyph
\unsetglyph{Pi}
\setglyph{Pi}
\glyph{Pi1}{1000}
\endsetglyph
\unsetglyph{Sigma}
\setglyph{Sigma}
\glyph{Sigma1}{1000}
\endsetglyph
\unsetglyph{Upsilon}
\setglyph{Upsilon}
\glyph{Upsilon1}{1000}
\endsetglyph
\unsetglyph{Phi}
\setglyph{Phi}
\glyph{Phi1}{1000}
\endsetglyph
\unsetglyph{Psi}
\setglyph{Psi}
\glyph{Psi1}{1000}
\endsetglyph
\unsetglyph{Omega}
\setglyph{Omega}
\glyph{Omega1}{1000}
\endsetglyph


\endmetrics
%</jamot1hax>
%    \end{macrocode}
%
%
% \changes{v1.2}{2010/04/10}{Added jamomlhax.mtx}
% This main idea is  taken from~\cite{Hoenig98:MathInst}.  We changed
% the parameters, of course.  
%    \begin{macrocode}
%<*jamomlhax>
\relax

These hacks help adjust the positioning of accents on italic characters.

\metrics

% \skewkern sets a skewchar kern, assuming that tie is the skewchar. 
\setcommand\skewkern#1#2{\setkern{#1}{tie}{#2}} 

% We need to check that tie is defined
\ifisglyph{tie}\then\else\setglyph{tie}\endsetglyph\fi


\skewkern{A}{75} 
\skewkern{B}{100} 
\skewkern{C}{100} 
\skewkern{D}{50} 
\skewkern{E}{75} 
\skewkern{F}{75} 
\skewkern{G}{100} 
\skewkern{H}{50} 
\skewkern{I}{100} 
\skewkern{J}{100} 
\skewkern{K}{75} 
\skewkern{M}{100} 
\skewkern{N}{50} 
\skewkern{O}{100} 
\skewkern{P}{100} 
\skewkern{Q}{100} 
\skewkern{R}{100} 
\skewkern{S}{100} 
\skewkern{T}{50} 
\skewkern{U}{50} 
\skewkern{V}{50} 
\skewkern{W}{50} 
\skewkern{X}{50} 
\skewkern{Y}{50} 
\skewkern{Z}{50} 
\skewkern{a}{75} 
\skewkern{c}{75} 
\skewkern{d}{100} 
\skewkern{e}{75} 
\skewkern{f}{140} 
\skewkern{g}{75} 
\skewkern{i}{75} 
\skewkern{j}{75} 
\skewkern{l}{100} 
\skewkern{m}{50} 
\skewkern{n}{50} 
\skewkern{o}{75} 
\skewkern{p}{75} 
\skewkern{q}{75} 
\skewkern{r}{50} 
\skewkern{s}{100} 
\skewkern{t}{50} 
\skewkern{u}{75} 
\skewkern{v}{-150} 
\skewkern{w}{75} 
\skewkern{x}{50} 
\skewkern{y}{50} 
\skewkern{z}{50} 
\skewkern{dotlessi}{50} 
\skewkern{dotlessj}{120}
\skewkern{Gamma}{100}
\skewkern{Delta}{200}
\skewkern{Theta}{100}
\skewkern{Lambda}{200}
\skewkern{Xi}{125}
\skewkern{Pi}{100}
\skewkern{Sigma}{100}
\skewkern{Upsilon}{100}
\skewkern{Phi}{100}
\skewkern{Psi}{50}
\skewkern{Omega}{100}
%\skewkern{alpha}{50}
\skewkern{beta}{75}
\skewkern{gamma}{25}
\skewkern{delta}{100}
\skewkern{epsilon1}{75}
\skewkern{zeta}{50}
\skewkern{eta}{25}
\skewkern{theta}{50}
%\skewkern{iota}{50}
%\skewkern{kappa}{50}
%\skewkern{lambda}{50}
\skewkern{mu}{35}
%\skewkern{nu}{50}
\skewkern{xi}{75}
%\skewkern{pi}{50}
\skewkern{rho}{75}
\skewkern{sigma}{25}
\skewkern{tau}{25}
% \skewkern{upsilon}{-25} 
\skewkern{phi}{125}
\skewkern{chi}{50}
\skewkern{psi}{50}
\skewkern{omega}{25}
\skewkern{epsilon}{50}
%\skewkern{theta1}{50}
%\skewkern{omega1}{50}
\skewkern{rho1}{50}
%\skewkern{sigma1}{75}
\skewkern{lscript}{75} 
\skewkern{weierstrass}{60} 

\endmetrics
%</jamomlhax>
%    \end{macrocode}
%
%
% 
%\Finale
%\clearpage
%
%\PrintChanges
%\clearpage
%\PrintIndex
%
\endinput