미니페이지의 가로 가운데 맞춤 텍스트

미니페이지의 가로 가운데 맞춤 텍스트

미니페이지 환경에서 텍스트의 가로 정렬에 문제가 있습니다.

아래는 내 코드입니다.

\documentclass[12pt,paper=a4,answers, addpoints]{exam}
\usepackage{graphicx,lastpage}
\usepackage{upgreek}
\usepackage{censor}
\usepackage{amsmath}
\usepackage{eurosym}
\censorruledepth=-.2ex
\censorruleheight=.1ex
\hyphenpenalty 10000
\usepackage[paperheight=10.5in,paperwidth=8.27in,bindingoffset=0in,left=0.8in,right=1in,
top=1in,bottom=1in,headsep=1.5\baselineskip]{geometry}
\flushbottom
\usepackage[normalem]{ulem}
\usepackage[utf8]{inputenc}
\renewcommand\ULthickness{2pt} %%---> For changing thickness of underline
\setlength\ULdepth{1.5ex}%\maxdimen ---> For changing depth of underline
\renewcommand{\baselinestretch}{1}
\pagestyle{empty}

\pagestyle{headandfoot}
\headrule
\newcommand{\continuedmessage}{%
\ifcontinuation{\footnotesize Question \ContinuedQuestion\ continues\ldots}{}%
}
\runningheader{\footnotesize Dipartimento di Economia}
{\footnotesize Analisi delle Politiche Pubbliche -- LM56}
{\footnotesize Pagina \thepage\ di \numpages}
\footrule
\footer{\footnotesize}
{}
{\ifincomplete{\footnotesize Question \IncompleteQuestion\ Continua nella pagina successiva}{\iflastpage{\footnotesize \textit{\bfseries Fine domande di esame}}{\footnotesize \textit{\bfseries Continua nella pagina successiva}}}}

\usepackage{cleveref}
\crefname{figure}{figure}{figures}
\crefname{question}{question}{questions}
\renewcommand\thequestion{\arabic{question}}
\renewcommand{\questionlabel}{\thequestion)}
\renewcommand{\questionshook}{%
\setlength{\leftmargin}{0pt}%
\setlength{\labelwidth}{-\labelsep}%
}

\nopointsinmargin 
\pointpoints{Mark}{Marks}

\marginpointname{\points}
\pointformat{\boldmath\themarginpoints}
\bracketedpoints

\begin{document}

\thispagestyle{empty}

\noindent
\begin{minipage}{.20\textwidth}
\includegraphics[width=2.5cm]{logo} 
\end{minipage}
\begin{minipage}[c]{.65\textwidth}
{\bfseries Ph.D. in Economics, Management and Statistics}\par
\medskip
{\bfseries University of Catania \& University of Messina}\par
\medskip
\end{minipage}
\medskip
\begin{minipage}{.2\textwidth}
\includegraphics[width=2.5cm]{logo-unict} 
\end{minipage}
\par
\vspace{-3ex}
\begin{center}
\textit{\bfseries \LARGE{Microeconomics}}\par
\end{center}
\vspace{-3ex}
\begin{minipage}{\textwidth}
{\bfseries Lecturers:}
\begin{tabular}[t]{@{}l@{}}
  Dr. X\\
  Dr. Y\\
  Dr. Z\\
\bigskip
\end{tabular}
\end{minipage}
\begin{minipage}{\textwidth}
\textit{\textbf{Name:}}{\hrulefill}\par
\bigskip
\textit{\textbf{Signature:}} {\hrulefill}\par
\bigskip 
\end{minipage}
\begin{center}
\rule{\textwidth}{1pt}
\end{center}
\end{document}

내 문제는 빨간색 상자의 텍스트를 가로 중앙에 두고 싶다는 것입니다. 제가 이걸 얻을 가능성이 있나요? 미리 감사드립니다

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

부록

David의 제안 후에 이것이 제가 얻은 것입니다. 광학 효과로 인해 텍스트가 rhs의 로고에 더 가깝게 보이는지 아니면 실제로 더 가까운지 확실하지 않습니다. 결과 사진은 아래와 같습니다.

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

두 번째 부록

David의 제안에 따라 코드를 다음과 같이 수정했습니다.

\documentclass[12pt,paper=a4,answers, addpoints]{exam}
\usepackage{graphicx,lastpage}
\usepackage{upgreek}
\usepackage{censor}
\usepackage{amsmath}
\usepackage{eurosym}
\censorruledepth=-.2ex
\censorruleheight=.1ex
\hyphenpenalty 10000
\usepackage[paperheight=10.5in,paperwidth=8.27in,bindingoffset=0in,left=0.8in,right=1in,
top=1in,bottom=1in,headsep=1.5\baselineskip]{geometry}
\flushbottom
\usepackage[normalem]{ulem}
\usepackage[utf8]{inputenc}
\renewcommand\ULthickness{2pt} %%---> For changing thickness of underline
\setlength\ULdepth{1.5ex}%\maxdimen ---> For changing depth of underline
\renewcommand{\baselinestretch}{1}
\pagestyle{empty}

\pagestyle{headandfoot}
\headrule
\newcommand{\continuedmessage}{%
\ifcontinuation{\footnotesize Question \ContinuedQuestion\ continues\ldots}{}%
}
\runningheader{\footnotesize Dipartimento di Economia}
{\footnotesize Analisi delle Politiche Pubbliche -- LM56}
{\footnotesize Pagina \thepage\ di \numpages}
\footrule
\footer{\footnotesize}
{}
{\ifincomplete{\footnotesize Question \IncompleteQuestion\ Continua nella pagina successiva}{\iflastpage{\footnotesize \textit{\bfseries Fine domande di esame}}{\footnotesize \textit{\bfseries Continua nella pagina successiva}}}}

\usepackage{cleveref}
\crefname{figure}{figure}{figures}
\crefname{question}{question}{questions}
\renewcommand\thequestion{\arabic{question}}
\renewcommand{\questionlabel}{\thequestion)}
\renewcommand{\questionshook}{%
\setlength{\leftmargin}{0pt}%
\setlength{\labelwidth}{-\labelsep}%
}

\nopointsinmargin 
\pointpoints{Mark}{Marks}

\marginpointname{\points}
\pointformat{\boldmath\themarginpoints}
\bracketedpoints

\begin{document}

\thispagestyle{empty}

\noindent
\begin{minipage}{.17\textwidth}
\begin{flushleft}
\includegraphics[width=2.5cm]{logo}
\end{flushleft} 
\end{minipage}
\begin{minipage}[c]{.66\textwidth}\centering
{\bfseries Ph.D. in Economics, Management and Statistics}\par
\medskip
{\bfseries University of Catania \& University of Messina}\par
\medskip
\end{minipage}
\medskip
\begin{minipage}{.17\textwidth}
\begin{flushright}
\includegraphics[width=2.5cm]{logo-unict}
\end{flushright} 
\end{minipage}
\par
\vspace{-3ex}
\begin{center}
\textit{\bfseries \LARGE{Microeconomics}}\par
\end{center}
\vspace{-3ex}
\begin{minipage}{\textwidth}
{\bfseries Lecturers:}
\begin{tabular}[t]{@{}l@{}}
  Dr. X\\
  Dr. Y\\
  Dr. Z\\
\bigskip
\end{tabular}
\end{minipage}
\begin{minipage}{\textwidth}
\textit{\textbf{Name:}}{\hrulefill}\par
\bigskip
\textit{\textbf{Signature:}} {\hrulefill}\par
\bigskip 
\end{minipage}
\begin{center}
\rule{\textwidth}{1pt}
\end{center}
\end{document}

이제 잘 작동합니다. 결과는 아래와 같습니다.

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

답변1

치수를 추측할 필요가 없으며 계산을 TeX에 맡기십시오.

\documentclass{article}
\usepackage[
  paperheight=10.5in,
  paperwidth=8.27in,
  bindingoffset=0in,
  left=0.8in,
  right=1in,
  top=1in,
  bottom=1in,
  headsep=1.5\baselineskip,
  showframe,% just for the example
]{geometry}

\usepackage{graphicx,varwidth}

\begin{document}

\begin{center}
\begin{tabular}{@{}c@{}}
\includegraphics[width=2.5cm]{example-image-1x1}
\end{tabular}%
\hfill
\begin{varwidth}{\textwidth}
\centering\bfseries
Ph.D. in Economics, Management and Statistics\\
University of Catania \& University of Messina
\end{varwidth}%
\hfill
\begin{tabular}{@{}c@{}}
\includegraphics[width=2.5cm]{example-image-1x1}
\end{tabular}%
\end{center}

\end{document}

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

관련 정보