I've created a text box in the header and have worked out how to insert the file name but I'd like to have the chapter name at the top of each page after the first page in the chapter. I've tried using the running header variable but it only inserts the chapter name at the top of the first page and then gives me jumbled letters in the header on subsequent pages - see below. I've looked through the help web pages but am no further forward. It isn't a big book I'm working on so I would be able to type in the chapter names in each header if there's no other way to do this but I'm struggling to work out how to just insert text on each page header or do I have to create a master page for each chapter?

Text variables will use either the First Style on the page or the Last Style on the page.

For your Chapter Heading you need to have a paragraph style for this piece of text.

Create the text variable using Running Header - where you can define this is in the Type>Text Variables>Define and edit the Running Header paragraph style version, in here select the Chapter Heading style.

Now it will only pick up on this style and display it at the top.

You need to apply the Chapter Heading paragraph style to each Chapter Heading.

Ok, thanks. I've found a video tutorial so have created a Paragraph style for the first chapter. So I now need to create a paragraph style for each chapter, is that right? But then to apply each of those to each chapter will I need a new master page?