change the titlepage

This commit is contained in:
EthanDeng
2019-02-07 23:33:09 +08:00
parent aa50aed13c
commit f987bae98f
6 changed files with 73 additions and 3774 deletions

View File

@@ -108,6 +108,20 @@
\definecolor{third}{RGB}{7,127,128}% \definecolor{third}{RGB}{7,127,128}%
}{\relax} }{\relax}
%green color
\definecolor{main1}{RGB}{0,120,2}
\definecolor{second1}{RGB}{230,90,7}
\definecolor{third1}{RGB}{0,160,152}
%cyan color
\definecolor{main2}{RGB}{0,175,152}
\definecolor{second2}{RGB}{239,126,30}
\definecolor{third2}{RGB}{120,8,13}
%blue color
\definecolor{main3}{RGB}{20,50,104}
\definecolor{second3}{RGB}{180,50,131}
\definecolor{third3}{RGB}{7,127,128}
% corlor definition % corlor definition
\definecolor{winered}{rgb}{0.5,0,0} \definecolor{winered}{rgb}{0.5,0,0}
\definecolor{bule}{RGB}{18,29,57} \definecolor{bule}{RGB}{18,29,57}
@@ -133,12 +147,12 @@
\ifdefstring{\ELEGANT@titlestyle}{hang}{\def\style{hang}}{\relax} \ifdefstring{\ELEGANT@titlestyle}{hang}{\def\style{hang}}{\relax}
\ifdefstring{\ELEGANT@titlestyle}{display}{\def\style{display}}{\relax} \ifdefstring{\ELEGANT@titlestyle}{display}{\def\style{display}}{\relax}
\newtoks\zhtitle
\newtoks\entitle
\newtoks\email \newtoks\email
\newtoks\version \newtoks\version
\newtoks\enend \newtoks\institute
\newtoks\zhend \newtoks\subtitle
\RequirePackage{enumerate} \RequirePackage{enumerate}
% list/itemize/enumerate setting % list/itemize/enumerate setting
@@ -167,9 +181,14 @@
\RequirePackage{multicol} \RequirePackage{multicol}
\RequirePackage{xcolor} \RequirePackage{xcolor}
\RequirePackage{fancyvrb} \RequirePackage{fancyvrb}
\RequirePackage{makecell,lipsum,texnames,setspace}
\RequirePackage{tikz}
\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}} \graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
\usetikzlibrary{backgrounds,calc}
\RequirePackage{natbib} \RequirePackage{natbib}
\setlength{\bibsep}{0.0pt} \setlength{\bibsep}{0.0pt}
@@ -331,54 +350,53 @@
\renewcommand{\chaptermark}[1]{\markboth{\chaptername \; #1\;}{}} \renewcommand{\chaptermark}[1]{\markboth{\chaptername \; #1\;}{}}
%% %%
\newcommand*{\myquote}[1]{\def\@myquote{#1}} \newcommand*{\equote}[1]{\def\@equote{#1}}
\newcommand*{\logo}[1]{ \newcommand*{\logo}[1]{
\def\@logo{\includegraphics[width=0.3\textwidth]{#1} \def\@logo{\includegraphics[width=0.3\textwidth]{#1}
} }
} }
\newcommand*{\cover}[1]{
%% \def\@logo{\includegraphics[width=\linewidth]{cover.jpg}
\RequirePackage{wallpaper}
\newcommand*{\cover}[1]{\def\@cover{
\ThisTileWallPaper{\paperwidth}{\paperheight}{#1}
} }
} }
\def\maketitle{% \renewcommand*{\maketitle}{%
\thispagestyle{empty} \begin{titlepage}
% \@cover \newpage
\newgeometry{margin = 0in}
\parindent=0pt
\renewcommand\baselinestretch{2.5}
\includegraphics[width=\linewidth]{cover.jpg}
\setlength{\fboxsep}{0pt}
\colorbox{second}{\makebox[\linewidth][c]{\shortstack[c]{\vspace{0.5in}}}}
\vfill \vfill
\vspace*{2cm} \hfill
\begin{center} \begin{minipage}[c]{0.618\linewidth}
\color{second} {\bfseries\Huge \@title\\}
\rule{0.8\textwidth}{2pt}\\ {\bfseries\huge \the\subtitle\\[1ex]}
\Huge {\color{main} \bfseries \the\entitle } {\color{second} \bfseries \the\enend}\\ \color{gray}\kaishu\normalsize
{\Huge \bfseries{\color{main} \the\zhtitle } \the\zhend}\\ {\renewcommand{\arraystretch}{0.618}
\rule{0.8\textwidth}{2pt} \begin{tabular}{l}
\end{center} \@author \\
\vfill \the\version \\
\vskip5ex \the\institute\\
\centerline{\@logo} \@date
\begin{center} \end{tabular}}
\begin{minipage}{0.65\textwidth} \end{minipage}
\indent\centering\color{bule}\@myquote \hspace{2em}
\begin{minipage}[c]{0.26\linewidth}
\begin{tikzpicture}[remember picture,overlay]
\begin{pgfonlayer}{background}
\node[opacity=0.8,anchor=south east,outer sep=0pt,inner sep=0pt] at ($(current page.south east) +(-0.8in,1.5in)$) {\includegraphics[width=0.7\textwidth]{logo.png}};
\end{pgfonlayer}
\end{tikzpicture}
\end{minipage} \end{minipage}
\end{center}
\vfill \vfill
\begin{flushright} \centerline{\itshape \@equote}
\color{second}
\rule{0.45\textwidth}{1pt}\\
{\color{main}\@author}\\
{\color{main}\@date}\\
: \hyperlink{\the\email}{\the\email}\\
\rule{0.45\textwidth}{1pt}
\end{flushright}
\vfill \vfill
\begin{center} \restoregeometry
\color{second} : \the\version \end{titlepage}}
\end{center}
\vfil\eject
}

Binary file not shown.

View File

@@ -1,37 +1,20 @@
\documentclass{elegantbook} \documentclass{elegantbook}
\title{\mbox{ElegantBook优美的 \LaTeX{} 书籍模板}}
\subtitle{An Elegant Book Template}
\author{ddswhu \& Liam Huang} \author{ddswhu \& Liam Huang}
\date{January 22, 2019} \institute{Elegant\LaTeX{} Program}
\email{elegantlatex2e@gmail.com} \date{\today}
\usepackage{ntheorem}
\zhtitle{优美的 \LaTeX{} 书籍}
\zhend{模板}
\entitle{Elegant\LaTeX{} Book}
\enend{Template}
\version{3.05}
\myquote{Victory won\rq t come to us unless we go to it.}
\logo{logo.pdf}
\cover{cover.pdf}
%green color \version{3.06}
\definecolor{main1}{RGB}{0,120,2} \equote{Victory won\rq t come to us unless we go to it. --- M. Moore}
\definecolor{second1}{RGB}{230,90,7} \logo{logo.png}
\definecolor{third1}{RGB}{0,160,152} \cover{cover.jpg}
%cyan color
\definecolor{main2}{RGB}{0,175,152}
\definecolor{second2}{RGB}{239,126,30}
\definecolor{third2}{RGB}{120,8,13}
%blue color
\definecolor{main3}{RGB}{20,50,104}
\definecolor{second3}{RGB}{180,50,131}
\definecolor{third3}{RGB}{7,127,128}
\usepackage{makecell}
\usepackage{lipsum}
\usepackage{texnames}
\begin{document} \begin{document}
\maketitle \maketitle
\tableofcontents \tableofcontents
\mainmatter \mainmatter
\chapter{Elegant\LaTeX{} 系列模板介绍} \chapter{Elegant\LaTeX{} 系列模板介绍}

BIN
figure/cover.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 KiB

Binary file not shown.

File diff suppressed because one or more lines are too long