First, before any downvoting, I am aware of the existence and content of this post https://tex.stackexchange.com/a/577464/262813 and let me point out that I am not asking this question out of nowhere, without having thought it through many times and having spent time on writing complete questions and answers.
I am a beginner and I really do not understand something, i.e. how to refer to one specific token of a reference having only one global label at your disposal.
Let's say you set a subexample which is numbered 2b.i, and you label it label-of-2bi; now if want my ref to print in the shape of i, skipping both first and second tokens, well, I'm sure it's quite simple, but I still do not get it.
All I understand is that the print string I seek is \theSubSubExNo or \theSubExNo, but those commands do not take arguments, they print the current value of the corresponding counter (\SubSubExNo and \SubExNo).
What I need is to be able to refer to what their value was at a specific point. But I don't know how to assign labels to them. And package zref is far beyond my level of comprehension.
I believe I am seeing a solution, based on several answers and comments by @Ulrich Diez's so valuable help; it involves \getrefbykeydefault from package refcount.
I have read the documentation of the package about that valuable command, I know it takes 3 arguments, i.e. label, key, default, but I do not know what values I should assign to variables 2 and 3 (for example, in Ulrich's \KeepOnlyStuffBehindLastDot proposal, I can see that the third is a double question mark, I have absolutely no idea what this means).
I use linguex or linguex-based packages.
My previous interrogations :
- Understanding some aspects of the philex package
- Cross-referencing: more sublevels, and presets
- https://tex.stackexchange.com/a/637115/262813
- Skipping non-numeric part of counter label in local Cross-referencing
MWE
\documentclass{report}
\usepackage{linguex}
\begin{document}
\ex. \label{lakintpur}
\a. \label{lakintpura}\a. Greg's intention was to overthrow the
government. \label{intention}
\b. Greg's purpose was to overthrow the government. \label{purpose}
\z.\b.\label{lakintpurb}\a. Greg intended to overthrow the
government. \label{intendv}
\b.*Greg purposed to overthrow the government. \label{purposev}
\textbackslash ref\{intention\} prints as \ref{intention} but I would like to print only (i) (if being discussing (1-a) extensively),
\vspace{1em}
or (as \textbackslash rfx from the package philex achieves) print (a.i) if being discussing (1) globally.
\end{document}


\getrefbykeydefaultthe default denotes the tokens to deliver in case referencing does not work out. E.g., because the corresponding referencing-label is not defined. So with??as default you get two question-marks in the text when using\getrefbykeydefaultfor attempting to reference a label where no corresponding\label-command is in the source code of your document. – Ulrich Diez May 12 '22 at 15:33\getrefbykeydefaultthe key denotes which piece of data associated to the referencing-label you which to obtain. That could be the textual phrase denoting the page-number which you get via\pageref. That could be the textual phrase of what you get via\ref. That could be the name of the destination for the hyperlink which\ref/\pagerefcreates besides delivering textual phrase. – Ulrich Diez May 12 '22 at 15:41