我怎样才能在 moderncv 中插入内嵌图像?
获得任何类似的
全景图像->http://www.cutudc.com/laborais/images/CONSEL1.PNG
我尝试使用典型的 \begin{figure} ....但没有成功。
\documentclass[10pt,a4paper]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc} % replace by the encoding you are using
\usepackage[scale=0.85]{geometry}
\usepackage{microtype}
\usepackage{blindtext}
\firstname{\Huge{Manuel}}
\familyname{Dopazo Souto}
\title{\Large{Carpinteiro\newline{}\newline{}Wood worker}}
\address{Rúa dabaixo}{36.000, Pontevedra} % optional, remove the line if not wanted
\mobile{649.45.74.35} % optional, remove the line if not wanted % optional, remove the line if not wanted
%MICHI%\fax{fax (optional)} % optional, remove the line if not wanted
\email{[email protected]}
\extrainfo{Data de nacemento: 2 de Xaneiro de 1.492}
\photo[60pt]{example-image-a.jpg}
\nopagenumbers{}
\begin{document}
\newgeometry{top=1.25cm, bottom=1.25cm,right=1.61cm, left=1.61cm}% inner=1cm, outer=0.618\textwidth
\vspace*{-0.56cm}
\maketitle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\vspace*{-1.24cm}
\vspace*{-0.18cm}
\section{Formación Académica}
\cventry{2015}{Carpinteria de arriba.}{}{}{\newline{}\scriptsize{Up's wood factory.}}{}{}{\scriptsize{Xan.}}
\cventry{2009--2014}{Carpinteria de abaixo}{}{}{\newline{}\scriptsize{Down wood factory. Galicia.}}{}{}{\scriptsize{Xaquin}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Habilitaciones por (valided by) %%%% HERE I WANT TO INSERT AN IMAGE %%%%%%
}
\cventry{Lista de cousas que sabe facer: (List of items)}{Sillas, banquetas, platos, chaveiros, portas, estantes, mobles,...}{}{}{\scriptsize{Galicia}}{}{}{}
\end{document}
%% end of file `template_en.tex'.
答案1
\protect
如果你在之前添加,似乎有效,\includegraphics
即
\section{Habilitaciones por (valided by) \protect\includegraphics[height=1cm,valign=c]{example-image-16x10}}
要使用valign=c
将图像垂直居中对齐的键,您需要将其添加\usepackage[export]{adjustbox}
到序言中。
\documentclass[10pt,a4paper]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc} % replace by the encoding you are using
\usepackage[scale=0.85]{geometry}
\usepackage{microtype}
\usepackage[export]{adjustbox} % <-- added
\usepackage{blindtext}
\firstname{\Huge{Manuel}}
\familyname{Dopazo Souto}
\title{\Large{Carpinteiro\newline{}\newline{}Wood worker}}
\address{Rúa dabaixo}{36.000, Pontevedra} % optional, remove the line if not wanted
\mobile{649.45.74.35} % optional, remove the line if not wanted % optional, remove the line if not wanted
%MICHI%\fax{fax (optional)} % optional, remove the line if not wanted
\email{[email protected]}
\extrainfo{Data de nacemento: 2 de Xaneiro de 1.492}
\photo[60pt]{example-image-a.jpg}
\nopagenumbers{}
\begin{document}
\newgeometry{top=1.25cm, bottom=1.25cm,right=1.61cm, left=1.61cm}% inner=1cm, outer=0.618\textwidth
\vspace*{-0.56cm}
\maketitle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\vspace*{-1.24cm}
\vspace*{-0.18cm}
\section{Formación Académica}
\cventry{2015}{Carpinteria de arriba.}{}{}{\newline{}\scriptsize{Up's wood factory.}}{}{}{\scriptsize{Xan.}}
\cventry{2009--2014}{Carpinteria de abaixo}{}{}{\newline{}\scriptsize{Down wood factory. Galicia.}}{}{}{\scriptsize{Xaquin}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Habilitaciones por (valided by) \protect\includegraphics[height=1cm,valign=c]{example-image-16x10}}
\cventry{Lista de cousas que sabe facer: (List of items)}{Sillas, banquetas, platos, chaveiros, portas, estantes, mobles,...}{}{}{\scriptsize{Galicia}}{}{}{}
\end{document}