Option clash for package xcolor definecolor
Using standard cross-referencing in LaTeX only produces the label number, a name describing the label such as figure, chapter or equation has to be added manually.
The cleveref package overcomes this limitation by automatically producing the label name and number. It further allows cross-referencing ranges of labels and multiple labels of the same or different kinds, including auto-sorting and compression of labels. Besides the label number it also produces the reference kind. By default, label names are produced with a small initial letter. For capitalization of all label names throughout the document, load the package with the capitalise option.
If you prefer to use the full label name rather than abbreviations such as fig. The cleveref package is fully compatible with hyperref package manual.
It is important to load the cleveref package last, after hyperref. See the package documentation for more details. There are a number of packages implementing similar features.
According to the documentation, cleveref is among the most extensive in terms of functionality and flexibility. May at 7: May at 8: Thanks, I added a line to make this clear at the beginning of the post now. So, it would be important to point this out. Thanks for your comment. May at I found out something else: Otherwise, I put the number of the section instead of the figure. Maybe this is only the case with the emulateapj document class, but in any case, it might be useful to some other astrophysicist that reads your blog.
May at 5: April at A fix for this would be great. April at 4: I downloaded the emulateapj class file and used it with the multiple labels example above. Thanks a lot for looking into it. The problem is not for Figures; that works for me with label outside the caption. April at 7: If the problem only occurs for sections, you might just want to define your own command:.
If you rather use the cleveref packageconsider submitting your question to tex. So you have to use one command for referencing equations, a different one for figures, yet another for sections etc.
Thanks for your comment and for creating this invaluable package! Would you be interested in writing a guest post here, possibly discussing some more advanced features of your package? September at 1: September at Do you have a specific example why you might think these two packages are not compatible? December at I would like to know something; how can I make the whole cross-reference label and number a clickable link not just the number?
January at Did you try loading the hyperref package? Make sure you load hyperref first and then cleverref. Here is an example: Other features of the package The cleveref package offers a lot more, including: Customization of labels Name-only references Page number of label and more… See the package documentation for more details.
Alternative packages There are a number of packages implementing similar features. Hi Guillaume, Thanks for your comment. Hi Tom, I found out something else: Hi Guillaume, I downloaded the emulateapj class file and used it with the multiple labels example above. If the problem only occurs for sections, you might just want to define your own command: Is it possible to use only cleveref and not use hyperref at all? Does cleveref have any problems with polyglossia like hyperref does with polyglossia?
Hello Tom, Thanks for your informative post. Hi Diaa, Did you try loading the hyperref package? Leave a Reply Cancel reply. Sorry, your blog cannot share posts by email.
Most profitable ones currently are the Option Robot and the Automated Binary. We are not an official option clash for package xcolor definecolor investment adviser, but a website and article publisher whose purpose is to improve the general knowledge about binary options and automated trading. We will not be responsible if our actual information is not accurate or updated.
No information on this website is intended to guarantee future results. Binary options investing always involves a risk of losing the invested funds.