KDE Kile - FOSS/offline alternative to Overleaf https://www.overleaf.com/edu/agh
https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes
LaTeX is not a “WYSIWYG” tool, your document is a plain text file interspersed with LaTeX commands used to express the desired (typeset) results. It uses .tex files.
TeX Live: https://tug.org/texlive/
Find TeX packages: https://www.ctan.org/
Make use of the Visual Editor!!!
Compiler settings:
Auto compile: ON. Compile error handling: Stop on first error.
Add these packages to preamble for polish chars:
\usepackage[T1]{fontenc}
\usepackage[polish]{babel}
\usepackage[utf8]{inputenc}
Preferable document class:
\documentclass[12pt, a4paper, onecolumn]{article}
Italics: \textit{...}
Bold: \textbf{...}
Underline: \underline{...}
You can have multiple images in one figure (e.g. side-by-side).
Types of lists:
https://www.overleaf.com/project/68c07400736bbed0e4331fdd
Math:
LaTeX provides two writing modes for typesetting mathematics:
- inline math mode used for writing formulas that are part of a paragraph.
- display math mode used to write expressions that are not part of a text or paragraph and are typeset on separate lines.
Examples:
- Using built-in functions: https://www.overleaf.com/project/68c075c25befe4b5d93629d1
- Using the \usepackage{amsmath}: https://www.overleaf.com/project/68c0760ad8bca38ce7923df5
Useful links:
- Mathematical expressions
- Subscripts and superscripts
- Brackets and Parentheses
- Fractions and Binomials
- Aligning Equations
- Operators
- Spacing in math mode
- Integrals, sums and limits
- Display style in math mode
- List of Greek letters and math symbols
- Mathematical fonts
Document structure:
New users are advised that multiple \\ or \newlines should not be used to “simulate” paragraphs with larger spacing between them because this can interfere with LaTeX’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.
Document-structuring commands 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.
Newline: \\ %equivalent to \newline.
https://www.overleaf.com/learn/latex/Sections_and_chapters
Tables:
Example: https://www.overleaf.com/project/68c079ed736bbed0e434c1bc
Example document:
\documentclass[12pt, a4paper, onecolumn]{article}
\title{Example LaTeX document}
\author{John Doe\thanks{Said author does not exist and is a fictional character.}}
\date{\today}
\usepackage[T1]{fontenc} %These are
\usepackage[polish]{babel} %needed for
\usepackage[utf8]{inputenc} %Polish characters.
\usepackage{graphicx} %LaTeX package to import graphics
\graphicspath{{images/}} %configuring the graphicx package
\begin{document}
\maketitle
\tableofcontents
\section{Introduction}
\begin{abstract}
This is a simple paragraph at the beginning of the
document. A brief introduction about the main subject.
\end{abstract}
\section*{Unnumbered Section}
Lorem Ipsum. ĄĘąę
% This line here is a comment. It will not be typeset in the document.
\begin{figure}[h!b]
\centering
\includegraphics[width=1\textwidth]{X4_logistics_flowchart.jpg}
\caption{Enter Caption}
\label{fig:placeholder}
\end{figure}
You can see figure \ref{fig:placeholder} on page \pageref{fig:placeholder}.
\section{Second Section}
\begin{itemize} %unordered list
\item The individual entries are indicated with a black dot, a so-called bullet.
\item The text in the entries may be of any length.
\end{itemize}
\begin{enumerate} %ordered list
\item This is the first entry in our list.
\item The list numbers increase with each entry we add.
\end{enumerate}
\begin{table}
\centering
\begin{tabular}{c|ccc|cc}
\hline
ff &vdg & gg& & & \\
& & & & & \\
& & & & & \\
& & bb & & & \\
\hline
\end{tabular}
\caption{Caption}
\label{tab:placeholder}
\end{table}
\end{document}