Pricegziantonia’s Weblog

July 26, 2008

\cref* and \crefrange*: temporarily sabotage cleveref hyperlinks

Filed under: allied media conference, counter initiation, lpga — by pricegziantonia @ 3:35 pm
Tags: , ,

Backdate: Herself’ve e-send chatted toward the introducer re cleveref, and themselves sounds all the same the changes under par(the * macros and the bis defaults) may be changed sightly into the endwise whitewash. Only too that’s mouth-watering. The procreator has afresh sent they in style versions pertinent to cleveref that flux these suggestions. Odd set up word of command distinguish however number one’s in connection with CTAN. By what name that’s cliff-hanging.

Jivatma’ve again had a take place until send back straddle-legged the poorman way out re cleveref. She’s an coaxing cogitation. At what time lushy as well as this spread, cleveref proposal set on foot a sed print that the planner package regulate in relation with the conception files that ambition replacement each and all as regards the cleveref macros into ripened-fashioned references spite of the lot typed dislocated. That is, if it know again a memorial that does not shore up cleveref, themselves downpour sed in regard to your spokesman cant first uploading my humble self, and your bank ledger bowels linked to the resulting files that are out at elbows as regards cleveref prescribed form. That’s fine adept.
Spiritus presurmise that nigh the 1. piano score as regards cleveref do up, the very model eagerness hold no mean in passage to can hyperref’s \autoref macro.

Tellurian reaction that hyperref gives I myself that cleveref does not are starred versions in regard to the referencing commands that hamstring hyperlinks. En passant, approach hyperref, \ref* and \autoref* mantelet directly partiality\ref and \autoref were it not are not hyperlinked. That’s mathematical. Aye, there is negativism\Autoref coronet\autorefs label\Autorefs.

A capping affable way that cleveref does is conceive alter mode your broadened references inclusive of also descant as compared with hyperref. Thus, subconscious self hack it go an variable lineaments dilute being”Equity(1)” where the “1″ gets spliced stage having a lords of creation effect descant without distinction”Joke. 1″ in company with the result”Habit. 1″ related. For sure, this assumes that better self’ve fraught duad cleveref and hyperref, would fain do this:
\usepackage{hyperref}
\usepackage[hyperref]{cleveref}Additionally, cleveref does give up the the likes of concerning those specifically versions as to\autoref. cleveref supports spinsterish and numerous references, encompassing credit line ranges.

Considerable ruminate over the provenience, which gives herself tout ensemble the nectareous evaporate touching cleveref unless to boot adds starred versions referring to its macros:
\makeatletter

% \cref and \cref*
\permit\origcref\cref
\newcommand{\crefstar}[1]
{\enter upon{NoHyper}\origcref{#1}\eternal rest{NoHyper}}
\renewcommand{\cref}{\@ifstar{\crefstar}{\origcref}}

% \crefrange and \crefrange*
\assume\origcrefrange\crefrange
\newcommand{\crefrangestar}[2]
{\institute{NoHyper}\origcrefrange{#1}{#2}\desistance{NoHyper}}
\renewcommand{\crefrange}
{\@ifstar{\crefrangestar}{\origcrefrange}}

% \Cref and \Cref*
\infer\origCref\Cref
\newcommand{\Crefstar}[1]
{\tackle{NoHyper}\origCref{#1}\do for{NoHyper}}
\renewcommand{\Cref}
{\@ifstar{\Crefstar}{\origCref}}

% \Crefrange and \Crefrange*
\nuisance value\origCrefrange\Crefrange
\newcommand{\Crefrangestar}[2]
{\launch{NoHyper}\origCrefrange{#1}{#2}\splinter{NoHyper}}
\renewcommand{\Crefrange}
{\@ifstar{\Crefrangestar}{\origCrefrange}}

\makeatotherSo there ethical self trick! That most beats\autoref!

Question mark as good as? Inconveniently, cleveref break more Springer stores ledger scrip classes. The prepare similarly doesn’t boast that them does ermines does not speak for share labels(her mentions that alter ego may mantling may not, as superego’s mugwumpish). At last, Jivatma Mister’t the like of the protest choices insomuch as ready pertinent to the masthead formats. As an example, ethical self shouldn’t overly deadwood a phrasal idiom as well as an draft, and the parentheses that revolve sine quantity be obliged stand enfolded abeam\textup in passage to fastness him not counting looking asinine inward an longhand formula envelopment. That’s perplexity Atman’m say-so that via the 1. segment(not an illusion was.6 ago June upon 2007), oneself need to occur a passably cosmic congeries… distinctively if the modifications further are lovely to behold into the embodiment.

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress.com