[Booki-dev] Removing some unwanted pages from produced PDF, disabling alternative margins

Jean-Noël Rivasseau elvanor at gmail.com
Mon Aug 8 05:10:28 PDT 2011


I am not a Python coder, but since I am a professional programmer, I
can perfectly understand what this Python file does.

Then again, it's not a template then. It's hacking at the core source
code, which I wanted to avoid. Is there any other way?

On Mon, Aug 8, 2011 at 2:09 PM, adam <adam at flossmanuals.net> wrote:
> i think the file to edit is
>
> installdir/objavi/fmbooks.py
>
> how versed are you at python?
>
> adam
>
>
>
> On 08/08/2011 02:06 PM, Jean-Noël Rivasseau wrote:
>>
>> Hello
>>
>> I could not find any fmbook template. I did find two interesting
>> templates:
>>
>> end_matter.en.html
>> inside-front-cover.en.html
>>
>> If I hack those, I can control what goes into these pages. The problem
>> is that I dont want those pages at all. I tried to remove those HTML
>> files in the hope that Objavi would skip them, but the PDF generation
>> then fails (logically, at the Generate preamble pdf, since it does not
>> find it).
>>
>> So, if there a "master template"? Or can I disable the generation of
>> preamble and end matter alltogether?
>>
>> On Mon, Aug 8, 2011 at 12:37 PM, adam<adam at flossmanuals.net>  wrote:
>>>
>>> hey :)
>>>
>>> On 08/08/2011 12:33 PM, Jean-Noël Rivasseau wrote:
>>>>
>>>> Hello,
>>>>
>>>> Now that I managed to install Objavi correctly, I have 3 questions
>>>> about the generated PDF (which is not yet perfect according to my
>>>> needs):
>>>>
>>>> 1) How can I remove the (almost blank) page with the book license at
>>>> the start? (we already have a hand written page where we explain our
>>>> license).
>>>
>>> i think you need to hack the templates. check fmbook template and alter
>>> that
>>> as i believe it is the default
>>>
>>>> 2) How can I remove the (almost blank) page with the Made with booki
>>>> content at the end?
>>>
>>>
>>> same
>>>
>>>
>>>> 3) Currently the PDF has alternating margins (on odd / even pages). I
>>>> guess that would be great for publishing (actually printing the book)
>>>> but we also want to have a web PDF version of the book. How can I
>>>> disable these alternating margins? Choosing the "web"export from
>>>> objavi does not work for us since it also suppresses the table of
>>>> contents (which we need!)
>>>
>>> ooo...good question...um....luka?
>>>
>>> adam
>>>
>>>
>>>>
>>>> Thanks for the help.
>>>>
>>>> Jean-Noel
>>>> _______________________________________________
>>>> Booki-dev mailing list
>>>> Booki-dev at lists.flossmanuals.net
>>>> http://lists.flossmanuals.net/listinfo.cgi/booki-dev-flossmanuals.net
>>>
>>> --
>>>
>>> --
>>> Adam Hyde
>>> Founder, FLOSS Manuals
>>> Project Manager, Booki
>>> Book Sprint Facilitator
>>> mobile :+ 49 177 4935122
>>> identi.ca : @eset
>>> booki.flossmanuals.net : @adam
>>>
>>> http://www.flossmanuals.net
>>> http://www.booki.cc
>>> http://www.booksprints.net
>>>
>>> _______________________________________________
>>> Booki-dev mailing list
>>> Booki-dev at lists.flossmanuals.net
>>> http://lists.flossmanuals.net/listinfo.cgi/booki-dev-flossmanuals.net
>>>
>> _______________________________________________
>> Booki-dev mailing list
>> Booki-dev at lists.flossmanuals.net
>> http://lists.flossmanuals.net/listinfo.cgi/booki-dev-flossmanuals.net
>
> --
>
> --
> Adam Hyde
> Founder, FLOSS Manuals
> Project Manager, Booki
> Book Sprint Facilitator
> mobile :+ 49 177 4935122
> identi.ca : @eset
> booki.flossmanuals.net : @adam
>
> http://www.flossmanuals.net
> http://www.booki.cc
> http://www.booksprints.net
>
> _______________________________________________
> Booki-dev mailing list
> Booki-dev at lists.flossmanuals.net
> http://lists.flossmanuals.net/listinfo.cgi/booki-dev-flossmanuals.net
>



More information about the Booki-dev mailing list