Re: Add Clickable Hyperlink to LyX Document

2023-05-26 Thread Dr Eberhard Lisse
This would be very useful.

el

On 26/05/2023 10:29, Chen Yang wrote:
> Dear Sir or Madam, 
> 
> Hope this email finds you well! 
> 
> I am a LyX user from China. I have a problem with the hyperlink in the
> LyX document. 
> 
> At present, we can add a hyperlink to the LyX document. And this
> hyperlink is clickable in the corresponding PDF file. But in fact, many
> users just use LyX documents rather than PDF files for most of their
> time. Thus, I wonder if it's possible to make the hyperlink in the LyX
> document clickable. For example, if one holds "cmd" or other keys and
> clicks the hyperlink in a LyX document, one can directly open this link.
> This would greatly increase our efficiency. 
> 
> Thank you for your time and support. I am looking forward to hearing
> from you soon! 
> 
> Best regards,
> Chen
> 

-- 
To email me replace 'nospam' with 'el'


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Add Clickable Hyperlink to LyX Document

2023-05-26 Thread Jean-Marc Lasgouttes

Le 26/05/2023 à 10:29, Chen Yang a écrit :
At present, we can add a hyperlink to the LyX document. And this 
hyperlink is clickable in the corresponding PDF file. But in fact, many 
users just use LyX documents rather than PDF files for most of their 
time. Thus, I wonder if it's possible to make the hyperlink in the LyX 
document clickable. For example, if one holds "cmd" or other keys and 
clicks the hyperlink in a LyX document, one can directly open this link. 
This would greatly increase our efficiency.


Hello,

This will be possible in LyX 2/4/0, by a command in the context menu 
(right click). We hope this will be useful.


More LyX 2.4 news here : https://wiki.lyx.org/LyX/NewInLyX24

Best regards,
Jean-Marc
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Add Clickable Hyperlink to LyX Document

2023-05-26 Thread Chen Yang
Dear Sir or Madam,

Hope this email finds you well!

I am a LyX user from China. I have a problem with the hyperlink in the LyX
document.

At present, we can add a hyperlink to the LyX document. And this hyperlink
is clickable in the corresponding PDF file. But in fact, many users just
use LyX documents rather than PDF files for most of their time. Thus, I
wonder if it's possible to make the hyperlink in the LyX document
clickable. For example, if one holds "cmd" or other keys and clicks the
hyperlink in a LyX document, one can directly open this link. This would
greatly increase our efficiency.

Thank you for your time and support. I am looking forward to hearing from
you soon!

Best regards,
Chen
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Diacriticals in the Name pert of a Hyperlink

2023-03-13 Thread Dr Eberhard W Lisse
Somehow this exchange did not make it here, Herbert figured it out

On 13/03/2023 14:05, Herbert Voss wrote:
> Am 13.03.23 um 19:44 schrieb Dr Eberhard W Lisse:
>> Please find enclosed the output of LuaLaTeX of the LyX file.
> 
> enable document->preferences->fonts->don't use TeX fonts
> 
> Herbert

I actually managed to get the agenda up before the individual
concerned started to present.  Very impressive, thank you.

el

[...]

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Diacriticals in the Name pert of a Hyperlink

2023-03-13 Thread Herbert Voss



Am 13.03.23 um 00:15 schrieb Dr Eberhard W Lisse:

Hi,

I am using beamer to make an agenda of a workshop and one of the
presenters has this 'š' diacritical.  I want the name to appear on
the PDF and the email address to be fired up when clicked
(mailto:).  That works but the diacritical does not survive into
the PDF.


Insert->hyperlink->EMail

and using lualatex


Herbert

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Diacriticals in the Name pert of a Hyperlink

2023-03-13 Thread Jean-Marc Lasgouttes

Le 13/03/2023 à 00:15, Dr Eberhard W Lisse a écrit :

Hi,

I am using beamer to make an agenda of a workshop and one of the
presenters has this 'š' diacritical.  I want the name to appear on
the PDF and the email address to be fired up when clicked
(mailto:).  That works but the diacritical does not survive into
the PDF.


Hi,

A simple example file may help.


JMarc
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Diacriticals in the Name pert of a Hyperlink

2023-03-12 Thread Dr Eberhard W Lisse
Hi,

I am using beamer to make an agenda of a workshop and one of the
presenters has this 'š' diacritical.  I want the name to appear on
the PDF and the email address to be fired up when clicked
(mailto:).  That works but the diacritical does not survive into
the PDF.

Any idea?

el

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: hyperlink without a prefix

2022-12-25 Thread Richard Kimberly Heck


This will be in 2.4.0.

On 12/25/22 11:41, Richard Kimberly Heck wrote:

On 12/23/22 13:14, tush via lyx-users wrote:

This is a follow up to a question on Latex.org:

https://latex.org/forum/viewtopic.php?t=26966

I want to create a phone call link in my pdf, so the latex code would be

\href{tel:+1202999}{+1--202--999--}

But when I use the hyperlink inset in lyx the user most resort into 
one of three categories:


  - a webiste link starting with http://
  - a mailto link
  - a file link

Is there a way to overcome this and just do

\href{whatever is in the Target field}{the text}

?


Not at the moment. But of course you can use ERT.

I'll see if I can get a fix into 2.4.0.

Riki




--

Richard Kimberly (Riki) Heck
Professor of Philosophy
Brown University

Pronouns: they/them/their

Website: http://rkheck.frege.org/
Blog:http://rikiheck.blogspot.com/
Amazon:  http://amazon.com/author/richardgheckjr
Google Scholar:  https://scholar.google.com/citations?user=QUKBG6EJ
ORCID:   http://orcid.org/-0002-2961-2663
Research Gate:   https://www.researchgate.net/profile/Richard_Heck

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: hyperlink without a prefix

2022-12-25 Thread Richard Kimberly Heck

On 12/23/22 13:14, tush via lyx-users wrote:

This is a follow up to a question on Latex.org:

https://latex.org/forum/viewtopic.php?t=26966

I want to create a phone call link in my pdf, so the latex code would be

\href{tel:+1202999}{+1--202--999--}

But when I use the hyperlink inset in lyx the user most resort into one of 
three categories:

  - a webiste link starting with http://
  - a mailto link
  - a file link

Is there a way to overcome this and just do

\href{whatever is in the Target field}{the text}

?


Not at the moment. But of course you can use ERT.

I'll see if I can get a fix into 2.4.0.

Riki


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


hyperlink without a prefix

2022-12-23 Thread tush via lyx-users
This is a follow up to a question on Latex.org:

https://latex.org/forum/viewtopic.php?t=26966

I want to create a phone call link in my pdf, so the latex code would be

\href{tel:+1202999}{+1--202--999--}

But when I use the hyperlink inset in lyx the user most resort into one of 
three categories:

 - a webiste link starting with http://
 - a mailto link
 - a file link

Is there a way to overcome this and just do

\href{whatever is in the Target field}{the text}

?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Including a hyperlink removes coloring from my URLs

2017-04-06 Thread Jacob Bishop
On Thu, Mar 30, 2017 at 4:41 PM, Steve Litt 
wrote:

> On Thu, 30 Mar 2017 16:25:18 -0400
> "Paul A. Rubin"  wrote:
>
> > On 03/30/2017 03:45 PM, Steve Litt wrote:
>
> [snip Steve's symptom description]
>
> > I made a small test document (attached) using the standard book
> > class. When I added the hyperlink to the document, I got an error
> > message about an option class between two packages (that was not
> > there when the document had URLs but not hyperlinks).


Following Paul's lead, I made a small test document, but since I like to
use options that are provided through the LyX interface whenever possible,
I did everything through the "PDF Properties" dialogue under
document>settings to enable the options that Steve indicated. This way, I
wasn't putting anything into the document class options field, and the only
thing I had to put in the preamble was except \usepackage{soul}. (oh, and I
put pdfpagelabels in the "Additional Options" box under the "PDF
Properties" section of document settings).

Interestingly, I didn't get an error at all when compiling.

It had
> > something to do with one package loading with the option unicode=true
> > while some earlier package is apparently a unicode denier.
>

Looking at the CTAN page for soul (http://ctan.org/pkg/soul), I would guess
that this is the "unicode denier." The documentation points to another
package, soulutf8 (http://ctan.org/pkg/soulutf8) to use if you want unicode
support. My sample document didn't have any unicode in it so maybe that's
why the problem isn't triggered.


> > Following the suggestion in the error message, I moved the unicode
> > option and all the options for hyperref to the document class options
> > field, and that fixed things ... sort of. The URLs and the hyperlink
> > are all colored now, but the color is purple (or purplish), which
> > would not be my first (second, third, ...) choice. Presumably there's
> > a place to specify an option to some package to use red, blue, ...
>

Based on the way I set things up, in the "Additional Options" box of the
"PDF Properties" tab, putting urlcolor=red does the trick. (see
https://www.tug.org/applications/hyperref/manual.html#x1-90003.5 ).

See attached.

Jacob


url_hyperlink_colors.lyx
Description: application/lyx


Re: Including a hyperlink removes coloring from my URLs

2017-03-31 Thread Paul A. Rubin

On 03/31/2017 03:48 PM, Steve Litt wrote:

On Thu, 30 Mar 2017 16:25:18 -0400
"Paul A. Rubin"  wrote:


On 03/30/2017 03:45 PM, Steve Litt wrote:

Hi all,

Including one hyperlink in my document removes the color for all my
URLs. What I really want is my hyperlinks colored the same as my
URLs (currently red), but I definitely don't want my URLs colorless.

Does anyone know how to apply hyperlinks without screwing up URL
colors?

RELEVANT FACTS:

Linux, 64 bit Void distro

LyX version 2.2.2

Document class based on document class "book".

\usepackage{soul}

\usepackage[bookmarks,
plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]{hyperref}

\usepackage{color}

  

I made a small test document (attached) using the standard book
class.

Paul, it turns around that, for some reason, when I put:

\usepackage[bookmarks,
unicode=true,plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]{hyperref}

LyX ignored the arguments. But, when I put:

bookmarks,
unicode=true,plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true

in the Custom field in the document settings document class dialog box,
coloration comes back.

So that material must be repeated twice, once in that field, and once
in the layout file.

ACTUALLY, I lied. It turns out that if I have:

\usepackage{hyperref} in the layout and the arguments in the field, it
still works.

OH WAIT, I lied some more. It turns out I don't even have to put in the
layout file:

\usepackage{hyperref}

LyX somehow just knows that.

Whatever this is all about, it's in need of some serious documentation.

But, the good news is, I can go about my business using both URLs and
hyperlinks.

Thanks,

SteveT

Steve Litt
March 2017 featured book: Troubleshooting: Why Bother?
http://www.troubleshooters.com/twb
LyX loads certain LaTeX packages automagically when it sees some 
features of the document that it knows will need said packages. I'm 
pretty sure hyperref is in that category (see a hyperlink, load the 
package). What I believe happens then is that if the user tries to load 
the package manually in the preamble, LaTeX sees two \usepackage 
statements for the same package and pays attention to only one of them 
(the first, I think). I think the automatic load precedes user 
specifications in the preamble, so the user's options get lost. Seems to 
me I've seen a trick suggested in some cases where the user indicates 
that some module or something provides the disputed package, to prevent 
LyX from adding the automatic load command. (Note all the qualifiers in 
the previous paragraph: I'm not at all sure about this.)


As the Bard said, though, all's well that ends well.

Paul



Re: Including a hyperlink removes coloring from my URLs

2017-03-31 Thread Steve Litt
On Thu, 30 Mar 2017 16:25:18 -0400
"Paul A. Rubin"  wrote:

> On 03/30/2017 03:45 PM, Steve Litt wrote:
> > Hi all,
> >
> > Including one hyperlink in my document removes the color for all my
> > URLs. What I really want is my hyperlinks colored the same as my
> > URLs (currently red), but I definitely don't want my URLs colorless.
> >
> > Does anyone know how to apply hyperlinks without screwing up URL
> > colors?
> >
> > RELEVANT FACTS:
> >
> > Linux, 64 bit Void distro
> >
> > LyX version 2.2.2
> >
> > Document class based on document class "book".
> >
> > \usepackage{soul}
> >
> > \usepackage[bookmarks,
> > plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]{hyperref}
> >
> > \usepackage{color}
> >
> >  
> I made a small test document (attached) using the standard book
> class. 

Paul, it turns around that, for some reason, when I put:

\usepackage[bookmarks,
unicode=true,plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]{hyperref}

LyX ignored the arguments. But, when I put:

bookmarks,
unicode=true,plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true

in the Custom field in the document settings document class dialog box,
coloration comes back.

So that material must be repeated twice, once in that field, and once
in the layout file.

ACTUALLY, I lied. It turns out that if I have:

\usepackage{hyperref} in the layout and the arguments in the field, it
still works.

OH WAIT, I lied some more. It turns out I don't even have to put in the
layout file:

\usepackage{hyperref} 

LyX somehow just knows that.

Whatever this is all about, it's in need of some serious documentation.

But, the good news is, I can go about my business using both URLs and
hyperlinks.

Thanks,

SteveT

Steve Litt
March 2017 featured book: Troubleshooting: Why Bother?
http://www.troubleshooters.com/twb


Re: Including a hyperlink removes coloring from my URLs

2017-03-30 Thread Steve Litt
On Thu, 30 Mar 2017 16:25:18 -0400
"Paul A. Rubin"  wrote:

> On 03/30/2017 03:45 PM, Steve Litt wrote:

[snip Steve's symptom description]

> I made a small test document (attached) using the standard book
> class. When I added the hyperlink to the document, I got an error
> message about an option class between two packages (that was not
> there when the document had URLs but not hyperlinks). It had
> something to do with one package loading with the option unicode=true
> while some earlier package is apparently a unicode denier.
> 
> Following the suggestion in the error message, I moved the unicode 
> option and all the options for hyperref to the document class options 
> field, and that fixed things ... sort of. The URLs and the hyperlink
> are all colored now, but the color is purple (or purplish), which
> would not be my first (second, third, ...) choice. Presumably there's
> a place to specify an option to some package to use red, blue, ...
> 
> Paul

VERY nice, Paul. You just trapped the problem.

It turns out adding unicode=true to mine didn't work, but with yours
working perfectly, I can now keep carving down mine until I get it to
work like yours. I'll be using your minimal case as an example in my
troubleshooting classes: You really sectioned it down.

Thanks,

SteveT

Steve Litt
March 2017 featured book: Troubleshooting: Why Bother?
http://www.troubleshooters.com/twb


Re: Including a hyperlink removes coloring from my URLs

2017-03-30 Thread Paul A. Rubin

On 03/30/2017 03:45 PM, Steve Litt wrote:

Hi all,

Including one hyperlink in my document removes the color for all my
URLs. What I really want is my hyperlinks colored the same as my URLs
(currently red), but I definitely don't want my URLs colorless.

Does anyone know how to apply hyperlinks without screwing up URL colors?

RELEVANT FACTS:

Linux, 64 bit Void distro

LyX version 2.2.2

Document class based on document class "book".

\usepackage{soul}

\usepackage[bookmarks,
plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]{hyperref}

\usepackage{color}


I made a small test document (attached) using the standard book class. 
When I added the hyperlink to the document, I got an error message about 
an option class between two packages (that was not there when the 
document had URLs but not hyperlinks). It had something to do with one 
package loading with the option unicode=true while some earlier package 
is apparently a unicode denier.


Following the suggestion in the error message, I moved the unicode 
option and all the options for hyperref to the document class options 
field, and that fixed things ... sort of. The URLs and the hyperlink are 
all colored now, but the color is purple (or purplish), which would not 
be my first (second, third, ...) choice. Presumably there's a place to 
specify an option to some package to use red, blue, ...


Paul



url_hyperlink.lyx
Description: application/lyx


Including a hyperlink removes coloring from my URLs

2017-03-30 Thread Steve Litt
Hi all,

Including one hyperlink in my document removes the color for all my
URLs. What I really want is my hyperlinks colored the same as my URLs
(currently red), but I definitely don't want my URLs colorless.

Does anyone know how to apply hyperlinks without screwing up URL colors?

RELEVANT FACTS:

Linux, 64 bit Void distro

LyX version 2.2.2

Document class based on document class "book".

\usepackage{soul}

\usepackage[bookmarks,
plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]{hyperref}

\usepackage{color}

Thanks,
 
SteveT

Steve Litt
March 2017 featured book: Troubleshooting: Why Bother?
http://www.troubleshooters.com/twb


Re: Follow a hyperlink from Lyx editor

2015-12-18 Thread Scott Kostyshak
On Fri, Dec 18, 2015 at 11:30:41PM -0800, Pavel Sanda wrote:
> Scott Kostyshak wrote:
> > I think knitr introduces more
> > problems than this one. It is possible (and extremely easy) to compile a
> 
> Correct. I asked several times whether this can be fixed and was ignored :)
> For the same reason gnuplot exptension never made it into the release
> although we have the patch. 
> But this is not reason why to allow new weak stuff in

+1

> rather it's reason
> why to kick knitr out :)

Or to fix the security issue. There was a good proposal by Richard. But
it would take a lot of work to implement.

Scott


signature.asc
Description: PGP signature


Re: Follow a hyperlink from Lyx editor

2015-12-18 Thread Pavel Sanda
Scott Kostyshak wrote:
> I think knitr introduces more
> problems than this one. It is possible (and extremely easy) to compile a

Correct. I asked several times whether this can be fixed and was ignored :)
For the same reason gnuplot exptension never made it into the release
although we have the patch. 
But this is not reason why to allow new weak stuff in, rather it's reason
why to kick knitr out :)

Pavel


Re: Follow a hyperlink from Lyx editor

2015-12-18 Thread Scott Kostyshak
On Fri, Dec 18, 2015 at 07:40:46PM -0800, Pavel Sanda wrote:
> Scott Kostyshak wrote:
> > Are the security concerns different for LyX?
> 
> Yes. I am not saying it's impossible to implement it correctly,
> but at the time we used startscript routine which is IIRC weak
> when it comes to the concerns raised. Since I had working patch
> for myself I didn't try to fix it, given what it could involve
> (testing other archs etc...)
> 
> Check c0bb9707cb & a522fc683a.

Thanks for the references. I found this relevant email thread:
http://marc.info/?l=lyx-devel&m=129193159214353&w=2

I still don't understand the problem. I think knitr introduces more
problems than this one. It is possible (and extremely easy) to compile a
.lyx file and arbitrary system code is run. With the URL feature, at
least the user is the one who is consciously opening a link and can see
the link (wherease with a .lyx file it is easy to hide the knitr chunk
from the user). But I suppose it is not a fair argument to say "this is
not as insecure as that so this is not bad" because even if that is true
we still want as few vulnerabilities as possible.

In any case, I will not start a debate since I'd prefer not to spend the
time. Also, I personally wouldn't use the feature.

Scott


signature.asc
Description: PGP signature


Re: Follow a hyperlink from Lyx editor

2015-12-18 Thread Pavel Sanda
Scott Kostyshak wrote:
> Are the security concerns different for LyX?

Yes. I am not saying it's impossible to implement it correctly,
but at the time we used startscript routine which is IIRC weak
when it comes to the concerns raised. Since I had working patch
for myself I didn't try to fix it, given what it could involve
(testing other archs etc...)

Check c0bb9707cb & a522fc683a.
Pavel


Re: Follow a hyperlink from Lyx editor

2015-12-18 Thread Scott Kostyshak
On Fri, Dec 18, 2015 at 07:03:29PM -0800, Pavel Sanda wrote:
> David wrote:
> > Am 17.12.2015 um 07:39 schrieb Scott Kostyshak:
> > > 
> > > I think this is a reasonable feature request. Please open a ticket at
> > > http://www.lyx.org/trac
> > > 
> > 
> > Done: http://www.lyx.org/trac/ticket/9906
> > 
> > Edits to make the request clearer are always welcome.
> 
> This feature has been actually already part of LyX and we ditched it
> because of security concerns (i.e. injecting some malicious code
> into url which would get executed when clicking on the url).
> I have working patch, which I personally use, but you would need
> to compile lyx on your own...

I don't understand. Many applications have such a feature, even simple
applications. For example, in gnome-terminal you can right-click on any
string starting with 'http://' and there is a 'Open Link' option.
Are the security concerns different for LyX?

To make sure I understand correctly, when you say "clicking on the url"
you mean that a webbrowser would be openned when just clicking on the
text inside the URL inset? The feature I'm talking about is adding a
"Open Link" option to the inset context menu.

Scott


signature.asc
Description: PGP signature


Re: Follow a hyperlink from Lyx editor

2015-12-18 Thread gordon_cooper

A good reason for ditching the feature, I'll forget about it.

Gordon.

.


This feature has been actually already part of LyX and we ditched it
because of security concerns (i.e. injecting some malicious code
into url which would get executed when clicking on the url).
I have working patch, which I personally use, but you would need
to compile lyx on your own...

Pavel





Re: Follow a hyperlink from Lyx editor

2015-12-18 Thread Pavel Sanda
David wrote:
> Am 17.12.2015 um 07:39 schrieb Scott Kostyshak:
> > 
> > I think this is a reasonable feature request. Please open a ticket at
> > http://www.lyx.org/trac
> > 
> 
> Done: http://www.lyx.org/trac/ticket/9906
> 
> Edits to make the request clearer are always welcome.

This feature has been actually already part of LyX and we ditched it
because of security concerns (i.e. injecting some malicious code
into url which would get executed when clicking on the url).
I have working patch, which I personally use, but you would need
to compile lyx on your own...

Pavel


Re: Follow a hyperlink from Lyx editor

2015-12-17 Thread David
Am 17.12.2015 um 07:39 schrieb Scott Kostyshak:
> 
> I think this is a reasonable feature request. Please open a ticket at
> http://www.lyx.org/trac
> 

Done: http://www.lyx.org/trac/ticket/9906

Edits to make the request clearer are always welcome.

David



Re: Follow a hyperlink from Lyx editor

2015-12-16 Thread Scott Kostyshak
On Thu, Dec 10, 2015 at 10:58:01AM +0100, David wrote:
> Dear list,
> 
> Lyx allows inserting hyperlinks, e.g. to websites. I frequently use this
> feature inside notes, especially to link to WWW sources of Lyx/Latex
> tricks I use in my document.
> 
> In this situation, it would be quite convenient to be able to follow
> this link from the Lyx editor. That is, click on the link and have a
> browser loading the webpage. Is this possible (I tried CTRL+Click /
> SHIFT+Click / ALT+Click)?
> 
> If not, would that be a candidate for a feature request?

I think this is a reasonable feature request. Please open a ticket at
http://www.lyx.org/trac

I suppose we would just add an item to the right-click menu of the inset
box. I don't think we would have right-clicking on the text inside the
URL box (like for example happens in gnome-terminal or other
applications that detect URLs).
We could open the link in our viewer for .html files.

Scott


signature.asc
Description: PGP signature


Follow a hyperlink from Lyx editor

2015-12-10 Thread David
Dear list,

Lyx allows inserting hyperlinks, e.g. to websites. I frequently use this
feature inside notes, especially to link to WWW sources of Lyx/Latex
tricks I use in my document.

In this situation, it would be quite convenient to be able to follow
this link from the Lyx editor. That is, click on the link and have a
browser loading the webpage. Is this possible (I tried CTRL+Click /
SHIFT+Click / ALT+Click)?

If not, would that be a candidate for a feature request?

David


Re: "Launch file" warning from hyperlink in PDF

2013-03-20 Thread leonid baranov
leonid baranov  gmail.com> writes:

> (see an attached sample).

Hi,

I failed to figure out how to upload an attachment to
a GMANE post.

So, here are the missing details for the previous
post.

1.1.

In "Insert > Hyperlink" dialog, I entered:

- Target:

run:C:/Users/Public/Videos/Sample Videos/Wildlife.wmv

- Link type:

Web

1.2.
  Adobe Reader's "Launch File" Warning:

   The file and it's viewer application are set to be launched by this PDF file.
   The file may contain programs, macros, or viruses that could potentially
   harm your computer. Only opern the file if you are sure it is safe.
   If this file was placed by a trusted person or program, you can click
   Open to view the file.

   C:\Program Files (x86)\Windows Media Player\wmplayer.exe


 < Open > | < Do Not Open >

1.3.

Note that the video in question is a demo file normally available on any
Windows platform (comes with a standard distribution). 


Regards,
Leonid




"Launch file" warning from hyperlink in PDF

2013-03-20 Thread leonid baranov
Hello, LyXers

Two questions about hyperlinking executables.

1.
I was hoping to create an annotated family media archive
using LyX. A searchable and navigable text in PDF would
serve as a guide to the archive. Hyperlinks would point to
the media of interest and allow to play it on click.
Imbedding this amount of media in PDF was not an option.

  As an annoying problem, Adobe Reader XI does not play
videos until after user's response to a "Launch file" warning
(see an attached sample).

  Recent fixes in the Adobe security notwithstanding,
the Adobe Help seems to imply that it should be possible to
suppress the warning. But no tried combination of Reader's
preferences (Multimedia(legacy) | Multimedia Trust (legacy) |
Security | Security (Enhanced) | Trust Manager ) would allow
to circumvent the warning.

  Are there additional PDF options which one could specify
in LyX so as to suppress the warning?

Platform: LyX 2.0.5/MiKTeX 2.9/Win 7

2.
Similarly, but more generally, could one hyperlink an aribitrary
local executable (say, of my own making) and pass parameters to it?

Adobe help seems to imply that, beyond the 3 choices offered
by LyX (Web | eMail | File ), there also exist so called
"Custom Links".  

Could the custom hyperlinks be defined through LyX? If so,
could they be used (how?) for the above purpose of invoking
ANY executable/script?

Thank you for your time




Re: hyperlink from url fields in bibtex file

2012-02-19 Thread Richard Heck

On 02/16/2012 04:29 PM, Csikos Bela wrote:

Hello:

I would like to include URL fields of the bibtex file in the bibliography as 
real clickable links. How can I do it? Currently the content of the URL fields 
looks like regular text.

You need to use the \hyperlink command, I'd assume.

Richard



Re: How to open the URL and Hyperlink addresses in the browser

2012-01-10 Thread Julien Rioux

On 10/01/2012 8:33 PM, nomnex wrote:

That's maybe a dumb question, but I can't figure out how to follow
(click on) the URL and Hyperlink addresses, when I read the LyX
user manual on screen.

I can click on the cross references, by example, but I find no way to
open an URL or a Hyperlink addresse in the browser. The same applies
when I edit  a document.

Thanks in advance.

Fedora 15 LXDE/LyX 2.0.2


It's not yet possible. See http://www.lyx.org/trac/ticket/6864

--
Julien



How to open the URL and Hyperlink addresses in the browser

2012-01-10 Thread nomnex
That's maybe a dumb question, but I can't figure out how to follow
(click on) the URL and Hyperlink addresses, when I read the LyX
user manual on screen.

I can click on the cross references, by example, but I find no way to
open an URL or a Hyperlink addresse in the browser. The same applies
when I edit  a document.

Thanks in advance.

Fedora 15 LXDE/LyX 2.0.2
-- 
nomnex 
Freenode: nomnex
Registered Linux user #505281. Be counted at: http://linuxcounter.net


Re: hyperlink

2011-05-25 Thread Julien Rioux

On 25/05/2011 10:42 AM, Patrick Dupre wrote:

Hello,

Can I create an hyperlink to another lyx file ?

Thank.



Currently LyX does not do that for you.

You can do this in latex following the instructions here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=extref

You will need to use TeX code and provide the .aux files.

--
Julien



hyperlink

2011-05-25 Thread Patrick Dupre

Hello,

Can I create an hyperlink to another lyx file ?

Thank.

--
---
==
 Patrick DUPRÉ  |   |
 Department of Chemistry|   |  Phone: (44)-(0)-1904-434384
 The University of York |   |  Fax:   (44)-(0)-1904-432516
 Heslington |   |
 York YO10 5DD  United Kingdom  |   |  email: patrick.du...@york.ac.uk
==

Re: Hyperlink: &amp;quot;No action defined!&amp;quot;?

2010-08-20 Thread Paul Rubin
Sam Lewis  yahoo.co.uk> writes:

> 
> Why not use this
> for opening the defined link? Might be useful to improve the
> writing-reading-writing flow.
> 

Not unreasonable.  You might want to enter a Trac ticket for it as an
enhancement (after checking to be sure there isn't already such a ticket -- if
there is, you can add a comment endorsing it) (and charitably assuming Trac is
running at the moment -- there appear to be access issues with the web site
recently).

/Paul




Re: Hyperlink: &quot;No action defined!&quot;?

2010-08-20 Thread Sam Lewis
> > icon and the following pop up message appears: "No action defined!"
> > What can I define where?
> Absent your modifying the source code, I suspect you cannot define any 
> actions.

I see, this is just some kind of place holder in the source. Why not use this
for opening the defined link? Might be useful to improve the
writing-reading-writing flow.

Cheers, Sam






Re: Hyperlink: "No action defined!"?

2010-08-20 Thread Paul Rubin
Sam Lewis  yahoo.co.uk> writes:

> 
> What is the purpose of right clicking on a hyperlink *inside* LyX?

None.
> 
> Reproduce: [Insert] > [Hyperlink]; add a link; right click on inserted
> hyperlink
> icon and the following pop up message appears: "No action defined!"
> 
> What can I define where?

Absent your modifying the source code, I suspect you cannot define any actions.

> Can I open this link from *within* LyX? That would be
> perfect. 

Not AFAIK.
> 
> Anybody any idea? Many thanks!

I think hyperlinks are treated as insets.  Right-clicking an inset in LyX
normally brings up a context menu.  Left-clicking an inset normally
opens/collapses it.  In the case of a hyperlink inset, though, left-clicking
opens up the dialog box for it.  Since there's nothing else you can do with a
hyperlink (at least currently) other than modifying the text or URL, there's no
need for a context menu, and apparently none is defined (hence the no action
message).  There may be other inset types where a left click does all that can
be done with them, although at the moment none come to mind.

/Paul




Hyperlink: "No action defined!"?

2010-08-20 Thread Sam Lewis
Hi,

What is the purpose of right clicking on a hyperlink *inside* LyX?

Reproduce: [Insert] > [Hyperlink]; add a link; right click on inserted hyperlink
icon and the following pop up message appears: "No action defined!"

What can I define where? Can I open this link from *within* LyX? That would be
perfect. 

Anybody any idea? Many thanks!

Cheers, Sam



Re: hyperlink display

2010-06-29 Thread Manveru
2010/6/29 Guenter Milde :
> On 2010-06-28, Manveru wrote:
>> To all it may concern not reading Trac - I've just added following comment:
>
>> I would like to enhance this idea with an option to display an small
>> icon before the text, like WikiMedia does on its pages.
>
>> This method my apply to all other small insets, like footnote, label,
>> etc. Icons may contain tooltips explaining what kind of inset is that,
>> even short explanation may be useful.
>
>> Certainly I understand that displaying such images in LyX text control
>> may be harder to implement that current mechanism basing on
>> descriptive texts.
>
> With good Screen font, the simple option is to choose from the rich set
> of Unicode symbols.

Yes, this is good idea as well :-)

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: hyperlink display

2010-06-28 Thread Guenter Milde
On 2010-06-28, Manveru wrote:
> To all it may concern not reading Trac - I've just added following comment:

> I would like to enhance this idea with an option to display an small
> icon before the text, like WikiMedia does on its pages.

> This method my apply to all other small insets, like footnote, label,
> etc. Icons may contain tooltips explaining what kind of inset is that,
> even short explanation may be useful.

> Certainly I understand that displaying such images in LyX text control
> may be harder to implement that current mechanism basing on
> descriptive texts.

With good Screen font, the simple option is to choose from the rich set
of Unicode symbols. 

Günter



Re: hyperlink display

2010-06-28 Thread Manveru
To all it may concern not reading Trac - I've just added following comment:

I would like to enhance this idea with an option to display an small
icon before the text, like WikiMedia does on its pages.

This method my apply to all other small insets, like footnote, label,
etc. Icons may contain tooltips explaining what kind of inset is that,
even short explanation may be useful.

Certainly I understand that displaying such images in LyX text control
may be harder to implement that current mechanism basing on
descriptive texts.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl

2010/6/25 Jose Quesada :
> I've added an enhancement request:
> http://www.lyx.org/trac/ticket/6788
> Best,
> -Jose
>
> Jose Quesada, PhD.
> Max Planck Institute,
> Center for Adaptive Behavior and Cognition,
> Berlin
> http://www.josequesada.name/
> http://twitter.com/Quesada
>
>
> On Fri, Jun 25, 2010 at 10:05 AM, Guenter Milde 
> wrote:
>>
>> On 2010-06-24, Vincent van Ravesteijn wrote:
>> >> Hi,
>> >> The current hyperlink display (at least in the doc classes I've tried)
>> >> is as
>> >> follows:
>> >> [hyperlink: text limited in width]
>> >> Would it be possible to have a more conventional display, eg not having
>> >> the
>> >> word hyperlink preceeding the text, not having the limited width, and
>> >> say
>> >> having it format as underscored blue text? I mean the lyx preview, not
>> >> the
>> >> resulting pdf.
>>
>> > Yes, it's possible, but someone has to implement it and make it such
>> > that everyone likes it.
>>
>> I'd like to use some Unicodechar instead of a full word for references,
>> labels and hyperlinks.
>>
>> As there is no "one size fits all" solution, please make "tags"
>> configurable.
>>
>> BTW: there is a workaround for users of LyX in a non-english language:
>> configure the translation of these "tag names".
>>
>> Günter
>>
>
>


Re: hyperlink display

2010-06-25 Thread Jose Quesada
I've added an enhancement request:
http://www.lyx.org/trac/ticket/6788
Best,
-Jose

Jose Quesada, PhD.
Max Planck Institute,
Center for Adaptive Behavior and Cognition,
Berlin
http://www.josequesada.name/
http://twitter.com/Quesada


On Fri, Jun 25, 2010 at 10:05 AM, Guenter Milde wrote:

> On 2010-06-24, Vincent van Ravesteijn wrote:
> >> Hi,
> >> The current hyperlink display (at least in the doc classes I've tried)
> is as
> >> follows:
> >> [hyperlink: text limited in width]
> >> Would it be possible to have a more conventional display, eg not having
> the
> >> word hyperlink preceeding the text, not having the limited width, and
> say
> >> having it format as underscored blue text? I mean the lyx preview, not
> the
> >> resulting pdf.
>
> > Yes, it's possible, but someone has to implement it and make it such
> > that everyone likes it.
>
> I'd like to use some Unicodechar instead of a full word for references,
> labels and hyperlinks.
>
> As there is no "one size fits all" solution, please make "tags"
> configurable.
>
> BTW: there is a workaround for users of LyX in a non-english language:
> configure the translation of these "tag names".
>
> Günter
>
>


Re: hyperlink display

2010-06-25 Thread Guenter Milde
On 2010-06-24, Vincent van Ravesteijn wrote:
>> Hi,
>> The current hyperlink display (at least in the doc classes I've tried) is as
>> follows:
>> [hyperlink: text limited in width]
>> Would it be possible to have a more conventional display, eg not having the
>> word hyperlink preceeding the text, not having the limited width, and say
>> having it format as underscored blue text? I mean the lyx preview, not the
>> resulting pdf.

> Yes, it's possible, but someone has to implement it and make it such
> that everyone likes it.

I'd like to use some Unicodechar instead of a full word for references,
labels and hyperlinks.

As there is no "one size fits all" solution, please make "tags"
configurable.

BTW: there is a workaround for users of LyX in a non-english language:
configure the translation of these "tag names".

Günter



Re: hyperlink display

2010-06-24 Thread Vincent van Ravesteijn
> Hi,
> The current hyperlink display (at least in the doc classes I've tried) is as
> follows:
> [hyperlink: text limited in width]
> Would it be possible to have a more conventional display, eg not having the
> word hyperlink preceeding the text, not having the limited width, and say
> having it format as underscored blue text? I mean the lyx preview, not the
> resulting pdf.

Yes, it's possible, but someone has to implement it and make it such
that everyone likes it.

Vincent

(CCing the list)


hyperlink display

2010-06-24 Thread Jose Quesada
Hi,

The current hyperlink display (at least in the doc classes I've tried) is as
follows:

[hyperlink: text limited in width]

Would it be possible to have a more conventional display, eg not having the
word hyperlink preceeding the text, not having the limited width, and say
having it format as underscored blue text? I mean the lyx preview, not the
resulting pdf.

Thanks!


Best,
-Jose

Jose Quesada, PhD.
Max Planck Institute,
Center for Adaptive Behavior and Cognition,
Berlin
http://www.josequesada.name/
http://twitter.com/Quesada


Re: Hyperlink to Local PDFs

2010-06-24 Thread Paul A. Rubin

On 6/24/2010 1:27 AM, Jacob Heimark wrote:


I am a newb to LyX and LaTeX. I apologize if this is (a) not the right
forum/locale to ask my question in
and (b) the answer to this question is somewhere on the website and I
am just too stupid to find it (I spent
several hours searching - at least I can't find an answer to my question).

I am trying to get LyX to hyperlink to a local pdf such that a
clickable "name" field in the pdf created by lyx
opens a desired pdf (located in the same folder as the LyX document
and the pdf).

I want to use local references because I am using dropbox with a
colleague, I use a mac, he uses Windows.


In LyX, click Insert > Hyperlink, put the link text in the Name field, 
the name of the PDF file (including extension, but excluding path) in 
the Target field, and click the File radio button.  You're going to have 
to give LyX the benefit of the doubt on this:  if you preview your file 
with one of the View > PDF (...) options, the link will be there but 
won't work when you click on it.  If you _export_ your file to PDF, 
however, the link will work (provided that the target file is in the 
same directory as the exported document).  The reason it doesn't work in 
preview mode is that LyX generates the preview document in a temporary 
directory, not in the document's home directory, and it does not copy 
the target file to the temp directory, nor does it adjust the path 
automatically (which I would characterize as a minor bug).


If I am not being clear about what I am trying to do, I will try to
explain again: I am working on a joint
research paper, we are trying to write it in LaTeX, we would like the
final PDF produced by LyX to link to
PDFs in the same folder as the LyX document so that we can quickly
jump to references. Essentially, I am
writing him notes and saying: see here, and want him to be able to jump there.


This will work, but keep in mind that the default behavior is for the 
link to _replace_ the current document with the target document (at 
least in Acrobat Reader).  So the reader loses his/her place in the 
current document.  If you want the link to open the target in a new 
reader window without closing the current document, go to Document > 
Settings > PDF Properties, enable "Use hyperref support", and add 
pdfnewwindow=true to the Additional options field.


If the hyperlink would also work in LyX and/or anyone could give me
advice on how to jump to a specific
section in a pdf or how best to annotate said pdf this would all be
REALLY helpful.


Insert > Hyperlink causes your document to load the LaTeX hyperref 
package, which automatically creates bookmarks to major structural 
components of your PDF file (sections, subsections etc.), provided that 
they are numbered.  If you look in the environment list, you'll see 
"starred" versions of several environments (e.g., Section and Section*). 
 The starred versions are not numbered, and as a consequence hyperref 
will not create bookmarks for them.  When the resulting PDF file is 
opened in Acrobat Reader (and I'm pretty sure other readers behave 
similarly), there will be a sidebar containing links to the unstarred 
components.  You can control whether the sidebar is open or closed at 
the time the document is opened with one of hyperref's many options.  If 
you want to generate a PDF that does not contain any external links 
(i.e., you're not going to do Insert > Hyperlink anywhere in it) but you 
do want the internal document links, just go to Document > Settings > 
PDF Properties and check "Use hyperref support".  Note that you can also 
customize hyperref options there.  See the manual that comes with 
hyperref for full details -- it should be located in the 
.../doc/latex/hyperref folder under your LaTeX distribution's 
installation directory.  (All this presumes that you have the hyperref 
package installed, of course.)


Thank you so much for understanding, sorry to be such a newbie if my
questions seem stupid.


We're all newbies until we're not.

/Paul



Hyperlink to Local PDFs

2010-06-23 Thread Jacob Heimark
Hi,

I am a newb to LyX and LaTeX. I apologize if this is (a) not the right
forum/locale to ask my question in
and (b) the answer to this question is somewhere on the website and I
am just too stupid to find it (I spent
several hours searching - at least I can't find an answer to my question).

I am trying to get LyX to hyperlink to a local pdf such that a
clickable "name" field in the pdf created by lyx
opens a desired pdf (located in the same folder as the LyX document
and the pdf).

I want to use local references because I am using dropbox with a
colleague, I use a mac, he uses Windows.

If I am not being clear about what I am trying to do, I will try to
explain again: I am working on a joint
research paper, we are trying to write it in LaTeX, we would like the
final PDF produced by LyX to link to
PDFs in the same folder as the LyX document so that we can quickly
jump to references. Essentially, I am
writing him notes and saying: see here, and want him to be able to jump there.

If the hyperlink would also work in LyX and/or anyone could give me
advice on how to jump to a specific
section in a pdf or how best to annotate said pdf this would all be
REALLY helpful.

Thank you so much for understanding, sorry to be such a newbie if my
questions seem stupid.

N.B.
I am using a Mac 10.6.3 and LyX 1.6.6

Sincerely,
-J Heimark


Re: bug in hyperlink and footnote?

2009-04-20 Thread Uwe Stöhr

James C. Sutherland schrieb:


Reported as bug #5908  (http://www.lyx.org/trac/ticket/5908)


Thanks. It turns out that you found a bug in the LaTeX-package hyperref. I'll inform you when I know 
more.



I should have been more precise regarding the URL.  An example URL is:
http://scriptures.lds.org/en/luke/24/6#6
I assume that this is a valid URL.


Yes it is.

regards Uwe


Re: bug in hyperlink and footnote?

2009-04-20 Thread James C. Sutherland


On Apr 19, 2009, at 5:04 AM, Uwe Stöhr wrote:


One important not: you example used an address in this form:
http://www.bla.blub/#1
This is not conform to the URL specification. There must be at least  
a character after the "/" and before the "#". Or do you have an  
example of a valid URL where this is not the case?


regards Uwe


Reported as bug #5908  (http://www.lyx.org/trac/ticket/5908)

I should have been more precise regarding the URL.  An example URL is:
http://scriptures.lds.org/en/luke/24/6#6
I assume that this is a valid URL.

Re: bug in hyperlink and footnote?

2009-04-19 Thread Uwe Stöhr

One important not: you example used an address in this form:
http://www.bla.blub/#1
This is not conform to the URL specification. There must be at least a character after the "/" and 
before the "#". Or do you have an example of a valid URL where this is not the case?


regards Uwe


Re: bug in hyperlink and footnote?

2009-04-19 Thread Uwe Stöhr

Uwe Stöhr schrieb:

It is a bug and I'll try to fix it. Can you please open a bug report for 
reference?


I was too rash. The problem is the following: In hyperlinks the "#" character must not be escaped as 
command "\#". While it must be escaped when the hyperlink is in the footnote. This is not easy to 
handle and I'm not sure if we can do something about it since the behaviour seem to depend on the 
hyperref package version. Please open a bug nevertheless.


regards Uwe


Re: bug in hyperlink and footnote?

2009-04-19 Thread Uwe Stöhr

James Sutherland schrieb:


1. Create a footnote.
2. In the footnote, insert a hyperlink
3. In the "target" field of the hyperlink, insert a URL with a "#" sign 
in it, i.e.  www.example.com/#1


Can anyone verify that this is a bug?


It is a bug and I'll try to fix it. Can you please open a bug report for 
reference?

regards Uwe


Re: bug in hyperlink and footnote?

2009-04-18 Thread Wolfgang Engelmann
Am Sunday 19 April 2009 00:24:38 schrieb James Sutherland:
> I think that I may have found a bug in LyX.
>
> 1. Create a footnote.
> 2. In the footnote, insert a hyperlink
> 3. In the "target" field of the hyperlink, insert a URL with a "#"
> sign in it, i.e.  www.example.com/#1
>
> Latex fails to compile this document.
>
> A hyperlink with a "#" in the target works as long as it is NOT in a
> footnote.
>
> I have attached a trivially simple file that exposes this problem.
>
> This worked in 1.6.0.  (Actually, I have a file that used this in
> 1.6.0rc3 - I haven't tried recompiling that particular file since
> then...
>
> Can anyone verify that this is a bug?

confirmed (LyX1.6.2):
error message:

illegal parameter number in definition of h...@tempa
 }
  
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.



Re: bug in hyperlink and footnote?

2009-04-18 Thread James Sutherland

I can confirm the problem on Mac OS X 10.5.6 with TeXLive 2008. Here's
the error message (repeated 3 times):

Illegal parameter number in definition of \...@tempa.

}

You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things are all
screwed up? I'm going to assume that you meant ##.



Actually, the URL that I want to reference has a single #, not two ##.
It is quite strange that the individual hyperlink works, but it does  
not work when embedded in the footnote...


Re: bug in hyperlink and footnote?

2009-04-18 Thread BH
On Sat, Apr 18, 2009 at 7:50 PM, James Sutherland
 wrote:
>
> On Apr 18, 2009, at 5:27 PM, Stefano Franchi wrote:
>
>> On Saturday 18 April 2009 17:24:38 James Sutherland wrote:
>>>
>>> I think that I may have found a bug in LyX.
>>>
>>> 1. Create a footnote.
>>> 2. In the footnote, insert a hyperlink
>>> 3. In the "target" field of the hyperlink, insert a URL with a "#"
>>> sign in it, i.e.  www.example.com/#1
>>>
>>> Latex fails to compile this document.
>>>
>>> A hyperlink with a "#" in the target works as long as it is NOT in a
>>> footnote.
>>>
>>> I have attached a trivially simple file that exposes this problem.
>>>
>>> This worked in 1.6.0.  (Actually, I have a file that used this in
>>> 1.6.0rc3 - I haven't tried recompiling that particular file since
>>> then...
>>>
>>> Can anyone verify that this is a bug?
>>
>> Your example works fine here, actually: Lyx 1.6.2 with TexLive 2007 on
>> Kubuntu
>> Intrepid.
>
> Hmm..  Good to know.  I am on Mac OSX 10.5.6 LyX 1.6.2 with TexLive 2008.
> Can anyone else on a Mac duplicate this?

I can confirm the problem on Mac OS X 10.5.6 with TeXLive 2008. Here's
the error message (repeated 3 times):

Illegal parameter number in definition of \...@tempa.

}

You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things are all
screwed up? I'm going to assume that you meant ##.



Bennett


Re: bug in hyperlink and footnote?

2009-04-18 Thread James Sutherland


On Apr 18, 2009, at 5:27 PM, Stefano Franchi wrote:


On Saturday 18 April 2009 17:24:38 James Sutherland wrote:

I think that I may have found a bug in LyX.

1. Create a footnote.
2. In the footnote, insert a hyperlink
3. In the "target" field of the hyperlink, insert a URL with a "#"
sign in it, i.e.  www.example.com/#1

Latex fails to compile this document.

A hyperlink with a "#" in the target works as long as it is NOT in a
footnote.

I have attached a trivially simple file that exposes this problem.

This worked in 1.6.0.  (Actually, I have a file that used this in
1.6.0rc3 - I haven't tried recompiling that particular file since
then...

Can anyone verify that this is a bug?


Your example works fine here, actually: Lyx 1.6.2 with TexLive 2007  
on Kubuntu

Intrepid.


Hmm..  Good to know.  I am on Mac OSX 10.5.6 LyX 1.6.2 with TexLive  
2008.

Can anyone else on a Mac duplicate this?


Re: bug in hyperlink and footnote?

2009-04-18 Thread Stefano Franchi
On Saturday 18 April 2009 17:24:38 James Sutherland wrote:
> I think that I may have found a bug in LyX.
>
> 1. Create a footnote.
> 2. In the footnote, insert a hyperlink
> 3. In the "target" field of the hyperlink, insert a URL with a "#"
> sign in it, i.e.  www.example.com/#1
>
> Latex fails to compile this document.
>
> A hyperlink with a "#" in the target works as long as it is NOT in a
> footnote.
>
> I have attached a trivially simple file that exposes this problem.
>
> This worked in 1.6.0.  (Actually, I have a file that used this in
> 1.6.0rc3 - I haven't tried recompiling that particular file since
> then...
>
> Can anyone verify that this is a bug?

Your example works fine here, actually: Lyx 1.6.2 with TexLive 2007 on Kubuntu 
Intrepid.

Cheers,

S.


__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A&M University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



bug in hyperlink and footnote?

2009-04-18 Thread James Sutherland

I think that I may have found a bug in LyX.

1. Create a footnote.
2. In the footnote, insert a hyperlink
3. In the "target" field of the hyperlink, insert a URL with a "#"  
sign in it, i.e.  www.example.com/#1


Latex fails to compile this document.

A hyperlink with a "#" in the target works as long as it is NOT in a  
footnote.


I have attached a trivially simple file that exposes this problem.

This worked in 1.6.0.  (Actually, I have a file that used this in  
1.6.0rc3 - I haven't tried recompiling that particular file since  
then...


Can anyone verify that this is a bug?



newfile1.lyx
Description: Binary data




Re: Hyperlink question

2009-01-15 Thread Michael Wojcik
Uwe Stöhr wrote:
> Michael Wojcik schrieb:
>>> As said this is a bug in LyX I will fix soon. The LyX will automatically
>>> translate "\" to "/" etc.
>>
>> I don't see how that's a LyX bug.
> 
> It is a bug, because \ is not allowed as argument of \href and therefore
> you get LaTeX errors.

Ah, I see. Thanks for that explanation. I was thinking that you were
treating LyX's failure to correct a user's error as a bug.

-- 
Michael Wojcik
Rhetoric & Writing, Michigan State University



Re: Hyperlink question

2009-01-13 Thread Uwe Stöhr

Tao Cumplido schrieb:


I tried to call a simple text file from C:\file.txt but got the following error:

 Text\href{file:C:\file.txt}
{file-link}
The control sequence at the end of the top line
of your error message was never \def'ed.


I fixed this now for the next LyX release. Now "\" characters in the url field are translated in the 
background to "/". So you can insert path to files as you normally do in Windows.

(file:C:/file.txt is handled as expected by Firefor and Co.)

regards Uwe


Re: Hyperlink question

2009-01-13 Thread Uwe Stöhr

Michael Wojcik schrieb:


As said this is a bug in LyX I will fix soon. The LyX will automatically
translate "\" to "/" etc.


I don't see how that's a LyX bug.


It is a bug, because \ is not allowed as argument of \href and therefore you 
get LaTeX errors.

regards Uwe


Re: Hyperlink question

2009-01-13 Thread Michael Wojcik
Uwe Stöhr wrote:
> 
> As said this is a bug in LyX I will fix soon. The LyX will automatically
> translate "\" to "/" etc.

I don't see how that's a LyX bug. Maybe it's a nice feature, though it
seems a bit arbitrary. LyX can't also escape reserved characters in
the URL, for example, because it can't know if those characters are
being used for their reserved purpose.

Personally, I'd rather see a documentation update, and not have LyX
try to monkey with the URL contents.

-- 
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University



Re: Hyperlink question

2009-01-13 Thread Michael Wojcik
Tao Cumplido wrote:
>[I wrote:]
>> Is that a bug? "file:C:\file.txt" is not a valid URL. It should be
>> "file:///c:/file.txt". (Actually, even that isn't strictly valid; the
>> "c:" ought to be "c|". But everyone uses and supports "c:".)
> 
> Ok that kind of works.
> But how am I supposed to know that the directory has to be written like this?
> There's no mention about this in the Hyperlink-chapter of the manual.

Yes, it'd be nice if the LyX documentation discussed file-scheme URLs
in the material on hyperlinks.

file-scheme URLs give many Windows users trouble, especially because
some Microsoft software (notably IE and Explorer) have very sloppy
rules for handling them. In theory, you could figure out how to write
them by reading the URI specification (IETF STD0066, if memory
serves), but it wouldn't be easy.

Jukka Korpela has a discussion on file-scheme URLs, including some
notes about how to use them on Windows, here:

http://www.cs.tut.fi/~jkorpela/fileurl.html

> Well, the PDF is processed and it works except in Acrobat where
> Firefox opens with an empty tab, but I guess that's an Acrobat problem?!

This could be the result of the stricter same-domain policy in
Mozilla-based browsers, combined with something to do with how Acrobat
is invoking Firefox. There's a short comment on that on Jukka's page.
There's not much that can be done about it; it's a security measure,
so it's supposed to be difficult to circumvent.

By the way, you can ignore the bit I wrote above about using "c|"
instead of "c:". That's no longer allowed by the current URI
specification. A strictly-correct file-scheme URL on Windows would use
"c%3a" for the drive letter and colon.

-- 
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University



Re: Hyperlink question: URL syntax

2009-01-13 Thread Michael Wojcik
Hubert Christiaen wrote:
> An URL is composed of
> - a protocol part ended with ':' ftp:' 'http:' or 'file:'

This is the URI scheme. It doesn't necessarily name a "protocol".

> - an address of the server starting with '//' and ending in '/'
>   if the server is the localmachine, one can put 'localhost' or sometimes 
> also 
> just nothing. In this case you have for a file on your machine 
> already 'file:///' !
> - then follows the location on the server, which is a bit OS dependent ...

The main point, in a case like this, is that the backslash (\) is not
a valid URI character, nor is it the URI component separator for a
hierarchical path. A valid file-scheme URL must use the forward slash
(/). There's nothing OS-dependent about that; it's required by the URI
specification.

-- 
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University



Re: Hyperlink question

2009-01-12 Thread Uwe Stöhr

Tao Cumplido schrieb:


But how am I supposed to know that the directory has to be written like this?
There's no mention about this in the Hyperlink-chapter of the manual.


As said this is a bug in LyX I will fix soon. The LyX will automatically translate "\" to "/" etc. 
Have you reported it at bugzilla.lyx.org?


regards Uwe


Re: Hyperlink question: URL syntax

2009-01-12 Thread Hubert Christiaen
On maandag 12 januari 2009, Tao Cumplido wrote:
> "file:///c:/file.txt". (Actually, even that isn't strictly valid; the
>
> >"c:" ought to be "c|". But everyone uses and supports "c:".)
>
> Ok that kind of works.
> But how am I supposed to know that the directory has to be written like
> this? There's no mention about this in the Hyperlink-chapter of the manual.
An URL is composed of
- a protocol part ended with ':' ftp:' 'http:' or 'file:'
- an address of the server starting with '//' and ending in '/'
  if the server is the localmachine, one can put 'localhost' or sometimes also 
just nothing. In this case you have for a file on your machine 
already 'file:///' !
- then follows the location on the server, which is a bit OS dependent ...

Hope this helps!

Sincerely,
Hubert



-- 
Hubert Christiaen
Bloesemlaan 17
3360 Korbeek-Lo
Belgium   


Re: Hyperlink question

2009-01-12 Thread Tao Cumplido
>Uwe Stöhr wrote:
>> Tao Cumplido schrieb:
>> 
>>> I tried to call a simple text file from C:\file.txt but got the
>>> following error:
>>>
>>>  Text\href{file:C:\file.txt}
>>>> {file-link}
>>> The control sequence at the end of the top line
>>> of your error message was never \def'ed.
>> 
>> You found a bug. Can you please report it at bugzilla.lyx.org. I'll try
>> to fix this as soon as possible.
>
>Is that a bug? "file:C:\file.txt" is not a valid URL. It should be
>"file:///c:/file.txt". (Actually, even that isn't strictly valid; the
>"c:" ought to be "c|". But everyone uses and supports "c:".)

Ok that kind of works.
But how am I supposed to know that the directory has to be written like this?
There's no mention about this in the Hyperlink-chapter of the manual.

Well, the PDF is processed and it works except in Acrobat where Firefox opens 
with an empty tab, but I guess that's an Acrobat problem?!

Thanks!

Tao
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger


Re: Hyperlink question

2009-01-11 Thread Michael Wojcik
Uwe Stöhr wrote:
> Tao Cumplido schrieb:
> 
>> I tried to call a simple text file from C:\file.txt but got the
>> following error:
>>
>>  Text\href{file:C:\file.txt}
>> {file-link}
>> The control sequence at the end of the top line
>> of your error message was never \def'ed.
> 
> You found a bug. Can you please report it at bugzilla.lyx.org. I'll try
> to fix this as soon as possible.

Is that a bug? "file:C:\file.txt" is not a valid URL. It should be
"file:///c:/file.txt". (Actually, even that isn't strictly valid; the
"c:" ought to be "c|". But everyone uses and supports "c:".)

-- 
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University



Re: Hyperlink question

2009-01-11 Thread Uwe Stöhr

Tao Cumplido schrieb:


I tried to call a simple text file from C:\file.txt but got the following error:

 Text\href{file:C:\file.txt}
{file-link}
The control sequence at the end of the top line
of your error message was never \def'ed.


You found a bug. Can you please report it at bugzilla.lyx.org. I'll try to fix 
this as soon as possible.

regards Uwe


Re: Hyperlink question

2009-01-11 Thread Robert Orr
I include the link this way ...

\href{file:///c:/index.htm}{Click Here: For Index.htm File}
 



--- On Sun, 1/11/09, Tao Cumplido  wrote:

> From: Tao Cumplido 
> Subject: Hyperlink question
> To: lyx-users@lists.lyx.org
> Date: Sunday, January 11, 2009, 8:21 AM
> Hi List,
> 
> I just found out that Lyx can also be used to create
> presentations.
> It'd be nice if a presentation could link to external
> audio or video material so I was searching and came across
> the Hyperlink function.
> 
> I tried to call a simple text file from C:\file.txt but
> got the following error:
> 
>  Text\href{file:C:\file.txt}
> {file-link}
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you
> have
> misspelled it (e.g., `\hobx'), type `I' and the
> correct
> spelling (e.g., `I\hbox'). Otherwise just continue,
> and I'll forget about whatever was undefined.
> 
> Am I doing something wrong or is the function to be used
> otherwise in general?
> The User Guide isn't really clear on this topic.
> 
> I am running Lyx 1.6.1 under WinXP.
> 
> Regards,
> 
> Tao
> -- 
> Sensationsangebot verlängert: GMX FreeDSL -
> Telefonanschluss + DSL 
> für nur 16,37 Euro/mtl.!*
> http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a





Hyperlink question

2009-01-11 Thread Tao Cumplido
Hi List,

I just found out that Lyx can also be used to create presentations.
It'd be nice if a presentation could link to external audio or video material 
so I was searching and came across the Hyperlink function.

I tried to call a simple text file from C:\file.txt but got the following error:

 Text\href{file:C:\file.txt}
{file-link}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Am I doing something wrong or is the function to be used otherwise in general?
The User Guide isn't really clear on this topic.

I am running Lyx 1.6.1 under WinXP.

Regards,

Tao
-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a


hyperlink to html documents?

2007-11-13 Thread Neal Becker
I'm using lyx to document some code (python).  I used epydoc to generate
html docs for the API.  If I want to link from my lyx-generated pdf to that
code, I see that file:///absolute_file_path.html will work (at least, when
viewed with kpdf).  I would rather use a relative file path.  Is this
feasible?  Do other pdf viewers support this as well?



Re: Create hyperlink in presentation (beamer) which launches program when clicked?

2007-01-27 Thread Paul A. Rubin

Rainer M Krug wrote:

Hi

Is it possible to insert into a document (class: beamer) a hyperlink via 
URL which launches a program?


Thanks

Rainer



I can think of one way, but I don't know whether it generalizes beyond 
Windows (I suspect it works on Macs, not sure on Linux).  Suppose that 
you have a data file whose extension is associated (either in the OS or 
within your default web browser) with a particular application.  If you 
use file://path/to/target/myfile.ext in the hyperlink, clicking the 
hyperlink in the PDF file launches the web browser, which then asks you 
whether you want to open the target file or save it.  You pick open and 
the application launches and opens the file.


If you want to launch an application without a target file, you can try 
the following.  First, associate in Windows some extension with a shell 
processor.  For instance, I have .sh associated with MinSYS sh.exe 
(which emulates sh on a *nix system).  To launch app.exe from a Beamer 
presentation, I first write a script (app.sh) that launches app.exe. 
(The script will likely need an absolute path to app.exe, since at least 
with Firefox it will be launched from whatever Firefox thinks is your 
default download directory.)  In the Beamer presentation, I use 
file://path/app.sh.  When I click the link, Beamer invokes Firefox to 
process the link, Firefox asks me what do with the link (default being 
to run it under sh, since that's the association in Windows), I select 
the default, Firefox runs sh, which runs app.sh, which runs app.exe. 



Note that this is not particularly transportable.

HTH,
/Paul




Create hyperlink in presentation (beamer) which launches program when clicked?

2007-01-26 Thread Rainer M Krug

Hi

Is it possible to insert into a document (class: beamer) a hyperlink via 
URL which launches a program?


Thanks

Rainer

--
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Department of Conservation Ecology and Entomology
University of Stellenbosch
Matieland 7602
South Africa

Tel:+27 - (0)72 808 2975 (w)
Fax:+27 - (0)86 516 2782
Fax:+27 - (0)21 808 3304 (w)
Cell:   +27 - (0)83 9479 042

email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


Re: HTML export, hyperlink doesn't work in LYX 1.4.3

2006-10-10 Thread Pavel Sanda
> I have compiled LYX 1.4.3 on a redhat Linux machine from source, and have
> deleted my previous $home/.lyx directory so it should be like a fresh
> installation. The problem is I found that when having inserted some URLs by
> Insert->URL..., then View->HTML or export to HTML, the URL never got an
> underline, nor is it clickable.
> 
> And I found checking the box "Generate hyperlink" when inserting URL has no
> effect on the result. No matter I did it or not, the output Latex file
> doesn't change, it always produces a \url{my inserted url string}.
> 
> I found an ugly fix that first write \usepackage{html} in document preamble,
> and then insert a Latex code box(ERT), writing in it \htmlurl{my url}{desc.
> for the link} will produce a clickable hyperlink. However it's so ugly and
> it looks like that it should be the intended behavior Insert->URL... should
> produce.
> 
> Is this a common problem, so a bug in 1.4.3? Or is my setting wrong?

hi,

i dont know how is it with 1.4.3, but in 1.3.x it was a common problem.

does the following helped ?:
http://atrey.karlin.mff.cuni.cz/~sanda/lyx2html/

there are also another ways; try to check wiki and mail archives.

pavel


HTML export, hyperlink doesn't work in LYX 1.4.3

2006-09-26 Thread Shu Li

Hi,

I have compiled LYX 1.4.3 on a redhat Linux machine from source, and have
deleted my previous $home/.lyx directory so it should be like a fresh
installation. The problem is I found that when having inserted some URLs by
Insert->URL..., then View->HTML or export to HTML, the URL never got an
underline, nor is it clickable.

And I found checking the box "Generate hyperlink" when inserting URL has no
effect on the result. No matter I did it or not, the output Latex file
doesn't change, it always produces a \url{my inserted url string}.

I found an ugly fix that first write \usepackage{html} in document preamble,
and then insert a Latex code box(ERT), writing in it \htmlurl{my url}{desc.
for the link} will produce a clickable hyperlink. However it's so ugly and
it looks like that it should be the intended behavior Insert->URL... should
produce.

Is this a common problem, so a bug in 1.4.3? Or is my setting wrong?

Thanks!

best,
Sam


Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-15 Thread Nirmal Govind

did you ever try the sequence eps2eps and then epstopdf?

Yes, I did the last time when Angus suggested it.. it gave me an error 
then (not sure if it was eps2eps or epstopdf) but now eps2eps converts 
to eps and then the epstopdf works... (may be cos I'm trying different 
figures) ... but the image quality of the pdf is very poor... Angus 
mentioned that eps2eps converts to bitmap so that's probably the reason...

thanks,
nirmal


Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-15 Thread Herbert Voß
Nirmal Govind schrieb:
I prefer latin modern ... ;-) and build my PDF's in general
with VTeX/Free.
I tried out all the combinations again.. the ps2pdf output with cm-super 
looked marginally better than ps2pdf with lmodern when viewed on screen 
here.. pdflatex with lmodern does look great.. the reason I didn't use 
this method was cos I have eps figures in most of my files which don't 
convert to pdf (they're Illustrator generated eps figures and they 
somehow don't convert to pdf.. I'd mentioned this in a thread 
earlier)... and strangely, the pdf generated by Illustrator destroys the 
did you ever try the sequence eps2eps and then epstopdf?

Herbert




Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-15 Thread Nirmal Govind
I prefer latin modern ... ;-) and build my PDF's in general
with VTeX/Free.
I tried out all the combinations again.. the ps2pdf output with cm-super 
looked marginally better than ps2pdf with lmodern when viewed on screen 
here.. pdflatex with lmodern does look great.. the reason I didn't use 
this method was cos I have eps figures in most of my files which don't 
convert to pdf (they're Illustrator generated eps figures and they 
somehow don't convert to pdf.. I'd mentioned this in a thread 
earlier)... and strangely, the pdf generated by Illustrator destroys the 
quality of the image... I guess I'll need to generate jpg files from now 
on and then use pdflatex.. (VTeX looks great but it's not available on 
powerpc linux)



Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-15 Thread Herbert Voß
Nirmal Govind schrieb:
With pdflatex still use latin modern fonts (package lmodern)
or the cm-super (needs a lot of memory). There is no need to
use ps2pdf.


Yes, I played around with these a couple weeks ago and I can't remember 
why but I decided that the output from ps2pdf with cm-super was the 
best... will try again and see if I can figure out why I came to that 
conclusion.. :-)
depends to the output (pdf or printer) and what you like.
The major disadvantage of cm-super is that the file size
of the PDF output increases enormously 
I prefer latin modern ... ;-) and build my PDF's in general
with VTeX/Free.
Herbert




Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-15 Thread Nirmal Govind
With pdflatex still use latin modern fonts (package lmodern)
or the cm-super (needs a lot of memory). There is no need to
use ps2pdf.
Yes, I played around with these a couple weeks ago and I can't remember 
why but I decided that the output from ps2pdf with cm-super was the 
best... will try again and see if I can figure out why I came to that 
conclusion.. :-)

nirmal



Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-14 Thread Herbert Voß
Nirmal Govind schrieb:

This problem depends on your bibliography style or extra packages you 
use.
Normally (when using natbib), long citation are broken into lines.

I do use natbib.. I changed the style from asa (Amer. Stat. Assn.) to 
plainnat and apalike and it still persists.

 >
 > did you run ps2pdf or pdflatex?
 >
 > Herbert
 >
Good one Herbert! It happens only when I generate pdf's from a dvi file 
(or view a dvi file or a PS file).. so basically, pdflatex is able to 
split the citation across lines whereas latex isn't... very 
interesting.. do you know of any way to get latex to do the same? i.e. 
to get the dvi/PS file also to split the citation across lines? (reason 
I ask is that I have fine-tuned my converters so that ps2pdf results in 
a doc that has "good" fonts that show up well in Acroread... so it would 
be nice if I can get the same using ps2pdf also)
no, not possible. It is pdftex, which breaks such links.

With pdflatex still use latin modern fonts (package lmodern)
or the cm-super (needs a lot of memory). There is no need to
use ps2pdf.
Herbert




Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-14 Thread Nirmal Govind

This problem depends on your bibliography style or extra packages you use.
Normally (when using natbib), long citation are broken into lines.
I do use natbib.. I changed the style from asa (Amer. Stat. Assn.) to 
plainnat and apalike and it still persists.

>
> did you run ps2pdf or pdflatex?
>
> Herbert
>
Good one Herbert! It happens only when I generate pdf's from a dvi file 
(or view a dvi file or a PS file).. so basically, pdflatex is able to 
split the citation across lines whereas latex isn't... very 
interesting.. do you know of any way to get latex to do the same? i.e. 
to get the dvi/PS file also to split the citation across lines? (reason 
I ask is that I have fine-tuned my converters so that ps2pdf results in 
a doc that has "good" fonts that show up well in Acroread... so it would 
be nice if I can get the same using ps2pdf also)

Thanks,
nirmal


Re: hyperlink extends beyond margin

2003-11-14 Thread Herbert Voß
Nirmal Govind schrieb:
Hi.. I'm using hyperref to generate links in my pdf document.. however, 
some of these links extend beyond the margin.. any option that I can set 
to avoid this?
did you run ps2pdf or pdflatex?

Herbert




Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-14 Thread Dekel Tsur
On Fri, Nov 14, 2003 at 09:50:43AM -0500, Nirmal Govind wrote:
> 
> The problem is actually not with hyperlinks, the problem is that when a 
> citation occurs near the end of the line, the citation will extend 
> beyond the margin if it doesn't fit on that line the problem is 
> severe when I cite using the "Full author list" option for citations and 
> I have more than two authors... how I do I specify that it's OK to split 
> the citation between lines?

This problem depends on your bibliography style or extra packages you use.
Normally (when using natbib), long citation are broken into lines.


Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-14 Thread Roberto Bernetti
Alle 16:00, venerdì 14 novembre 2003, Ingar Pareliussen ha scritto:
> Fredag 14. november 2003 15:50, skreiv Nirmal Govind:
> > Hi.. I didn't get any response to this question so I'm rephrasing it..
> >
> > :-) (actually, I found out what the *real* problem is)
> >
> > The problem is actually not with hyperlinks, the problem is that when a
> > citation occurs near the end of the line, the citation will extend
> > beyond the margin if it doesn't fit on that line the problem is
> > severe when I cite using the "Full author list" option for citations and
> > I have more than two authors... how I do I specify that it's OK to split
> > the citation between lines?
>
> Have you tried adding \sloppy to your preamble ?
> This will make latex break the line before long "words".
>
> Ingar
I got the same problem of Nirval. Your tips works for me, the citations are 
adjusted inside the line.


-- 
---
Roberto Bernetti e-mail: [EMAIL PROTECTED]
V. S.da Vecchia del Pinocchio 1/A
60131 ANCONA
tel/fax 071 2867103



Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-14 Thread Nirmal Govind
Have you tried adding \sloppy to your preamble ?
This will make latex break the line before long "words".
Yes, I did try that but sloppy only justifies words on a line, and it 
still treats the long citation as a compound word. So although, it does 
alleviate the problem, it doesn't completely solve it - I'm hoping that 
there's some way of breaking this compound word...

Thanks for the suggestion..

nirmal



Re: citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-14 Thread Ingar Pareliussen
Fredag 14. november 2003 15:50, skreiv Nirmal Govind:
> Hi.. I didn't get any response to this question so I'm rephrasing it..
>
> :-) (actually, I found out what the *real* problem is)
>
> The problem is actually not with hyperlinks, the problem is that when a
> citation occurs near the end of the line, the citation will extend
> beyond the margin if it doesn't fit on that line the problem is
> severe when I cite using the "Full author list" option for citations and
> I have more than two authors... how I do I specify that it's OK to split
> the citation between lines?

Have you tried adding \sloppy to your preamble ?
This will make latex break the line before long "words".

Ingar



citations extend beyond margin (was Re: hyperlink extends beyond margin)

2003-11-14 Thread Nirmal Govind
Hi.. I didn't get any response to this question so I'm rephrasing it.. 
:-) (actually, I found out what the *real* problem is)

The problem is actually not with hyperlinks, the problem is that when a 
citation occurs near the end of the line, the citation will extend 
beyond the margin if it doesn't fit on that line the problem is 
severe when I cite using the "Full author list" option for citations and 
I have more than two authors... how I do I specify that it's OK to split 
the citation between lines?

Thanks,
nirmal
Nirmal Govind wrote:
Hi.. I'm using hyperref to generate links in my pdf document.. however, 
some of these links extend beyond the margin.. any option that I can set 
to avoid this?

Thanks,
nirmal





Re: hyperlink w/o URL

2003-11-13 Thread Nirmal Govind
Thanks Kayvan..

nirmal

Kayvan A. Sylvan wrote:
Use hyperref and then \href{http://the-url}{Click Here}

I think there are examples at http://www.lyx.org/help

Best regards,

			---Kayvan



Re: hyperlink w/o URL

2003-11-12 Thread Kayvan A. Sylvan
Use hyperref and then \href{http://the-url}{Click Here}

I think there are examples at http://www.lyx.org/help

Best regards,

---Kayvan

On Wed, Nov 12, 2003 at 03:02:10PM -0500, Nirmal Govind wrote:
> Hi.. I'm trying to get some hyperlinks in a presentation using pdfscreen 
> and LyX ... I'd like the URL to be embedded within the text so that the 
> URL isn't shown, instead the text is shown (maybe in blue or 
> something)... currently, if I add a URL using Insert->URL, give it a 
> name and a URL, I see the name and the entire URL side-by-side in the 
> pdf output. Please let me know if there's any way to get the URL to not 
> show...
> 
> Thanks,
> nirmal

-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)


hyperlink w/o URL

2003-11-12 Thread Nirmal Govind
Hi.. I'm trying to get some hyperlinks in a presentation using pdfscreen 
and LyX ... I'd like the URL to be embedded within the text so that the 
URL isn't shown, instead the text is shown (maybe in blue or 
something)... currently, if I add a URL using Insert->URL, give it a 
name and a URL, I see the name and the entire URL side-by-side in the 
pdf output. Please let me know if there's any way to get the URL to not 
show...

Thanks,
nirmal


hyperlink extends beyond margin

2003-11-02 Thread Nirmal Govind
Hi.. I'm using hyperref to generate links in my pdf document.. however, 
some of these links extend beyond the margin.. any option that I can set 
to avoid this?

Thanks,
nirmal



Re: hyperlink question

2003-08-27 Thread Matej Cepl
On 2003-08-10, 09:32 GMT, Matej Cepl wrote:
> On 2003-08-09, 17:40 GMT, Xinwei Yu wrote:
>> Thanks for you quick answer! But the problem persists after I tried
>> as you said. :-( Maybe I've done something wrong... Here is what I
> 
> From all my testing, it seems that the problem is in the current state
> of PDF viewers and WWW browsers, who are broken with regards to URN
> definitions.

I have contacted the author of xpdf about this problem and he reminded
me that for links between two PDF files there are GoToR links in PDF
format. I have no idea how to achieve them with pdfLaTeX, but I guess
that search for references on google.com (or groups.google.com) should
enlighten you.

   Best,

  Matej

-- 
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488



hyperlink question

2003-08-14 Thread Xinwei Yu
Hi, all,

I'm new to LyX and found the hyperlink function fascinating
but puzzling. I've read through the archive but didn't find the
answer I need. Here is my problem:

I try to put in my pdf notes (generated by LyX) some hyperlinks
to other pdf papers in the same directory. So I just use the
hyperref package and then use the Insert->URL function. I put, e.g.,

file://file.pdf in URL and filename in NAME

but after clicking export->pdf(pdflatex), the following happen:

1. both "filename" and "file://file.pdf" is shown in my pdf file,
    and only the latter is made a hyperlink. Checking the "HTML type"
box didn't change anything.
2. when I click the link, it doesn't work, said the file couldn't
be found. So the pdf hyperlink won't work with relative path?
that would be very disappointing!
3. I changed the path to the absolute one,i.e., 
file:///home/blah/blah/file.pdf,
the link worked on that particular machine. But when I access
my file remotely ( invoking acroread via ssh ), the link again
wouldn't work. :-(

I would be very grateful if any one can enlighten me on these questions!

Best,
Xinwei Yu

-- 
-- In Xanadu did Kubla Khan... --

*
Xinwei Yu

Caltech 217-50, Pasadena, CA91125
1-626-5359618(H), 1-626-3954545(O)
Email: [EMAIL PROTECTED]
http://www.acm.caltech.edu/~xinweiyu
*




Re: hyperlink question

2003-08-11 Thread Matej Cepl
On 2003-08-09, 17:40 GMT, Xinwei Yu wrote:
> Thanks for you quick answer! But the problem persists after I tried
> as you said. :-( Maybe I've done something wrong... Here is what I

>From all my testing, it seems that the problem is in the current state
of PDF viewers and WWW browsers, who are broken with regards to URN
definitions.

Matej

-- 
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488



Re: hyperlink question

2003-08-11 Thread Xinwei Yu

Thanks for you quick answer! But the problem persists after I tried
as you said. :-( Maybe I've done something wrong... Here is what I
did:

I use acroread to view my pdf files, and I set the "weblink" opener
to be konqueror in acroread. I set the link to be "file:file.pdf" but
it still doesn't work, the browser is looking for things like 
www.file:file.pdf. After reading RFC 1808, I guess the problem is that
no base URL has been set, thus the browser set it to / and then couldn't
find the file. But I can't figure out how to do it with a pdf file 
generated by pdf latex. :-(
I tried setting the weblink opener to be lynx but it still doesn't 
work. According to lynx help, I think it's treating the file name as
a ftp web address. :-( I created a test.html and tried typing "lynx 
file:test.html" in the command line and it didn't work either. :-(
The best I can get now is that I can use "~" to represent my home
directory in konqueror and thus at least the links are immune from
changes the system administrator may make in the future. 

Did I miss any point in my above operations? Or I have to stay with
the rather unsatisfactory partial solution? I'll be very grateful if
you can shed light on me again!

Thanks a lot!

Best,
Xinwei Yu

On Sat, 9 Aug 2003, Matej Cepl wrote:

> On 2003-08-09, 04:42 GMT, Xinwei Yu wrote:
> > Hi, all,
> 
> Sorry, for answering too fast without investigating the issue somehow.
> 
> > I try to put in my pdf notes (generated by LyX) some hyperlinks
> > to other pdf papers in the same directory. So I just use the
> > hyperref package and then use the Insert->URL function. I put, e.g.,
> > 
> > file://file.pdf in URL and filename in NAME
> 
> Well, this is certainly not the correct URL -- see RFC1808. The correct
> one is file:file.pdf (// introduces the network part).
> 
> > 1. both "filename" and "file://file.pdf" is shown in my pdf file,
> > and only the latter is made a hyperlink. Checking the "HTML type"
> > box didn't change anything.
> 
> Actually, I have fought with this ``feature'' for years and I have no
> answer to that. However, the one to blame (and report bug to -- which
> I never did, shame on me!) is the author/maintainer of hyperref LaTeX
> package.
> 
> > 2. when I click the link, it doesn't work, said the file couldn't
> > be found. So the pdf hyperlink won't work with relative path?
> > that would be very disappointing!
> 
> This is IMHO bug in Mozilla (which you use as urlCommand in your
> ~/.xpdfrc, don't you?). See above for the reference to RFC. For example,
> lynx behaves with file:newfile1.pdf correctly.
> 
> > 3. I changed the path to the absolute one,i.e., 
> > file:///home/blah/blah/file.pdf,
> > the link worked on that particular machine. But when I access
> > my file remotely ( invoking acroread via ssh ), the link again
> > wouldn't work. :-(
> 
> Actually, this one really shouldn't work -- // introduces network
> stanza, which in some browsers defaults to localhost when empty. So, you
> were running actually file://localhost/home/blah/blah/file.pdf, which is
> not what you want (or is it?).
> 
>Matej
> 
> 

-- 
-- In Xanadu did Kubla Khan... --

*
Xinwei Yu

Caltech 217-50, Pasadena, CA91125
1-626-5359618(H), 1-626-3954545(O)
Email: [EMAIL PROTECTED]
http://www.acm.caltech.edu/~xinweiyu
*




Re: hyperlink question

2003-08-09 Thread Matej Cepl
On 2003-08-09, 04:42 GMT, Xinwei Yu wrote:
> 
> file://file.pdf in URL and filename in NAME
> 
> 2. when I click the link, it doesn't work, said the file couldn't
> be found. So the pdf hyperlink won't work with relative path?
> that would be very disappointing!

file://file.pdf is not a relative URL and file:///home/blabla/file.pdf
is an absolute one. Read for example help for Lynx (Help/Supported
URLs/file) for more explanation.

Matej

-- 
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488



Re: hyperlink question

2003-08-09 Thread Matej Cepl
On 2003-08-09, 04:42 GMT, Xinwei Yu wrote:
> Hi, all,

Sorry, for answering too fast without investigating the issue somehow.

> I try to put in my pdf notes (generated by LyX) some hyperlinks
> to other pdf papers in the same directory. So I just use the
> hyperref package and then use the Insert->URL function. I put, e.g.,
> 
> file://file.pdf in URL and filename in NAME

Well, this is certainly not the correct URL -- see RFC1808. The correct
one is file:file.pdf (// introduces the network part).

> 1. both "filename" and "file://file.pdf" is shown in my pdf file,
> and only the latter is made a hyperlink. Checking the "HTML type"
> box didn't change anything.

Actually, I have fought with this ``feature'' for years and I have no
answer to that. However, the one to blame (and report bug to -- which
I never did, shame on me!) is the author/maintainer of hyperref LaTeX
package.

> 2. when I click the link, it doesn't work, said the file couldn't
> be found. So the pdf hyperlink won't work with relative path?
> that would be very disappointing!

This is IMHO bug in Mozilla (which you use as urlCommand in your
~/.xpdfrc, don't you?). See above for the reference to RFC. For example,
lynx behaves with file:newfile1.pdf correctly.

> 3. I changed the path to the absolute one,i.e., 
> file:///home/blah/blah/file.pdf,
> the link worked on that particular machine. But when I access
> my file remotely ( invoking acroread via ssh ), the link again
> wouldn't work. :-(

Actually, this one really shouldn't work -- // introduces network
stanza, which in some browsers defaults to localhost when empty. So, you
were running actually file://localhost/home/blah/blah/file.pdf, which is
not what you want (or is it?).

   Matej

-- 
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488



Re: \addcontentsline in komascript-article with hyperref does not create proper hyperlink.

2002-04-30 Thread Herbert Voss

Ananda Murthy R S wrote:

> I am using komascript-article class with hyperref package in LyX Version 
> 1.1.6fix4 on Linux Mandrake 8.1. In my article, I have added contents line 
> given below:
> 
> \addcontentsline{toc}{subsection}{Sub-section Title}
> 
> This command is adding the line 'Sub-section Title' to the table of contents. 
> But, when I create the pdf file from LyX using Export --> PDF, there is no 
> hyperlink from this contents line to the correct location. Instead, it is 
> always linking to the last numbered section. 
> 
> If I use addsec, this problem is not seen.
> 
> This problem is not seen if I use article class instead of komascript-article 
> class.


send a small lyx example file which shows the behaviour

Herbert

-- 
http://www.lyx.org/help/




\addcontentsline in komascript-article with hyperref does not create proper hyperlink.

2002-04-30 Thread Ananda Murthy R S

Hi:

I am using komascript-article class with hyperref package in LyX Version 
1.1.6fix4 on Linux Mandrake 8.1. In my article, I have added contents line 
given below:

\addcontentsline{toc}{subsection}{Sub-section Title}

This command is adding the line 'Sub-section Title' to the table of contents. 
But, when I create the pdf file from LyX using Export --> PDF, there is no 
hyperlink from this contents line to the correct location. Instead, it is 
always linking to the last numbered section. 

If I use addsec, this problem is not seen.

This problem is not seen if I use article class instead of komascript-article 
class.

Can anybody explain how to solve this problem.

Thanks in advance.

Sincerely,

Ananda Murthy R S



  1   2   >