diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/termcal-de/README.md | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.pdf | bin | 0 -> 37697 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.tex | 163 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/termcal-de/termcal-de.sty | 99 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-langgerman.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/termcal-de.tlpsrc | 0 |
7 files changed, 269 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/termcal-de/README.md b/Master/texmf-dist/doc/latex/termcal-de/README.md new file mode 100644 index 00000000000..0abb9fa77a0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/termcal-de/README.md @@ -0,0 +1,5 @@ +# termcal-de +Version 2017/08/03 +Provides a German localisation to the termcal LaTeX package written by Bill Mitchell + +This work is licensed under the LPPL 1.3c or any later version. diff --git a/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.pdf b/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.pdf Binary files differnew file mode 100644 index 00000000000..3eb3f6de9e2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.pdf diff --git a/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.tex b/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.tex new file mode 100644 index 00000000000..0683e923cb8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.tex @@ -0,0 +1,163 @@ +%% This is file 'termccal-de-doc.tex', Version 2017-08-03 +%% Copyright 2017 Sebastian Friedl <sfr682k@t-online.de> +%% +%% This work may be distributed and/or modified under the conditions of the LaTeX Project +%% Public License, either version 1.3c of this license or (at your option) any later version. +%% The latest version of this license is available at +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX version 2008-05-04 or later +%% +%% This work has the LPPL maintenace status 'maintained'. +%% The current maintainer of this work is Sebastian Friedl. +%% +%% This work consists of the files termcal-de.sty and termcal-de-doc.tex +%% +%% ------------------------------------------------------------------------------------------- +%% +%% The termcal-de package provides a German localization to the termcal package written by +%% Bill Mitchell, which is intended to print a term calendar for use in planning a class. +%% +%% ------------------------------------------------------------------------------------------- +%% +%% Please report bugs and other problems as well as suggestions for improvements +%% to my email address (sfr682k@t-online.de). +%% +%% ------------------------------------------------------------------------------------------- + +% !TeX spellcheck=en_US + +% !TeX document-id = {681db40e-7a84-4428-b4f4-84e230e3ba79} +% !TeX program=lualatex +% !TeX TXS-program:compile=txs:///lualatex/[--shell-escape] + + +\documentclass[11pt]{ltxdoc} + +\usepackage[utopia]{mathdesign} +\usepackage[no-math]{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{english} + +\usepackage{csquotes} +\usepackage{hyperref} +\usepackage{minted} +\usepackage[english]{selnolig} + +\parindent 0pt + +\setmainfont[Numbers=OldStyle]{erewhon} +\setsansfont[Numbers=OldStyle,Scale=MatchLowercase]{Source Sans Pro} +\setmonofont[Scale=MatchLowercase]{OCR A Extended} + +\usepackage[left=4.50cm,right=2.75cm,top=3.25cm,bottom=2.75cm,nohead]{geometry} + +\hyphenation{} + +\title{The \texttt{termcal-de} package \\ {\large\url{https://github.com/SFr682k/termcal-de}}} +\author{Sebastian Friedl \\ \href{mailto:sfr682k@t-online.de}{\ttfamily sfr682k@t-online.de}} +\date{2017/08/03} + +\hypersetup{pdftitle={The termcal-de package},pdfauthor={Sebastian Friedl}} + +\begin{document} + \maketitle + \thispagestyle{empty} + + \begin{center} \itshape + Dedicated to everybody using this package. + \end{center} + + \medskip + \begin{abstract} + \hspace{-1.5em}% + The \texttt{termcal-de} package provides a German localization to the \texttt{termcal} package written by Bill Mitchell, which is intended to print a term calendar for use in planning a class. + \end{abstract} + + + \tableofcontents + + \clearpage + + + \subsection*{Dependencies and other requirements} + \addcontentsline{toc}{subsection}{Dependencies and other requirements} + The \texttt{termcal-de} package requires \LaTeXe\ and the following packages: + + \medskip + \DescribeMacro{termcal} + The main \texttt{termcal} package + + \medskip + \DescribeMacro{iftex} + Detects the \LaTeX\ engine used to compile the current document + + + \subsection*{License} + \begin{small} + \addcontentsline{toc}{subsection}{License} + \textcopyright\ 2017 Sebastian Friedl + + \smallskip + This work may be distributed and/or modified under the conditions of the \LaTeX\ Project Public License, either version 1.3c of this license or (at your option) any later version. + + \smallskip + The latest version of this license is available at \url{http://www.latex-project.org/lppl.txt} and version 1.3c or later is part of all distributions of \LaTeX\ version 2008-05-04 or later. + + \smallskip + This work has the LPPL maintenace status \enquote*{maintained}. The current maintainer of this work is Sebastian Friedl. \\ + This work consists of the following files: + \begin{itemize} \itemsep 0pt + \item \texttt{termcal-de.sty} and + \item \texttt{termcal-de-doc.tex} + \end{itemize} + \end{small} + + + + \clearpage + + + % DOCUMENTATION PART ---------------------------------------------------------------------- + + \section{Using the package} + Load the package with \mintinline{LaTeX}{\usepackage{termcal-de}}\footnote{To do so, the package has to be installed in a way \LaTeX\ is able to find it}. Now, \texttt{termcal-de} looks for \texttt{termcal} and loads it when necessary. + + \medskip + \texttt{termcal-de} only adds a German localization to the \texttt{termcal} package. Please read the \href{http://mirrors.ctan.org/macros/latex/contrib/termcal/termcal.pdf}{\texttt{termcal} documentation} first, because the macros stay almost identical. The differences to plain \texttt{termcal} are listed in section \ref{differences}. + + + \section{Differences to plain \texttt{termcal}} \label{differences} + \texttt{termcal-de} does not only change the way the style is printed to the output, it also changes the date parameter's format expected by the standard \texttt{termcal} commands. \\ + In following, affected commands are listed: + + \begin{itemize} + \item \mintinline{LaTeX}{\begin{calendar}{<starting date>}{<nr of weeks>}} + \item \mintinline{LaTeX}{\options{<date>}{<option list>}} + \item \mintinline{LaTeX}{\caltext{<date>}{<text>}} + \end{itemize} + + Plain \texttt{termcal} expects \texttt{<starting date>} and \texttt{<date>} being given in \texttt{m/d/y} format (e.~g.~\texttt{4/16/17} for April 16, 2017). Due to redefinition in \texttt{termcal-de}, both arguments, \texttt{<starting~date>} and \texttt{<date>} have to be given in the \texttt{T.M.YYYY} format (for April~16, 2017: \texttt{16.4.2017}). \\ + See table \ref{dateformatcomp} for some examples. + + \begin{table}[h] \centering \small \renewcommand{\arraystretch}{1.25} + \begin{tabular}{cc} + \textbf{plain \texttt{termcal}} & \textbf{with \texttt{termcal-de} package} \\\hline + \mintinline{LaTeX}{\begin{calendar}{3/16/11}{4}} & \mintinline{LaTeX}{\begin{calendar}{16.3.2011}{4}} \\ + \mintinline{LaTeX}{\options{12/21/12}{\noclass}} & \mintinline{LaTeX}{\options{21.12.2012}{\noclass}} \\ + \mintinline{LaTeX}{\caltext{2/17/18}{Exam}} & \mintinline{LaTeX}{\caltext{17.2.2018}{Exam}} \\ + \hspace{.45\textwidth} & \hspace{.45\textwidth} + \end{tabular} + \vspace{-1.5em} + + \caption{\small Comparison between plain \texttt{termcal} and \texttt{termcal} extended with \texttt{termcal-de}} + \label{dateformatcomp} + \end{table} + + + \section{Additional information} + \subsection{Using short month names} + By default, \texttt{termcal-de} prints long month names (e.~g.~\enquote{Januar}) when a new month starts. Passing the \texttt{shortmonth} option to the \mintinline{LaTeX}{\usepackage{termcal-de}} command switches to printing short month names (e.~g.~\enquote{Jan} for \enquote{Januar}). + + \subsection{Printing the current date} + Inside a cell you can print the current date with the \mintinline{LaTeX}{\currentdate} command. It produces something like \enquote{9.~Februar~2000}. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/termcal-de/termcal-de.sty b/Master/texmf-dist/tex/latex/termcal-de/termcal-de.sty new file mode 100644 index 00000000000..8a1c6d4c94d --- /dev/null +++ b/Master/texmf-dist/tex/latex/termcal-de/termcal-de.sty @@ -0,0 +1,99 @@ +%% This is file 'termccal-de.sty', Version 2017-08-03 +%% Copyright 2017 Sebastian Friedl <sfr682k@t-online.de> +%% +%% This work may be distributed and/or modified under the conditions of the LaTeX Project +%% Public License, either version 1.3c of this license or (at your option) any later version. +%% The latest version of this license is available at +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX version 2008-05-04 or later +%% +%% This work has the LPPL maintenace status 'maintained'. +%% The current maintainer of this work is Sebastian Friedl. +%% +%% This work consists of the files termcal-de.sty and termcal-de-doc.tex +%% +%% ------------------------------------------------------------------------------------------- +%% +%% The termcal-de package provides a German localization to the termcal package written by +%% Bill Mitchell, which is intended to print a term calendar for use in planning a class. +%% +%% ------------------------------------------------------------------------------------------- +%% +%% Please report bugs and other problems as well as suggestions for improvements +%% to my email address (sfr682k@t-online.de). +%% +%% ------------------------------------------------------------------------------------------- + + + +\ProvidesPackage{termcal-de}[2017/08/03 German locals to the termcal package] + +\NeedsTeXFormat{LaTeX2e} + + + +% REQUIRED PACKAGES --------------------------------------------------------------------------- + +\RequirePackage{termcal} % Loads termcal when not already done so +\RequirePackage{iftex} % For encoding detection when XeLaTeX/LuaLaTeX is used + + + +% OPTION DECLARATION -------------------------------------------------------------------------- + +% shortmonth -- print short month names inside the calender instead of long ones +\renewcommand{\calprintdate}{\calprintdatelmonth} +\DeclareOption{shortmonth}{\renewcommand{\calprintdate}{\calprintdatesmonth}} + +\ProcessOptions + + + +% REDEFINITIONS ------------------------------------------------------------------------------- + +% Date specifications: D.M.YYYY instead of M/D/YY +\def\setdate@#1.#2.#3!{ + \setcounter{date}{#1} + \setcounter{month}{#2} + \setcounter{year}{#3} + \global\newmonthtrue\setleap} + +% Current date: D.M.YYYY instead of M/D/YY +\renewcommand{\curdate}{% + \arabic{date}.\arabic{month}.\arabic{year}} + +% Command for printing the "normal" German date specification D. MMMM YYYY +\newcommand{\currentdate}{\arabic{date}.~\longmonthname~\arabic{year}} + +% The date printed inside the calender cells -- short month +\newcommand{\calprintdatesmonth}{% + \arabic{date}\ifnewmonth.~\textbf{\monthname}\fi +} +% The date printed inside the calender cells -- long month +\newcommand{\calprintdatelmonth}{% + \arabic{date}\ifnewmonth.~\textbf{\longmonthname}\fi +} + +% German short month names +\renewcommand{\monthname}{% + \ifcase\c@month\or Jan\or Feb\or Mrz\or Apr% + \or Mai\or Juni\or Juli\or Aug\or Sep\or Okt% + \or Nov\or Dez\fi} + +% German long month names -- engine dependent selection +\ifLuaTeX \newcommand{\longmonthname}{\longmonthnameutfacht} % utf8 for LuaLaTeX +\else \ifXeTeX \newcommand{\longmonthname}{\longmonthnameutfacht} % utf8 for XeLaTeX + \else \newcommand{\longmonthname}{\longmonthnameascii} % ascii for everything else +\fi \fi + +% German long month names -- utf-8 encoding +\newcommand{\longmonthnameutfacht}{% + \ifcase\c@month\or Januar\or Februar\or März\or April% + \or Mai\or Juni\or Juli\or August\or September\or Oktober% + \or November\or Dezember\fi} + +% German long month names -- ASCII encoding +\newcommand{\longmonthnameascii}{% + \ifcase\c@month\or Januar\or Februar\or M\protect\"arz\or April% + \or Mai\or Juni\or Juli\or August\or September\or Oktober% + \or November\or Dezember\fi}
\ No newline at end of file diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 3eecf1d08b1..43aee555385 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -590,7 +590,7 @@ my @TLP_working = qw( tamethebeast tap tapir tasks tcldoc tcolorbox tdclock tdsfrmath technics ted templates-fenn templates-sommer templatetools tempora tengwarscript - tensor termcal termlist termmenu testhyphens testidx teubner + tensor termcal termcal-de termlist termmenu testhyphens testidx teubner tex-ewd tex-font-errors-cheatsheet tex-gyre tex-gyre-math tex-ini-files tex-label tex-overview tex-ps tex-refs tex-virtual-academy-pl tex4ebook texapi texbytopic texcount diff --git a/Master/tlpkg/tlpsrc/collection-langgerman.tlpsrc b/Master/tlpkg/tlpsrc/collection-langgerman.tlpsrc index 763d6ff340e..a95e83cce06 100644 --- a/Master/tlpkg/tlpsrc/collection-langgerman.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-langgerman.tlpsrc @@ -38,6 +38,7 @@ depend presentations depend r_und_s depend templates-fenn depend templates-sommer +depend termcal-de depend texlive-de depend tipa-de depend translation-arsclassica-de diff --git a/Master/tlpkg/tlpsrc/termcal-de.tlpsrc b/Master/tlpkg/tlpsrc/termcal-de.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/termcal-de.tlpsrc |