fmarotta / kaobook

A LaTeX class for books, reports or theses based on https://github.com/kenohori/thesis and https://github.com/Tufte-LaTeX/tufte-latex.

Home Page:https://github.com/fmarotta/kaobook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot use the empheq package

me7pako opened this issue · comments

Description

Minimal Working Example

\documentclass{kaobook}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{kaobiblio}
\usepackage{kaotheorems}
\usepackage{kaorefs}
\usepackage{empheq}
\begin{document}

\title{Bug Report}
\author{Author}
\date{\today}

\frontmatter
\maketitle
\mainmatter
\setchapterstyle{kao}

\chapter{First Chapter}
\blindtext

\end{document}

Expected behavior:

Actual behavior:
<a bug report : ! LaTeX Error: Command \refeq already defined.
Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...

l.166 ...hyperref[eq:#1]\eqname\xspace\ref{eq:#1}}

? >

** Additional Information
I believe the issue is with the package kaorefs since in the errors box I get a link to kaorefs.sty

image

Hmm, I'd try to load kaorefs after empheq, and relax \refeq in between. In other words, I'd try to load the packages like so:

\usepackage{empheq}
\let\refeq\relax
\usepackage{kaorefs}

but let me know if it doesn't work.

Hmm, I'd try to load kaorefs after empheq, and relax \refeq in between. In other words, I'd try to load the packages like so:

\usepackage{empheq}
\let\refeq\relax
\usepackage{kaorefs}

but let me know if it doesn't work.

Thank you, it worked. Although for a totally different matter which is the use of mathtools. I had to cut it and paste it after kaorefs and relax refeq.

Thanks a lot. I owe you my thesis :D