Skip to content
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

Reference-Error when compiling kaobook-class in overleaf community edition #1178

Open
ljagg opened this issue Jan 2, 2024 · 2 comments
Open

Comments

@ljagg
Copy link

ljagg commented Jan 2, 2024

raw.log

Steps to Reproduce

  1. Installing overleaf community edition using the toolkit and successfully pulling every Texlive package via tlmgr install scheme-full
  2. Exporting the kaobook-Template from overleaf.com after importing it from here
  3. Compiling the files from scratch after clearing the cache

Expected Behaviour

Successful compilation of a PDF file including correct references and bibliography
The same LaTex project compiles without major errors on overleaf.com

Observed Behaviour

The references and the bibliography aren't generated properly
When compiling i get the following persistent errors:
Package hyperref Warning: bookmark level for unknown mtocsection defaults to 0.
Citation 'XXX' on page 1 undefined on input line X ...for very citation
Empty bibliography on input line 258.
Package biblatex Warning: Please (re)run Biber on the file: output and rerun LaTeX afterwards.

I'll attach the raw log file.

Probably the community edition doesn't use or supporting the compileall.sh file of the package that specifies how to compile the document. I'll paste it here:

#!/bin/bash

# Compile document
pdflatex -interaction=nonstopmode main

# Compile nomenclature
makeindex main.nlo -s nomencl.ist -o main.nls

# Compile index
makeindex main

# Compile bibliography
biber main

# Compile document
pdflatex main

# Compile glossary
makeglossaries main

# Compile document
pdflatex main

Technical Info

Beside this error the installation works well. The /bin/doctor script included in the toolkit doesn't show any errors

Thank you in advance for your help!

@Musicminion
Copy link

Musicminion commented Feb 6, 2024

I can compile it on my self-hosted overleaf, maybe you need to update your texlive?

You should make a screenshot of the core error(usuallly in red color) that overleaf shows to you.

@JoshuaSokolowski
Copy link

I had the same problem but could fix it by installing Biber from source inside the container:

cd /home
wget https://github.com/plk/biber/archive/refs/tags/v2.19.zip
unzip v2.19.zip
cpan
> install Module::Build
> install PAR::Packer
> quit
perl ./Build.PL
./Build installdeps
./Build test
apt update
apt -y upgrade
apt install context
apt-get install libxml-libxslt-perl
./Build test
./Build install
biber --version
tlmgr install scheme-full
tlmgr update --self
tlmgr install scheme-full
mtxrun --generate
mktexlsr
updmap-sys
fmtutil-sys --all

I found all the necessary info in #1030
Notice that I had to install libxml-libxslt-perl via apt because the test failed first, so maybe it would be better to install this lib first. Hope this helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants