LaTeX forum ⇒ Document ClassesDocument class for a laboratory report ? Topic is solved

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

Document class for a laboratory report ?

Postby Cham » Thu Apr 27, 2017 6:47 pm

I need to create a document that looks like a laboratory report, to show my students how to make such kind of documents, which are very easy to create using Word/Office or any wysiwyg text document processor.

The paper must have a front page, with a bold title at about 2/3 of the height of the page, with two names centered under the title. The names must be in a vertical list, not both on the same line.

There must be a date in the upper-right corner, and another name centered at the bottom of the title page.

The document is one side only, and has a margin of one inch all around (of course, the pages are 8.5" X 11").

The second page must have an introduction sub-title in bold, placed to the left, and a text paragraph under it. There is no table of contents, and the text is in a single column. The rest should be pretty standard.

The page number should be centered at the bottom or in the bottom-right corner.

How should I create this document in LaTeX ? What should be the best class ? Any suggestion ?

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

Postby Johannes_B » Thu Apr 27, 2017 8:22 pm

Best class might be article, or report.
The tilepage, can be designed easily, as well as the rest.

You are an experienced user, where exactly do you need help?

Right now, you are asking for different things and the answer is: Yes, you can do that with LaTeX.
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: 820
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Fri Apr 28, 2017 2:54 am

Well, I don't know how to make the title page, within the same code as the rest of the paper (article or report, say). :oops:

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

Postby Johannes_B » Fri Apr 28, 2017 7:33 am

Please have a look at Title creation on the wikibook (and the links to examples), as well as How to customize my titlepage.
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: 820
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Fri Apr 28, 2017 12:58 pm

I'm an "experienced" user only at doing maths, pictures and tables, not at creating new document types.

From the code below, the date doesn't appears at a proper location. It's currently too close to the first line of text and it should be higher (inside the title page header ?) :

  1. \documentclass[12pt,oneside]{report}
  2. \usepackage[total={6.5in,10in},left=1in,top=0.5in,includehead,includefoot]{geometry}
  3.  
  4. \begin{document}
  5.  
  6. \begin{titlepage}
  7. {\hfill \today \par} % Date to be fixed
  8. \centering
  9. {\scshape\large A line of text \par}
  10. \vspace{1in}
  11. {\scshape\large Another line of text \par}
  12. \vspace{1in}
  13. {\huge\bfseries Big title \par}
  14. \vspace{0.5in}
  15. {\large Name 1 \par}
  16. {\large Name 2 \par}
  17. \vfill
  18. {\large Some name}
  19. \end{titlepage}
  20.  
  21. \section{Title}
  22.  
  23. bla bla bla
  24.  
  25. \end{document}


Note : I'm unable to get an output from the overleaf and this code. I don't know why. The code is working great on my computer.

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

Postby Stefan Kottwitz » Fri Apr 28, 2017 5:21 pm

Hi Cham,

this code works on Overleaf. Just click the link above the code box here. I tried it.

Btw. the report class is for big reports. It's chapter based, that's why your section is 0.1 instead of 1, since it's in chapter 0 because you did not use a \chapter command. I guess the article class would be better for your case.

Stefan
Site admin

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

Postby Johannes_B » Fri Apr 28, 2017 5:50 pm

From just looking at your statements, i thought you would be looking for something like this.
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: 820
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Fri Apr 28, 2017 6:39 pm

Yes ! This is very similar to what I'm looking.

Here's the code for reference :

  1. \documentclass{article}
  2. \usepackage[letterpaper,margin=1in,
  3. %showframe
  4. ]{geometry}
  5. \usepackage{blindtext}
  6. \begin{document}
  7. \begin{titlepage}
  8. \hfill \today
  9.  
  10. \vspace{.2\textheight}
  11.  
  12. \begin{center}
  13. {\LARGE\bfseries Title of the report\par}
  14. \vspace{3cm}
  15. Carl Capybara \par
  16. Walter Wombat \par
  17. \end{center}
  18. \vfill\centering Philip Platypus \par
  19. \end{titlepage}
  20. \section{Equipment}
  21. \blindtext
  22. \end{document}


I think this is it ! Thanks a lot for the reference ! :)

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

Postby Cham » Fri Apr 28, 2017 7:02 pm

Oh sorry Stefan, I overlooked your comment. Yep, the article class appears to be a better fit for my specific need. Thanks !

About the overleaf, I'm experiencing a curious glitch on my browser, apparently. I'll check this later.


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 2 guests