From c763f8dfaadf1ec4abbd416feb9225b8d87f1d52 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Sun, 4 Sep 2022 11:11:00 -0600 Subject: [PATCH] Add draft cover generator --- .gitignore | 1 + src/Cover.tex | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 src/Cover.tex diff --git a/.gitignore b/.gitignore index 42b1c82..1c0ce73 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +Cover.pdf SNOUG.pdf SNOUG-web.pdf tmp/ diff --git a/src/Cover.tex b/src/Cover.tex new file mode 100644 index 0000000..53ef07c --- /dev/null +++ b/src/Cover.tex @@ -0,0 +1,139 @@ +%\setstocksize{18.5cm}{12.5cm} % { height }{ width } +%\settrimmedsize{\stockheight}{\stockwidth}{*} +% A4 = 21.00 x 29.70 +% Letter 21.59 cm x 27.94 cm + + +%%% NOTES +% xspine + +\documentclass{book} +\usepackage[utf8x]{inputenc} +\usepackage{rotating} +%\usepackage[papersize={,18.5cm},topmargin=5mm, +% botmargin,strictheight, +% leftmargin=0mm,flap=40mm,textwidth=12.5cm,spine=1.5cm, +% textwidth=28.1cm,textheight=18.5cm, +% cropmarks,cropframe,croptitle=Cover]{zwpagelayout} +%\usepackage[papersize={27.94cm,21.59cm},topmargin=0cm, +%\usepackage[papersize={25cm,18.5cm},topmargin=5mm, + +%\usepackage[papersize={26.4cm,18.6cm},topmargin=5mm, +\usepackage[papersize={28.94cm,21.59cm},topmargin=5mm, + botmargin,strictheight, + textwidth=14.2cm,textheight=18.6cm, + leftmargin=0cm,spine=1.7cm, + rightmargin=2cm, + cropmarks,croptitle=Cover]{zwpagelayout} +% leftmargin=0mm,spine=1.7cm, + + +% cropmarks,cropframe,croptitle=Cover]{zwpagelayout} +%\usepackage[papersize={27.94cm,21.59cm},topmargin=0cm, +% botmargin,strictheight, +% textwidth=28.1cm,textheight=18.5cm, +% leftmargin=0mm,spine=1.5cm, +% cropmarks,cropframe,croptitle=Cover]{zwpagelayout} + +% Disable ean13isbd, broken/missing? in f13 texlive-2010 +%\usepackage{graphics,color} +%\usepackage[SC0,ISBN=999-99-9999-999-4]{ean13isbn} +%\usepackage[LY1]{fontenc} +%\renewcommand{\rmdefault}{IM_FELL_DW_Pica_PRO} +%\renewcommand{\bfdefault}{b} +%%\usepackage{lmodern,rotating} +%\usepackage{rotating} +%\pagestyle{empty} +%\parindent 0mm +%\def\thePageNumber{Brodie} + + +\def\moe{\rotatebox{33.0}{\upshape \kern-.5em \hbox{M}}% + \rotatebox{20.0}{\scshape\kern-.425em\lower-.4ex\hbox{o}} + } + +\begin{document} + +\newsavebox{\mysquare} +% 39 173 207 .15 .68 .81 +% 255 255 255 100 100 100 +\definecolor{brodieblue}{rgb}{0.15,0.68,.81} + +%\savebox{\mysquare}{\textcolor{brodieblue}{\rule{1in}{1in}}} + +%\pagecolor{brodieblue} +\pagecolor{white} + +%This is a red square: +%\usebox{\mysquare} +% +%Here is a rotated and scaled square: +%\scalebox{0.696}{\rotatebox{69.6}{\usebox{\mysquare}}} +% +%Here is a resized square with the aspect ratio distorted: + + + + +\small +\hbox to \textwidth{% +%%% BACK FLAP %%% +\hss +% \vbox to \textheight{\hsize \CropFlap \centering +% backflap\vfill}\hss +%%% END BACK FLAP %%% +%%% BACK COVER %%% + \vbox to \textheight{\hsize \UserWidth \centering + \vfill +% English/Spanish parallel text. + \vspace*{85pt} + \leavevmode }\hss +% ISBNbackcover\vfill \leavevmode \EANisbn}\hss +%%% END BACK COVER %%% +%%% SPINE %%% + \colorbox{white}{ + \vbox to \textheight{\hsize \CropSpine \centering + \vfill + \begin{sideways} + \rotatebox{180}{ + \Huge\scshape\textcolor{brodieblue}{Jeff Moe} +% \textcolor{white}{---} + \hspace*{20pt} + \large\itshape\textcolor{black}{SatNOGS Optical Unofficial Guide} + \hspace*{5pt} + \large\itshape\textcolor{black}{---} + \hspace*{5pt} + \large\scshape\textcolor{black}{---} + \hspace*{15pt} + \colorbox{black}{ + \rotatebox{90}{\textcolor{white}\moe}} + } + \end{sideways}\vfill}\hss + } +%%% END SPINE %%% + +%%% FRONT COVER %%% +\fcolorbox{white}{brodieblue}{ +\vbox to \textheight{\hsize \UserWidth \centering +\begingroup +\vspace*{60pt} +{\Huge \itshape \textcolor{white}{SatNOGS Optical Unofficial Guide}}\\[\baselineskip] +{\LARGE \scshape \textcolor{white}{---}}\\[\baselineskip] +\vfill +\color{white}\rule{120pt}{2.0pt}\\[\baselineskip] +%\fontfamily{Hopfer_Hornbook}\selectfont +{\huge \textcolor{white}{Jeff Moe}}\par +\endgroup +\vspace*{10pt} +{\normalsize \emph{\textcolor{white}{---}}} +\vspace*{55pt} +} +} +%%% END FRONT COVER +%%% FRONT FLAP %%% +\hss +% \vbox to \textheight{\hsize \CropFlap \centering +% frontflap\vfill}} +%%% END FRONT FLAP %%% +} +\end{document}