texlive[49851] Master: lectures (28jan19)

commits+karl at tug.org commits+karl at tug.org
Mon Jan 28 23:05:23 CET 2019


Revision: 49851
          http://tug.org/svn/texlive?view=revision&revision=49851
Author:   karl
Date:     2019-01-28 23:05:23 +0100 (Mon, 28 Jan 2019)
Log Message:
-----------
lectures (28jan19)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/lectures/
    trunk/Master/texmf-dist/doc/latex/lectures/LICENSE
    trunk/Master/texmf-dist/doc/latex/lectures/README.md
    trunk/Master/texmf-dist/doc/latex/lectures/tests/
    trunk/Master/texmf-dist/doc/latex/lectures/tests/images/
    trunk/Master/texmf-dist/doc/latex/lectures/tests/images/logo.png
    trunk/Master/texmf-dist/doc/latex/lectures/tests/test.pdf
    trunk/Master/texmf-dist/doc/latex/lectures/tests/test.tex
    trunk/Master/texmf-dist/tex/latex/lectures/
    trunk/Master/texmf-dist/tex/latex/lectures/lectures.cls
    trunk/Master/tlpkg/tlpsrc/lectures.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/lectures/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lectures/LICENSE	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/lectures/LICENSE	2019-01-28 22:05:23 UTC (rev 49851)
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 Luca Cappelletti
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+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.

Added: trunk/Master/texmf-dist/doc/latex/lectures/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lectures/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/lectures/README.md	2019-01-28 22:05:23 UTC (rev 49851)
@@ -0,0 +1,101 @@
+# lectures
+A LaTeX documentclass for lecture notes.
+
+## Usage
+### Including the document class
+You can include the document class `lectures` as follows:
+
+```latex
+\documentclass{lectures}
+```
+
+To specify a particular language (currently supported just *italian* and *english*) you can do the following:
+
+```latex
+\documentclass[italian]{lectures}
+```
+
+### Title page
+One of the main features of the library is the provided title page. You can create it as follows:
+```latex
+\documentclass{lectures}
+\begin{document}
+    \maketitle{
+      Your title
+    }{
+      First author name,Second author name
+    }{
+      First professor name,Second professor name
+    }{
+      Parlo Parloni,Parletti Parini
+    }{
+      Year
+    }{
+      CFU of the course
+    }{
+      Informatica
+    }{
+      University name
+    }{
+      Country
+    }
+
+\end{document}
+```
+
+## Features
+
+### Silenced useless warnings
+Using the package [`silence`](https://ctan.org/pkg/silence?lang=en) the library silences the following warnings:
+
+- **latex**
+    -  You have requested package
+    -  There were undefined references
+    -  Command
+- **latexfont**
+    -  Size substitutions with differences
+    -  Font shape
+- **biblatex** 
+    -  Using fall-back BibTeX(8)
+    -  Please (re)run BibTeX on the file(s)
+-  **auxhook**
+    - Cannot patch  
+- **glossaries** 
+    - No \printglossary or \printglossaries found.
+
+### Float related gimmicks
+All floating objects are automatically centered and set to `H` as position with other objects.
+
+### Table related gimmicks
+#### L
+A new column type is given `L`, that allows for automatic mathmode in column.
+
+TODO: Add usage example!
+
+### Theorems related gimmicks
+All theorems are in `definition` style, meaning that they are not in *italic*.
+
+Proofs are treated as theorem environments.
+
+The following theorem-like environments are provided: 
+- theorem
+- corollary
+- lemma
+- proposition
+- observation
+- definition
+- complexity
+- property
+- problem
+- proof
+
+### Lists related gimmicks
+- Lists are built to be more compact and leave less blank space.
+- Using the environment `todolist` it is possible to create checklists.
+
+TODO: Add todolist example.
+
+### Additional gimmicks
+- When a page is empty, Latex won't generate page number or other page elements.
+- When you want to leave a blank line you can just leave a blank line, without adding `\\`.
+- If you'd like to use roman numerals there a command for that: `\rom{your number goes here}`.
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/lectures/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/lectures/tests/images/logo.png
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/lectures/tests/images/logo.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lectures/tests/images/logo.png	2019-01-28 22:04:36 UTC (rev 49850)
+++ trunk/Master/texmf-dist/doc/latex/lectures/tests/images/logo.png	2019-01-28 22:05:23 UTC (rev 49851)

Property changes on: trunk/Master/texmf-dist/doc/latex/lectures/tests/images/logo.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/lectures/tests/test.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/lectures/tests/test.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lectures/tests/test.pdf	2019-01-28 22:04:36 UTC (rev 49850)
+++ trunk/Master/texmf-dist/doc/latex/lectures/tests/test.pdf	2019-01-28 22:05:23 UTC (rev 49851)

Property changes on: trunk/Master/texmf-dist/doc/latex/lectures/tests/test.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/lectures/tests/test.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lectures/tests/test.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/lectures/tests/test.tex	2019-01-28 22:05:23 UTC (rev 49851)
@@ -0,0 +1,23 @@
+\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


Property changes on: trunk/Master/texmf-dist/doc/latex/lectures/tests/test.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/lectures/lectures.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lectures/lectures.cls	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/lectures/lectures.cls	2019-01-28 22:05:23 UTC (rev 49851)
@@ -0,0 +1,663 @@
+%
+% Copyright 2018 Luca Cappelletti
+%
+% Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+%
+% The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+%
+% 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}
+\newcommand{\defaultlanguage}{italian}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{lectures}[2019/01/27 LaTeX document class for lectures notes.]
+\LoadClass{report}
+
+\DeclareOption{italian}{\renewcommand{\defaultlanguage}{italian}}
+\DeclareOption{english}{\renewcommand{\defaultlanguage}{english}}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
+\ProcessOptions\relax
+
+\RequirePackage{etoolbox}
+\RequirePackage{geometry} % More rich support for page layout.
+\geometry{
+  a4paper,
+  total={190mm,260mm},
+  left=10mm,
+  top=20mm,
+}
+
+% Disabling useless warnings.
+\RequirePackage{silence}
+\WarningFilter{latex}{You have requested package}
+\WarningFilter{latex}{There were undefined references}
+\WarningFilter{latexfont}{Size substitutions with differences}
+\WarningFilter{latexfont}{Font shape}
+\WarningFilter{latex}{Command}
+\WarningFilter{biblatex}{Using fall-back BibTeX(8)}
+\WarningFilter{biblatex}{Please (re)run BibTeX on the file(s)}
+\WarningFilter{auxhook}{Cannot patch}
+\WarningFilter{glossaries}{No \printglossary or \printglossaries found.}
+
+\RequirePackage{amsmath,amsthm,amsfonts,amssymb,array,bm,xfrac}
+\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{subfiles} % To use subfiles without cruxifying saints
+\RequirePackage{parskip} % To leave spaces in paragraphs without using \\
+\RequirePackage{soul} % To cancel text with a line using the commant \st, to underline text and highlight.
+\RequirePackage{fourier} % For icons such as \bomb, \noway, \danger and various others. For more info, go here: http://ctan.mirror.garr.it/mirrors/CTAN/fonts/fourier-GUT/doc/latex/fourier/fourier-orns.pdf
+\RequirePackage{marvosym} % For icons such as \Cross
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+% GRAPHICAL SETUP AND DESIGN              %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\RequirePackage{sectsty} % Styles sectional headers
+\RequirePackage{fancyhdr} % This allows for the headings in the chapters
+\pagestyle{fancy} % This activates it
+\RequirePackage[avantgarde]{quotchap} % Custom style for chapters
+
+% Reduce chapter name size and reserved blank space.
+\makeatletter
+\renewcommand{\@makechapterhead}[1]{%
+  %\chapterheadstartvskip%
+  {\size at chapter{\sectfont\raggedleft
+        {\chapnumfont
+          \ifnum \c at secnumdepth >\m at ne%
+            \if at mainmatter\thechapter\else\phantom{\thechapter}%
+            \fi\else\phantom{\thechapter}\fi
+          \par\nobreak}%
+        {\raggedleft\advance\leftmargin10em\interlinepenalty\@M #1\par}}
+      \nobreak\chapterheadendvskip}}
+\makeatother
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+% FIGURES                                 %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\RequirePackage{graphicx} % for images and generally graphics
+\RequirePackage{caption} % enabling of nice captions
+\RequirePackage{subcaption} % and subcaptions of images
+\graphicspath{ {images/} } % We'll put all the images in the folder "images"
+
+\setlength{\intextsep}{3pt plus 2pt minus 2pt}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% THE FOLLOWING CENTERS ALL FLOATING ITEMS BY DEFAULT   %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\makeatletter
+\g at addto@macro\@floatboxreset\centering
+\makeatother
+
+\makeatletter
+\apptocmd\subcaption at minipage{\centering}{}{}
+\makeatother
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% THE FOLLOWING SETS ALL FLOATING ITEMS TO H BY DEFAULT %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\makeatletter
+\providecommand*\setfloatlocations[2]{\@namedef{fps@#1}{#2}}
+\makeatother
+\setfloatlocations{figure}{H}
+\setfloatlocations{table}{H}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+% CUSTOM MATH COMMANDS AND MACROS         %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\DeclareMathOperator{\var}{Var}
+\DeclareMathOperator{\conv}{conv}
+\DeclareMathOperator*{\argmin}{argmin}
+\DeclareMathOperator*{\argmax}{argmax}
+\DeclareMathOperator*{\mcd}{mcd}
+\DeclareMathOperator*{\mcp}{mcp}
+\DeclareMathOperator*{\Gr}{G=\rnd{V, E}}
+%\DeclareMathOperator* this one allows to create environment that behave like sum or min
+
+\newcommand{\crs}{\text{\Cross}}
+\newcommand*{\QED}{\hfill\ensuremath{\square}}%
+
+\newcommand{\bra}[1]{\left\langle#1\right\rvert}
+\newcommand{\ket}[1]{\left\lvert#1\right\rangle}
+\newcommand{\braket}[2]{\left\langle#1\delimsize\vert#2\right\rangle}
+
+\newcommand{\ceil}[1]{\left\lceil#1\right\rceil}
+\newcommand{\floor}[1]{\left\lfloor#1\right\rfloor}
+
+\newcommand{\abs}[1]{\left\lvert#1\right\rvert}
+\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
+\newcommand{\rnd}[1]{\left(#1\right)}
+\newcommand{\sqr}[1]{\left[#1\right]}
+\newcommand{\crl}[1]{\left\{#1\right\}}
+\newcommand{\arity}[1]{\#\crl{#1}}
+
+\let\oldbm\bm
+\renewcommand{\bar}{\overline}
+\renewcommand{\bm}[1]{\oldbm{\underline{#1}}}
+\newcommand{\matr}[1]{\boldsymbol{#1}}
+\newcommand{\bbm}[1]{\bar{\bm{#1}}}
+\renewcommand{\geq}{\geqslant}
+\renewcommand{\leq}{\leqslant}
+
+\def\zero{0}
+\def\one{1}
+\def\negative{-}
+\def\positive{+}
+\def\false{\zero}
+\def\true{\one}
+\newcommand{\R}{\mathbb{R}}
+\newcommand{\D}{\mathbb{D}}
+\newcommand{\Z}{\mathbb{Z}}
+\newcommand{\N}{\mathbb{N}}
+\newcommand{\bs}{\backslash}
+
+\renewcommand{\O}[1]{\mathcal{O}\rnd{#1}}
+
+\NewDocumentCommand{\gmr}{m}{%
+  %
+  % #1 -> Value to build gomory cut upon
+  %
+  \rnd{#1-\floor{#1}}
+}
+
+
+\NewDocumentCommand{\buildVectorAliases}{m O{#1}}{
+  %
+  % #1 -> Letter to use for aliases
+  % #2 -> Symbol to use as output
+  %
+  \expandafter\newcommand\csname bm#1\endcsname{\bm{#2}}%
+  \expandafter\newcommand\csname bm#1o\endcsname{{\bm{#2}^*}}%
+  \expandafter\newcommand\csname bbm#1\endcsname{\bbm{#2}}%
+  \expandafter\newcommand\csname bm#1t\endcsname{{\bm{#2}^T}}%
+  \expandafter\newcommand\csname bbm#1t\endcsname{{\bbm{#2}^T}}%
+}
+
+\renewcommand{\a}{\alpha}
+\newcommand{\w}{\omega}
+\newcommand{\e}{\epsilon}
+
+\buildVectorAliases{a}[\a]
+\buildVectorAliases{w}[\w]
+\buildVectorAliases{b}
+\buildVectorAliases{c}
+\buildVectorAliases{d}
+\buildVectorAliases{e}
+\buildVectorAliases{h}
+\buildVectorAliases{g}
+\buildVectorAliases{p}
+\buildVectorAliases{u}
+\buildVectorAliases{v}
+\buildVectorAliases{x}
+\buildVectorAliases{y}
+\buildVectorAliases{z}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+% CUSTOM PROBABILITY COMMANDS AND MACROS  %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\NewDocumentCommand{\normal}{G{0} G{1}}{%
+  \mathcal{N}\rnd{#1, #2}
+}
+
+\NewDocumentCommand{\prob}{m o G{} G{} G{}}{%
+  %
+  % #1 -> first term of probability
+  % #2 (optional) -> operator beetween probabilities, defaults to conditioned probabilities.
+  % #3 (optional) -> second term of probability, when conditioned
+  % #4 (optional) -> subscript
+  % #5 (optional) -> upscript
+  %
+  \ifblank{#3}{%
+    \mathbb{P}_{#4}^{#5}\rnd{#1}
+  }{%
+    \IfNoValueTF{#2}{%
+      \mathbb{P}_{#4}^{#5}\rnd{\left. #1 \;\right\rvert\; #3}
+    }{%
+      \mathbb{P}_{#4}^{#5}\rnd{#1\;#2\;#3}
+    }
+  }
+}
+
+\NewDocumentCommand{\mean}{m o G{} G{} G{}}{%
+  %
+  % #1 -> first term of mean
+  % #2 (optional) -> operator beetween events, defaults to conditioned probabilities.
+  % #3 (optional) -> second term of mean, when conditioned
+  % #4 (optional) -> subscript
+  % #5 (optional) -> upscript
+  %
+  \ifblank{#3}{%
+    \mathbb{E}_{#4}^{#5}\rnd{#1}
+  }{%
+    \IfNoValueTF{#2}{%
+      \mathbb{E}_{#4}^{#5}\rnd{\left. #1 \;\right\rvert\; #3}
+    }{%
+      \mathbb{E}_{#4}^{#5}\rnd{#1\;#2\;#3}
+    }
+  }
+}
+
+\NewDocumentCommand{\Var}{m o g}{%
+  %
+  % #1 -> first term of mean
+  % #2 (optional) -> operator beetween events, defaults to conditioned probabilities.
+  % #3 (optional) -> second term of mean, when conditioned
+  %
+  \IfNoValueTF{#3}{%
+    \text{Var}\rnd{#1}
+  }{%
+    \IfNoValueTF{#2}{%
+      \text{Var}\rnd{\left. #1 \;\right\rvert\; #3}
+    }{%
+      \text{Var}\rnd{#1\;#2\;#3}
+    }
+  }
+}
+
+\NewDocumentCommand{\tprob}{m o g}{%
+  %
+  % Alias of prob that textualizes the events.
+  %
+  \IfNoValueTF{#3}{%
+    \prob{\text{#1}}
+  }{%
+    \IfNoValueTF{#2}{%
+      \prob{\text{#1}}{\text{#3}}
+    }{%
+      \prob{\text{#1}}[#2]{\text{#3}}
+    }
+  }
+}
+
+\NewDocumentCommand{\bayes}{m m}{%
+  %
+  % #1 -> event X
+  % #2 -> event Y
+  %
+  \prob{#1}{#2} &= \frac{\prob{#2}{#1}\prob{#1}}{
+    \prob{#2}
+  }%
+}
+
+\NewDocumentCommand{\tbayes}{m m}{%
+  %
+  % Textual alias for bayes
+  %
+  \bayes{\text{#1}}{\text{#2}}
+}
+
+\NewDocumentCommand{\totProb}{m m g g g g g g g}{%
+  %
+  % #1 (mandatory) -> event E
+  % #2 (mandatory) -> event F_1
+  % #3 (optional)  -> event F_2
+  % #4 (optional)  -> event F_3
+  % #5 (optional)  -> event F_4
+  % #6 (optional)  -> event F_5
+  % #7 (optional)  -> event F_6
+  % #8 (optional)  -> event F_7
+  % #9 (optional)  -> event F_8
+  %
+  \prob{#1} &= \prob{#1}{#2}\prob{#2}%
+  \IfValueT{#3}{%
+    +\prob{#1}{#3}\prob{#3}%
+  }%
+  \IfValueT{#4}{%
+    +\prob{#1}{#4}\prob{#4}%
+  }%
+  \IfValueT{#5}{%
+    +\prob{#1}{#5}\prob{#5}%
+  }%
+  \IfValueT{#6}{%
+    +\prob{#1}{#6}\prob{#6}%
+  }%
+  \IfValueT{#7}{%
+    +\prob{#1}{#7}\prob{#7}%
+  }%
+  \IfValueT{#8}{%
+    +\prob{#1}{#8}\prob{#8}%
+  }%
+  \IfValueT{#9}{%
+    +\prob{#1}{#9}\prob{#9}%
+  }%
+}
+
+\NewDocumentCommand{\ttotProb}{m m g g g g g g g}{%
+  \tprob{#1} &= \tprob{#1}{#2}\tprob{#2}%
+  \IfValueT{#3}{%
+    +\tprob{#1}{#3}\tprob{#3}%
+  }%
+  \IfValueT{#4}{%
+    +\tprob{#1}{#4}\tprob{#4}%
+  }%
+  \IfValueT{#5}{%
+    +\tprob{#1}{#5}\tprob{#5}%
+  }%
+  \IfValueT{#6}{%
+    +\tprob{#1}{#6}\tprob{#6}%
+  }%
+  \IfValueT{#7}{%
+    +\tprob{#1}{#7}\tprob{#7}%
+  }%
+  \IfValueT{#8}{%
+    +\tprob{#1}{#8}\tprob{#8}%
+  }%
+  \IfValueT{#9}{%
+    +\tprob{#1}{#9}\tprob{#9}%
+  }%
+}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+% UNITS                                   %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def\hz{
+  Hz
+}
+\def\db{
+  dB
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+% SCRIPTS RELATED TO TABLES AND ARRAYS    %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% automaticall apply mathmode to column
+\newcolumntype{L}{>{$}l<{$}}
+\renewcommand*{\arraystretch}{1.25} % Stretching arrays
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+%     BIBLATEX AND BIBLIOGRPHY            %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\RequirePackage[style=authoryear,sorting=ynt, backend=bibtex]{biblatex} % Package to handle the bibliography
+\nocite{*} % This allows for having entried in the bib file that do not have to be necesseraly used
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+%     MINTED                              %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\RequirePackage[cache=true]{minted} % For highlighting code
+\RequirePackage[algoruled,linesnumbered,titlenumbered]{algorithm2e} % To highlight pseudocode
+\definecolor{mintedbackground}{rgb}{0.95,0.95,0.95}
+\setminted{
+  bgcolor=mintedbackground,
+  fontfamily=tt,
+  linenos=true,
+  numberblanklines=true,
+  numbersep=5pt,
+  gobble=0,
+  frame=leftline,
+  framerule=0.4pt,
+  framesep=2mm,
+  funcnamehighlighting=true,
+  tabsize=4,
+  obeytabs=false,
+  mathescape=false
+  samepage=false, %with this setting you can force the list to appear on the same page
+  showspaces=false,
+  showtabs =false,
+  texcl=false,
+}
+
+% CDQUOTES HAS TO BE LOADED AFTER THE MINTED
+\RequirePackage{csquotes} % Package required by babel AND polyglossia.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+%     GRAPHS OF VARIOUS KIND              %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\RequirePackage{pgfplots} % to draw 3d graphs
+\pgfplotsset{compat=1.14}
+\RequirePackage{tikz}
+\RequirePackage{tikz-qtree}
+\RequirePackage{relsize}
+\RequirePackage{circuitikz}
+\RequirePackage{bodegraph}
+\RequirePackage{adigraph}
+
+\ctikzset{tripoles/mos style/arrows}
+\ctikzset{tripoles/pmos style/emptycircle}
+\usetikzlibrary{shapes,arrows,calc,positioning,matrix}
+\usepgfplotslibrary{external}
+
+\pgfplotsset{samples=60,shader=interp,grid=both}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+% LISTS AND ENUMERATIONS                  %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\RequirePackage{paralist} % For compacted enumerations
+\RequirePackage[shortlabels]{enumitem} % For a todo check list
+\newlist{todolist}{itemize}{2} % For a  todo check list
+% \setlist{nolistsep}
+\setlist[todolist]{label=$\square$}  % For a todo check list
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+% THEOREMS: COLORS AND CUSTOM ENVIRONMENT %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+\IfEq{\defaultlanguage}{italian}{
+  \newtheorem{theorem}{Teorema}[section]
+  \newtheorem{corollary}{Corollario}[theorem]
+  \newtheorem{lemma}[theorem]{Lemma}
+  \newtheorem{proposition}[theorem]{Proposizione}
+  \newtheorem{observation}[theorem]{Osservazione}
+  \newtheorem{definition}[theorem]{Definizione}
+  \newtheorem{complexity}[theorem]{Complessità computazionale}
+  \newtheorem{property}[theorem]{Proprietà}
+  \newtheorem{problem}[theorem]{Problema}
+  \newtheorem{customProof}[theorem]{Dimostrazione}
+}{
+  \IfEq{\defaultlanguage}{italian}{
+    \newtheorem{theorem}{Theorem}[section]
+    \newtheorem{corollary}{Corollary}[theorem]
+    \newtheorem{lemma}[theorem]{Lemma}
+    \newtheorem{proposition}[theorem]{Proposition}
+    \newtheorem{observation}[theorem]{Observation}
+    \newtheorem{definition}[theorem]{Definition}
+    \newtheorem{complexity}[theorem]{Computational complexity}
+    \newtheorem{property}[theorem]{Property}
+    \newtheorem{problem}[theorem]{Problem}
+    \newtheorem{customProof}[theorem]{Proof}
+  }{
+    \PackageError{lectures}{%
+        Given language option is unknown.
+      }{%
+        Use either italian or english.
+      }
+  }
+}
+
+
+\let\oldTheorem\theorem
+\renewenvironment{theorem}{\colorlet{shadecolor}{Green!15}\begin{shaded}\begin{oldTheorem}}{\end{oldTheorem}\end{shaded}\ignorespacesafterend}
+
+\let\oldDefinition\definition
+\renewenvironment{definition}{\colorlet{shadecolor}{Red!10}\begin{shaded}\begin{oldDefinition}}{\end{oldDefinition}\end{shaded}\ignorespacesafterend}
+
+\let\oldCorollary\corollary
+\renewenvironment{corollary}{\colorlet{shadecolor}{Brown!10}\begin{shaded}\begin{oldCorollary}}{\end{oldCorollary}\end{shaded}\ignorespacesafterend
+}
+
+\let\oldProposition\proposition
+\renewenvironment{proposition}{\colorlet{shadecolor}{Green!5}\begin{shaded}\begin{oldProposition}}{\end{oldProposition}\end{shaded}\ignorespacesafterend
+}
+
+\let\oldLemma\lemma
+\renewenvironment{lemma}{\colorlet{shadecolor}{Green!10}\begin{shaded}\begin{oldLemma}}{\end{oldLemma}\end{shaded}\ignorespacesafterend
+}
+
+\let\oldComplexity\complexity
+\renewenvironment{complexity}{\colorlet{shadecolor}{Melon!10}\begin{shaded}\begin{oldComplexity}}{\end{oldComplexity}\end{shaded}\ignorespacesafterend}
+
+\let\oldProperty\property
+\renewenvironment{property}{\colorlet{shadecolor}{Red!10}\begin{shaded}\begin{oldProperty}}{\end{oldProperty}\end{shaded}\ignorespacesafterend}
+
+\let\oldProblem\problem
+\renewenvironment{problem}{\colorlet{shadecolor}{Red!15}\begin{shaded}\begin{oldProblem}}{\end{oldProblem}\end{shaded}\ignorespacesafterend}
+
+\renewenvironment{proof}{\colorlet{shadecolor}{Violet!10}\begin{shaded}\begin{customProof}}{\QED\end{customProof}\end{shaded}\ignorespacesafterend}
+
+%
+% THE FOLLOWING CODE ADDS BOLD TO THE THEOREM NAME
+%
+
+\makeatletter
+\def\th at plain{%
+  \thm at notefont{}% same as heading font
+  \itshape % body font
+}
+\def\th at definition{%
+  \thm at notefont{}% same as heading font
+  \normalfont % body font
+}
+\makeatother
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+% UTILITIES                               %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\makeatletter
+\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
+\makeatother
+
+\def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                         %
+% MAKETITLE OVERRIDE                      %
+%                                         %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\NewDocumentCommand{\TitlePageProcessAuthor}{m}{%
+  %
+  % #1 -> Name of author
+  %
+  \textbf{#1}\\
+}
+
+\NewDocumentCommand{\TitlePageProcessProfessor}{m}{%
+  %
+  % #1 -> Name of author
+  %
+  Prof.\,#1\\
+}
+
+\NewDocumentCommand{\TitlePageProcessSpeaker}{m}{%
+  %
+  % #1 -> Name of author
+  %
+  #1\\
+}
+
+
+\NewDocumentCommand{\TitlePageProcessAuthors}{> { \SplitList{,} } m}{%
+  %
+  % #1 -> List of names
+  %
+  \ProcessList{#1}{\TitlePageProcessAuthor}
+}
+
+\NewDocumentCommand{\TitlePageProcessProfessors}{> { \SplitList{,} } m}{%
+  %
+  % #1 -> List of names
+  %
+  \ProcessList{#1}{\TitlePageProcessProfessor}
+}
+
+\NewDocumentCommand{\TitlePageProcessSpeakers}{> { \SplitList{,} } m}{%
+  %
+  % #1 -> List of names
+  %
+  \ProcessList{#1}{\TitlePageProcessSpeaker}
+}
+
+\RenewDocumentCommand{\maketitle}{m G{} G{} G{} G{} G{} G{} G{} G{}}{%
+  %
+  % #1 -> Title
+  % #2 -> Authors
+  % #3 -> Professors
+  % #4 -> Speakes
+  % #5 -> Year
+  % #6 -> CFU
+  % #7 -> Degree
+  % #8 -> University
+  % #9 -> Country
+  %
+  \begin{titlepage}
+  \begin{center}
+      \textbf{\MakeUppercase{\large{#1}}}\\
+      \vspace{1em}
+      \TitlePageProcessAuthors{#2}
+      \TitlePageProcessProfessors{#3}
+      \TitlePageProcessSpeakers{#4}
+      \ifblank{#6}{}{
+        \vspace{1em}
+        \textbf{\MakeUppercase{#6 CFU}}\\
+        \vspace{1em}
+      }
+      \vfill
+
+      \IfFileExists{images/logo.png}{
+        \begin{figure}
+          \includegraphics[width=0.1\textwidth]{logo}
+        \end{figure}
+      }{}
+      \ifblank{#5}{}{
+        #5\\% year
+      }
+      \ifblank{#7}{}{
+        #7\\
+      }
+      \ifblank{#8}{}{
+        #8\\
+      }
+      \ifblank{#9}{}{
+        #9\\
+      }
+      \today
+  \end{center}
+  \end{titlepage}
+}


Property changes on: trunk/Master/texmf-dist/tex/latex/lectures/lectures.cls
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2019-01-28 22:04:36 UTC (rev 49850)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2019-01-28 22:05:23 UTC (rev 49851)
@@ -391,7 +391,7 @@
     latexmk latexmp latexpand
     lato layaureo layouts lazylist
     lccaps lcd lcg lcyw leading leadsheets leaflet
-    lecturer ledmac leftidx leipzig lengthconvert
+    lecturer lectures ledmac leftidx leipzig lengthconvert
     lettre lettrine levy lewis lexikon lexref lfb lgreek lh lhcyr lhelp
     libertine libertinegc libertinus
     libertinus-fonts libertinus-otf libertinus-type1 libertinust1math

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2019-01-28 22:04:36 UTC (rev 49850)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2019-01-28 22:05:23 UTC (rev 49851)
@@ -624,6 +624,7 @@
 depend lcg
 depend leading
 depend leaflet
+depend lectures
 depend leftidx
 depend leipzig
 depend lengthconvert

Added: trunk/Master/tlpkg/tlpsrc/lectures.tlpsrc
===================================================================


More information about the tex-live-commits mailing list