-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page numbers offset in TOC by -10 #70
Comments
@lise-henry It seems this is an issue with the Looking at an old solution (without using #!/bin/bash
errors=0
function run_pdflatex_cmd {
pdflatex -synctex=1 --shell-escape -interaction=batchmode XXXXXX.tex
exitcode=$?
if [ $errors == 0 -a $exitcode != 0 ]; then errors=$exitcode ; fi
}
function run_biber_cmd {
biber XXXXXX
exitcode=$?
if [ $errors == 0 -a $exitcode != 0 ]; then errors=$exitcode ; fi
}
function run_extras_cmd {
makeglossaries XXXXXX
makeindex XXXXXX.idx
makeindex XXXXXX.nlo -s XXXXXX.ist -o XXXXXX.nls
exitcode=$?
if [ $errors == 0 -a $exitcode != 0 ]; then errors=$exitcode ; fi
}
function clean_up {
rm -f *.{acn,acr,alg,aux,bbl,tex.bbl,bcf,blg,tex.blg,dvi,gin,glg,gls,glo,idx,ilg,ind,ist,lof,lot,nlo,nls,ptc,out,ptc,run.xml,toc,synctex.gz,synctex.gz\(busy\)}
mv XXXXXX.pdf ../output/pdflatex/XXXXXX.pdf
mv XXXXXX.log ../output/pdflatex/XXXXXX.log
# open ../output/pdflatex/XXXXXX.pdf
}
run_pdflatex_cmd
run_biber_cmd
run_pdflatex_cmd
run_biber_cmd
run_extras_cmd
run_pdflatex_cmd
run_pdflatex_cmd
clean_up
exit $errors it seems we can add: \usepackage{imakeidx}
\makeindex[intoc] to
to:
Any thoughts? Haven't tested output. This is just a suggestion to try, while looking through my old repositories where I used LaTeX. |
Thanks for noting it. I'll look into it but I don't have much time for that right now, it'll probably have to be in february. |
Addind a third LaTeX pass seems, indeed, to fix this. I'm not sure why running e.g. makeindex would be necessary? I don't think you can mark index elements with Markdown? |
fixed in 89eb960 |
Page numbers are offset in TOC by
-10
.Image 1 (click to reveal)
Image 2 (click to reveal)
Side note: Although the images here show the use of a custom LaTeX template, I can reproduce this with the LaTeX template shipping with
crowbook
.The text was updated successfully, but these errors were encountered: