Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

1 + 1 = 3, for large values of 1.


computers / comp.text.tex / Re: datetime2

SubjectAuthor
* datetime2Peter Flynn
`* Re: datetime2Nicola Talbot
 `* Re: datetime2Nicola Talbot
  `- Re: datetime2Peter Flynn

1
datetime2

<ifkunqFc6l6U1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3586&group=comp.text.tex#3586

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pet...@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: datetime2
Date: Fri, 7 May 2021 14:47:37 +0100
Lines: 15
Message-ID: <ifkunqFc6l6U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 0PRJMSr+Y7H3FXmLztW2cwyGTkQuavaI6e21ZTSywXRur+i2Ss
Cancel-Lock: sha1:uQGCLTdYQVhG/dHjcrJ2hQ5XHzM=
X-Mozilla-News-Host: news://news.individual.de:119
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Content-Language: en-US
 by: Peter Flynn - Fri, 7 May 2021 13:47 UTC

I must confess to being completely baffled by the datetime2 package.
I need to express \today as the format [d]d Mmm yyyy, that is:

day with no leading zero or space and no ordinal
month as three-letter abbreviation, first letter capitalised
four-digit year

Today is therefore 7 May 2021

I have been through the PDF but I don't understand what I need to supply
as the second argument to \DTMnewdatestyle{\today}{something}.

Has anyone ever done this, and if so, what have I missed?

Peter

Re: datetime2

<s73nd2$1gpm$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3587&group=comp.text.tex#3587

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!aioe.org!f2mO9WkLAsyCxoMkFStahw.user.gioia.aioe.org.POSTED!not-for-mail
From: n.tal...@uea.ac.uk (Nicola Talbot)
Newsgroups: comp.text.tex
Subject: Re: datetime2
Date: Fri, 7 May 2021 16:46:43 +0100
Organization: Aioe.org NNTP Server
Lines: 39
Message-ID: <s73nd2$1gpm$1@gioia.aioe.org>
References: <ifkunqFc6l6U1@mid.individual.net>
NNTP-Posting-Host: f2mO9WkLAsyCxoMkFStahw.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.8.1
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: Nicola Talbot - Fri, 7 May 2021 15:46 UTC

On 07/05/2021 14:47, Peter Flynn wrote:
> I must confess to being completely baffled by the datetime2 package.
> I need to express \today as the format [d]d Mmm yyyy, that is:
>
> day with no leading zero or space and no ordinal
> month as three-letter abbreviation, first letter capitalised
> four-digit year
>
> Today is therefore 7 May 2021

Try the following:

\documentclass{article}
\usepackage[en-GB]{datetime2}

\DTMlangsetup[en-GB]{ord=omit,abbr}

\begin{document}
Today: \today.
Another date: \DTMdate{2021-06-01}.
\end{document}

>
> I have been through the PDF but I don't understand what I need to supply
> as the second argument to \DTMnewdatestyle{\today}{something}.
>
> Has anyone ever done this, and if so, what have I missed?

The regional styles are described in the documentation for the
particular language, so the English styles are described in
datetime2-english (you also need to ensure that you have
datetime2-english installed).

Regards
Nicola Talbot
--
Home: http://www.dickimaw-books.com/
Creating a LaTeX Minimal Example:
http://www.dickimaw-books.com/latex/minexample/

Re: datetime2

<s75qq5$vft$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3591&group=comp.text.tex#3591

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!aioe.org!f2mO9WkLAsyCxoMkFStahw.user.gioia.aioe.org.POSTED!not-for-mail
From: n.tal...@uea.ac.uk (Nicola Talbot)
Newsgroups: comp.text.tex
Subject: Re: datetime2
Date: Sat, 8 May 2021 11:57:10 +0100
Organization: Aioe.org NNTP Server
Lines: 26
Message-ID: <s75qq5$vft$1@gioia.aioe.org>
References: <ifkunqFc6l6U1@mid.individual.net> <s73nd2$1gpm$1@gioia.aioe.org>
NNTP-Posting-Host: f2mO9WkLAsyCxoMkFStahw.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.8.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: Nicola Talbot - Sat, 8 May 2021 10:57 UTC

Hi Peter,

On 07/05/2021 16:46, Nicola Talbot wrote:
> \usepackage[en-GB]{datetime2}
>
> \DTMlangsetup[en-GB]{ord=omit,abbr}

I forgot to add that there are other English locales supported. You may
prefer one more suitable to your location, for example:

\documentclass{article}
\usepackage[en-IE]{datetime2}

\DTMlangsetup[en-IE]{ord=omit,abbr}

\begin{document}
Today: \today.
Another date: \DTMdate{2021-06-01}.
\end{document}

Regards
Nicola
--
Home: http://www.dickimaw-books.com/
Creating a LaTeX Minimal Example:
http://www.dickimaw-books.com/latex/minexample/

Re: datetime2

<ifnh99Frcv4U1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3592&group=comp.text.tex#3592

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pet...@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: datetime2
Date: Sat, 8 May 2021 14:16:24 +0100
Lines: 13
Message-ID: <ifnh99Frcv4U1@mid.individual.net>
References: <ifkunqFc6l6U1@mid.individual.net> <s73nd2$1gpm$1@gioia.aioe.org>
<s75qq5$vft$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net VGjKkLjM9lmpaz9TnVsIQQG2LO91tmMVI+UBCP/ebtCcL3igbd
Cancel-Lock: sha1:u2WXHktoz15XHh7c+TKcVylmZ2c=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.7.1
In-Reply-To: <s75qq5$vft$1@gioia.aioe.org>
Content-Language: en-US
 by: Peter Flynn - Sat, 8 May 2021 13:16 UTC

On 08/05/2021 11:57, Nicola Talbot wrote:
> Hi Peter,
>
> On 07/05/2021 16:46, Nicola Talbot wrote:
>> \usepackage[en-GB]{datetime2}
>>
>> \DTMlangsetup[en-GB]{ord=omit,abbr}

That's perfect, thank you.

Now I must go back and work out why that works...

Peter

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor