Customize page geometry, tweak placement of large figures.
This commit is contained in:
22
Graphics.sty
22
Graphics.sty
@@ -23,12 +23,30 @@
|
|||||||
\newcommand{\centerfig}[3]{\cfig{#1}{#2}{#3}{\includegraphics}}
|
\newcommand{\centerfig}[3]{\cfig{#1}{#2}{#3}{\includegraphics}}
|
||||||
\newcommand{\centerfigw}[4][\textwidth]{\cfig{#2}{#3}{#4}{\includegraphics[keepaspectratio,width=#1]}}
|
\newcommand{\centerfigw}[4][\textwidth]{\cfig{#2}{#3}{#4}{\includegraphics[keepaspectratio,width=#1]}}
|
||||||
|
|
||||||
\newcommand{\bigfig}[4][1in]{%
|
\newcommand{\bigfig}[4][\twoscreenshotmaxwidth]{%
|
||||||
\bigfloat[#1]{figure}{%
|
\bigfloat[#1]{figure}{htp}{%
|
||||||
\captionsetup{type=figure}%
|
\captionsetup{type=figure}%
|
||||||
\includegraphics[keepaspectratio,width=\textwidth]{#2}%
|
\includegraphics[keepaspectratio,width=\textwidth]{#2}%
|
||||||
\centering\captionof{figure}{#4}\par%
|
\centering\captionof{figure}{#4}\par%
|
||||||
\label{fig:#3}%
|
\label{fig:#3}%
|
||||||
}%
|
}%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% \RequirePackage{float}
|
||||||
|
% \newfloat{fullpage}{htpb}{dbf}[chapter]
|
||||||
|
% \floatname{fullpage}{Figure}
|
||||||
|
|
||||||
|
\newcommand{\doublebigfig}[7][\twoscreenshotmaxwidth]{%
|
||||||
|
\bigfloat[#1]{figure}{p}{%
|
||||||
|
\captionsetup{type=figure}%
|
||||||
|
\includegraphics[keepaspectratio,width=\textwidth]{#2}%
|
||||||
|
\centering\captionof{figure}{#4}\par%
|
||||||
|
\label{fig:#3}
|
||||||
|
\bigskip
|
||||||
|
\captionsetup{type=figure}%
|
||||||
|
\includegraphics[keepaspectratio,width=\textwidth]{#5}%
|
||||||
|
\centering\captionof{figure}{#7}\par%
|
||||||
|
\label{fig:#6}%
|
||||||
|
}%
|
||||||
|
}
|
||||||
%#endregion
|
%#endregion
|
||||||
|
|||||||
@@ -4,5 +4,5 @@
|
|||||||
\hyphenation{
|
\hyphenation{
|
||||||
over-view
|
over-view
|
||||||
over-views
|
over-views
|
||||||
%wheth-er
|
fac-to-ry-talk
|
||||||
}
|
}
|
||||||
52
Layout.sty
52
Layout.sty
@@ -7,31 +7,41 @@
|
|||||||
\RequirePackage{microtype}
|
\RequirePackage{microtype}
|
||||||
|
|
||||||
% Page Layout
|
% Page Layout
|
||||||
%#region
|
\RequirePackage[
|
||||||
\RequirePackage[pass]{geometry}
|
letterpaper,
|
||||||
\RequirePackage{calc}
|
twoside,
|
||||||
\RequirePackage[strict]{changepage}
|
nohead,
|
||||||
|
width = 342pt,
|
||||||
|
height = 576pt,
|
||||||
|
inner = 108pt,
|
||||||
|
top = 108pt,
|
||||||
|
marginparwidth = 126pt,
|
||||||
|
marginparsep = 12pt,
|
||||||
|
footskip = 36pt,
|
||||||
|
]{geometry}
|
||||||
|
|
||||||
\newlength{\contentwidth}
|
\RequirePackage{calc}
|
||||||
\setlength{\contentwidth}{\textwidth+\marginparsep+\marginparwidth}
|
\RequirePackage[strict]{changepage}
|
||||||
|
|
||||||
\newlength{\bigfloatoffset}
|
\newlength{\contentwidth}
|
||||||
\setlength{\bigfloatoffset}{0.25in}
|
\setlength{\contentwidth}{\textwidth+\marginparsep+\marginparwidth}
|
||||||
|
|
||||||
% Maximum width adjustment to fit 2 16x9 screensots on one page.
|
\newlength{\bigfloatoffset}
|
||||||
\newlength{\twoscreenshotmaxwidth}
|
\setlength{\bigfloatoffset}{0.25in}
|
||||||
\setlength{\twoscreenshotmaxwidth}{0.65in}
|
|
||||||
|
|
||||||
\newcommand{\bigfloat}[3][1in]{%
|
% Maximum width adjustment to fit 2 16x9 screensots on one page.
|
||||||
\begin{#2}[htp]%
|
\newlength{\twoscreenshotmaxwidth}
|
||||||
\begin{adjustwidth*}{-#1+\bigfloatoffset}{-#1-\bigfloatoffset}%
|
\setlength{\twoscreenshotmaxwidth}{0.81in}
|
||||||
\begin{minipage}{#1 * 2 + \textwidth}%
|
|
||||||
#3%
|
\newcommand{\bigfloat}[4][\twoscreenshotmaxwidth]{%
|
||||||
\end{minipage}%
|
\begin{#2}[#3]%
|
||||||
\end{adjustwidth*}%
|
\begin{adjustwidth*}{-#1+\bigfloatoffset}{-#1-\bigfloatoffset}%
|
||||||
\end{#2}%
|
\begin{minipage}{#1 * 2 + \textwidth}%
|
||||||
}
|
#4%
|
||||||
%#endregion
|
\end{minipage}%
|
||||||
|
\end{adjustwidth*}%
|
||||||
|
\end{#2}%
|
||||||
|
}
|
||||||
|
|
||||||
% Title & Heading Options
|
% Title & Heading Options
|
||||||
%#region
|
%#region
|
||||||
|
|||||||
Reference in New Issue
Block a user