On Tue, Apr 21, 2009 at 5:52 PM, Drew Kime <drew.k...@gmail.com> wrote:
> On Tue, Apr 21, 2009 at 4:40 PM, Florian Rubach <florian.rub...@gmx.de>wrote:
>
>>
>> If I get you right, you want two different outputs, number one for printing
>> with both title and URL and number two as electronic version with just the
>> clickable title and nothing more.
>> There is a workaround for that... It's not quite beautiful, but it works.
>> You have to make a distinction between your two cases "printed"  and "pdf".
>> For that, you can define your own latex-command, say \myprintversion, by
>> \def\myprintversion{} in Latex-Code.
>> In front of every hyperlink, you can check whether \myprintversion is
>> defined or not and use that to decide what output to generate. To stick with
>> your example, you could write \ifdefined\myprintversion (in Latex-Code),
>> then add the hyperlink in the way you want it in the printversion. After
>> that in Latex-Code \else, then add the hyperlink in the way you want it in
>> the electronic version. To finalize the if-clause, you need to add the
>> statement \fi in Latex-Code.
>> Now all you have to do to switch between print-version and electronic
>> version is to keep the definition of \myprintversion or delete/comment it.
>>
>> If you need an example-file, I'll send you one.
>> Regards,
>>
>> Florian
>>
> Yes, that's exactly what I was looking for. But it sounds like I'd need to
> manually add the "if - else" code before every URL. If that's the case, I'm
> more comfortable writing macros in vim, so I'll handle it in the lyx code
> directly, not through the GUI. Thanks for the help.
>
> Drew
>

Perhaps you should take a look at the Branch feature: section 6.8 of
the User's Guide.

Bennett

Reply via email to