added code to remove openright option

This commit is contained in:
NT committed 2021-07-14 18:16:27 +02:00
1 parent 998415f530
commit 7614288ac5
2 files changed
+15 -1

No files matched your search

+14 -1
View File
@@ -102,6 +102,7 @@ parseF(inf,outf,reSkip,reSCnt)
inf = "book-in.aux"
outf = "book.aux"
# remove selectlang eng statements from book aux
reSkip = [] ; reSCnt = []
reSkip.append( re.compile(r"selectlanguage...english") ) ; reSCnt.append( 1 )
@@ -109,7 +110,19 @@ parseF(inf,outf,reSkip,reSCnt)
#---
# same, selectlanguage
# same, selectlanguage for toc
inf = "book-in.toc"
outf = "book.toc"
parseF(inf,outf,reSkip,reSCnt)
#---
inf = "sphinxmanual-in.cls"
outf = "sphinxmanual.cls"
# remove openright option from style
reSkip = [] ; reSCnt = []
reSkip.append( re.compile(r"PassOptionsToClass.openright...sphinxdocclass") ) ; reSCnt.append( 1 )
parseF(inf,outf,reSkip,reSCnt)
+1
View File
@@ -22,6 +22,7 @@ mv book.tex book-in.tex
mv sphinxmessages.sty sphinxmessages-in.sty
mv book.aux book-in.aux
mv book.toc book-in.toc
mv sphinxmanual.cls sphinxmanual-in.cls
python3.7 ../../fixup-latex.py
# generates book-in2.tex