左にテキスト、右にキャプション付きの図

左にテキスト、右にキャプション付きの図

文書の左側にテキスト、右側に図を表示しようとしています。残念ながら、まだいくつか問題があります。最初の例では、文字がメイン テキストの文字と異なります (フォント、ギャップ、タイプ)。2 番目の例では、キャプションが表示されません。今のところ解決策が見つかっていないので、ご協力いただければ幸いです。

1) 例

\documentclass[11pt]{article}
    \begin{document} 
\begin{figure}[htbp]
    \begin{minipage}{0.4\textwidth}
   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.4\textwidth}
     \centering
      \includegraphics[width=0.8\textwidth]{Zimba.PNG}
      \caption{Bild rechts}
    \end{minipage}
  \end{figure}
\end{document}

2) 例

    \documentclass[11pt]{article}

\begin{document} 
    \begin{minipage}{0.6\linewidth}
     \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.45\linewidth}
       \centering
       \includegraphics[scale=0.9]{Zimba.PNG}
       %\rule{0.9\linewidth}{0.5\linewidth}
       \caption{Zimba \citep{Amin2016}}
       \label{fig:Zimba}
    \end{minipage}

    \end{document}

答え1

パッケージによって実装されている何かをしようとしているように見えますwrapfig。簡単な例を次に示します。

\documentclass{scrartcl}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{lipsum}

\begin{document}
    \lipsum[1]
    \begin{wrapfigure}{r}{.5\linewidth}
        \includegraphics[width=\linewidth]{example-image-a}
        \caption{Bild rechts}
    \end{wrapfigure}
    
    \lipsum[2-3]
\end{document}

出力は次のようになります。

ここに画像の説明を入力してください

答え2

\documentclass[11pt]{article}
    \begin{document} 
\begin{tabular} {p{6cm} p{5cm}}
    {\begin{minipage}{0.4\textwidth}
   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.4\textwidth}
     \centering
    I would like to say that I do not have any pictures, text or table. % \includegraphics[width=0.8\textwidth]
%      \caption{Bild rechts}
    \end{minipage}}
  \end{tabular}\\
  \vspace{1cm}

 \begin{tabular} {p{6cm} p{5cm}}
    {\begin{minipage}{0.6\linewidth}
     \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.45\linewidth}
       \centering

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

    \end{tabular}
\end{document}

% 完全な TEX でコンパイルしてください。これが役に立つことを願っています。コンパイルして動作を確認しました。

関連情報