From 640a2c1396e10c77057ea4565bd6cdd4056073c8 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 29 Jan 2019 22:12:24 +0000 Subject: lectures (29jan19) git-svn-id: svn://tug.org/texlive/trunk@49863 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/lectures/lectures.cls | 44 ++++++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/tex') 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 \\ @@ -117,6 +118,24 @@ \setfloatlocations{figure}{H} \setfloatlocations{table}{H} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% 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 -- cgit v1.2.3