선택하여 알림

선택하여 알림

특정 저자가 포함되어 있고 특정 연도에 출판된 큰 bib 파일에서 모든 항목을 선택하는 참고문헌을 만들고 싶습니다.

지금까지 nocite 명령은 *가 전부이거나 단일 항목을 직접 지정하는 것만 볼 수 있지만 더 일반적인 규칙이 있는 예제는 볼 수 없습니다.

인쇄서지에는 몇 가지 규칙이 적용되는 것처럼 보이지만 첫 번째 테스트에서는 전체 목록에서 항목을 선택하기 때문에 항목이 순차적으로 나열되지 않는 것으로 나타났습니다.

Zotero와 같은 일부 GUI 도구에서 턱받이 파일을 가져오고 원하는 항목을 선택한 다음 새 파일로 다시 내보낼 수 있지만 TeX 영역에 유지되고 예를 들어 다른 항목을 선택하는 자동화를 위해 확장할 수 있는 솔루션을 갖고 싶습니다. 연도, 작가 등

답변1

다음은 관심 없는 항목을 무시하는 Biblatex 및 "소스 맵"을 사용한 솔루션입니다.

\begin{filecontents}{\jobname.bib}
@book{one,
  author={Someone Else},
  year={2014},
  title={Uninteresting book},
}
@book{two,
  author={This Author},
  year={1999},
  title={Book that's too early},
}
@book{three,
  author={Author, This},
  year={2014},
  title={An interesting book},
}
@book{four,
  author={This Author},
  year={2014},
  title={Another interesting book},
}
@book{five,
  author={Someone Else and This Author},
  year={2014},
  title={Joint effort},
}
\end{filecontents}
\documentclass{article}

\usepackage{biblatex}
\addbibresource{\jobname.bib}
\DeclareSourcemap{
  \maps{
    \map{
      % Remove those not by chosen author
      \step[fieldsource=author,
            notmatch=\regexp{Author,\s+This|This\s+Author},
            final]
      \step[entrynull]
    }
    \map{
      % Remove those not from chosen year
      \step[fieldsource=year,
            notmatch={2014},
            final]
      \step[entrynull]
    }
  }
}
\begin{document}
\nocite{*}
\printbibliography
\end{document}

작성자 이름과 일치하는 정규식을 작성해야 합니다. 이건 현장만 보는 거죠 author. editor필드 및 기타 항목 에 대해 추가 규칙을 사용하고 싶을 수도 있습니다 .

답변2

내가 찾던 것은 bib2bib이었습니다. (bibtex2html 패키지에 직관적으로 포함되어 있음)

관련 정보