unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* emacs reference card for A4 paper
@ 2004-10-15 18:01 Stephen Eglen
  2004-10-16 13:52 ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Eglen @ 2004-10-15 18:01 UTC (permalink / raw)
  Cc: roland.winkler

Hi, 

I'd like to print the emacs reference card on two pages of A4 paper
for a class.  A quick google search showed this question had been
answered a couple of years ago by Roland (cc'ed).  Following his
advice, here is a patch against the CVS etc/refcard.tex.  

With this I get a nice A4 sized refcard that fits on two pages (using
tex refcard.tex; dvips -t landscape).

Installing this however will break usage for letter paper users.  Has
anyone got a portable method that will work well for both A4 and
letter paper sizes?

Thanks, Stephen

*** /tmp/ediff113839wV	Fri Oct 15 18:47:28 2004
--- /local/scratch/public/emacs/etc/refcard.tex	Fri Oct 15 18:42:17 2004
***************
*** 5,11 ****
  % This file can be printed with 1, 2, or 3 columns per page (see below).
  % Specify how many you want here.  Nothing else needs to be changed.
  
! \columnsperpage=1
  
  % Copyright (c) 1987, 1993, 1996, 1997 Free Software Foundation, Inc.
  
--- 5,11 ----
  % This file can be printed with 1, 2, or 3 columns per page (see below).
  % Specify how many you want here.  Nothing else needs to be changed.
  
! \columnsperpage=3
  
  % Copyright (c) 1987, 1993, 1996, 1997 Free Software Foundation, Inc.
  
***************
*** 103,109 ****
    \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
  \else				%2 or 3 columns uses prereduced size
    \hsize 3.2in
!   \vsize 7.95in
    \hoffset -.75in
    \voffset -.745in
    \font\titlefont=cmbx10 \scaledmag2
--- 103,109 ----
    \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
  \else				%2 or 3 columns uses prereduced size
    \hsize 3.2in
!   \vsize 7.65in
    \hoffset -.75in
    \voffset -.745in
    \font\titlefont=cmbx10 \scaledmag2
***************
*** 123,129 ****
    \def\bf{\eightbf}
    \def\it{\eightit}
    \def\tt{\eighttt}
!   \normalbaselineskip=.8\normalbaselineskip
    \normallineskip=.8\normallineskip
    \normallineskiplimit=.8\normallineskiplimit
    \normalbaselines\rm		%make definitions take effect
--- 123,129 ----
    \def\bf{\eightbf}
    \def\it{\eightit}
    \def\tt{\eighttt}
!   \normalbaselineskip=.7\normalbaselineskip
    \normallineskip=.8\normallineskip
    \normallineskiplimit=.8\normallineskiplimit
    \normalbaselines\rm		%make definitions take effect

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs reference card for A4 paper
  2004-10-15 18:01 emacs reference card for A4 paper Stephen Eglen
@ 2004-10-16 13:52 ` Richard Stallman
  2004-10-16 14:48   ` Lennart Borgman
  2004-10-17 15:57   ` Stephen Eglen
  0 siblings, 2 replies; 7+ messages in thread
From: Richard Stallman @ 2004-10-16 13:52 UTC (permalink / raw)
  Cc: roland.winkler, emacs-devel

    Installing this however will break usage for letter paper users.  Has
    anyone got a portable method that will work well for both A4 and
    letter paper sizes?

Maybe it would work to put in conditionals.  If you can find a way
to test the paper size.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs reference card for A4 paper
  2004-10-16 13:52 ` Richard Stallman
@ 2004-10-16 14:48   ` Lennart Borgman
  2004-10-16 15:00     ` Stephen Eglen
  2004-10-17 16:08     ` Richard Stallman
  2004-10-17 15:57   ` Stephen Eglen
  1 sibling, 2 replies; 7+ messages in thread
From: Lennart Borgman @ 2004-10-16 14:48 UTC (permalink / raw)
  Cc: emacs-devel, roland.winkler

----- Original Message ----- 
From: "Richard Stallman" <rms@gnu.org>

:     Installing this however will break usage for letter paper users.  Has
:     anyone got a portable method that will work well for both A4 and
:     letter paper sizes?
: 
: Maybe it would work to put in conditionals.  If you can find a way
: to test the paper size.

On ms windows paper size is in the registry.

- Lennart

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs reference card for A4 paper
  2004-10-16 14:48   ` Lennart Borgman
@ 2004-10-16 15:00     ` Stephen Eglen
  2004-10-17 16:08     ` Richard Stallman
  1 sibling, 0 replies; 7+ messages in thread
From: Stephen Eglen @ 2004-10-16 15:00 UTC (permalink / raw)
  Cc: emacs-devel, Stephen Eglen, rms, roland.winkler

 > :     Installing this however will break usage for letter paper users.  Has
 > :     anyone got a portable method that will work well for both A4 and
 > :     letter paper sizes?
 > : 
 > : Maybe it would work to put in conditionals.  If you can find a way
 > : to test the paper size.
 > 
 > On ms windows paper size is in the registry.

Thanks for the suggestions.  For my purposes, I'm thinking about just
including a switch (maybe \letterpaper ?) which can be set to 0 or 1
by the user to get A4 or letter settings.  That would be fine.  I'll
see how easy this is in TeX...

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs reference card for A4 paper
  2004-10-16 13:52 ` Richard Stallman
  2004-10-16 14:48   ` Lennart Borgman
@ 2004-10-17 15:57   ` Stephen Eglen
  1 sibling, 0 replies; 7+ messages in thread
From: Stephen Eglen @ 2004-10-17 15:57 UTC (permalink / raw)
  Cc: roland.winkler, Stephen Eglen, emacs-devel

Richard Stallman writes:
 >     Installing this however will break usage for letter paper users.  Has
 >     anyone got a portable method that will work well for both A4 and
 >     letter paper sizes?
 > 
 > Maybe it would work to put in conditionals.  If you can find a way
 > to test the paper size.

Just to follow up, I've updated refcard.tex to include a new counter:

% Set letterpapaer to 0 for A4 paper, 1 for letter (US) paper.  Useful
% only when columnsperpage is 2 or 3.

\letterpaper=1

When letterpaper is 0, the two tex parameters that Roland identified
are now changed to better suit A4 paper.  Can someone check that this
does the right thing on US paper still -- it looks fine on A4.

Also, currently refcard.ps is distributed as a 6 page (1 column per
page) document.  I suggest that refcard.ps be updated to be a 2 page
(3 column per page) document, as some people might prefer.  (Perhaps
still formatted for letter paper).

Thanks, Stephen

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs reference card for A4 paper
  2004-10-16 14:48   ` Lennart Borgman
  2004-10-16 15:00     ` Stephen Eglen
@ 2004-10-17 16:08     ` Richard Stallman
  2004-10-17 16:32       ` Henrik Enberg
  1 sibling, 1 reply; 7+ messages in thread
From: Richard Stallman @ 2004-10-17 16:08 UTC (permalink / raw)
  Cc: emacs-devel, S.J.Eglen, roland.winkler

    : Maybe it would work to put in conditionals.  If you can find a way
    : to test the paper size.

    On ms windows paper size is in the registry.

Solutions that work only on Windows are not useful,
because our watchword is "It runs best on GNU/Linux".

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs reference card for A4 paper
  2004-10-17 16:08     ` Richard Stallman
@ 2004-10-17 16:32       ` Henrik Enberg
  0 siblings, 0 replies; 7+ messages in thread
From: Henrik Enberg @ 2004-10-17 16:32 UTC (permalink / raw)
  Cc: Lennart Borgman, roland.winkler, S.J.Eglen, emacs-devel

Richard Stallman <rms@gnu.org> writes:

>     : Maybe it would work to put in conditionals.  If you can find a way
>     : to test the paper size.
>
>     On ms windows paper size is in the registry.
>
> Solutions that work only on Windows are not useful,
> because our watchword is "It runs best on GNU/Linux".

I have a file called /etc/papersize on my GNU/Linux system that contains
my preferred paper size .  There is also a library called libpaper which
is described as:

        This package contains a simple library for use by programs
        needing to handle papers. It lets program automatically
        recognize a lot of different papers with their properties
        (actually their size).

I don't know if any of those can be used from PostScript though.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-10-17 16:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-15 18:01 emacs reference card for A4 paper Stephen Eglen
2004-10-16 13:52 ` Richard Stallman
2004-10-16 14:48   ` Lennart Borgman
2004-10-16 15:00     ` Stephen Eglen
2004-10-17 16:08     ` Richard Stallman
2004-10-17 16:32       ` Henrik Enberg
2004-10-17 15:57   ` Stephen Eglen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).