LaTeX forum ⇒ GeneralIssue with .eps img in minimap using a command

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

Issue with .eps img in minimap using a command

Postby alev » Fri Nov 29, 2019 4:15 pm

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \newcommand{\TexteIllustrationHaute}[2]{
  2. \UpdateLengths
  3. \noindent
  4. \begin{minipage}{\largeurTexteIllustration}
  5. {#1}
  6. \end{minipage}%
  7. \hskip 0.6cm
  8. \begin{minipage}{\largeurCadre}
  9. \framebox(8,10){
  10. \includegraphics[width=\largeurImage,height=\hauteurImageHaute,keepaspectratio=true]
  11. {#2}}
  12. \end{minipage}
  13. \vskip 0.3cm
  14. }

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \TexteIllustrationHaute{
  2. \Subsubsubsection{Représentation graphique}
  3. Les saccades sont représentées à la fois sur la barre temporelle et sur la
  4. zone spatiale.\\
  5. }
  6. {Saccade2D.eps}

As written , I have
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

Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests