左邊是文字,右邊是標題的圖

左邊是文字,右邊是標題的圖

我嘗試獲取文檔左側的文本和文檔右側的圖形。不幸的是,仍然存在一些問題:在第一個範例中,字體與正文的字體不同(字體、間隙、類型)。在第二個範例中,沒有出現標題。到目前為止我找不到任何解決方案,非常感謝您的幫助!

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 進行編譯。我希望這對你有用。我編譯了它並發現它有效。

相關內容