0% found this document useful (0 votes)
68 views

Tau Class Lab Report Template

Uploaded by

Ivanbg03gd
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views

Tau Class Lab Report Template

Uploaded by

Ivanbg03gd
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Example Template

Writing a lab report or academic article with tau LATEX class


Author Onea,1 , Author Twob,2 and Author Threeb,c,3
a
Affiliation of author one
b
Affiliation of author two
c
Affiliation of author three

Professor/Authority or other information

Abstract—Welcome to tau (𝜏) LATEX class designed especially for your lab By default, tau class shows the title on the left. However, you can 12
reports or academic articles. In this example template, we will guide you change \raggedright to \centering in \titlepos to move the title 13
through the process of using and customizing this class to your needs. For
to the center or, modify it to your own preferences. 14
more information of this class check out the appendix section. There, you will
find codes that define key aspects of the template, allowing you to explore In addition to the \title command, a new command named 15

and modify them. \journalname has been added to include more information. 16

If you do not need this command, you can undefined it and the 17
Keywords—LATEX class, lab report, academic article, tau class content will be adjusted automatically. 18

Contents 3. Abstract 19

The abstract and keywords are defined using the \keywords and 20
1 Introduction 1 \begin{abstract}␣\end{abstract} commands respectively. For 21

2 Title 1 the abstract to appear, make sure the \tauabstract command is 22

always included after the beginning of the document. 23


3 Abstract 1 If the keywords are not declared in the preamble, the content will 24

4 Document style options 1 be adjusted automatically. 25

4.1 Tau start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1


4. Document style options 26
4.2 Line numbering . . . . . . . . . . . . . . . . . . . . . . . . . . 1
4.3 Table of contents . . . . . . . . . . . . . . . . . . . . . . . . . 1 4.1. Tau start 27

5 Figures and tables 1 We included the \taustart{} command, which provides a person- 28

alized lettrine for the beginning of a paragraph. 29


5.1 Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
5.2 Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4.2. Line numbering 30

6 Tau packages 2 By implementing the lineno package, the line numbering of the doc- 31

ument can be placed with the command \linenumbers. 32


6.1 Tauenvs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 I recommend placing the command after the abstract and table of 33

6.2 Taubabel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 contents for a better appearance (comment or delete if not required). 34

7 Equation 2
4.3. Table of contents 35
8 Adding codes 2 The tau class provides a customized design for the table of contents. 36

9 References 3 Each level of the ToC provides a preview of the content and its location 37

in the document. 38
10 Appendix 3
10.1 Alternative title . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5. Figures and tables 39

10.2 Info environment . . . . . . . . . . . . . . . . . . . . . . . . . 3


5.1. Figures 40
10.3 Equation skip value . . . . . . . . . . . . . . . . . . . . . . . . 3
Fig. 1 shows an example figure. 41
10.4 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

11 Contact me 3
12 Supporting 3
References 3
4
1 1. Introduction 2
2

4
W elcome to tau class for preparing your lab reports or academic
articles. Throughout this guide, we will show you how to use
this template and how to make modifications to this class.
0
−2
2
5 This class includes the following files placed in the ‘tau-class’ folder: −4
6 tau.cls, tauenvs.sty, taubabel.sty and README.md. Also, a main.tex, −2 0
tau.bib and some examples. −1
7
0
1
2 −2
8 2. Title Figure 1. Example figure obtained from PGFPlots [1].
9 The \maketitle command generates the title and author informa-
10 tion section, including the professor name and affiliations. The title Fig. 2 shows an example of two figures that covers the width of 42

11 can be modified in tau-class/tau.cls/title style section. the page. It can be placed at the top or bottom of the page. The space 43

Creative Commons CC BY 4.0 College name July 26, 2024 LATEX Template 1–3
Writing a lab report or academic article with tau LATEX class

10−1 Case 1 10−1 d=2


Case 2 d=3
d=4
10−2 10−2
d=5
d=6

L2 Error
10−3 10−3
Error

10−4 10−4

10−5 10−5

101 102 103 104 105 101 102 103 104 105 106
Cost Degrees of freedom
(a) Example left figure. (b) Example right figure.

Figure 2. Example figure that covers the width of the page obtained from PGFPlots [1].

44 between the figures can also be changed using the \hspace{Xpt} 7. Equation 71

45 command.
Equation 1, shows the Schrödinger equation as an example. 72

2
46 5.2. Tables ℏ 2 𝜕Ψ
∇ Ψ + 𝑉(𝐫)Ψ = −𝑖ℏ (1)
47 Table 1 shows an example table. The \tabletext{} is used to add 2𝑚 𝜕𝑡
48 notes to tables easily. The amssymb package was not necessary to include, because stix2 73

font incorporates mathematical symbols for writing quality equations. 74

In case you choose another font, uncomment this package in tau- 75


Table 1. Small example table. class/tau.cls/math packages. 76

Column 1 Column 2 If you want to change the values that adjust the spacing above and 77

below the equations, play with \setlength{\eqskip}{8pt} value 78


Data 1 Data 2
until the preferred spacing is set. 79
Data 3 Data 4
Note: I’m a table text for additional information.
8. Adding codes 80

1
This class includes the listings package, which offers customized 81
49 6. Tau packages features for adding codes in LATEX documents specifically for C, C++, 82

50 6.1. Tauenvs LATEX and Matlab. 83

You can customize the format in tau-class/tau.cls/listings style. 84


51 This template has its own environment package tauenvs.sty designed
52 to enhance the presentation of the document. Among these custom
1 function f i b o n a c c i _ s e q u e n c e ( num_terms )
53 environments are tauenv, info and note.
2 % Initialize the first two terms of the
54 There are two environments which have a predefined title. These sequence
55 can be included by the command \begin{note} and \begin{info}. 3 fib_sequence = [0 , 1];
56 All the environments have the same style. 4

57 An example using the tau environment is shown below. 5 if num_terms < 1


6 disp ( ’ Number of terms should be greater
than or equal to 1. ’) ;
7 return ;
Environment with custom title
8 elseif num_terms == 1
This is an example of the custom title environment. To add a 9 fprintf ( ’ Fibonacci Sequence :\ n % d \ n ’ ,
title type [frametitle=Your title] next to the beginning of fib_sequence (1) ) ;
10 return ;
the environment (as shown in this example). 11 elseif num_terms == 2
12 fprintf ( ’ Fibonacci Sequence :\ n % d \ n % d \ n ’ ,
fib_sequence (1) , fib_sequence (2) ) ;
58 Tauenv is the only environment that you can customize its title. On 13 return ;
59 the other hand, info and note adapt their title to Spanish automatically 14 end
60 when this language package is defined. 15
16 % Calculate and display the Fibonacci
sequence
61 6.2. Taubabel 17 for i = 3: num_terms
62 In this new version, we have included a package called taubabel, 18 fib_sequence ( i ) = fib_sequence (i -1) +
63 which have all the commands that automatically translate from En- fib_sequence (i -2) ;
19 end
64 glish to Spanish when this language package is defined. 20
65 By default, tau displays its content in English. However, at the 21 fprintf ( ’ Fibonacci Sequence :\ n ’) ;
66 beginning of the document you will find a recommendation when 22 disp ( fib_sequence ) ;
67 writing in Spanish. 23 end
68 Note: You may modify this package if you want to use other lan- Code 1. Example of Matlab code.
69 guage than English or Spanish. This will make easier to translate the
70 document without having to modify the class document. 1
Hello there! I am a footnote :)

2 Creative Commons CC BY 4.0 Author last name et al.


Writing a lab report or academic article with tau LATEX class

85 If line numbering is defined at the beginning of the document, I 11. Contact me 111

86 recommend placing the command \nolinenumbers at the start and


You can contact me through these methods. 112
87 \linenumbers at the end of the code.
113
88 This will temporarily remove line numbering and the code will
° https://memonotess1.wixsite.com/memonotess 114
look better as shown in Code 1.
# [email protected]
89
115

Ð memo.notess 116

90 9. References
91 The default formatting for references follows the IEEE style. You 12. Supporting 117

92 can modify the style of your references, for that, go to tau- Did you like this class document? Check out our new project the rho 118
93 class/tau.cls/biblatex. See appendix for more information. class, made for complex articles and reports. 119

94 10. Appendix Any contributions are welcome! 120

Coffee keeps me awake and helps me create better LATEX templates. If 121
95 10.1. Alternative title you wish to support my work, you can do so through PayPal: 122

96 You can make the following modification in tau-class/tau.cls/title https://www.paypal.me/GuillermoJimeenez. 123

97 preferences section to change the position of the title.


Enjoy writing with tau LATEX class ­ 124

1 \ newcommand {\ titlepos }{\ centering }

Code 2. Alternative title. References 125

[1] PGFPlots - A LaTeX package to create plots. [Online]. Available: 126


98 This will move the title to the center.
https://pgfplots.sourceforge.net/. 127

99 10.2. Info environment


100 An example of the info environment declared in the ‘tauenvs.sty’
101 package is shown below. Remember that info and note are the only
102 packages that translate their title (English or Spanish).

Information
Small example of info environment.

103 10.3. Equation skip value


104 With the \eqskip command you can change the spacing for equa-
105 tions. The default eqskip value is 8pt.

1 \ newlength {\ eqskip }\ setlength {\ eqskip }{8 pt }


2 \ expandafter \ def \ expandafter \ normalsize \
expandafter { %
3 \ normalsize %
4 \ setlength \ a b o v e d i s p l a y s k i p {\ eqskip } %
5 \ setlength \ b e l o w d i s p l a y s k i p {\ eqskip } %
6 \ setlength \ a b o v e d i s p l a y s h o r t s k i p {\ eqskip -\
baselineskip } %
7 \ setlength \ b e l o w d i s p l a y s h o r t s k i p {\ eqskip } %
8 }

Code 3. Equation skip code.

106 10.4. References


107 In case you require another reference style, you can go to tau-
108 class/tau.cls/biblatex and modify the following.

1 \ Re quirePack age [
2 backend = biber ,
3 style = ieee ,
4 sorting = ynt
5 ]{ biblatex }

Code 4. References style.

109 By default, tau class has its own .bib for this example, if you want
110 to name your own bib file, change the addbibresource.

1 \ ad dbibresou rce { tau . bib }

Author last name et al. Creative Commons CC BY 4.0 3

You might also like