Is it possible to replace the name of cross-references in place of their numbers in multi-referencing with \cref ? I want to define a \fullref command for referencing the name of sections and chapters:


\section{First Section}
\section{Second Section}
\section{fullref command}
As discussed in \fullref{sec:first,sec:second} ...

Text: As discussed in "sections First Section and Second Section" ...

The \nameref code would not type the word "Sections" before the reference name and also can't be used for multiple references.

Also, for referencing to just one label with its name instead of number including its type, there is a good answer here: How to display label name in autoref in place of its number

  • You should link the originating question as well ;-)
    – user31729
    Commented May 8, 2015 at 13:29
  • I link the main question ;) Commented May 8, 2015 at 13:46
  • I've changed my solution here
    – user31729
    Commented May 8, 2015 at 14:51

1 Answer 1


A hackish version, combining lists and counters. The most complicated stuff is to get the and in between, as well as the expansion.

Short explanation:

The comma separated value list of labels is stored to an etoolbox list, then split using into individual references, using a wrapper command to \nameref (due to expansion issues). An external counter labelcount is used for counting the number of references, to track for the issues of just one or multiple reference(s) (singular/plural) and the and conjunction. All is inside a group, so this should not have any side effects.

The starred version of \fullref uses \nameref* in turn. (It's the basic idea from my answer to this question: How to display label name in autoref in place of its number






    \typeout{Link reference #2}%
  \ifnumgreater{\value{labelcount}}{1}{% Only add an `and` if there is more than one label
    }{% Only add an `add`, if it's not the last label


  \stepcounter{labelcount}% Count the labels


      \gdef\firstref{##1}\listbreak% Brute force  ;-)

  % Get the first element for the \namecref command
  % Expand the label list

\chapter{First} \label{firstchapter}
\section{First section} \label{firstsection}
\section{Second section} \label{secondsection}

In \fullref*{firstchapter,thirdchapter} we saw ... whereas in \fullref{firstsection,secondsection} there was some 


\chapter{Third} \label{thirdchapter}


enter image description here

  • Thanks. It works properly; however, there is no possibility to replace the second "and" with "\crefpairconjunction" to let the clever package options control your conjuction name Commented May 8, 2015 at 15:45
  • @MehranEbrahimian: Replacing? What do you mean?
    – user31729
    Commented May 8, 2015 at 15:47
  • Just change and to \crefpairconjunction, this should work...
    – user31729
    Commented May 8, 2015 at 15:50
  • Yes, it works; thanks. Also, I think your answer needs slight modifications to use \crefmiddleconjunction and \creflastconjunction commands (from cleveref package) between names of references instead of the same word "and" or "\crefpairconjunction". I don't know the answer :( Commented May 8, 2015 at 16:15
  • @MehranEbrahimian: Your initial question did not mention that \crefmiddleconjunction etc. is important at all. Now the question is changed and I have to edit my answer (again). Your questions tend to be changed and being unclear, in my point of view, leaving all efforts by me and possible other users here effectively useless
    – user31729
    Commented May 8, 2015 at 18:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .