두 그림 사이에 텍스트 배치

두 그림 사이에 텍스트 배치

저는 이제 막 LaTex를 시작했고 사용자 정의 제목 페이지를 만들려고 합니다. 우리 실험실 보고서에는 첨부된 이미지와 유사한 내용이 필요합니다. 두 그림 사이의 텍스트를 정렬하는 데 문제가 있습니다. 이미지처럼 정렬하려면 어떻게 해야 하나요?

제목 페이지를 처음부터 만들고 있으므로 다음과 같은 두 개의 .tex 문서가 있습니다.

파일 test_title.tex

\documentclass[pdftex,12pt,letterpaper]{report}

\usepackage[pdftex]{graphicx}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}

\begin{document}

\input{./title.tex}
\end{document}

파일제목.tex

\begin{titlepage}

\begin{flushleft}
\includegraphics[width=0.15\textwidth]{./UPRMlogo}
\end{flushleft}

\begin{flushright}
\includegraphics[width=0.15\textwidth]{./UPRMlogo}
\end{flushright}

\begin{center}
University of Puerto Rico \\
Mayaguez Campus\\
Mechanical Engineering Department\\
\end{center}

\end{titlepage}

예

답변1

여기에는 한 가지 방법이 있지만 다양한 옵션이 있습니다. %허위 공백으로 인해 과도한 경고가 발생하는 것을 방지하려면 문자를 사용하십시오 \hbox.

\documentclass{article}
\usepackage{graphicx}

\begin{document}
\noindent% just to prevent indentation narrowing the line width for this line
\includegraphics[width=0.15\textwidth]{example-image-a}%
\begin{minipage}[b]{0.7\textwidth}
\centering
University of Puerto Rico \\
Mayaguez Campus\\
Mechanical Engineering Department
\end{minipage}%
\includegraphics[width=0.15\textwidth]{example-image-b}
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보