LyXNo date appears with 'article (paper)' document class

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
lasindi
Posts: 3
Joined: Sun Jan 12, 2014 11:38 pm

No date appears with 'article (paper)' document class

Post by lasindi »

Hi all,

I'm trying to make the date appear at the top of my paper using the "article (paper)" document class. It appears fine with other classes (for example "article") but it simply disappears when I generate a PDF with "article (paper)." I'm just using a Date section after the Author section and put a date in there. Any ideas on what to do? Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: No date appears with 'article (paper)' document class

Post by Johannes_B »

I am not a LyX user. In order to help we (at least i) need more information.
Please prepare a very minimal example (nearly empty document with a sample sentence and maybe the date) and export it to latex. This shows the underlying class.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
lasindi
Posts: 3
Joined: Sun Jan 12, 2014 11:38 pm

Re: No date appears with 'article (paper)' document class

Post by lasindi »

Thanks for the reply! I've attached two latex files that illustrate my issue (one gives a PDF with a date, the other does not).
Attachments
date_example.tex
Shows date
(492 Bytes) Downloaded 467 times
no_date_example.tex
Does not show date
(490 Bytes) Downloaded 433 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

No date appears with 'article (paper)' document class

Post by Johannes_B »

The paper class does not define a datefield for the standard title. Using the global obtion titlepage, you get a complete titlepage containing the date.

Maybe a KOMA-script class (article (KOMA)) would be an alternative for you.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
lasindi
Posts: 3
Joined: Sun Jan 12, 2014 11:38 pm

Re: No date appears with 'article (paper)' document class

Post by lasindi »

Hmmm, unfortunately neither option is exactly what I'd like (for example the KOMA class does not label the Abstract as "Abstract", which the paper class does). I'd really prefer to just add a date to the paper class. Is there a way to do this, perhaps editing a configuration file a little bit? Sorry to be so picky.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

No date appears with 'article (paper)' document class

Post by Johannes_B »

Hi, the KOMA-classes are very customizable and much much more powerful that the paper class. You can read the koma-script documentation for more details. With LyX, some aspects of the underlying LaTeX are hidden.

Cosider the following:

Code: Select all

\documentclass{scrartcl}
\KOMAoptions{abstract=true}
\usepackage[english]{babel}
\usepackage{blindtext}
\author{lasindi}
\title{just a small sample}
\begin{document}
\maketitle
\begin{abstract}
	Hello, it's me. \blindtext
\end{abstract}
\Blinddocument
\end{document}
You can get a date to the paper class by patching or redefining the \maketitle[/url] command. But that's somehow an advanced thing.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply