mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
two images side by side
This commit is contained in:
parent
4aed46f86e
commit
9b1fbf60d5
5 changed files with 47 additions and 0 deletions
9
images/side-by-side/Makefile
Normal file
9
images/side-by-side/Makefile
Normal file
|
@ -0,0 +1,9 @@
|
|||
SOURCE = side-by-side
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
|
BIN
images/side-by-side/Ursus-arctos.jpg
Normal file
BIN
images/side-by-side/Ursus-arctos.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 112 KiB |
BIN
images/side-by-side/YourImage.jpg
Normal file
BIN
images/side-by-side/YourImage.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 658 KiB |
BIN
images/side-by-side/side-by-side.pdf
Normal file
BIN
images/side-by-side/side-by-side.pdf
Normal file
Binary file not shown.
38
images/side-by-side/side-by-side.tex
Normal file
38
images/side-by-side/side-by-side.tex
Normal file
|
@ -0,0 +1,38 @@
|
|||
\documentclass[a4paper]{scrreprt}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{graphics}
|
||||
|
||||
\begin{document}
|
||||
\chapter{Your Chapter}
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
|
||||
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
|
||||
erat, sed diam voluptua. At vero eos et accusam et justo duo dolores
|
||||
et ea
|
||||
rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
|
||||
ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur
|
||||
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
|
||||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam
|
||||
et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea
|
||||
takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
\begin{figure}[ht]
|
||||
\begin{minipage}[b]{0.45\linewidth}
|
||||
\centering
|
||||
\includegraphics[width=\textwidth]{YourImage.jpg}
|
||||
\caption{South American coati}
|
||||
\label{fig:nasua}
|
||||
\end{minipage}
|
||||
\hspace{0.5cm}
|
||||
\begin{minipage}[b]{0.45\linewidth}
|
||||
\centering
|
||||
\includegraphics[width=\textwidth]{Ursus-arctos.jpg}
|
||||
\caption{Brown bear}
|
||||
\label{fig:Ursus-arctos}
|
||||
\end{minipage}
|
||||
\end{figure}
|
||||
|
||||
You can now see that a Nasua nasua in figure \ref{fig:nasua} and a Ursus-arctos
|
||||
in figure \ref{fig:Ursus-arctos}. Note that you have to run LaTeX twice and
|
||||
don't delete intermediate files when you want to use ref.
|
||||
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue