![如何将参考书目移至右侧?](https://linux22.com/image/427254/%E5%A6%82%E4%BD%95%E5%B0%86%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%E7%A7%BB%E8%87%B3%E5%8F%B3%E4%BE%A7%EF%BC%9F%20.png)
我在使用 Biblatex 时遇到了一个小的对齐问题。我的引文放在一个单独的文件中,并像往常一样引用它们。但是,我希望它们水平移动到右侧以与我的其余文本对齐,也就是说,数字应该与绿色垂直线对齐(抱歉图片不好):
这是我的代码:
\documentclass[11pt]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{red}
%%%% adjust the page margins
\usepackage[scale=0.78, top=0.5in, bottom=0.5in, footskip=0.2cm]{geometry}
\usepackage{eurosym}
\usepackage[T1]{fontenc}
\usepackage[sc,osf]{mathpazo}
\usepackage[maxnames=99, sorting=none]{biblatex}
\usepackage[utf8]{inputenc}
\renewcommand*{\namefont}{\fontsize{20}{20}\mdseries\upshape}
\addbibresource{publications.bib}
% personal data
\name{Name}{Name}
\phone[mobile]{111-111-1111}
\begin{document}
\makecvtitle{\vspace{-1.0cm}}
\section{Education}
\cventry{2021 -- 2022}{Master of Science in Computer Science}{XXX}{XXX}{}{GPA: 4.0/4.0}
\cventry{2018 -- 2021}{Bachelor of Science in Computer Science}{XXX}{XXX}{GPA: 3.99/4.0}{Summa Cum Laude\endgraf Accepted to Accelerated Bachelor's to Master's Program\endgraf Accepted to Disciplinary Honors Program}
\cventry{2017 -- 2018}{Transfer Degree}{XXX}{XXX}{GPA: 4.0/4.0}{}
\section{Experience}
\nocite{*}
\printbibliography[title={Research}]
\section{Interests}
\end{document}
我觉得这是一个非常愚蠢且简单的问题,但我就是想不通。任何帮助都将不胜感激!
答案1
完全是黑客行为。
以手册中的一个参考书目环境代码示例 (p106) 为例,并在左边距添加 73pt,得到如下结果:
这意味着必定有一个适当的解决方案。
平均能量损失
\documentclass[11pt]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{red}
%%%% adjust the page margins
\usepackage[scale=0.78, top=0.5in, bottom=0.5in, footskip=0.2cm]{geometry}
\usepackage{eurosym}
\usepackage[T1]{fontenc}
\usepackage[sc,osf]{mathpazo}
\usepackage[maxnames=99, sorting=none]{biblatex}
\usepackage[utf8]{inputenc}
\renewcommand*{\namefont}{\fontsize{20}{20}\mdseries\upshape}
%\addbibresource{publications.bib}
\addbibresource{biblatex-examples.bib}
\defbibenvironment{bibliography}
{\list
{\printfield[labelnumberwidth]{labelnumber}}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth + 73pt}%
\setlength{\labelsep}{\biblabelsep}%
\addtolength{\leftmargin}{\labelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}
% personal data
\name{Name}{Name}
\phone[mobile]{111-111-1111}
\begin{document}
\makecvtitle{\vspace{-1.0cm}}
\section{Education}
\cventry{2021 -- 2022}{Master of Science in Computer Science}{XXX}{XXX}{}{GPA: 4.0/4.0}
\cventry{2018 -- 2021}{Bachelor of Science in Computer Science}{XXX}{XXX}{GPA: 3.99/4.0}{Summa Cum Laude\endgraf Accepted to Accelerated Bachelor's to Master's Program\endgraf Accepted to Disciplinary Honors Program}
\cventry{2017 -- 2018}{Transfer Degree}{XXX}{XXX}{GPA: 4.0/4.0}{}
Lorem \autocite{worman} ipsum \autocite{sigfridsson}
dolor \autocite{nussbaum} sit \autocite{aksin}
\section{Experience}
%\nocite{*}
\printbibliography[title={Research}]
\section{Interests}
\end{document}
答案2
方法不同,足以在逻辑上分开。
怎么样:
将参考书目设为\cventry
,用合适的负片将其稍微上移\vspace
,并将其标题移入 CV 中并将其自己的标题重新定义为{}
?
平均能量损失
\documentclass[11pt]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{red}
%%%% adjust the page margins
\usepackage[scale=0.78, top=0.5in, bottom=0.5in, footskip=0.2cm]{geometry}
\usepackage{eurosym}
\usepackage[T1]{fontenc}
\usepackage[sc,osf]{mathpazo}
\usepackage[maxnames=99, sorting=none]{biblatex}
\usepackage[utf8]{inputenc}
\renewcommand*{\namefont}{\fontsize{20}{20}\mdseries\upshape}
%\addbibresource{publications.bib}
\addbibresource{biblatex-examples.bib}
\defbibheading{bibliography}[\bibname]{}
% personal data
\name{Name}{Name}
\phone[mobile]{111-111-1111}
\begin{document}
\makecvtitle{\vspace{-1.0cm}}
\section{Education}
\cventry{2021 -- 2022}{Master of Science in Computer Science}{XXX}{XXX}{}{GPA: 4.0/4.0}
\cventry{2018 -- 2021}{Bachelor of Science in Computer Science}{XXX}{XXX}{GPA: 3.99/4.0}{Summa Cum Laude\endgraf Accepted to Accelerated Bachelor's to Master's Program\endgraf Accepted to Disciplinary Honors Program}
\cventry{2017 -- 2018}{Transfer Degree}{XXX}{XXX}{GPA: 4.0/4.0}{}
Lorem \autocite{worman} ipsum \autocite{sigfridsson}
dolor \autocite{nussbaum} sit \autocite{aksin}
\section{Experience}
With cventry
%\nocite{*}
\section{Research}
\cventry{}{\vspace*{-1.2\baselineskip}\printbibliography}{}{}{}{}
\section{Interests}
\end{document}