# Aw: Re: Re: [PATCH] Remove pdf target from Makefiles

2 messages from 2013-06-18 to 2013-06-18. Participants: Thomas Ackermann, Jonathan Nieder.
Thread: https://gitlist.dev/t/34202

## Thomas Ackermann, 2013-06-18 17:30

Subject: Aw: Re: Re: [PATCH] Remove pdf target from Makefiles
Message-ID: <1169504685.1649588.1371576637888.JavaMail.ngmail@webmail20.arcor-online.net>
URL: https://gitlist.dev/e/1169504685.1649588.1371576637888.JavaMail.ngmail%40webmail20.arcor-online.net

```
> 
> If I understood the original commit message correctly, you were saying
> the XML file was not suitable for html generation and you wanted to
> tweak it, and were dropping the PDF target to avoid breaking it.  Now
> if I understand correctly you are saying the XML file actually *is*
> suitable for html generation, and that the html generation rules just
> need tweaking.  In that case, why remove the PDF target?
> 
The latter is correct ;-)
In my commit message I talked about style files meaning
/etc/asciidoc/dblatex/asciidoc-dblatex.xsl and /etc/asciidoc/dblatex/asciidoc-dblatex.sty
which are used when creating user-manual.pdf out of user-manual.xml
and ./Documentation/docbook.xsl which is used for creating user-manual.html
out of user-manual.xml.
When I want to tweak the html generation rules I also have to tweak the pdf
generation rules because html and pdf should be as similiar to each other as
possible. But the pdf rules are global rules so we have to introduce rules
local to git and also tweak both rule sets in parallel.
I asked myself "Is this really worth the effort or should we drop user-manual.pdf 
and spend our efforts better on user-manual.txt and user-manual.html?"
and so came up with this patch ...


---
Thomas

```

## Jonathan Nieder, 2013-06-18 18:14

Subject: Re: Re: Re: [PATCH] Remove pdf target from Makefiles
Message-ID: <20130618181435.GB408@google.com>
URL: https://gitlist.dev/e/20130618181435.GB408%40google.com
In-Reply-To: <1169504685.1649588.1371576637888.JavaMail.ngmail@webmail20.arcor-online.net>

```
Thomas Ackermann wrote:

> When I want to tweak the html generation rules I also have to tweak the pdf
> generation rules because html and pdf should be as similiar to each other as
> possible.

Ah, *that's* what I missed.  Thanks for explaining.

I think it's fine for the html and pdf to look different.  After all,
a better way to get an exact rendering of the HTML as a PDF would be
to convert from HTML to PDF (or to print from a browser).  I always
assumed the point of the PDF was to look better on paper than the
HTML, so as long as you're not changing the source document in some
way that breaks the PDF, I don't see any harm in it.

Thanks again and hope that helps,
Jonathan

```
