在同一空間插入圖形

在同一空間插入圖形

目前,我正在寫我的履歷,我寫

\documentclass[a4paper,12pt]{letter}
\usepackage{tabularx}
\usepackage{graphicx}
\graphicspath{ {C:/Users/asus_user/Pictures/} }
\begin{document}

\vspace*{-6cm}

\flushright
\begin{frame}{}
    \includegraphics[width=2.75cm, height=4cm]{head}
\end{frame}

\begin{center}
    WANG \\
    Tel.(Mobile) : 12345 \\
    Tel. (Home) : 12345 \\
    Email : alanwang@my
\end{center}

\end{document}

我想將我的照片插入這四行的右側。

但我所希望的卻沒有發生。我該如何修復它?謝謝

答案1

這是一種嵌套tabular方法。當然,根據照片的實際大小,需要進行一些調整,以及左/右對齊(例如刪除環境center)和頁面的幾何形狀(例如上邊距)。

\documentclass[a4paper,12pt]{letter}

\usepackage{graphicx}

%\graphicspath{ {C:/Users/asus_user/Pictures/} }
\begin{document}

%\vspace*{-6cm}


\begin{center}
\begin{tabular}{lr}
\begin{tabular}[b]{ll}
  \multicolumn{2}{c}{WANG} \tabularnewline
    Tel.(Mobile): &12345 \tabularnewline
    Tel. (Home): & 12345 \tabularnewline
    Email: & alanwang@my \tabularnewline
\end{tabular}
&
\begin{tabular}[b]{r}
\includegraphics[width=2.75cm, height=4cm]{beeduck}
\end{tabular}
\end{tabular}


\begin{tabular}{lr}
\begin{tabular}{ll}
  \multicolumn{2}{c}{WANG} \tabularnewline
    Tel.(Mobile): &12345 \tabularnewline
    Tel. (Home): & 12345 \tabularnewline
    Email: & alanwang@my \tabularnewline
\end{tabular}
&
\begin{tabular}{r}
\includegraphics[width=2.75cm, height=4cm]{beeduck}
\end{tabular}
\end{tabular}

\end{center}

\end{document}

在此輸入影像描述

答案2

您可以使用列環境並建立適當的列以獲得所需的效果。這是我用來產生圖片的程式碼

\begin{columns}[T] \column{0.43\linewidth}\begin{block}{Assumption} \begin{itemize} \item Text. \item Text. \item Text. \item Text. \end{itemize} \end{block} \column{0.5\linewidth} \begin{figure}[p] \centering \includegraphics[width=1\textwidth]{../01_pic/architecture.pdf} \end{figure} \end{columns}

在此輸入影像描述

相關內容