我有一份采用横向格式的文档。但是,我不知道如何旋转标题页,以便它与其余文本相适应。现在标题页是侧放的。
我正在使用以下代码制作标题页。有人能帮我正确旋转它吗?
\documentclass[letterpaper, openany, svgnames, xcolor]{book}
\usepackage[landscape, twocolumn, left=1in, top=1in, right=1in, bottom=1in]{geometry}
\usepackage{fontspec}
\usepackage{csquotes}
\MakeOuterQuote{"}
\usepackage{lscape}
\usepackage{soul}
\usepackage{pifont}
%%%%%%%%%% Experiments %%%%%%%%%%%%
\graphicspath{{Chapters/images/}{Chapters/images/Buttons/}}
\newfontfamily\signaturefont{Signerica Fat}
\usepackage{pstricks}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{dashrule}
%%%%%%% Wallpaper
\usepackage{wallpaper}
%%%%%%%%%%%%%%%%%%%%%
\setromanfont[Scale=1.2]{Alegreya}
\setsansfont{Alegreya}
\setmonofont{Alegreya}
\usepackage{setspace}
\linespread{1.5}
\usepackage{fancyhdr}
\fancyfoot[C]{\{ \thepage \}}
\pagestyle{plain}
\setlength{\columnsep}{1cm}
%%%%%%% >> Button Images in TOC
\usepackage{titletoc}
\newcounter{mysecimage}
\makeatletter
\newcommand\stdsectioninToC{
\titlecontents{section}
[3.8em]
{}
{\contentslabel{2.3em}}
{\hspace*{-2.3em}}
{\titlerule*[1em]{.}\contentspage}
}
\newcommand\iconsectioninToC{
\titlecontents{section}
[3.8em]
{}
{\contentslabel{2.3em}%
\stepcounter{mysecimage}%
\smash{\includegraphics[height=17pt]{image-\the\value{mysecimage}}}\hspace{0.5em}% change here
}
{\hspace*{-2.3em}}
{\titlerule*[1em]{.}\contentspage}
}
\AtBeginDocument{\stdsectioninToC}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{color, graphicx, wrapfig}
\newcommand*{\plogo}{\fbox{$\mathcal{PL}$}} % Generic publisher logo
\definecolor{Ahrenge}{RGB}{228, 132, 64}
\usepackage{hyperref}
\hypersetup{
colorlinks,
linkcolor=black,
urlcolor=Ahrenge}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\newcommand*{\rotrt}[1]{\rotatebox{90}{#1}} % Command to rotate right 90 degrees
\newcommand*{\rotlft}[1]{\rotatebox{-90}{#1}} % Command to rotate left 90 degrees
\newcommand*{\titleBC}{\begingroup % Create the command for including the title page in the document
\centering % Center all text
\def\CP{\textit{\Huge Fancy Title}} % Title
\settowidth{\unitlength}{\CP} % Set the width of the curly brackets to the width of the title
{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotrt{$\}$}}} \\[\baselineskip] % Print top curly bracket
\textcolor{Sienna}{\CP} \\[\baselineskip] % Print title
{\color{RosyBrown}\large Your Organization} \\ % Tagline or further description
{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotlft{$\}$}}} % Print bottom curly bracket
\vfill % Whitespace between the title and the author name
{\large{Your Name}}\\ % Author name
\vfill % Whitespace between the author name and the publisher logo
%\plogo\\[0.5\baselineskip] % Publisher logo
2014 % Year published
\endgroup}
%----------------------------------------------------------------------------------------
% BLANK DOCUMENT
%----------------------------------------------------------------------------------------
\begin{document}
\pagestyle{empty} % Removes page numbers
\begin{landscape}
\titleBC % This command includes the title page
\end{landscape}
\setcounter{tocdepth}{3}
\tableofcontents
\chapter{Test}
This is a test.
\end{document}
答案1
摆脱landscape
环境并用于\onecolumn
标题页(\twocolumn
之后使用返回两列格式):
\documentclass[letterpaper, openany, svgnames, xcolor]{book}
\usepackage[landscape, twocolumn, left=1in, top=1in, right=1in, bottom=1in]{geometry}
\usepackage{fontspec}
\usepackage{csquotes}
\MakeOuterQuote{"}
\usepackage{lscape}
\usepackage{soul}
\usepackage{pifont}
%%%%%%%%%% Experiments %%%%%%%%%%%%
\graphicspath{{Chapters/images/}{Chapters/images/Buttons/}}
%\newfontfamily\signaturefont{Signerica Fat}
\usepackage{pstricks}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{dashrule}
%%%%%%% Wallpaper
\usepackage{wallpaper}
%%%%%%%%%%%%%%%%%%%%%
%\setromanfont[Scale=1.2]{Alegreya}
%\setsansfont{Alegreya}
%\setmonofont{Alegreya}
\usepackage{setspace}
\linespread{1.5}
\usepackage{fancyhdr}
\fancyfoot[C]{\{ \thepage \}}
\pagestyle{plain}
\setlength{\columnsep}{1cm}
%%%%%%% >> Button Images in TOC
\usepackage{titletoc}
\newcounter{mysecimage}
\makeatletter
\newcommand\stdsectioninToC{
\titlecontents{section}
[3.8em]
{}
{\contentslabel{2.3em}}
{\hspace*{-2.3em}}
{\titlerule*[1em]{.}\contentspage}
}
\newcommand\iconsectioninToC{
\titlecontents{section}
[3.8em]
{}
{\contentslabel{2.3em}%
\stepcounter{mysecimage}%
\smash{\includegraphics[height=17pt]{image-\the\value{mysecimage}}}\hspace{0.5em}% change here
}
{\hspace*{-2.3em}}
{\titlerule*[1em]{.}\contentspage}
}
\AtBeginDocument{\stdsectioninToC}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{color, graphicx, wrapfig}
\newcommand*{\plogo}{\fbox{$\mathcal{PL}$}} % Generic publisher logo
\definecolor{Ahrenge}{RGB}{228, 132, 64}
\usepackage{hyperref}
\hypersetup{
colorlinks,
linkcolor=black,
urlcolor=Ahrenge}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\newcommand*{\rotrt}[1]{\rotatebox{90}{#1}} % Command to rotate right 90 degrees
\newcommand*{\rotlft}[1]{\rotatebox{-90}{#1}} % Command to rotate left 90 degrees
\newcommand*{\titleBC}{\begingroup % Create the command for including the title page in the document
\onecolumn
\centering % Center all text
\def\CP{\textit{\Huge Fancy Title}} % Title
\settowidth{\unitlength}{\CP} % Set the width of the curly brackets to the width of the title
{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotrt{$\}$}}} \\[\baselineskip] % Print top curly bracket
\textcolor{Sienna}{\CP} \\[\baselineskip] % Print title
{\color{RosyBrown}\large Your Organization} \\ % Tagline or further description
{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotlft{$\}$}}} % Print bottom curly bracket
\vfill % Whitespace between the title and the author name
{\large{Your Name}}\\ % Author name
\vfill % Whitespace between the author name and the publisher logo
%\plogo\\[0.5\baselineskip] % Publisher logo
2014 % Year published
\par
\endgroup
\twocolumn
}
%----------------------------------------------------------------------------------------
% BLANK DOCUMENT
%----------------------------------------------------------------------------------------
\usepackage{lipsum}
\begin{document}
\pagestyle{empty} % Removes page numbers
\titleBC % This command includes the title page
\setcounter{tocdepth}{3}
\tableofcontents
\chapter{Test}
\lipsum[4]
This is a test.
\end{document}
我注释掉了字体行,因为我没有安装这些字体。