home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / tex / muugtalk / allcm (.txt) next >
LaTeX Document  |  1996-06-03  |  2KB  |  66 lines

  1. #!/bin/sh
  2. progname=`basename $0`
  3. case "$progname" in
  4. alldc)    encoding=T1  ;;
  5. *)    encoding=OT1 ;;
  6. case "$1" in
  7. -r)    DVIPS=dvired
  8.     shift
  9. *)    DVIPS=dvips
  10. body()
  11.     cat <<-'eof'
  12.         \pagestyle{empty}
  13.         \parindent0in
  14.         \textheight9.5in
  15.         \textwidth6.5in
  16.         \newcommand{\TestSizes}{{%
  17.         \tiny Test\scriptsize Test\footnotesize Test\small Test
  18.         \normalsize Test
  19.         \large Test\Large Test\LARGE Test\huge Test\Huge Test}}
  20.         \newcommand{\TestRM}{rm-family: {\rmfamily\TestSizes}\newline}
  21.         \newcommand{\TestSF}{sf-family: {\sffamily\TestSizes}\newline}
  22.         \newcommand{\TestTT}{tt-family: {\ttfamily\TestSizes}\newline}
  23.         \newcommand{\TestFamilies}{\TestRM\TestSF\TestTT\newline}
  24.         \newcommand{\TestMD}{md-series: {\mdseries\TestFamilies}}
  25.         \newcommand{\TestBF}{bf-series: {\bfseries\TestFamilies}}
  26.         \newcommand{\TestSeries}{\TestBF\TestMD\par}
  27.         \newcommand{\TestUP}{up-shape: {\upshape\TestSeries}\par}
  28.         \newcommand{\TestIT}{it-shape: {\itshape\TestSeries}\par}
  29.         \newcommand{\TestSL}{sl-shape: {\slshape\TestSeries}\par}
  30.         \newcommand{\TestSC}{sc-shape: {\scshape\TestSeries}\par}
  31.         \newcommand{\TestShapes}{\TestUP\TestIT\TestSL\TestSC}
  32.         \begin{document}
  33.         \TestShapes
  34.         \end{document}
  35. head()
  36.     echo '\documentclass['$1'pt]{article}'
  37.     echo '\usepackage['$encoding']{fontenc}'
  38. cd /tmp
  39. mkdir tmp$$ && cd tmp$$ || exit
  40. trap "cd / ; rm -rf /tmp/tmp$$; trap '' 0; exit 0" 0 1 2 15
  41. echo >&2
  42. echo "---------------------------------------------------------------------" >&2
  43. echo ">>>>>>>>>>>  Generating testfiles for 10pt, 11pt and 12pt. <<<<<<<<<<" >&2
  44. echo "---------------------------------------------------------------------" >&2
  45. head 10 > allcm10.tex
  46. head 11 > allcm11.tex
  47. head 12 > allcm12.tex
  48. body >> allcm10.tex
  49. body >> allcm11.tex
  50. body >> allcm12.tex
  51. echo >&2
  52. echo "---------------------------------------------------------------------" >&2
  53. echo ">>>>>>>>>>>  Calling latex (expect some warnings)...       <<<<<<<<<<" >&2
  54. echo "---------------------------------------------------------------------" >&2
  55. latex allcm10
  56. latex allcm11
  57. latex allcm12
  58. echo >&2
  59. echo "---------------------------------------------------------------------" >&2
  60. echo ">>>>>>>>>>>  Now, calling $DVIPS to make missing fonts...  <<<<<<<<<<" >&2
  61. echo "---------------------------------------------------------------------" >&2
  62. $DVIPS -f "$@" allcm10 > /dev/null
  63. $DVIPS -f "$@" allcm11 > /dev/null
  64. $DVIPS -f "$@" allcm12 > /dev/null
  65. rm -rf /tmp/tmp$$
  66.