LaTeX forum ⇒ Document ClassesMemo class in LaTeX Topic is solved

Information and discussion about specific document classes and how to create your own document classes.
User avatar
Cham
Posts: 826
Joined: Sat Apr 02, 2011 4:06 pm

Memo class in LaTeX

Postby 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) :
  1. \documentclass[a4paper,11pt]{texMemo}
  2. \usepackage[english]{babel}
  3. \usepackage{graphicx,blindtext}
  4. \memoto{Mr. Unknown}
  5. \memofrom{Tom}
  6. \memosubject{Some fancy subject}
  7. \memodate{\today}
  8. \logo{\includegraphics[width=0.3\textwidth]{example-grid-100x100pt}}
  9.  
  10. \begin{document}
  11.  
  12. \maketitle
  13.  
  14. \blindtext
  15.  
  16. \end{document}


Is this code actually compiling for you ? Is there any other memo style classes available?

User avatar
Johannes_B
Site Moderator
Posts: 3604
Joined: Thu Nov 01, 2012 4:08 pm

Postby 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.

User avatar
Cham
Posts: 826
Joined: Sat Apr 02, 2011 4:06 pm

Postby 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.

User avatar
Cham
Posts: 826
Joined: Sat Apr 02, 2011 4:06 pm

Postby 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 ?
  1. \RequirePackage[l2tabu,orthodox]{nag}
  2. \documentclass[11pt,letterpaper,twoside]{article}
  3. \usepackage[T1]{fontenc}
  4. \usepackage[utf8]{inputenc}
  5. \usepackage[total={6.5in,10in},left=1in,top=0.5in,includehead,includefoot]{geometry}
  6. \usepackage{graphicx}
  7. \raggedbottom
  8.  
  9. \usepackage{parskip} % Adds spacing between paragraphs
  10. \setlength{\parindent}{15pt} % Indent paragraphs
  11. \usepackage{lipsum}
  12.  
  13. \begin{document}
  14.  
  15. \title{\Large\textsc{Memorendum}}
  16.  
  17. \maketitle
  18.  
  19. To: % \memoto{Mr. Unknown}
  20. From: % \memofrom{Tom}
  21. Subject: % \memosubject{Some fancy subject}
  22. Date: % \memodate{\today}
  23. Logo: % \logo{\includegraphics[width=0.3\textwidth]{example-grid-100x100pt}}
  24.  
  25. \hrule
  26.  
  27. \lipsum[1-4]
  28.  
  29. \end{document}

User avatar
Cham
Posts: 826
Joined: Sat Apr 02, 2011 4:06 pm

Postby 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 :
  1. \RequirePackage[l2tabu,orthodox]{nag}
  2. \documentclass[11pt,letterpaper,twoside]{article}
  3. \usepackage[T1]{fontenc}
  4. \usepackage[utf8]{inputenc}
  5. \usepackage[total={6.5in,10in},left=1in,top=0.5in,includehead,includefoot]{geometry}
  6. \usepackage{graphicx}
  7. \raggedbottom % Is that really usefull ?
  8.  
  9. \usepackage{parskip} % Adds spacing between paragraphs
  10. \setlength{\parindent}{15pt} % Indent paragraphs
  11. \usepackage{lipsum}
  12.  
  13. \begin{document}
  14.  
  15. \noindent\includegraphics[height=0.5in]{example-grid-100x100pt} % Upper-left corner logo
  16.  
  17. \vfill % ?
  18.  
  19. \begin{center}
  20. \Large\textsc{Memorendum}
  21. \end{center}
  22.  
  23. \vfill % ?
  24.  
  25. \begin{flushleft}
  26. \textbf{\textsf{To :}} Mr. Unknown \par
  27. \textbf{\textsf{From :}} Tom \par
  28. \textbf{\textsf{Subject :}} Some fancy subject \par
  29. \textbf{\textsf{Date :}} \today
  30. \end{flushleft}
  31.  
  32. \vfill % Probably not right
  33.  
  34. \hrule
  35.  
  36. \vfill % Probably not right
  37.  
  38. \lipsum[1-4]
  39.  
  40. \end{document}

User avatar
Stefan Kottwitz
Site Admin
Posts: 8606
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby 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
Site admin

User avatar
Cham
Posts: 826
Joined: Sat Apr 02, 2011 4:06 pm

Postby 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.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8606
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby 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
Site admin


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 1 guest