From 7b678da201920af8ef567e2d1679d65e449a110a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuna=20Alika=C5=9Fifo=C4=9Flu?= Date: Sat, 16 Jul 2022 00:05:59 +0300 Subject: [PATCH] feat(latex): add sample LaTeX documents for demo Add a sample `.tex` file with minimal examples such as equations, hyperref, and bibliography with `biblatex`. This state of the repo will serve as `v1` (with a tag) for release demonstration. --- bibliography.bib | 7 +++++++ main.tex | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 bibliography.bib create mode 100644 main.tex diff --git a/bibliography.bib b/bibliography.bib new file mode 100644 index 0000000..3367e68 --- /dev/null +++ b/bibliography.bib @@ -0,0 +1,7 @@ +@book{knuth1997art, + title = {The Art of Computer Programming}, + author = {Donald E. Knuth}, + publisher = {Addison Wesley}, + year = {1997}, + edition = {3.}, +} diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..228d7d9 --- /dev/null +++ b/main.tex @@ -0,0 +1,36 @@ +\documentclass[a4paper,11pt]{article} +\usepackage[utf8]{inputenc} +\usepackage[style=ieee]{biblatex} +\usepackage{amsmath, amssymb, amsthm} +\usepackage{hyperref} +\usepackage[capitalize]{cleveref} + +\newcommand{\IM}{i} % change i with j for electrical engineering +\newcommand{\EXP}[1]{e^{#1}} % comment for \exp instead of e^{} +% \newcommand{\EXP}[1]{\exp\left(#1\right)} % and uncomment for \exp + +\title{Title} +\author{Name Surname} +\date{\today} +\bibliography{bibliography} +\hypersetup{ + colorlinks=true, + linkcolor=red, + urlcolor=blue, + citecolor=green, +} + +\begin{document} +\maketitle + +\section{Dummy Section} +This is a dummy section with an inline equation \(F = ma\), a set of +aligned mathematical identities in~\cref{eq:general,eq:special}, and +a book reference of~\autocite{knuth1997art}. +\begin{align} + \EXP{\IM\theta} & = \cos(\theta)+\IM\sin(\theta)~\label{eq:general} \\ + 1 + \EXP{\IM\pi} & = 0~\label{eq:special} +\end{align} + +\printbibliography{} +\end{document}