Information and discussion about specific document classes and how to create your own document classes.
Cham
Posts: 937 Joined: Sat Apr 02, 2011 4:06 pm
Post
by Cham » Sun Dec 10, 2017 6:47 pm
I'm having a major compilation problem with this simple
memo MWE (emergency stop). I suspect that this class isn't in my version of
LaTeX
(TeXLive 2015) :
Code: Select all
\documentclass[a4paper,11pt]{texMemo}
\usepackage[english]{babel}
\usepackage{graphicx,blindtext}
\memoto{Mr. Unknown}
\memofrom{Tom}
\memosubject{Some fancy subject}
\memodate{\today}
\logo{\includegraphics[width=0.3\textwidth]{example-grid-100x100pt}}
\begin{document}
\maketitle
\blindtext
\end{document}
Is this code actually compiling for you ? Is there any other
memo style classes available?
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Sun Dec 10, 2017 7:18 pm
The class is not on CTAN and hence not distributed with TeX Live.
All i can say is
https://ctan.org/topic/memorandum
Concerning Tom's blog post: It is more than five years old and following the link gives me: Access denied.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Cham
Posts: 937 Joined: Sat Apr 02, 2011 4:06 pm
Post
by Cham » Sun Dec 10, 2017 7:24 pm
Ok, thanks Johannes.
While it's easy to adapt any default class to do a simple note or memo , it would be cool to have such a special class for short but great looking memos with style.
Cham
Posts: 937 Joined: Sat Apr 02, 2011 4:06 pm
Post
by Cham » Sun Dec 10, 2017 7:46 pm
Actually, it's not so easy to replicate the syle of the memos on this web page :
https://texblog.org/2012/03/07/writing-a-memo-in-latex/
Here's a MWE trying to reproduce that memo style. What would be the best way to make the proper titles, with logo in the upper-right ?
Code: Select all
\RequirePackage[l2tabu,orthodox]{nag}
\documentclass[11pt,letterpaper,twoside]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[total={6.5in,10in},left=1in,top=0.5in,includehead,includefoot]{geometry}
\usepackage{graphicx}
\raggedbottom
\usepackage{parskip} % Adds spacing between paragraphs
\setlength{\parindent}{15pt} % Indent paragraphs
\usepackage{lipsum}
\begin{document}
\title{\Large\textsc{Memorendum}}
\maketitle
To: % \memoto{Mr. Unknown}
From: % \memofrom{Tom}
Subject: % \memosubject{Some fancy subject}
Date: % \memodate{\today}
Logo: % \logo{\includegraphics[width=0.3\textwidth]{example-grid-100x100pt}}
\hrule
\lipsum[1-4]
\end{document}
Cham
Posts: 937 Joined: Sat Apr 02, 2011 4:06 pm
Post
by Cham » Sun Dec 10, 2017 8:06 pm
I've created this memo style code, but I don't think that the vertical spacings are right. Need suggestions on this :
Code: Select all
\RequirePackage[l2tabu,orthodox]{nag}
\documentclass[11pt,letterpaper,twoside]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[total={6.5in,10in},left=1in,top=0.5in,includehead,includefoot]{geometry}
\usepackage{graphicx}
\raggedbottom % Is that really usefull ?
\usepackage{parskip} % Adds spacing between paragraphs
\setlength{\parindent}{15pt} % Indent paragraphs
\usepackage{lipsum}
\begin{document}
\noindent\includegraphics[height=0.5in]{example-grid-100x100pt} % Upper-left corner logo
\vfill % ?
\begin{center}
\Large\textsc{Memorendum}
\end{center}
\vfill % ?
\begin{flushleft}
\textbf{\textsf{To :}} Mr. Unknown \par
\textbf{\textsf{From :}} Tom \par
\textbf{\textsf{Subject :}} Some fancy subject \par
\textbf{\textsf{Date :}} \today
\end{flushleft}
\vfill % Probably not right
\hrule
\vfill % Probably not right
\lipsum[1-4]
\end{document}
Stefan Kottwitz
Site Admin
Posts: 10290 Joined: Mon Mar 10, 2008 9:44 pm
Post
by Stefan Kottwitz » Sun Dec 10, 2017 8:16 pm
\raggedbottom
is ok since \flushbottom
makes sense only for balancing page heights for twoside documents. But it may be the default here, for article.
Both parskip
and \parindent
at the same time doesn't make sense to me. That's double emphasizing paragraph breaks. I would remove \parindent
or set it to zero. I don't like the indentation anyway, especially at the very beginning.
Stefan
LaTeX.org admin
Cham
Posts: 937 Joined: Sat Apr 02, 2011 4:06 pm
Post
by Cham » Sun Dec 10, 2017 8:25 pm
What about the vertical spacings around the rule ? I believe they should stay constant, above and under the rule.
Stefan Kottwitz
Site Admin
Posts: 10290 Joined: Mon Mar 10, 2008 9:44 pm
Post
by Stefan Kottwitz » Sun Dec 10, 2017 9:11 pm
Sure, I did not look this far. The \vfill
should be replaced by some fixed \vspace
, as you said, such as \vspace{\baselineskip}
.
Stefan
LaTeX.org admin