-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Minor differences in generated DVI files #3
Comments
Didn't see your comment until now. It's certainly worth investigating the difference. My knowledge of dvi format is very limited right now so it will take some time to determine if it does something wrong. Also interesting is that both MiKTeX (which I belive is the same as TeX Live in this respect but I haven't confirmed this) and rsTeX produce the same dvi files on trip test but differ on gentle.dvi. Seems the trip test does not test all that much when it comes to dvi output. |
After the recent commits (specifically c780e16), the diff of DVI files generated from the above example went away! This is hope that maybe the outputs can be reconciled… Here's a different input with which there's a difference:
The difference is quite minor:
or side-by-side:
As I understand it, this is 1 scaled point (I think) in the word |
Yes, I agree, looks like different rounding. I still have a few places where I use double, I'm gonna change those to floats and see if it makes a difference. |
Based on some output I somewhat suspect it's the other way around (TeX Live |
Please take a look at the latest upload, also try increasing dvi_buf_size to some larger value. On my machine miktex and rstex agree almost completely on gentle now. |
Wow great, I installed MikTeX on macOS, and with
changed to
(or greater) the two DVI files for There are actually differences when TeX Live |
Closing this “issue”, as the output is identical between rsTeX and MiKTeX! Also, I just learned that the DVI files are not strictly required to be identical: https://tex.stackexchange.com/questions/416376/should-different-tex-implementations-e-g-miktexs-and-tex-lives-produce-iden |
There are some very minor differences between the DVI files generated by rsTeX, and those generated by the
tex
that comes with TeX Live. They do not seem to affect the generated output itself in any visual way (at least, as tried with a book-length.tex
file), but the DVI files differ.I plan to look at this later, but just documenting this here for now; hope you don't mind. The “error” may well be in the
tex
output (I know the implementation in TeX Live makes some changes and is not 100% true to the Pascal code intex.web
.) A difference shows up in this minimal example, saytest.tex
:The difference seems to be (using
dvitype
and diffing the output) is that the rsTeX-generated DVI file contains aright3
instruction (opcode) where thetex
one contains aw0
(and this shifts some future bytes).These are the commands I'm using to compare them (
./a.out
is rsTeX):The text was updated successfully, but these errors were encountered: