Georg Baum wrote:
Am Sonntag, 14. Januar 2007 13:18 schrieb Dov Feldstern:
One strange thing that I'm seeing, though, is that the dvi output when
using "auto" and "default" is not identical: I tried this out on a file
which fits really tightly on the page --- when using "default" it all
fits on one page, but when using "auto" it doesn't. I don't know if this
matters or not, but it's a little strange. If you're interested in
following this up, I can give you the files, but I don't think that this
is something which should hold anything up.
There are two possible reasons I can think of:
a) the \inputencoding command causes additional whitespace
b) LyX outputs some additional whitespace before or after \inputencoding
commands.
It would be nice if you could check whether b) is the case by manually
removing all whitespace before and/or after \inputencoding commands
leaving paragraph breaks intact of course). Does it then fit on one page?
If yes, we should fix the output of LyX, and I would be interested in the
example file. If not, we cannot do anything.
Georg
Hi!
I just spent two hours playing around with this, and it turns out that
the problem *is* with the way LyX is writing the output. I don't exactly
understand what's going on, but I was able to fix it with a really
simple patch (attached) --- although since I don't exactly understand
the problem, I can't vouch for the patch's correctness. It does work for
me, however.
If you want to see the example file I worked with, I can give it to you,
but I'd rather not post it publicly (it's an old version of my CV). Is
there any way for me to get it to you privately?
Hope this helps!
Dov
Index: src/output_latex.C
===================================================================
--- src/output_latex.C (revision 16673)
+++ src/output_latex.C (working copy)
@@ -307,7 +307,7 @@
// account. This may result in some unneeded encoding changes.
if (switchEncoding(os, bparams, outer_encoding,
*(basefont.language()->encoding()))) {
- os << '\n';
+ os << "%\n";
texrow.newline();
}
@@ -474,7 +474,7 @@
basefont = pit->getLayoutFont(bparams, outerfont);
if (switchEncoding(os, bparams, *(basefont.language()->encoding()),
outer_encoding)) {
- os << '\n';
+ os << "%\n";
texrow.newline();
}