我尝试将文本放在文档左侧,将图形放在文档右侧。不幸的是,仍然存在一些问题:在第一个示例中,字体与正文的字体不同(字体、间隙、类型)。在第二个示例中,没有出现标题。到目前为止,我找不到任何解决方案,如果您能提供任何帮助,我将不胜感激!
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}
% 请用完整文本进行编译。希望这对您有用。我编译了它并发现它可以工作。