aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 05:31:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 05:31:46 +0300
commit0dc53473d605eef8ff86f7def16874e2f1646ff6 (patch)
treee2d79e9d31af1b5b8697ac888785db660c425487
parentimport bash.md from egor-tensin/notes.git (diff)
downloadjekyll-theme-0dc53473d605eef8ff86f7def16874e2f1646ff6.tar.gz
jekyll-theme-0dc53473d605eef8ff86f7def16874e2f1646ff6.zip
import latex.tex from egor-tensin/notes.git
Diffstat (limited to '')
-rw-r--r--_notes/latex.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/_notes/latex.md b/_notes/latex.md
new file mode 100644
index 0000000..58aee8e
--- /dev/null
+++ b/_notes/latex.md
@@ -0,0 +1,40 @@
+---
+layout: note
+title: Basic LaTeX document
+custom_css:
+ - syntax.css
+---
+A more-or-less complete, but still very basic LaTeX document follows.
+
+```tex
+\documentclass[11pt]{article}
+
+% Basic setup
+\usepackage{cmap}
+\usepackage[utf8]{inputenc}
+\usepackage[T2A]{fontenc}
+\usepackage[russian]{babel}
+
+% Completely arbitrary settings follow:
+
+% Sans serif font by default
+\renewcommand\familydefault{\sfdefault}
+
+% Document margins
+\usepackage[margin=2.5cm]{geometry}
+
+% Paragraph indents
+\usepackage{parskip}
+\setlength\parindent{0cm}
+\setlength\parskip{0cm}
+
+% URLs
+\usepackage[colorlinks=true,urlcolor=blue]{hyperref}
+
+\begin{document}
+
+Привет, \LaTeX!
+Ссылка на репозиторий: \href{https://github.com/egor-tensin/notes}{https://github.com/egor-tensin/notes}.
+
+\end{document}
+```