Added information about graphicspath to images chapter
This commit is contained in:
parent
40b0355e84
commit
f4e326ea6f
31
lbol.tex
31
lbol.tex
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
% Where are our images?
|
||||
\graphicspath{{images/},{standalone/build/}}
|
||||
\graphicspath{{./images/},{./standalone/build/}}
|
||||
|
||||
% Include bibliography in TOC without numbering
|
||||
\usepackage[nottoc]{tocbibind}
|
||||
@ -1346,6 +1346,35 @@ The following array shows the difference between ordinary and ``nice'' fractions
|
||||
|
||||
\chapter{Images}\label{ch:images}
|
||||
|
||||
You can use images in \LaTeX{}, but it requires the \texttt{graphicx} package, as this is not something that \LaTeX{} can handle on its own. You will need to include this line in your preamble:
|
||||
|
||||
\begin{Verbatim}[]
|
||||
\usepackage{graphicx}
|
||||
\end{Verbatim}
|
||||
|
||||
\section{The Folder Path to Images}
|
||||
|
||||
The \texttt{graphicx} allows you to specify where your images are located by using the \texttt{graphicspath} command in the preamble. You can specify multiple paths with this command.
|
||||
|
||||
\begin{Verbatim}[]
|
||||
\graphicspath{ {./images/}, {./standalone/build/} }
|
||||
\end{Verbatim}
|
||||
|
||||
The above command will specify two paths \textit{relative} to the directory your \texttt{.tex} file is located. Technically speaking the relative delimiter (\texttt{./}) is not required, but it's a best practice to include it if you are going to include other \texttt{.tex} files that are located in folders within your working directory, because \LaTeX{} can become confused about the location of images.
|
||||
|
||||
You can also specify absolute paths to your files. For example, on a Windows system, you would use something like
|
||||
|
||||
\begin{Verbatim}[]
|
||||
\graphicspath{ {c:/user/latex/images/} }
|
||||
\end{Verbatim}
|
||||
|
||||
\noindent{}and on Unix-type systems (Linux, MacOS), you would use something like
|
||||
|
||||
\begin{Verbatim}[]
|
||||
\graphicspath{ {/home/user/latex/images/} }
|
||||
\end{Verbatim}
|
||||
|
||||
|
||||
|
||||
\chapter{Referencing}\label{ch:referencing}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user