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.
Theses, Books, Title pages ⇒ Problem labelling equations
Problem labelling equations
- Attachments
-
- Screenshot from 2019-06-19 12-29-45.png (28.36 KiB) Viewed 9955 times
-
- code
- Screenshot from 2019-06-19 12-28-54.png (35.6 KiB) Viewed 9955 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Problem labelling equations
Do not use \beq and \eeq.
Use the proper long form.
Aside from that, please provide a minimal working example.
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.
Problem labelling equations
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
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 (283.72 KiB) Viewed 9924 times
-
- Captura de pantalla 2019-06-21 a las 9.15.54.png (261.81 KiB) Viewed 9924 times
-
- test1.tex
- Log file
- (1.67 KiB) Downloaded 306 times
-
- log file.txt
- tex code
- (89.02 KiB) Downloaded 329 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Problem labelling equations
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 (
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.
Problem labelling equations
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.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.
- Attachments
-
- thesis_1%20tests.zip
- (313.18 KiB) Downloaded 278 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Problem labelling equations
I do get an error because cleverref needs to be loaded after hyperref.
Use the global option
The references that are present in the test, appear for me after the required several compiling steps.
Use the global option
nohyperref
and change the part befor \begin{document}
to something like the following. Code: Select all
\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 smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Problem labelling equations
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
Again thank you so much! I am indebted to you
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Problem labelling equations
You can use the original in your preamble.
Code: Select all
\hypersetup{pdfpagemode={UseOutlines},
bookmarksopen=true,
bookmarksopenlevel=0,
hypertexnames=false,
colorlinks=true,% Set to false to disable coloring links
citecolor=magenta,% The color of citations
linkcolor=red,% The color of references to document elements (sections, figures, etc)
urlcolor=mdtRed,% The color of hyperlinks (URLs)
pdfstartview={FitV},
unicode,
breaklinks=true,
}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.