我使用 sharelatex Academic CV 模板,花了几个小时却没找到如何做到这一点。我有一段文本,没有任何用户创建的换行符,但跨越多行,因此有自动创建的换行符。我用用户创建的换行符结束了这段文本。
我有一系列这样的文本块。这些是我文章的参考资料。我希望每个参考资料(每个文本块)在视觉上都连在一起,但块之间留有一定的空间(即,每个参考资料都与其他参考资料区分开来)。
让我以文本格式演示一下我希望它看起来是什么样子:
Doe, J. (2012)。洗脑与极权主义影响。载于 VS Ramachandran (编),《人类行为百科全书》(第二版)(第 406-412 页)。加利福尼亚州圣地亚哥:Elsevier Academic Press。
Doe, J. 和 Buddy, C. (2011)。对他人的初步印象。收录于 K. Deaux 和 M. Snyder (Eds.) 合著的《牛津人格与社会心理学手册》(第 337-366 页)。纽约:牛津大学出版社。
我知道我可以手动插入垂直空格。但是,这会很低效,因为我必须对很多此类引用执行此操作。
这是我的简历的序言:
\documentclass[10pt, a4paper]{article}
\usepackage{fontspec}
% DOCUMENT LAYOUT
\usepackage{geometry}
\geometry{a4paper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in}
\setlength\parindent{0in}
\linespread{1.03} %Adil added this to change linespacing, default is 1
% FONTS
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{xunicode}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
%\setromanfont [Ligatures={Common}, Numbers={OldStyle}, Variant=01]{Linux Libertine O}
%\setmonofont[Scale=0.8]{Monaco}
%%% modified by Karol Kozioł for ShareLaTeX use
\setmainfont[
Ligatures={Common}, Numbers={OldStyle}, Variant=01,
BoldFont=LinLibertine_RB.otf,
ItalicFont=LinLibertine_RI.otf,
BoldItalicFont=LinLibertine_RBI.otf
]{LinLibertine_R.otf}
\setmonofont[Scale=0.8]{DejaVuSansMono.ttf}
% ---- CUSTOM COMMANDS
\chardef\&="E050
\newcommand{\html}[1]{\href{#1}{\scriptsize\textsc{[html]}}}
\newcommand{\pdf}[1]{\href{#1}{\scriptsize\textsc{[pdf]}}}
\newcommand{\doi}[1]{\href{#1}{\scriptsize\textsc{[doi]}}}
% ---- MARGIN YEARS
\usepackage{marginnote}
\newcommand{\amper{}}{\chardef\amper="E0BD }
\newcommand{\years}[1]{\marginnote{\scriptsize #1}}
\renewcommand*{\raggedleftmarginnote}{}
\setlength{\marginparsep}{7pt}
\reversemarginpar
% HEADINGS
\usepackage{sectsty}
\usepackage[normalem]{ulem}
\sectionfont{\mdseries\upshape\Large}
\subsectionfont{\mdseries\scshape\normalsize}
\subsubsectionfont{\mdseries\upshape\large}
% PDF SETUP
% ---- FILL IN HERE THE DOC TITLE AND AUTHOR
\usepackage[%dvipdfm,
bookmarks, colorlinks, breaklinks,
% ---- FILL IN HERE THE TITLE AND AUTHOR
pdftitle={S. Adil Sarıbay - vita},
pdfauthor={S. Adil Sarıbay},
pdfproducer={http://nitens.org/taraborelli/cvtex}
]{hyperref}
\hypersetup{linkcolor=blue,citecolor=blue,filecolor=black,urlcolor=MidnightBlue}
以下是一个小示例:
\section*{Publications}
\subsection*{Journal articles}
\years{2015} Günsoy, C., Cross, S. E., \textbf{Sarıbay, S. A.}, Olcaysoy-Okten, I., \& Kurutaş, M. (2015). Would you post that picture and let your dad see it? Culture, honor, and Facebook. \emph{European Journal of Social Psychology, 45}, 323-335.\\
\years{2012} \textbf{Sarıbay, S. A.}, Rim, S., \& Uleman, J. S. (2012). Primed self-construal, culture, and stages of impression formation. \emph{Social Psychology [Special Issue on Culture as Process], 43 (4),} 196-204.\\
Uleman, J. S., Rim, S., \textbf{Sarıbay, S. A.}, \& Kressel, L. (2012). Controversies, questions, and prospects for spontaneous social inferences. \emph{Social and Personality Psychology Compass, 6 (9),} 657-673.\\
parskip 建议有点作用,但它也部分弄乱了 \years 和文本之间的对齐。
答案1
您可以设置\parskip
,但这需要进行微小的修改,以便在段落已开始时显示 。我只在本地设置\years
,用于出版物列表。\marginnote
\parskip
我还重新组织了您的前言,先包含所有软件包,然后再包含设置。请注意,不应加载xltxtra
和;只需加载。xunicode
fontspec
绝不用于\\
结束一个段落。它只应在有意义的上下文中使用,即您必须明确标记新行,例如tabular
或flushleft
。
\documentclass[10pt, a4paper]{article}
\usepackage{fontspec}
\usepackage{geometry}
\usepackage{marginnote}
\usepackage{sectsty}
\usepackage[normalem]{ulem}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{fontspec}
\usepackage[
bookmarks, colorlinks, breaklinks,
% ---- FILL IN HERE THE TITLE AND AUTHOR
pdftitle={S. Adil Sarıbay - vita},
pdfauthor={S. Adil Sarıbay},
pdfproducer={http://nitens.org/taraborelli/cvtex}
]{hyperref}
% FONTS
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[
Ligatures={Common}, Numbers={OldStyle}, Variant=01,
BoldFont=LinLibertine_RB.otf,
ItalicFont=LinLibertine_RI.otf,
BoldItalicFont=LinLibertine_RBI.otf
]{LinLibertine_R.otf}
\setmonofont[Scale=0.8]{DejaVuSansMono.ttf}
% ---- SETTINGS
\geometry{a4paper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in}
\setlength\parindent{0in}
\linespread{1.03} %Adil added this to change linespacing, default is 1
\hypersetup{linkcolor=blue,citecolor=blue,filecolor=black,urlcolor=MidnightBlue}
% ---- CUSTOM COMMANDS
\chardef\&="E050
\newcommand{\html}[1]{\href{#1}{\scriptsize\textsc{[html]}}}
\newcommand{\pdf}[1]{\href{#1}{\scriptsize\textsc{[pdf]}}}
\newcommand{\doi}[1]{\href{#1}{\scriptsize\textsc{[doi]}}}
% ---- MARGIN YEARS
\newcommand{\amper{}}{\chardef\amper="E0BD }
\newcommand{\years}[1]{%
\par\leavevmode\marginnote{\scriptsize #1}\ignorespaces
}
\renewcommand*{\raggedleftmarginnote}{}
\setlength{\marginparsep}{7pt}
\reversemarginpar
% HEADINGS
\sectionfont{\mdseries\upshape\Large}
\subsectionfont{\mdseries\scshape\normalsize}
\subsubsectionfont{\mdseries\upshape\large}
% PDF SETUP
% ---- FILL IN HERE THE DOC TITLE AND AUTHOR
\begin{document}
\section*{Publications}
\subsection*{Journal articles}
\begingroup\setlength\parskip{1ex}
\years{2015} Günsoy, C., Cross, S. E., \textbf{Sarıbay, S. A.}, Olcaysoy-Okten, I., \& Kurutaş, M.
(2015). Would you post that picture and let your dad see it? Culture, honor, and Facebook.
\emph{European Journal of Social Psychology, 45}, 323-335.
\years{2012} \textbf{Sarıbay, S. A.}, Rim, S., \& Uleman, J. S. (2012). Primed self-construal,
culture, and stages of impression formation. \emph{Social Psychology [Special Issue on Culture as
Process], 43 (4),} 196-204.
Uleman, J. S., Rim, S., \textbf{Sarıbay, S. A.}, \& Kressel, L. (2012).
Controversies, questions, and prospects for spontaneous social inferences. \emph{Social and Personality
Psychology Compass, 6 (9),} 657-673.
\endgroup
\end{document}