]> git.eshelyaron.com Git - emacs.git/commitdiff
Add rules for creating the refcards in PDF, make them the default.
authorMichaël Cadilhac <michael.cadilhac@lrde.org>
Sun, 26 Aug 2007 21:05:10 +0000 (21:05 +0000)
committerMichaël Cadilhac <michael.cadilhac@lrde.org>
Sun, 26 Aug 2007 21:05:10 +0000 (21:05 +0000)
etc/ChangeLog
etc/refcards/Makefile

index 1632065b17624745be15e6ecc4892cfd23112fe5..1da3ab54698bd5811c8c650ebaaa59253122d080 100644 (file)
@@ -1,3 +1,41 @@
+2007-08-26  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
+
+       * refcards/pdflayout.sty: New.  Handle PDF layouts through
+       \pdfpagewidth and \pdfpageheight.
+
+       * calccard.pdf, cs-dired-ref.pdf, cs-refcard.pdf, de-refcard.pdf:
+       * dired-ref.pdf, fr-drdref.pdf, fr-refcard.pdf, gnus-booklet.pdf:
+       * gnus-logo.pdf, gnus-refcard.pdf, orgcard.pdf, pl-refcard.pdf:
+       * pt-br-refcard.pdf, refcard.pdf, ru-refcard.pdf, sk-dired-ref.pdf:
+       * sk-refcard.pdf: Add PDF versions of the refcards.
+
+       * calccard.ps, cs-dired-ref.ps, cs-refcard.ps, de-refcard.ps:
+       * dired-ref.ps, fr-drdref.ps, fr-refcard.ps, gnus-booklet.ps:
+       * gnus-logo.ps, gnus-refcard.ps, orgcard.ps, pl-refcard.ps:
+       * pt-br-refcard.ps, refcard.ps, ru-refcard.ps, sk-dired-ref.ps:
+       * sk-refcard.ps: Remove the PS versions of the refcards.
+
+       * calccard.tex, fr-survival.tex, orgcard.tex, pl-refcard.tex:
+       * pt-br-refcard.tex, refcard.tex, survival.tex, vipcard.tex:
+       * viperCard.tex: Specify PDF layout, use a PDF `compile-command' local
+       variable.
+
+       * cs-dired-ref.tex, cs-refcard.tex, cs-survival.tex, dired-ref.tex:
+       * fr-drdref.tex, sk-dired-ref.tex, sk-refcard.tex, sk-survival.tex:
+       Specify PDF layout.
+
+       * fr-refcard.tex: Update copyright notice.  Update the examples.  Fix a
+       typo.  Remove the `letterpaper' counter, specify PDF layout, use a PDF
+       `compile-command' local variable.
+
+       * de-refcard.tex: Remove the `letterpaper' counter, specify PDF layout,
+       use a PDF `compile-command' local variable.
+
+       * ru-refcard.tex: Use a PDF `compile-command' local variable.
+
+       * Makefile: Add rules for creating the refcards in PDF, make them the
+       default.
+
 2007-08-23  Glenn Morris  <rgm@gnu.org>
 
        * Makefile (mostlyclean, clean, distclean, maintainer-clean):
index d6fba02908a13a19199cce9f12feee2fee6952a2..9700dbd3fe2347b47617ed4c70812cb0f2210316 100644 (file)
 
 ## Top-level targets.
 
-## PS files included with Emacs.
-all: refcards dired-refcards misc-refcards
+## PDF files that are included with Emacs.
+all: refcards_pdf dired-refcards_pdf misc-refcards_pdf
 
+REFCARDS_PDF = refcard.pdf cs-refcard.pdf de-refcard.pdf fr-refcard.pdf \
+            pl-refcard.pdf pt-br-refcard.pdf ru-refcard.pdf sk-refcard.pdf
+refcards_pdf: ${REFCARDS_PDF}
+refcards_ps: ${REFCARDS_PDF:.pdf=.ps}
 
-refcards: refcard.ps cs-refcard.ps de-refcard.ps fr-refcard.ps \
-          pl-refcard.ps pt-br-refcard.ps ru-refcard.ps sk-refcard.ps
+DIRED-REFCARDS_PDF = dired-ref.pdf cs-dired-ref.pdf fr-drdref.pdf sk-dired-ref.pdf
+dired-refcards_pdf: ${DIRED-REFCARDS_PDF}
+dired-refcards_ps: ${DIRED-REFCARDS_PDF:.pdf=.ps}
 
-dired-refcards: dired-ref.ps cs-dired-ref.ps fr-drdref.ps sk-dired-ref.ps
+MISC-REFCARDS_PDF = calccard.pdf gnus-booklet.pdf gnus-refcard.pdf orgcard.pdf
+misc-refcards_pdf: ${MISC-REFCARDS_PDF}
+misc-refcards_ps: ${MISC-REFCARDS_PDF:.pdf=.ps}
 
-## No PS files: vipcard.tex viperCard.tex survival.tex sk-survival.tex
-misc-refcards: calccard.ps gnus-booklet.ps gnus-refcard.ps orgcard.ps
 
-## Following PS files are not included with Emacs.
-survival-cards: survival.ps cs-survival.ps sk-survival.ps
+## The following files are not included with Emacs.
+SURVIVAL-CARDS_PDF = survival.pdf cs-survival.pdf sk-survival.pdf
+survival-cards_pdf: ${SURVIVAL-CARDS_PDF}
+survival-cards_ps: ${SURVIVAL-CARDS_PDF:.pdf=.ps}
+
+VIPER-CARDS_PDF = vipcard.pdf viperCard.pdf
+viper-cards_pdf: ${VIPER-CARDS_PDF}
+viper-cards_ps: ${VIPER-CARDS_PDF:.pdf=.ps}
+
+
+## PDF files.
+
+## The page layouts (a4/letter) are written directly in the .tex files.
+
+cs-refcard.pdf cs-dired-ref.pdf cs-survival.pdf sk-refcard.pdf \
+sk-dired-ref.pdf sk-survival.pdf: %.pdf:       %.tex
+       csplain "\pdfoutput=1\input $<"
+
+pl-refcard.pdf: %.pdf: %.tex
+       if ! kpsewhich -format=fmt mex > /dev/null; then \
+         echo "No mex format found."; false; \
+       fi
+       pdftex $<
+
+ru-refcard.pdf: %.pdf: %.tex
+       pdflatex $<
+
+gnus-logo.pdf: %.pdf: %.eps
+       ps2pdf $<
+
+gnus-refcard.pdf: %.pdf: %.tex gnus-logo.pdf 
+       pdflatex $<
+
+gnus-booklet.pdf: gnus-refcard.tex gnus-logo.pdf
+       pdflatex '\def\booklettrue{}\def\letterpapertrue{}\input{gnus-refcard}'
+       mv gnus-refcard.pdf $@
+
+## Everything not explicitly listed above.
+%.pdf: %.tex
+       pdftex $<
 
-viper-cards: vipcard.ps viperCard.ps
 
 
 ## dvi files.
 
-## FIXME the sk-*.tex files say to use csplain, but were not
-## traditionally in this rule. Fix the doc or the rule.
-cs-refcard.dvi cs-dired-ref.dvi cs-survival.dvi: %.dvi:        %.tex
+cs-refcard.dvi cs-dired-ref.dvi cs-survival.dvi sk-refcard.dvi \
+sk-dired-ref.dvi sk-survival.dvi: %.dvi:       %.tex
        csplain $<
 
 pl-refcard.dvi: %.dvi: %.tex