The wordlike package. Contents. 1 Why wordlike.sty? Jürgen Fenn May 5, 2008

Similar documents
Manuscript A Package Emulating Typewriter Typesetting

The IEEEconf class. Scott Pakin January 15, 2004

L A TEX Workshop. An Introduction to L A TEX. Rakesh Jana Research Scholar Department of Mathematics IIT Guwhati

The dashundergaps package

beginlatex /12/ : page #199

Introduzione a LaTex. Fabrizio Messina

Useful L A TEX Commands

L A TEX. COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. LaTeX. Development. Why?

Basic L A TEX. what is LaTeX?

CS 189 L A TEX and Linux: Document Layout and Organization

The abstract package

ISAE2013 Conference Proceedings Format Sample File

Meeting One. Aaron Ecay. February 2, 2011

Formatting with LaTeX

INCOSE IS2018 Paper Manuscript Instructions

European Computer Modern font with oldstyle digits

Using L A T E X for scientific writing

dropping a L A TEX Macro for Dropping the First Character(s) of a Paragraph

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

FILE TYPES & SIZES BOOK COVER

Latex Manually Set Font Size For Tables

The multicap L A TEX2ε package

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

The AES Convention Paper LATEX class Adam H. Lewenberg (October 18, 2008) 1

The handout document class

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015

Beyond Captioning: Tips and Tricks for Accessible Course Design

Word Tips and Tricks - by Rick Black

elpres electronic presentations with (PDF)L A TEX

The threadcol package

Visual Debugging in TEX Part 1: The Story

The stdclsdv package

semproc LaTeX class for seminar proceedings

The mcaption package

Typesetting Tips. Put your best type forward.

Lecture 1: Short summary of LaTeX basics

beginlatex /12/ : page #69

The xtemplate package Prototype document functions

Word Processing. Delete text: Allows you to erase characters, words, lines, or pages as easily as you can cross them out on paper.

TABLE OF CONTENTS PART I: BASIC MICROSOFT WORD TOOLS... 1 PAGE BREAKS... 1 SECTION BREAKS... 3 STYLES... 6 TABLE OF CONTENTS... 8

Introduction to LaTex 2ε. Based on The Not So Short Introduction to LaTeX 2ε by Tobias Oetiker et al., April 2001

scrartcl KOMA-script articles with komadown

The makebase L A TEX 2ε package

Word-to-L A TEX specification

The hanging package. Contents. 1 Introduction

The pagenote package

Numbered Items in Microsoft Word

The catechis Package, v2.1

LAT E X week 2: Basics for Writing a Document

Instructions for the Preparation of an Electronic Camera-Ready Manuscript in MS Word

L A TEX Course at ICT School

mnotes annotate documents with margin comments

Typesetting Papers for Proceedings of the ACM

Standard Poster Talks for MPS with L A TEX

Basic Microsoft Word

How to Use L A T E X Properly for Papers and Theses

altfont: Using alternative fonts

Using L A TEX. A numbered list is just that a collection of items sorted and labeled by number.

HOW TO TYPESET THESES. Using iiscthesis style for LAT E X

WORD XP/2002 USER GUIDE. Task- Formatting a Document in Word 2002

Dissertation Template Instructions

Peter Wilson Catholic University of America Now at 1999/02/13

Designing Posters TIDI Development Research Week

Absolute L A TEX Beginner

Basic Text Formatting with L A T E X

The wiki2beamer example. October 19, 2012

A Beginner s guide to L A TEX for CSCA67/MATA67. Kohilan Mohanarajan

CS 189 L A TEX and Linux: Displaying Text

Introduction to L A TEX

Document Formatting with Word

In your lifetime you ve seen billions of letters and millions of words, yet you might never have consciously noticed the typefaces you read.

A L A TEX-Package for IEEE PES Transactions

Guidelines for Authors (full paper submissions)

Introduction to Linguistics: Interdisciplinary aspects: Text Technology

BBN ANG 183 Typography Text colour: vertical and horizontal spacing

A L A T E X quick start

uiophd a LATEX document class for PhD theses

Typesetting lettrines in L A TEX 2ε documents Daniel Flipo

RICH ENTERPRISES. Small Business Series. Getting Started with HTML

Introduction to CS Page layout and graphics. Jacek Wiślicki, Laurent Babout,

Document and Web design has five goals:

The sectsty package v2.0.2

عمادة البحث العلمي جامعة الملك سعود

Style template and guidelines for SPIE Proceedings

Chapter 7 Typography, Style Sheets, and Color. Mrs. Johnson

What is T E X? T E X and L A T E X Document preparation tools. Setting and casting type. What Knuth was setting. Setting and casting type

How to Write a Thesis

The count1to package

A very long title with deep neural networks variants applied on five databases and solving many problems occuring there.

Creating Charts and Graphs to Visualize and Trend Your Business Metrics. Richard Iriye, RPh Kathy Costello, RN Kelly Britt, RPh

Introduction to Scientific Typesetting Lesson 14: Fonts

In this course we will go over the basic functions of Microsoft Word, more advanced functions are omitted from this class and walkthrough.

MODULE CM 2004 / STAGE 2 / SEMESTER 2 / SESSION Module title Design Principles and Context

Creating Charts and Graphs to Visualize and Trend Your Business Metrics

My Mathematical Thesis

For Teachers Engineering Design in Oregon Science Classrooms Page 1 of 6. EDOSC Style Guide. Subtitle

The tocdata package v /12/02

Acadia Psychology Thesis Template Guide

The begingreek package

Learning LaTeX: The Basics

Transcription:

The wordlike package Jürgen Fenn May 5, 2008 Contents 1 Why wordlike.sty?... 1 2 Usage... 2 3 Implementation... 3 3.1 Option msword... 3 3.1.1 Word-like section numbering and table of contents... 3 3.1.2 Word-like section headings... 3 3.2 Word-like document title... 5 3.3 Option basic... 5 3.4 Executing options... 6 3.5 Loading required packages... 6 3.6 Special commands... 6 3.7 Word-like typesetting... 7 4 To do... 7 Abstract This manual describes wordlike.sty for simulating word processor layout using LaTeX 2ε. 1 Why wordlike.sty? We know that there is typesetting beyond Microsoft Word. After all, this is why we use LaTeX... On the other hand, the default settings used in LaTeX do not fit every purpose. Authors of scientific papers or those using LaTeX in office often have to cope with minute descriptions of how their papers should look like. In most cases, the layout required goes back to what we know from word processors. Often, users ask how to change the look of headings or how to reduce page margins. Some think we should ignore the typographic ignorants that want us to produce such uglylooking layout. But after all, we produce our papers for the market and those we write for have This document corresponds to wordlike v1.2b, dated 2006/03/30. An earlier version was published as redmond.sty on the author s private website. It was renamed to wordlike.sty so as to make it easier for users to find the package. Suggestions should be sent to the author at juergen.fenn@gmx.de. I would like to thank Peter Flynn and Scott Pakin for contributing example code and for making suggestions for more features in comp.text.tex. Thanks also to Martin Wilhelm Leidig for pointing out an embarrasing syntax error in version 1.1 I last uploaded to CTAN. I apologise for any inconvenience this may have caused. Martin also found out that the DOS endings in my original dtx file led to strange behaviour in OzTeX which interprets CR as well as LF as a newline character each and inserts these in the sty file when processing the dtx. This is why I changed line feed characters to Unix as from v1.2b. 1

certain expectations about what they should look like. Oftentimes users have no say at all in what their thesis supervisors etc. want their documents to look like. This is why I think we ought to take these demands seriously. Word processors have had that big an impact on our definition of typography and on most people s habits of viewing that it cannot be denied most addressees think papers should be produced with a word processor (and that those papers that are not produced this way should look as if they were produced using a word processor... ). After all, only a minority of people out there even know about LaTeX... So wordlike.sty pays tribute to the ubiquitous typewriter-like layout of the word processor. You may not be surprised, then, that the package is named after the program Microsoft Word. 1 Let wordlike be a synonym for this way of typesetting, although we should be aware that other word processors such as StarOffice/OpenOffice, or Word Perfect may produce a layout different from and maybe better than MS Word s layout. wordlike.sty is for those LaTeX users who do not want to use a word processor in order to produce a paper that looks as though it were made in a word processor. I leave it to you whether you deem this a progressive development, as it allows you to use your favourite typesetting software even for these tasks, or whether you rather find it a foolish idea, eventually supporting proprietary software. I don t mind as this package is useful at least to me. ;-) I mostly use it for creating handouts as for this purpose I can do without the broad page margins LaTeX comes with by default. Aesthetics, or ease of reading here are no criteria for typesetting as the public I address German students of law and lawyer colleages of mine usually are not at all interested in this. They only very seldomly know about the world beyond Microsoft Office, and, sadly, they usually reject by instinct anything that does not look like what they are used to. 2 Usage Usage is straightforward: Insert \usepackage{wordlike} in the preamble of your document. Usually no more is needed. You might like to know about the option basic, though, which typesets section headings bold and normalsize. wordlike.sty is made for article class or a replacement for this, e. g. scrartcl from the KOMA-Script bundle, or whatever other class you prefer. 2 wordlike.sty does, however, require the following packages: courier geometry helvet mathptmx 1 Cynics may say that the program is called word, but neither sentence nor paragraph nor book or the like which may already be a hint to certain limitations you should be aware of when trying to use it for scientific purposes. 2 I think this will suffice in most cases. If you require an option for book and report classes, please let me know. 2

They are usually installed on a LaTeX system. 3 No attempt is made to set the default font size to 12pt because this is typically done when loading a document class. So, font size is left to the users preferences. If you use article.cls your preamble should start like this: \documentclass[12pt]{article} \usepackage{wordlike} 3 Implementation 3.1 Option msword Default settings are provided by option msword which tries to resemble the usual layout supplied by Microsoft Word. 4 1 \DeclareOption{msword}{ 3.1.1 Word-like section numbering and table of contents We start by redefining the depth of section numbering both in the document and in the table of contents. All five sectioning levels are supported and appear in the table of contents by default. 2 \setcounter{secnumdepth}{5}% 3 \setcounter{tocdepth}{5}% Then, the look of the table of contents is modified. First, the dots that appear between section headings and page numbers in the TOC are re-defined so that they are typeset closer to one another: 4 \renewcommand{\@dotsep}{1} Now, the appearance of TOC entries is slightly modified. 5 \renewcommand\l@section{\@dottedtocline{1}{0em}{1.5em}} 6 \renewcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}} 7 \renewcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}} 8 \renewcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}} 9 \renewcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}} 3.1.2 Word-like section headings Microsoft Word pursues a completely different approach to typesetting section headings than La- TeX does. All headings are typeset using bold sansserif fonts, except for paragraphs and 3 Please note that Walter Schmidt by now has supplied a clone of the Arial font usually used on Windows systems. His package is available from CTAN://fonts/urw/arial. If the package is installed on your system you may replace Helvetica by Arial to achieve still better results. 4 I have to admit, though, that the last version of Word I used was Word 2000 and I don t have MS Word installed on my system for quite a while now because it was of no use to me since my thesis surpassed 20 pages... So, I would be grateful if you please could let me know if you are missing a feature. 3

subparagraphs. 10 \renewcommand{\section}{\@startsection% 11 {section}% 12 {0}% 13 {0em}% 14 {-\baselineskip}% 15 {0.5\baselineskip}% 16 {\bfseries\large\sffamily}}% 17 \renewcommand{\subsection}{\@startsection% 18 {subsection}% 19 {1}% 20 {0em}% 21 {-\baselineskip}% 22 {0.5\baselineskip}% 23 {\bfseries\large\itshape\sffamily}}% 24 \renewcommand{\subsubsection}{\@startsection% 25 {subsubsection}% 26 {2}% 27 {0em}% 28 {-\baselineskip}% 29 {0.5\baselineskip}% 30 {\bfseries\large\itshape\sffamily}}% 31 \renewcommand{\paragraph}{\@startsection% 32 {paragraph}% 33 {3}% 34 {0em}% 35 {-\baselineskip}% 36 {0.5\baselineskip}% 37 {\normalfont\normalsize\itshape\sffamily}}% 38 \renewcommand{\subparagraph}{\@startsection% 39 {subparagraph}% 40 {4}% 41 {0.7cm}% 42 {-\baselineskip}% 43 {0.5\baselineskip}% 44 {\normalfont\normalsize\itshape\sffamily}}% If you prefer to put a full stop after the section numbering I recommend you use documentclass scrartcl from KOMA-Script with option pointednumbers: \documentclass[12pt,a4paper,pointednumbers]{scrartcl} In this case you should also load package footmisc.sty if you use footnotes because KOMA- Script re-defines footnotes in a way no user of a word processor would ever do. 4

3.2 Word-like document title Document title, author and date are re-defined, too. 5 The paper s title is typeset flushleft, bold and LARGE. The author s name and the date of publishing are placed beneath the title in large serif fonts. Note that the title starts right at the top of the page, no skip above. 45 \def\@maketitle{\newpage 46 \begin{flushleft}% 47 \let\footnote\thanks% 48 {\LARGE\bfseries\sffamily \@title \par\medskip}% 49 {\large\@author\par}% 50 {\large\@date}% 51 \end{flushleft}\par\vskip\baselineskip% 52 \thispagestyle{empty}}% This ends default option msword. 53 } 3.3 Option basic Option basic supplies a more reserved look for section headings. If you call wordlike.sty with the option basic all headings are typeset normalsize. This also holds true for the heading introducing the table of contents. 54 \DeclareOption{basic}{% 55 \renewcommand{\section}{\@startsection% 56 {section}% 57 {0}% 58 {0em}% 59 {-\baselineskip}% 60 {0.5\baselineskip}% 61 {\bfseries\normalsize}}% 62 \renewcommand{\subsection}{\@startsection% 63 {subsection}% 64 {1}% 65 {0em}% 66 {-\baselineskip}% 67 {0.5\baselineskip}% 68 {\bfseries\normalsize}}% 69 \renewcommand{\subsubsection}{\@startsection% 70 {subsubsection}% 71 {2}% 72 {0em}% 73 {-\baselineskip}% 74 {0.5\baselineskip}% 5 Part of this code goes back to a contribution by Peter Flynn who implemented winword.sty a while ago (cf. ibid., TUGboat 20 (1999), p. 344.) 5

75 {\normalfont\normalsize\itshape}}% 76 \renewcommand{\paragraph}{\@startsection% 77 {paragraph}% 78 {3}% 79 {0em}% 80 {-\baselineskip}% 81 {0.5\baselineskip}% 82 {\normalfont\small\itshape}}% 83 \renewcommand{\subparagraph}{\@startsection% 84 {subparagraph}% 85 {4}% 86 {0.7cm}% 87 {-\baselineskip}% 88 {0.5\baselineskip}% 89 {\normalfont\small\itshape}}% 90 } 3.4 Executing options By default option msword is executed. 91 \ExecuteOptions{msword} If wordlike.sty is called with the option basic the layout is slightly changed accordingly here: 92 \ProcessOptions\relax 3.5 Loading required packages Then, external packages wordlike.sty relies upon are loaded. First, page margins are set to narrow: 2,5 cm all around, including the footer: 93 \RequirePackage[includefoot,margin=2.5cm]{geometry}% Now, the typical fonts you would expect from a word processor are loaded: Times, Helvetica and Courier: 94 \RequirePackage{mathptmx}% 95 \RequirePackage[scaled=.90]{helvet}% 96 \RequirePackage{courier}% For font size cf. page 3. 3.6 Special commands There are some commands in LaTeX documents word processors don t know about (and never will... ). 6 They have to be replaced by ordinary text: 97 \renewcommand\tex{tex} 6 Thanks, again (cf. footnote 5) to Peter Flynn for this point. 6

98 \renewcommand\latex{latex} 3.7 Word-like typesetting Sloppy typesetting is provided by using 99 \sloppy% for the whole document. No attempt is made, however, to simulate Microsoft Word s line-breaking mechanism, or even to modify word spacing beyond going sloppy. Some suggestions on this have been given by LaTeX developers, although not in full earnest: ;-) Donald Arseneau, comp.text.tex, MID: <23MAR199815480027@erich.triumf.ca>, and <yfiaed12u33.fsf@triumf.ca>. Mark Trettin, de.comp.text.tex, MID: <m3el63q67v.fsf@beldin.mt743742.dialup.rwth-aachen.de>. Markus Kohm, de.comp.text.tex, MID: <1913912.19c0S0PJ5s@ID-107054.user.dfncis.de>. Users are encouraged to play with the code provided there. 4 To do Of course, suggestions are welcome. Please feel free to write me an email (see cover page for details). Change History v1.0 General: Initial version.............. 1 v1.0.1 General: Documentation slightly fixed.... 1 v1.1 General: New option basic.......... 5 New option msword.............. 3 New title, author, date commands...... 5 v1.2 General: Recommendation for footmisc v1.2a v1.2b added........................ 4 General: Broken v1.1 on CTAN replaced by fixed local version 1.2a............. 1 Hint to the arial package added........ 3 General: Line endings changed to UNIX for the benefit of Macintosh users......... 1 Spelling of scrartcl fixed........... 2 7

Index Numbers written in italic refer to the page where the corresponding entry is described; numbers underlined refer to the code line of the definition; numbers in roman refer to the code lines where the entry is used. Symbols \@author........... 49 \@date............. 50 \@dotsep............ 4 \@dottedtocline.... 5 9 \@maketitle........ 45 \@startsection............. 10, 17, 24, 31, 38, 55, 62, 69, 76, 83 \@title............ 48 B \baselineskip. 14, 15, 21, 22, 28, 29, 35, 36, 42, 43, 51, 59, 60, 66, 67, 73, 74, 80, 81, 87, 88 \begin............. 46 \bfseries............. 16, 23, 30, 48, 61, 68 D \DeclareOption.... 1, 54 \def............... 45 E \end............... 51 \ExecuteOptions.... 91 F \footnote.......... 47 I \itshape............ 23, 30, 37, 44, 75, 82, 89 L \l@paragraph........ 8 \l@section.......... 5 \l@subparagraph..... 9 \l@subsection....... 6 \l@subsubsection.... 7 \LARGE........... 16, 48 \Large........... 23, 30 \large........... 49, 50 \LaTeX............. 98 \let............... 47 M \medskip........... 48 N \newpage........... 45 \normalfont.............. 37, 44, 75, 82, 89 \normalsize.............. 37, 44, 61, 68, 75 P \par.......... 48, 49, 51 \paragraph....... 31, 76 \ProcessOptions.... 92 R \relax............. 92 \renewcommand....... 4 10, 17, 24, 31, 38, 55, 62, 69, 76, 83, 97, 98 \RequirePackage.. 93 96 S \section......... 10, 55 \setcounter........ 2, 3 \sffamily............. 16, 23, 30, 37, 44, 48 \sloppy............ 99 \small........... 82, 89 \subparagraph.... 38, 83 \subsection...... 17, 62 \subsubsection... 24, 69 T \TeX............... 97 \thanks............ 47 \thispagestyle..... 52 V \vskip............. 51 8