我正在编写简历,没有使用任何预定义的文档类,例如 moderncvn,我为其编写了如下代码:
\documentclass[12pt,a4paper]{article}
\usepackage[a4paper]{geometry}
\usepackage{hyperref,marvosym,wasysym,graphicx,wrapfig,float,color,tikz}
\newcommand{\linespace}{\\{\rule{\textwidth}{0.2mm}}\\\\}
\newcommand{\linespac}{\\
\begin{tikzpicture}
\draw [line width=0.5mm, red,dash pattern={on 7pt off 2pt on 1pt off 3pt}] (0,0) -- (\textwidth,0);
\end{tikzpicture}\\\\}
\begin{document}
{\Huge \textbf{Charles, Xavier, Ph.D.}}
\begin{wrapfigure}{o}{0.45\textwidth}
\begin{center}
\includegraphics[width=0.28\textwidth]{Xavier.jpg}
\end{center}
\end{wrapfigure}
\linespac
\begin{minipage}{0.5\textwidth}
\underline{\textbf{Institute Address}}:\\
Xavier's School for Gifted Youngsters (X-Mansion),\\
Central Park,\\
New York City,\\
United States of America\\
\end{minipage}
\begin{minipage}{0.5\textwidth}
\underline{\textbf{Permenent Address}}:\\
Xavier's School for Gifted Youngsters (X-Mansion),\\
Central Park,\\
New York City,\\
United States of America\\
\end{minipage}\\
\Letter: \href{[email protected]}{[email protected]}, \href{mailto:[email protected]}{[email protected]}\\\\
\Mobilefone: 100, 100\\\\
\phone: 911 (Institute), 912 (Home)
\linespace
\textbf{Present Position}: \\
Professor @ Xavier's School for Gifted Youngsters - From 1963
\linespace
\textbf{{Article published}}:
\begin{enumerate}
\item In some journal- A
\item In some journal- B
\end{enumerate}
{\rule{14cm}{0.2pt}}\\\\
%\linespace
\textbf{{Conference Attended and \textit{paper presented}}}:\\
\begin{itemize}
\item sometime at Oxford University with Erik Lehnsherr (Magneto)
\item sometime at Columbia University with Henry McCoy (Beast).
\end{itemize}
{\rule{14cm}{0.2pt}}\\\\
%\linespac
\textbf{{Technical Skills}}:\\\\
Professor X ordinarily possesses vast psionic powers, including telepathy; the ability to induce in others mental illusions, temporary mental or physical paralysis, and loss of specific memories or total amnesia; the projection of "mental bolts" to stun or render a person unconscious; astral projection; and the ability to sense other superhuman mutants within a small radius. At present Xavier is unable to use his psionic powers.
\linespace
\textbf{{Teaching Experience}}:\\\\
I have founded Xavier's School for Gifted Youngsters (later named the Xavier Institute) which provides a safe haven for mutants and teaches them to master their abilities and to explore and control their powers.
\linespace
\textbf{{References}}:\\\\
\begin{enumerate}
\item Henry McCoy aka The Beast,\\
1407 Graymalkin Lane,\\
Salem Center,\\
Westchester County,\\
New York.,\\
United States of America\\
\item Jean Grey aka Phoenix,\\
1407 Graymalkin Lane,\\
Salem Center,\\
Westchester County,\\
New York.,\\
United States of America\\
\end{enumerate}
{\rule{14cm}{0.2pt}}\\\\
%\linespace
\end{document}
以下是我的疑问:
如您所见,姓名散开了,“永久地址”一栏覆盖了图形。为什么会这样?我做错了什么?
此外,我希望它是这样的,其中数字位于学院地址和永久地址的中间:
如何修改代码?
- 该命令
\linespace \textbf{Present Position}: \\ Professor @ Xavier's School for Gifted Youngsters - From 1963
在两行不同的行中给出输出,如下所示:
为什么会这样?
\linespace \textbf{{Article published}}: \begin{enumerate} \item In some journal- A \item In some journal- B \end{enumerate}
输入命令后\linespace
,我收到一条错误消息“这里没有结束的行。\linespace”。但如果我用它替换它,{\rule{14cm}{0.2pt}}\\\\
它就可以完美运行。这在之前\textbf{{Technical Skills}}:\\\\
和最后也发生过。为什么会这样?- 此外,通过上述修正,第 2 点提到的问题再次出现 - 这次是针对“参加会议和发表论文”:
对于“技术技能”:
似乎 wrapfigure 做了一些事情,因为如果我评论它,一切都会顺利进行。
任何帮助都将不胜感激。
提前致谢...