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.
https://github.com/fmarotta/kaobook
LaTeX Project Public License v1.3c
858 stars 184 forks source link

Cannot use the empheq package #247

Closed me7pako closed 1 year ago

me7pako commented 2 years ago

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:** 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](https://user-images.githubusercontent.com/53613644/185672435-6c7e662a-c9f0-4ce3-b33e-37c5a3426aa6.png)
fmarotta commented 2 years ago

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.

me7pako commented 1 year ago

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