diff options
Diffstat (limited to 'macros/latex/contrib/beautybook/beautybook-en.tex')
-rw-r--r-- | macros/latex/contrib/beautybook/beautybook-en.tex | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/macros/latex/contrib/beautybook/beautybook-en.tex b/macros/latex/contrib/beautybook/beautybook-en.tex index 275b5040ca..c9c6b9405d 100644 --- a/macros/latex/contrib/beautybook/beautybook-en.tex +++ b/macros/latex/contrib/beautybook/beautybook-en.tex @@ -1,4 +1,11 @@ -\documentclass[12pt]{beautybook-en} +\documentclass[lang=en,12pt]{beautybook} +\RequirePackage[utf8]{inputenc} +\RequirePackage{times} % Times New Roman Font +\RequirePackage[T1]{fontenc} +\RequirePackage{microtype} +\RequirePackage{pgfplots} +\tikzset{>=Stealth} +\pgfplotsset{compat=1.18} % ---------------------------------------------------------------------------- % % The Cover Theme Chosen % % ---------------------------------------------------------------------------- % @@ -17,6 +24,11 @@ math-font=plain, % plain; stix; mtpro2 } \usepackage{bm} +\renewcommand*{\textfraction}{0.05} +\renewcommand*{\topfraction}{0.9} +\renewcommand*{\bottomfraction}{0.8} +\renewcommand*{\floatpagefraction}{0.85} + % \overfullrule=1pt % \RequirePackage[fontsize=13.5pt]{fontsize} %% First one @@ -242,7 +254,7 @@ sorting=nty \title{An Introduction to beautybook template} \subtitle{A subtitle here} \edition{First Edition} -\bookseries{Illustrated by Ethan Lu} +\bookseries{Ilustrated by Ethan Lu} \author{Ethan Lu} \pressname{beautybook} \presslogo{inner_pics/beautybook-logo.png} @@ -346,7 +358,7 @@ The Project Addresses are the following. \section{Installation and Maintenance of Template} -There are two ways you can use this template. The first method is trivial that just download the zip of template from above channel, and then unzip and compile the main file in the archive (i.e. a file with a name like ``Beautybook-xx. tex"). The second way is uploading the zip of template to \texttt{overleaf} to comply. +There are two ways you can use this template. The first method is trivial that just download the zip of template from above channel, and then unzip and compile the main file in the archive (i.e. a file with a name like ``beautybook-xx. tex"). The second way is uploading the zip of template to \texttt{overleaf} to comply. Note that if you choose the second way, you must write \lstinline{math-font=plain} in the premble of the main file! @@ -359,10 +371,17 @@ To install locally, follow above steps to download the latest version from GitHu The following is an example of a minimal work: \begin{lstlisting} -\documentclass[12pt]{beautybook-EN} -% ---------------------------------------------------------------------------- % +\documentclass[lang=en,12pt]{beautybook} +\RequirePackage[utf8]{inputenc} +\RequirePackage{times} % Times New Roman Font +\RequirePackage[T1]{fontenc} +\RequirePackage{microtype} +\RequirePackage{pgfplots} +\tikzset{>=Stealth} +\pgfplotsset{compat=1.18} +% ------------------------------------------------- % % The Cover Theme Chosen % -% ---------------------------------------------------------------------------- % +% ------------------------------------------------- % \definecolor{coverbgcolor}{HTML}{e0e0e0} \definecolor{coverfgcolor}{HTML}{1f3134} % The color of the background \definecolor{coverbar}{HTML}{7c9092} % The color of the left bar @@ -601,8 +620,8 @@ sorting=nty \edition{The Edition} \bookseries{Illustrated by author} \author{author} -\pressname{press} -\presslogo{inner_pics/logo.png} +\pressname{beautybook} +\presslogo{inner_pics/beautybook-logo.png} \coverimage{inner_pics/coverimage.jpg}%ivy-ge998908f8_1280.jpg \makecover @@ -711,17 +730,17 @@ tlmgr update --self --all --reinstall-forcibly-removed Please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \TeX{} distribution?} for more information. -\chapter{The setting of Beautybook Template} +\chapter{The setting of beautybook Template} The English version of this template is based on the basic ``book" class, and the Chinese version is based on the ``ctexbook" class, so the option of book or ctexbook is also valid for this template. The default encoding is \texttt{UTF-8}, and it is recommended to compile with \TeX{} Live. \section{Language Mode} -This template includes two basic locales: \lstinline{Beautybook-CN.cls} in Chinese and \lstinline{Beautybook-EN.cls} in English. Changing the locales alters the headings (including figures and tables) of the chart title, the article formatting (such as table of contents and references), and the language used for theorem contexts (such as Theorem, Lemma, etc.). You can switch between these language modes using the following instructions in the top of the premble: +This template includes two basic locales: Chinese and English. Changing the locales alters the headings (including figures and tables) of the chart title, the article formatting (such as table of contents and references), and the language used for theorem contexts (such as Theorem, Lemma, etc.). You can switch between these language modes using the following instructions in the top of the premble: \begin{lstlisting} -\documentclass{beautybook-CN} % chinese -\documentclass{beautybook-EN} % english + \documentclass[lang=cn,zihao=-4,a4paper,fontset=windows]{beautybook} % chinese + \documentclass[lang=en,12pt]{beautybook} % english \end{lstlisting} In addition to the two language settings that come with the template, if you need to use another language, you can do so by modifying the \texttt{.cls} file as follows @@ -729,7 +748,6 @@ In addition to the two language settings that come with the template, if you nee \begin{enumerate} \item Change the name of the part environment \lstinline{Part\ \thepart} to \lstinline{(translation of part in your language)\ \thepart} \item Theorem environment guide words in premble, such as Theorem. - \item Please remember that only Asian languages can be modified based on \lstinline{beautybook-CN.cls}, other foreign languages need to be modified based on \lstinline{beautybook-EN.cls}. \end{enumerate} \section{Theme Color} @@ -880,19 +898,19 @@ Here is the effect of the theorem environment provided by amsthm. \end{definition} \begin{theorem} - The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}. + The usage is the same as above, refer to the tag \ref{def label} below or you can use \autoref{def label}. \end{theorem} \begin{lemma} - The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}. + The usage is the same as above, refer to the tag \ref{def label} below or you can use \autoref{def label}. \end{lemma} \begin{corollary} - The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}. + The usage is the same as above, refer to the tag \ref{def label} below or you can use \autoref{def label}. \end{corollary} \newpage \begin{example} - The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}. + The usage is the same as above, refer to the tag \ref{def label} below or you can use \autoref{def label}. \end{example} \subsection*{Ancient style box} \begin{fancybox} |