forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-doc/pms: Fix HTML output with TeX Live 2020.
Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Ulrich Müller <[email protected]>
- Loading branch information
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -19,19 +19,11 @@ | ||
@# need to do it twice to make the big env var table work | ||
mk4ht xhlatex pms | ||
mk4ht xhlatex pms | ||
+ @# ... and a third time for the eapi features table | ||
+ mk4ht xhlatex pms | ||
@# some www servers ignore meta tags, resulting in a wrong charset. | ||
@# therefore recode the very few non-ascii characters | ||
recode -d l1..h3 pms.html | ||
- @# work around irregularity in how links to longtables are | ||
- @# formatted in the List of Tables | ||
- LC_ALL=C sed -i -e '/<span class="lotToc" > /{N;N;s/\( <a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' pms.html | ||
- @# fix xhtml syntax in longtable captions | ||
- LC_ALL=C sed -i -e 's%</td>\( *<div class="multicolumn"\)%\1%;tx;b;:x;s%</tr>%</td>&%;t;n;bx' pms.html | ||
- @# indent algorithms properly, and avoid adding extra vertical | ||
- @# space in Konqueror | ||
- LC_ALL=C sed -i -e 's/span style="width:/span style="display:-moz-inline-box;display:inline-block;height:1px;width:/' pms.html | ||
- @# align algorithm line numbers properly | ||
- LC_ALL=C sed -i -e '/<span class="ALCitem">/{N;s/\n\(class="[^"]\+">\)\([0-9]:<\/span>\)/\1\ \2/}' pms.html | ||
|
||
pms.bbl: pms.bib pms.tex vc.tex eapi-cheatsheet.pdf | ||
latex pms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -52,9 +52,6 @@ | ||
recode -d l1..h3 $@ | ||
@# declare encoding as utf-8, although it is pure ascii | ||
LC_ALL=C sed -i -e '/<?xml\|<meta/s/iso-8859-1/utf-8/' $@ | ||
- @# work around irregularity in how links to longtables are | ||
- @# formatted in the List of Tables | ||
- LC_ALL=C sed -i -e '/<span class="lotToc" > /{N;N;s/\( <a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]\+/\2\1/}' $@ | ||
@# remove redundant span elements | ||
LC_ALL=C sed -i -e ':x;/<span\(\s\+[^>]*\)\?$$/{N;bx;};:y;s/\(<span\s\+[^>]*>\)\([^<]*\)<\/span>\1/\1\2/;ty' $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters