Quantcast
Channel: Active questions tagged uppercase - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 71

How can I convert a datetime month name to uppercase?

$
0
0

I'm trying to create a date style that results in

01 JUN 2020

\documentclass{article}\usepackage[USenglish]{babel}\usepackage[showseconds=false,useregional=text,calc]{datetime2}\DTMnewdatestyle{mydatestyle}{    \renewcommand*{\DTMdisplaydate}[4]{        \DTMtwodigits{##3} \MakeUppercase{\DTMshortmonthname{##2}} ##1}    \renewcommand*{\DTMDisplaydate}{\DTMdisplaydate}}\begin{document}\DTMsetdatestyle{mydatestyle}\today\end{document}

but no matter where I wrap \MakeUppercase around it, it gives me

01 Jun 2020

Is there a way to simply change the case of the date without needing to redefine the month names? (which I cannot get to work with my datetime2 example, while the answers there work out of the box.


Viewing all articles
Browse latest Browse all 71

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>