========= TeXstudio ========= [CTRL + T] Add comment symbol to line. [CTRL + U] Remove comment symbol from line. [F1] Render document. ===== LaTeX ===== % Comments line. \ Next line. \\ Next paragraph. \textbf{} Bold font. Normally used for vectors and matrices, if inside equations. \texttt{} Use typewriter (e.g., Courier, Inconsolata) font. \cite{} Introduces a bibliographic citation. \eqref{} Introduces a numeric reference to an equation. \ref{table:label} Introduces a numeric reference to a table. \ref{fig:label} Introduces a numeric reference to a figure. $...$ One line equation. Embedded in text. $$...$$ One line equation. Centered. Not numbered by default. \being{equation}... Multi-line equation. Centered. Each line is numbered by default. Use \label{eq:eq1} for reference. \end{equation} \begin{align}... Multi-line equation. Centered. Each line is numbered by default. Use \label{eq:eq1} for reference. \end{align} Use '&' for aligment. \fbox{} Draw a box around the equation. \begin{cases}... Piecewise function. Use '\\' to separate each line. Use '&' for aligment. Requires the amsmath package. \end{cases} \begin{bmatrix}... Vector/Matrix. Use '\\' to separate each line. \end{bmatrix} \text{} Text format inside equation. Requires the use of the 'amsmath' package. \mathbb{} Uppercase Blackboard bold font. Used to denote special sets (e.g., natural numbers) or operations (e.g., expectation). Requires the asmfonts or asmsymb packages. \mathcal{} Uppercase Caligraphy font. Used to denote sets or Transforms (e.g., Laplace transform). [] Brackets. \{\} Curly brackets. ^{} Superscript. Example: x^2. _{} Subscript. Example: x_2. \hat{} Hat notation. Normally used to denote mathematical estimations. \dot{} Dot notation. Normally used to denote system states in a state-space representation. \bar{} Bar notation. Normally used to denote mean value estimations. \in Set belonging. Example: x \in \mathbb{R}. \cup Set union. \cap Set intersection. \approx Approximately. \sim (~) sign. Used to denote a draw from a distribution. \frac{}{} Fraction. Example: \frac{1}{I}. \sum\limits_{}^{} Sigma notation to denote summation. Example: \sum\limits_{i=1}^{I} \sqrt[n]{} n-th root. \underset{}{\text{arg}} Argmin or argmax optimization. \rule{7cm}{0.15mm} Creates an underlined space. \big\{ \Big\{ \bigg\{ \Bigg\{ Creates bigger parentheses, brackets and curly brackets in formulas. \alpha, \Alpha, \beta, \Beta, \gamma, \Gamma, \pi, \Pi, \phi, \varphi, \Phi Greek letters. Document Types: \documentclass[]{article} Generic LaTeX article format. Use before {document} object. \documentclass[11pt,journal]{IEEEtran} IEEE Journal article format. Use before {document} object. \documentclass[9pt]{memoir} Generic LaTeX document format. Use before {document} object. \documentclass[12pt,journal,landscape]{article} Generic LaTeX article format in landscape mode for quick presentations. Use before {document} object and use \usepackage[]{geometry}. \documentclass[11pt]{beamer} Beamer presentation. Use \setbeamertemplate{caption}[numbered] for improving figure numbering caption, if necessary. \documentclass[11pt,handout]{beamer} Beamer presentation handouts. Use \usepackage{pgfpages}, \pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm], and \setbeamertemplate{caption}[numbered] for configuring handouts layout. Libraries and Packages: % IEEE recommendations \usepackage[cmex10]{amsmath} \interdisplaylinepenalty=2500 \usepackage{algpseudocode} \usepackage{array} \usepackage[caption=false,font=footnotesize]{subfig} \usepackage{stfloats} \usepackage{courier} \usepackage{url} \usepackage[]{mcode} % correct bad hyphenation here %\hyphenation{} % Non-IEEE recommendations: \usepackage{graphicx} \usepackage{amssymb} \usepackage{epstopdf} \usepackage{fancyhdr} % Additional packages. Don't know if these packages are recommended by IEEE \usepackage{color} \usepackage{cite} \usepackage{footnote} \usepackage{caption} Must be used before the subfig package. Otherwise it presents an error. Necessary for centering the caption of figures. \usepackage{inconsolata} %Inconsolata is similar to Windows Notepad's default font Consolas. \usepackage[T1]{fontenc} Document structure: \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{} \fancyhead[RE,LO]{} \fancyfoot[CE,CO]{} \fancyfoot[LE,RO]{\thepage} \renewcommand{\headrulewidth}{2pt} \renewcommand{\footrulewidth}{1pt} \title{} Use before {document} object. \author{} Use before {document} object. Example: \author{Juan Samuel P\'{e}rez\\ Caniv-Tech, Inc.\\ Albuquerque, NM, United States\\ ${\tt jsperez@caniv-tech.com}$\\ } \date{} Use before {document} object. \setlength{\parindent}{0pt} Removes indentation. Use before {document} object. \renewcommand*\familydefault{\ttdefault} Sets the the base font of the document to be typewriter style (e.g., Courier, Inconsolata). Use before {document} object. \renewcommand{\figurename}{Figura} Renames the caption of the figures. \begin{document}... \end{document} \maketitle Inserts title and author. Use inside {document} object. \onecolumn Modifies formatting to a single column. \begin{abstract}... \end{abstract} \section{} Starts a new section in the document. \subsection{} Starts a new subsection in the document. \subsubsection{} Starts a new subsubsection in the document. \begin{enumerate}... Numbered list. Use '\item' to create new number. \end{enumerate} \begin{itemize}... Bulletpoints. Use '\item' to create new entry. \end{itemize} \bibliographystyle{IEEEtran} Defines Bibliography style. \bibliography{IEEEabrv,literature_survey_v_1_0} Inserts bibliography using abbreviations and .bib file. Tables and Figures: \begin{framed} Puts a box around text. Requires the 'framed' package. \end{framed} \begin{table}[ht]... Creates a float object with a table and specifies its location with reference to the page. \end{table} Use '\centering' for centering the table. Use '\caption{}' for title of the table. Use '\label{table:tab1}' for reference. \begin{tabular}{l | c | r}... Defines the columns and aligment of the contents of a table. Use inside {table} object. \end{tabular} Use '&' as vertical line separator. Use '\hline' as horizontal line separator. Use '\\' to separate each line. Use '\multicolumn{no_of_cols}{alignment}{value}' for merging horizontal cells. \begin{figure}[ht]... Creates a float object with a picture and specifies its location with reference to the page. \end{figure} Requires the 'graphicx' package. Use '\centering' for centering the table. Use \includegraphics[width=0.7\textwidth,trim = 0cm 0cm 0cm 0cm, clip=true]{picture.jpg} to specify the origin of the picture. Use '\caption{}' for caption of the picture. Use '\label{fig:fig0}' for reference. Use \subfloat[caption]{} for creating subfigures within a figure. Requires the 'subfig' package. Use \quad for better formatting if using subfigures.