## LaTeX forum ⇒ New Members ⇒ Hi everybody

You would like to introduce yourself before starting to post? That's a nice idea and here is the forum for you...
Cipher
Posts: 2
Joined: Mon Jan 22, 2018 10:24 pm

### Hi everybody

I am a student and have a LaTex code problem. I always need text alongside images. Sometimes the text is on the left, other times it is on the right. Also ,I need to position where the \caption {figure} is located top, left, bottom, right. I can use the code below and get what I need by rearranging it. Unfortunately, it does not work. If you run it, you will see that the 'Figure Number' is not printed, only the word' figure'...most annoying.

If somebody can assist with a solution, by the lecturer (and myself) will be very happy...thank you, everybody.

\begin{minipage}{0.4\textwidth}Shows the progression of an industrial emerging technology. This process can be a few months to decades, depending upon the level of technology.\end{minipage}%\begin{minipage}{0.7\textwidth}\begin{center}    \captionof{figure}{Industrial emergence phase}      \includegraphics[width=0.6\textwidth]{foo.png}    \label{img:g}\end{center}\end{minipage}
Last edited by Stefan Kottwitz on Mon Jan 22, 2018 10:59 pm, edited 1 time in total.
Reason: code marked

Tags:

Stefan Kottwitz
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm
Hi Cipher,

welcome to the forum!

If I run it, that problem does not happen. Perhaps it is a setting that you did not post here yet. Please try to post small compilable examples of issues, so it's easy to verify and to fix. Background link: minimal working example

Here is what I get when I make your code snippet compilable:

\documentclass[12pt]{article}\usepackage{caption}\usepackage[demo]{graphicx}\begin{document}\begin{minipage}{0.4\textwidth}Shows the progression of an industrial emerging technology. This process can be a few months to decades, depending upon the level of technology.\end{minipage}%\begin{minipage}{0.7\textwidth}\begin{center}    \captionof{figure}{Industrial emergence phase}      \includegraphics[width=0.6\textwidth]{foo.png}    \label{img:g}\end{center}\end{minipage}\end{document}

Click on "Open in Overleaf" to see that it's without a problem.

It would be good to post a code sample based on the original code (using the same preamble and settings, unnecessary lines removed).

Stefan