# Latex space reducing hacks

1. Reduce space above and below equations: Place following lines after \begin{document}
\setlength{\abovedisplayskip}{2pt}
\setlength{\belowdisplayskip}{2pt}

2.  Reduce space above and below section/subsection titles. Place these lines before beginning the document.

\usepackage[compact]{titlesec} \titlespacing*{\section} {0pt}{2\baselineskip}{3\baselineskip} \titlespacing*{\subsection} {0pt}{2\baselineskip}{3\baselineskip} 

This answer is copied from this StackOverflow link. In Springer, llncs format I found this sucks but a hack around the same is provided in this StackOverflow answer. It really works!!.

# Side by side latex figure/table placement

1.  Place two figures side by side with separate captions and labels [copied from https://tex.stackexchange.com/a/37582/88745%5D

\usepackage{subfigure}
\begin{figure}
\centering
\parbox{5cm}{
\includegraphics[width=5cm]{img1}
\caption{First.}
\label{fig:2figsA}}
\begin{minipage}{5cm}
\includegraphics[width=5cm]{img2}
\caption{Second.}
\label{fig:2figsB}
\end{minipage}
\end{figure}


2. Place Table and a Figure side by side.   [source:https://tex.stackexchange.com/a/265891/88745%5D

\documentclass{article}
\usepackage{graphicx}
\usepackage{capt-of}% or \usepackage{caption}
\usepackage{booktabs}
\usepackage{varwidth}

\begin{document}
\begin{table}[ht]
\begin{varwidth}[b]{0.6\linewidth}
\centering
\begin{tabular}{ l r r r }
\toprule
Student & Hours/week & Grade \\
\midrule
Ada Lovelace & 2 & A \\
Linus Thorvalds & 8 & A \\
Bruce Willis & 12 & F \\
Richard Stallman & 10 & B \\
Grace Hopper & 12 & A \\
Alan Turing & 8 & C \\
Bill Gates & 6 & D \\
Steve Jobs & 4 & E \\
\bottomrule
\end{tabular}
\caption{Student Database}
\label{table:student}
\end{varwidth}%
\hfill
\begin{minipage}[b]{0.4\linewidth}
\centering
\includegraphics[width=40mm]{example-image}
\captionof{figure}{2-D scatterplot of the Student Database}
\label{fig:image}
\end{minipage}
\end{table}
\end{document}

# Insert Latex equations and tables in Powerpoint and Keynote

At times we need to copy the Latex equations and tables in our presentation slides prepared either in Microsoft Powerpoint or Apple Keynote. There are many options to do the same but here I will explain a simple approach

2. Open LatexiT and copy the required latex equation/table from your latex file into the LatexiT editor. Make sure that you remove- begin{table}, begin{equation} type of commands.   After copying, click on LaTeX it button at bottom right to generate equations and tables
3. Once your equation/table is drawn, save the file using from File Menu.

There are different options for customizing the output such as font size, installing new packages.