LaTeX forum ⇒ Theses, Books, Title pagesebook Template not producing ToC Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
DavidDaily
Posts: 2
Joined: Thu May 09, 2019 5:56 pm

ebook Template not producing ToC

Postby DavidDaily » Thu May 09, 2019 6:05 pm

Hello,

I got the ebook template (https://www.latextemplates.com/template/ebook) and can't seem to get it to work on my system.

It works fine in Overleaf: https://www.overleaf.com/read/gpbzxbcxzcmx
But on my machine it doesn't work: https://daviddaily.dev/LaTeX/Anders/Output.pdf
all of the code for it is also there: https://daviddaily.dev/LaTeX/Anders

the shell script I'm using to generate Output.pdf is

  1. #!/bin/bash
  2.  
  3. while inotifywait -e close_write *.tex; do
  4. pdflatex -file-line-error -interaction nonstopmode Main.tex
  5. mv Main.pdf Output.pdf
  6. mv Main.log .main.log
  7. rm Main.out
  8. rm Main.aux
  9. rm Main.toc
  10. done


Fixed version thanks to rais:
  1. #!/bin/bash
  2.  
  3. while inotifywait -e close_write *.tex; do
  4. pdflatex -file-line-error -interaction nonstopmode Main.tex
  5. pdflatex -file-line-error -interaction nonstopmode Main.tex
  6. mv Main.pdf Output.pdf
  7. mv Main.log .main.log
  8. rm Main.out
  9. rm Main.aux
  10. rm Main.toc
  11. done
Last edited by DavidDaily on Tue May 14, 2019 2:35 pm, edited 1 time in total.

rais
Posts: 209
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Fri May 10, 2019 8:53 am

Hi,
you need to run pdflatex at least twice, before even thinking about deleting the toc file.

KR
Rainer

DavidDaily
Posts: 2
Joined: Thu May 09, 2019 5:56 pm

Postby DavidDaily » Tue May 14, 2019 2:33 pm

rais wrote:run pdflatex at least twice


Fascinating. Just duplicated the pdflatex line in my bash script and it all works out perfectly now (same links as first post)


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 4 guests