GeneralIssue with .eps img in minimap using a command

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
alev
Posts: 1
Joined: Fri Nov 29, 2019 4:03 pm

Issue with .eps img in minimap using a command

Post by alev »

Hi, I'm super new with LaTeX and have to update some documents for my new company.
The guy that wrote the code left the company a while ago so he can't help.

Here's the code for the command which created two minipage attributes next to each other
The first minipage {1} is only text whereas the second one is only image.

My point is to be able to add a caption and a label to each figure that are used inside these commands.

Code: Select all

\newcommand{\TexteIllustrationHaute}[2]{
\UpdateLengths
\noindent
\begin{minipage}{\largeurTexteIllustration}
{#1}
\end{minipage}%
\hskip 0.6cm
\begin{minipage}{\largeurCadre}
\framebox(8,10){
\includegraphics[width=\largeurImage,height=\hauteurImageHaute,keepaspectratio=true]
{#2}}
\end{minipage}
\vskip 0.3cm
}
here's one of the many code portion refering to the previous command.
I'd like to add a caption "Saccade 2D" below this figure

Code: Select all

\TexteIllustrationHaute{
\Subsubsubsection{Représentation graphique}
Les saccades sont représentées à la fois sur la barre temporelle et sur la
zone spatiale.\\
}
{Saccade2D.eps}
As written , I have
Image
which shows on, the first minipage the text and on the second one the image.

I've tried to add caption / label stuff under "{Saccade2D.eps}" but it does not work (obviously I guess)
same for "figure" which can only be used within a float and minipage isn't

Thank you very much in advance for your help ! I hope that I am clear enough
A new member of the LaTeX community

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply