With the newlfm
class, the date visibility is set using the dateno
(no date) and dateyes
(show date) options. (As far as I can tell, this is just for letters, not for the memo, fax or press release options.) You can supply dateno
as a class option:
\documentclass[12pt,stdletter,orderfromtodate,sigleft,dateno]{newlfm}
or using \newlfmP
:
\newlfmP{dateno}
The date is set using \dateset
(not \date
).
\date{}
is to specify the date - either by a free text, such as your August 4, 2018
or by using the current day \date{\today}
. This stores the date for later use.
To insert it in your document, you could use
\makeatletter
\@date
\makeatother
or just write it in plain text, as you do for all your other elements like title, author etc.
some other comments about your code:
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsfonts, amsmath, amssymb}
\usepackage[none]{hyphenat}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{float}
%\usepackage{url}
\usepackage[nottoc, notlot, notlof]{tocbibind}
\usepackage{url}
\usepackage{bm}
\usepackage[autostyle]{csquotes}
%\usepackage[cache=false]{minted}
\usepackage{xcolor}
\usepackage{mdframed}
\usepackage[colorlinks,linkcolor=black]{hyperref}
\usepackage[lined, linesnumbered, ruled,vlined]{algorithm2e}
% \usepackage{natbib}
% \usepackage[hyperref=true,backend=bibtex8,sorting=none,backref=true]{biblatex}
\DeclareMathOperator*{\argmax}{argmax}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyhead[L]{\slshape \MakeUppercase{My Report}}
\fancyhead[R]{\slshape MY NAME}
\fancyfoot[C]{\thepage} % page number in the center at the footer
% \renewcommand{\headrulewidth}{0pt} % remove the horizotal line
\renewcommand{\footrulewidth}{0pt} % remove the footer line
\date{August 4, 2018}
% \parindent 0ex % no need for indent
% \setlength{\parindent}{4em} % indentation of paragraph
% \setlength{\parskip}{1em} % length between paragraphs
% \renewcommand{\baselinestretch}{1.5} % line spacing
\begin{document}
\begin{titlepage}
\begin{center}
\vspace*{1cm}
{\huge\textbf{My Group}} \\
% \Large{\textbf{My Report}} \\
\vfill
\line(1, 0){430}\\[1mm]
{\Large \textbf{TITLE 1}} \\[3mm]
{\Large\textbf{TITLE 2}}\\[1mm]
\line(1, 0){430}
\vfill
My NAME \\
ME@ME.com \\
http://ME.COM \\
%\today
\makeatletter
\@date
\makeatother
\end{center}
\end{titlepage}
\tableofcontents
\thispagestyle{empty}
\clearpage
\setcounter{page}{1} % set page number 1
\definecolor{bg}{rgb}{0.95,0.95,0.95}
\section{My Section}
HELLO HERE is My Section........
\end{document}
Best Answer
Adding
\usepackage[T1]{fontenc}
and\usepackage{lmodern}
solved the problem.Output:
Code:
You can also customize your date format with
\newdateformat{mydateformat}{\monthname~\THEYEAR}
. Command\mydateformat\today
.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Your second Question: Answer for table of content
You only need a section. Formatting pagecounter is optional.