this is for holding javascript data
Deyan Ginev edited section_Layout_directives_subsection_General__.tex
almost 9 years ago
Commit id: 85e9d2d04a450a46873ad303ccf3cec8998b130c
deletions | additions
diff --git a/section_Layout_directives_subsection_General__.tex b/section_Layout_directives_subsection_General__.tex
index 1783905..812d79f 100644
--- a/section_Layout_directives_subsection_General__.tex
+++ b/section_Layout_directives_subsection_General__.tex
...
Authorea supports figures as separate text blocks, so you should never have to write \verb|\begin{figure}| in your documents. However, listings and tables are perfectly acceptable. In fact, you could be curious to find out the technique which we use here for aligning our listings and tables in two horizontal columns. The relevant snippet is:
\begin{lstlisting}
\begin{figure}[h!]
\begin{minipage}{0.7\textwidth}
... left-hand-side content ...
\end{minipage}
\begin{minipage}{0.2\textwidth}
... right-hand-side content ...
\end{minipage}
\end{figure}
\end{lstlisting}
The reason we use \verb|\begin{figure}[h!]| here is to explicitly order {\TeX} to position the figure as close as possible to the current insertion point.