diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/.gitignore | 4 | ||||
l--------- | doc/a4.html2ps | 1 | ||||
-rwxr-xr-x | doc/cli.sh | 11 | ||||
-rw-r--r-- | doc/intro-prologue.xhtml | 8 | ||||
-rw-r--r-- | doc/intro.cli | 7 | ||||
-rw-r--r-- | doc/intro.html2ps | 11 | ||||
l--------- | doc/letter.html2ps | 1 | ||||
m--------- | doc/style | 0 |
8 files changed, 32 insertions, 11 deletions
diff --git a/doc/.gitignore b/doc/.gitignore index 88dbecc..4bb8225 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -1,3 +1,3 @@ -build2-toolchain-intro.ps -build2-toolchain-intro.pdf +build2-toolchain-intro*.ps +build2-toolchain-intro*.pdf build2-toolchain-intro.xhtml diff --git a/doc/a4.html2ps b/doc/a4.html2ps new file mode 120000 index 0000000..4b31c06 --- /dev/null +++ b/doc/a4.html2ps @@ -0,0 +1 @@ +style/a4.html2ps
\ No newline at end of file @@ -12,8 +12,8 @@ function error () { info "$*"; exit 1; } while [ $# -gt 0 ]; do case $1 in --clean) - rm -f build2-toolchain-intro.xhtml build2-toolchain-intro.ps \ -build2-toolchain-intro.pdf + rm -f build2-toolchain-intro.xhtml build2-toolchain-intro*.ps \ +build2-toolchain-intro*.pdf exit 0 ;; *) @@ -30,5 +30,8 @@ cli -I .. -v version="$version" -v date="$date" \ --link-regex '%bpkg([-.].+)%../../bpkg/doc/bpkg$1%' \ --output-prefix build2-toolchain- intro.cli -#html2ps -f intro.html2ps -o build2-toolchain-intro.ps build2-toolchain-intro.xhtml -#ps2pdf14 build2-toolchain-intro.ps build2-toolchain-intro.pdf +html2ps -f intro.html2ps:a4.html2ps -o build2-toolchain-intro-a4.ps build2-toolchain-intro.xhtml +ps2pdf14 -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true build2-toolchain-intro-a4.ps build2-toolchain-intro-a4.pdf + +html2ps -f intro.html2ps:letter.html2ps -o build2-toolchain-intro-letter.ps build2-toolchain-intro.xhtml +ps2pdf14 -sPAPERSIZE=letter -dOptimize=true -dEmbedAllFonts=true build2-toolchain-intro-letter.ps build2-toolchain-intro-letter.pdf diff --git a/doc/intro-prologue.xhtml b/doc/intro-prologue.xhtml index a6362cf..c99c919 100644 --- a/doc/intro-prologue.xhtml +++ b/doc/intro-prologue.xhtml @@ -31,8 +31,12 @@ $./intro.css$ <p id="revision">Revision <code>$version$</code>, $date$<br/> This revision of the document describes the <code>build2</code> toolchain <code>$version$.x</code> series and is available in the following - formats: <a href="$name$.xhtml">XHTML</a>, <a href="$name$.pdf">PDF</a>, - and <a href="$name$.ps">PostScript</a>.</p> + formats: + <a href="$name$.xhtml">XHTML</a>, + <a href="$name$-a4.pdf">PDF/A4</a>, + <a href="$name$-letter.pdf">PDF/Letter</a>, + <a href="$name$-a4.ps">PostScript/A4</a>, and + <a href="$name$-letter.ps">PostScript/Letter</a>.</p> </div> </div> <!-- noprint --> diff --git a/doc/intro.cli b/doc/intro.cli index 8401ed6..bf251bf 100644 --- a/doc/intro.cli +++ b/doc/intro.cli @@ -12,6 +12,13 @@ // // @@ section boundary page breaks (<hr class="page-break"/>) // @@ when printed, code background is gone, but spaces still there +// +// PDF +// +// @@ tree output is garbled +// @@ Install list margins missing +// @@ Could we use a nicer font, seeing that we embed them? +// // NOTES // diff --git a/doc/intro.html2ps b/doc/intro.html2ps index 051e384..cb3c458 100644 --- a/doc/intro.html2ps +++ b/doc/intro.html2ps @@ -1,6 +1,6 @@ @html2ps { option { - toc: hb; + /*toc: hb;*/ colour: 1; hyphenate: 1; titlepage: 1; @@ -26,7 +26,7 @@ Permission is granted to copy, distribute and/or modify this document under the terms of the MIT License.</p> - <p>Revision $[version], $D<br/> + <p>Revision <code>$[version]</code>, $D<br/> This revision of the document describes the <code>build2</code> toolchain <code>$[version].x</code> series.</p>"; } @@ -54,8 +54,13 @@ body { font-size: 12pt; text-align: justify; + background: white; +} + +code { + font-size: 9pt; } pre { - font-size: 10pt; + font-size: 9pt; } diff --git a/doc/letter.html2ps b/doc/letter.html2ps new file mode 120000 index 0000000..607ca58 --- /dev/null +++ b/doc/letter.html2ps @@ -0,0 +1 @@ +style/letter.html2ps
\ No newline at end of file diff --git a/doc/style b/doc/style -Subproject cacc05431f8b243e8cd94aba3910d8e5680dfe6 +Subproject ea72b21f2502527d8f25fda5817cb87672995ce |