我試著用乳膠制作我的簡歷。今天我嘗試了一整天在我的姓名和地址旁邊放一張圖片,但我沒有得到它的作業。
這是我到目前為止的乳膠代碼:
\documentclass{article}
\usepackage{titlesec}
\usepackage{titling}
\usepackage[margin=2cm]{geometry}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\titleformat{\section}[frame]
{\huge}
{\thesection}
{0em}
{\filcenter}[\titlerule]
\titleformat{\subsection}[runin]
{\Large \bfseries}
{\hspace{-5mm}}
{0em}
{}
\titlespacing{\subsection}
{0em}{0em}{4em}
\renewcommand{\maketitle}
{
\begin{center}
{\huge \bfseries
\theauthor\\}
\vspace{0.25em}
Anystreet 1
\\
0000 Any
\\
(00) 00 000 00 00 $\vert$ [email protected]
\end{center}
}
\begin{document}
\author{hans muster}
\maketitle
\begin{figure}[h]
\includegraphics[scale=0.15, right]{muster.jpg}
\end{figure}
\end{document}
uj5u.com熱心網友回復:
漂浮環境的一個目的figure是乳膠會為它選擇一個好地方。如果您在特定位置需要某些東西,請不要使用浮動。
相反,您可以例如使用 minipages 將影像包含在您的標題中:
\documentclass{article}
\usepackage{titlesec}
\usepackage{titling}
\usepackage[margin=2cm]{geometry}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\titleformat{\section}[frame]
{\huge}
{\thesection}
{0em}
{\filcenter}[\titlerule]
\titleformat{\subsection}[runin]
{\Large \bfseries}
{\hspace{-5mm}}
{0em}
{}
\titlespacing{\subsection}
{0em}{0em}{4em}
\renewcommand{\maketitle}{
\begin{minipage}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-duck}
\end{minipage}\hfill%
\begin{minipage}{.5\textwidth}
\centering
{\huge \bfseries
\theauthor\\}
\vspace{0.25em}
Anystreet 1
\\
0000 Any
\\
(00) 00 000 00 00 $\vert$ [email protected]
\end{minipage}\hfill%
\begin{minipage}{.2\textwidth}
\includegraphics[width=\linewidth]{example-image-duck}
\end{minipage}%
}
\begin{document}
\author{hans muster}
\maketitle
\end{document}
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/342491.html
上一篇:我無法將網站中的影像更改為回應式
下一篇:image://前綴是什么?
