![文本旁边的图片](https://linux22.com/image/371576/%E6%96%87%E6%9C%AC%E6%97%81%E8%BE%B9%E7%9A%84%E5%9B%BE%E7%89%87.png)
各位,
正如您在上图中所看到的,我希望文本更高(比如它应该从图像的顶部开始)。
我的代码是:
\begin{figure}[ht]
\centering
\includegraphics[scale=1]{Images/GIS_mapping_Software.jpg}
\caption{test}
\label{GIS_Mapping_Software}
\end{minipage}%
\begin{minipage}[t]{10cm}
As shown on figure ~\ref{GIS_Mapping_Software}, the purpose of the GIS is to display multiple maps on one single map.\\
For example, a single map could regroup sites that produces pollution and sensitive sites to pollution. \\
\end{minipage}
\end{figure}
有什么办法可以改变我的代码,使文本从图像的顶部开始吗?
答案1
在修正您的代码片段并添加文档缺失的部分后(您的代码片段成为完整的小文档:观察前言,其中添加了启用上述解决方案的包)。
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage[export]{adjustbox}
\begin{document}
\begin{figure}[ht]
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[%scale=1
width=0.9\linewidth, valign=t]{Images/GIS_mapping_Software.jpg}
\caption{test}
\label{GIS_Mapping_Software}
\end{minipage}%
\begin{minipage}[t]{0.5\linewidth}
As shown on figure ~\ref{GIS_Mapping_Software}, the purpose of the GIS is to display multiple maps on one single map.\\
For example, a single map could regroup sites that produces pollution and sensitive sites to pollution. \\
\end{minipage}
\end{figure}
\end{document}