将图像置于预设文档的中心

将图像置于预设文档的中心

所以我有这个用于文档标题的脚本。https://i.stack.imgur.com/mmm9b.png

问题在于,它将图标放在文档的左上角,而不是与页眉的其余部分一起放在文字的顶部。 https://gyazo.com/1bfee00b6034116c96d3407b18db2bfc

我应该怎么做才能将其正确地放置在文字的中间?

代码:

\fontsize{11}{9}\selectfont
\parbox{1.5cm}{
\begin{center}
    \includegraphics{sigla_documente}
\end{center}
}
\parbox{17.4cm}{
\fontsize{11}{9}\selectfont
\centerline{Camera Executorilor Judec\v atore\c sti de pe l\^ ang\v a Curtea de Apel \CurteApel}
\centerline{\bf BIROUL EXECUTORILOR JUDEC\v ATORE\c STI ASOCIA\c TI}
\fontsize{11}{9}\selectfont
\centerline{\bf \MareNumeExecutor}

\begin{center}
\textbf{------------------------------------------------------------}
%\line(1,0){400}
\end{center}

\fontsize{10}{9}\selectfont
\centerline{\bf \ExecutorAdresa}
\centerline{\bf Cod po\c stal: \CodPostal, Tel./fax \TelFax}
\centerline{\bf Cod fiscal: \CIFExecutor,  email: \ExecutorEmail}
}

\leftline{\ }
\leftline{\ }
\fontsize{12}{10}\selectfont

答案1

尝试这个\centering

在此处输入图片描述

\documentclass{article}
\usepackage{graphicx}


\begin{document}
\fontsize{11}{9}\selectfont


\begin{center}
\fontsize{11}{9}\selectfont
\centerline{Camera Executorilor Judec atore sti de pe l\^ ang a Curtea de Apel }
\centerline{\bf BIROUL EXECUTORILOR JUDEC ATORE STI ASOCIA TI}
\fontsize{11}{9}\selectfont
\centerline{\bf MareNumeExecutor}
\end{center}

\centering \includegraphics[width=2cm]{example-image-a}

\begin{center}
\textbf{------------------------------------------------------------}
%\line(1,0){400}
\end{center}

\begin{center}
\fontsize{10}{9}\selectfont
\centerline{\bf ExecutorAdresa}
\centerline{\bf Cod po stal: CodPostal, Tel./fax TelFax}
\centerline{\bf Cod fiscal: CIFExecutor,  email: ExecutorEmail}
\end{center}


\leftline{\ }
\leftline{\ }
\fontsize{12}{10}\selectfont
\end{document}     

相关内容