TransWikia.com

Text left, figure WITH CAPTION right

TeX - LaTeX Asked by Susi on February 21, 2021

I try to get the text at the left side of the document and the figure on
the right side of the document. Unfortunately, there are still some issues:
In the first example, the lettering differs (font, gaps, type) from the lettering of the main text.
In the second example, no caption appears.
I could not find any solution so far and would be really grateful about any help from you!

1) Example

documentclass[11pt]{article}
    begin{document} 
begin{figure}[htbp]
    begin{minipage}{0.4textwidth}
   sfsdaa
   sdfsfasfs
   10L-bach of water that flows through the device, it dispenses a dose of 3 mL of NaOCl solution into a mixing chamber. The chlorinated water is then flushed by an automatic siphon into a storage reservoir and dispensed via a tap citep{Amin2016}.
Difficulties experienced with the application of this device
    end{minipage}hfill
    begin{minipage}{0.4textwidth}
     centering
      includegraphics[width=0.8textwidth]{Zimba.PNG}
      caption{Bild rechts}
    end{minipage}
  end{figure}
end{document}

2) Example

    documentclass[11pt]{article}

begin{document} 
    begin{minipage}{0.6linewidth}
     noindent {textbf{Zimba}}
    The Zimba device is connected to handpumps. For every 10L-bach of water that flows through the device, it dispenses a dose of 3 mL of NaOCl solution into a mixing chamber. The chlorinated water is then flushed by an automatic siphon into a storage reservoir and dispensed via a tap citep{Amin2016}.
    Difficulties experienced with the application of this device
    are the variations in dosing due to clogging of the regulator citep{Pickering2015}. Moreover, the Zimba dispenser uses a non-standard low concentration NaOCl solution (0.4%), which requires dilution before filling.
    end{minipage}
    hfill
    begin{minipage}{0.45linewidth}
       centering
       includegraphics[scale=0.9]{Zimba.PNG}
       %rule{0.9linewidth}{0.5linewidth}
       caption{Zimba citep{Amin2016}}
       label{fig:Zimba}
    end{minipage}

    end{document}

One Answer

documentclass[11pt]{article}
    begin{document} 
begin{tabular} {p{6cm} p{5cm}}
    {begin{minipage}{0.4textwidth}
   sfsdaa
   sdfsfasfs
   10L-bach of water that flows through the device, it dispenses a dose of 3 mL of NaOCl solution into a mixing chamber. The chlorinated water is then flushed by an automatic siphon into a storage reservoir and dispensed via a tap .
Difficulties experienced with the application of this device
    end{minipage}hfill} &
    {begin{minipage}{0.4textwidth}
     centering
    I would like to say that I do not have any pictures, text or table. % includegraphics[width=0.8textwidth]
%      caption{Bild rechts}
    end{minipage}}
  end{tabular}
  vspace{1cm}

 begin{tabular} {p{6cm} p{5cm}}
    {begin{minipage}{0.6linewidth}
     noindent {textbf{Zimba}}
    The Zimba device is connected to handpumps. For every 10L-bach of water that flows through the device, it dispenses a dose of 3 mL of NaOCl solution into a mixing chamber. The chlorinated water is then flushed by an automatic siphon into a storage reservoir and dispensed via a tap.
    Difficulties experienced with the application of this device
    are the variations in dosing due to clogging of the regulator . Moreover, the Zimba dispenser uses a non-standard low concentration NaOCl solution (0.4%), which requires dilution before filling.
    end{minipage}} & 

    {begin{minipage}{0.45linewidth}
       centering

       Some thing is missing here
       %includegraphics[scale=0.9]{Zimba.PNG}
       %rule{0.9linewidth}{0.5linewidth}
       %caption{Zimba citep{Amin2016}}
       label{fig:Zimba}
    end{minipage}}

    end{tabular}
end{document}

% please compile with full tex. I hope this is useful to you. I compiled it and saw that it works.

Answered by Vaman Kulkarni on February 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP