Download the contents of this package in one zip archive (83.5k).
Maybe you are interested in the following packages as well.
LaTeX is a “document preparation system.” It’s used to create presentable documents. More specifically, LaTeX is a “What You See Is What You Mean” interface; instead of focusing on how the content should look when everything’s done, you declare what you intend for the final document to contain, and these annotations are compiled into a final version. For comparison, Microsoft Word and other word processors are dubbed “What You See Is What You Get” (WYSIWYG, pronounced “whizy-whig”), because what’s displayed on the screen is how the document actually looks.
LaTeX works with plain text files (generally ending in .tex ). You format your document with a special syntax, then use either a command line tool (like pdflatex ) or a graphical interface (like TeXShop or ShareLaTeX) to compile the plain text into a PDF or some other graphical format.
People enjoy LaTeX for a number of reasons. First, LaTeX is particularly useful for typesetting mathematical equations, as we’ll see. It’s also easy to focus on just writing the content. Instead of fiddling with fonts and changing the appearance of the document, you can focus on its content. One final reason is that because LaTeX is plain text, you can use your favorite text editor (i.e. Vim) to edit content written in LaTeX.
Most computer science classes which posses some aspect of theory to them as well as many upper-level math classes expect their documents to be submitted as PDFs in LaTeX. Moreover, writing in LaTeX is very common practice for submitting papers in academia and industry.
As it turns out, most LaTeX documents are pretty similar in nature. Using a template for the repetitive parts of LaTeX is pretty common. Below is a list of some LaTeX templates that you might like to use for typesetting homework assignments. There are also a number of sites online which have collections of free LaTeX templates.
No Search Results
This introductory tutorial does not assume any prior experience of L a T e X but, hopefully, by the time you are finished, you will not only have written your first L a T e X document but also acquired sufficient knowledge and confidence to take the next steps toward L a T e X proficiency.
L a T e X (pronounced “ LAY -tek” or “ LAH -tek”) is a tool for typesetting professional-looking documents. However, LaTeX’s mode of operation is quite different to many other document-production applications you may have used, such as Microsoft Word or LibreOffice Writer: those “ WYSIWYG ” tools provide users with an interactive page into which they type and edit their text and apply various forms of styling. LaTeX works very differently: instead, your document is a plain text file interspersed with LaTeX commands used to express the desired (typeset) results. To produce a visible, typeset document, your LaTeX file is processed by a piece of software called a TeX engine which uses the commands embedded in your text file to guide and control the typesetting process, converting the LaTeX commands and document text into a professionally typeset PDF file. This means you only need to focus on the content of your document and the computer, via LaTeX commands and the TeX engine, will take care of the visual appearance (formatting).
Various arguments can be proposed for, or against, learning to use L a T e X instead of other document-authoring applications; but, ultimately, it is a personal choice based on preferences, affinities, and documentation requirements.
Arguments in favour of L a T e X include:
Overall, L a T e X provides users with a great deal of control over the production of documents which are typeset to extremely high standards. Of course, there are types of documents or publications where L a T e X doesn’t shine, including many “free form” page designs typically found in magazine-type publications.
One important benefit of L a T e X is the separation of document content from document style: once you have written the content of your document, its appearance can be changed with ease. Similarly, you can create a L a T e X file which defines the layout/style of a particular document type and that file can be used as a template to standardise authorship/production of additional documents of that type; for example, this allows scientific publishers to create article templates, in L a T e X , which authors use to write papers for submission to journals. Overleaf has a gallery containing thousands of templates , covering an enormous range of document types—everything from scientific articles, reports and books to CVs and presentations. Because these templates define the layout and style of the document, authors need only to open them in Overleaf—creating a new project—and commence writing to add their content.
The first step is to create a new L a T e X project. You can do this on your own computer by creating a new .tex file; alternatively, you can start a new project in Overleaf .
Let’s start with the simplest working example, which can be opened directly in Overleaf:
Open this example in Overleaf.
This example produces the following output:
You can see that L a T e X has automatically indented the first line of the paragraph, taking care of that formatting for you. Let’s have a closer look at what each part of our code does.
The first line of code, \documentclass{article} , declares the document type known as its class , which controls the overall appearance of the document. Different types of documents require different classes; i.e., a CV/resume will require a different class than a scientific paper which might use the standard L a T e X article class. Other types of documents you may be working on may require different classes such as book or report . To get some idea of the many L a T e X class types available, visit the relevant page on CTAN (Comprehensive TeX Archive Network) .
Having set the document class, our content, known as the body of the document, is written between the \begin{document} and \end{document} tags. After opening the example above, you can make changes to the text and, when finished, view the resulting typeset PDF by recompiling the document . To do this in Overleaf, simply hit Recompile , as demonstrated in this brief video clip:
Any Overleaf project can be configured to recompile automatically each time it is edited: click the small arrow next to the Recompile button and set Auto Compile to On , as shown in the following screengrab:
Having seen how to add content to our document, the next step is to give it a title. To do this, we must talk briefly about the preamble .
The screengrab above shows Overleaf storing a L a T e X document as a file called main.tex : the .tex file extension is, by convention, used when naming files containing your document’s LaTeX code.
The previous example showed how document content was entered after the \begin{document} command; however, everything in your .tex file appearing before that point is called the preamble , which acts as the document’s “setup” section. Within the preamble you define the document class (type) together with specifics such as languages to be used when writing the document; loading packages you would like to use (more on this later ), and it is where you’d apply other types of configuration.
A minimal document preamble might look like this:
where \documentclass[12pt, letterpaper]{article} defines the overall class (type) of document. Additional parameters, which must be separated by commas, are included in square brackets ( [...] ) and used to configure this instance of the article class; i.e., settings we wish to use for this particular article -class-based document.
In this example, the two parameters do the following:
Of course other font sizes, 9pt , 11pt , 12pt , can be used, but if none is specified, the default size is 10pt . As for the paper size, other possible values are a4paper and legalpaper . For further information see the article about page size and margins .
The preamble line
is an example of loading an external package (here, graphicx ) to extend L a T e X ’s capabilities, enabling it to import external graphics files. L a T e X packages are discussed in the section Finding and using L a T e X packages .
Adding a title, author and date to our document requires three more lines in the preamble ( not the main body of the document). Those lines are:
With these lines added, your preamble should look something like this:
To typeset the title, author and date use the \maketitle command within the body of the document:
The preamble and body can now be combined to produce a complete document which can be opened in Overleaf:
LaTeX is a form of “program code”, but one which specializes in document typesetting; consequently, as with code written in any other programming language, it can be very useful to include comments within your document. A L a T e X comment is a section of text that will not be typeset or affect the document in any way—often used to add “to do” notes; include explanatory notes; provide in-line explanations of tricky macros or comment-out lines/sections of LaTeX code when debugging.
To make a comment in L a T e X , simply write a % symbol at the beginning of the line, as shown in the following code which uses the example above:
This example produces output that is identical to the previous LaTeX code which did not contain the comment.
Next, we will now look at some text formatting commands:
The next example demonstrates these commands:
Another very useful command is \emph{ argument } , whose effect on its argument depends on the context. Inside normal text, the emphasized text is italicized, but this behaviour is reversed if used inside an italicized text—see the next example:
Open this \emph example in Overleaf.
In this section we will look at how to add images to a L a T e X document. Overleaf supports three ways to insert images:
Options 1 and 2 automatically generate the LaTeX code required to insert images, but here we introduce option 3—note that you will need to upload those images to your Overleaf project. The following example demonstrates how to include a picture:
Open this image example in Overleaf.
Importing graphics into a L a T e X document needs an add-on package which provides the commands and features required to include external graphics files. The above example loads the graphicx package which, among many other commands, provides \includegraphics{...} to import graphics and \graphicspath{...} to advise L a T e X where the graphics are located.
To use the graphicx package, include the following line in your Overleaf document preamble:
In our example the command \graphicspath{{images/}} informs L a T e X that images are kept in a folder named images , which is contained in the current directory:
The \includegraphics{universe} command does the actual work of inserting the image in the document. Here, universe is the name of the image file but without its extension.
More information on L a T e X packages can be found at the end of this tutorial in the section Finding and using LaTeX packages .
Images can be captioned, labelled and referenced by means of the figure environment, as shown below:
There are several noteworthy commands in the example:
Images incorporated in a L a T e X document should be placed inside a figure environment, or similar, so that L a T e X can automatically position the image at a suitable location in your document.
Further guidance is contained in the following Overleaf help articles:
You can create different types of list using environments , which are used to encapsulate the L a T e X code required to implement a specific typesetting feature. An environment starts with \begin{ environment-name } and ends with \end{ environment-name } where environment-name might be figure , tabular or one of the list types: itemize for unordered lists or enumerate for ordered lists.
Unordered lists are produced by the itemize environment. Each list entry must be preceded by the \item command, as shown below:
You can also open this larger Overleaf project which demonstrates various types of L a T e X list.
Ordered lists use the same syntax as unordered lists but are created using the enumerate environment:
As with unordered lists, each entry must be preceded by the \item command which, here, automatically generates the numeric ordered-list label value, starting at 1.
For further information you can open this larger Overleaf project which demonstrates various types of L a T e X list or visit our dedicated help article on L a T e X lists , which provides many more examples and shows how to create customized lists.
One of the main advantages of L a T e X is the ease with which mathematical expressions can be written. L a T e X provides two writing modes for typesetting mathematics:
Let’s see an example of inline math mode:
To typeset inline-mode math you can use one of these delimiter pairs: \( ... \) , $ ... $ or \begin{math} ... \end{math} , as demonstrated in the following example:
Equations typeset in display mode can be numbered or unnumbered, as in the following example:
To typeset display-mode math you can use one of these delimiter pairs: \[ ... \] , \begin{displaymath} ... \end{displaymath} or \begin{equation} ... \end{equation} . Historically, typesetting display-mode math required use of $$ characters delimiters, as in $$ ... display math here ... $$ , but this method is no longer recommended : use LaTeX’s delimiters \[ ... \] instead.
The following examples demonstrate a range of mathematical content typeset using LaTeX.
The next example uses the equation* environment which is provided by the amsmath package, so we need to add the following line to our document preamble:
For further information on using amsmath see our help article .
The possibilities with math in L a T e X are endless so be sure to visit our help pages for advice and examples on specific topics:
Next, we explore abstracts and how to partition a L a T e X document into different chapters, sections and paragraphs.
Scientific articles usually provide an abstract which is a brief overview/summary of their core topics, or arguments. The next example demonstrates typesetting an abstract using L a T e X ’s abstract environment:
With the abstract in place, we can begin writing our first paragraph. The next example demonstrates:
The third paragraph in this example demonstrates use of the commands \\ and \newline :
Note how L a T e X automatically indents paragraphs—except immediately after document headings such as section and subsection— as we will see .
New users are advised that multiple \\ or \newline s should not used to “simulate” paragraphs with larger spacing between them because this can interfere with L a T e X ’s typesetting algorithms. The recommended method is to continue using blank lines for creating new paragraphs, without any \\ , and load the parskip package by adding \usepackage{parskip} to the preamble.
Further information on paragraphs can be found in the following articles:
Longer documents, irrespective of authoring software, are usually partitioned into parts, chapters, sections, subsections and so forth. LaTeX also provides document-structuring commands but the available commands, and their implementations (what they do), can depend on the document class being used. By way of example, documents created using the book class can be split into parts, chapters, sections, subsections and so forth but the letter class does not provide (support) any commands to do that.
This next example demonstrates commands used to structure a document based on the book class:
The names of sectioning commands are mostly self-explanatory; for example, \chapter{First Chapter} creates a new chapter titled First Chapter , \section{Introduction} produces a section titled Introduction , and so forth. Sections can be further divided into \subsection{...} and even \subsubsection{...} . The numbering of sections, subsections etc. is automatic but can be disabled by using the so-called starred version of the appropriate command which has an asterisk (*) at the end, such as \section*{...} and \subsection*{...} .
Collectively , LaTeX document classes provide the following sectioning commands, with specific classes each supporting a relevant subset:
In particular, the \part and \chapter commands are only available in the report and book document classes.
Visit the Overleaf article article about sections and chapters for further information about document-structure commands.
The following examples show how to create tables in LaTeX, including the addition of lines (rules) and captions.
We start with an example showing how to typeset a basic table:
The tabular environment is the default L a T e X method to create tables. You must specify a parameter to this environment, in this case {c c c} which advises L a T e X that there will be three columns and the text inside each one must be centred. You can also use r to right-align the text and l to left-align it. The alignment symbol & is used to demarcate individual table cells within a table row. To end a table row use the new line command \\ . Our table is contained within a center environment to make it centred within the text width of the page.
The tabular environment supports horizontal and vertical lines (rules) as part of the table:
In this example the argument is {|c|c|c|} which declares three (centred) columns each separated by a vertical line (rule); in addition, we use \hline to place a horizontal rule above the first row and below the final row:
Here is a further example:
You can caption and reference tables in much the same way as images. The only difference is that instead of the figure environment, you use the table environment.
Creating a table of contents is straightforward because the command \tableofcontents does almost all the work for you:
Sections, subsections and chapters are automatically included in the table of contents. To manually add entries, such as an unnumbered section, use the command \addcontentsline as shown in the example.
The following brief video clip shows how to download your project’s source code or the typeset PDF file:
More information can be found in the Overleaf help article Exporting your work from Overleaf .
L a T e X not only delivers significant typesetting capabilities but also provides a framework for extensibility through the use of add-on packages . Rather than attempting to provide commands and features that “try to do everything”, L a T e X is designed to be extensible , allowing users to load external bodies of code (packages) that provide more specialist typesetting capabilities or extend L a T e X ’s built-in features—such as typesetting tables. As observed in the section Adding images , the graphicx package extends L a T e X by providing commands to import graphics files and was loaded (in the preamble) by writing
As noted above, packages are loaded in the document preamble via the \usepackage command but because (many) L a T e X packages provide a set of options , which can be used to configure their behaviour, the \usepackage command often looks like this:
The square brackets “ [...] ” inform L a T e X which set of options should be applied when it loads somepackage . Within the set of options requested by the user, individual options, or settings, are typically separated by a comma; for example, the geometry package provides many options to configure page layout in L a T e X , so a typical use of geometry might look like this:
The geometry package is one example of a package written and contributed by members of the global L a T e X community and made available, for free, to anyone who wants to use it.
If a L a T e X package does not provide any options, or the user wants to use the default values of a package’s options, it would be loaded like this:
When you write \usepackage[...]{somepackage} L a T e X looks for a corresponding file called somepackage .sty , which it needs to load and process—to make the package commands available and execute any other code provided by that package. If L a T e X cannot find somepackage .sty it will terminate with an error, as demonstrated in the following Overleaf example:
Open this error-generating example on Overleaf
Packages are distributed through the Comprehensive TeX Archive Network , usually referred to as CTAN, which, at the time of writing, hosts 6287 packages from 2881 contributors. CTAN describes itself as
... a set of Internet sites around the world that offer TEX-related material for download.
You can browse CTAN to look for useful packages; for example:
You can also use the search facility (at the top of the page).
Once per year a (large) subset of packages hosted on CTAN, plus L a T e X -related fonts and other software, is collated and distributed as a system called TeX Live , which can be used to install your own (local) LaTeX setup. In fact, Overleaf’s servers also use TeX Live and are updated when a new version of TeX Live is released. Overleaf’s TeX Live updates are not immediate but take place a few months post-release, giving us time to perform compatibility tests of the new TeX Live version with the thousands of templates contained in our gallery . For example, here is our TeX Live 2022 upgrade announcement .
Although TeX Live contains a (large) subset of CTAN packages it is possible to find an interesting package, such as igo for typesetting Go diagrams , which is hosted on CTAN but not included in (distributed by) TeX Live and thus unavailable on Overleaf. Some packages hosted on CTAN are not part of TeX Live due to a variety of reasons: perhaps a package is obsolete, has licensing problems, is extremely new (recently uploaded) or has platform dependencies, such as working on Windows but not Linux.
New packages, and updates to existing ones, are uploaded to CTAN all year round but updates to TeX Live are distributed annually; consequently, packages contained in the current version of TeX Live will not be as up-to-date as those hosted on CTAN. Because Overleaf’s servers use TeX Live it is possible that packages installed on our servers—i.e., ones available to our users—might not be the very latest versions available on CTAN but, generally, this is unlikely to be problematic.
Have you checked our knowledge base ?
Message sent! Our team will review it and reply by email.
Email:
Computer Science & Engineering University of Washington Box 352350 Seattle, WA 98195-2350 (206) 543-1695 voice, (206) 543-2969 FAX
Comments to tompa
UW Privacy Policy and UW Site Use Agreement
Assignments, also known as homework, are usually given to school or university students to reinforce their knowledge of a subject and aid in learning. They are typically structured in question and answer form to be completed by the student consecutively.
This template is for formatting assignments or homework in a clear and simple way. The title section at the top of the first page clearly displays the assignment, student and class information. This information also appears in the headers and footers of subsequent pages. Questions in the assignment are clearly demarcated and appear inside boxes to focus attention. The template features examples of including images, tables, equations and code listings for covering virtually all common assignment information. Multi-part questions and answers are shown for more complex questions.
This template can be used by teachers or students for school or university assignments. It contains a clear title section at the start to specify the assignment class, title, date and teacher/student name. The template supports up to 4 levels of sections to structure the assignment into sections, questions, subquestions and bonus content. Examples of common assignment content are included: figure, equations, lists, table, code and paragraphs of text.
This template is for teachers/instructors/educators to create assignments/homework for their students. It includes a clear title on the first page for the course, assignment and teacher’s name, as well as the institution and date. Sets of questions can be grouped by headings and the template includes examples of unnumbered and numbered sections, and numbered subsections (for longer assignments). Amongst the description text for each question, examples are provided for virtually any subject matter, including: equations, algorithms, code and command line outputs.
This template comes in two versions, one for teachers/instructors/educators to create assignments/homework for their students to fill out by hand, and another for students proficient in LaTeX to answer questions posed to them at school or university/college. Both versions contain simple environments for each question and subquestion within, and allow answer boxes to be created with either an answer or blank for space to write an answer. Sets of questions can be grouped by headings and the template includes examples of including an image, table, equation and code within questions.
General enquiries [email protected]
Most templates licensed under CC BY-NC-SA 4.0
LaTeX Templates is developed in New Zealand
© Creodocs Limited. All Rights Reserved.
Instantly share code, notes, and snippets.
\NeedsTeXFormat{LaTeX2e}[1994/06/01] | |
\ProvidesClass{homework}[2009/05/15 v0.0.1 Document class for typesetting homework] | |
\LoadClass[12pt,letterpaper,answers]{exam} | |
\RequirePackage{xspace} | |
\newcommand{\course}[1]{\def\@course{#1\xspace}} | |
\newcommand{\problemlist}[1]{\begin{center}\large #1 \end{center}} | |
\makeatletter | |
\renewcommand{\maketitle}{ | |
\newpage | |
\null | |
\firstpageheader{}{}{} | |
\runningheader{\@author}{\@course \@title}{\@date} | |
\begin{flushright} | |
\bf\large \@author \\ \@course \\ \@title \\ \@date | |
\end{flushright} | |
} \makeatother | |
\RequirePackage[margin=1in]{geometry} | |
\RequirePackage{amsmath} | |
\RequirePackage{amssymb} | |
\RequirePackage{amsthm} | |
\RequirePackage[usenames,dvipsnames]{color} | |
\RequirePackage{todonotes} | |
\RequirePackage{graphicx} | |
\RequirePackage{url} | |
\RequirePackage{listings} | |
\RequirePackage{tikz} | |
\usetikzlibrary{arrows,snakes,patterns} | |
\RequirePackage{siunitx} | |
%\newunit{\inch}{in} | |
%\newunit{\cycles}{cycles} | |
\sisetup{load=accepted,repeatunits=false} | |
\RequirePackage[version=3]{mhchem} | |
\RequirePackage{hyperref} | |
% LaTeX settings for MATLAB code listings | |
% based on Ted Pavlic's settings in http://links.tedpavlic.com/ascii/homework_new_tex.ascii | |
% This is the color used for MATLAB comments below | |
\definecolor{MyDarkGreen}{rgb}{0.0,0.4,0.0} | |
% For faster processing, load Matlab syntax for listings | |
\lstloadlanguages{Matlab}% | |
\lstset{language=Matlab, % Use MATLAB | |
frame=single, % Single frame around code | |
basicstyle=\small\ttfamily, % Use small true type font | |
keywordstyle=[1]\color{Blue}\bfseries, % MATLAB functions bold and blue | |
keywordstyle=[2]\color{Purple}, % MATLAB function arguments purple | |
keywordstyle=[3]\color{Blue}\underbar, % User functions underlined and blue | |
identifierstyle=, % Nothing special about identifiers | |
% Comments small dark green courier | |
commentstyle=\usefont{T1}{pcr}{m}{sl}\color{MyDarkGreen}\small, | |
stringstyle=\color{Purple}, % Strings are purple | |
showstringspaces=false, % Don't put marks in string spaces | |
tabsize=5, % 5 spaces per tab | |
% | |
%%% Put standard MATLAB functions not included in the default | |
%%% language here | |
morekeywords={xlim,ylim,var,alpha,factorial,importdata,poissrnd,normpdf,normcdf,strcat}, | |
% | |
%%% Put MATLAB function parameters here | |
morekeywords=[2]{on, off, interp}, | |
% | |
%%% Put user defined functions here | |
morekeywords=[3]{FindESS, homework_example}, | |
% | |
morecomment=[l][\color{Blue}]{...}, % Line continuation (...) like blue comment | |
numbers=left, % Line numbers on left | |
firstnumber=1, % Line numbers start with line 1 | |
numberstyle=\tiny\color{Blue}, % Line numbers are blue | |
stepnumber=5 % Line numbers go in steps of 5 | |
} | |
% Includes a MATLAB script. | |
% The first parameter is the label, which also is the name of the script | |
% without the .m. | |
% The second parameter is the optional caption. | |
\newcommand{\matlabscript}[2] | |
{\begin{itemize}\item[]\lstinputlisting[caption=#2,label=#1]{#1.m}\end{itemize}} | |
\newcommand{\real}{\operatorname{real}} | |
\newcommand{\imag}{\operatorname{imag}} | |
\newcommand{\abs}[1]{\ensuremath{\left\lvert #1 \right\rvert}} | |
\newcommand{\Arg}{\operatorname{Arg}} | |
\newcommand{\Log}{\operatorname{Log}} | |
\newcommand{\Res}{\operatornamewithlimits{Res}} | |
\renewcommand{\vec}[1]{\ensuremath{\textbf{#1}}} | |
\newcommand{\sumover}[1]{\ensuremath{\sum_{#1=-\infty}^\infty}} | |
\theoremstyle{definition} | |
\newtheorem*{claim}{Claim} | |
\newtheorem*{theorem}{Theorem} | |
\newcommand{\sech}{\operatorname{sech}} | |
\newcommand{\rect}{\operatorname{rect}} | |
\newcommand{\sinc}{\operatorname{sinc}} | |
\newcommand{\jinc}{\operatorname{jinc}} | |
\newcommand{\MATLAB}{{\scshape Matlab}} | |
\renewcommand{\qedsymbol}{$\blacksquare$} | |
\newcommand{\figbox}{\framebox[3in]{\rule{0pt}{2in}}} | |
\renewcommand{\theenumi}{\alph{enumi}} |
\documentclass{homework} | |
\begin{document} | |
\author{John Doe} | |
\course{Popular Culture 101} | |
\title{Homework \#1} | |
\maketitle | |
\begin{questions} | |
\question | |
What is the answer to the ultimate question of life, the universe, and everything? | |
\begin{solution} | |
42 | |
\end{solution} | |
\newpage | |
\question | |
What is the airspeed velocity of an unladen swallow | |
\begin{solution} | |
African or European swallow? | |
\end{solution} | |
\end{questions} | |
\end{document} |
LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication and publication of scientific documents. LaTeX is available as free software .
You don't have to pay for using LaTeX, i.e., there are no license fees, etc. But you are, of course, invited to support the maintenance and development efforts through a donation to the TeX Users Group (choose LaTeX Project contribution) if you are satisfied with LaTeX.
You can also sponsor the work of LaTeX team members through the GitHub sponsor program at the moment for Frank , David and Joseph . Your contribution goes without any reductions by GitHub to the developers in support of the project.
The volunteer efforts that provide you with LaTeX need financial support, so thanks for any contribution you are willing to make.
The latex3 project, latex books.
List of books on LaTeX in English, French, German, and Spanish.
The official LaTeX help and documentation section.
Learn more about the people behind the LaTeX project.
Why you should write your thesis in LaTeX? Start here and give it a try!
What is LaTeX, and why should you use it to write your thesis? LaTeX is a typesetting system widely used in academia, particularly for technical and scientific documents, which offers a series of advantages over traditional word processors:
With that said, where should you start when trying to learn LaTeX? In my opinion, the easiest way is to use an online editor like Overleaf , which does not require you to install anything and allows for real-time collaboration for free. This has its limitations (it’s slow at compiling, and the free plan also has a compilation time limit), but it’s a great starting point. Pair this with the hundreds of templates already available on this and other websites, and you will be writing documents in no time.
In this article, I will explain how to use my particular template, which can be found here, but you can try to follow along with similar templates. One I highly suggest taking a look at once you grasp LaTeX basics is Classic Thesis by André Miede.
Once you downloaded the zip and opened it with your preferred editor (on Overleaf, you can start a new project by simply uploading the zip file), you will see the following file structure:
Once you understand how this structure works, you can easily add and remove things. First, let’s change the Title Page! To do so, all you have to do is open the config.tex file: here, you can insert your university name, department, course, title, supervisors’ name, academic year, and your name and matriculation number.
This template uses custom fonts! You will have to change the compiler from pdfLaTeX to either XeLaTeX or LuaLaTeX!
To do so in overleaf, click the Menu button in the top left corner. You will find the compiler option in the Settings section.
If you are using VSCode with LaTeX Workshop, I have included the appropriate flag at the start of the document (%!TEX program = lualatex). All you have to do is enabling magic comments by changing the setting forceRecipeUsage to false.
As you can see, I added a dedication page. You can choose to remove it by removing or commenting the following lines in the main.tex file:
To modify other sections, like the abstract or the introduction, you can go to their respective files: ./frontmatter/abstract.tex and ./chapters/introduction.tex . If you want to add another section, do so by creating the relative tex file in the appropriate folder; then add it to the main document by including it in the main.tex file: \include{path/to/document.tex} .
If you are having troubles with anything, you can refer to the Overleaf tutorials. Usually, you can find everything you may need there. Moreover, I suggest the LaTeX Cookbook by Stefan Kottwitz, a book that teaches you how to solve common problems when using LaTeX.
You can customize how things look in the SciThesis.cls file. Here, you can manage packages and other layout preferences.
You can customize how theorems, code portions, labels, and other things look.
The easiest thing you can customize is the main color for the Chapters and links:
Here, you can change the RGB definition to any color you want. The default one is teal.
This is just an introductory post to get this template up and running. In the next weeks, I will write more specific tutorials on how to handle common situations you may encounter when writing your thesis, starting with bibliography management.
See you next time!
Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I want to start using LaTeX to organize my proofs into a readable fashion. This motif is due to my professors preferring e-mail communication instead of reading a chicken-scratch proof. I know enough LaTeX such that I can post on math.SE and make my question readable, but I do not know how to include LaTeX in a document.
How do I make my proof into a LaTeX document?
The skeleton is as follows,
For more detailed at a glance tutorial, visit Theorem .
\(\text{\TeX nique}\)
\(\text{A \LaTeX \, Typesetting Game}\)
Have a cool idea for a formula we should add? Submit it here !
Try to create the following formula:
This is what your output looks like:
Edit your code here:
Toggle Shadow
IMAGES
VIDEO
COMMENTS
T. X. class for writing your homework. The current document class is for writing homework. It has the following features. Simple and clear interface. Built-in support for many theorem-type environments, already configured and ready to use. Multilingual support. Page numbers are of the form "Page [current] of [total]", which can help you ...
An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.
homework is a LaTeX class for typesetting homework assignments. It can handle any Unicode input (so no more worrying about accent characters or writing in another language), and works for problem sets, book problems, lab reports, even essays.
Doing Your Homework in LaTeX. It is a common occurrence for other students to comment on my homework whenever I turn it in for one of my classes. The complete LaTeX file (and the pdf output) can be found in my repository, latex-homework-template. View on GitHub. Below are a few screenshots of problems that I've done in the past: Cover page ...
There are LaTeX document classes for typesetting books, articles, exams, presentations, and more. Now, there's one for homework assignments, too. Source. Check out and download the source on GitHub. What. This is a LaTeX document class. That means you use it with \documentclass{homework} at the top of the document. It provides a document ...
I want to use LaTeX for exam and assignment papers for a class that I am teaching. I obviously could just do the whole thing myself. But, what alternatives are there for easily typesetting such doc...
A simple LaTeX class for typesetting homework assignments. I've used it in some form or another for all of my homework assignments through college and graduate school.
Provides the LaTeX class homework.cls for typesetting homework in a straightforward problem-solution format. Designed to avoid this mistake . Read on for a description of the homework class.
This template lets you quickly typeset your homework. With 2 commands you are up and running and with a class option you can toggle the visibility of questions, so you can see the questions while you are typing your answers and then easily hide them to create a submission file. The markup of problems and subproblems can also be easily adapted ...
02 Using LaTeX for Homework. I hope that you will use the LaTeX typesetting system to write your homework solutions for this course. (See the guide to submitting homework.) It might look daunting at first, if you haven't used LaTeX before, but you won't have to learn LaTeX in depth. You just have to fill in answers to exercises, so you won't ...
A class file for typesetting homework and lab assignments. Sources /macros/latex/contrib/assignment: Documentation: README
LaTeX Homework Class. This project lets you just do \documentclass {homework} to gain access to a load of helpful commands for typesetting your homework. LaTeX Homework Template. This is another LaTeX template. It was based off the CMU template above, with some convenience features added on top of it, and restyled a bit. Comprehensive Preamble
LaTeX is the standard tool for typesetting mathematical materials. While it takes some time to learn, it will likely pay for itself in the long run. LaTeX math notation is also supported in some places outside of LaTeX documents, such as on the message board. A template LaTeX file to use for CSE 311 homework assigments.
Learn the basics of LaTeX in 30 minutes with Overleaf's online editor, featuring easy-to-use tools, templates, and real-time collaboration.
CSE 312: Typesetting Homework We do not require you to typeset your homework, nor will typesetting improve your grade. But, if you are interested in learning how to typeset math in Microsoft Word or LaTeX, we have provided some pointers to help you get started.
Need easily formatted and good looking math homework? In this video I demonstrate how I write my homework in LaTeX.LaTeX is a text setting language which all...
LaTeX Typesetting Service; Assignments. Assignments, also known as homework, are usually given to school or university students to reinforce their knowledge of a subject and aid in learning. They are typically structured in question and answer form to be completed by the student consecutively.
LaTeX document class for typesetting homework. GitHub Gist: instantly share code, notes, and snippets.
A class file for typesetting homework and lab assignments assignment.cls . bangorcsthesis. Typeset a thesis at Bangor University. bangorcsthesis.cls . ... Bidirectional typesetting in plain TeX and LaTeX, using XeTeX engine. bidimoderncv.cls biditufte-book.cls biditufte-handout.cls . bidipresentation. Experimental bidi presentation.
LaTeX - A document preparation system. LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication and publication of scientific documents. LaTeX is available as free software. You don't have to pay for using LaTeX ...
LaTeX is a typesetting system widely used in academia, particularly for technical and scientific documents, which offers a series of advantages over traditional word processors: Superior Typesetting Quality and Consistent Formatting. One of LaTeX's best qualities is its consistency, which ensures that your thesis not only reads well but also ...
I want to start using LaTeX to organize my proofs into a readable fashion. This motif is due to my professors preferring e-mail communication instead of reading a chicken-scratch proof. I know enough LaTeX such that I can post on math.SE and make my question readable, but I do not know how to include LaTeX in a document.
nique. \text {A \LaTeX \, Typesetting Game} A ATEX Typesetting Game. This is a game to test your \LaTeX LATEX skills. Type as many formulas as you can in three minutes (timed game), or play an untimed game (zen mode)! Timed Game.