긴 도이장을 우아하게 나누는 방법

긴 도이장을 우아하게 나누는 방법

이것은 내 논문의 코드 조각입니다.

\RequirePackage{filecontents}

\begin{filecontents}{bib.bib}
@article{baumert62,
  author = {Baumert, Leonard and Golomb, Solomon W. and Hall, Jr, Marshall},
  doi = {10.1090/S0002-9904-1962-10761-7},
  journal = {Bulletin of the American Mathematical Society},
  number = 3,
  pages = {237--238},
  title = {Discovery of an Hadamard Matrix of Order 92},
  volume = 68,
  year = 1962
}

\end{filecontents}

\documentclass{article}

% for back reference in bibliography
\usepackage[ocgcolorlinks,pdfusetitle]{hyperref}

% for biblatex with biber
\usepackage[
  backend=biber,
  style=alphabetic,
  citestyle=alphabetic,
  backref=true]{biblatex}

% for DOI field
\usepackage{doi}

\addbibresource{bib.bib}

\begin{document}
The first missing order of 92 was resolved in 1962 by Baumert, Golomb,
and Hall Jr. \cite{baumert62} who ran computer experiment on Williamson's method.

%%% bibliography
\printbibliography
\end{document}

이는 참고문헌 항목을 생성합니다.도이필드가 너무 깁니다.

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

당연히 모두가 그것을 고치고 싶어한다고 생각합니다. 나는 다음에 설명된 대로 다음을 사용할 수 있다는 것을 알고 있습니다.이것실.

\setcounter{biburlnumpenalty}{100}  % allow breaks at numbers
\setcounter{biburlucpenalty}{100}   % allow breaks at uppercase letters
\setcounter{biburllcpenalty}{100}   % allow breaks at lowercase letters

/숫자, 소문자, 대문자에 줄바꿈을 허용하는 대신, , .와 같은 특수문자에 줄바꿈을 허용하고 싶습니다 -. 제가 DOI 필드를 다루고 있기 때문에 일반적인 영숫자 문자보다는 줄 바꿈을 허용하는 위치가 더 적합하다고 생각합니다. 어떻게 해야 합니까?

답변1

이 옵션은 ocgcolorlinks링크에서 줄 바꿈을 허용하지 않습니다.

에서hyperref의 읽어보기

실험적 옵션 'ocgcolorlinks'

아이디어는 볼 때 컬러 링크로 표시되지만 컬러 없이 인쇄됩니다.

...

  • 주요 단점: 링크는 여러 줄에 걸쳐 끊어질 수 없습니다.

즉, 옵션과 거의 동일 colorlinks하지만 두 가지 차이점이 있습니다.

  • colorlinks링크에서 줄 바꿈을 허용하지만 ocgcolorlinks그렇지 않습니다.
  • colorlinks문서를 인쇄할 때 색상을 유지하고 ocgcolorlinks검정색으로 인쇄합니다.

그렇다면 이를 피하기 위해 무엇을 할 수 있습니까?

colorlinks대신 옵션을 사용 ocgcolorlinks하고 문서를 인쇄할 때 "흑백"으로 인쇄하도록 선택하세요.

MWE:

\RequirePackage{filecontents}

\begin{filecontents}{bib.bib}
@article{baumert62,
  author = {Baumert, Leonard and Golomb, Solomon W. and Hall, Jr, Marshall},
  doi = {10.1090/S0002-9904-1962-10761-7},
  journal = {Bulletin of the American Mathematical Society},
  number = 3,
  pages = {237--238},
  title = {Discovery of an Hadamard Matrix of Order 92},
  volume = 68,
  year = 1962
}

\end{filecontents}

\documentclass{article}

% for back reference in bibliography
\usepackage[colorlinks,pdfusetitle]{hyperref}

% for biblatex with biber
\usepackage[
  backend=biber,
  style=alphabetic,
  citestyle=alphabetic,
  backref=true]{biblatex}

% for DOI field
\usepackage{doi}

\addbibresource{bib.bib}

\begin{document}
The first missing order of 92 was resolved in 1962 by Baumert, Golomb,
and Hall Jr. \cite{baumert62} who ran computer experiment on Williamson's method.

%%% bibliography
\printbibliography
\end{document} 

산출:

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

답변2

완전성을 위해ocgcolorlinks줄바꿈(및 필요한 경우 페이지 나누기)을 둘러싸는 (검은색으로 인쇄되는 컬러 링크)는 이제 다음을 사용하여 가능합니다.ocgx2패키지:

\usepackage{hyperref}
\usepackage[ocgcolorlinks]{ocgx2}

MWE:

\RequirePackage{filecontents}

\begin{filecontents}{bib.bib}
@article{baumert62,
  author = {Baumert, Leonard and Golomb, Solomon W. and Hall, Jr, Marshall},
  doi = {10.1090/S0002-9904-1962-10761-7},
  journal = {Bulletin of the American Mathematical Society},
  number = 3,
  pages = {237--238},
  title = {Discovery of an Hadamard Matrix of Order 92},
  volume = 68,
  year = 1962
}

\end{filecontents}

\documentclass{article}

% for back reference in bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[pdfusetitle]{hyperref}
\usepackage[ocgcolorlinks]{ocgx2}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% for biblatex with biber
\usepackage[
  backend=biber,
  style=alphabetic,
  citestyle=alphabetic,
  backref=true]{biblatex}

% for DOI field
\usepackage{doi}

\addbibresource{bib.bib}

\begin{document}
The first missing order of 92 was resolved in 1962 by Baumert, Golomb,
and Hall Jr. \cite{baumert62} who ran computer experiment on Williamson's method.

%%% bibliography
\printbibliography
\end{document}

답변3

당신이 사용할 수있는http://shortdoi.org@matth가 언급한 것처럼 DOI에 대한 짧은 영구 별칭을 생성합니다. 이러한 단축된 DOI는 표준 DOI에 비해 몇 가지 장점이 있습니다.

  1. 줄 바꿈이 필요하지 않을 정도로 충분히 짧습니다.
  2. 종이에서 복사하기 쉽습니다. 기사의 종이 사본만 있는 경우 긴 DOI는 거의 쓸모가 없습니다(제목/저자를 검색하는 것이 더 쉽습니다).
  3. 미학적으로 더 만족스럽습니다. 이는 출판사와 공동 저자의 저항이 적다는 것을 의미합니다.

나는 기존 BibTeX 파일을 처리하고 모든 DOI 이름을 단축된 DOI로 바꾸는 스크립트를 작성했습니다. https://github.com/mosco/bibtex-shorten-doi

주의 사항: 불행히도 짧은 DOI는 적절한 DOI로 간주되지 않으며 doi.org 이외의 다른 사이트(예: CrossRef, Sci-Hub 등)에서 수동 검색에 사용할 수 없습니다. 따라서 현재로서는 자동 변환을 권장하지 않습니다. 당신의 참고문헌에 있는 모든 DOI의 목록입니다.

관련 정보