texlive[70563] branches/branch2023.final/Master/texmf-dist: litebook

commits+karl at tug.org commits+karl at tug.org
Sun Mar 10 21:07:27 CET 2024


Revision: 70563
          https://tug.org/svn/texlive?view=revision&revision=70563
Author:   karl
Date:     2024-03-10 21:07:27 +0100 (Sun, 10 Mar 2024)
Log Message:
-----------
litebook (branch) (10mar24)

Modified Paths:
--------------
    branches/branch2023.final/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex
    branches/branch2023.final/Master/texmf-dist/doc/latex/litebook/litebook.pdf
    branches/branch2023.final/Master/texmf-dist/doc/latex/litebook/litebook.tex
    branches/branch2023.final/Master/texmf-dist/tex/latex/litebook/litebook.cls

Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex	2024-03-10 20:07:17 UTC (rev 70562)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/litebook/cha/cha1.tex	2024-03-10 20:07:27 UTC (rev 70563)
@@ -22,7 +22,7 @@
 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 @@
 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,37 +49,55 @@
 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
+The following environments have been preset, you can add other environments via the \pkg{amsthm} package.
 
-\begin{tcblisting}{sidebyside}
-    \begin{theorem}
-        A theorem environment.
-    \end{theorem}
-\end{tcblisting}
+\begin{multicols}{2}
 
-\begin{tcblisting}{sidebyside}
-    \begin{example}
-        An example environment.
-    \end{example}
-\end{tcblisting}
+\begin{definition}
+    A definition environment.
+\end{definition}
 
-\begin{tcblisting}{sidebyside}
-    \begin{problem}
-        A problem environment.
-    \end{problem}
-\end{tcblisting}
+\begin{theorem}
+    A theorem environment.
+\end{theorem}
 
-\begin{tcblisting}{sidebyside}
-    \begin{solution}
-        A solution environment.
-    \end{solution}
-\end{tcblisting}
+\begin{lemma}
+    A lemma environment.
+\end{lemma}
 
-You can add other envrionments like these with the \pkg{amsthm} package.
+\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}
     \ab(\frac1{c^2}\frac{\partial^2}{\partial t^2}-\nabla^2+\frac{mc^2}{\hbar^2})\psi(\mathbf x,t)=0
@@ -115,11 +133,4 @@
 \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

Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/litebook/litebook.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/litebook/litebook.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/litebook/litebook.tex	2024-03-10 20:07:17 UTC (rev 70562)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/litebook/litebook.tex	2024-03-10 20:07:27 UTC (rev 70563)
@@ -2,7 +2,7 @@
 \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}
@@ -9,10 +9,10 @@
 \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

Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/litebook/litebook.cls
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/litebook/litebook.cls	2024-03-10 20:07:17 UTC (rev 70562)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/litebook/litebook.cls	2024-03-10 20:07:27 UTC (rev 70563)
@@ -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 @@
 \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 @@
     \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 @@
 \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



More information about the tex-live-commits mailing list.