LaTeX forum ⇒ Theses, Books, Title pagesProblem labelling equations Topic is solved

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

Problem labelling equations

Postby vicentear » Thu Jun 20, 2019 8:27 pm

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
Screenshot from 2019-06-19 12-29-45.png
pdf
Screenshot from 2019-06-19 12-29-45.png (28.36 KiB) Viewed 692 times
Screenshot from 2019-06-19 12-28-54.png
code
Screenshot from 2019-06-19 12-28-54.png (35.6 KiB) Viewed 692 times

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

Postby Johannes_B » Thu Jun 20, 2019 10:51 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: 4
Joined: Thu Jun 20, 2019 7:26 pm

Postby vicentear » Fri Jun 21, 2019 9:19 am

Even with a proper environment the references are still missing. I attached new files with a longer extension. I hope that they are better.

Thank you for your help




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
Captura de pantalla 2019-06-21 a las 9.16.57.png (283.72 KiB) Viewed 661 times
Captura de pantalla 2019-06-21 a las 9.15.54.png
Captura de pantalla 2019-06-21 a las 9.15.54.png (261.81 KiB) Viewed 661 times
test1.tex
Log file
(1.67 KiB) Downloaded 26 times
log file.txt
tex code
(89.02 KiB) Downloaded 30 times

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

Postby Johannes_B » Sat Jun 22, 2019 8:03 am

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: 4
Joined: Thu Jun 20, 2019 7:26 pm

Postby vicentear » Sat Jun 22, 2019 10:55 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
(313.18 KiB) Downloaded 11 times

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

Postby Johannes_B » Sun Jun 23, 2019 8:22 am

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.

  1. \usepackage{hyperref}
  2. \hypersetup{pdftitle=\ttitle} % Set the PDF's title to your title
  3. \hypersetup{pdfauthor=\authorname} % Set the PDF's author to your name
  4. \hypersetup{pdfkeywords=\keywordnames} % Set the PDF's keywords to your keywords
  5.  
  6. \usepackage{cleveref}
  7. \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: 4
Joined: Thu Jun 20, 2019 7:26 pm

Postby vicentear » Mon Jun 24, 2019 12:35 am

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

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

Postby Johannes_B » Mon Jun 24, 2019 5:33 am

You can use the original in your preamble.
  1. \hypersetup{pdfpagemode={UseOutlines},
  2. bookmarksopen=true,
  3. bookmarksopenlevel=0,
  4. hypertexnames=false,
  5. colorlinks=true,% Set to false to disable coloring links
  6. citecolor=magenta,% The color of citations
  7. linkcolor=red,% The color of references to document elements (sections, figures, etc)
  8. urlcolor=mdtRed,% The color of hyperlinks (URLs)
  9. pdfstartview={FitV},
  10. unicode,
  11. breaklinks=true,
  12. }
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 0 guests