IACR / latex

Latex classes for IACR publications. We will start with the new journal proposal.
9 stars 2 forks source link

Should there be a length limit on titles? #180

Closed kmccurley closed 1 year ago

kmccurley commented 1 year ago

Springer will sometimes split a title into title/subtitle if the title is too long. I noticed a paper today with a long title, and in iacrcc.cls it looks like this: image

I don't consider it to be fatal, but it's pretty ugly.

jwbos commented 1 year ago

Isn't this why we have the running option to the \title macro?

kmccurley commented 1 year ago

While converting several papers from Crypto, I found this to be a common problem. We could presumably use xstring \StrLen to determine if the title is too long and at least give a warning so the copy editor could find it. Something seems wrong in the header though, because this example should fit: image Is this because the fancyhdr dedicates equal space to L and R? We might be able to fix this by adjusting \headwidth to 80% of \linewidth

kmccurley commented 1 year ago

I discovered another problem with the header in crypto paper #265 image Notice how the title overlaps the page number on the first even page.

jwbos commented 1 year ago

I suggest we indeed check the length of the title and throw an error if it is too long (and suggest the authors use the running title option). It seems the maximum length which looks fine is around 75 characters but this can go wrong in a lof of ways (if special characters or math are used). Maybe suggest the authors to provide one when the title is over 65 characters?

kmccurley commented 1 year ago

I think you're right that we can only issue a warning. As you say, titles may contain mathematics, and it's hard to correlate the actual length of the title exactly to the number of characters. Something like $\epsilon$ turns out to be a single character but needs to be written out as \epsilon.

When the title is long enough to wrap on a second line, we see the following in the latex log:

Package fancyhdr Warning: \headheight is too small (12.0pt):

which means that it's overflowing the head: image (the extra 12pts is for the second line). The latex-submit system catches this as a warning to the author, and the copy editor should also notice this: image Authors may not realize what is causing this, but the copy editor should. We can try to escalate this to an error that needs fixing by the author, but it's hard to anticipate what warnings fancyhdr would generate. For example, I'm not sure what happens in the log when the title doesn't wrap but overlaps the page number. That is at least visually wrong so the author might notice it.

jwbos commented 1 year ago

See my pull request to fix this (and especially 9ce8c8f474af16dc527d8da1520a88bee129695b).