Skip to content

Commit

Permalink
Merge pull request #48 from ddmarshall/master
Browse files Browse the repository at this point in the history
Minor Fixes for Overleaf
  • Loading branch information
ddmarshall authored Sep 10, 2024
2 parents 4c1666b + e887684 commit fb4ea1b
Show file tree
Hide file tree
Showing 6 changed files with 2,742 additions and 2,740 deletions.
10 changes: 5 additions & 5 deletions chapters/chapter01.tex
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,15 @@ \subsection{Sub-Figures}
Also, the sub-figures can be cited collectively, such as \cref{fig:sub-image-a,fig:sub-image-b}.
\begin{figure}
\centering
\begin{subfigure}[t]{2in}
\begin{subfigure}[t]{2.5in}
\includegraphics[width=\textwidth]{example-image-a}
\caption{First example image that does have a long description.}
\label{fig:sub-image-a}
\end{subfigure}
\hspace{0.1in}
\begin{subfigure}[t]{2in}
\hspace{0.2in}
\begin{subfigure}[t]{2.5in}
\includegraphics[width=\textwidth]{example-image-b}
\caption{Next example image with an even longer description that continues on for a while.}
\caption[size=normal]{Another example image with a long description that continues on for a while.}
\label{fig:sub-image-b}
\end{subfigure}
\caption{Two figures that together tell a complete story of how sub-figures can be used together to create one coherent figure.}
Expand Down Expand Up @@ -412,7 +412,7 @@ \section{Code and Code Listings} \label{sec:CodeAndCodeListings}
This code is in a floating environment (note the usage of the float option).\footnote{To enforce the placement of the listing in this example, the ``h'' parameter is used. In general no placement parameters are needed, and the ``float'' option is all that is needed to be used.}
Without that option the code listing will appear exactly in the text where the code listing is.

\begin{lstlisting}[float=h, caption=Example from Overleaf demonstrating python code. A monospaced font is important to see what statement the return lines up with., label=lst:OverleafCode]
\begin{lstlisting}[float=hb, caption=Example from Overleaf demonstrating python code using a monospaced font. The use of this font is important to see what statement the return lines up with., label=lst:OverleafCode]
import numpy as np

def incmatrix(genl1,genl2):
Expand Down
Loading

0 comments on commit fb4ea1b

Please sign in to comment.