如何在 moderncv 中将图形垂直居中?

如何在 moderncv 中将图形垂直居中?

我想在 moderncv 中将图形垂直居中。我无法使用图形环境,也无法使用 moderncv 中的 caption 包,因此我使用 minipage 和手动标题。请考虑以下示例,以了解我的意思。

\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman

\moderncvstyle{classic} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle Moduli spaces of stable maps and curves' and 'banking'
\moderncvcolor{blue} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template

\usepackage{verbatim}

\usepackage[scale=0.75]{geometry} % Reduce document margins
%\setlength{\hintscolumnwidth}{3cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}  
\usepackage{csquotes}
\usepackage{graphicx}

%----------------------------------------------------------------------------------------
%   NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------

\firstname{Christoph} % Your first name
\familyname{Mark} % Your last name

%----------------------------------------------------------------------------------------

\begin{document}
\makecvtitle % Print the CV title

%----------------------------------------------------------------------------------------
%   EDUCATION SECTION
%----------------------------------------------------------------------------------------

\section{Works}
\begin{minipage}{\textwidth}
  \centering\includegraphics[width=\textwidth]{figure.jpg}\\
  Figur 1: heading of figure.
\end{minipage}

\end{document}

图形扩展到文本宽度,这没问题。但我想放入几张图形(总共 15 张),每张放在一页上,并垂直居中。但是,我不希望高度和宽度之间的比例发生变化。

相关内容