
Tengo un problema con la alineación horizontal del texto dentro de un entorno de minipágina.
A continuación se muestra mi código.
\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}
Mi problema es que me gustaría tener el texto en el cuadro rojo centrado horizontalmente. ¿Hay alguna posibilidad de que pueda conseguir esto? gracias de antemano
APÉNDICE
Después de la sugerencia hecha por David, esto es lo que obtuve. No estoy seguro de si el texto parece estar más cerca del logotipo del lado derecho debido a un efecto óptico o de hecho está más cerca. La imagen del resultado está a continuación:
SEGUNDO ADENDA
Después de las sugerencias de David, modifiqué mi código de la siguiente manera:
\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}
Funciona bien ahora. El resultado está a continuación:
Respuesta1
No es necesario que adivine las dimensiones, deje los cálculos en manos de 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}