ModernCV의 문학

ModernCV의 문학

저는 현재 이력서를 작성하고 있으며 참고문헌을 포함하고 싶습니다. 다음은 내 헤더입니다.

\documentclass[11pt,a4paper,sans]{moderncv}

\usepackage[latin1]{inputenc}

\usepackage[ngerman]{babel}

\usepackage[T1]{fontenc}

\usepackage{lmodern}

\usepackage{amsmath, amssymb}

\usepackage{enumerate}

\usepackage{dsfont}

\usepackage{multibib,chapterbib, babelbib}

\moderncvtheme[red]{classic}

\usepackage[left=25mm,right=25mm, top=30mm, bottom=30mm]{geometry}

\renewcommand{\baselinestretch}{1.25}

\AtBeginDocument{\recomputelengths}

이제 참고문헌을 포함하고 싶지만 여기에는 다음과 같은 문제가 있습니다.

  1. 참고문헌 자체는 페이지의 거의 절반 정도 들여쓰기되어 있습니다. 라텍스가 "보통" 왼쪽 여백에서 시작하도록 강제하는 방법은 무엇입니까?

  2. 다양한 출처에 대한 번호는 참고문헌에 표시되지 않습니다. CV에는 \인용{}하면 번호가 표시되지만, 출처를 찾으려면 세어보아야 합니다. 참고문헌에도 숫자가 나타나게 하려면 어떻게 해야 합니까? 내 헤더에 뭔가가 누락된 것 같습니다.\

감사합니다.

답변1

기본적으로 참고 moderncv문헌에 레이블을 표시하지 않습니다. 이를 표시하려면 서문에 다음 줄을 추가하세요.

\makeatletter
\renewcommand*\bibliographyitemlabel{\@biblabel{\arabic{enumiv}}}
\makeatother

다른 문제는 환경을 재정의해야 합니다 thebibliography( filecontents*솔루션에서 필수적인 것은 아니며 단지 완전한 예를 얻기 위한 것임).

\begin{filecontents*}{xxyyy.bib}
@book{testa,
    author = "The AuthorA",
    title = "The TitleA",
    year = "2012",
    publisher = "The PublisherA"
}
@book{testb,
    author = "The AuthorB",
    title = "The TitleB",
    year = "2012",
    publisher = "The PublisherB"
}
\end{filecontents*}

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvtheme[red]{classic}
\usepackage[ngerman]{babel}
\usepackage{multibib,chapterbib, babelbib}

\firstname{John}
\familyname{Doe}

\makeatletter
\renewcommand*\bibliographyitemlabel{\@biblabel{\arabic{enumiv}}}
\renewenvironment{thebibliography}[1]%
  {%
     \setlength\hintscolumnwidth{0pt}
     \setlength\separatorcolumnwidth{0pt}
     \bibliographyhead{\refname}%
%    \small%
    \begin{list}{\bibliographyitemlabel}%
      {%
        \setlength{\separatorcolumnwidth}{0.025\textwidth}
        \setlength{\topsep}{0pt}%
        \settowidth\labelwidth{\@biblabel{#1}}
        \setlength{\labelsep}{\separatorcolumnwidth}%
        \leftmargin\labelwidth
        \advance\leftmargin\labelsep
        \@openbib@code%
        \usecounter{enumiv}%
        \let\p@enumiv\@empty%
        \renewcommand\theenumiv{\@arabic\c@enumiv}}%
        \sloppy\clubpenalty4000\widowpenalty4000%
  }%
  {%
    \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
    \end{list}%
  }
\makeatother

\begin{document}

\makecvtitle

\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\nocite{*}

\bibliographystyle{plain}
\bibliography{xxyyy}

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보