summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/datetime2-italian/sample
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-01 21:53:29 +0000
committerKarl Berry <karl@freefriends.org>2015-05-01 21:53:29 +0000
commite49e8bc0b7e9222bc4e40d2e3b0298262c78380a (patch)
tree9c65ceb8e40731b6e1552c339526cc12a132a16c /Master/texmf-dist/doc/latex/datetime2-italian/sample
parentf8381b4c7eb3d20b0c6dd90807d1d05a9429e167 (diff)
datetime2-italian (1may15)
git-svn-id: svn://tug.org/texlive/trunk@37146 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/datetime2-italian/sample')
-rw-r--r--Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime1.tex11
-rw-r--r--Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime2-sample-styles.tex11
-rw-r--r--Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex8
3 files changed, 17 insertions, 13 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
index 170021968a4..40975b2d6dc 100644
--- a/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime1.tex
+++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/datetime1.tex
@@ -1,7 +1,12 @@
\documentclass[italian]{article}
-\usepackage[T1]{fontenc}
-\usepackage[utf8]{inputenc}
-\usepackage[italian]{babel}
+\usepackage{ifpdf,ifxetex}
+\ifpdf
+\usepackage{babel}
+\else
+\usepackage{fontspec}
+\usepackage{polyglossia}
+\setdefaultlanguage{italian}
+\fi
\usepackage[useregional]{datetime2}
\begin{document}
Questo PDF รจ stato creato il \today
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
index e7e65cbe5b9..3261d806048 100644
--- 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
@@ -76,12 +76,19 @@ Testing time styles.
hmmss: \DTMcurrenttime. \DTMusetime{mydate}.
\DTMusetime{mydate2}.
+
\DTMusetime{noon}.
+
\DTMusetime{midnight1}.
+
\DTMusetime{midnight2}.
+
\DTMusetime{8am}.
+
\DTMusetime{8pm}.
+
\DTMusetime{1203}.
+
\DTMusetime{2401}.
\DTMusetime{0001}.
@@ -124,9 +131,9 @@ ampm: \DTMcurrenttime.
\DTMusetime{0001}.
}
-\renewcommand*{\DTMitalianampmfmt}[1]{\protect\textsc{#1}}
+\DTMsettimestyle{italian-twenty-four}
+(italian-twenty-four) \DTMcurrenttime.
-(ampm sc) \DTMcurrenttime.
\DTMusetime{mydate}.
\DTMusetime{mydate2}.
\DTMusetime{noon}.
diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex
index ba3cf153c99..8892d71d41e 100644
--- a/Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex
+++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex
@@ -1,12 +1,4 @@
\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}{%