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

Cannot use the empheq package #247

Closed
me7pako opened this issue Aug 19, 2022 · 2 comments
Closed

Cannot use the empheq package #247

me7pako opened this issue Aug 19, 2022 · 2 comments

Comments

@me7pako
Copy link

me7pako commented Aug 19, 2022

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

@fmarotta
Copy link
Owner

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
Copy link
Author

me7pako commented Aug 14, 2023

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

@me7pako me7pako closed this as completed Aug 14, 2023
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

2 participants