texlive[49863] Master/texmf-dist: lectures (29jan19)
commits+karl at tug.org
commits+karl at tug.org
Tue Jan 29 23:12:25 CET 2019
Revision: 49863
http://tug.org/svn/texlive?view=revision&revision=49863
Author: karl
Date: 2019-01-29 23:12:24 +0100 (Tue, 29 Jan 2019)
Log Message:
-----------
lectures (29jan19)
Modified Paths:
--------------
trunk/Master/texmf-dist/tex/latex/lectures/lectures.cls
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/lectures/tests/images/
trunk/Master/texmf-dist/doc/latex/lectures/tests/test.pdf
trunk/Master/texmf-dist/doc/latex/lectures/tests/test.tex
Deleted: trunk/Master/texmf-dist/doc/latex/lectures/tests/test.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/lectures/tests/test.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lectures/tests/test.tex 2019-01-29 22:12:09 UTC (rev 49862)
+++ trunk/Master/texmf-dist/doc/latex/lectures/tests/test.tex 2019-01-29 22:12:24 UTC (rev 49863)
@@ -1,23 +0,0 @@
-\documentclass{lectures}
-\begin{document}
-\maketitle{
- Test title
-}{
- Luca Cappelletti,Pinco Pallino
-}{
- Mirco Marconi,Millo Malloni
-}{
- Parlo Parloni,Parletti Parini
-}{
- 1782
-}{
- 3
-}{
- Informatica
-}{
- Università degli studi di Milano
-}{
- Italy
-}
-
-\end{document}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/tex/latex/lectures/lectures.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lectures/lectures.cls 2019-01-29 22:12:09 UTC (rev 49862)
+++ trunk/Master/texmf-dist/tex/latex/lectures/lectures.cls 2019-01-29 22:12:24 UTC (rev 49863)
@@ -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,7 +43,6 @@
\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}
@@ -50,6 +49,8 @@
\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,7 +595,9 @@
%
% #1 -> Name of author
%
- \textbf{#1}\\
+ \ifblank{#1}{}{
+ \textbf{#1}\\
+ }
}
\NewDocumentCommand{\TitlePageProcessProfessor}{m}{%
@@ -582,7 +604,9 @@
%
% #1 -> Name of author
%
- Prof.\,#1\\
+ \ifblank{#1}{}{
+ Prof.\,#1\\
+ }
}
\NewDocumentCommand{\TitlePageProcessSpeaker}{m}{%
@@ -589,7 +613,9 @@
%
% #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
More information about the tex-live-commits
mailing list