diff options
27 files changed, 1172 insertions, 381 deletions
diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/README b/Master/texmf-dist/doc/latex/datetime2-italian/README index d99abfac5a9..1d4e172310a 100644 --- a/Master/texmf-dist/doc/latex/datetime2-italian/README +++ b/Master/texmf-dist/doc/latex/datetime2-italian/README @@ -2,12 +2,13 @@ Italian Language Module for datetime2 Package Author: Nicola L. C. Talbot (inactive) +Mantainer: CLaudio Duchi + Licence: LPPL Required Packages: datetime2, tracklang -This module is unmaintained. If you want to volunteer to take over -the maintenance contact me at www.dickimaw-books.com/contact.html +This module is maintained. I Example usage: diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/datetime2-italian.pdf b/Master/texmf-dist/doc/latex/datetime2-italian/datetime2-italian.pdf Binary files differindex 4ec20354c5e..04729ae44af 100644 --- a/Master/texmf-dist/doc/latex/datetime2-italian/datetime2-italian.pdf +++ b/Master/texmf-dist/doc/latex/datetime2-italian/datetime2-italian.pdf diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime1.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime1.tex new file mode 100644 index 00000000000..170021968a4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime1.tex @@ -0,0 +1,8 @@ +\documentclass[italian]{article} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage[italian]{babel} +\usepackage[useregional]{datetime2} +\begin{document} +Questo PDF è stato creato il \today +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-babel.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-babel.tex new file mode 100644 index 00000000000..547fd7eff2d --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-babel.tex @@ -0,0 +1,56 @@ +% This file is public domain. + +% This document requires the datetime2-english module to be +% installed (in addition to the datetime2 package). +% arara: pdflatex +\documentclass[italian]{article} + +\usepackage{babel} +\usepackage[datesep=/,showzoneminutes=false,useregional]{datetime2} +\usepackage[colorlinks]{hyperref} + +%\DTMlangsetup{mapzone=false} + +\DTMsavetimestamp{mydate}{2014-06-03T12:45:02+01:00} +\DTMsavetimestamp{mydate2}{2015-03-20T08:05:09+00:00} +\DTMsavetimestamp{mydate3}{2014-12-15T23:55:49-06:00} +\DTMsavetimestamp{mydate4}{2014-01-27T12:05:00+09:00} +\DTMsavetimestamp{mydate5}{2013-11-28T02:05:00+12:00} + +%\renewcommand*{\DTMresetzones}{\DTMclearmap{01}{00}} + +\begin{document} +\tableofcontents + \section{Italiano} + + Oggi: \today. + + Ora: \DTMnow. + + \subsection{\DTMuse{mydate}} + Saved Date (\texttt{mydate}): \DTMusedate{mydate} + Saved time (\texttt{mydate}): \DTMusetime{mydate}. + \typeout{Date (#1): \DTMusedate{mydate}} + + \subsection{\DTMuse{mydate2}} + Saved Date (\texttt{mydate2}): \DTMusedate{mydate2} + Saved time (\texttt{mydate2}): \DTMusetime{mydate2}. + \typeout{Date (#1): \DTMusedate{mydate2}} + + \subsection{\DTMuse{mydate3}} + Saved Date (\texttt{mydate3}): \DTMusedate{mydate3} + Saved time (\texttt{mydate3}): \DTMusetime{mydate3}. + \typeout{Date (#1): \DTMusedate{mydate3}} + + \subsection{\DTMuse{mydate4}} + Saved Date (\texttt{mydate4}): \DTMusedate{mydate4} + Saved time (\texttt{mydate4}): \DTMusetime{mydate4}. + \typeout{Date (#1): \DTMusedate{mydate4}} + + \subsection{\DTMuse{mydate5}} + Saved Date (\texttt{mydate5}): \DTMusedate{mydate5} + Saved time (\texttt{mydate5}): \DTMusetime{mydate5}. + \typeout{Date (#1): \DTMusedate{mydate5}} + + +\end{document} diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-calc.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-calc.tex new file mode 100644 index 00000000000..7ed62aa19c3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-calc.tex @@ -0,0 +1,76 @@ +% This file is public domain. + +% arara: pdflatex +\documentclass[italian]{article} + +\usepackage[calc,useregional]{datetime2} + +\begin{document} + +\DTMsavejulianday{mydate}{2457023} +\DTMsavedate{mydate2}{2014-06-20} + +Date: \DTMusedate{mydate}. + +\newcount\myct +\DTMsaveddatetojulianday{mydate}{\myct} + +Julian day number: \number\myct. + +\DTMsaveddateoffsettojulianday{mydate}{2}{\myct} + +Julian day number (offset+2): \number\myct. + +Is \texttt{mydate2} (\DTMusedate{mydate2}) before +\texttt{mydate} (\DTMusedate{mydate})? +\DTMifdate + {mydate2} + {at most= + \DTMfetchyear{mydate}-\DTMfetchmonth{mydate}-\DTMfetchday{mydate}} + {yes}{no}. + +Is \texttt{mydate2} (\DTMusedate{mydate2}) after +\texttt{mydate} (\DTMusedate{mydate})? +\DTMifdate + {mydate2} + {at least= + \DTMfetchyear{mydate}-\DTMfetchmonth{mydate}-\DTMfetchday{mydate}} + {yes}{no}. + +\DTMsaveddatediff{mydate}{mydate2}{\myct} + +\DTMusedate{mydate} is +\ifnum\myct=0 + the same day as +\else + \ifnum\myct<0 + \number-\myct\space day\ifnum\myct<-1s\fi\space before + \else + \number\myct\space day\ifnum\myct>1s\fi\space after + \fi +\fi +\DTMusedate{mydate2}. + +Original date: 2014-06-3 20:45:00 +06:00 + +\DTMsaveaszulutime{mydate}{2014}{6}{3}{20}{45}{0}{6}{0} +UTC+00:00 date: \DTMuse{mydate}. + +\DTMsavetimestamp{mydate}{2014-05-01T03:55:00 -06:00} +Original date: \DTMuse{mydate}. + +\DTMtozulu{mydate}{mydate2} +UTC+00:00: \DTMuse{mydate2}. + +Offset: \DTMdate{2015-03-30+4}. + +Last: \DTMdate{2015-02-last}. + +Last with offset: \DTMdate{2015-02-last+-2}. + +Saved date with offset +\DTMsavedate{offset}{2015-02-last+-2} + +Use date: \DTMusedate{offset}. + +\end{document} diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-hyperref.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-hyperref.tex new file mode 100644 index 00000000000..5ee79e91f58 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-hyperref.tex @@ -0,0 +1,78 @@ +% This file is public domain. +% This document additionally requires the datetime2-english module +% to be installed. + +% arara: pdflatex +% arara: pdflatex +\documentclass[italian]{article} + +\usepackage[datesep=/,showzoneminutes=false]{datetime2} +\usepackage[colorlinks]{hyperref} + +\DTMsetup{showdow} + +\DTMsavetimestamp{mydate}{2014-06-03T12:45:02+01:00} + +\begin{document} +\tableofcontents + +The use of \verb|\typeout| is to test the expansion in the event +that the date/time needs to be written to an external file. +Use +\texttt{\href{http://www.dickimaw-books.com/latex/novices/html/texdoc.html}{texdoc} datetime2} to read the main user manual for +the \texttt{datetime2} package and use \texttt{texdoc +datetime2-english} for the English module documentation. + +\section{Default date: \today} + +Today: \today. Time: \DTMcurrenttime. Zone: \DTMcurrentzone. + +Now: \DTMnow. + +TWO DIGITS: \DTMtwodigits{2014}. \DTMtwodigits{2999}. +\DTMtwodigits{-2}. + +\typeout{Date Stamp (Default): \DTMnow} + +Saved date: \DTMusedate{mydate}. +Saved time: \DTMusetime{mydate}. + +Saved date-time: \DTMuse{mydate}. + +\typeout{Date Stamp (Default): \DTMuse{mydate}} + +\section{Default time: \DTMusetime{mydate}} + +\DTMsetstyle{iso} + +ISO: \DTMnow. +\typeout{Date Stamp (ISO): \DTMnow} + +Saved date: \DTMuse{mydate}. +\typeout{Date Stamp (ISO): \DTMuse{mydate}} + +\DTMsetstyle{italian} +\section{(Italiano) \DTMusedate{mydate}} +Today: \today. Time: \DTMcurrenttime. Zone: \DTMcurrentzone. + +Now: \DTMnow. + +TWO DIGITS: \DTMtwodigits{2014}. \DTMtwodigits{2999}. +\DTMtwodigits{-2}. + +\typeout{Date Stamp (Default): \DTMnow} + +Saved date: \DTMusedate{mydate}. +Saved time: \DTMusetime{mydate}. + +Saved date-time: \DTMuse{mydate}. + +Italiano: \DTMnow. +\typeout{Date Stamp (IT): \DTMnow} + +Saved date: \DTMuse{mydate}. +\typeout{Date Stamp (IT): \DTMuse{mydate}} + + + +\end{document} diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-styles.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-styles.tex new file mode 100644 index 00000000000..e7e65cbe5b9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-styles.tex @@ -0,0 +1,141 @@ +% This file is public domain. +% This document additionally requires the datetime2-english module +% to be installed. + +% arara: pdflatex +\documentclass[italian]{article} + +\usepackage{datetime2} + +%\DTMsetup{showseconds=false,datesep=/,timesep=.} + +\begin{document} +\DTMsavetimestamp{mydate}{2015-04-01T08:05:00+01:00} +\DTMsavetimestamp{mydate2}{2015-04-01T08:13:45+01:00} + +Default: \DTMnow. \DTMuse{mydate}. +\typeout{Date-Time (default): \DTMnow. \DTMuse{mydate}.} + +\DTMsetstyle{iso} + +ISO: \DTMnow. \DTMuse{mydate}. +\typeout{Date-Time (iso): \DTMnow. \DTMuse{mydate}.} + +\DTMsetstyle{pdf} + +PDF: \DTMnow. \DTMuse{mydate}. +\typeout{Date-Time (pdf): \DTMnow. \DTMuse{mydate}.} + +\DTMsetstyle{ddmmyyyy} + +ddmmyyyy: \DTMnow. \DTMuse{mydate}. +\typeout{Date-Time (ddmmyyyy): \DTMnow. \DTMuse{mydate}.} + +\DTMsetstyle{dmyyyy} + +dmyyyy: \DTMnow. \DTMuse{mydate}. +\typeout{Date-Time (dmyyyy): \DTMnow. \DTMuse{mydate}.} + +\DTMsetstyle{dmyy} + +dmyy: \DTMnow. \DTMuse{mydate}. +\typeout{Date-Time (dmyy): \DTMnow. \DTMuse{mydate}.} + +\DTMsetstyle{mmddyyyy} + +mmddyyyy: \DTMnow. \DTMuse{mydate}. +\typeout{Date-Time (mmddyyyy): \DTMnow. \DTMuse{mydate}.} + +\DTMsetstyle{mdyyyy} + +mdyyyy: \DTMnow. \DTMuse{mydate}. +\typeout{Date-Time (mdyyyy): \DTMnow. \DTMuse{mydate}.} + +\DTMsetstyle{mdyy} + +mdyy: \DTMnow. \DTMuse{mydate}. +\typeout{Date-Time (mdyy): \DTMnow. \DTMuse{mydate}.} + +\DTMsetstyle{yyyymd} + +yyyymd: \DTMnow. \DTMuse{mydate}. +\typeout{Date-Time (yyyymd): \DTMnow. \DTMuse{mydate}.} + +Testing time styles. + +\DTMsavetime{noon}{12:00:00} +\DTMsavetime{midnight1}{00:00:00} +\DTMsavetime{midnight2}{24:00:00} +\DTMsavetime{8am}{08:00:00} +\DTMsavetime{8pm}{20:00:00} +\DTMsavetime{1203}{12:03:00} +\DTMsavetime{2401}{24:01:00} +\DTMsavetime{0001}{00:01:00} + +\DTMsettimestyle{hmmss} + +hmmss: \DTMcurrenttime. \DTMusetime{mydate}. +\DTMusetime{mydate2}. +\DTMusetime{noon}. +\DTMusetime{midnight1}. +\DTMusetime{midnight2}. +\DTMusetime{8am}. +\DTMusetime{8pm}. +\DTMusetime{1203}. +\DTMusetime{2401}. +\DTMusetime{0001}. + +\typeout{Time (hmmss): \DTMcurrenttime. + \DTMusetime{mydate}. + \DTMusetime{mydate2}. + \DTMusetime{noon}. + \DTMusetime{midnight1}. + \DTMusetime{midnight2}. + \DTMusetime{8am}. + \DTMusetime{8pm}. + \DTMusetime{1203}. + \DTMusetime{2401}. + \DTMusetime{0001}. +} + +\DTMsettimestyle{italianampm} +ampm: \DTMcurrenttime. +\DTMusetime{mydate}. +\DTMusetime{mydate2}. +\DTMusetime{noon}. +\DTMusetime{midnight1}. +\DTMusetime{midnight2}. +\DTMusetime{8am}. +\DTMusetime{8pm}. +\DTMusetime{1203}. +\DTMusetime{2401}. +\DTMusetime{0001}. + +\typeout{Time (ampm): \DTMcurrenttime. +\DTMusetime{mydate}. +\DTMusetime{mydate2}. +\DTMusetime{noon}. +\DTMusetime{midnight1}. +\DTMusetime{midnight2}. +\DTMusetime{8am}. +\DTMusetime{8pm}. +\DTMusetime{1203}. +\DTMusetime{2401}. +\DTMusetime{0001}. +} + +\renewcommand*{\DTMitalianampmfmt}[1]{\protect\textsc{#1}} + +(ampm sc) \DTMcurrenttime. +\DTMusetime{mydate}. +\DTMusetime{mydate2}. +\DTMusetime{noon}. +\DTMusetime{midnight1}. +\DTMusetime{midnight2}. +\DTMusetime{8am}. +\DTMusetime{8pm}. +\DTMusetime{1203}. +\DTMusetime{2401}. +\DTMusetime{0001}. + +\end{document} diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio1.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio1.tex new file mode 100644 index 00000000000..1a8531868f4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio1.tex @@ -0,0 +1,5 @@ +\documentclass{article} +\usepackage{datetime2} +\begin{document} +This PDF was created on \today. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio10.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio10.tex new file mode 100644 index 00000000000..70f2eafee4d --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio10.tex @@ -0,0 +1,16 @@ +\documentclass[italian]{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{babel} + +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi +\usepackage[useregional,showzone=false]{datetime2} +\begin{document} +Questo PDF è stato creato il \DTMnow. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio11.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio11.tex new file mode 100644 index 00000000000..34c4ce6ffde --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio11.tex @@ -0,0 +1,16 @@ +\documentclass[italian]{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{babel} + +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi +\usepackage[showisoZ=true]{datetime2} +\begin{document} +Questo PDF è stato creato il \DTMnow. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio12.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio12.tex new file mode 100644 index 00000000000..00ad4eff6be --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio12.tex @@ -0,0 +1,15 @@ +\documentclass{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage[italian]{babel} + +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi +\begin{document} +\today +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio13.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio13.tex new file mode 100644 index 00000000000..843267ea47d --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio13.tex @@ -0,0 +1,5 @@ +\documentclass{article} +\usepackage[italian,useregional=numeric]{datetime2} +\begin{document} + \today +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio2.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio2.tex new file mode 100644 index 00000000000..74283552ddc --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio2.tex @@ -0,0 +1,5 @@ +\documentclass{article} +\usepackage{datetime2} +\begin{document} +This PDF was created on \DTMnow. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio3.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio3.tex new file mode 100644 index 00000000000..5f669f9c448 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio3.tex @@ -0,0 +1,13 @@ +\documentclass[italian]{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage{babel} +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi +\usepackage{datetime2} +\begin{document} +Questo PDF è stato creato il \DTMnow. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio4.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio4.tex new file mode 100644 index 00000000000..ccaa3e4bcd7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio4.tex @@ -0,0 +1,13 @@ +\documentclass[italian]{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage{babel} +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi +\usepackage[useregional]{datetime2} +\begin{document} +Questo PDF è stato creato il \DTMnow. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio5.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio5.tex new file mode 100644 index 00000000000..014274bed66 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio5.tex @@ -0,0 +1,15 @@ +\documentclass[italian]{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage{babel} +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi +\usepackage[useregional=numeric]{datetime2} +\begin{document} +Questo PDF è stato creato il \DTMnow. + +Questo PDF è stato creato il \today. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio6.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio6.tex new file mode 100644 index 00000000000..f939b24cc7c --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio6.tex @@ -0,0 +1,14 @@ +\documentclass[italian]{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage{babel} +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi +\usepackage[useregional,showdow]{datetime2} +\DTMlangsetup[italian]{abbr} +\begin{document} +Questo PDF è stato creato il \today +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio6a.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio6a.tex new file mode 100644 index 00000000000..c88d97e0a72 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio6a.tex @@ -0,0 +1,15 @@ +\documentclass[italian]{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage{babel} +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi +\usepackage[useregional,showdow]{datetime2} +\begin{document} +Questo PDF è stato creato il \DTMnow. + +Questo PDF è stato creato il \today. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio7.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio7.tex new file mode 100644 index 00000000000..e934e7b5c0d --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio7.tex @@ -0,0 +1,19 @@ +\documentclass[italian]{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{babel} + +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi + +\usepackage[italian,style=iso]{datetime2} +\begin{document} +Questo PDF è stato creato il \DTMnow. + +Questo PDF è stato creato il \today. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio8.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio8.tex new file mode 100644 index 00000000000..b57c67eac63 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio8.tex @@ -0,0 +1,16 @@ +\documentclass[italian]{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{babel} + +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi +\usepackage[style=iso,italian]{datetime2} +\begin{document} +Questo PDF è stato creato il \today +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio9.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio9.tex new file mode 100644 index 00000000000..62793cc8177 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/esempio9.tex @@ -0,0 +1,16 @@ +\documentclass[italian]{article} +\usepackage{ifpdf,ifxetex} +\ifpdf +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{babel} + +\else +\usepackage{fontspec} +\usepackage{polyglossia} +\setdefaultlanguage{italian} +\fi +\usepackage[showdow]{datetime2} +\begin{document} +Questo PDF è stato creato il \DTMnow. +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex new file mode 100644 index 00000000000..ba3cf153c99 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex @@ -0,0 +1,47 @@ +\documentclass[italian]{article} +\usepackage{pgfkeys,pgfcalendar} + +\newcount\pgfdatecount +%\newcommand{\tomorrow}{% +%\pgfcalendardatetojulian{\year-\month-\day+1}{\pgfdatecount} +%\pgfcalendarjuliantodate{\the\pgfdatecount}{\myyear}{\mymonth}{\myday} +%\pgfcalendarmonthname{\mymonth}\space\myday,\space\myyear% +%} +\newcount\myct +\newcount\datecount +\newcommand{\tomorrow}{% + \DTMsavenow{mydate} + \DTMsaveddateoffsettojulianday{mydate}{365}{\myct} + \DTMsavejulianday{mydate}{\number\myct} + \DTMusedate{mydate} +} + +\newcommand{\yesterday}{% + \DTMsavenow{mydate} + \DTMsaveddateoffsettojulianday{mydate}{-1}{\myct} + \DTMsavejulianday{mydate}{\number\myct} + \DTMusedate{mydate} +} +\newcommand{\myday}[1]{% + \DTMsavenow{mydate} + \DTMsaveddateoffsettojulianday{mydate}{#1}{\myct} + \DTMsavejulianday{mydate}{\number\myct} + \DTMusedate{mydate} +} +\usepackage[calc,useregional]{datetime2} +\begin{document} + +\today~ is the day before tomorrow.\par + +\tomorrow~ is the day after today. + +\yesterday + +\myday{10} +%\DTMuse{\tomorrow} +%\pgfcalendardatetojulian{\year-\month-\day+1}{\pgfdatecount} +%\DTMsavejulianday{mydate}{\the\pgfdatecount} +%\DTMusedate{mydate} + + +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/datetime2-italian/datetime2-italian.dtx b/Master/texmf-dist/source/latex/datetime2-italian/datetime2-italian.dtx index 6f5c3ea0bf4..df151199e0e 100644 --- a/Master/texmf-dist/source/latex/datetime2-italian/datetime2-italian.dtx +++ b/Master/texmf-dist/source/latex/datetime2-italian/datetime2-italian.dtx @@ -20,7 +20,8 @@ % \iffalse % Doc-Source file to use with LaTeX2e % Copyright (C) 2015 Nicola Talbot, all rights reserved. -% (New maintainer add relevant lines here.) +% +% I have added dates in formed short e ampm format % \fi % \iffalse %<*driver> @@ -37,7 +38,7 @@ pdftitle={datetime2.sty Italian Module}]{hyperref} -\CheckSum{311} +\CheckSum{414} \renewcommand*{\usage}[1]{\hyperpage{#1}} \renewcommand*{\main}[1]{\hyperpage{#1}} @@ -80,25 +81,6 @@ % \cs{DTMsetstyle}, but this may be changed by \cs{date}\meta{language} % depending on the value of the \opt{useregional} setting. %\end{abstract} -% -%I've copied the date style from \texttt{babel-italian}'s \cs{today}. -% -%I don't know if these settings are correct. -%In particular, I don't know if the "italian" time style is -%correct. Currently this just uses the "default" time style. Please -%be aware that this may change. Whoever takes over maintanance -%of this module may can change it as appropriate. -% -%The new maintainer should add the line: -%\begin{verbatim} -% The Current Maintainer of this work is Name. -%\end{verbatim} -%to the preamble part in \texttt{datetime2-italian.ins} where Name -%is the name of the maintainer(s) and replace -%the `inactive' status to `maintained'. -% -%Currently there is only a regionless style. New maintainers may -%want to add regional variants. This style currently doesn't check the %\opt{showdow} setting. % %\StopEventually{% @@ -121,7 +103,7 @@ %\changes{1.0}{2015-03-27}{Initial release} % Identify module % \begin{macrocode} -\ProvidesDateTimeModule{italian-utf8}[2015/03/27 v1.0] +\ProvidesDateTimeModule{italian-utf8}[2015/04/10 v1.1] % \end{macrocode} %\begin{macro}{\DTMitalianordinal} % \begin{macrocode} @@ -136,7 +118,6 @@ % \begin{macrocode} \newcommand*{\DTMitalianmonthname}[1]{% \ifcase#1 - \or gennaio% \or febbraio% @@ -165,50 +146,14 @@ % \end{macrocode} %\end{macro} % -%\begin{macro}{\DTMitalianMonthname} -% As above but start with a capital. -% \begin{macrocode} -\newcommand*{\DTMitalianMonthname}[1]{% - \ifcase#1 - \or - Gennaio% - \or - Febbraio% - \or - Marzo% - \or - Aprile% - \or - Maggio% - \or - Giugno% - \or - Luglio% - \or - Agosto% - \or - Settembre% - \or - Ottobre% - \or - Novembre% - \or - Dicembre% - \fi -} -% \end{macrocode} -%\end{macro} % -%If abbreviated dates are supported, short month names should be -%likewise provided. + % %\begin{macro}{\DTMitalianweekdayname} %These are provided here but not currently used in the date format. % \begin{macrocode} \newcommand*{\DTMitalianweekdayname}[1]{% \ifcase#1 - domenica% - \or lunedì% \or martedì% @@ -220,34 +165,68 @@ venerdì% \or sabato% + \or + domenica% \fi } % \end{macrocode} %\end{macro} % -%\begin{macro}{\DTMitalianWeekdayname} -%As above but start with a capital. -% \begin{macrocode} -\newcommand*{\DTMitalianWeekdayname}[1]{% - \ifcase#1 - Domenica% - \or - Lunedì% - \or - Martedì% - \or - Mercoledì% - \or - Giovedì% - \or - Venerdì% - \or - Sabato% - \fi +% +%\begin{macro}{\DTMitalianshortmonthname} +%short mont. +% \begin{macrocode} +\newcommand*{\DTMitalianshortmonthname}[1]{% + \ifcase#1 + gen.% + \or + feb.% + \or + mar.% + \or + apr.% + \or + mag.% + \or + giun.% + \or + lug.% + \or + aug.% + \or + set.% + \or + ott.% + \or + nov.% + \or + dic.% + \fi +} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\DTMitalianshortweekdayname} +%short week day. +% \begin{macrocode} +\newcommand*{\DTMitalianshortweekdayname}[1]{% + \ifcase#1 + lun.% + \or + mar.% + \or + mer.% + \or + gio.% + \or + ven.% + \or + sab.% + \or + dom.% + \fi } % \end{macrocode} %\end{macro} -% %\iffalse % \begin{macrocode} %</datetime2-italian-utf8.ldf> @@ -269,7 +248,7 @@ %\changes{1.0}{2015-03-27}{Initial release} % Identify module % \begin{macrocode} -\ProvidesDateTimeModule{italian-ascii}[2015/03/27 v1.0] +\ProvidesDateTimeModule{italian-ascii}[2015/04/10 v1.1] % \end{macrocode} % %If abbreviated dates are supported, short month names should be @@ -316,47 +295,12 @@ % \end{macrocode} %\end{macro} % -%\begin{macro}{\DTMitalianMonthname} -% As above but start with a capital. -% \begin{macrocode} -\newcommand*{\DTMitalianMonthname}[1]{% - \ifcase#1 - \or - Gennaio% - \or - Febbraio% - \or - Marzo% - \or - Aprile% - \or - Maggio% - \or - Giugno% - \or - Luglio% - \or - Agosto% - \or - Settembre% - \or - Ottobre% - \or - Novembre% - \or - Dicembre% - \fi -} -% \end{macrocode} -%\end{macro} % %\begin{macro}{\DTMitalianweekdayname} %These are provided here but not currently used in the date format. % \begin{macrocode} \newcommand*{\DTMitalianweekdayname}[1]{% \ifcase#1 - domenica% - \or luned\protect\`i% \or marted\protect\`i% @@ -368,34 +312,69 @@ venerd\protect\`i% \or sabato% + \or + domenica% \fi } % \end{macrocode} %\end{macro} % -%\begin{macro}{\DTMitalianWeekdayname} -%As above but start with a capital. -% \begin{macrocode} -\newcommand*{\DTMitalianWeekdayname}[1]{% - \ifcase#1 - Domenica% - \or - Luned\protect\`i% - \or - Marted\protect\`i% - \or - Mercoled\protect\`i% - \or - Gioved\protect\`i% - \or - Venerd\protect\`i% - \or - Sabato% - \fi +% +%\begin{macro}{\DTMitalianshortmonthname} +%short mont. +% \begin{macrocode} +\newcommand*{\DTMitalianshortmonthname}[1]{% + \ifcase#1 + \or + gen.% + \or + feb.% + \or + mar.% + \or + apr.% + \or + mag.% + \or + giun.% + \or + lug.% + \or + aug.% + \or + set.% + \or + ott.% + \or + nov.% + \or + dic.% + \fi +} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\DTMitalianshortweekdayname} +%short week day. +% \begin{macrocode} +\newcommand*{\DTMitalianshortweekdayname}[1]{% + \ifcase#1 + lun.% + \or + mar.% + \or + mer.% + \or + gio.% + \or + ven.% + \or + sab.% + \or + dom.% + \fi } % \end{macrocode} %\end{macro} -% % %\iffalse % \begin{macrocode} @@ -404,8 +383,8 @@ %\fi % %\subsection{Main Italian Module (\texttt{datetime2-italian.ldf})} -%\changes{1.0}{2015-03-27}{Initial release} -% +%\changes{1.0}{2015-03-10}{Initial release} +%\changes{1.1}{2015-04-10}{updating} %\iffalse % \begin{macrocode} %<*datetime2-italian.ldf> @@ -414,7 +393,7 @@ % % Identify Module % \begin{macrocode} -\ProvidesDateTimeModule{italian}[2015/03/27 v1.0] +\ProvidesDateTimeModule{italian}[2015/04/10 v1.1] % \end{macrocode} % Need to find out if XeTeX or LuaTeX are being used. % \begin{macrocode} @@ -497,10 +476,16 @@ \DTMdefkey{italian}{datesep}{\renewcommand*{\DTMitaliandatesep}{#1}} \DTMdefkey{italian}{timesep}{\renewcommand*{\DTMitaliantimesep}{#1}} % \end{macrocode} -% -% TODO: provide a boolean key to switch between full and abbreviated -% formats if appropriate. (I don't know how the date should be -% abbreviated.) + +% Define a boolean key that determines if the shortened form +% should be used. +% \begin{macrocode} +\DTMdefboolkey{italian}{abbr}[true]{} +% \end{macrocode} +% The default is to use abbr +% \begin{macrocode} +\DTMsetbool{italian}{abbr}{false} +% \end{macrocode} % % Define a boolean key that determines if the time zone mappings % should be used. @@ -532,77 +517,116 @@ \DTMsetbool{italian}{showyear}{true} % \end{macrocode} % +% \begin{macrocode} +\newcommand*\DTMitalianam{am}% +% \end{macrocode} +% \begin{macrocode} +\newcommand*\DTMitalianpm{pm}% +% \end{macrocode} +% \begin{macrocode} +\newcommand*\DTMitalianmidnight{mezzanotte}% +% \end{macrocode} +% \begin{macrocode} +\newcommand*\DTMitaliannoon{mezzogiorno}% +% \end{macrocode} +% \begin{macrocode} +\newcommand*{\DTMitalianampmfmt}[1]{#1} +% \end{macrocode} % Define the "italian" style. (TODO: implement day of week?) % \begin{macrocode} \DTMnewstyle - {italian}% label - {% date style - \renewcommand*\DTMdisplaydate[4]{% - \DTMifbool{italian}{showdayofmonth} - {\DTMitalianordinal{##3}\DTMitaliandaymonthsep}% - {}% - \DTMitalianmonthname{##2}% - \DTMifbool{italian}{showyear}% - {% - \DTMitalianmonthyearsep - \number##1 % space intended - }% - {}% - }% - \renewcommand*\DTMDisplaydate[4]{% - \DTMifbool{italian}{showdayofmonth} - {% - \DTMitalianordinal{##3}\DTMitaliandaymonthsep - \DTMitalianmonthname{##2}% - }% - {\DTMitalianMonthname{##2}}% - \DTMifbool{italian}{showyear}% - {% - \DTMitalianmonthyearsep - \number##1 % space intended - }% - {}% - }% - }% - {% time style (use default) - \DTMsettimestyle{default}% - }% - {% zone style - \DTMresetzones - \DTMitalianzonemaps - \renewcommand*{\DTMdisplayzone}[2]{% - \DTMifbool{italian}{mapzone}% - {\DTMusezonemapordefault{##1}{##2}}% - {% - \ifnum##1<0\else+\fi\DTMtwodigits{##1}% - \ifDTMshowzoneminutes\DTMitaliantimesep\DTMtwodigits{##2}\fi - }% - }% - }% - {% full style - \renewcommand*{\DTMdisplay}[9]{% - \ifDTMshowdate - \DTMdisplaydate{##1}{##2}{##3}{##4}% - \DTMitaliandatetimesep - \fi - \DTMdisplaytime{##5}{##6}{##7}% - \ifDTMshowzone - \DTMitaliantimezonesep - \DTMdisplayzone{##8}{##9}% - \fi - }% - \renewcommand*{\DTMDisplay}[9]{% - \ifDTMshowdate - \DTMDisplaydate{##1}{##2}{##3}{##4}% - \DTMitaliandatetimesep - \fi - \DTMdisplaytime{##5}{##6}{##7}% - \ifDTMshowzone - \DTMitaliantimezonesep - \DTMdisplayzone{##8}{##9}% - \fi - }% - }% +{italian}% label +{% date style +% \renewcommand*{\DTMitalianfmtordsuffix}{\DTMitalianfmtordsuffix}% + \renewcommand*\DTMdisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1% + \DTMifbool{italian}{abbr}% + {\DTMitalianshortweekdayname{##4}}% + {\DTMitalianweekdayname{##4}}% + \space + \fi + \fi + \DTMifbool{italian}{showdayofmonth}% + {% + \DTMitalianordinal{##3}% + \DTMitaliandaymonthsep + }% + {}% + \DTMifbool{italian}{abbr}% + {\DTMitalianshortmonthname{##2}}% + {\DTMitalianmonthname{##2}}% + \DTMifbool{italian}{showyear}% + {% + \DTMitalianmonthyearsep\number##1 % space intended + }% + {}% + }% + \renewcommand*\DTMDisplaydate[4]{% + \ifDTMshowdow + \ifnum##4>-1% + \DTMifbool{italian}{abbr}% + {\DTMitalianshortweekdayname{##4}}% + {\DTMitalianweekdayname{##4}}% + \space + \fi + \fi + \DTMifbool{italian}{showdayofmonth}% + {% + \DTMitalianordinal{##3}% + \DTMitaliandaymonthsep + }% + {}% + \DTMifbool{italian}{abbr}% + {\DTMitalianshortmonthname{##2}}% + {\DTMitalianmonthname{##2}}% + \DTMifbool{italian}{showyear}% + {% + \DTMitalianmonthyearsep\number##1 % space intended + }% + {}% + }% +}% +{% time style + \renewcommand*\DTMitaliantimesep{\DTMitaliantimesep}% + \DTMsettimestyle{default}%ampm +}% +{% zone style + \DTMresetzones + \DTMitalianzonemaps + \renewcommand*{\DTMdisplayzone}[2]{% + \DTMifbool{italian}{mapzone}% + {\DTMusezonemapordefault{##1}{##2}}% + {% + \ifnum##1<0\else+\fi\DTMtwodigits{##1}% + \ifDTMshowzoneminutes\DTMitaliantimesep\DTMtwodigits{##2}\fi + }% + }% +}% +{% full style + \renewcommand*{\DTMdisplay}[9]{% + \ifDTMshowdate + \DTMdisplaydate{##1}{##2}{##3}{##4}% + \DTMitaliandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMitaliantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% + \renewcommand*{\DTMDisplay}[9]{% + \ifDTMshowdate + \DTMDisplaydate{##1}{##2}{##3}{##4}% + \DTMitaliandatetimesep + \fi + \DTMdisplaytime{##5}{##6}{##7}% + \ifDTMshowzone + \DTMitaliantimezonesep + \DTMdisplayzone{##8}{##9}% + \fi + }% +}% % \end{macrocode} % % Define numeric style. @@ -662,6 +686,78 @@ } % \end{macrocode} % +% Define am pm style. +% \begin{macrocode} + \DTMnewtimestyle + {italianampm}% label + {% + \renewcommand*\DTMdisplaytime[3]{% + \ifnum##2=0 + \ifnum##1=12 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitaliannoon}}% + {\DTMitaliannoon}% + \else + \ifnum##1=0 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianmidnight}}% + {\DTMitalianmidnight}% + \else + \ifnum##1=24 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianmidnight}}% + {\DTMitalianmidnight}% + \else + \ifnum##1<12 + \number##1 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianam}}% + {\DTMitalianam}% + \else + \number\numexpr##1-12\relax + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianpm}}% + {\DTMitalianpm}% + \fi + \fi + \fi + \fi + \else + \ifnum##1<13 + \ifnum##1=0 + 12% + \else + \number##1 + \fi + \DTMitaliantimesep\DTMtwodigits{##2}% + \ifnum##1=12 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianam}}% + {\DTMitalianpm}% + \else + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianam}}% + {\DTMitalianam}% + \fi + \else + \number\numexpr##1-12\relax + \DTMitaliantimesep\DTMtwodigits{##2}% + \ifnum##1=24 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianpm}}% + {\DTMitalianam}% + \else + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianpm}}% + {\DTMitalianpm}% + \fi + \fi + \fi + }% + }% +% \end{macrocode} +% +% %\begin{macro}{\DTMitalianzonemaps} % The time zone mappings are set through this command, which can be % redefined if extra mappings are required or mappings need to be diff --git a/Master/texmf-dist/source/latex/datetime2-italian/datetime2-italian.ins b/Master/texmf-dist/source/latex/datetime2-italian/datetime2-italian.ins index 4a170febf35..28ed287cf2c 100644 --- a/Master/texmf-dist/source/latex/datetime2-italian/datetime2-italian.ins +++ b/Master/texmf-dist/source/latex/datetime2-italian/datetime2-italian.ins @@ -13,7 +13,9 @@ and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later. - This work has the LPPL maintenance status `inactive'. + The Current Maintainer of this work is Claudio Duchi + + This work has the LPPL maintenance status `maintained'. This work consists of the files datetime2-italian.dtx and datetime2-italian.ins and the derived files diff --git a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-ascii.ldf b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-ascii.ldf index 23d182bde0a..33860795e56 100644 --- a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-ascii.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-ascii.ldf @@ -17,7 +17,9 @@ %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% -%% This work has the LPPL maintenance status `inactive'. +%% The Current Maintainer of this work is Claudio Duchi +%% +%% This work has the LPPL maintenance status `maintained'. %% %% This work consists of the files datetime2-italian.dtx and %% datetime2-italian.ins and the derived files @@ -39,7 +41,7 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{italian-ascii}[2015/03/27 v1.0] +\ProvidesDateTimeModule{italian-ascii}[2015/04/10 v1.1] \newcommand*{\DTMitalianordinal}[1]{% \number#1 }% @@ -71,38 +73,8 @@ dicembre% \fi } -\newcommand*{\DTMitalianMonthname}[1]{% - \ifcase#1 - \or - Gennaio% - \or - Febbraio% - \or - Marzo% - \or - Aprile% - \or - Maggio% - \or - Giugno% - \or - Luglio% - \or - Agosto% - \or - Settembre% - \or - Ottobre% - \or - Novembre% - \or - Dicembre% - \fi -} \newcommand*{\DTMitalianweekdayname}[1]{% \ifcase#1 - domenica% - \or luned\protect\`i% \or marted\protect\`i% @@ -114,25 +86,55 @@ venerd\protect\`i% \or sabato% - \fi -} -\newcommand*{\DTMitalianWeekdayname}[1]{% - \ifcase#1 - Domenica% - \or - Luned\protect\`i% \or - Marted\protect\`i% - \or - Mercoled\protect\`i% - \or - Gioved\protect\`i% - \or - Venerd\protect\`i% - \or - Sabato% + domenica% \fi } +\newcommand*{\DTMitalianshortmonthname}[1]{% +\ifcase#1 +\or +gen.% +\or +feb.% +\or +mar.% +\or +apr.% +\or +mag.% +\or +giun.% +\or +lug.% +\or +aug.% +\or +set.% +\or +ott.% +\or +nov.% +\or +dic.% +\fi +} +\newcommand*{\DTMitalianshortweekdayname}[1]{% +\ifcase#1 +lun.% +\or +mar.% +\or +mer.% +\or +gio.% +\or +ven.% +\or +sab.% +\or +dom.% +\fi +} \endinput %% %% End of file `datetime2-italian-ascii.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-utf8.ldf b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-utf8.ldf index bbfc31d6b70..cdfdff542b6 100644 --- a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-utf8.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian-utf8.ldf @@ -17,7 +17,9 @@ %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% -%% This work has the LPPL maintenance status `inactive'. +%% The Current Maintainer of this work is Claudio Duchi +%% +%% This work has the LPPL maintenance status `maintained'. %% %% This work consists of the files datetime2-italian.dtx and %% datetime2-italian.ins and the derived files @@ -39,13 +41,12 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{italian-utf8}[2015/03/27 v1.0] +\ProvidesDateTimeModule{italian-utf8}[2015/04/10 v1.1] \newcommand*{\DTMitalianordinal}[1]{% \number#1 }% \newcommand*{\DTMitalianmonthname}[1]{% \ifcase#1 - \or gennaio% \or febbraio% @@ -71,38 +72,9 @@ dicembre% \fi } -\newcommand*{\DTMitalianMonthname}[1]{% - \ifcase#1 - \or - Gennaio% - \or - Febbraio% - \or - Marzo% - \or - Aprile% - \or - Maggio% - \or - Giugno% - \or - Luglio% - \or - Agosto% - \or - Settembre% - \or - Ottobre% - \or - Novembre% - \or - Dicembre% - \fi -} + \newcommand*{\DTMitalianweekdayname}[1]{% \ifcase#1 - domenica% - \or lunedì% \or martedì% @@ -114,25 +86,54 @@ venerdì% \or sabato% - \fi -} -\newcommand*{\DTMitalianWeekdayname}[1]{% - \ifcase#1 - Domenica% - \or - Lunedì% \or - Martedì% - \or - Mercoledì% - \or - Giovedì% - \or - Venerdì% - \or - Sabato% + domenica% \fi } +\newcommand*{\DTMitalianshortmonthname}[1]{% +\ifcase#1 +gen.% +\or +feb.% +\or +mar.% +\or +apr.% +\or +mag.% +\or +giun.% +\or +lug.% +\or +aug.% +\or +set.% +\or +ott.% +\or +nov.% +\or +dic.% +\fi +} +\newcommand*{\DTMitalianshortweekdayname}[1]{% +\ifcase#1 +lun.% +\or +mar.% +\or +mer.% +\or +gio.% +\or +ven.% +\or +sab.% +\or +dom.% +\fi +} \endinput %% %% End of file `datetime2-italian-utf8.ldf'. diff --git a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf index 986108fb31a..968f59a5133 100644 --- a/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf +++ b/Master/texmf-dist/tex/latex/datetime2-italian/datetime2-italian.ldf @@ -17,7 +17,9 @@ %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% -%% This work has the LPPL maintenance status `inactive'. +%% The Current Maintainer of this work is Claudio Duchi +%% +%% This work has the LPPL maintenance status `maintained'. %% %% This work consists of the files datetime2-italian.dtx and %% datetime2-italian.ins and the derived files @@ -39,7 +41,7 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesDateTimeModule{italian}[2015/03/27 v1.0] +\ProvidesDateTimeModule{italian}[2015/04/10 v1.1] \RequirePackage{ifxetex,ifluatex} \ifxetex \RequireDateTimeModule{italian-utf8} @@ -62,81 +64,112 @@ \DTMdefkey{italian}{timezonesep}{\renewcommand*{\DTMitaliantimezonesep}{#1}} \DTMdefkey{italian}{datesep}{\renewcommand*{\DTMitaliandatesep}{#1}} \DTMdefkey{italian}{timesep}{\renewcommand*{\DTMitaliantimesep}{#1}} + +\DTMdefboolkey{italian}{abbr}[true]{} +\DTMsetbool{italian}{abbr}{false} \DTMdefboolkey{italian}{mapzone}[true]{} \DTMsetbool{italian}{mapzone}{true} \DTMdefboolkey{italian}{showdayofmonth}[true]{} \DTMsetbool{italian}{showdayofmonth}{true} \DTMdefboolkey{italian}{showyear}[true]{} \DTMsetbool{italian}{showyear}{true} +\newcommand*\DTMitalianam{am}% +\newcommand*\DTMitalianpm{pm}% +\newcommand*\DTMitalianmidnight{mezzanotte}% +\newcommand*\DTMitaliannoon{mezzogiorno}% +\newcommand*{\DTMitalianampmfmt}[1]{#1} \DTMnewstyle - {italian}% label - {% date style - \renewcommand*\DTMdisplaydate[4]{% - \DTMifbool{italian}{showdayofmonth} - {\DTMitalianordinal{##3}\DTMitaliandaymonthsep}% - {}% - \DTMitalianmonthname{##2}% - \DTMifbool{italian}{showyear}% - {% - \DTMitalianmonthyearsep - \number##1 % space intended - }% - {}% - }% - \renewcommand*\DTMDisplaydate[4]{% - \DTMifbool{italian}{showdayofmonth} - {% - \DTMitalianordinal{##3}\DTMitaliandaymonthsep - \DTMitalianmonthname{##2}% - }% - {\DTMitalianMonthname{##2}}% - \DTMifbool{italian}{showyear}% - {% - \DTMitalianmonthyearsep - \number##1 % space intended - }% - {}% - }% - }% - {% time style (use default) - \DTMsettimestyle{default}% - }% - {% zone style - \DTMresetzones - \DTMitalianzonemaps - \renewcommand*{\DTMdisplayzone}[2]{% - \DTMifbool{italian}{mapzone}% - {\DTMusezonemapordefault{##1}{##2}}% - {% - \ifnum##1<0\else+\fi\DTMtwodigits{##1}% - \ifDTMshowzoneminutes\DTMitaliantimesep\DTMtwodigits{##2}\fi - }% - }% - }% - {% full style - \renewcommand*{\DTMdisplay}[9]{% - \ifDTMshowdate - \DTMdisplaydate{##1}{##2}{##3}{##4}% - \DTMitaliandatetimesep - \fi - \DTMdisplaytime{##5}{##6}{##7}% - \ifDTMshowzone - \DTMitaliantimezonesep - \DTMdisplayzone{##8}{##9}% - \fi - }% - \renewcommand*{\DTMDisplay}[9]{% - \ifDTMshowdate - \DTMDisplaydate{##1}{##2}{##3}{##4}% - \DTMitaliandatetimesep - \fi - \DTMdisplaytime{##5}{##6}{##7}% - \ifDTMshowzone - \DTMitaliantimezonesep - \DTMdisplayzone{##8}{##9}% - \fi - }% - }% +{italian}% label +{% date style +\renewcommand*\DTMdisplaydate[4]{% +\ifDTMshowdow +\ifnum##4>-1% +\DTMifbool{italian}{abbr}% +{\DTMitalianshortweekdayname{##4}}% +{\DTMitalianweekdayname{##4}}% +\space +\fi +\fi +\DTMifbool{italian}{showdayofmonth}% +{% +\DTMitalianordinal{##3}% +\DTMitaliandaymonthsep +}% +{}% +\DTMifbool{italian}{abbr}% +{\DTMitalianshortmonthname{##2}}% +{\DTMitalianmonthname{##2}}% +\DTMifbool{italian}{showyear}% +{% +\DTMitalianmonthyearsep\number##1 % space intended +}% +{}% +}% +\renewcommand*\DTMDisplaydate[4]{% +\ifDTMshowdow +\ifnum##4>-1% +\DTMifbool{italian}{abbr}% +{\DTMitalianshortweekdayname{##4}}% +{\DTMitalianweekdayname{##4}}% +\space +\fi +\fi +\DTMifbool{italian}{showdayofmonth}% +{% +\DTMitalianordinal{##3}% +\DTMitaliandaymonthsep +}% +{}% +\DTMifbool{italian}{abbr}% +{\DTMitalianshortmonthname{##2}}% +{\DTMitalianmonthname{##2}}% +\DTMifbool{italian}{showyear}% +{% +\DTMitalianmonthyearsep\number##1 % space intended +}% +{}% +}% +}% +{% time style +\renewcommand*\DTMitaliantimesep{\DTMitaliantimesep}% +\DTMsettimestyle{default}%ampm +}% +{% zone style +\DTMresetzones +\DTMitalianzonemaps +\renewcommand*{\DTMdisplayzone}[2]{% +\DTMifbool{italian}{mapzone}% +{\DTMusezonemapordefault{##1}{##2}}% +{% +\ifnum##1<0\else+\fi\DTMtwodigits{##1}% +\ifDTMshowzoneminutes\DTMitaliantimesep\DTMtwodigits{##2}\fi +}% +}% +}% +{% full style +\renewcommand*{\DTMdisplay}[9]{% +\ifDTMshowdate +\DTMdisplaydate{##1}{##2}{##3}{##4}% +\DTMitaliandatetimesep +\fi +\DTMdisplaytime{##5}{##6}{##7}% +\ifDTMshowzone +\DTMitaliantimezonesep +\DTMdisplayzone{##8}{##9}% +\fi +}% +\renewcommand*{\DTMDisplay}[9]{% +\ifDTMshowdate +\DTMDisplaydate{##1}{##2}{##3}{##4}% +\DTMitaliandatetimesep +\fi +\DTMdisplaytime{##5}{##6}{##7}% +\ifDTMshowzone +\DTMitaliantimezonesep +\DTMdisplayzone{##8}{##9}% +\fi +}% +}% \DTMnewstyle {italian-numeric}% label {% date style @@ -190,6 +223,73 @@ }% \renewcommand*{\DTMDisplay}{\DTMdisplay}% } + \DTMnewtimestyle + {italianampm}% label + {% + \renewcommand*\DTMdisplaytime[3]{% + \ifnum##2=0 + \ifnum##1=12 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitaliannoon}}% + {\DTMitaliannoon}% + \else + \ifnum##1=0 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianmidnight}}% + {\DTMitalianmidnight}% + \else + \ifnum##1=24 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianmidnight}}% + {\DTMitalianmidnight}% + \else + \ifnum##1<12 + \number##1 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianam}}% + {\DTMitalianam}% + \else + \number\numexpr##1-12\relax + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianpm}}% + {\DTMitalianpm}% + \fi + \fi + \fi + \fi + \else + \ifnum##1<13 + \ifnum##1=0 + 12% + \else + \number##1 + \fi + \DTMitaliantimesep\DTMtwodigits{##2}% + \ifnum##1=12 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianam}}% + {\DTMitalianpm}% + \else + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianam}}% + {\DTMitalianam}% + \fi + \else + \number\numexpr##1-12\relax + \DTMitaliantimesep\DTMtwodigits{##2}% + \ifnum##1=24 + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianpm}}% + {\DTMitalianam}% + \else + \DTMtexorpdfstring + {\DTMitalianampmfmt{\DTMitalianpm}}% + {\DTMitalianpm}% + \fi + \fi + \fi + }% + }% \newcommand*{\DTMitalianzonemaps}{% \DTMdefzonemap{01}{00}{CET}% \DTMdefzonemap{02}{00}{CEST}% |