## LaTeX forum ⇒ Theses, Books, Title pages ⇒ Problem labelling equations Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
vicentear
Posts: 9
Joined: Thu Jun 20, 2019 7:26 pm

### Problem labelling equations

Good morning everybody

I am using the latex template created by Steve R. Gunn and modified by Vel to write my PhD thesis. However, I have a problem referencing equations.

I have, for instance, written the following code:

\beq
H_s = s \vf \sigma^i (p_i + e A_i)
\label{eq:ch1_w}
\eeq
where $s=\pm1$ describes the chirality of the node, $p_i$ is the momentum operator and $e=\vert q \vert$ is the charge of the electron. \Cref{eq:ch1_w} does not account for the separation between node

But the resulting pdf doesn't have any label. In fact, the console gives an error (attached you will find a capture of the generated pdf and the error). Nevertheless, the introductory chapter that is inside the template, the section related to write tables (section 7.1.4), it has a reference that works perfectly.

Do you know what is happening?

I would really appreciate your help.
Attachments
pdf
Screenshot from 2019-06-19 12-29-45.png (28.36 KiB) Viewed 1943 times
code
Screenshot from 2019-06-19 12-28-54.png (35.6 KiB) Viewed 1943 times

Johannes_B
Site Moderator
Posts: 4104
Joined: Thu Nov 01, 2012 4:08 pm
Do not use \beq and \eeq.
Use the proper long form.

Aside from that, please provide a minimal working example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

vicentear
Posts: 9
Joined: Thu Jun 20, 2019 7:26 pm
Even with a proper environment the references are still missing. I attached new files with a longer extension. I hope that they are better.

Johannes_B wrote:Do not use \beq and \eeq.
Use the proper long form.

Aside from that, please provide a minimal working example.
Attachments
Captura de pantalla 2019-06-21 a las 9.16.57.png (283.72 KiB) Viewed 1912 times
Captura de pantalla 2019-06-21 a las 9.15.54.png (261.81 KiB) Viewed 1912 times
test1.tex
Log file
log file.txt
tex code

Johannes_B
Site Moderator
Posts: 4104
Joined: Thu Nov 01, 2012 4:08 pm
Unfortunately, you did not post a minimal working example. I cannot test the code snippet you posted and cannot guess the reason, why the references don't work for you.
From the log file i can see, that at least one command (tabhead) is unknown. You should fix things like that.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

vicentear
Posts: 9
Joined: Thu Jun 20, 2019 7:26 pm
Johannes_B wrote:Unfortunately, you did not post a minimal working example. I cannot test the code snippet you posted and cannot guess the reason, why the references don't work for you.
From the log file i can see, that at least one command (tabhead) is unknown. You should fix things like that.

Sorry. I did't understand you. I send you a zip file with all the project. Chaptertest.tex is where the reference are written. Hope this works.
Attachments
thesis_1%20tests.zip

Johannes_B
Site Moderator
Posts: 4104
Joined: Thu Nov 01, 2012 4:08 pm
I do get an error because cleverref needs to be loaded after hyperref.

Use the global option nohyperref and change the part befor \begin{document} to something like the following.

\usepackage{hyperref}\hypersetup{pdftitle=\ttitle} % Set the PDF's title to your title\hypersetup{pdfauthor=\authorname} % Set the PDF's author to your name\hypersetup{pdfkeywords=\keywordnames} % Set the PDF's keywords to your keywords \usepackage{cleveref}\begin{document}

The references that are present in the test, appear for me after the required several compiling steps.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

vicentear
Posts: 9
Joined: Thu Jun 20, 2019 7:26 pm
Thank you so much!! This completely solves the problem! Now references do not have any color, but for sure cleverer will have some way to put them.

Again thank you so much! I am indebted to you

Johannes_B
Site Moderator
Posts: 4104
Joined: Thu Nov 01, 2012 4:08 pm
You can use the original in your preamble.
\hypersetup{pdfpagemode={UseOutlines},bookmarksopen=true,bookmarksopenlevel=0,hypertexnames=false,colorlinks=true,% Set to false to disable coloring linkscitecolor=magenta,% The color of citationslinkcolor=red,% The color of references to document elements (sections, figures, etc)urlcolor=mdtRed,% The color of hyperlinks (URLs)pdfstartview={FitV},unicode,breaklinks=true,}