1

I'm having trouble with linguex cross-referencing examples with an optional argument as in:

\documentclass{article}
    \usepackage{linguex}
    \title{Title}
    \begin{document}
    \maketitle

    \a.[{\bf Optional Argument: }] Principle. \label{Principle}

    Here comes some text that references \ref{Principle}.

    \end{document}

Is there a way to get cross-references even when I'm using custom arguments?

  • You're missing the instruction \ex. that initiates the list-like environment. – Mico May 23 '15 at 4:28
  • 1
    @mico I think bozidarka wants the example to be unnumbered but still referable in some way. If this is the case, then How does one set custom labels for description lists? might be of some use. – Alan Munn May 23 '15 at 4:44
  • @AlanMunn - You may well be correct. Let's see what the OP writes. – Mico May 23 '15 at 4:54
  • @Mico@AlanMunn Yes, I don't want the example to be numbered. The idea is to have a custom name (in my case "Optional Argument"), and then to be able to refer back to it (what I tried to do with the \label{Principle} \ref{Principle} command. linguex allows you to have a custom argument, but I can't figure out if it allows you to cross-reference it correctly. – bozidarka May 23 '15 at 5:30
  • What should the reference return? The contents of the optional argument? Or something else altogether? – Werner Dec 25 '15 at 6:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.