Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Word count for inline equations #9

Open
manu-mannattil opened this issue May 5, 2022 · 0 comments
Open

Word count for inline equations #9

manu-mannattil opened this issue May 5, 2022 · 0 comments

Comments

@manu-mannattil
Copy link
Contributor

Currently, texprlcount assumes that 1 inline equation = 1 word. However, the PRL guidelines for calculating the length of an article doesn't mention the word equivalent for inline equations. I contacted APS about this and this is what they had to say about inline equations:

Counting inline math terms is perhaps the most difficult feature to pin down, according to the length estimators APS has contacted. Years ago, in borderline cases, the inline math would have been counted manually, at great time and expense. Now we provide estimates only and try to arrive at a reasonable total.

However, on experimenting with the APS submission system and comparing its estimates with texprlcount's, it seems that inline equations are given a higher word count compared to other words in the text. For instance, the following phrase

one two three $a=b=c$

is counted as having 8 words, whereas texprlcount would count it as 4 words. I think symbols like =, ≠, ~, etc., are assumed to be word boundaries by APS's system. I don't know of a good solution to this problem since APS's way of counting inline equations don't seem to be documented anywhere. A possibility is to use a higher weight for inline equations while calling texcount, e.g.,

my $texcount = `texcount $name.tex -opt=tcrules -utf8 -sum=1,1,1,0,0,2,0`;

This seems to reproduce APS's estimate reasonably well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant