Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LaTeX Template HsH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Wille
LaTeX Template HsH
Commits
e14045f2
Commit
e14045f2
authored
1 year ago
by
Jan Wille
Browse files
Options
Downloads
Patches
Plain Diff
abstract
parent
da65eb76
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
chap/whatsLaTeX.tex
+9
-9
9 additions, 9 deletions
chap/whatsLaTeX.tex
example.pdf
+2
-2
2 additions, 2 deletions
example.pdf
example.tex
+12
-3
12 additions, 3 deletions
example.tex
with
23 additions
and
14 deletions
chap/whatsLaTeX.tex
+
9
−
9
View file @
e14045f2
...
...
@@ -20,11 +20,11 @@
other and scroll through them simultaneously.
If you already have a working LaTeX setup, most editors support
\emph
{
SyncTex
}
, which allows you to jump between source code and PDF file and
vice versa. You have to compile yourself, which will create a file called
\verb
|
example.synctex.gz
|
in your project directory. Now you
can
\verb
|
<CTRL>+Click
|
in the PDF and the corresponding line of source code will be highlighted.
vice versa. You have to compile yourself, which will create a file called |example.synctex.gz| in your project directory. Now you
can |<CTRL>+Click| in the PDF and the corresponding line of source code will be highlighted.
The shortcut to jump from the source code into the PDF will depend on your Editor, but for VS
Code its
\verb
|
right Click
|
→
\verb
|
SyncTex from cursor
|
or
\verb
|
CTRL+ALT+J
|
.
The shortcut to jump from the source code into the PDF will depend on your Editor, but for VS
\;
Code its
|right Click|→|SyncTex from cursor| or |CTRL+ALT+J|.
\section
{
Requirements to use LaTeX
}
As LaTeX files are just plain text file, you can edit them with any text editor (even windows notepad works, but that's just terrible).
...
...
@@ -38,12 +38,12 @@
As I have already mention above, you also need the LaTeX program. It comes bundled with packages and other additional software inside a
Tex-distribution. There are two major ones, Texlive and MiKTeX. I recommend MiKTeX, but it essentially doesn't matter which one you choose.
Once you have the distribution installed, test it by running
\verb
|
pdflatex --version
|
in any terminal windows and it should return you
Once you have the distribution installed, test it by running |pdflatex --version| in any terminal windows and it should return you
some information about the installed version and setup.
\section
{
Running LaTeX
}
To create a PDF file from your LaTeX source code, you can always navigate to the project folder in a terminal window and run
\verb
|
pdflatex filename.tex
|
. However, if you have a decent editor installed, it will provide you with a button and do this for you.
|pdflatex filename.tex|. However, if you have a decent editor installed, it will provide you with a button and do this for you.
With these project files you also received a makefile, which demonstrates how to compile this example file successfully from the terminal. The
README file also has some tips and information for you.
...
...
@@ -52,12 +52,12 @@
will be asked if you want to install them and should than be able to compile this file.
\section
{
LaTeX commands
}
Now lets look at the LaTeX command. Every one will begin with a
\textbackslash\space
followed by a letters only command name, like this:
\verb
|
\command
|
. Most commands also accept input, which is put after it into curly brackets:
\verb
|
\command{argument
|
|. They can
Now lets look at the LaTeX command. Every one will begin with a
|
\|
followed by a letters only command name, like this:
|
\command
|. Most commands also accept input, which is put after it into curly brackets: |
\command
{
argument
}
|. They can
accept multiple arguments either in multiple sets of curly brackets or as a comma separated list, depending on the command.
Some commands also accept optional arguments. These are passed inside square brackets between the command name and the curly brackets, like
this:
\verb
|
\command[optional]{argument
|
|.
this: |
\command
[optional]
{
argument
}
|.
\section
{
Getting more information
}
So what can you do if you get stuck or just want more information. The simple answer is: Google is your friend. Most questions have already
...
...
This diff is collapsed.
Click to expand it.
example.pdf
LFS
+
2
−
2
View file @
e14045f2
No preview for this file type
This diff is collapsed.
Click to expand it.
example.tex
+
12
−
3
View file @
e14045f2
...
...
@@ -23,11 +23,12 @@
% ----- package loading -----
% first thing you do is declare all the packages you need for your document
% you can also pass options to this packages to configure their behavior
\usepackage
{
listings
}
% for pretty-printing code snippets
\usepackage
{
soul
}
% for strickesthough text
\usepackage
{
lipsum
}
% for dummy text
% for some packages you also call some commands to configure them or your document
\lstMakeShortInline
[language={[LaTeX]
TeX
}
]|
% ----- document information -----
% In your preamble you also list your documents information and metadata. These will be used on the titlepage as well
...
...
@@ -74,7 +75,15 @@
% It will create a new page and a heading for you as well as indenting the whole text block a little.
% if you have provided keywords, they will also be put at the end of the abstract.
\begin{abstract}
\lipsum
[5-6]
If you need an abstract for your document, you can write it wherever you see fit by using the |
\begin{abstract}
...
\end{abstract}
|
environment, like demonstrated here. It acts as an unnumbered chapter. You can choose if you want it in the TOC using the
|abstract=totoc| and |abstract=nottotoc| options of the documentclass.
If you prefere your abstract to be on a clean page, you can use |
\thispagestyle
{
plain
}
| to get only a page number or |
\thispagestyle
{
empty
}
|
to get nor header or footer.
If you use the |
\keywords
{
list, of, keywords
}
| command in your preamble, the given keywords will also be printed here. You may use
|abstract=nokeywords| as a documentclass option to disable this.
\end{abstract}
% this command will create the table of contents (TOC).
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment