Loading ...
Sorry, an error occurred while loading the content.

Printing -- A4 wrong size for US (fix encl)

Expand Messages
  • Thomas Hundt
    The default printer config files are set up for A4 paper, which is a little longer and a little narrower than the 8.5x11 standard letter size used in the US.
    Message 1 of 1 , Apr 25, 2002
    • 0 Attachment
      The default printer config files are set up for A4 paper, which is a little longer and a little narrower than the 8.5x11 standard "letter" size used in the US. (This is in the MicroEmacs 02 version 02/01/01.)

      Once I figured out where this is defined (i.e., in the printhpl.erf file for LaserJets), I was able to experiment and add options for Letter-sized paper.

      I also added an intermediate-sized font, which is just a bit bigger than the "tiny" one. (I don't have any A4 paper so can't set up the sizing for that paper.) It seems to work on the printers I have here.

      This was tested on a LaserJet 5M, and to a lesser extent on a LJ8100 and LJ4, which is what we happen to have here at the office. (Test methodology: create a text file that is long enough to span several pages, and has some very long lines like "abcdef..." that will wrap to following lines. Print this file in the various formats, with all margins set to 0. See if any characters get chopped off at the right or the bottom. If yes, change the sizes and try again.)


      ; MODIFIED VERSION 25-Apr-02 thundt
      ; added Letter size paper
      ; added new intermediate font size
      ; tested on LJ5M
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      ;
      ; Author : Jon Green & Steven Phillips
      ; Last Modified : <020425.1606>
      ;
      ; Description : HP Laserjet 4v printer driver.
      ;
      ; Notes
      ;
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      "internal" = "0"
      ; Separator characters
      "econt" = "\\" ;; Print continuation character.
      "scont" = ">" ;; Print start continuation character
      "xsep" = "-+-" ;; Horizontal/vertical separator intersection.
      "hsep" = "-" ;; Horizontal separator sting - one character.
      "vsep" = " | " ;; Vertical separator string
      "wsep" = "3" ;; The vertical separator width is 3 characters

      ; Strip blanks from the end of the line.
      "strip" = "1"

      "eol" = "\r\n"
      "sop" = ""
      "eop" = "\e&l0H"
      "eof" = "\eE"

      ; Does bold, underline and italic. Start/End sequences.
      "start"
      {
      "b" = "\e(s3B"
      "i" = "\e(s1S"
      "u" = "\e&d1D"
      }
      "end"
      {
      "b" = "\e(s0B"
      "i" = "\e(s0S"
      "u" = "\e&d@"
      }

      "layout"
      {
      "A4 Portrait"
      {
      "180x136"
      {
      "paper-x" = "180"
      "paper-y" = "136"
      "sof" = "\eE\e&l0L\e&l1E\e&a0L\e(s0P\e(s24H\e(s6V\e&l4C"
      }
      " 78x68"
      {
      "paper-x" = "78"
      "paper-y" = "68"
      "sof" = "\eE\e&l0L\e&l1E\e&a0L"
      }
      }
      "A4 Landscape"
      {
      "261x91"
      {
      "paper-x" = "261"
      "paper-y" = "91"
      "sof" = "\eE\e&l0L\e&l0E\e&a0L\e&l1O\e(s0P\e(s24H\e(s6V\e&l4C"
      }
      "113x45"
      {
      "paper-x" = "113"
      "paper-y" = "45"
      "sof" = "\eE\e&l0L\e&l0E\e&a0L\e&l1O"
      }
      } ; A4 Land

      "Letter Portrait" ; thundt tested on LaserJet 5M
      {
      " 80x66"
      {
      "paper-x" = "80"
      "paper-y" = "66"
      "sof" = "\eE\e&l0L\e&l1E\e&a0L"
      }
      "161x128"
      {
      "paper-x" = "161"
      "paper-y" = "128"
      "sof" = "\eE\e&l0L\e&l1E\e&a0L\e(s0P\e(s20H\e&l4C" ; new
      }
      "184x128"
      {
      "paper-x" = "184"
      "paper-y" = "128"
      "sof" = "\eE\e&l0L\e&l1E\e&a0L\e(s0P\e(s24H\e(s6V\e&l4C"
      }
      } ; Letter Portrait

      "Letter Landscape" ; thundt tested on LaserJet 5M
      {
      "108x51"
      {
      "paper-x" = "108"
      "paper-y" = "51"
      "sof" = "\eE\e&l0L\e&l0E\e&a0L\e&l1O"
      }
      "213x93"
      {
      "paper-x" = "213"
      "paper-y" = "93"
      "sof" = "\eE\e&l0L\e&l0E\e&a0L\e&l1O\e(s0P\e(s20H\e&l4C" ; new
      }
      "245x93"
      {
      "paper-x" = "245"
      "paper-y" = "93"
      "sof" = "\eE\e&l0L\e&l0E\e&a0L\e&l1O\e(s0P\e(s24H\e(s6V\e&l4C"
      }
      } ; Letter Landscape
      }



      __________
      Thomas Hundt <thundt@...> +1-415-643-3595
    Your message has been successfully submitted and would be delivered to recipients shortly.