LaTeX forum ⇒ Theses, Books, Title pageskaobook will not build Topic is solved

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

kaobook will not build

Postby wmeyer48 » Mon Jun 01, 2020 4:56 pm

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:
% !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:
% !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!

User avatar
Johannes_B
Site Moderator
Posts: 4185
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jun 01, 2020 5:22 pm

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: 9
Joined: Mon Sep 23, 2019 4:40 pm

Postby wmeyer48 » Mon Jun 01, 2020 7:21 pm

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: 288
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Mon Jun 01, 2020 9:37 pm

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: 9
Joined: Mon Sep 23, 2019 4:40 pm

Postby wmeyer48 » Mon Jun 01, 2020 10:14 pm

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

Postby max4tex » Mon Mar 15, 2021 7:53 pm

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

Postby max4tex » Wed Mar 17, 2021 12:11 pm

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


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 7 guests