forked from NUT-RogerPrice/ConfigExamples
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added README and dimensions for building A4 size
- Loading branch information
1 parent
f595472
commit 3b6eb59
Showing
2 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
%% 19monitor.tex | ||
%% Introduction to Network UPS Tools (NUT) | ||
%% Configuration Examples, formatted for ISO A4 paper, | ||
%% to be read on a landscape 19" monitor | ||
|
||
%% This program is free software; you can redistribute it and/or | ||
%% modify it under the terms of the GNU General Public License | ||
%% as published by the Free Software Foundation; either version 2 | ||
%% of the License, or (at your option) any later version. | ||
|
||
%% This program is distributed in the hope that it will be useful, | ||
%% but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
%% GNU General Public License for more details. | ||
|
||
%% You should have received a copy of the GNU General Public License | ||
%% along with this program; if not, write to the Free Software | ||
%% Foundation, Inc., 59 Temple Place - Suite 330, | ||
%% Boston, MA 02111-1307, USA. | ||
|
||
% Page size | ||
% A3 paper: 297x420mm | ||
% A4 paper: 210x297mm => 146.5x246.2mm useful space | ||
% US paper: 215.9x279.4mm => 152.4x228.6 useful space | ||
% Landscape A4 See LaTeX Companion p.84, fig 4.1. | ||
% Monitor size | ||
% 17 inch 4:3 350x260mm, 16:9 380x210mm | ||
% 19 inch 4:3 390x290mm, 16:9 420x240mm | ||
% 21 inch 4:3 430x320mm, 16:9 440x260mm | ||
% 23 inch 4:3 470x350mm, 16:9 510x290mm | ||
\setlength{\hoffset}{-25.4mm} % See the Companion p.86. +ve axis to the right | ||
\addtolength{\hoffset}{-4mm} % Slide page image a little to the left | ||
\setlength{\voffset}{-25.4mm} % +ve axis downwards | ||
\addtolength{\voffset}{-4mm} % Raise page image just a little more | ||
|
||
\setlength{\textwidth}{390mm} | ||
\setlength{\paperwidth}{\textwidth} | ||
\setlength{\pdfpagewidth}{\textwidth} | ||
\addtolength{\textwidth}{-20mm} | ||
|
||
\setlength{\textheight}{240mm} | ||
\setlength{\paperheight}{\textheight} | ||
\setlength{\pdfpageheight}{\textheight} | ||
\addtolength{\textheight}{-30mm} | ||
|
||
\setlength{\columnsep}{15mm} | ||
%\setlength{\columnseprule}{1pt} | ||
\setlength{\topmargin}{3mm} | ||
\addtolength{\headsep}{-1mm} % See Companion, p.85 | ||
\addtolength{\footskip}{-1mm} | ||
|
||
% The LinePrinter print width | ||
\newlength{\LinePrinterwidth} | ||
\setlength{\LinePrinterwidth}{145.5mm} % 0.5(\textwidth-\columnsep)-32mm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
README 2021-05-20 Roger Price | ||
|
||
ConfigExamples | ||
-------------- | ||
The files in this directory provide for the creation of a PDF | ||
|
||
The files in this directory are used by LaTeX to create a PDF | ||
file containing the NUT Configuration Examples document. | ||
|
||
The base document is a LaTeX markup ConfigExamples.tex with two | ||
specific style files lineprinter.sty, and wrapfig.sty which although | ||
featuring in the LaTeX Companion, now seems to be deprecated, | ||
so I provide a copy. | ||
|
||
By default the PDF is created for the A5 page size, more suitable | ||
for reading on-screen. | ||
|
||
The .fig figures were created using the venerable xfig, and | ||
exported as .pdf for inclusion in the final document. | ||
exported as .pdf by xfig for inclusion in the final document. | ||
|
||
To build the document: | ||
|
||
make clean && make | ||
|
||
Latex will be run three times to ensure that all labels are | ||
correctly referenced. | ||
correctly referenced. The output is in file ConfigExamples.pdf. |