>From 85e0ec292cb75cad1ef71812fee11ed44ecc4ce8 Mon Sep 17 00:00:00 2001 From: Akira Yokosawa <akiyks@xxxxxxxxx> Date: Mon, 12 Sep 2016 06:55:49 +0900 Subject: [RFC PATH 6/6] Tweak page layout of onecolumn The use of \epigraphhead{} requires proper layout of header. This commit enables default page layout for onecolumn by modifying the sed pattern in Makefile and adjusting layout width params in the preamble. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- Makefile | 2 +- perfbook.tex | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index e06b0a8..0207473 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,7 @@ perfbook-1c.pdf: perfbook-1c.tex perfbook-1c.bbl sh utilities/runlatex.sh perfbook-1c perfbook-1c.tex: perfbook.tex - sed -e 's/,twocolumn//' -e '/^\\frontmatter/a \\\\pagestyle{plain}' -e 's/setboolean{twocolumn}{true}/setboolean{twocolumn}{false}/' < perfbook.tex > perfbook-1c.tex + sed -e 's/,twocolumn//' -e 's/setboolean{twocolumn}{true}/setboolean{twocolumn}{false}/' < perfbook.tex > perfbook-1c.tex perfbook-1c.bbl: $(BIBSOURCES) perfbook-1c.aux bibtex perfbook-1c diff --git a/perfbook.tex b/perfbook.tex index 77342c6..1493d16 100644 --- a/perfbook.tex +++ b/perfbook.tex @@ -88,10 +88,6 @@ \renewcommand\dbltopfraction{.75} \renewcommand\dblfloatpagefraction{.5} -\setlength{\textheight}{8.25in} -\setlength{\textwidth}{6.5in} -\setlength{\columnsep}{0.25in} - \newboolean{inbook} \setboolean{inbook}{true} \newcommand{\IfInBook}[2]{\ifthenelse{\boolean{inbook}}{#1}{#2}} @@ -102,6 +98,16 @@ \setboolean{hardcover}{false} \newcommand{\IfHardCover}[2]{\ifthenelse{\boolean{hardcover}}{#1}{#2}} +\IfTwoColumn{ +\setlength{\textheight}{8.25in} +\setlength{\textwidth}{6.5in} +\setlength{\columnsep}{0.25in} +}{ +\setlength{\textheight}{8.25in} +\setlength{\textwidth}{4.75in} +\setlength{\columnsep}{0in} +} + \IfHardCover{ \setlength{\topmargin}{13pt} \setlength{\evensidemargin}{-4pt} -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe perfbook" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html