작은 글꼴 크기로 단일 단락 biblatex 참고 문헌에서 줄 간격을 줄이는 방법

작은 글꼴 크기로 단일 단락 biblatex 참고 문헌에서 줄 간격을 줄이는 방법

biblatex다음과 같이 를 사용하여 압축된 단일 단락 참고문헌을 만들려고 합니다.이 답변. 또한 문서의 기본 글꼴 크기보다 글꼴을 상당히 작게 만들고 싶습니다. 저는 \bibfont; 그러나 이는 이중 간격처럼 보이는 것을 생성하지만 저는 단일 간격만 원합니다. 나는 그렇게 생각했다

\renewcommand*{\bibfont}{\fontsize{5pt}{7pt}\selectfont}

\fontsize값 도 설정해야 하기 때문에 이 문제를 처리할 것입니다 \baselineskip. 참고문헌에 왜 그렇게 큰 줄 간격이 있는지, 그리고 이 간격을 일반적인 단일 간격처럼 보이는 것으로 줄이는 방법을 아는 사람이 있습니까?

\begin{filecontents*}{\jobname.bib}
@article{a1,
  author = {Smith, Jane},
  journal = {Nature},
  volume = {7},
  pages = {201--204},
  year = {1999},
}
@article{a2,
  author = {Smith, Jane},
  journal = {Nature},
  volume = {7},
  pages = {201--204},
  year = {2000},
}
@article{a3,
  author = {Smith, Jane},
  journal = {Nature},
  volume = {7},
  pages = {201--204},
  year = {2001},
}
@article{a4,
  author = {Smith, Jane},
  journal = {Nature},
  volume = {7},
  pages = {201--204},
  year = {2002},
}
@article{a5,
  author = {Smith, Jane},
  journal = {Nature},
  volume = {7},
  pages = {201--204},
  year = {2003},
}
\end{filecontents*}
\documentclass{article}

\usepackage[american]{babel}

\usepackage{csquotes}

\usepackage[backend=biber,
  style=authoryear-comp,
  maxcitenames=2,
  maxnames=1,
  minnames=1,
  firstinits=true]{biblatex}

\addbibresource{\jobname.bib}

\renewcommand*{\bibfont}{\fontsize{5pt}{7pt}\selectfont}

\defbibenvironment{bibliography}
  {}
  {}
  {\addspace}

\begin{document}

\nocite{*}
\printbibliography

\end{document}

참고문헌 항목 사이의 큰 간격을 보여주는 이미지

답변1

문제는 참고문헌 환경에서 수평 모드가 종료되지 않으면 의 값이 \baselineskip문서의 다른 곳에 있는 값으로 되돌아간다는 것입니다. 이에 대해서는 다음에서 논의됩니다.이 답변에게환경에서 더 작은 글꼴 크기를 사용할 때 줄 간격을 줄입니다..

다음 명령 부분을 \endgraf입력 하여 단락을 끝낼 수 있습니다(예: 가로 모드를 종료하고 자료를 강제로 줄로 나누기) .<end code>\defbibenvironment

\defbibenvironment{bibliography}
  {}
  {\endgraf}
  {\addspace}

\endgraf대신 여기를 사용해야 합니다 \par. 그렇지 않으면 오류가 발생합니다(참조\endgraf보다 \par을 사용하는 것이 더 좋은 때는 언제입니까?\par와 ) 의 차이점에 대해 논의해 보세요 \endgraf.

전체 MWE는 다음과 같습니다.

\begin{filecontents*}{\jobname.bib}
@article{a1,
  author = {Smith, Jane},
  journal = {Nature},
  volume = {7},
  pages = {201-204},
  year = {1999},
}
@article{a2,
  author = {Smith, Jane},
  journal = {Nature},
  volume = {7},
  pages = {201-204},
  year = {2000},
}
@article{a3,
  author = {Smith, Jane},
  journal = {Nature},
  volume = {7},
  pages = {201-204},
  year = {2001},
}
@article{a4,
  author = {Smith, Jane},
  journal = {Nature},
  volume = {7},
  pages = {201-204},
  year = {2002},
}
@article{a5,
  author = {Smith, Jane},
  journal = {Nature},
  volume = {7},
  pages = {201-204},
  year = {2003},
}
\end{filecontents*}
\documentclass{article}

\usepackage[american]{babel}

\usepackage{csquotes}

\usepackage[backend=biber,
  style=authoryear-comp,
  maxcitenames=2,
  maxnames=1,
  minnames=1,
  firstinits=true]{biblatex}

\addbibresource{\jobname.bib}

\renewcommand*{\bibfont}{\fontsize{5pt}{7pt}\selectfont}

\defbibenvironment{bibliography}
  {}
  {\endgraf}
  {\addspace}

\begin{document}

\nocite{*}
\printbibliography

\end{document}

다음은 한 줄 간격처럼 보이는 결과 출력입니다.

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

관련 정보