summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lectures
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-29 22:12:24 +0000
committerKarl Berry <karl@freefriends.org>2019-01-29 22:12:24 +0000
commit640a2c1396e10c77057ea4565bd6cdd4056073c8 (patch)
tree5e4ca9f527ec5c5f16d319eab162804166b5c4d1 /Master/texmf-dist/tex/latex/lectures
parent7051618f193878d7680d2575f4878c65c9a7826a (diff)
lectures (29jan19)
git-svn-id: svn://tug.org/texlive/trunk@49863 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lectures')
-rw-r--r--Master/texmf-dist/tex/latex/lectures/lectures.cls44
1 files changed, 39 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/lectures/lectures.cls b/Master/texmf-dist/tex/latex/lectures/lectures.cls
index 1b42830b6b1..26ffcdc0371 100644
--- a/Master/texmf-dist/tex/latex/lectures/lectures.cls
+++ b/Master/texmf-dist/tex/latex/lectures/lectures.cls
@@ -7,7 +7,7 @@
%
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
%
-\def\LectureNotesVersion{v1.0.0}
+\def\LectureNotesVersion{v1.0.2}
\newcommand{\defaultlanguage}{italian}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{lectures}[2019/01/27 LaTeX document class for lectures notes.]
@@ -43,13 +43,14 @@
\RequirePackage{fp,xparse,iftex}
\RequirePackage[english, italian]{babel} % Set up supported languages. Last one is default.
\RequirePackage[T1]{fontenc} % Defines true type fonts
-\RequirePackage[x11names,table,dvipsnames]{xcolor}
\RequirePackage{multicol}
\RequirePackage{emptypage}
\RequirePackage{microtype}
\RequirePackage{centernot}
\RequirePackage{framed}
\RequirePackage{float}
+\RequirePackage[colorlinks=true,urlcolor=blue,pdfpagelabels,hyperindex=false]{hyperref} % Enable table of contents and links.
+\RequirePackage[x11names,table,dvipsnames]{xcolor}
\RequirePackage{subfiles} % To use subfiles without cruxifying saints
\RequirePackage{parskip} % To leave spaces in paragraphs without using \\
@@ -119,6 +120,24 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
+% COLOR %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\newcommand{\red}[1]{
+ \textcolor{red!90}{#1}
+}
+
+\newcommand{\blue}[1]{
+ \textcolor{blue!90}{#1}
+}
+
+\newcommand{\error}[1]{
+ \textcolor{red!90}{#1}
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
% CUSTOM MATH COMMANDS AND MACROS %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -475,6 +494,7 @@
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\theoremstyle{definition} % Sets the theorem style without italic
\IfEq{\defaultlanguage}{italian}{
\newtheorem{theorem}{Teorema}[section]
@@ -575,21 +595,27 @@
%
% #1 -> Name of author
%
- \textbf{#1}\\
+ \ifblank{#1}{}{
+ \textbf{#1}\\
+ }
}
\NewDocumentCommand{\TitlePageProcessProfessor}{m}{%
%
% #1 -> Name of author
%
- Prof.\,#1\\
+ \ifblank{#1}{}{
+ Prof.\,#1\\
+ }
}
\NewDocumentCommand{\TitlePageProcessSpeaker}{m}{%
%
% #1 -> Name of author
%
- #1\\
+ \ifblank{#1}{}{
+ #1\\
+ }
}
@@ -626,6 +652,7 @@
% #8 -> University
% #9 -> Country
%
+ \hypersetup{pageanchor=false}
\begin{titlepage}
\begin{center}
\textbf{\MakeUppercase{\large{#1}}}\\
@@ -660,4 +687,11 @@
\today
\end{center}
\end{titlepage}
+ \hypersetup{pageanchor=true}
}
+
+\let\oldtableofcontents\tableofcontents
+
+\RenewDocumentCommand{\tableofcontents}{}{
+ {\hypersetup{hidelinks}\oldtableofcontents}
+} \ No newline at end of file