On 01/21/2011 01:11 PM, Tim Wescott wrote:
Because I think like a software engineer, I'm putting documents
together in Lyx so that I can generate them with a makefile. This
isn't (I hope!) just over the top attention to detail -- most of my
graphs are generated in Scilab, and I've found that the best way to
not lose the source for a graph is to generate it on the fly and
discard the actual eps file when I'm done.
I recently got an email from a reader who got one of my PDF documents
off the web, then as an experiment reformatted it for a Sony eBook
reader. It actually looks OK, and it has made me think (dangerous I
know, but there you are).
Since my 'build time' model is to open a command line, go to the
correct directory, type "make", and go have some coffee, why shouldn't
I set things up so that I end up with two sets of documents -- one for
this big desktop "universal eBook reader" that I'm typing at, and
another for little eBook readers. Particularly if I can find one
eBook format that'll at least be suitable for a number of readers.
But -- how do I do this? As far as I can see, the latex and lyx
command lines are not rich in switches to do things like insert
formatting commands. It appears that the best I can do is to include
a file with page margins, then rename files as appropriate so that
when the "eBook version" gets built that file name points to the eBook
margins, and when the "regular old" version gets built that file name
points to decent margins for A-size paper.
Is this the best I can do, or is there some other, better way?
If most of the options are relatively global, you could do this. Create
separate "master" documents for the two versions. These will set
document options but then do nothing but include the common document.
Richard