home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gwm18a.zip / doc / Makefile < prev    next >
Makefile  |  1995-07-03  |  3KB  |  72 lines

  1. # Example makefile to print the documentation of GWM
  2. # consult your local TeX/LaTeX guru if you need help
  3. # (or just grab the postscript version: gwm.ps by ftp on expo.lcs.mit.edu)
  4.  
  5. # To adjust the placement of the text on the page, play with the
  6. # hoffset/voffset dimensions at the top of the "gwm.tex" file...
  7. # the game is to be able to make a matching 2-sides photocopy
  8. # (check that the page numbers on odd & even pages are at the same
  9. # distance from the outside margin)
  10.  
  11. # if the included postscript files upsets your dvi driver, uncomment the
  12. # relevant line in the "gwm.tex" file
  13.  
  14. # NOTE: it is NORMAL to get on first pass a lot of :
  15. #    LaTeX Warning: Reference `xxx' on page xx undefined.
  16.  
  17. all:    gwm.ps
  18.  
  19. print: gwm.dvi
  20.     dvips  -h idraw.pro gwm.dvi
  21.  
  22. gwm.dvi: gwm.tex colas.sty title.tex usage.tex overview.tex wool_ref.tex \
  23.     contents.tex quick_ref.tex index.tex standard.tex
  24. #    rm -f *.aux    # clean dir in case of stange errors
  25.     echo 'Rerun to get cross-references right'> gwm.log
  26.     @echo '***** expect a LOT of LaTeX Warnings now *****'
  27.     ../gwm_util latex gwm
  28.  
  29. # These are EXAMPLES of how to print a .dvi file. Refer to your local TeX
  30. # Wizard for more details
  31. # you will need a dvi2ps understanding the \special{psfile=...} command
  32. # best one is dvips v5.0, anonymous ftp on labrea.stanford.edu (36.8.0.47)
  33. # DO NOT FORGET TO INCLUDE THE idraw.pro POSTSCRIPT HEADER!!!
  34. # (strip_ps is a local filter to strip ps comments, you can omit it,
  35. # or use "squeeze" coming with the dvips distribution)
  36. # PS: strip_ps is not needed, it is just a comment remover(stripper) to
  37. # decrease the ps file for distribution...
  38.  
  39. gwm.ps:    gwm.dvi idraw.pro
  40.     ../gwm_util latex gwm
  41. #    -dvi2ps -i idraw.pro gwm.dvi > gwm.ps                #standard dvi2ps 
  42. #    -w_dvi2ps -i idraw.pro -F 10 gwm.dvi |strip_ps> gwm.ps  # Wang's dvi2ps
  43.     dvips -f -h idraw.pro < gwm.dvi > gwm.ps #a4 dvips5.0
  44.  
  45. # how to make 20-page chunks in the gwm.ps-split directory
  46.  
  47. gwm.ps-split:      gwm.dvi idraw.pro
  48.     ../gwm_util latex gwm
  49.     rm -rf gwm.ps-split; mkdir gwm.ps-split
  50.     for i in 001 021 041 061 081 101;do \
  51. dvips -r -p $$i -n 20 -f -h idraw.pro<gwm.dvi>gwm.ps-split/psdoc-pages-$$i.ps;\
  52. done
  53.     tar cfv -  gwm.ps-split|compress>$$FTP/pub/gwm/gwm.ps-split.tar.Z
  54.  
  55. update: gwm.ps gwm.ps-split
  56.  
  57. # NOTE: if you cannot see page numbers in the postcript doc, it is because the
  58. # page has too much offset upwards. To correct it, go into each postcript file,
  59. # search for the first occurence of the line:
  60. #        TeXDict begin @a4
  61. # then 2 solutions:
  62. # - either change @a4 by @letter
  63. # - or insert BEFORE this line the line:
  64. #        0 -30 translate
  65. #   which brings down the page by 30 points (a point is a 72th of an inch).
  66. #   You could in fact put X Y translate where X and Y are x,y offsets...
  67.