Re: Custom styles and author/institution xrefs

2011-03-07 Thread Richard Heck
On 03/06/2011 05:47 PM, Tommaso Cucinotta wrote: One question: can anyone point me to where exactly, in the code, there is the distinction between the use of prettyref as opposed to refstyle, for the generated xref macros ? Do you mean where the code is generated? In InsetRef::getFormattedCm

Re: Custom styles and author/institution xrefs

2011-03-06 Thread Julien Rioux
On 06/03/2011 7:26 PM, Jim Oldfield wrote: I just had a thought... using a variant of this idea, I think you could change all prettyref formats in one swoop so that they have full-width and height links. I'll give it a go tomorrow if I have time. I bet it could be done for refstyle as well (or do

Re: Custom styles and author/institution xrefs

2011-03-06 Thread Jim Oldfield
> From: Jim Oldfield > > Actually prettyref makes it possible to work around this problem: > \newrefformat{fn}{\hyperref[#1]{\textsuperscript{\ref*{#1 > I just had a thought... using a variant of this idea, I think you could change all prettyref formats in one swoop so that they have f

Re: Custom styles and author/institution xrefs

2011-03-06 Thread Jim Oldfield
> From: Tommaso Cucinotta > > Interestingly, at the end of the document you point out yourself that the >generated > latex is relatively "unstable", i.e., a small user action and it doesn't >compile anymore. Sorry, it turns out the condition I gave for a compile failure in that document is

Re: Custom styles and author/institution xrefs

2011-03-06 Thread Tommaso Cucinotta
Il 06/03/2011 23:12, Jim Oldfield ha scritto: If I understand you right, sure, see attached. Not even a special inset, just formatted references and the preamble code I gave. . . . and the Document->Settings->[uncheck "User refstyle instead of prettyref"] Interestingly, at the end of the docum

Re: Custom styles and author/institution xrefs

2011-03-06 Thread Jim Oldfield
> From: Tommaso Cucinotta > > Il 06/03/2011 21:44, Jim Oldfield ha scritto: > > This seems to "just work" for me, so I guess I'm missing something. What's >wrong > > with the following? > Nothing really, except that you have to hand-code the superscripting, Ah fair enough, that makes sense.

Re: Custom styles and author/institution xrefs

2011-03-06 Thread Tommaso Cucinotta
Il 06/03/2011 21:44, Jim Oldfield ha scritto: This seems to "just work" for me, so I guess I'm missing something. What's wrong with the following? * Insert footnote in first position you want to reference it. * Insert a label in the footnote * Insert a superscript in the second place you want to

Re: Custom styles and author/institution xrefs

2011-03-06 Thread Jim Oldfield
>> On a related note, what is the LyX way of referencing multiple times to >> the same footnote (i.e., using these|\footnotemark|{} tricks and/or >> \cref{} or others) ? Guess the same principle may apply to referencing >> authors institutions. This seems to "just work" for me, so I guess I'm m

Re: Custom styles and author/institution xrefs

2011-03-06 Thread Tommaso Cucinotta
Il 05/03/2011 21:27, Guenter Milde ha scritto: for equation refs, it's already there (the user is supposed to choose the "()" format from the combo box). ... That's of course the manual solution: the user has to pick the correct format all the time, even though LyX would already know it :-). I

Re: Custom styles and author/institution xrefs

2011-03-05 Thread Guenter Milde
On 2011-03-04, Tommaso Cucinotta wrote: > Il 04/03/2011 08:59, Guenter Milde ha scritto: >> On 2011-03-03, Tommaso Cucinotta wrote: >>> Note that very similarly it would be possible to auto-detect whether >>> we're referencing a label in an equation, and use \eqref{} instead of >>> \ref{} (somethi

Re: Custom styles and author/institution xrefs

2011-03-04 Thread Tommaso Cucinotta
Il 04/03/2011 08:59, Guenter Milde ha scritto: On 2011-03-03, Tommaso Cucinotta wrote: Note that very similarly it would be possible to auto-detect whether we're referencing a label in an equation, and use \eqref{} instead of \ref{} (something that seems also useful to me). Is \eqref the versi

Re: Custom styles and author/institution xrefs

2011-03-04 Thread Jean-Marc Lasgouttes
Le 04/03/11 08:59, Guenter Milde a écrit : On 2011-03-03, Tommaso Cucinotta wrote: Note that very similarly it would be possible to auto-detect whether we're referencing a label in an equation, and use \eqref{} instead of \ref{} (something that seems also useful to me). Is \eqref the version

Re: Custom styles and author/institution xrefs

2011-03-04 Thread Guenter Milde
On 2011-03-03, Tommaso Cucinotta wrote: > Note that very similarly it would be possible to auto-detect whether > we're referencing a label in an equation, and use \eqref{} instead of > \ref{} (something that seems also useful to me). Is \eqref the version adding ()s? In this case I would object t

Re: Custom styles and author/institution xrefs

2011-03-03 Thread Tommaso Cucinotta
Il 03/03/2011 01:59, Julien Rioux ha scritto: On 21/02/2011 7:52 PM, Tommaso Cucinotta wrote: On a related note, what is the LyX way of referencing multiple times to the same footnote (i.e., using these|\footnotemark|{} tricks and/or \cref{} or others) ? Guess the same principle may apply to ref

Re: Custom styles and author/institution xrefs

2011-03-02 Thread Julien Rioux
On 21/02/2011 7:52 PM, Tommaso Cucinotta wrote: On a related note, what is the LyX way of referencing multiple times to the same footnote (i.e., using these|\footnotemark|{} tricks and/or \cref{} or others) ? Guess the same principle may apply to referencing authors institutions. There's no LyX