How to edit custom layouts in Blurb *

Similar documents
Measurement and Geometry: Area and Volume of Geometric Figures and Objects *

How To Remove Header From First Two Pages In Word 2007

How to Make a Book Interior File

Double Stub Matching *

MathML Editor: The Basics *

Java OOP: Java Documentation

Using Flex 3 in a Flex 4 World *

DOING MORE WITH WORD: MICROSOFT OFFICE 2010

Authoring OpenStax Documents in Apache OpenOffice Writer *

Java4340r: Review. R.G. (Dick) Baldwin. 1 Table of Contents. 2 Preface

DOING MORE WITH WORD: MICROSOFT OFFICE 2013

Statistics: Normal Distribution, Sampling, Function Fitting & Regression Analysis (Grade 12) *

Chapter 2 The Design Window

Creating a Template in WordPerfect

Graph Quadratic Functions Using Properties *

INTRODUCTION (1) Recognize HTML code (2) Understand the minimum requirements inside a HTML page (3) Know what the viewer sees and the system uses

HTMLDOC On Line Help

Compare quadrilaterals for similarities and differences *

DOING MORE WITH WORD: MICROSOFT OFFICE 2007

Copyright. For more information, please read the Disclosures and Disclaimers section at the end of this ebook. First PDF Edition, February 2013

Excel Level Three. You can also go the Format, Column, Width menu to enter the new width of the column.

GAP CLOSING. Integers. Intermediate / Senior Facilitator s Guide

Introduction. Headers and Footers. Word 2010 Working with Headers and Footers. To Insert a Header or Footer: Page 1

Open Book Format.docx. Headers and Footers. Microsoft Word Part 3 Office 2016

The Inverse Discrete Wavelet Transform *

ITEM ToolKit Technical Support Notes

Budget Exercise for Intermediate Excel

EXCEL BASICS: MICROSOFT OFFICE 2007

1.2 - Introduction to the IAR Workbench IDE *

Introduction to Microsoft Office 2007

GAP CLOSING. Grade 9. Facilitator s Guide

Chapter 1 Operations With Numbers

Good Practice Guide No 8. An Introduction to Spreadsheets for Finance

CSCI 111 First Midterm Exam Spring Solutions 09.05am 09.55am, Wednesday, March 14, 2018

Get JAVA. I will just tell you what I did (on January 10, 2017). I went to:

User Manual. Administrator s guide for mass managing VirtueMart products. using. VM Mass Update 1.0

WebQuest. Question-File Quick-Start Instructions

Hs01006: Language Features, Arithmetic Operators *

Unit D Lecture Notes Word 2003

c122jan2714.notebook January 27, 2014

How to make a "hello world" program in Java with Eclipse *

HTMLnotesS15.notebook. January 25, 2015

Veco User Guides. Grids, Views, and Grid Reports

EXCEL BASICS: MICROSOFT OFFICE 2010

The Default Application Container - Flex 3 and Flex 4 *

Using MS Publisher. Launch MS Publisher: Start > All Programs > Microsoft Office > Publisher. Setting up Document Size and Orientation

MarkMagic 6 Bar Code Labels, RFID Tags, and Electronic Forms Software for IBM System i

15-122: Principles of Imperative Computation, Spring 2016

Functions and Graphs: Graphs of Inverse Functions (Grade 12) *

CMPSCI 145 Spring 2014 Lab #1. Professor William T. Verts

Copyright Notice - Please read and understand the following: This software is licensed to one single user only

Introduction to Spreadsheets

Title and Modify Page Properties

SIMPLE TEXT LAYOUT FOR COREL DRAW. When you start Corel Draw, you will see the following welcome screen.

Welcome Back! Without further delay, let s get started! First Things First. If you haven t done it already, download Turbo Lister from ebay.

Survey Design, Distribution & Analysis Software. professional quest. Whitepaper Extracting Data into Microsoft Excel

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

Reference Services Division Presents. Microsoft Word 2

ORB Education Quality Teaching Resources

Table of Laplace Transforms

Optimization in One Variable Using Solver

ADOBE DREAMWEAVER CS4 BASICS

Time series in html Canvas

Pro Users Guide Pro Desktop Signmaking Software

How To Get Your Word Document. Ready For Your Editor

The Law of Reflection *

Some (semi-)advanced tips for LibreOffice

A TUTORIAL ON WORD. Katie Gregory

205CDE: Developing the Modern Web. Assignment 1: Designing a Website. Scenario: D Bookshop

Excel Level 1

Investigate and compare 2-dimensional shapes *

Lab 2. CSE 3, Summer 2010 In this lab you will learn about file structures and advanced features of Microsoft Word.

CSS worksheet. JMC 105 Drake University

Grade Point Scales Standard Honors AP/College A B C D F Sample file

Creating a new project To start a new project, select New from the File menu. The Select Insert dialog box will appear.

End User Enterprise File Services Guide

Easy Match QC Lesson 9. Setting Up a Print Job

Access Forms Masterclass 5 Create Dynamic Titles for Your Forms

Black & White Graphic Novel Guide

Chapter 15 Printing Reports

The American University in Cairo. Academic Computing Services. Excel prepared by. Maha Amer

OpenStax-CNX module: m Quadratic Functions. OpenStax OpenStax Precalculus. Abstract

Section 7.3 from Basic Mathematics Review by Oka Kurniawan was developed by OpenStax College, licensed by Rice University, and is available on the

Estimating Reports: Easy Tips to Create a Great Report. Presented by Matt Carr

Microsoft Access 2016 Intro to Forms and Reports

Strategic Series-7001 Introduction to Custom Screens Version 9.0

Videos...31 Training Videos...32 Webinar recording: Monday 5th December

Custom Fields in QuickBooks

MAKING TABLES WITH WORD BASIC INSTRUCTIONS. Setting the Page Orientation. Inserting the Basic Table. Daily Schedule

THE EXCEL ENVIRONMENT... 1 EDITING...

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010

Excel Tips and FAQs - MS 2010

CONVERSION GUIDE Financial Statement Files from CSA to Accounting CS

Excel 2016: Part 1. Updated January 2017 Copy cost: $1.50

EDITING AN EXISTING REPORT

Title and Modify Page Properties

15-122: Principles of Imperative Computation

Excel 2016 Basics for Windows

COGO-50 v1.81 User Manual By Jacob Wall

LawTrust Manual Updated May 19, 2018

Transcription:

OpenStax-CNX module: m35053 1 How to edit custom layouts in Blurb * David Waldo This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 3.0 Abstract Blurb BookSmart software allows you to create custom books and make your own layouts. However, there are limitations to the layout editor. This module shows you how to dig into the XML code that BookSmart uses and x some of these limitations. 1 How to edit custom layouts in Blurb This module is written for Blurb BookSmart Version 2.5.1.30022. This version allows editing of Layouts but still has some limitations on its use. This module describes how to edit the XML le that contains custom Layouts for BookSmart. I take no responsibility if BookSmart quits working or if you lose data. I am supplying this information so that you will know what I did. Use this information at your own risk. 1.1 Reasons for editing the custom layouts Blurb has added the ability to edit custom layouts in its BookSmart software. However, there are a couple of things that it does not allow you to do that would make editing layouts much nicer. The rst drawback to the layout editor is it does not allow you to make a layout that works for both right and left pages. The second drawback to the layout editor is it does not allow you to have text boxes that ow text from one box to the next when you paste into them. As an example, after making a new Small Square blank book in BookSmart I will add several pages and then look at one of the built in Text Layouts. Here are two pages in the book, a left and a right page. Notice that the margin in the center is bigger than the ones on the left and right even though the same page layout is used. Also, the text ows from one text box to the other when text is pasted into the left box. * Version 1.2: Aug 9, 2010 7:47 pm -0500 http://creativecommons.org/licenses/by/3.0/

OpenStax-CNX module: m35053 2 Figure 1 Now let's make our own layout using the same built in layout. First I will make a blank right page using the Text Layout above.

OpenStax-CNX module: m35053 3 Figure 2 Now select Edit Layout. The layout editor opens with this view:

OpenStax-CNX module: m35053 4 Figure 3 Notice that the text boxes are locked. The reason is the text can ow from one to the other. If we want to edit them they must rst be unlocked.

OpenStax-CNX module: m35053 5 Figure 4 Now hit the Apply & Save to My Layouts button and the layout shows up in the new custom layouts. I will name it CustomLayout0. Now after making the same two pages with the new layout I see this.

OpenStax-CNX module: m35053 6 Figure 5 Notice that the text does not ow to the second text box and the boxes do not change position for the right page. Looking at the middle of the book you can see that the text box for the right page will be too close to the gutter. The header and footer move but the other boxes do not. These "problems" can be xed by editing the document where the custom layouts are stored. 1.2 XML Editor To edit the custom layouts you can either use a simple text editor or an XML editor. I use XML Notepad 2007 1 from Microsoft. Pick an editor that works good for you. You should be familiar with XML or other markup languages like HTML. 1.3 Custom Layouts in BookSmart When you make a custom layout in BookSmart the layout information gets added to a le with the name CustomLayouts.layout. This can be found in the library location directory in the subdirectory BookSmartData\CustomLayouts. You may have to search around for this le on your computer. Opening this le in XML Notepad shows the following. 1 http://www.microsoft.com/downloads/details.aspx?familyid=72d6aa49-787d-4118-ba5f-4f30fe913628&displaylang=en

OpenStax-CNX module: m35053 7 Figure 6 The dierent TrimSize items are the dierent book sizes. Since I made a book of the type Small Square above I will look for the layout that I made. It has the TrimSize:Square. Figure 7 Notice that there are some pagelayouts in this TrimSize. Opening up the pagelayouts shows the layout I made above.

OpenStax-CNX module: m35053 8 Figure 8 Let's look at the items in this layout. Notice the title is CustomLayout0. This is the name I gave the layout when I created it. The dimensions of the page (and other dimensions) are given in the units of points. So when you edit in the layout editor, the units of points should be used. Since the page is square, notice that the width and height of the page are the same, 495 points. BookSmart measures from the upper left corner so that the point (x,y)=(0,0) is the upper left corner of the page. Also, the true on the hasheader and hasfooter mean this page will have a header and a footer. The id is probably generated randomly, but each pagelayout needs to have a unique id. Now let's look at the containers.

OpenStax-CNX module: m35053 9 Figure 9 Remember that the page layout had three containers, two text containers and one image container. Notice that the left most text container starts at the x position 45 points. The other two containers both line up at x=237 points. 1.4 Editing Custom Layouts When you start BookSmart it loads the custom layouts for the CustomLayouts.layout le. So, if you edit the le at the same time BookSmart is open you can overwrite your edits. To make and edit custom layouts you should 1. Open BookSmart and the book you want to edit 2. Make a Left side page and select a built in layout 3. Edit the layout and save the layout in your custom layouts 4. Quit BookSmart 5. Open XML Notepad and the le CustomLayouts.layout 6. Edit the layouts and save the le 7. Quit XML Notepad 8. Open BookSmart and the book you want to edit 9. If you edited your layout correctly the changes should be in the custom layouts

OpenStax-CNX module: m35053 10 1.5 Correcting layout for Left/Right pages The two "problems" I will describe how to correct are how to make a layout work for both the left and right pages and how to get the text boxes to ow the text from one to another. In order for this to work correctly you must make a layout for the LEFT PAGE rst. Make everything line up the way you want the left page to look like and save the layout. Let's change the layout we made earlier so that it works for both the left and right pages. I made the layout using the left page. If you examine the built in layouts in BookSmart for the layout we are using you will see that for a right page the left container has x=78 points. The left container for the left page has the same container at x=45 points. Subtracting these gives 78-45=33 points. This is the amount that the containers are translated for the right page relative to the left. This will be dierent for the dierent book sizes so you will need to gure out this number for each book size. Each container in the custom layout has a property called xtranslate. This tells BookSmart how far to move containers for the right side page. This number can be negative if you wish. For this example we will just make them 33 points. In XML Notepad the edits look like this. Figure 10

OpenStax-CNX module: m35053 11 I changed the xtranslate values to 33. If I save these changes, open the book in BookSmart and apply these changes to the pages, they will look like the following. Figure 11 In order to apply the changes to the pages I have to click on another layout and then on the layout we edited. If you just click on the same layout BookSmart thinks it doesn't have to apply the layout since it is already applied to the page. See now that the containers for the right page have now moved over 33 points so that the center looks right. 1.6 Correcting Text Flow Now let's x the automatic text owing from one container to the next. There are two text containers in our layout and we will make the text ow from the left container to the right container. The text containers have two properties that we will need to change, owsorder and contenttype. I must say at this point that I do not know exactly what the values are for these properties. However, I do know how to set them to get them to work for me. Here is what I do. The owsorder property is a numbering of the containers to determine the order of the text ow. They are set to -1 now so we will number them starting from 0. The left box will be 0 and the right box will be 1. Right now the contenttype property for the text boxes is 0. I have noticed that the contenttype property for the text boxes that ow can be 1. So, I change the value of the contenttype to 1. I am not sure what this means but it seems to work. Here is what the changes look like.

OpenStax-CNX module: m35053 12 Figure 12 After applying these changes to the pages the book looks like this.

OpenStax-CNX module: m35053 13 Figure 13 1.7 Mirror Pages When making pages that are mirror images there are a few things to keep in mind. First, text still needs to ow from left to right so be careful not to make it exactly mirror image. Let's make a mirror image of a page with only one text box and one image. Suppose we want to make a version of this built in layout but with the image on the outside rather than the inside.

OpenStax-CNX module: m35053 14 Figure 14 Edit the layout for the LEFT page and swap the location of the boxes. Save the layout.

OpenStax-CNX module: m35053 15 Figure 15 Open the layout in XML Notepad. Here is the layout.

OpenStax-CNX module: m35053 16 Figure 16 When you edit the layout, look at the size of the header since we will want to line things up with the header/footer. The x location and size for the header is width=372, x=45 points. When it is moved by 33 points for the right page it will have x=78. The right side of the header will be at 78+372=450. Lets gure out the xtranslate for the ImageContainer. The width is 244. After it is translated we want the right side to be at 450. Therefore we want the left side to be at 450-244=206. Right now it is at 45. So we need it to translate 206-45=161 points. Set the xtranslate to 161. Lets gure out the xtranslate for the TextContainer. The left side is at x=301. After it is translated we want the left side to be at 78. So we need it to translate 78-301=-223 points. Set the xtranslate to -223.

OpenStax-CNX module: m35053 17 Figure 17 After applying the changes to the pages we have the layout we want.

OpenStax-CNX module: m35053 18 Figure 18