I want know how to use \ref. I don't know why it doesn't work.  \documentclass[11pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{hyperref} \begin{document} Welcome to the \label{here}reference \newpage go to reference~\ref{here} on page 1 \end{document}   Thanks for help me.
121211
It is possible to make a hyperref to go to page x, but how we can define a custom anchor to go a destination line?  For example:  \documentclass{article} \usepackage{lipsum}  \begin{document}   \lipsum[1]   \lipsum[2]   THE DESTINATION LINE (anchor x)   \lipsum[3]   \lipsum[4]   CLICK HERE (go to anchor x)   \lipsum[5] \end{document}   How to click on CLICK HERE and goes to the DESTINATION LINE? I mean displaying THE DESTINATION LINE as the first line in the pdf reader.
108359
This issue seems rather exotic, but I encountered it in a medium-sized document, and it took me a while to indentify which particular combination of packages was responsible.  When I load amsmath, cleveref and hyperref (implicitly via pdfcomment), ref/autoref to an equation no longer work, i.e., LaTeX throws an Reference ... on page 1 undefined error. See the following MWE:  \documentclass[12pt]{scrartcl}  \usepackage[ngerman]{babel} \usepackage[utf8]{inputenx} \usepackage[T1]{fontenc} \usepackage{lmodern}  \usepackage{amsmath}  %% Hyperlinks %\usepackage[breaklinks]{hyperref} \usepackage{cleveref} %% implicitly loads `hyperref` \usepackage{pdfcomment}  \begin{document}  \section{Test} Etwas Fülltext, bevor die Gleichung kommt: \begin{equation} E_\mathrm{kin} = \frac{m}{2} v^2 \label{eq:kinErg} \end{equation} Jemand fand heraus, dass \autoref{eq:kinErg} gilt.  \end{document}   If I include hyperref explicitly, then everything works except I get . Not a deal breaker, but I'd prefer to avoid it and just use hypersetup for the additional options for hyperref.  Also, if I omit amsmath, everything works, too. I suppose that each package partially overwrites each other's settings...  If this is a bug, then where should I report it?
116669
Is there a way to add the usage of a table/reference in the caption of the reference/table in LaTeX?  For example:  \begin{table}     \begin{tabular}{ll}     \textbf{Name} &amp; \textbf{Description} \\         Foo &amp; bar \\         Foo &amp; bar     \end{tabular}     \caption{Nice Table. Used on pages [2,3,4].}     \label{tab:table} \end{table}   I would like the "Used on pages[2,3,4]." to appear automatically and linked to the correct reference, to all the locations in the document that use \ref{tab:table}.  Anyone knows a package that takes care of this?
123323
I need your help with references. I have 1 main reference section, and I want to include a second list of references as an appendix. For the main reference I use:  \newpage  \bibliographystyle{plainnat}  \bibliography{library}   The problem is that I don't know how to include the second list using a different bib file, and then calling the function \nocite{*} to show every sources inside the file.   I have the appendix part workout. I need your help to design the function to call the second bibliography, and that does't interfere with the main reference:   \newpage  \appendix  \section{Other Sources} \label{app:ReferencesB}   In addition, I will prefer that the word References is not shown after Other Sources.  Thank you so much!!
78941
Here is a minimal example that showcases my problem:  \documentclass{article}  \usepackage{amsthm} \usepackage{hyperref} \usepackage{cleveref}  \newtheorem{thm}{Theorem} \newtheorem{lem}[thm]{Lemma}  \begin{document}  \begin{lem} Lemma \end{lem}  \end{document}   The warning I get is the following:  [1pdfTeX warning (ext4): destination with the same identifier (name{thm.1}) has been already used, duplicate ignored  \AtBegShi@Output ...ipout \box \AtBeginShipoutBox                                                    \fi \fi  l.16 \end{document}                    {&lt;install dir&gt;/MiKTeX/2.9/pdftex/config/pdftex.map}]   I know that it is just a warning and that, my document will still work perfectly fine with regards to cross-referencing and hyperlinking, but I would still like to know why I am getting this warning and if anything can be done to fix it without removing functionality of the included packages.   Bonus question: Whats going on behind the scenes when this warning (or any generic 'destination with the same identifier (name{XXX.YYY}) has been already used, duplicate ignored') is produced, as this is not limited to theorem environments.  From log file:  Package: amsthm 2004/08/06 v2.20 Package: hyperref 2011/04/17 v6.82g Hypertext links for LaTeX Package: cleveref.sty 2011/03/22 v0.17.9 Intelligent cross-referencing Package cleveref Info: `hyperref' support loaded on input line 2157. Package cleveref Info: `amsthm' support loaded on input line 2300.
103244
I have searched far and wide after a solution, but haven't found one that works.  The most prominent ones looks like:   and   My relevant setup is:  \documentclass[a4paper,11pt,oldfontcommands]{memoir} \usepackage[colorlinks=true]{hyperref} \usepackage{natbib} %\bibliographystyle{agsm} \bibliographystyle{myabbrvnat} \newcommand{\myand}{\&amp;\ } \setcitestyle{authoryear,aysep={},open={(},close={)}} \begin{document} In the book (Book Name) such and such is told to be true \citep{RefWorks:}. \bibliography{cource} \end{document}   with my source.bib-file looking like:  @book{RefWorks:1      author={John Johnson},      year={2015},      title={Book Name},      publisher={Publishing Company},      address={United States of America},      edition={1st},      isbn={XXX-X-XXXX-XXXX-X} }   Probably the reason why some of the suggestions that I have found won't work is the \bibliographystyle{myabbrvnat}. I can't remember where I found it, but it's to setup my bibliography the way I need it. Is that important? If needed to be posted, where can I post the text, since it goes over the character limit here?  I know there is a "sort of" solution, where I can make a citation aliasing like \defcitealias{RefWorks:1}{Book Name} and then insert it in the text like \citetalias{RefWorks:1} to give the title of the source. It's fine, but it's not what I'm looking for, because then I would need to set this up for my whole library, which would get tiresome.   Is there a way to setup a \cite+-type to give the title of a source?  Edit: I forgot to put hyperref package in my setup.
117940
Every now and then I use the description list environment  \begin{description} \item[foo]  foo is good \item[bar]  bar is bad \end{description}   to create lists with non-numerical labels. Unfortunately the description list does not support the label-reference pair as normal latex: i.e. if I write  \begin{description} \item[foo] \label{foo} foo is good .... \end{description} .... For good things (see, for example \ref{foo})...    the reference does not point to the item in the list. Instead it points to the closest environment that supports labeling (usually the subsection). So instead of showing the text foo (in boldface), it shows something like 2.2.1 (the subsection corresponding to where the description environment is sitting).  My question: is there a way or a package which allows references to description list items? My current work-around is to just type the text myself in the spot (since I named it myself, and it is not numbered, the formatting is unlikely to change the label =). But one of the good things about the label/reference pairs in latex is the implementation in pdflatex that allows in PDF hyperlinks between references and the objects referred to, this I cannot replicate myself.   Edit: let me rephrase my question. The primary goal is not to display \ref to something other than what LaTeX thinks the \label is. There are many ways to deal with it, some of which outlined in Michael Underwood's helpful answer below. What I am looking at is whether there exists an implementation of a list environment which is like the built-in description environment in that the displayed "title" for the list item is completely customized, while having support for \labels. (The built-in description environment does not support \labels, whereas the built-in enumerate environment does not support customized "title"s.) The enumitem package adds some customizability to the environments, but as far as I can tell it doesn't support exactly what I want.
120438
I have this:  \label{appendix:b} \includepdf[scale=0.8,pages=1,pagecommand=\chapter{interview}]{interview/interview} \includepdf[scale=0.8,pages=2-,pagecommand={}]{interview/interview} \label{appendix:bslut}   And I'm calling it with cleveref:  \cpagerefrange{appendix:b}{appendix:bslut}   The problem is that I get the wrong page number for the last page -- it adds a page. What should be "pages 1-5" is instead "pages 1-6". I have Googled this like a madman, and I can't figure out what to do. I hope some of the superstars here can help! I have cleveref after hyperref, as recommended...  EDIT: As requested, I tried to make an MWE, but for some reason it gives me:  LaTeX Warning: Reference `appendix:bslut' on page 1 undefined on input line 7.   Here it is, though. "multipage" should be a PDF spanning several pages.  \documentclass{memoir} \usepackage{pdfpages} \usepackage{hyperref} \usepackage{cleveref} \begin{document} \chapter{Foo} Foo\cpagerefrange{appendix:b}{appendix:bslut}.  \chapter{Bar} \label{appendix:b} \includepdf[scale=0.8,pages=1,pagecommand=\chapter{Multipage}]{multipage} \includepdf[scale=0.8,pages=2-,pagecommand={}]{multipage} \label{appendix:bslut}  \end{document}
64417
I use hyperref and I produce the pdf via pdflatex. Everytime I use \ref I get in the pdf a clickable link and I am happy with it... but I would like to disable the hyperlink in the pdf for one particular \ref, is it possible?
116823
I followed the steps in this  to get multiple references to the same footnotes working. As shown in this minimal example, the solution is working great for footnotes in the text, also getting the correct hyper references in the compiled pdf.  But when using multiple footnotes in a table environment the solution doesn't work, for the second reference in the table environment I get "a^0" instead of another "^a". I guess the problem is that numbering consist of (a,b,...) instead of numbers but I'd like to keep that behavior.   How should I adapt the solution to work inside the table environment ??  \documentclass{article} \usepackage{hyperref} \usepackage{cleveref} \crefformat{footnote}{#2\footnotemark[#1]#3}  \begin{document}  This is a paragraph\footnote{\label{first}some footnote}.  This is another paragraph\footnote{\label{second}another footnote}.  This is another paragraph using the first footnote\cref{first}.   \begin{table} \caption{A table} \begin{minipage}{\textwidth} \begin{tabular}{r r r} \hline   E\footnote{\label{1sttablefoot}Some table footnote} &amp; F\cref{1sttablefoot} &amp; G \footnote{Another table footnote}  \\  \hline     1 &amp; 2 &amp; 3  \\ \hline  \end{tabular} \end{minipage} \end{table}  \end{document}   Can't attach the image result because of being new user :S
1875
I am trying to use the  package.  I have the following counters defined (hopefully this is the right way to do it!)  \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \newtheorem{cor}[thm]{Corollary}   This works as I would like (i.e. Theorem 1.1, Corollary 1.2, Lemma 1.3, etc.)  My problem is \cref always returns Theorem 1.2, Theorem 1.3. I   Perhaps this is not right? (In my preamble)  \crefname{thm}{theorem}{theorem's} \crefname{lemma}{lemma}{lemma's}
52749
The solution outlined for each of the following two posts appears to conflict with the hyperref package.         Here is a MWE.  The desired output for the example is  1. Outer 2.1. This is line 2.1, in block 2.  2.2. Inner again 3. Outer again 4. Let’s end here   This output is indeed produced by the LaTeX source below, but if I uncomment the \usepackage{hyperref} line in the header, LaTeX gives me an error just after the \skipitem command, as described in the inline comment below:  \documentclass{article}  % \usepackage{hyperref} % if we uncomment the above line, we get an error as described below  \usepackage{enumitem}  \newlist{steps}{enumerate}{9} \setlist[steps]{itemindent=0pt} \setlist[steps,1]{label=\arabic*.,ref=\arabic*} \setlist[steps,2]{label=\arabic{stepsi}.\arabic*.,ref=\arabic{stepsi}.\arabic*}  \makeatletter \newcommand{\skipitem}{\refstepcounter{\@enumctr}} \makeatother  \begin{document} \begin{steps} \item Outer   \skipitem   % If we uncomment the \usepackage{hyperref} line in the header,   % we get the following error after the \skipitem above   %    % ./tmp.tex:20: Missing number, treated as zero.   % &lt;to be read again&gt;    %   \c@0.0ptxcii    % l.20   \skipitem   % \item[] \label{blockA}   \label{blockA}\item[]   \begin{steps}   \item\label{lineB} This is line~\ref{lineB}, in block~\ref{blockA}.   \item Inner again   \end{steps} \item Outer again \item Let's end here \end{steps}  \end{document}   Can someone help me work around this conflict, so I can use hyperref with this use of enumitems and refstepcounter?  Thanks.  (Note: smaller working examples are possible, but they give different error messages.  I'm hoping to get the current example working.)
39265
As I  and found out the command \thepage doesn't always output the correct page number.  The proposed alternative is to use \pageref{here}\label{here}. But this seems too unhandy, because I have to change the label every time I want to get the current page, which makes it impossible to just replace it by a simple new command.  P.S.: In the end I want to define this:  \newcommand{\see}[1]{\cref{#1}\ifthenelse{\equal{\pageref{#1}}{\thepage}}{}{ on \cpageref{#1}}}   where the part on \cpageref{#1} should only be output if it is not the current page.
121212
\documentclass{scrbook}  \usepackage{listings} \usepackage{cleveref}  \begin{document}  Ref: \ref{test}. Cref: \cref{test}.  \begin{lstlisting}[caption={Test},label={test}] test \end{lstlisting}  \end{document}   This produces Ref: 1. Cref: ?? 1.. I expected something like Ref: 1. Cref: Listing 1.  I get a LaTeX Warning: \Cref reference format for label type 'lstlisting' undefined on input line 9.
47937
Consider the following piece of code:  \documentclass{book} \usepackage{cleveref} \usepackage{lipsum}  \begin{document}   \chapter{Chapter One}   \section{Section One.One}   \label{mysection}   \lipsum    \section{Section One.Two}   Please ignore \cref{mysection}.    \chapter{Chapter Two}   \section{Section Two.One}    As you may have noticed, \cref{mysection} is useless. \end{document}   By default, in both uses of \cref I get Section 1.1 as expected.   Is it possible to change the way the reference is shown in such a way that the second use of \cref above will print Section 1 of Chapter 1? i.e., naming the parent counter as well.   However, this should be done only outside the own chapter, so the first use of \cref in the above example should print Section 1.  This comes from a use case of a normative text where the document is divided in "articles" and "commas", and it is good to have references like "Comma 1 of Article 2" or "Article 2, Comma 1".
78482
I am using the natbib and hyperref packages:  \usepackage{natbib}  \usepackage[pagebackref=true, plainpages=false, bookmarks, bookmarksnumbered, colorlinks, linktocpage=true, linkcolor=blue, citecolor=blue, filecolor=black, urlcolor=blue]{hyperref}   With my current settings (above) both the name and the year are hyperlinked.  My question is, whether there is a way to hyperlink (or color) only the year-not the author(s).   I have the impression reading this post  that biblatex does it by default. However changing to biblatex is not an option for me at this point.  Any helpful comments will be greatly appreciated.
59201
I am just a beginner in LaTeX, I am facing a problem in Ref Range,   \documentclass{article} \usepackage{amsmath,amsfonts,amssymb,cleveref} \begin{document} \ref{eq1a,eq1b,eq1c,eq1d,eq1e} \begin{subequations}   \begin{align}     1+1=2\label{eq1a}\\     1-1=0\label{eq1b}\\     23+23=46\label{eq1c}\\     d+e=f\label{eq1d}\\     e+f=g\label{eq1e}   \end{align} \end{subequations} \ref{eq1a,eq1b,eq1c,eq1d,eq1e} \cref{eq1a,eq1b,eq1c,eq1d,eq1e} \end{document}   My problem is I want to display the refrange like 1a-e if I use \cref, but I am getting an output like 1a-1e but is it possible to hide the 1 in the refrange (1a-e)  I went through the cleveref style file (Dont know anything about that :)), I found out the command which is replacing the (1a-1e) (cleverref.sty Line Number: 1022)              \textup{(#3#1#4)}--\textup{(#5#2#6)}}}{}}{}%   In the above mentioned coding from cleverref.sty, I need to delete the Number and retain the 'e' from #2, Please guide me in this problem, thanks in advance