In the previous post I showed you how easy it is to create a PDF from yWriter5.
I also left you with a cliffhanger: those doubled-up chapter headings. And you're probably wondering how you change the layout when yWriter doesn't seem to have any formatting options. (E.g. paper size, gutters, etc.)
I don't want to throw lots of code at you, so I'll cover the basics in this article and move on to more detail in future.
For now you need to know one thing: where yWriter is concerned you adjust your layout by altering a special text file called a LaTeX header. (You can also override layout on the fly, e.g. in the middle of a scene or chapter, but we'll get to that later.)
In yWriter5, click the Project menu, then Project Settings. This is where you enter the title of your novel, the author's name, and various other novel-specific values like deadline dates. Click the LaTeX tab and you'll see the following:
The Header File textbox is blank, which means yWriter will use the default. This is a file called 'LaTeXDefaultHeader.txt' which yWriter creates in the project folder every time you start a new project.
What you need to do is make a copy of the default header file, then tell yWriter to use the new file instead. Here's how: First, click the Open Project Folder button. Then rename LaTeXDefaultHeader. (I suggest something like LaTeXNameOfProject.txt)
When you've renamed it, click the [...] button and select the new file.
Now click the Edit button to open the header in Notepad. Woah! Nobody told me there'd be codes like these!
That shows my modified Latex file which you can download here. To update yours with mine, open the downloaded file, copy the contents, and paste them into your renamed LaTeX file. Then save your file.
Save the project settings, press Ctrl+Alt+X, open the exported Tex file and press Ctrl+Shift+F5 to generate and view the PDF. It's similar to the one you saw in the previous article, but this time the chapter headings should be correct.
Here's the layout I used for Hal Junior. It's ideal for shorter books with chapter titles. (Instead of 'Chapter 1', 'Chapter 2', etc, I used proper chapter titles like 'The Secret Signal')
In the next article I'll explain how to tweak the codes in the header, and where to find more information on the LaTeX memoir class.
Simon Haynes is the author of the Hal Spacejock Series and Hal Junior: The Secret Signal. By day he's a computer programmer and author, and by night he's the same only sleepier.
Simon Haynes is the author of the Hal Spacejock and Hal Junior series (Amazon / Smashwords / other formats)
Showing posts with label LaTeX. Show all posts
Showing posts with label LaTeX. Show all posts
Tuesday, October 25, 2011
Saturday, October 22, 2011
New blog series: publishing in print (PIP) via LSI/Createspace
Over the past month or so I've blogged about editing, polishing, proofing and publicity for the self-pubbed (or indie-pubbed) writer. One thing I haven't really covered in detail is ... getting your work into print. As in generating the PDF you have to upload to Createspace and/or Lightning Source so they can generate printed copies of your work.
I realise the world is hurtling towards ebooks, but there are still segments of the market where paperbacks rule. One of those is middle grade fiction, and since that's the genre for Hal Junior, I had to generate a hard copy as well as an ebook.
There's no substitute for getting your interior layout designed by a pro, but this article is written for those of you focusing primarily on ebooks. If you're considering putting out a paper version as a kind of sideline, it's hard to justify the expense of interior design against potential sales. And remember, if the book takes off you can always hire a pro and get it redone. (Or wait for a publisher to swoop on the print rights and let THEM pay for it ...)
Warning: I'm going to be talking about yWriter in this series of posts. It's freeware, so you don't have to pay anything, but it is Windows-only. (You can also run it on Linux and on the Mac, using the Mono runtime library, but it's not bulletproof.)
The second part of the puzzle is a collection of software called the ProTeXt TeX distribution (also for Windows. Sorry, no idea about Mac and Linux.) This is a 750mb download (yikes!) which contains a whole bunch of programs and addons which you don't actually have to do anything with. Just download and install the thing for now.
If you've just installed yWriter5 and don't have a project to load, follow these instructions to import a work in progress.
Once you have a project loaded, press Ctrl+Alt+X on the yWriter main screen. yWriter will instantly generate a TEX file of your project. Double-click this TEX file to open it in TeXnic Centre, and press Ctrl+Shift+F5 in that software to generate and view the PDF.
The result is a very basic book block, not ready for uploading yet, but I thought it would be good to show the process before we delve into the fine detail. We're not going to use TeXnic Centre for much - all the hard work will be done using yWriter5.
Simon Haynes is the author of the Hal Spacejock Series and Hal Junior: The Secret Signal. By day he's a computer programmer and author, and by night he's the same only sleepier.
Simon Haynes is the author of the Hal Spacejock and Hal Junior series (Amazon / Smashwords / other formats)
I realise the world is hurtling towards ebooks, but there are still segments of the market where paperbacks rule. One of those is middle grade fiction, and since that's the genre for Hal Junior, I had to generate a hard copy as well as an ebook.
There's no substitute for getting your interior layout designed by a pro, but this article is written for those of you focusing primarily on ebooks. If you're considering putting out a paper version as a kind of sideline, it's hard to justify the expense of interior design against potential sales. And remember, if the book takes off you can always hire a pro and get it redone. (Or wait for a publisher to swoop on the print rights and let THEM pay for it ...)
Warning: I'm going to be talking about yWriter in this series of posts. It's freeware, so you don't have to pay anything, but it is Windows-only. (You can also run it on Linux and on the Mac, using the Mono runtime library, but it's not bulletproof.)
The second part of the puzzle is a collection of software called the ProTeXt TeX distribution (also for Windows. Sorry, no idea about Mac and Linux.) This is a 750mb download (yikes!) which contains a whole bunch of programs and addons which you don't actually have to do anything with. Just download and install the thing for now.
If you've just installed yWriter5 and don't have a project to load, follow these instructions to import a work in progress.
Once you have a project loaded, press Ctrl+Alt+X on the yWriter main screen. yWriter will instantly generate a TEX file of your project. Double-click this TEX file to open it in TeXnic Centre, and press Ctrl+Shift+F5 in that software to generate and view the PDF.
The result is a very basic book block, not ready for uploading yet, but I thought it would be good to show the process before we delve into the fine detail. We're not going to use TeXnic Centre for much - all the hard work will be done using yWriter5.
Simon Haynes is the author of the Hal Spacejock Series and Hal Junior: The Secret Signal. By day he's a computer programmer and author, and by night he's the same only sleepier.
Simon Haynes is the author of the Hal Spacejock and Hal Junior series (Amazon / Smashwords / other formats)
Subscribe to:
Posts (Atom)



