380 reputation
1310
bio website
location Munich
age
visits member for 3 years, 5 months
seen Nov 13 at 12:58

Nov
4
comment Add preliminary elements to the ToC
Your newest Ghost-version works - and I found out what the issue with the \contentsline command was - hyperref changes the function such that it needs five and not three arguments. Thanks for this second approch which is much better!
Nov
3
comment Add preliminary elements to the ToC
Thank you very much though on your attempts so far!
Nov
3
comment Add preliminary elements to the ToC
Are you referring to a possibility of trailing empty chapters etc which can be omitted from the final output - at least as the content is concerned? I was actually thinking about using \includepdf to just grab the first part - i wasn't sure though whether hyperref links would break or not.
Nov
3
accepted Add preliminary elements to the ToC
Nov
3
comment Add preliminary elements to the ToC
Then I will have to dive through all used packages and disable one-by-one. Nevertheless I am receiving a new error with your newest version of the snippet: Argument of \contentsline has an extra } for the line \contentsline{chapter}{2\hspace {1em}Some chapter of another part}{}.
Nov
3
comment Add preliminary elements to the ToC
I was actually wrong! When using \include{Chapter1} your code does not work if all structural elements are in the second file. Adding a \chapter{Foo} after the include yields the expected result with the fake entries. Any ideas why this is happening?
Nov
3
comment Add preliminary elements to the ToC
Actually I fixed the issue as I was using input rather than include for my chapters and your code is now working as intended. Just the page numbers and we're good to go! Concerning packages I am just using book with the usual ams packages, etoolbox, some tikz packages, but nothing too fancy so far (except fancyhdr ;-) ).
Nov
3
comment Add preliminary elements to the ToC
Unfortunately this does not work with my current source files, yet with your MWE it does - I will have to find out what's interfering, thank you so far. Meanwhile, do you know how to specifically remove the page numbers from the fake content? Otherwise I would have to live with it having them.
Nov
3
comment Add preliminary elements to the ToC
I would like to use the proper names to have a draft of the final ToC.
Nov
3
asked Add preliminary elements to the ToC
Sep
23
awarded  Popular Question
Jul
2
awarded  Curious
May
21
awarded  Popular Question
Feb
11
awarded  Famous Question
Dec
25
awarded  Notable Question
Feb
12
comment Toggle visibility of solutions in LaTeX output for exams
+1. Shame I didn't notice it either - it works as expected!
Feb
12
accepted Toggle visibility of solutions in LaTeX output for exams
Feb
12
comment Toggle visibility of solutions in LaTeX output for exams
This doesn't work for me - probably because I have an enumerate environment in there. I am getting the error File ended while scanning use of \@argdef [...] suspect you have forgotten a '}'.
Feb
12
asked Toggle visibility of solutions in LaTeX output for exams
Dec
18
awarded  Popular Question