summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-03-10 20:06:29 +0000
committerKarl Berry <karl@freefriends.org>2024-03-10 20:06:29 +0000
commita4ff95712ef6580119da985921a0db1a7615d548 (patch)
tree7eb0aa93f9fdf55333f6ed11eae50231975fff68
parent628eea3f8781ad62db9ab791bf8dc7887cb3c682 (diff)
litebook (10mar24)
git-svn-id: svn://tug.org/texlive/trunk@70557 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/litebook/cha/cha1.tex93
-rw-r--r--Master/texmf-dist/doc/latex/litebook/litebook.pdfbin723924 -> 721987 bytes
-rw-r--r--Master/texmf-dist/doc/latex/litebook/litebook.tex4
-rw-r--r--Master/texmf-dist/tex/latex/litebook/litebook.cls27
4 files changed, 70 insertions, 54 deletions
diff --git a/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex b/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex
index 2f946f844b1..09ca12e9969 100644
--- a/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex
+++ b/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex
@@ -22,7 +22,7 @@ The test environments are macOS + Mac\TeX{} 2024 / Overleaf and they all work fi
Just like the cover of this document, there are 5 lines of information on the cover and a cover image, the corresponding commands are
\begin{verbatim}
- \title{The \pkg{LiteBook} Template} \subtitle{Version 0.1a \today}
+ \title{The \pkg{LiteBook} Template} \subtitle{Version 0.1b \today}
\press{The University of Chicago Press} \author{Hsia Mingyu}
\bioinfo{Hangzhou Dianzi University} \cover{Beautiful-realities.jpeg}
\end{verbatim}
@@ -33,13 +33,13 @@ Here, the same as the \pkg{book} class, the command \cmd{title} could not be omi
This package has been preset with the following packages:
\begin{table}[!ht]
\centering
- \begin{tabular}{l l l l l l}
+ \begin{tabular}{l l l l l l l}
\toprule
- \pkg{amsmath} & \pkg{amssymb} & \pkg{mathrsfs} & \pkg{esvect} & \pkg{physics2,fixdif} & \pkg{bm}\\
+ \pkg{amsmath} & \pkg{amssymb} & \pkg{mathrsfs} & \pkg{esvect} & \pkg{physics2} & \pkg{fixdif} & \pkg{bm}\\
\midrule
- \pkg{derivative} & \pkg{cancel} & \pkg{extarrows} & \pkg{siunitx} & \pkg{nicefrac} & \pkg{nicematrix}\\
+ \pkg{derivative} & \pkg{cancel} & \pkg{extarrows} & \pkg{siunitx} & \pkg{nicefrac} & \pkg{nicematrix} & \pkg{booktabs}\\
\midrule
- \pkg{booktabs} & \pkg{tabularx} & \pkg{diagbox} & \pkg{multicol} & \pkg{multirow} & \pkg{refstyle}\\
+ \pkg{tabularx} & \pkg{diagbox} & \pkg{multicol} & \pkg{multirow} & \pkg{refstyle} & \pkg{tcolorbox} & \pkg{fontawesome5}\\
\bottomrule
\end{tabular}
\end{table}
@@ -49,36 +49,54 @@ You can click on them to go to the homepage to view the documentation.
And commands \verb|\i|, \verb|\e|, \verb|\T| has been defined to input
$\i$, $\e$ in roman (non-italic) text and matrix transpose symbol $\T$, which can help you typeset math quickly.
-The template has been preset the following reference command with the \pkg{refstyle} package: \verb|\eqref{#1}|, \verb|\figref{#1}| and \verb|tabref{#1}|, you can add other commands like these with the \pkg{refstyle} package.
+The template has been preset the following reference command via \pkg{refstyle} package: \verb|\eqref{#1}|, \verb|\figref{#1}| and \verb|\tabref{#1}|, you can add other commands like these via \pkg{refstyle} package.
\section{Preset Environments}
-The template has been preset the following envrionments with the \pkg{amsthm} package
-
-\begin{tcblisting}{sidebyside}
- \begin{theorem}
- A theorem environment.
- \end{theorem}
-\end{tcblisting}
-
-\begin{tcblisting}{sidebyside}
- \begin{example}
- An example environment.
- \end{example}
-\end{tcblisting}
-
-\begin{tcblisting}{sidebyside}
- \begin{problem}
- A problem environment.
- \end{problem}
-\end{tcblisting}
-
-\begin{tcblisting}{sidebyside}
- \begin{solution}
- A solution environment.
- \end{solution}
-\end{tcblisting}
-
-You can add other envrionments like these with the \pkg{amsthm} package.
+The following environments have been preset, you can add other environments via the \pkg{amsthm} package.
+
+\begin{multicols}{2}
+
+\begin{definition}
+ A definition environment.
+\end{definition}
+
+\begin{theorem}
+ A theorem environment.
+\end{theorem}
+
+\begin{lemma}
+ A lemma environment.
+\end{lemma}
+
+\begin{corollary}
+ A corollary environment.
+\end{corollary}
+
+\begin{postulate}
+ A postulate environment.
+\end{postulate}
+
+\begin{axiom}
+ An axiom environment.
+\end{axiom}
+
+\begin{proposition}
+ A proposition environment.
+\end{proposition}
+
+\begin{example}
+ An example environment.
+\end{example}
+
+\begin{problem}
+ A problem environment.
+\end{problem}
+
+\begin{solution}
+ A solution environment.
+\end{solution}
+
+\end{multicols}
\section{Equation Test}
\begin{equation}
@@ -115,11 +133,4 @@ The Klein-Gordon \eqref{1.6.1}.
\end{minipage}
\end{figure}
-\figref{1.1} shows the Light Cone.
-
-\section{Warnings}
-
-Due to the template has used the \pkg{FadingImage} package to add a fading image on the cover, when you use the \hologo{pdfLaTeX} compiler, should run it for two times or the cover image will not appear on the correct location, also, there will be a double question mark when referring to labels.
-
-
-% amsthm \ No newline at end of file
+\figref{1.1} shows the Light Cone. \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/litebook/litebook.pdf b/Master/texmf-dist/doc/latex/litebook/litebook.pdf
index d361e0fef4a..9172a5c78ff 100644
--- a/Master/texmf-dist/doc/latex/litebook/litebook.pdf
+++ b/Master/texmf-dist/doc/latex/litebook/litebook.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/litebook/litebook.tex b/Master/texmf-dist/doc/latex/litebook/litebook.tex
index dc6f1464906..39ce87706eb 100644
--- a/Master/texmf-dist/doc/latex/litebook/litebook.tex
+++ b/Master/texmf-dist/doc/latex/litebook/litebook.tex
@@ -2,17 +2,17 @@
\documentclass{litebook}
\title{The \pkg{LiteBook} Template}
-\subtitle{Version 0.1a \today}
+\subtitle{Version 0.1c \today}
\press{The University of Chicago Press}
\author{Hsia Mingyu}
\bioinfo{Hangzhou Dianzi University}
\cover{Beautiful-realities}
\begin{document}
-
\maketitle
\frontmatter\tableofcontents\mainmatter
\input{cha/cha1.tex}
\input{cha/scha.tex}
+
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/litebook/litebook.cls b/Master/texmf-dist/tex/latex/litebook/litebook.cls
index e61bd5b7bb7..92de10dd3e0 100644
--- a/Master/texmf-dist/tex/latex/litebook/litebook.cls
+++ b/Master/texmf-dist/tex/latex/litebook/litebook.cls
@@ -19,7 +19,7 @@
%% ****************************************************************************************************
% !Mode:: "TeX:UTF-8"
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{litebook}[2024/03/10 v0.1a LiteBook document class]
+\ProvidesClass{litebook}[2024/03/11 v0.1c LiteBook document class]
\RequirePackage{kvoptions}
\RequirePackage{etoolbox}
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{book}}
@@ -30,7 +30,7 @@
\geometry{rmargin=1.25 in,lmargin=.75 in,tmargin=1 in,bmargin=1 in}
\RequirePackage{graphics,graphicx}
-\graphicspath{{./figures/}}
+\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
\RequirePackage{indentfirst}
\setlength{\parindent}{2ex}
@@ -84,7 +84,7 @@
\lfoot{}\cfoot{}\rfoot{}
\RequirePackage[most]{tcolorbox}
-\RequirePackage{tikz}
+\RequirePackage{tikz,fontawesome5}
\usetikzlibrary{arrows,tikzmark,patterns,calc}
\RequirePackage{fadingimage}
\tikzset{>=stealth',
@@ -109,9 +109,10 @@ every picture/.append style={
\begin{titlepage}
\newgeometry{margin = 0 in}
\ifcsname @cover\endcsname
+ \UPFadingImage[trim={0 {.9\paperheight} 0 0},clip]{\@cover}
\LOWFadingImage[trim={0 {.5\paperheight} 0 0},clip]{\@cover}
\fi
- \parindent=0pt\vskip12ex
+ \parindent=0pt\vskip75\p@
\centering\sffamily\bfseries
\HUge\@title
\ifcsname @subtitle\endcsname
@@ -122,8 +123,7 @@ every picture/.append style={
\vskip2ex\Large\@bioinfo\fi
\ifcsname @press\endcsname\vfill
\parbox[t]{\textwidth}{\centering
- \Large\@press\vskip10ex
- }\fi
+ \Large\@press\vskip75\p@}\fi
\clearpage
\vspace*{\fill}
\Huge\itshape\@title
@@ -163,13 +163,18 @@ every picture/.append style={
\RequirePackage{physics2,bm,fixdif,derivative,cancel,extarrows,siunitx,nicefrac,nicematrix}
\usephysicsmodule{ab,braket,diagmat,doubleprod,xmat,ab.legacy,op.legacy}
\RequirePackage[e]{esvect}
-
\def\i{\mathrm i}\def\e{\mathrm e}\def\T{\mathsf T}
\theoremstyle{definition}
-\newtheorem{problem}{Problem}[section]
-\newtheorem{theorem}{Theorem}[section]
+\newtheorem{definition}{\sffamily\color{pkgcolor} Definition}[section]
+\newtheorem{theorem}{\sffamily\color{moducolor} Theorem}[section]
+\newtheorem{lemma}{\sffamily\color{moducolor} Lemma}[section]
+\newtheorem{corollary}{\sffamily\color{moducolor}Corollary}[section]
+\newtheorem{postulate}{\sffamily\color{moducolor}Postulate}[section]
+\newtheorem{axiom}{\sffamily\color{moducolor}Axiom}[section]
+\newtheorem{proposition}{\sffamily\color{cmdcolor}Proposition}[section]
+\newtheorem*{example}{\sffamily Example}
+\newtheorem{problem}{\sffamily Problem}[chapter]
\def\theproblem{\arabic{problem}}
-\newtheorem*{example}{Example}
-\newtheorem*{solution}{Solution}
+\newtheorem*{solution}{\sffamily Solution}
\numberwithin{equation}{section} \ No newline at end of file