Skip to content

Commit 3b6eb59

Browse files
Added README and dimensions for building A4 size
1 parent f595472 commit 3b6eb59

File tree

2 files changed

+64
-3
lines changed

2 files changed

+64
-3
lines changed

Diff for: A4.2col.tex

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
%% 19monitor.tex
2+
%% Introduction to Network UPS Tools (NUT)
3+
%% Configuration Examples, formatted for ISO A4 paper,
4+
%% to be read on a landscape 19" monitor
5+
6+
%% This program is free software; you can redistribute it and/or
7+
%% modify it under the terms of the GNU General Public License
8+
%% as published by the Free Software Foundation; either version 2
9+
%% of the License, or (at your option) any later version.
10+
11+
%% This program is distributed in the hope that it will be useful,
12+
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
%% GNU General Public License for more details.
15+
16+
%% You should have received a copy of the GNU General Public License
17+
%% along with this program; if not, write to the Free Software
18+
%% Foundation, Inc., 59 Temple Place - Suite 330,
19+
%% Boston, MA 02111-1307, USA.
20+
21+
% Page size
22+
% A3 paper: 297x420mm
23+
% A4 paper: 210x297mm => 146.5x246.2mm useful space
24+
% US paper: 215.9x279.4mm => 152.4x228.6 useful space
25+
% Landscape A4 See LaTeX Companion p.84, fig 4.1.
26+
% Monitor size
27+
% 17 inch 4:3 350x260mm, 16:9 380x210mm
28+
% 19 inch 4:3 390x290mm, 16:9 420x240mm
29+
% 21 inch 4:3 430x320mm, 16:9 440x260mm
30+
% 23 inch 4:3 470x350mm, 16:9 510x290mm
31+
\setlength{\hoffset}{-25.4mm} % See the Companion p.86. +ve axis to the right
32+
\addtolength{\hoffset}{-4mm} % Slide page image a little to the left
33+
\setlength{\voffset}{-25.4mm} % +ve axis downwards
34+
\addtolength{\voffset}{-4mm} % Raise page image just a little more
35+
36+
\setlength{\textwidth}{390mm}
37+
\setlength{\paperwidth}{\textwidth}
38+
\setlength{\pdfpagewidth}{\textwidth}
39+
\addtolength{\textwidth}{-20mm}
40+
41+
\setlength{\textheight}{240mm}
42+
\setlength{\paperheight}{\textheight}
43+
\setlength{\pdfpageheight}{\textheight}
44+
\addtolength{\textheight}{-30mm}
45+
46+
\setlength{\columnsep}{15mm}
47+
%\setlength{\columnseprule}{1pt}
48+
\setlength{\topmargin}{3mm}
49+
\addtolength{\headsep}{-1mm} % See Companion, p.85
50+
\addtolength{\footskip}{-1mm}
51+
52+
% The LinePrinter print width
53+
\newlength{\LinePrinterwidth}
54+
\setlength{\LinePrinterwidth}{145.5mm} % 0.5(\textwidth-\columnsep)-32mm
55+

Diff for: README

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1+
README 2021-05-20 Roger Price
2+
13
ConfigExamples
24
--------------
3-
The files in this directory provide for the creation of a PDF
5+
6+
The files in this directory are used by LaTeX to create a PDF
47
file containing the NUT Configuration Examples document.
58

69
The base document is a LaTeX markup ConfigExamples.tex with two
710
specific style files lineprinter.sty, and wrapfig.sty which although
811
featuring in the LaTeX Companion, now seems to be deprecated,
912
so I provide a copy.
1013

14+
By default the PDF is created for the A5 page size, more suitable
15+
for reading on-screen.
16+
1117
The .fig figures were created using the venerable xfig, and
12-
exported as .pdf for inclusion in the final document.
18+
exported as .pdf by xfig for inclusion in the final document.
1319

1420
To build the document:
1521

1622
make clean && make
1723

1824
Latex will be run three times to ensure that all labels are
19-
correctly referenced.
25+
correctly referenced. The output is in file ConfigExamples.pdf.

0 commit comments

Comments
 (0)