Parâmetros para o up


[Home] [Dissertação] [Biba] [Linux] [Conjugue] [br.ispell] [axw3] [uplink]

# documento original por jgreely@cis.ohio-state.edu, 89/10/23
#
# adicoes por Ricardo Ueda, referentes a ajuste de margem e
# posicionamento de paginas para varios livros e manuais mais
# ou menos relacionados com Linux.
#
# esses ajustes nao sao universais, dependem tanto da impressora
# em uso quanto do tamanho do papel, mas via de regra devem
# gerar resultados aceitaveis.
#
# para usar isso voce precisa de uma copia do "up".

# this is the normal prolog, and defines everything used below
#
prolog=
/inch {72 mul} def
/moveU {0 11 inch translate} def
/moveR {8.5 inch 0 translate} def
/mmoveR {6.40 inch 0 translate} def
/mmoveR2 {7.0 inch 0 translate} def
/mmoveR3 {7.9 inch 0 translate} def
/mmoveR4 {6.00 inch 0 translate} def
/mmoveR5 {4.50 inch 0 translate} def
/moveD {0 -11 inch translate} def
/moveL {-8.5 inch 0 translate} def
/rotR {-90 rotate} def
/rotL {90 rotate} def
/doSpiral {moveU moveR rotR 0.67 dup scale} def
/moveHU { 0 5.5 inch translate} def
/doRevSpiral {moveHU rotL 0.67 dup scale} def
.

# up is a synonym for twoup, since my code doesn't work correctly for
# the case n==1.  Until I robustify it, this will stay.
#
name=up
modulus=2
scale=7.75 inch 0 translate rotL 11 17 div dup scale
1=
2=moveR
.

name=2up
modulus=2
scale=7.75 inch 0 translate rotL 11 17 div dup scale
1=
2=moveR
.

# Ueda up, com margem esquerda em impressoes frente-e-verso.
name=uup
modulus=2
even=0 -0.64 inch translate
odd=0 -0.24 inch translate
scale=7.75 inch 0 translate rotL 11 17 div dup scale
1=
2=moveR
.

# Magnified up, um uup melhorado para as letras ficarem
# um pouco maiores. Note que o fator de escala e' 11/14
# nas duas dimensoes, contra 11/17 no uup. Usado no
# NAG 1.0
name=mup
modulus=2
even=0 -0.95 inch translate
odd=4 -0.83 inch translate
scale=8.7 inch 0 translate rotL 11 14 div dup scale
1=
2=mmoveR
.

# Outro magnified up, usado no SAG 0.2
name=mup2
modulus=2
even=45 -0.53 inch translate
odd=48 0 inch translate
scale=8.7 inch 0 translate rotL 11 14 div dup scale
1=
2=mmoveR2
.

# Outro mag, usado no install guide 2.2.2
name=mup3
modulus=2
even=0 -0.56 inch translate
odd=4 -0.15 inch translate
scale=8.7 inch 0 translate rotL 11 14 div dup scale
1=
2=mmoveR2
.

# Outro mag, usado no khg 0.5
name=mup4
modulus=2
even=38 -0.56 inch translate
odd=42 -0.15 inch translate
scale=8.7 inch 0 translate rotL 11 14 div dup scale
1=
2=mmoveR2
.

# Outro mag, usado no manual do mSQL 1.0.5
# idem, SuperDLX 1.0.3
name=mup5
modulus=2
even=-32 0.16 inch translate
odd=-30 +0.42 inch translate
scale=8.7 inch 0 translate rotL 11 16 div dup scale
1=
2=mmoveR3
.

# Outro mag, usado no emacs 19.27
name=mup6
modulus=2
even=60 -0.26 inch translate
odd=62 +1.07 inch translate
scale=8.7 inch 0 translate rotL 11 13 div dup scale
1=
2=mmoveR4
.

# Outro mag, usado no livro do pvm 3
# odd: frente, even: verso
# 1o numero: margem superior (quanto >, > a margem)
# 2o numero: margem esquerda (quanto >, > a margem)
# o mmoveR4 define a separacao entre as duas paginas numa mesma face
name=mup7
modulus=2
even=5 -0.89 inch translate
odd=5 -0.06 inch translate
scale=8.7 inch 0 translate rotL 11 13 div dup scale
1=
2=mmoveR4
.

# Outro mag, usado no livro Tcl and the Tk Toolkit
# odd: frente, even: verso
# 1o numero: margem superior (quanto >, > a margem)
# 2o numero: margem esquerda (quanto >, > a margem)
# o mmoveR4 define a separacao entre as duas paginas numa mesma face
name=mup8
modulus=2
even=5 -1.00 inch translate
odd=5 -0.83 inch translate
scale=8.7 inch 0 translate rotL 11 13 div dup scale
1=
2=mmoveR4
.

# postgres95
name=mup9
modulus=2
even=-42 0.16 inch translate
odd=-40 +0.55 inch translate
scale=8.7 inch 0 translate rotL 11 16 div dup scale
1=
2=mmoveR3
.

#
# Ueda 3up, para o refcard 2.1 do Emacs
# para melhor resultado, usar papel 211x281
#
name=u3up
modulus=3
scale=0.00 inch -0.30 inch translate rotL 17 22 div dup scale
1=moveD
2=mmoveR5
3=mmoveR5
.

# Landscape
name=land
modulus=1
even=
odd=
scale=8.7 inch 0 translate rotL 11 13 div dup scale
1=
2=
.

# two-up with even pages rotated, for double-siding
#
name=pup
modulus=2
even=moveU moveR rotR rotR
odd=
scale=7.75 inch 0 translate rotL 11 17 div dup scale
1=
2=moveR
.

# note that 4up is scaled a bit smaller than you might think.  If I
# just scaled by .5, I'd lose my top and bottom edges (printer
# limitations)
#
name=4up
modulus=4
scale=0.2125 inch 0.275 inch translate 0.475 dup scale
1=moveU
2=moveR
3=moveL moveD
4=moveR
.

# this does a greeting-card format, designed to be folded into
# fourths.  If you're not sure how it's supposed to look, run:
#    makeup 4 | up -n card | lpr
#
name=card
modulus=4
scale=0.2125 inch 0.275 inch translate 0.475 dup scale
1=moveU moveU moveR rotR rotR
2=moveU moveU moveR rotR rotR
3=moveR
4=moveU moveU moveR rotR rotR
.

# this is about the limit for a 300 dpi device, unless it's reasonably
# new and you have good eyes.  I like it at 400 dpi.
#
name=6up
modulus=6
scale=0.25 inch 0.75 inch translate rotL 4 11 div dup scale
1=moveD
2=moveR
3=moveR
4=moveD moveL moveL
5=moveR
6=moveR
.

# this is a bit too far for casual reading.  It's entering magnifying
# glass territory, which is bad, unless you need to carry lots of RFCs
# around.
#
name=8up
modulus=8
scale=0.7 inch 0 translate rotL 11 34 div dup scale
1=moveD
2=moveR
3=moveR
4=moveR
5=moveD moveL moveL moveL
6=moveR
7=moveR
8=moveR
.

# Steve Romig's contribution to evil PostScript hacking.  To see what
# it does, run:
#    makeup 10 | up -n spiral | lpr
#
name=spiral
modulus=10
scale=7.75 inch 0 translate rotL 11 17 div dup scale
1=
2=doSpiral
3=doSpiral
4=doSpiral
5=doSpiral
6=doSpiral
7=doSpiral
8=doSpiral
9=doSpiral
10=doSpiral
.

# More from Steve, this time in the other direction
#
name=revspiral
modulus=10
scale=7.75 inch 0 translate rotL 11 17 div dup scale
1=moveR
2=doRevSpiral
3=doRevSpiral
4=doRevSpiral
5=doRevSpiral
6=doRevSpiral
7=doRevSpiral
8=doRevSpiral
9=doRevSpiral
10=doRevSpiral
.

# this is not legible on anything under 400 dpi, and even then you'll
# probably want a magnifying glass.  You *can* read it with the naked
# eye, but not for long.
#
name=16up
modulus=16
scale=0.25 0.25 scale
1=moveU moveU moveU
2=moveR
3=moveR
4=moveR
5=moveD moveL moveL moveL
6=moveR
7=moveR
8=moveR
9=moveD moveL moveL moveL
10=moveR
11=moveR
12=moveR
13=moveD moveL moveL moveL
14=moveR
15=moveR
16=moveR
.