Mercurial > emacs
annotate etc/refcards/pdflayout.sty @ 85478:786d3a985758
* term/x-win.el (x-gtk-stock-map, icon-map-list)
(x-gtk-map-stock): Delete duplicated definitions from merge.
* progmodes/octave-mod.el: Require octave-inf at compile time
* progmodes/compile.el (compilation-skip-to-next-location)
(compilation-skip-threshold, compilation-skip-visited): Move
definitions earlier.
* play/zone.el (zone-fall-through-ws):
* play/landmark.el (lm-move-down, lm-move-up):
* play/handwrite.el (handwrite):
* mail/mspools.el (mspools-visit-spool):
* wdired.el (wdired-next-line, wdired-previous-line):
* tar-mode.el (tar-subfile-save-buffer):
* scroll-lock.el (scroll-lock-next-line)
(scroll-lock-previous-line):
* image-dired.el (image-dired-next-line)
(image-dired-previous-line):
* ediff-help.el (ediff-help-message-line-length): Use
forward-line.
* smerge-mode.el (smerge-auto-refine):
* diff-mode.el (diff-auto-refine): Add :group.
* play/yow.el: Require doctor at compile time.
* vmsproc.el: Provide vmsproc.
(command-send-input): Use forward-line.
* vms-patch.el: Require ps-print and vmsproc at compile time.
* vc-mtn.el (log-view-message-re, log-view-file-re)
(log-view-font-lock-keywords): Pacify byte-compiler.
* vc-hg.el: Require log-view at compile time.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Sat, 20 Oct 2007 06:30:18 +0000 |
parents | dbd7c4bc480e |
children | 7ab7824266df |
rev | line source |
---|---|
82859
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
1 % Copyright (C) 2007 Free Software Foundation, Inc. |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
2 |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
3 % This file is part of GNU Emacs. |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
4 |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
5 % GNU Emacs is free software; you can redistribute it and/or modify |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
6 % it under the terms of the GNU General Public License as published by |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
7 % the Free Software Foundation; either version 3, or (at your option) |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
8 % any later version. |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
9 |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
10 % GNU Emacs is distributed in the hope that it will be useful, |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
11 % but WITHOUT ANY WARRANTY; without even the implied warranty of |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
12 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
13 % GNU General Public License for more details. |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
14 |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
15 % You should have received a copy of the GNU General Public License |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
16 % along with GNU Emacs; see the file COPYING. If not, write to |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
17 % the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
18 % Boston, MA 02110-1301, USA. |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
19 |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
20 % This file defines `\pdflayout': |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
21 % - \pdflayout=(0) is A4 portrait, |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
22 % - \pdflayout=(1) is letter (US) portrait, |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
23 % - \pdflayout=(0l) is A4 landscape. |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
24 % - \pdflayout=(1l) is letter (US) landscape, |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
25 |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
26 \input ifpdf.sty |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
27 |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
28 \ifpdf |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
29 \def\pdflayout=(#1#2){ |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
30 \if0#1 % A4 |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
31 \pdfpagewidth=21cm |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
32 \pdfpageheight=29.7cm |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
33 \else\if1#1 % Letter |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
34 \pdfpagewidth=8.5in |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
35 \pdfpageheight=11in |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
36 \fi\fi |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
37 \if l#2 % Landscape |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
38 \edef\oldwidth{\the\pdfpagewidth} |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
39 \pdfpagewidth=\pdfpageheight |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
40 \pdfpageheight=\oldwidth |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
41 \fi |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
42 } |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
43 \else |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
44 \def\pdflayout=(#1#2){} |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
45 \fi |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
46 |
393e0dc93fa0
New. Handle PDF layouts through \pdfpagewidth and \pdfpageheight.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents:
diff
changeset
|
47 % archtag: 63c938a5-cc78-4964-962d-603c90d34afc |
82894 | 48 |
49 % arch-tag: 3464d27c-1439-473a-bc47-a7c501e8c156 |