General ⇒ datetime2 showdow
datetime2 showdow
(a) Inside that works well, as the NAME of the day of the week alongside the date is a helpful check that the dates are correct.
(b) However, on the front cover, I would like to show only the date, and not the NAME of the day of the week.
If I have showdow on, (a) works as I wish but (b) does not work (as the day NAME shows up).
If I turn showdow off, (b) works as I wish but (a) throws up an error, and the list of dates becomes a list of variable names.
What I am wondering is if there is a way to make showdow=false on the front page whilst allow the default of showdow=true to apply to the rest of the document?
I am basically looking to see if there is a way of localising the setting of showdow within a specific environment.
Thanks,
Calum
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
datetime2 showdow
you could tryPangur wrote: What I am wondering is if there is a way to make showdow=false on the front page whilst allow the default of showdow=true to apply to the rest of the document?
I am basically looking to see if there is a way of localising the setting of showdow within a specific environment.
\DTMshowdowfalse at the beginning of the here unspecified `specific' environment.If that doesn't work out for you, please provide a
KR
Rainer
datetime2 showdow
\DTMshowdowfalse was exactly what I needed, @rais.What I am wondering is if that information that you supplied is documented somewhere, and I have missed it? Or is it simply something that a person who knows LaTeX well or the datetime2 package well would know instinctively?
Anyway, I am grateful that it worked so pleasantly for me.
Thanks,
Calum
datetime2 showdow
Anyway, you may have overlooked
\DTMsetup{showdow=false}, which may do what you want, too.KR
Rainer
datetime2 showdow
\DTMsetup{showdow=false}, but will probably stick with \DTMshowdowfalse, as it is more compact. However, it is good to have an alternative.Thanks too for the tip about examining the source code as well as reading the documentation.
Calum
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
datetime2 showdow
I recommend to use always the documented user interface.Pangur wrote:Thanks. I had not noticed\DTMsetup{showdow=false}, but will probably stick with\DTMshowdowfalse, as it is more compact.
\DTMshowdownfalse can be found only in the implementation section of the manual. \DTMsetup{showdow=false} is even shown as example in the description of option nodayofweek. So IMHO you should prefer \DTMsetup{showdow=false}.