diff options
author | Karl Berry <karl@freefriends.org> | 2015-04-10 20:55:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-04-10 20:55:01 +0000 |
commit | 0d527272b84ca6a34b5ea36669490b69238341de (patch) | |
tree | 44fd760eb9c842a3a2868c8ebefef70ce5c60fad /Master/texmf-dist/doc/latex/datetime2-italian/sample | |
parent | 8c3034b5cd54c82925a751f02ee0d81e13b063fa (diff) |
datetime2-italian (10apr15)
git-svn-id: svn://tug.org/texlive/trunk@36761 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/datetime2-italian/sample')
20 files changed, 589 insertions, 0 deletions
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 |