Using Pressbooks

How to Link Material

For this chapter there is both a video, with transcript, and written text on how to link material by creating hyperlinks.

Video and Transcript

Transcript of video

In this video we’ll be going through the process of creating hyperlinks. In Pressbooks, hyperlinks are clickable links, usually attached to text, that link to other websites, other chapters in the book, or other sections within same chapter. We’ll be going through all three of these in this video And again, I’ve got my editing view in the left tab here, and my book view in the right tab here, so we can see how the hyperlinks are working in real time. So let’s go into chapter 1 and let’s get started.

Firstly, we’ll start with linking to other websites. So let’s say there’s some text here that says “BCcampus”, and we want the reader to be able to click on this text and be taken to the BCcampus website.

We can highlight this section of text, then click on the hyperlink botton at the top of the toolbar, and then insert a link – and in this case, that’s bccampus.ca. And if you’d ever like your link to open in a new tab, you can click on the gear on the right here to open up link options, and then tick the box that says “open link in a new tab.” And then we will update our link, and now this bit of text should like us to bccampus.ca in a new tab.

So we’ll update our chapter. And then we’ll check our book view to make sure that our link is working. So we’ll refresh the page. And if we click on the link that says BCcampus, it should take us to BCcampus website in a new tab. And we’ve clicked on it and it does indeed take us to the BCcampus website in a new tab and that’s exactly what we wanted.

So you can use pretty much the exact same process for linking to another chapter in the book. So, here in my book view, I’ve got chapter 2 opened and let’s say we want to link to chapter 2 from a bit of text in chapter 1. So what we can do is we can copy chapter 2’s URL from the top here, and we’ll go back to Editing View

And in chapter 1, I’ll create a bit of text here that says go to chapter 2 We’ll highlight this bit of text, click on the hyperlink tool in the toolbar, and paste chapter 2’s URL into ths URL field and then hit enter.

And now this bit of text should link us to chapter 2 when we click on it. So once again we’ll update the chapter, and we’ll go back to book view to check out make sure our link is working, so we’ll go back to chapter 1 and this link that says go to chapter 2 should link us to chapter 2. And when you click on it, it does indeed link us to chapter 2, just like we wanted.

Alright, so the final use of hyperlinks is to link to another section within the very same chapter. So if we go into chapter 1’s editing view and scroll down to the bottom, we’ll see that I have a heading down here called “Sample Heading”. And I would like to be able to link to this heading from a point earlier on in the chapter.

So I’ll click right in front of Sample Heading. And then I’ll click on the anchor button at the bottom of the toolbar. And this will allow me to create an anchor which is a place we can link to from somewhere else. I’ll call this anchor sampleheading, with no spaces and then click “OK”.

And now you can see an anchor image that pops up next to it. And then we’ll scroll back up to the top. And I’ll create another little bit of text.

In this one I’ll write, “Go to Sample Heading. I’ll highlight this bit of text. And then click on the hyperlink tool. And then I’m going to type the pound symbol followed by the anchor name.

So in this case, “sampleheading”, no spaces. Hit enter and then we will update the chapter once more. So this little bit of text which says “Go to Sample Heading” should link us to the sample heading anchor that we created later on in the chapter.

So we are going to check this out in book view once again; I’ll refresh the chapter. And when we click on “Go to Sample Heading”, we get taken to the bottom of the page where the sample header is, that’s exactly what we want.
You can even link to a specific anchor in another chapter.

So let’s say that I want to be able to link not only to chapter 2, but to “Second Paragraph” within chapter 2. What I’m going to do is, once again, copy the URL from chapter 2 and we are going to back into the editing view and we are going to open up chapter 2 in the editing view and create an anchor.

So we will scroll down in the second paragraph, click right in front of it and click on the anchor tool and then we’ll create this anchor and we’ll call this one “secondparagraph”, no spaces. Click “OK” and then update this chapter.

Now that we have an anchor in chapter 2, we are going to go back to chapter 1 and link to that anchor and in chapter 1, I am going to create one final little bit of text here.

I’m going to say “Go to chapter 2 second paragraph” and then we’ll highlight this little bit of text. Click on the hyperlink tool.

We are going to paste chapter 2’s URL and immediately following this URL, we are going to type the pound sign and then the anchor name, “secondparagraph” no spaces. Hit enter. Update the chapter.

And now if we go to book view, and go back to chapter 1, we should have this last little bit of text here that when we click on it, it should link us not only to chapter 2, but to the second paragraph in chapter 2. And when we click on it, it does indeed take us to second paragraph in chapter 2, just like we wanted.

So there you go! You’re now able to create hyperlinks in your text and link them to other websites, other chapters, and anchors within your text.

Written Text

There are several ways that you can create a link between text, images or other resources:

  1. Within a chapter
  2. Between chapters
  3. From a chapter to a website or source outside of Pressbooks

Let’s begin with the simplest method first: linking text from Pressbooks to an external source.

How to link text from Pressbooks to an external source

Begin by identifying the text you want to link and:

  1. Highlight the text
  2. Click on the “Insert/edit link” (paperclip) icon in the tool barLink external
  3. Add the URL (or web address) for the external source you want to link your text to
  4. Click on the “Add Link” button
  5. Be sure to save (“Update”) this page

    Link external2

Note:

  • Be sure your URL includes ‘http://’ at the beginning of the address. If the address you’re copying into the URL field already includes ‘http://’, make sure the final address does not have two http://’s.

To check your link:

  1. Click on the “Preview Changes” button (in the right-hand side Publish box) or “View Chapter” (in the red tool bar at the top of the page)
  2. Save (“Update”) the page in order to see the changes
    Link external3
  3. Click on the link as it appears in Book view (what readers will see)

Link external4

How to link text within a chapter

To link text to other text or even an image within a chapter, begin by adding an anchor:

  1. Place your cursor by the text or image to which you want other text referred to
  2. Then click on the “anchor” icon (in the third line of the tool bar)Link in chapter
  3. Enter a word to describe the anchor (e.g., ‘proofreading’) in the “Name” field that appears and click the “OK” button

Link in chapter2

This action will produce an anchor.

Link in chapter3

Then, identify the text you want to link:

  1. Highlight the text that you want to link to the anchor
  2. Click on the “Insert/edit link” (paperclip) icon in the tool barLink external
  3. Add # (pound sign) and the word you used to describe your anchor (e.g., ‘#proofreading’)
  4. Click on the “Add Link” button
  5. Be sure to save (“Update”) this page

How to link text between chapters within the same book in Pressbooks

Follow the same steps as for linking text within a chapter, except:

  • The anchor and linked text will be on different chapters. Set these up as you would when linking text within a chapter.
  • You must identify the URL (web address) for the chapter that contains the anchor.
  • You must enter both the URL of the chapter and additional information when the Insert/edit link (paperclip) icon opens.

Identify the URL for the chapter that contains the anchor

  1. Go to the chapter that contains the anchor
  2. Click on the “Preview Changes” button (in the right-hand side Publish box) or “View Chapter” (in the red tool bar at the top of the page)Link external3
  3. Copy the URL for the chapterlink outside chapter
  4. Highlight the text that you want to link to the anchor
  5. Click on the “paperclip” icon in the tool bar
  6. Add the URL for the chapter with the anchor without ‘ https://pressbooks.bccampus.ca’ BUT including the forward slash (/) (e.g., ‘/opentextbook/chapter/linking-material/’).
    1. The reason for not including ‘https://pressbooks.bccampus.ca’ is that if this part of the URL is included, then these links within the digital PDF will redirect to the web page and not the page within the PDF document.
  7. After the forward slash (/) add # (pound sign) and the word you used to describe your anchor (e.g., ‘#proofreading’)
    With the chapter URL and the anchor word, the final URL in this examples would be:
    ‘https://opentextbookca/opentextbook/chapter/linking-material/#proofreading’
  8. Click on the “Add Link” button
  9. Be sure to save (“Update”) this page

Leave a Reply

Your email address will not be published. Required fields are marked *