You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output of Cite differs with the terminal width. This affects all of it, but is particularly bad for the bibtex entry.
Compare:
gap> SizeScreen();
[ 116, 62 ]
gap> Cite("smallgrp");
....
BibTeX:
@misc{ SmallGrp1.5.3,
author = {Besche, H. U. and Eick, B. and O'Brien, E. and Horn, M.},
title = {{SmallGrp}, The GAP Small Groups Library, {V}ersion 1.5.3},
month = {May},
year = {2023},
note = {GAP package},
howpublished = {\href {https://gap-packages.github.io/smallgrp/}
{\texttt{https://gap\texttt{\symbol{45}}packages.github.io/}\discretionary
{}{}{}\texttt{smallgrp/}}},
printedkey = {BEOH23}
}
versus
gap> SizeScreen([80]);
[ 80, 62 ]
gap> Cite("smallgrp");
...
BibTeX:
@misc{ SmallGrp1.5.3,
author = {Besche, H. U. and Eick, B. and O'Brien, E. and Horn,
M.},
title = {{SmallGrp}, The GAP Small Groups Library, {V}ersion
1.5.3},
month = {May},
year = {2023},
note = {GAP package},
howpublished = {\href {https://gap-packages.github.io/smallgrp/}
{\texttt{https://gap\texttt{\symbol{45}}packages.github.\
io/}\discretionary
{}{}{}\texttt{smallgrp/}}},
printedkey = {BEOH23}
}
I would suggest to modify Cite so that it completely ignores the terminal width. Then each bibtex key/value pair would be on a single (possibly long) line -- that's how I want it, and anyone else can wrap it to something that makes sense in their .bib file (as opposed to their terminal)
Also, what's with the weird spacing between \href and {???
The text was updated successfully, but these errors were encountered:
One problem with not wrapping is then GAP's output is going to put \ in when it linewraps itself (which I see it doing above anyway in the how-published :( ). We should temporarily turn off formatting while printing the bibtex -- as then we should produce something which will cleanly cut+paste?
In general it seems useful to me that the function uses FormatParagraph to adjust the output to the users screen width. The main problems which can occur are long URLs without an opportunity for line breaks.
The Cite function could use PrintFormattedString to print such overlong lines in a cut-and-paste friendly manner, e.g.,
The output of
Cite
differs with the terminal width. This affects all of it, but is particularly bad for the bibtex entry.Compare:
versus
I would suggest to modify
Cite
so that it completely ignores the terminal width. Then each bibtex key/value pair would be on a single (possibly long) line -- that's how I want it, and anyone else can wrap it to something that makes sense in their .bib file (as opposed to their terminal)Also, what's with the weird spacing between
\href
and{
???The text was updated successfully, but these errors were encountered: