A Twine Cheat Sheet (a start, at least)



Similar documents
Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

ITNP43: HTML Lecture 4

Using an external style sheet with Dreamweaver (CS6)

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move

Instructions for Formatting APA Style Papers in Microsoft Word 2010

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

MS Word 2007 practical notes

Chapter 2 Review Questions and Answers

The McGill Knowledge Base. Last Updated: August 19, 2014

HTML, CSS, XML, and XSL

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

Using Style Sheets for Consistency

BCCC Library. 2. Spacing-. Click the Home tab and then click the little arrow in the Paragraph group.

So we're set? Have your text-editor ready. Be sure you use NotePad, NOT Word or even WordPad. Great, let's get going.

CHAPTER 10. When you complete this chapter, you will be able to:

Contents. Downloading the Data Files Centering Page Elements... 6

Microsoft PowerPoint 2010 Handout

KOMPOZER Web Design Software

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Styles, Tables of Contents, and Tables of Authorities in Microsoft Word 2010

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

Formatting Text in Microsoft Word

Excel 2007 A Beginners Guide

HTML TIPS FOR DESIGNING

Exercise 4 - Practice Creating Text Documents Using WordPad

Web Design and Databases WD: Class 7: HTML and CSS Part 3

Windows 95. 2a. Place the pointer on Programs. Move the pointer horizontally to the right into the next window.

Basic Excel Handbook

Creating trouble-free numbering in Microsoft Word

Microsoft Office 2010 Publisher

Excel 2003 A Beginners Guide

How to create pop-up menus

Using Adobe Dreamweaver CS4 (10.0)

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

Excel Formatting: Best Practices in Financial Models

Google Docs Basics Website:

Microsoft Excel 2013 Tutorial

Microsoft Word 2010 Basics

WORDPAD TUTORIAL WINDOWS 7

HIT THE GROUND RUNNING MS WORD INTRODUCTION

BLACKBOARD 9.1: Text Editor

Website Development Komodo Editor and HTML Intro

Interactive Data Visualization for the Web Scott Murray

Microsoft PowerPoint Tutorial

Microsoft Word 2013 Tutorial

Excel Level Two. Introduction. Contents. Exploring Formulas. Entering Formulas

Word Processing programs and their uses

Using and creating Crosstabs in Crystal Reports Juri Urbainczyk

Excel 2007: Basics Learning Guide

An Attribute is a special word used inside tag to specify additional information to tag such as color, alignment etc.

LAB MANUAL CS (22): Web Technology

Microsoft Excel 2010 Tutorial

Mura CMS. (Content Management System) Content Manager Guide

New Perspectives on Creating Web Pages with HTML. Considerations for Text and Graphical Tables. A Graphical Table. Using Fixed-Width Fonts

Impress Guide Chapter 3 Adding and Formatting Text

Lab: Create Your Own Homepage! This exercise uses MS Expression Web as a Web Page creation tool. If you like you

Word 2007: Basics Learning Guide

Word Processing. with. OpenOffice Writer

How to Create an HTML Page

PA Payroll Exercise for Intermediate Excel

Website Planning Checklist

Creating A Webpage Using HTML & CSS

Responsive Web Design for Teachers. Exercise: Building a Responsive Page with the Fluid Grid Layout Feature

Basic Website Maintenance Tutorial*

Module One: Getting Started Opening Outlook Setting Up Outlook for the First Time Understanding the Interface...

Creating Web Pages with Dreamweaver CS 6 and CSS

Microsoft Word Tips and Tricks

The Center for Teaching, Learning, & Technology

Dreamweaver. Introduction to Editing Web Pages

Excel 2007 Basic knowledge

Mass . General Use

KEZBER CONTENT MANAGEMENT SYSTEM MANUAL

Basic Microsoft Excel 2007

Guide To Creating Academic Posters Using Microsoft PowerPoint 2010

Building a Horizontal Menu in Dreamweaver CS3 Using Spry R. Berdan

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

ITP 101 Project 3 - Dreamweaver

Using Microsoft Word. Working With Objects

Word 2010: The Basics Table of Contents THE WORD 2010 WINDOW... 2 SET UP A DOCUMENT... 3 INTRODUCING BACKSTAGE... 3 CREATE A NEW DOCUMENT...

SAPScript. A Standard Text is a like our normal documents. In Standard Text, you can create standard documents like letters, articles etc

Drupal Training Guide

UHR Training Services Student Manual

PowerPoint 2007 Basics Website:

{color:blue; font-size: 12px;}

Quick Guide to the Cascade Server Content Management System (CMS)

ECDL. European Computer Driving Licence. Word Processing Software BCS ITQ Level 2. Syllabus Version 5.0

Microsoft Excel Understanding the Basics

How to Edit Your Website

WordPerfect for Windows shortcut keys for the Windows and DOS keyboards

How to code, test, and validate a web page

Windows, Menus, and Universal Document Shortcuts

Microsoft Word 2010 Tutorial

Advanced Drupal Features and Techniques

Transcription:

Story Formats There are three basic story formats: Harlowe Snowman SugarCube A Twine Cheat Sheet (a start, at least) Unfortunately, not all of the formatting syntax below work with each of these formats. We have tried to point out which they do work with, but beware! Of the three Harlowe seems the most robusts, followed by SugarCube. I am not sure what to say about Snowman (cool name; frustrating). FORMATTING HEADER SIZES (NOTE: This works pretty well in Harlowe and Snowman; the results are interesting but not quite right in SugarCube.) Instead of HTML tags <H1> through <h6> Use # at the beginning of a line. The resizing will be in play until the next line break. Thus #help = help ### = help ##### = help 1

EMPHASIS (NOTE: This works in Harlowe and SugarCube, but not in Snowman.) BOLD. Instead of HTML tag <b> use ' 'Bold text' ' NOTE: This is two single quotation marks, not a double quote. ITALICS. Instead of HTML tag <i> use //Italic text// SUPERSCRIPT. Instead of HTML tag <sup> use ^^Superscript^^ DELETED TEXT. Instead of HTML tag <del> use ~~Deleted Text~~ HORIZONTAL RULE (NOTE: This works in all three Story Formats.) Instead of the HTML tag <hr>, use three or more hyphens in a row to invoke a horizontal rule ALIGNMENT RULE (NOTE: This works in Harlowe, but not Snowman or SugarCube.) To achieve the results below place these codes ABOVE the line to be affected. All following lines will be impacted until another code is used. ==> right-aligned =><= centered <==> justified <== left-aligned (undoes the above) ===><= margins 3/4 left, 1/4 right =><===== margins 1/6 left, 5/6 right, etc. 2

MISCELLANEOUS WHAT IF YOU WANT TO USE A SQUARE BRACKET OR OTHER TWINE CHARACTERS IN YOUR TEXT? (NOTE: This works in Harlowe, but not Snowman or SugarCube.) USING CHARACTERS IN YOUR PASSAGES THAT ARE PART OF THE TWINE SYNTAX If you wish to include in your passage prose any characters that already have syntactic meaning, simply place them between a pair of ` marks. NOTE: This is the tilde mark, to the left of the number 1 key on the keyboard. I want to include `[[double square brackets]]` in my story, so I use tilde ` marks. LINKING PASSAGES CREATING A LINK FROM ONE PASSAGE TO ANOTHER The simplest way is to include the name of the target passage in two square brackets. Thus [[one]] will take you to the passage named one. NOTE: Passage titles are case sensitive. CREATING A LINK THAT DIFFERS FROM THE TITLE OF THE PASSAGE YOU ARE LINKING TO Imagine creating a series of passages before you link them together. You have chosen arbitrary names for the passages: one, two, three, four. When it comes time to create a link or links from one passage to another, you don t want to use [[one]] if that won t fit your story. Instead, consider the following syntax: [[Go to the cellar->one]] 3

HOOKS (NOTE: HOOKS apparently work in Harlowe, but not Snowman or SugarCube.) A hook is a means of indicating that a specific span of passage prose is special in some way. It essentially consists of text between single [ and ] marks. Prose inside a hook can be modified, styled, controlled and analyzed in a variety of ways using macros. There are two kinds of hooks: named hooks, which have a tag attached to them that contains their name, and anonymous hooks, which appear directly after a macro instance or a variable. At the moment, we will work with anonymous hooks: (font: "Courier New")[This is an anonymous hook.] (font: "Skia")[This text is in Skia.] SIMPLE TEXT STYLES APPLIED LOCALLY WITH HOOKS (NOTE: These styles apparently work in Harlowe, but not Snowman or SugarCube.) (text-style:) This applies a predefined text style (given as a string) to the enclosed hook. See the style codes below. Place the styles into the text-style code as follows: (text-style: "emboss") [This text will now be embossed. Try it!] Text styles include the following: "bold", "italic", "underline", "strike", "superscript", "subscript", "blink", "mark", "delete" "outline" "smear" "shadow" "mirror" "emboss" "upside-down" "condense" "fade-in-out" "expand" "rumble" "blur" "shudder" "blurrier", 4

CHANGING FONT STYLE LOCALLY W/O HOOKS (NOTE: This seems to work in Harlowe and SugarCube, but not Snowman.) <span style='font-family: times'> affected words</span> Some basic font choices include arial, times, san-serif, serif. CHANGING TEXT COLOR LOCALLY W/O HOOKS (NOTE: This seems to work in Harlowe and SugarCube, but not Snowman.) <span style="color: red;"> affected words</span> CHANGING LINK COLORS (NOTE: This seems to work in Harlowe and Snowman, but not SugarCube.) [[<span style="color: green;">affected link</span>->the Link Passage]] For colors use common names or color codes (see link at bottom of this sheet). USING IMAGES As long as you drop your images into the same folder as your Twine 2.04 software, using images is straightforward. Simply use this following HTML syntax and your image should appear. <img src="hermadrome-small.jpg"> 5

USING CSS in Twine Cascading Style Sheets are a powerful way to adjust the formatting of web pages. The same goes for Twine. When you have your editing page open, note the nav bar at the lower left. Click on the drop down arrow and select Edit Story Stylesheet. Use any of the following CSS codes. There are many others, but this is a start: CSS CODE FOR CHANGING BACKGROUND COLOR (NOTE: This works in all Story Formats.) body { background-color: blue; CSS CODE FOR CHANGING FONT FAMILY (NOTE: This apparently works in Harlowe, but not Snowman or SugarCube.) tw-passage { font-family: Verdana, Arial, sans-serif; SAVING YOUR Twine STORY Go to the main page (using the home button lower left) and Ctrl + Click on the archive button. Save to your preferred location. 6

MORE MISCELLANEOUS POPUPS (NOTE: This apparently works in SugarCube, but not Harlowe or Snowman.) Using SugarCube, drop the macro below (in green) into the Story Javascript section. Then employ the following syntax in a passage: <<autopopup Passage Name >> The popup will appear when the link is selected. Don t forget to place some other text in your passage. /* Usage: <<autopopup "Some Pasage">> */ macros.add("autopopup", { version : { major : 1, minor : 0, revision : 0, handler : function () { if (this.args.length === 0) { return this.error("no passage name specified"); var dialog = UISystem.setup("popup"); new Wikifier(dialog, tale.get(this.args[0]).processtext().trim()); UISystem.open(); ); BASED ON A MORE IN-DEPTH CHEAT SHEET THAT CAN BE FOUND HERE: http://twine2.neocities.org/ A LINK TO COLOR NAMES AND CODES: http://www.w3schools.com/cssref/css_colornames.asp 7