Re: Simple beginner questions
Thanks! I'll do as you suggest: play around with your tipes then look at the hyperref's doc if I'm not satisfied. Jé Michael Wojcik a écrit : Jerome Tuncer wrote: - I inserted the "usepackage{hypreref}" in the preamble for my LyX links to actually link to web pages (as suggested on the LyX wiki) but the problem is that EVERY cross-reference, footnote and even TOC entries become links, which makes the whole document look kinda ugly. Is there a way to avoid that behavior and make only \href{http://...}{Weebsite link} actual links? You don't mention what driver you're using (that is, what kind of document you're producing, and what program is producing it), and hyperref does have some driver-dependent behavior. However, the following works for me with pdflatex: - You can tell hyperref to leave existing LaTeX commands alone and only create its own macros, such as \url and \href. Do this by setting the "implicit=false" option when you include hyperref in the preamble: \usepackage[implicit=false]{hyperref} If you do this, and create your links using LyX's Insert->URL... command, then you'll get what you asked for: only those URLs will be converted to links. - Sometimes it's more useful to let hyperref turn everything into links, but without changing the text's appearance. That lets readers navigate by links without the visual distractions. For that, you can use these hyperref options: colorlinks=true,linkcolor=black,citecolor=black,urlcolor=black (I got this from someone else's message to the list - thanks, whoever that was.) You may want to play around with these a bit to get exactly the effect you want. - Your LaTeX installation ought to include the hyperref documentation, which describes all this handy stuff. In my MiTeX installation, it's in texmf/doc/latex/hyperref/ - start with manual.html. (If you're not sure where to find it, search your disk for hyperref.) LaTeX typically comes with tons of package documentation and other useful tidbits, but it's a bit disorganized.
Re: Simple beginner questions
Jerome Tuncer wrote: - I inserted the "usepackage{hypreref}" in the preamble for my LyX links to actually link to web pages (as suggested on the LyX wiki) but the problem is that EVERY cross-reference, footnote and even TOC entries become links, which makes the whole document look kinda ugly. Is there a way to avoid that behavior and make only \href{http://...}{Weebsite link} actual links? You don't mention what driver you're using (that is, what kind of document you're producing, and what program is producing it), and hyperref does have some driver-dependent behavior. However, the following works for me with pdflatex: - You can tell hyperref to leave existing LaTeX commands alone and only create its own macros, such as \url and \href. Do this by setting the "implicit=false" option when you include hyperref in the preamble: \usepackage[implicit=false]{hyperref} If you do this, and create your links using LyX's Insert->URL... command, then you'll get what you asked for: only those URLs will be converted to links. - Sometimes it's more useful to let hyperref turn everything into links, but without changing the text's appearance. That lets readers navigate by links without the visual distractions. For that, you can use these hyperref options: colorlinks=true,linkcolor=black,citecolor=black,urlcolor=black (I got this from someone else's message to the list - thanks, whoever that was.) You may want to play around with these a bit to get exactly the effect you want. - Your LaTeX installation ought to include the hyperref documentation, which describes all this handy stuff. In my MiTeX installation, it's in texmf/doc/latex/hyperref/ - start with manual.html. (If you're not sure where to find it, search your disk for hyperref.) LaTeX typically comes with tons of package documentation and other useful tidbits, but it's a bit disorganized. -- Michael Wojcik
Re: Simple beginner questions
Jerome Tuncer wrote: > - I inserted the "usepackage{hypreref}" in the preamble for my LyX links > to actually link to web pages (as suggested on the LyX wiki) but the > problem is that EVERY cross-reference, footnote and even TOC entries > become links, which makes the whole document look kinda ugly. Is there a > way to avoid that behavior and make only \href{http://...}{Weebsite > link} actual links? Have a look at the hyperref documentations, those things are configurable. An alternative way is to use the tex2pdf script, which aims to ease such configuration for the user: http://tex2pdf.berlios.de/lyx-howto.htm HTH, Jürgen
Re: Simple beginner questions
Thanks Juergen, Everything works fine now! Any idea on the hyperref/links topic? Jé Juergen Spitzmueller a écrit : Jerome Tuncer wrote: - Put "abstraction" in "Document"->"Class"->"Class options" (I don't appear to have "Extra options" in my pref dialogue...) The place is correct, but it's spelled "abstracton". - Put "\usepackage[english]{babel}" in LaTeX preamble - Put "\selectlanguage{english}" and "\selectlanguage{french}" before each of the abstracts. You don't need that. Just mark the abstract and select the appropriate language in the "Text Style" dialog. Jürgen Previewing the dvi doesn't show abstract titles yet... Any idea on what's wrong here?
Re: Simple beginner questions
Jerome Tuncer wrote: > - Put "abstraction" in "Document"->"Class"->"Class options" (I don't > appear to have "Extra options" in my pref dialogue...) The place is correct, but it's spelled "abstracton". > - Put "\usepackage[english]{babel}" in LaTeX preamble > > - Put "\selectlanguage{english}" and "\selectlanguage{french}" before > each of the abstracts. You don't need that. Just mark the abstract and select the appropriate language in the "Text Style" dialog. Jürgen > Previewing the dvi doesn't show abstract titles yet... > > Any idea on what's wrong here?
Re: Simple beginner questions
Thanks a lot for your quick answer Juergen! What I did is: - Put "abstraction" in "Document"->"Class"->"Class options" (I don't appear to have "Extra options" in my pref dialogue...) - Put "\usepackage[english]{babel}" in LaTeX preamble - Put "\selectlanguage{english}" and "\selectlanguage{french}" before each of the abstracts. Previewing the dvi doesn't show abstract titles yet... Any idea on what's wrong here? Jé Juergen Spitzmueller a écrit : Jerome Tuncer wrote: - I found a way to include 2 abstracts by inserting a dummy LaTeX comment (%) in Standard style between the two, is there a smarter way to do that? The reason I want 2 abstracts is because I have to write one in French and one in English. Your solution looks o.k. to me. - Is there a way to make the abstract show a title? I'd like mine to display "Abstract" and "Résumé" before the contained text. You have to use the class option "abstracton" (in Document->Class Options->Extra Options"). The correct heading should appear in the output if you mark the language of the abstracts accordingly. HTH, Jürgen
Re: Simple beginner questions
Jerome Tuncer wrote: > - I found a way to include 2 abstracts by inserting a dummy LaTeX > comment (%) in Standard style between the two, is there a smarter way to > do that? The reason I want 2 abstracts is because I have to write one in > French and one in English. Your solution looks o.k. to me. > - Is there a way to make the abstract show a title? I'd like mine to > display "Abstract" and "Résumé" before the contained text. You have to use the class option "abstracton" (in Document->Class Options->Extra Options"). The correct heading should appear in the output if you mark the language of the abstracts accordingly. HTH, Jürgen
Simple beginner questions
Hi everyone, I'm using the class "report (koma script)" for a paper. I manage to get good results with it but a few questions remain: - I found a way to include 2 abstracts by inserting a dummy LaTeX comment (%) in Standard style between the two, is there a smarter way to do that? The reason I want 2 abstracts is because I have to write one in French and one in English. - Is there a way to make the abstract show a title? I'd like mine to display "Abstract" and "Résumé" before the contained text. - I inserted the "usepackage{hypreref}" in the preamble for my LyX links to actually link to web pages (as suggested on the LyX wiki) but the problem is that EVERY cross-reference, footnote and even TOC entries become links, which makes the whole document look kinda ugly. Is there a way to avoid that behavior and make only \href{http://...}{Weebsite link} actual links? Sorry if this is already answered somewhere else, does someone know? Thanks, Jé