Latex Commands


Some handy dandy Latex commands I use but keep forgetting.

A wordcunter for LaTeX
https://app.uio.no/ifi/texcount/online.php
Image

\begin{figure}[H]%H for exactly here
    \centering
    \includegraphics[width=0.9\textwidth]{img.png}
    \caption{CAPTION}
    \label{LABEL}
\end{figure} 
                                                  
Wrap Figure

% Requires: \usepackage{wrapfig}
\begin{wrapfigure}{r}{0.5\textwidth}
  \begin{center}
    \includegraphics[width=0.48\textwidth]{}
  \end{center}
  \caption{}
  \label{}
\end{wrapfigure}                              
Cite URL

@misc{LABEL,
  title = {TITLE},
  howpublished = {\url{URL}},
  note = {2019 Accessed: 2019-08-22}
}                                   
Hyperlink to File

\href{run:/PATH/FILENAME.xls}{TEXT DO DISPLAY}                                   
Merge Collumns in a Table

& \multicolumn{x}{c}{Text}\\
%Where x is the number of collumns to merge, c the allignment and Text the text to display in the table.