texlive[44952] Master: termcal-de (4aug17)

commits+karl at tug.org commits+karl at tug.org
Sat Aug 5 00:07:21 CEST 2017


Revision: 44952
          http://tug.org/svn/texlive?view=revision&revision=44952
Author:   karl
Date:     2017-08-05 00:07:21 +0200 (Sat, 05 Aug 2017)
Log Message:
-----------
termcal-de (4aug17)

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

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/termcal-de/
    trunk/Master/texmf-dist/doc/latex/termcal-de/README.md
    trunk/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.pdf
    trunk/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.tex
    trunk/Master/texmf-dist/tex/latex/termcal-de/
    trunk/Master/texmf-dist/tex/latex/termcal-de/termcal-de.sty
    trunk/Master/tlpkg/tlpsrc/termcal-de.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/termcal-de/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/termcal-de/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/termcal-de/README.md	2017-08-04 22:07:21 UTC (rev 44952)
@@ -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.


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

Index: trunk/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.pdf	2017-08-04 22:06:42 UTC (rev 44951)
+++ trunk/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.pdf	2017-08-04 22:07:21 UTC (rev 44952)

Property changes on: trunk/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.tex	2017-08-04 22:07:21 UTC (rev 44952)
@@ -0,0 +1,163 @@
+%%	This is file 'termccal-de-doc.tex', Version 2017-08-03
+%%	Copyright 2017 Sebastian Friedl <sfr682k at 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 at 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 at t-online.de}{\ttfamily sfr682k at 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


Property changes on: trunk/Master/texmf-dist/doc/latex/termcal-de/termcal-de-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/termcal-de/termcal-de.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/termcal-de/termcal-de.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/termcal-de/termcal-de.sty	2017-08-04 22:07:21 UTC (rev 44952)
@@ -0,0 +1,99 @@
+%%	This is file 'termccal-de.sty', Version 2017-08-03
+%%	Copyright 2017 Sebastian Friedl <sfr682k at 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 at 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 at 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 at 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 at 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


Property changes on: trunk/Master/texmf-dist/tex/latex/termcal-de/termcal-de.sty
___________________________________________________________________
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	2017-08-04 22:06:42 UTC (rev 44951)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-08-04 22:07:21 UTC (rev 44952)
@@ -590,7 +590,7 @@
     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

Modified: trunk/Master/tlpkg/tlpsrc/collection-langgerman.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-langgerman.tlpsrc	2017-08-04 22:06:42 UTC (rev 44951)
+++ trunk/Master/tlpkg/tlpsrc/collection-langgerman.tlpsrc	2017-08-04 22:07:21 UTC (rev 44952)
@@ -38,6 +38,7 @@
 depend r_und_s
 depend templates-fenn
 depend templates-sommer
+depend termcal-de
 depend texlive-de
 depend tipa-de
 depend translation-arsclassica-de

Added: trunk/Master/tlpkg/tlpsrc/termcal-de.tlpsrc
===================================================================


More information about the tex-live-commits mailing list