我的文本和图片在小页面环境中不对齐

我的文本和图片在小页面环境中不对齐

我的图片和文本没有对齐。图片的位置比较靠下。我该如何改变这种情况?

在此处输入图片描述

\begin{minipage}{0.6\textwidth} 
some text
\end{minipage} %
\hspace{.1cm}
\begin{minipage}{0.3\textwidth} 
\setspace
\includegraphics[scale=0.39]{Images/Verhuellungsverbot ja.png}
\end{minipage}

答案1

您没有提供可用的示例,并且显示的图像显然不是由显示的代码生成的,但是

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx,setspace}
\begin{document}
\begin{minipage}{0.6\textwidth} 
some text some text some text some text some text some text
some text some text some text some text some text some text
some text some text some text some text some text some text
some text some text some text some text some text some text
some text some text some text some text some text some text
some text some text some text some text some text some text
\end{minipage} %
\hspace{.1cm}
\begin{minipage}{0.3\textwidth} 
% no idea what this is \setspace
\includegraphics[scale=0.2]{example-image}
\end{minipage}
\end{document}

生产

在此处输入图片描述

带有垂直居中的框,框之间有一个单词空间,并且间隔 0.1cm。

您可以将框顶部对齐,并将它们对齐到页边距

在此处输入图片描述

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx,setspace}
\begin{document}

\noindent
\begin{minipage}[t]{0.6\textwidth} 
some text some text some text some text some text some text
some text some text some text some text some text some text
some text some text some text some text some text some text
some text some text some text some text some text some text
some text some text some text some text some text some text
some text some text some text some text some text some text
\end{minipage}\hfill
\begin{minipage}[t]{0.3\textwidth} 
\vspace{-.5em}
\includegraphics[scale=0.2]{example-image}
\end{minipage}
\end{document}

相关内容