Closed AlexanderZeilmann closed 3 years ago
Weird, the commands work on my machine. But I agree that having to run just one command would be better. I'll try to set up latexmk
Okay, I just figured out what is going on:
For me, the .tex
extension was not optional.
So
pdflatex -output-directory examples/documentation main.tex
starts the compilation, but after some time fails with
! LaTeX Error: File `kaobiblio.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
Then I installed kaobook
as described in these instructions. Now kaobiblio.sty
is found and for some reason the .tex
extension is also optional.
As you probably have kaobook
installed like this, it explains why it worked for you.
So the problem is fixed for me, but I guess most users will not have kaobook
installed like this.
Thanks for the report. Having the packages inside a separate styles
directory made the code slightly more organised, but loading the packages with something like \usepackage{styles/kaobiblio}
made it very difficult to pass custom options to these packages. So I started loading them like \usepackage{kaobiblio}
in all the examples, which resulted in the present issue. Moreover, I discovered that my edit also caused errors on Overleaf.
I think that the best option is to move the packages to the root of the repository, so that they can be called with \usepackage{kaobiblio}
and everything, including the custom options and the compilation method proposed in the README (except possibly for the optional extension), should work again. I have now implemented this strategy: the two packages mdftheorems.sty
and plaintheorems.sty
were merged into a single package kaotheorems.sty
(the framed
option can be passed to this package to activate the behaviour of mdftheorems.sty
, as mentioned in the updated documentation), while the other two packages, environments.sty
and packages.sty
, have been merged into the kao.sty
package.
I was referring to these commits: d411f681b167e91daf4e4d15cfb7089871f6c1e1, 660fc2803808514829b1d75ff6be7223665bc2df, 4183b4e938c1ad2b9f91317d2b75d9d4e065f959
Impressive reorganization! Thank you!
I just tested it and it works for me. Closing this issue.
Prerequisites
Description
Compiling the documentation as described in the ReadMe does not work.
Minimal Working Example
From the ReadMe:
This fails because there is no
main.tex
in the root of the repo:If I
cd examples/documentation/
and runpdflatex
there I getCopying the
main.tex
file to the root does not work either because then paths to the packagesand to the files
are wrong.
Expected behavior: It would be great if there were only one command necessary to compile the documentation (including the glossary and nomenclature). Maybe this can be done with
latexmk
ormake
.Actual behavior: Described above.