
내 참고문헌을 인쇄하려고 하는데 "XXX-XXX 페이지"에 상자가 가득 찼습니다. 나는 이미 검토했습니다.이 답변하지만 seqsplit
위에서 언급했듯이ISBN 및 기타 긴 숫자작동하지 않으며 더 나쁜 경우 다음 오류가 발생합니다.
!Package etoolbox Error: Toggle 'bbx:pageranges' undefined.
이건 내 파일이야
\RequirePackage{fix-cm}
\documentclass[12pt, table, letterpaper]{report}
\usepackage[english,spanish,es-tabla]{babel}
\usepackage[
letterpaper,
top = 18mm,
left = 20mm,
right= 20mm,
bottom = 18mm
]{geometry}
\usepackage{fontspec}
\usepackage[hidelinks]{hyperref}
\usepackage[
thresholdtype=words
]{csquotes}
\usepackage[
backend=biber,
style=ieee,
url=false,
hyperref=true,
]{biblatex}
\usepackage{xurl}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1em}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Times New Roman}
\addbibresource{Bib/References.bib}
\DeclareFieldFormat{url}{%
% \mkbibacro{URL}\addcolon\space
\href{#1}{\nolinkurl{\thefield{urlraw}}}}
\begin{document}
\pagenumbering{gobble}
\nocite{*}
\printbibliography[heading=bibintoc]
\end{document}
참고자료.bib
@article{palomino-resendiz_design_2018,
title = {Design and implementation of a robotic active solar distiller based on a Fresnel concentrator and a photovoltaic system},
volume = {166},
issn = {0196-8904},
url = {https://www.sciencedirect.com/science/article/pii/S0196890418304175},
doi = {10.1016/j.enconman.2018.04.069},
abstract = {},
pages = {637--647},
journaltitle = {Energy Conversion and Management},
shortjournal = {Energy Conversion and Management},
author = {Palomino-Resendiz, S. I. and Flores-Hernández, D. A. and Lozada-Castillo, N. and Guzmán-Vargas, L. and Luviano-Juárez, A.},
urldate = {2022-03-18},
date = {2018-06-15},
langid = {english},
keywords = {Desalination, Fresnel lens, Photovoltaic system, Robotic solar distiller, Solar energy},
}
@article{kabeel_performance_2022,
title = {Performance assessment of the hemispherical solar distillers with the extended cylindrical iron fins: An experimental investigation},
volume = {61},
issn = {1110-0168},
url = {https://www.sciencedirect.com/science/article/pii/S1110016822002794},
doi = {10.1016/j.aej.2022.04.018},
shorttitle = {Performance assessment of the hemispherical solar distillers with the extended cylindrical iron fins},
pages = {11149--11157},
number = {12},
journaltitle = {Alexandria Engineering Journal},
shortjournal = {Alexandria Engineering Journal},
author = {Kabeel, Abd Elnaby and El Hadi Attia, Mohammed and Abdelgaied, Mohamed and Abdullah, A. S. and Bellila, Abdelkader and Abdel-Aziz, Moataz M.},
urldate = {2022-05-29},
date = {2022-12-01},
langid = {english},
keywords = {Extended cylindrical fins, Hemispherical solar still, Iron fins, Number, Solar energy}
}
LaTeX 코드를 다음과 같이 컴파일하고 있습니다.
xelatex -synctex=1 -interaction=nonstopmode --output-directory=./build --shell-escape %.tex
makeindex -t ./build/%.glg -s ./build/%.ist -o ./build/%.gls ./build/%.glo
makeindex -t ./build/%.alg -s ./build/%.ist -o ./build/%.acr ./build/%.acn
biber --output-directory=./build %
xelatex -synctex=1 -interaction=nonstopmode --output-directory=./build --shell-escape %.tex
편집하다
csquotes
패키지 추가시 문제가 발생하는 것 같습니다 . 파일을 한 줄씩 삭제했는데 csquotes
패키지 제거 문제가 사라집니다. 하지만 문제는 나에게도 그 패키지가 필요하다는 것이다. 어떤 아이디어?
답변1
줄 바꿈은 상황에 매우 민감하므로 특정 상황에서 작동할 수 있는 솔루션은 유사하더라도 다른 상황에는 적합하지 않을 수 있습니다.
질문에 표시된 코드를 기반으로 \usepackage{csquotes}
.
이 경우 상당히 짧은 페이지 번호의 경우 번호 자체를 무작위로 나누는 것이 최상의 결과를 제공할 것이라고 생각하지 않습니다. 첫 번째 단계에서는 를 재정의하여 하이픈에서 줄 바꿈을 허용하려고 합니다 \bibrangedash
. 기본적으로 spanish.lbx
줄 바꿈이 있을 수 없는 하이픈을 사용합니다.
이는 우리에게
\RequirePackage{fix-cm}
\documentclass[12pt, letterpaper]{report}
\usepackage[
letterpaper,
top = 18mm,
left = 20mm,
right= 20mm,
bottom = 18mm,
]{geometry}
\usepackage{fontspec}
\usepackage[english,spanish,es-tabla]{babel}
\usepackage{csquotes}
\usepackage[
backend=biber,
style=ieee,
url=false,
]{biblatex}
\usepackage{xurl}
\usepackage[hidelinks]{hyperref}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1em}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Times New Roman}
\DefineBibliographyExtras{spanish}{%
\protected\def\bibrangedash{-}%
}
\DeclareFieldFormat{url}{%
% \mkbibacro{URL}\addcolon\space
\href{#1}{\nolinkurl{\thefield{urlraw}}}}
\begin{filecontents}{\jobname.bib}
@article{palomino-resendiz_design_2018,
title = {Design and implementation of a robotic active solar distiller
based on a Fresnel concentrator and a photovoltaic system},
volume = {166},
issn = {0196-8904},
url = {https://www.sciencedirect.com/science/article/pii/S0196890418304175},
doi = {10.1016/j.enconman.2018.04.069},
pages = {637--647},
journaltitle = {Energy Conversion and Management},
author = {Palomino-Resendiz, S. I. and Flores-Hernández, D. A.
and Lozada-Castillo, N. and Guzmán-Vargas, L.
and Luviano-Juárez, A.},
urldate = {2022-03-18},
date = {2018-06-15},
langid = {english},
}
@article{kabeel_performance_2022,
title = {Performance assessment of the hemispherical solar distillers
with the extended cylindrical iron fins:
An experimental investigation},
volume = {61},
issn = {1110-0168},
url = {https://www.sciencedirect.com/science/article/pii/S1110016822002794},
doi = {10.1016/j.aej.2022.04.018},
pages = {11149--11157},
number = {12},
journaltitle = {Alexandria Engineering Journal},
author = {Kabeel, Abd Elnaby and El Hadi Attia, Mohammed
and Abdelgaied, Mohamed and Abdullah, A. S. and Bellila, Abdelkader
and Abdel-Aziz, Moataz M.},
urldate = {2022-05-29},
date = {2022-12-01},
langid = {english},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\pagenumbering{gobble}
\nocite{*}
\printbibliography[heading=bibintoc]
\end{document}
보기에 따르면 이것이 스크린샷에 표시된 문서(MWE가 아님)에서도 작동할 것으로 기대됩니다.
개인적으로 나는 그 seqsplit
해결책이 약간 급진적이라고 생각합니다(임의의 위치에서 숫자를 깨뜨리면 이상하게 보일 수 있습니다). 문제가 지속되면 다음의 일반적인 솔루션 중 하나를 시도해 볼 것입니다.참고문헌에서 줄 바꿈을 조정하는 방법은 무엇입니까?, 예를 들어 \emergencystretch
.