Theses, Books, Title pageskaobook will not build

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
wmeyer48
Posts: 10
Joined: Mon Sep 23, 2019 4:40 pm

kaobook will not build

Post by wmeyer48 »

I am relatively new to LaTeX, and have been trying to set up the kaomain template which I downloaded from latextemplates.com.

In trying to follow the instructions from that site:

Code: Select all

% !TEX none
pdflatex main
makeindex main.nlo -s nomencl.ist -o main.nls
makeindex main
biber main
main
I find that pdflatex main fails because the glossaries have not been produced, and makeglossaries will not run because pdflatex failed:

Code: Select all

% !TEX none
[13] (main.mw)

! Package glossaries Error: Glossary entry `computer' has not been defined.

See the glossaries package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.99 ...ng to use them, like this: \gls{computer}.

?
! Emergency stop.
Is there a way to run pdflatex and ignore the lack of glossaries? Or is there some other solution needed? Running pdflatex again does not resolve the problem, no matter how many times I run it.

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

kaobook will not build

Post by Johannes_B »

Define the glossary entry called computer.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
wmeyer48
Posts: 10
Joined: Mon Sep 23, 2019 4:40 pm

kaobook will not build

Post by wmeyer48 »

Define the glossary entry called computer.
I should have emphasized that this problem is with the unchanged files downloaded with the template. I have so far edited nothing. And being new to the package, was expecting to build the sample before making any changes.

And looking in main.tex, it appears as though the entry is being defined:
\newglossaryentry{computer}{
name=computer,
description={is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format}
}
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

kaobook will not build

Post by rais »

wmeyer48 wrote: And looking in main.tex, it appears as though the entry is being defined:
yes, well, the definition comes a bit too late. To ensure it's defined before being accessed, just move it -- and the \newacronym macros, too -- into the preamble, i.e., between \documentclass and \begin{document}.

KR
Rainer
wmeyer48
Posts: 10
Joined: Mon Sep 23, 2019 4:40 pm

kaobook will not build

Post by wmeyer48 »

yes, well, the definition comes a bit too late. To ensure it's defined before being accessed, just move it -- and the \newacronym macros, too -- into the preamble, i.e., between \documentclass and \begin{document}.
Thank you! I might have gotten there eventually, but it's a part-time activity for me, and a lot to digest.
max4tex
Posts: 2
Joined: Mon Mar 15, 2021 7:48 pm

kaobook will not build

Post by max4tex »

Hello,

when I try to compile the kaobook template, I get a couple of errors, but nothing else.

I tried to open it in studiotex and texmaker editors, but they give the same error messages:

There is called a "kaobook"-style, but it is named "kao" (one of these errors).

A couple of other errors refer to missing styles.

And finaly, I tried to use the compileall.sh-script that comes with the template, but am getting the same errors, more or less.

The only way to use the template without problems is to open it in overleaf.com.

What am I doing wrong? I would like to use it offline and have no chance to do so... Some help?

Thank you a lot!

With kind regards,
Markus
max4tex
Posts: 2
Joined: Mon Mar 15, 2021 7:48 pm

kaobook will not build

Post by max4tex »

Ok, I resolved it by myself (reading a little more in this forum and on other pages):

The problem had to do with missing packages.

When installing the editors (like Texstudio or Texmaker), it seems to be that you will not get all the needed packages necessary for compiling the kaobook template.

I had to install the texlive-full package (ubuntu 20.04) and then everything worked fine out of the box.

Thank you for indirect help!

Ciao Markus
Post Reply