From e0bc0768b51c04ff0dcf1a9a3264d6537377800a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 28 Jan 2019 22:05:23 +0000 Subject: lectures (28jan19) git-svn-id: svn://tug.org/texlive/trunk@49851 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/lectures/LICENSE | 21 +++++ Master/texmf-dist/doc/latex/lectures/README.md | 101 +++++++++++++++++++++ .../doc/latex/lectures/tests/images/logo.png | Bin 0 -> 56258 bytes .../texmf-dist/doc/latex/lectures/tests/test.pdf | Bin 0 -> 76598 bytes .../texmf-dist/doc/latex/lectures/tests/test.tex | 23 +++++ 5 files changed, 145 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/lectures/LICENSE create mode 100644 Master/texmf-dist/doc/latex/lectures/README.md create mode 100644 Master/texmf-dist/doc/latex/lectures/tests/images/logo.png create mode 100644 Master/texmf-dist/doc/latex/lectures/tests/test.pdf create mode 100644 Master/texmf-dist/doc/latex/lectures/tests/test.tex (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/lectures/LICENSE b/Master/texmf-dist/doc/latex/lectures/LICENSE new file mode 100644 index 00000000000..5200b8883ab --- /dev/null +++ b/Master/texmf-dist/doc/latex/lectures/LICENSE @@ -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. diff --git a/Master/texmf-dist/doc/latex/lectures/README.md b/Master/texmf-dist/doc/latex/lectures/README.md new file mode 100644 index 00000000000..5d515b8aaa7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lectures/README.md @@ -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 diff --git a/Master/texmf-dist/doc/latex/lectures/tests/images/logo.png b/Master/texmf-dist/doc/latex/lectures/tests/images/logo.png new file mode 100644 index 00000000000..2214be737d7 Binary files /dev/null and b/Master/texmf-dist/doc/latex/lectures/tests/images/logo.png differ diff --git a/Master/texmf-dist/doc/latex/lectures/tests/test.pdf b/Master/texmf-dist/doc/latex/lectures/tests/test.pdf new file mode 100644 index 00000000000..371c93b8f33 Binary files /dev/null and b/Master/texmf-dist/doc/latex/lectures/tests/test.pdf differ diff --git a/Master/texmf-dist/doc/latex/lectures/tests/test.tex b/Master/texmf-dist/doc/latex/lectures/tests/test.tex new file mode 100644 index 00000000000..54c87ff1fa5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lectures/tests/test.tex @@ -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 -- cgit v1.2.3