added code to remove openright option
This commit is contained in:
parent
998415f530
commit
7614288ac5
@ -102,6 +102,7 @@ parseF(inf,outf,reSkip,reSCnt)
|
|||||||
inf = "book-in.aux"
|
inf = "book-in.aux"
|
||||||
outf = "book.aux"
|
outf = "book.aux"
|
||||||
|
|
||||||
|
# remove selectlang eng statements from book aux
|
||||||
reSkip = [] ; reSCnt = []
|
reSkip = [] ; reSCnt = []
|
||||||
reSkip.append( re.compile(r"selectlanguage...english") ) ; reSCnt.append( 1 )
|
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"
|
inf = "book-in.toc"
|
||||||
outf = "book.toc"
|
outf = "book.toc"
|
||||||
parseF(inf,outf,reSkip,reSCnt)
|
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)
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ mv book.tex book-in.tex
|
|||||||
mv sphinxmessages.sty sphinxmessages-in.sty
|
mv sphinxmessages.sty sphinxmessages-in.sty
|
||||||
mv book.aux book-in.aux
|
mv book.aux book-in.aux
|
||||||
mv book.toc book-in.toc
|
mv book.toc book-in.toc
|
||||||
|
mv sphinxmanual.cls sphinxmanual-in.cls
|
||||||
|
|
||||||
python3.7 ../../fixup-latex.py
|
python3.7 ../../fixup-latex.py
|
||||||
# generates book-in2.tex
|
# generates book-in2.tex
|
||||||
|
Loading…
Reference in New Issue
Block a user