added code to remove openright option

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

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)

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