Estou tentando imprimir minha bibliografia, mas as "páginas XXX-XXX" estão cheias demais. eu já reviseiesta respostamas seqsplit
como mencionado emISBNs e outros números longosnão está funcionando, pior ainda, gera o próximo erro:
!Package etoolbox Error: Toggle 'bbx:pageranges' undefined.
Este é o meu arquivo
\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}
Referências.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}
}
Estou compilando meu código LaTeX assim
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
Editar
Parece que o problema ocorre ao adicionar csquotes
o pacote. Excluí meu arquivo linha por linha e o problema desaparece ao remover csquotes
o pacote. Mas o problema é que eu também preciso desse pacote. Qualquer ideia?
Responder1
A quebra de linha é altamente sensível ao contexto; portanto, qualquer solução que possa funcionar em uma situação específica pode não ser adequada para outra situação, por mais semelhantes que sejam.
Com base no código mostrado na pergunta, posso reproduzir a seguinte caixa cheia se adicionar \usepackage{csquotes}
.
Neste caso de números de páginas bastante curtos, não acho que dividir o número aleatoriamente dará os melhores resultados. Numa primeira etapa, eu tentaria permitir a quebra de linha no hífen, redefinindo \bibrangedash
. Por padrão, spanish.lbx
usa um hífen no qual não pode haver quebra de linha.
Isso nos dá
\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}
Pelo que parece, espero que isso também funcione no documento mostrado na sua captura de tela (que não é o MWE).
Pessoalmente, acho que a seqsplit
solução é um pouco radical (quebrar números em posições arbitrárias pode parecer estranho). Se o problema persistir, provavelmente tentarei uma das soluções genéricas deComo ajustar a quebra de linha na bibliografia?, por exemplo \emergencystretch
.