Re: Hyperref: Defining links
ben wrote: > > "Stephan E. Schlierf" a écrit : > > > Hi, > > > > I'm just fizzling through the problem to create a hyperlink in a LyX > > dcoument. What I was doing is the following: > > LyX 1.1.6fix1 on a SuSE 7.0 > > document class: SGML (LinuxDoc article) > > LaTeX preamble: \usepackage{hyperref} > > Defined the link target by: \hypertarget{internal name}{displayed name} > > (in LaTeX mode) > > Defined the link by: \hyperlink{internal name}{displayed name} (in LaTeX > > mode) > > Then I exported the text by File -> Export -> HTML but the link doesn't > > appear. > > What's going wrong ? > > > > Sorry for wasting bandwidth if this question is kind of a faq :-) > > > > Any hints are welcome! > > Using latex commands in a SGML document has no sense: the preamble must be > written is SGML that is the actual output format. Besides, to make links > you only need to insert a lyx label and a lyx reference (see the attached > file). Hello Ben, thank you very much for your help - it worked! Remove the \usepacke{...hyperref}-line from the LaTeX preamble and just put a "Name" in the Insert -> References dialog and everything works pretty will. Thanks a lot to all who answered my question. Happy LyXing! Stephan
Re: Hyperref: Defining links
On Thu, Feb 15, 2001 at 11:51:17AM +0100, Stephan E. Schlierf wrote: > I'm just fizzling through the problem to create a hyperlink in a LyX > dcoument. What I was doing is the following: > LyX 1.1.6fix1 on a SuSE 7.0 > document class: SGML (LinuxDoc article) > LaTeX preamble: \usepackage{hyperref} > Defined the link target by: \hypertarget{internal name}{displayed name} > (in LaTeX mode) > Defined the link by: \hyperlink{internal name}{displayed name} (in LaTeX > mode) > Then I exported the text by File -> Export -> HTML but the link doesn't > appear. > What's going wrong ? As far as I know, the preamble for LinuxDoc document should be a LinuxDoc preamble, and it cannot contain latex command. Also you can't put latex command in the document. If you want a hyperref in a LinuxDoc document, just use the insert->url.
[Fwd: Hyperref: Defining links]
"Stephan E. Schlierf" a écrit : > Hi, > > I'm just fizzling through the problem to create a hyperlink in a LyX > dcoument. What I was doing is the following: > LyX 1.1.6fix1 on a SuSE 7.0 > document class: SGML (LinuxDoc article) > LaTeX preamble: \usepackage{hyperref} > Defined the link target by: \hypertarget{internal name}{displayed name} > (in LaTeX mode) > Defined the link by: \hyperlink{internal name}{displayed name} (in LaTeX > mode) > Then I exported the text by File -> Export -> HTML but the link doesn't > appear. > What's going wrong ? > > Sorry for wasting bandwidth if this question is kind of a faq :-) > > Any hints are welcome! Using latex commands in a SGML document has no sense: the preamble must be written is SGML that is the actual output format. Besides, to make links you only need to insert a lyx label and a lyx reference (see the attached file). BG #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass linuxdoc \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard You want refer to here: \begin_inset LatexCommand \label{here} \end_inset . Now you can go to \begin_inset LatexCommand \ref[my link]{here} \end_inset \the_end
Re: Hyperref: Defining links
"Stephan E. Schlierf" wrote: > I changed the preamble as you supposed but the result is stille the > same; that means, in my text the link appears as > \hyperlink{internal name}{displayed name} (just the way I typed it > though I formatted it as LaTeX) i never workes with class LinuxDoc article. maybe that there is the problem. try to change the document-class and have a look what's going on. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Hyperref: Defining links
Herbert Voss wrote: > > "Stephan E. Schlierf" wrote: > > > > Hi, > > > > I'm just fizzling through the problem to create a hyperlink in a LyX > > dcoument. What I was doing is the following: > > LyX 1.1.6fix1 on a SuSE 7.0 > > document class: SGML (LinuxDoc article) > > LaTeX preamble: \usepackage{hyperref} > > Defined the link target by: \hypertarget{internal name}{displayed name} > > (in LaTeX mode) > > Defined the link by: \hyperlink{internal name}{displayed name} (in LaTeX > > mode) > > Then I exported the text by File -> Export -> HTML but the link doesn't > > appear. > > i always use > > \usepackage[urlcolor=blue,linktocpage,colorlinks=true]{hyperref} > > Herbert > > -- > [EMAIL PROTECTED] > http://perce.de/lyx/ Thank you, Herbert, for your quick answer. I changed the preamble as you supposed but the result is stille the same; that means, in my text the link appears as \hyperlink{internal name}{displayed name} (just the way I typed it though I formatted it as LaTeX) Curious ... Stephan -- Stephan E. Schlierf M.A. - chief concept & design developer - speed2web GmbH Germany FON: ++49 921 99 00 86 12 FAX: ++49 921 99 00 86 70 http://www.speed2web.de
Re: Hyperref: Defining links
"Stephan E. Schlierf" wrote: > > Hi, > > I'm just fizzling through the problem to create a hyperlink in a LyX > dcoument. What I was doing is the following: > LyX 1.1.6fix1 on a SuSE 7.0 > document class: SGML (LinuxDoc article) > LaTeX preamble: \usepackage{hyperref} > Defined the link target by: \hypertarget{internal name}{displayed name} > (in LaTeX mode) > Defined the link by: \hyperlink{internal name}{displayed name} (in LaTeX > mode) > Then I exported the text by File -> Export -> HTML but the link doesn't > appear. i always use \usepackage[urlcolor=blue,linktocpage,colorlinks=true]{hyperref} Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Hyperref: Defining links
Hi, I'm just fizzling through the problem to create a hyperlink in a LyX dcoument. What I was doing is the following: LyX 1.1.6fix1 on a SuSE 7.0 document class: SGML (LinuxDoc article) LaTeX preamble: \usepackage{hyperref} Defined the link target by: \hypertarget{internal name}{displayed name} (in LaTeX mode) Defined the link by: \hyperlink{internal name}{displayed name} (in LaTeX mode) Then I exported the text by File -> Export -> HTML but the link doesn't appear. What's going wrong ? Sorry for wasting bandwidth if this question is kind of a faq :-) Any hints are welcome! TIA Stephan -- Stephan E. Schlierf M.A. - chief concept & design developer - speed2web GmbH Germany FON: ++49 921 99 00 86 12 FAX: ++49 921 99 00 86 70 http://www.speed2web.de