diff options
| author | Glenn Morris | 2010-03-01 19:47:19 -0800 |
|---|---|---|
| committer | Glenn Morris | 2010-03-01 19:47:19 -0800 |
| commit | 3bb1fc91b69fd50e53b7f34925296062cbaa6e16 (patch) | |
| tree | eff076c8701c723f96d45eaea320d242205275ef | |
| parent | 9a6ad7690f5a315862a5695941ce113a1aefbdd6 (diff) | |
| download | emacs-3bb1fc91b69fd50e53b7f34925296062cbaa6e16.tar.gz emacs-3bb1fc91b69fd50e53b7f34925296062cbaa6e16.zip | |
Small tweaks to etc/refcards/Makefile rules for PDFs.
* refcards/Makefile: For cs- and sk-, use pdfcsplain if available.
(pl-refcard.pdf): Let presence of pdfmex be another test for the
required TeX files. Pass explicit output-format to tex command.
(orgcard.pdf): Use ps2pdf, since pdftex tends to produce a
portrait layout rather than the desired landscape.
| -rw-r--r-- | etc/ChangeLog | 8 | ||||
| -rw-r--r-- | etc/refcards/Makefile | 16 |
2 files changed, 21 insertions, 3 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 6659fd15190..9fbdeabb6cd 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2010-03-02 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * refcards/Makefile: For cs- and sk-, use pdfcsplain if available. | ||
| 4 | (pl-refcard.pdf): Let presence of pdfmex be another test for the | ||
| 5 | required TeX files. Pass explicit output-format to tex command. | ||
| 6 | (orgcard.pdf): Use ps2pdf, since pdftex tends to produce a | ||
| 7 | portrait layout rather than the desired landscape. | ||
| 8 | |||
| 1 | 2010-03-01 Glenn Morris <rgm@gnu.org> | 9 | 2010-03-01 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * refcards/pl-refcard.tex: Double forward-slashes in URL for Mex. | 11 | * refcards/pl-refcard.tex: Double forward-slashes in URL for Mex. |
diff --git a/etc/refcards/Makefile b/etc/refcards/Makefile index 5a98ffd3eb8..c08a9b2cfab 100644 --- a/etc/refcards/Makefile +++ b/etc/refcards/Makefile | |||
| @@ -55,13 +55,19 @@ viper-cards_ps: ${VIPER-CARDS_PDF:.pdf=.ps} | |||
| 55 | 55 | ||
| 56 | cs-refcard.pdf cs-dired-ref.pdf cs-survival.pdf sk-refcard.pdf \ | 56 | cs-refcard.pdf cs-dired-ref.pdf cs-survival.pdf sk-refcard.pdf \ |
| 57 | sk-dired-ref.pdf sk-survival.pdf: %.pdf: %.tex | 57 | sk-dired-ref.pdf sk-survival.pdf: %.pdf: %.tex |
| 58 | csplain "\pdfoutput=1\input $<" | 58 | if pdfcsplain --version > /dev/null 2> /dev/null; then \ |
| 59 | pdfcsplain $<; \ | ||
| 60 | else \ | ||
| 61 | csplain "\pdfoutput=1\input $<"; \ | ||
| 62 | fi | ||
| 59 | 63 | ||
| 64 | ## Some versions of pdfmex seem to create dvi by default, hence output-format. | ||
| 60 | pl-refcard.pdf: %.pdf: %.tex | 65 | pl-refcard.pdf: %.pdf: %.tex |
| 61 | if ! kpsewhich -format=fmt mex > /dev/null; then \ | 66 | if ! kpsewhich -format=fmt mex > /dev/null && \ |
| 67 | ! pdfmex --version > /dev/null 2> /dev/null; then \ | ||
| 62 | echo "No mex format found."; false; \ | 68 | echo "No mex format found."; false; \ |
| 63 | fi | 69 | fi |
| 64 | pdftex $< | 70 | pdftex -output-format=pdf $< |
| 65 | 71 | ||
| 66 | ru-refcard.pdf: %.pdf: %.tex | 72 | ru-refcard.pdf: %.pdf: %.tex |
| 67 | pdflatex $< | 73 | pdflatex $< |
| @@ -75,6 +81,10 @@ gnus-refcard.pdf: %.pdf: %.tex gnus-logo.pdf | |||
| 75 | gnus-booklet.pdf: gnus-refcard.tex gnus-logo.pdf | 81 | gnus-booklet.pdf: gnus-refcard.tex gnus-logo.pdf |
| 76 | pdflatex -jobname=gnus-booklet '\def\booklettrue{}\def\letterpapertrue{}\input{gnus-refcard}' | 82 | pdflatex -jobname=gnus-booklet '\def\booklettrue{}\def\letterpapertrue{}\input{gnus-refcard}' |
| 77 | 83 | ||
| 84 | ## FIXME just pdftex produces portrait rather than landscape. | ||
| 85 | orgcard.pdf: orgcard.ps | ||
| 86 | ps2pdf $< | ||
| 87 | |||
| 78 | ## Everything not explicitly listed above. | 88 | ## Everything not explicitly listed above. |
| 79 | %.pdf: %.tex | 89 | %.pdf: %.tex |
| 80 | pdftex $< | 90 | pdftex $< |