Theses, Books, Title pages ⇒ Problem labelling equations
Problem labelling equations
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 (28.36 KiB) Viewed 10891 times
-
- code
- Screenshot from 2019-06-19 12-28-54.png (35.6 KiB) Viewed 10891 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Problem labelling equations
Use the proper long form.
Aside from that, please provide a minimal working example.
Problem labelling equations
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 10860 times
-
- Captura de pantalla 2019-06-21 a las 9.15.54.png (261.81 KiB) Viewed 10860 times
-
- test1.tex
- Log file
- (1.67 KiB) Downloaded 326 times
-
- log file.txt
- tex code
- (89.02 KiB) Downloaded 349 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Problem labelling equations
From the log file i can see, that at least one command (
tabhead
) is unknown. You should fix things like that.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 303 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Problem labelling equations
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}
Problem labelling equations
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
Code: Select all
\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,}