사진 정렬이 포함된 이력서 주소

사진 정렬이 포함된 이력서 주소

이력서 정렬에 문제가 있습니다. 이력서 왼쪽 상단에 주소를 표시하고 오른쪽 상단에 사진을 표시하고 싶습니다. 다음은 코드 조각입니다.

\begin{document}
\thispagestyle{empty} % this page has no header  
\name{john smith\\[12pt]}
\vspace{0pt} 
        \address{{\bf Permanent Address} \\ lablab12, 12345\\
 somewhere, Europe\\ Tel:(+9) 1238421\\Email :[email protected]}     
\address{\includegraphics[width=3cm]{CV}}

추신: 트릭으로 내 이름으로 사진을 표시하기 위해 \address명령을 사용했지만 사진은 다시 다음 형식으로 나타납니다.

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

보시다시피 사진은 주소 위에 표시되고 주소에 맞춰 정렬되지 않습니다.

답변1

당신이 보여준 것에서 (구식)을 사용할 필요가 없습니다res문서 클래스. 그러나 원한다면 문서의 해당 부분을 설정하기 위해 제목 관련 매크로를 사용하지 않는 것이 좋습니다. 그대로 설정하세요.

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

\documentclass{res}

\usepackage[export]{adjustbox}

\begin{document}

\thispagestyle{empty} % this page has no header  

\begin{center}
  \bfseries John Smith
\end{center}

\begin{tabular}[t]{@{}l}
  \bfseries Permanent Address \\
  lablab12, 12345 \\
  somewhere, Europe \\
  Tel:(+9) 1238421 \\
  Email :[email protected]
\end{tabular}
\hfill
\includegraphics[width=3cm,valign=t]{example-image}%

\begin{resume}

Some content here.

\end{resume}

\end{document}

주소는 [t]op-aligned 내부에 설정되며 tabular사진은 오른쪽으로 푸시됩니다( 사용 \hfill).adjustboxexport옵션을 사용하면 다음 옵션을 사용할 수 있습니다.graphicx님의 \includegraphics명령입니다. 따라서 이미지는 를 통해 이미지의 op 에도 본질적으로 align적용 됩니다 .vtvalign=t

관련 정보