Biblatex 문제 정렬

Biblatex 문제 정렬

Biblatex 패키지에 정렬 문제가 있습니다. 기사 목록의 첫 번째 항목은 "Research Article"이라는 텍스트와 일치해야 하는데 어떤 식으로든 할 수 없습니다. 참고문헌을 인쇄하는 대신 일반 텍스트를 넣으면 양면의 텍스트가 완벽하게 정렬된다는 점에 유의하세요.

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

tex 파일의 코드는 다음과 같습니다.

그림 물감

\newcommand{\primarycolor}{000080}
\newcommand{\secondarycolor}{CCDBD8}
\newcommand{\titlecolor}{464646}
\newcommand{\bodycolor}{080808}

\cvTextColor

\newcommand{\cvTextColor}[2]{\textcolor[HTML]{#1}{#2}}

\cvbar

\newcommand{\cvbar}{
\vspace{1pt}
  \noindent
  \cvTextColor{\primarycolor}{\rule{0.35\textwidth}{3pt}}\hspace{0.01\textwidth}
  \cvTextColor{\secondarycolor}{\rule{0.63\textwidth}{3pt}}
  \vspace{10pt}
}

\cventry

\newcommand{\cventry}[2]{
  \noindent
  \begin{tabularx}{\linewidth}{@{} p{0.24\linewidth} X @{}}
    \parbox[t]{\linewidth}{\textbf{\cvTextColor{\titlecolor}{#1}}} & \parbox[t]{\linewidth}{\cvTextColor{\bodycolor}{#2}} \\
  \end{tabularx}
}

기본 텍스트 파일

\documentclass{article}

\usepackage[backend=biber, style=nejm, sorting=ydnt, defernumbers=true,]{
    biblatex
}
\usepackage{hyperref}

\addbibresource{publication.bib}

\begin{document}
    \nocite{*}

    \section{Publication}

    \cvbar

    \cventry{Research Article}{ \printbibliography[type=article,heading=none] }
\end{document}

출판.bib

@article{zeng_tariff-based_2023,
    title = {Tariff-{Based} {Optimal} {Scheduling} {Strategy} of {Photovoltaic}-{Storage} for {Industrial} and {Commercial} {Customers}},
    volume = {16},
    doi = {10.3390/en16207079},
    language = {en},
    number = {20},
    urldate = {2023-12-16},
    journal = {Energies},
    author = {Zeng, Zhiyuan and Li, Tianyou and Su, Jun and Sun, Longyi},
    month = oct,
    year = {2023},
    pages = {7079},
}

@article{hedhoud_improvement_2023,
    title = {An improvement of the {CNN}-{XGboost} model for pneumonia disease classification},
    volume = {88},
    doi = {10.5114/pjr.2023.132533},
    number = {1},
    urldate = {2023-12-16},
    journal = {Polish Journal of Radiology},
    author = {Hedhoud, Yousra and Mekhaznia, Tahar and Amroune, Mohamed},
    year = {2023},
    pages = {483--493},
}

@article{nazari_two-stage_2019,
    title = {A two-stage stochastic model for energy storage planning in a microgrid incorporating bilateral contracts and demand response program},
    volume = {21},
    doi = {10.1016/j.est.2018.12.002},
    language = {en},
    urldate = {2023-12-16},
    journal = {Journal of Energy Storage},
    author = {Nazari, AmirAli and Keypour, Reza},
    month = feb,
    year = {2019},
    pages = {281--294},
}

답변1

을 사용한 더러운 해킹 \AtBeginBibliography{\vspace*{-20pt}}, 참조여기.

\begin{filecontents}{publication.bib}
@article{zeng_tariff-based_2023,
    title = {Tariff-{Based} {Optimal} {Scheduling} {Strategy} of {Photovoltaic}-{Storage} for {Industrial} and {Commercial} {Customers}},
    volume = {16},
    doi = {10.3390/en16207079},
    language = {en},
    number = {20},
    urldate = {2023-12-16},
    journal = {Energies},
    author = {Zeng, Zhiyuan and Li, Tianyou and Su, Jun and Sun, Longyi},
    month = oct,
    year = {2023},
    pages = {7079},
}

@article{hedhoud_improvement_2023,
    title = {An improvement of the {CNN}-{XGboost} model for pneumonia disease classification},
    volume = {88},
    doi = {10.5114/pjr.2023.132533},
    number = {1},
    urldate = {2023-12-16},
    journal = {Polish Journal of Radiology},
    author = {Hedhoud, Yousra and Mekhaznia, Tahar and Amroune, Mohamed},
    year = {2023},
    pages = {483--493},
}

@article{nazari_two-stage_2019,
    title = {A two-stage stochastic model for energy storage planning in a microgrid incorporating bilateral contracts and demand response program},
    volume = {21},
    doi = {10.1016/j.est.2018.12.002},
    language = {en},
    urldate = {2023-12-16},
    journal = {Journal of Energy Storage},
    author = {Nazari, AmirAli and Keypour, Reza},
    month = feb,
    year = {2019},
    pages = {281--294},
}
\end{filecontents}

\documentclass{article}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{tabularray}
\UseTblrLibrary{varwidth}
\newcommand{\primarycolor}{000080}
\newcommand{\secondarycolor}{CCDBD8}
\newcommand{\titlecolor}{464646}
\newcommand{\bodycolor}{080808}
\usepackage[backend=biber, style=nejm, sorting=ydnt, defernumbers=true,]{
    biblatex
}
\newcommand{\cvTextColor}[2]{\textcolor[HTML]{#1}{#2}}
\newcommand{\cvbar}{
\vspace{1pt}
  \noindent
  \cvTextColor{\primarycolor}{\rule{0.35\textwidth}{3pt}}\hspace{0.01\textwidth}
  \cvTextColor{\secondarycolor}{\rule{0.63\textwidth}{3pt}}
  \vspace{10pt}
}
\AtBeginBibliography{\vspace*{-20pt}}
\newcommand{\cventry}[2]{
  \noindent
  \begin{tabularx}{\linewidth}{@{} p{0.24\linewidth} X @{}}
    \parbox[t]{\linewidth}{\textbf{\cvTextColor{\titlecolor}{#1}}} & \parbox[t]{\linewidth}{\cvTextColor{\bodycolor}{#2}} \\
  \end{tabularx}
}

\usepackage{hyperref}

\addbibresource{publication.bib}

\begin{document}
    \nocite{*}

    \section{Publication}

    \cvbar

    \cventry{Research Article}{\printbibliography[type=article,heading=none]}
\end{document}

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

관련 정보