Opened 16 years ago

Closed 10 years ago

#49 enhancement closed invalid (invalid)

RFE: enhancements to Lore for --config book

Reported by: radix Owned by:
Priority: normal Milestone:
Component: lore Keywords:
Cc: radix, Jean-Paul Calderone, spiv, Thijs Triemstra Branch:


Change History (8)

comment:1 Changed 16 years ago by radix

1) Make lore use --template
2) Make default templates for both lore and latex
3) Implement the catalog: syntax in --template
4) With --config book, Instead of processing every
file, process only book.html, then find the files
mentioned in book and process them.

(capturing a conversation I had with spiv a while back):

Feb 20 16:37:09
<MoonFallen> spiv_work: the idea is to ditch book.tex
in favor
of howto/index.html; if you want to add latex
stylesheets you do them with
a <link rel="stylesheet" type="application/x-latex"
<MoonFallen> i designed it for my own needs. it works,
but i would like
to know if there's anything else you expect it to do,
that it doesn't do
<spiv> MoonFallen: Yes, I absolutely agree with the
idea of ditching book.tex.
<spiv> I'm hesistant to require latex-specific markup,
<MoonFallen> browsers happily ignore it and it's 100%
xhtml compliant
<spiv> I think I'd prefer a --template argument to lint
-o latex.
<spiv> Which is what the current html output does, and
I think it works well.
<MoonFallen> spiv_work: i can do that
<spiv> MoonFallen: That'd be great. :)
<MoonFallen> spiv: there's another whole direction we
can go there,
though: make different templates available through the
system itself,
instead of requiring the developer to write one every time
<spiv> Hmm.
<spiv> Having default templates is probably good.
<spiv> What did you have in mind?
<MoonFallen> well, the first thing i noticed when i
started using lore
is it only supports letter-sized paper. so there's an
obvious need in my
mind for an a4 template
<itamar> yes
<MoonFallen> other than that, it's all just prettiness.
different colors
in the html, different fonts in the printed version, etc.
<MoonFallen> give people an option for how their
document looks
<spiv> Heh. I use a4, and I never noticed that. I
guess I've never
printed it :)
<MoonFallen> not so much the paper size actually, but
the units are in
<MoonFallen> i think it might print ok
<MoonFallen> 80-column <pre> stuff won't fit though
<spiv> Hmm.
<spiv> I'd like 80-columns of pre to fit on the print
<spiv> But I guess if someone knows what they're doing,
they're welcome to
change their own template.
<MoonFallen> well my train of thought is that you could
make an a4
template (or a4 versions of a series of templates,
depending on how motivated
we are) that just uses a slightly smaller font in \verbatim
<MoonFallen> i could also use this as an opportunity to
start putting in
color, which i think the printed version badly needs.
<MoonFallen> i'm thinking lore --template
catalog:letter-1 -o latex
<MoonFallen> if you want to use your own template you
give the filename,
otherwise you ask for a catalog: entry and it copies
the right one for you

comment:2 Changed 16 years ago by Cory Dodt

Some work has been done on this already, in fact --config
book will work, you give it some equivalent of index.html
(with optional stylesheet as specced above) and it will
produce index.tex.

Spiv has also done some work on this, the details of which I
don't know.

Finally, we want to get rid of the latex stylesheets in the
HTML code.  This can be done with magic latex macros which
have yet to be written.

comment:3 Changed 16 years ago by spiv

More importantly, I want to get rid of the current
duplication of admin/book.tex and doc/howto/index.html.

comment:4 Changed 14 years ago by Jean-Paul Calderone

Is this still relevant?

comment:5 in reply to:  3 Changed 11 years ago by Thijs Triemstra

Cc: Thijs Triemstra added

Replying to spiv:

More importantly, I want to get rid of the current duplication of admin/book.tex and doc/howto/index.html.

Both files are gone, perhaps this ticket can be closed?

comment:6 Changed 11 years ago by Jean-Paul Calderone

book.tex merely moved to doc/core/howto. Likewise, doc/howto/index.html is now doc/core/howto/index.xhtml

comment:7 Changed 10 years ago by Glyph

Resolution: invalid
Status: newclosed

I can't figure out what this is talking about any more. Many of the complaints may still be valid, but:

  1. they should be filed as individual tickets
  2. they should be better described
  3. some of them probably shouldn't be bothered with.

comment:8 Changed 8 years ago by <automation>

Owner: spiv deleted
Note: See TracTickets for help on using tickets.