Deutsch English Français Italiano |
<utu1r0$1n4l7$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: db <dieterhansbritz@gmail.com> Newsgroups: comp.text.tex Subject: Re: Link in LaTeX Date: Tue, 26 Mar 2024 08:43:12 -0000 (UTC) Organization: A noiseless patient Spider Lines: 36 Message-ID: <utu1r0$1n4l7$1@dont-email.me> References: <uts6ej$15r03$2@dont-email.me> <utsct3$17k1p$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 26 Mar 2024 09:43:13 +0100 (CET) Injection-Info: dont-email.me; posting-host="4c396dee6119ffb13e667f147f514084"; logging-data="1807015"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vtxb6TthpM+LY48XLy/hnxHuZOBIL3D4=" User-Agent: Pan/0.149 (Bellevue; 4c157ba) Cancel-Lock: sha1:fBbjUsQKuuXauoOydHgYVb5lkqA= Bytes: 2111 On Mon, 25 Mar 2024 17:39:47 +0000, Nicola Talbot wrote: > On 25/03/2024 15:49, db wrote: >> I want to present a link to a pdf file in a pdf. In the LaTeX body I >> have http://www.dieterbritz.dk/bla.pdf but I want this to be a link. I >> tried href, adding the package hyperref, and that hides the link text, >> and puts a red frame around each line in the Contents section for some >> reason. > > A red frame is the default behaviour and each line in the table of > contents is a hyperlink when hyperref is loaded. > > >> I also tried framing the link text with \ url{...} but that didn't >> work. >> >> So, how do I display the link text and make it a link that can be >> clicked on to get to the pdf? >> >> > Try > > \documentclass{article} > \usepackage{hyperref} > \hypersetup{colorlinks}% colour the link text % or > \hypersetup{hidelinks}% links the same colour as surrounding text > > \begin{document} > \tableofcontents \section{Sample} > \href{http://www.dieterbritz.dk/bla.pdf}{Link to PDF} \end{document} > > Regards Nicola Talbot Great, thanks. Now, how to make the text "Link to PDF" look like a link, e.g. colour it blue?