TUGBOAT
Volume 24, Number 1 / 2003 2003 Annual Meeting Proceedings
2 William Adams / Editorial remarks 3 Karl Berry / Welcome to TUG 2003 5 Conference program and delegates Publishing 10 Pablo Rosell-Gonz´alez / Return to the classics 18 Alun Moon / Digital illumination 23 Abstracts (Daly & Richter, Hagen, Janc, Moore) Bibliographies 25 Oren Patashnik / BIBTEX yesterday, today, and tomorrow 31 Abstracts (Daly, Hufflen) Interfaces 32 Richard Koch / TeXShop in 2003 39 Francesco Costanzo and Gary Gray / Creating labeled stand-alone figures in LATEX using WARMreader and Adobe Illustrator under Mac OS X 50 Kalle Saastamoinen, Jaakko Ketola, Tuukka Kurppa and Liisa Torikka / Enabling Web access to a database of calculus problems using LATEX, PHP and LATEX2HTML 53 Luca Padovani / MathML formatting with TEX rules and TEX fonts 62 Abstracts (Gurari, Quirk, Hagen, Hefferon, Lehmke) Fonts 64 Bogus law Jackowski and Janusz M. Nowacki / Latin Modern: Enhancing Computer Modern with accents, accents, accents 75 Vladimir Volovich / CM-Super: Automatic creation of efficient Type 1 fonts from METAFONT fonts 79 H`an Thˆe´ Th`anh / Making Type 1 fonts for Vietnamese 85 Candy L. K. Yiu and Wai Wong / Chinese character synthesis using METAPOST 94 Abstracts (Adams) Multilingual 95 Giuseppe Bilotta / ε-Ω: A step towards the future with a look at the past Document 97 Alan Hoenig / Makor: Typesetting Hebrew with Omega Processing 105 John Plaice, Paul Swoboda, Yannis Haralambous and Chris Rowley / A multidimensional approach to typesetting 115 Abstracts (Cho) Tools 116 Alun Moon / Literate programming meets UML 120 Giuseppe Bilotta / Math in ConTEXt: Bridging the gap with (AMS-)LATEX 122 Abstracts (Bazargan et al., Esser, Lehmke, Popineau, Wierda) Sociology 124 Gary Gray and Francesco Costanzo / Experiences and lessons learned teaching LATEX to university students 132 Alexandre Gaudeul / The (LA)TEX project: A case study of open source software 146 Andrzej Odyniec / A Polished TEX story 151 Abstracts (Bibby, Ranade) News & 152 Calendar Announcements c3 TUG 2004 conference / Xanthi, Greece, August 30–September 3, 2004 154 TUG 2005 conference / Wuhan, China, August 23–25, 2005 TUG Business 155 Recognition of support from Apple 155 Institutional members Advertisements 156 TEX consulting and production services 153 The LATEX Companion, 2nd edition, by Frank Mittelbach et al. 154 Guide to LATEX, 4th edition, by Helmut Kopka and Patrick W. Daly TEX Users Group Board of Directors TUGboat (ISSN 0896-3207) is published by the Donald Knuth, Grand Wizard of TEX-arcana † ∗ TEX Users Group. Karl Berry, President Kaja Christiansen∗, Vice President Memberships and Subscriptions Sam Rhoads∗, Treasurer 2003 dues for individual members are as follows: Susan DeMeritt∗, Secretary Ordinary members: $75. Barbara Beeton Students/Seniors: $45. Jim Hefferon The discounted rate of $45 is also available to Stephanie Hogue citizens of countries with modest economies, as Ross Moore detailed on our web site. Arthur Ogawa Membership in the TEX Users Group is for the Gerree Pecht calendar year, and includes all issues of TUGboat Cheryl Ponchin for the year in which membership begins or is Michael Sofka renewed, as well as software distributions and other Philip Taylor benefits. Individual membership is open only to Raymond Goucher, Founding Executive Director † named individuals, and carries with it such rights Hermann Zapf, Wizard of Fonts † and responsibilities as voting in TUG elections. For ∗member of executive committee membership information, visit the TUG web site: †honorary http://www.tug.org. TUGboat subscriptions are available to organi- Addresses Electronic Mail zations and others wishing to receive TUGboat in a General correspondence, (Internet) name other than that of an individual. Subscription payments, etc. General correspondence, rates: $85 a year, including air mail delivery. TEX Users Group membership, subscriptions: P. O. Box 2311 [email protected] Institutional Membership Portland, OR 97208-2311 Institutional Membership is a means of showing U.S.A. Submissions to TUGboat, continuing interest in and support for both TEX Delivery services, letters to the Editor: and the TEX Users Group. For further information, parcels, visitors [email protected] TUG contact the office ([email protected]), or see TEX Users Group our web site. 1466 NW Naito Parkway Technical support for Suite 3141 TEX users: TEX is a trademark of the American Mathematical Portland, OR 97209-2820 [email protected] Society. U.S.A. Contact the Board Telephone of Directors: Copyright c 2003 TEX Users Group. Copyright to individual articles within this publication +1 503 223-9994 [email protected] remains with their authors, and may not be reproduced, Fax distributed or translated without their permission. For the editorial and other material not ascribed to +1 503 223-3960 a particular author, permission is granted to make and distribute verbatim copies without royalty, in any medium, provided the copyright notice and this permission notice are World Wide Web preserved. http://www.tug.org/ Permission is also granted to make, copy and distribute http://www.tug.org/TUGboat/ translations of such editorial material into another language, except that the TEX Users Group must approve translations of this permission notice itself. Lacking such approval, the original English permission notice must be included. Problems not resolved? The TUG Board wants to hear from you: Printed in U.S.A. Please email [email protected].
[printing date: July 2004] 2003 Annual Meeting Proceedings TEX Users Group Twenty-fourth Annual Meeting Waikoloa, Hawai‘i July 20–24, 2003
COMMUNICATIONS OF THE TEX USERS GROUP TUGBOAT EDITOR BARBARA BEETON PROCEEDINGS EDITOR WILLIAM ADAMS
VOLUME 24, NUMBER 1 • 2003 PORTLAND • OREGON • U.S.A. Editor’s introduction
William Adams 75 Utley Drive; Camp Hill, PA USA [email protected] http://members.aol.com/willadams
As I write this, it has now been very nearly a year for CTAN”, “Abusing TEX: custom-bib as an exam- since this conference took place. My apologies for ple”, “Programming dynamic LATEX documents”, the lengthy process, but I believe that the final “Creating labeled ‘stand-alone’ figures in LATEX results are worth the wait. This anniversary confer- using WARMreader and Adobe Illustrator under ence provided a unique overview of both the past his- Mac OS X”, “New features in TEXshop”, “Experi- tory of TEX and related systems, and concrete exam- ences and lessons learned teaching LATEX to a group ples of its future usage — these proceedings encapsu- of university students”) or how it’s all made possible late as much as is possible. More importantly, in ad- (“The teTEX distribution”, “ε-Ω: A step towards dition to a “mere” recounting of history (“25 Years the future with a look on the past”, “Automatic of TEX and METAFONT”, “That Pesky Lion...”, creation of efficient Type 1 fonts from METAFONT “The spread of TEX in India”, “TEX Heritage fonts”, “dvipdfmx, an eXtension of dvipdfm”). Panel”) or an analysis of what happened and why I would like to thank everyone who worked to and a consideration of the future, (“The (LA)TEX make this conference a success, especially my fellow project: A case study of open-source software”, presenters, all those who attended, and in particu- “The future of European LUGs”) they capture for lar Wendy McKay who very graciously invited me posterity the unique nature of TEX and its sib- to speak at this conference (and earlier at TUG 2001 lings and descendants (“The return to the classics”, in Delaware), and Hans Hagen and Giuseppe Bilotta “Digital illumination”, “Chinese character synthe- who very generously offered a post-conference work- sis using METAPOST”, “POV-ray: A 3D graphics shop on ConTEXt. tool for TEX”) and the significant impact which My sincere thanks also to the TUGboat pro- it has had (or will continue to have) on academia duction team, including Barbara Beeton, Karl Berry (“BibTEX yesterday, today, and tomorrow”, “Ml- and, most especially, Mimi Burbank for their work BibTEX’s version 1.3”, “Enabling web-access to a to produce these proceedings. Karl and Barbara are database of calculus problems using LATEX, PHP and both far better editors than I and fixed a myriad LaTeX2HTML”, “XemTEX: An integrated platform of errors which had slipped past me, while Mimi for high-quality scientific typesetting” “Scientific managed to create nicely crafted pages in instances publishing with pdfLATEX”) and publishing (“Type- where I’d failed utterly. setting nightmares”, “eXaMpLe”, “ERCOTEX”, Ultimately, that’s what much of the use, pur- “LATEX in real-world math typesetting”) and its pose and intent of TEX is: a nicely-balanced set of capabilities (“Using TEX to manage IT for a Math- pages, mise en page, as Greer Allen describes it, ematics Congress”, “TEXPower — Dynamic presen- most often in books. I find myself unable to avoid tations with LATEX”, “A multidimensional approach mentioning here a few books which were of espe- to typesetting”, “A new system for typesetting He- cial significance to me in my traveling to and from brew with Omega”, “Literate programming meets Hawai‘i: Diver’s Down by Hal Gordon, which was UML”), including significant interactions with long- the first “chapter” book which I read as a youth, standing (or awaited) standards implementations and which instilled in me a desire (now fulfilled) to (“MathML formatting with TEX rules and TEX visit Hawai‘i, Bridge of Birds by Barry Hughart, a fonts”, “From LATEX to MathML and beyond”, “Ac- delightful fantasy which I re-read on the plane ride cents, accents, accents. . . Enhancing CM fonts with over and foisted off on a pair of presenters to make ‘funny characters’ ” “Math in ConTEXt: Bridging room for swag; and Calligraphic Type Design in the the gap with AMS-LATEX”) but to some extent, the Digital Age: An Exhibition in Honor of the Contri- nature of the effort which was necessary to make this butions of Hermann and Gudrun Zapf, which should possible (“A Polished TEX story”), and a guide to tide the reader over until my presentation is pub- how one can make use of all of this (“Web Services lished in the next TUGboat. Aloha!
2 TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting Welcome to TUG 2003
Karl Berry P. O. Box 2311 Portland, OR 97208-2311 USA [email protected] http://freefriends.org/~karl/
Welcome to sunny Hawaii, and greetings from a cold just shrugged, being an old hand at this network and rainy Oregon! Thank you all for attending this stuff, and said, sure, that computer’s in California. conference celebrating TEX’s 25th anniversary. Un- Wow!!, I said. fortunately I can’t be there with you in person, but Well, that was then and this is now. Here we Wendy graciously invited me to give this opening are in the 21st century, and as we all know, the address via audio tape anyway. I am honored to do computing world has changed enormously. TUG has so in my capacity as the next president of the TEX changed and grown, from its beginnings at the de- Users Group. veloper conferences at Stanford in TEX’s early days A silver anniversary conference is a time for to an organization with over two thousand members reflection. I first became aware of TEX in 1983, from about 70 countries. (I’ll be especially sorry to when I was an undergraduate at Dartmouth Col- miss Nelson’s keynote address and the TEX heritage lege. The college had just bought its first Unix sys- session at this conference, to learn more about TEX tem (a hot new VAX 11/730), and the computer and TUG’s history.) science department had just hired a new professor During my term as president, I hope to make out of Carnegie-Mellon, and he brought with him a TUG more accessible and attractive to TEX users ′′ 1/4 magnetic tape of software distributions, notably worldwide, collaborate wherever possible with other including TEX. (The only other software I remem- TEX user groups, and serve its current members bet- ber from that tape was Gandalf, a structured editor ter. We have an excellent infrastructure in place, for Pascal and other languages.) both technical (the tug.org server, now located in Professor Sherman turned me loose, informing Denmark thanks to Kaja Christiansen and Arhus˚ me there was a README file in the top level direc- University) and human (our excellent office man- tory, and I should read it. I happily started try- ager, Robin Laakso), to support any TUG activities. ing to understand how all these crazy .web, .ch, Some steps along this path have been taken Makefile’s, and everything else tangled together. already. First, TUG was finally given tax-exempt I eventually managed to get things installed, more charitable status, after much effort by Robin, Mimi or less, since fortunately BSD 4.2 came with a Pas- Jett, and our lawyer Amy Silliman; this means most cal compiler. We couldn’t actually see any output, contributions to TUG, at least within the US, are though, since the only output device we had was now tax-deductible. Also, we awarded the first set a QMS laser printer. (Bitmapped screens were not of grants from a new TEX Development Fund ear- even a dream, all our work was on Zenith z19 ter- lier this year. We were especially grateful to re- minals. At least we’d graduated from yellow-paper ceive donations to this fund from over 100 indi- teletypes.) So my next project was to adapt an ex- viduals and institutions around the world. We’re isting DVI driver (unfortunately I’ve forgotten which also slowly making progress with getting TUGboat one). A week or two of hacking later, the first page caught up — we’ve published three issues so far this we saw was A.U. Thor’s Short Story. Ah, bliss. year, and are hard at work on more. We continue The next job was to get the latest version of to support the annual software distributions of TEX tex.web. Dartmouth didn’t have a direct ARPAnet Live and CTAN (coming soon for 2003!). And, last connection at the time, but it was on CSnet. Pro- but far from least, supporting conferences such as fessor Sherman typed some magic incantantions to this one remain a priority. get to his account at CMU, and from there he typed In the final analysis, though, TUG is whatever ftp score.stanford.edu, and what the computer its members and the TEX community make of it. So said back was: Welcome to sunny California. I if you have any ideas for other activities to under- turned to him, gaping, and said, what? Really? He take, or changes to propose, please speak up, so we
TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting 3 Karl Berry
can all work together toward our shared goals. on that day in 1983 when I first encountered TEX. TEX itself has also changed and grown dramat- In closing, I’d like to thank Wendy McKay, Pa- ically in 25 years, of course. Despite occasional ru- tricia Monohon, Hans Hagen, Robin Laakso, and all mours of TEX’s demise, as far as I can tell such the other volunteers and organizations who made reports are greatly exaggerated. Its mathematical this conference happen; Malcolm Clark for the great typesetting remains unsurpassed, there are always poster; the Hawaii Tourism Authority; and Addison- new projects underway to make the TEX system ever Wesley, Apple, W.H. Freeman, Integre, Kensington, more powerful and friendly, and most importantly, Math Game House, and RoadTools for their corpo- new users and programmers still appear with some rate contributions. Also, the even larger group of frequency. One of the most interesting recent devel- volunteers who have done so much to support TEX opments is Mac OS X, based on a Unix kernel, which and TUG over the years, including my fellow direc- is bringing TEX to a large new population of com- tors on the TUG board and the board members of all puter users. This conference will dedicate an entire the other TEX user groups around the world. Also day to Mac OS X work. All in all, I personally remain my fellow developers, who keep sticking to the de- hopeful about TEX, and believe its future remains tails to make all the software actually work. And promising. finally, of course, Donald E. Knuth, without whom However, since this is a read-only presenta- the world of typesetting over the last 25 years would tion, I’ll have to ask you to contact me separately have been quite a different place. Happy birthday if you have questions, comments, or suggestions. to TEX! For the next two years, you can email me as Thank you for putting up with this recording, [email protected]. I never would have guessed it and have a great conference.
4 TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting Organizing Committee
William Adams Sue DeMeritt Robin Laakso Wendy McKay Patricia Monohon Anita Schwartz Program Committee
Hans Hagen Stephanie Hogue Jerzy Ludwichowski Wendy McKay Ross Moore Fabrice Popineau Chris Rowley Volker Schaa Sponsors
Addison-Wesley Publishers (UK) Michael Strang Addison-Wesley Publishers (USA) Curt Johnson Apple Computer Inc. Brian Frye Carleton Production Centre (Canada) Christina Thiele Math Game House Hyejung Kang, Seungoh Ryu Kensington Technology Group Roma Majumder Koenig Productions Cici Koenig Road Tools Jim MacEachern W. H. Freeman & Company / Worth Publishers Craig Bleyer Integre: Technical Publishing Company, Inc. Don Deland PC-TEX Lance Carnes TEX Merchandising Project Martin Schr¨oder Y & Y, Inc. Blenda Horn University of Hawai‘i at Hilo Conference Center Judith Fox-Goldstein Hawaii Tourism Authority Hawaii Island Economic Development Board
Grateful acknowledgements
Thanks also to:
The TEX user groups DANTE e.V., GUST, GUTenberg, and NTG for additional speaker support.
Generous individual contributors: Dave Bailey, Greg Black, Daniel Boerner, Harriet Borton, Malcolm Clark, Daniel Haugland, Stephan Lehmke, Oren Patashnik, Pablo Rosell-Gonzalez, Bob Styer, Paul Thompson, Donald Tyson, Robert Utter, Alan Wetmore, Glenn Williams, Camerson Wright.
Malcolm Clark (Menagerie Fleet Captain, Banbury Sailing Club) for the freeware lion drawing.
William Adams, Duane Bibby, Bob Kerstetter and Wendy McKay for putting together the fund-raising TEX Harvest Appeal.
TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting 5 Participants at the 24th Annual TUG Meeting July 20–24, 2003, Outrigger Waikoloa Beach Resort Big Island, Hawai‘i
Adams, William DeMeritt, Sue Jones, Shannon ATLIS, Camp Hill, PA, USA IDA/CCR La Jolla, Federal Reserve Bank of San Diego, CA, USA Richmond, VA, USA Ase, Harumi ARS System Corporation, Doob, Michael Kerstetter, Bob Chiyoda-ku, Tokyo, Japan University of Manitoba, Alt-N Technologies, Winnipeg, Manitoba, Canada Richardson, TX, USA Bailey, Dave Covestic, Inc., Esser, Thomas Koch, Richard Albuquerque, NM, USA FinanzIT GmbH, University of Oregon, Hannover, Germany Eugene, OR, USA Bazargan, Kaveh Focal Image Ltd, Frye, Brian Laakso, Robin Exeter, Devon, UK Apple Computer Inc., USA TEX Users Group, Portland, OR, USA Bhat, Harish Fuchs, David California Institute of Technology, Palo Alto, CA, USA Lehmke, Stephan Pasadena, CA, USA Universit¨at Dortmund, Germany Gaudeul, Alexandre Beebe, Nelson GREMAQ - University of Levine, Jenny University of Utah, Toulouse, France Duke University Press, Salt Lake City, UT, USA Durham, NC, USA Girard, Michel Beeton, Barbara LAMBESC, France Ludwichowski, Jerzy American Mathematical Society, Nicolaus Copernicus University, Providence, RI, USA Gray, Gary Toru´n,Poland Penn State University, Bibby, Duane University Park, PA, USA MacKichan, Barry Lake Havasu City, AZ, USA Poulsbo, WA, USA Gurari, Eitan Bilotta, Giuseppe Ohio State University, McKay, Wendy Catania, CT, Italy Columbus, OH, USA California Institute of Technology, Pasadena, CA, USA Brenton, Steven Hagen, Hans Long Beach, CA, USA Pragma ADE, Monohon, Patricia Hasselt, The Netherlands Ventura, CA, USA Capkun, Jozo Mississauga, Ontario, Canada H`an Thˆe´ Th`anh Montpetit, Andr´e University of Education, Universit´ede Montr´eal, Carnes, Lance Ho Chi Minh City, Vietnam QC, Canada Personal TEX, Inc., Mill Valley, CA, USA Hefferon, Jim Moon, Alun Saint Michael’s College, School of Informatics, Cho, Jin-Hwan Colchester, VT, USA University of Northumbria, UK Korea Institute for Advanced Study, Seoul, Republic of Korea Hoenig, Alan Moore, Ross John Jay College, City Macquarie University, Costanzo, Francesco University of New York, USA Sydney, Australia Penn State University, University Park, PA, USA Jackowski, Boguslaw Padovani, Luca BOP s.c., Gdansk, Poland University of Bologna, Italy Daly, Patrick William Max-Planck-Institut f¨urAeronomie, Janc, Mirko Patashnik, Oren Katlenburg-Lindau, Germany INFORMS, Linthicum, MD, USA San Diego, CA, USA
6 TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting Plaice, John Rosell-Gonz´alez, Pablo Swanson, Steve The University of New South Ciudad Universitaria, Las Cruces, NM, USA Wales, Sydney, NSW, Australia Mexico, Mexico van der Poorten, Alfred J. Ponchin, Cheryl Rowley, Chris ceNTRe for Number Theory Institute for Defense Analyses, Open University, London, UK Research, Killara, NSW, Princeton, NJ, USA Australia Saastamoinen, Kalle Popineau, Fabrice Lappeenranta University of Volovich, Vladimir Sup´elec Campus de Metz, France Technology, Lappeenranta, Voronezh State University, Finland Voronezh, Russia Quirk, James CCS Division, Los Alamos Schaa, Volker RW Wetmore, Alan National Laboratory, NM, USA DANTE e.V., Army Research Laboratory, Darmstadt, Germany Adelphi, MD, USA Ranade, Ajit ABN AMRO Bank, Sestrich, Heidi Wong, Wai Mumbai, India Carnegie Mellon University, Hong Kong Baptist University, Pittsburgh, PA, USA Kowloon, China Rhoads, Sam Honolulu Community College, Smith, Alistair Yiu, Candy L. K. Honolulu, HI, USA Sunrise Setting Ltd, Hong Kong Baptist University, Torquay, Devon, UK Kowloon, China Roberts, Kim HK Typesetting Ltd, Stenerson, Jon Salford, Lancs., UK Las Cruces, NM, USA
TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting 7 TUG 2003 Program the Silver Anniversary — 25 years! The 24th Annual Meeting and Conference of the TEX Users Group July 20–24, 2003
Sunday, July 20, 2003 Official opening and welcome Don Knuth / A message from the Grand Wizard Karl Berry / Welcome from the TUG president Keynote presentations Nelson Beebe / A TEX retrospective Duane Bibby / That pesky lion: 25 years of TEX and Meta drawings Talks Ross Moore / Using TEX to manage IT for a mathematics congress Jim Hefferon / Web services for CTAN Thomas Esser / The teTEX distribution Pablo Rosell-Gonz´alez / Return to the classics Alun Moon / Digital illuminations Hans Hagen / Typesetting nightmares
Monday, July 21, 2003 Talks Oren Patashnik / BibTEX yesterday, today, and tomorrow Patrick Daly / Abusing TEX: custom-bib as an example Jean-Michel Hufflen / MlBibTEX version 1.3 James Quirk / Programming dynamic LATEX documents Stephan Lehmke / TEXPower: Dynamic presentations with LATEX Luca Padovani / MathML formatting with TEX rules and TEX fonts Eitan Gurari / From LATEX to MathML and beyond Hans Hagen / eXaMpLe project Giuseppe Bilotta / ε-Ω: A step towards the future with a look at the past John Plaice / Ω, OpenType and the XML world Peter Flynn / Interfaces to structured text Ajit Ranade / The spread of TEX in India: The role of outsourced typesetting Alexandre Gaudeul /ALATEX case study Panel: TEX Heritage Barbara Beeton / Chair
Tuesday, July 22, 2003 TUG annual meeting Talks Gerben Wierda / TEX on Mac OS X using teTEX and TEX Live (remote live presentation from the Netherlands) Richard Koch / New features of TEXShop Workshop Francesco Costanzo, Gary Gray / The use of the MarkedObjects plug-in, along with WARMreader to create LATEX-annotated figures using Adobe Illustrator under Mac OS X.
8 TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting Wednesday, July 23, 2003
Talks John Plaice / A multidimensional approach to typesetting Candy Yiu, Wai Wong / Chinese character synthesis using METAPOST Jin-Hwan Cho / dvipdfmx, an eXtension of dvipdfm Kalle Saastamoinen / Creating a Web-based mathematical interface to databases using LATEX, PHP, and the LATEX2HTML compiler Stephan Lehmke / ERCOTEX: Yet another database publishing application of LATEX Alan Hoenig / A new system for typesetting Hebrew with Ω William Adams / TEX at the end: Ω and Zapfino Bogus law Jackowski / Accents, accents, accents: Enhancing CM fonts with “funny” characters Vladimir Volovich / Automatic creation of efficient Type 1 fonts from METAFONT sources H`an Thˆe´ Th`anh / Making Type 1 fonts for Vietnamese Mirko Janc /LATEX in Real-World Math Typesetting Panel: Fonts Nelson Beebe / Chair
Thursday, July 24, 2003
Talks Alun Moon / Literate programming meets UML Fabrice Popineau / XemTEX: An integrated platform for high quality scientific typesetting Patrick Daly / Scientific publishing with pdfLATEX Gary Gray / Experiences and lessons learned teaching LATEX to university students Kaveh Bazargan / POV-ray: A 3D graphics tool for TEX Giuseppe Bilotta / Math in ConTEXt: Bridging the gap with AMS-LATEX Andrzej Odyniec / A Polished TEX story Jerzy Ludwichowski / The future of European LUGS Closing ceremony
Friday, July 25, 2003
Workshop: Getting to know ConTEXt Hans Hagen, Giuseppe Bilotta
TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting 9 Return to the classics
Pablo Rosell-Gonz´alez Coordinaci´on de C´omputo Facultad de Ciencias, UNAM M´exico, D.F. M´exico [email protected] http://hipatia.fciencias.unam.mx/~prosell/
Abstract When did the width of margins in a page become less important than having a small number of pages in a book? We have been inundated by badly printed material since most publishers are now mostly interested in getting as much profit as possible, leaving the art of publishing aside. The premise of book designers should be not only to create attractive printed material but also to provide a pleasant reading experience. There are quite a few examples of designs that are now considered classics because they have proven themselves to be aesthetically incomparable. These designs include: Ternary canon: 2:3 page proportions where the height of the typographic box is equal to the width of the page, the left margin is half the right margin and the top margin is half the bottom margin. Gutenberg’s G¨ottingen Bible: same as above but in two columns with a wide column separation. Universal scaling: the page is created when the user defines a unit box and the design takes multiples of three times the unit box; the left margin is the unit’s box width, the top margin is the unit’s box height, and the right and bottom margins are twice the unit’s box width and height respectively. Diagonal and double diagonal methods: the page dimensions and the left margin are provided by the user and all the other elements are defined in terms of either a diagonal or using both diagonals. ISO 216: the typographic box is sized either A5 or A6 depending on the choice of A4 or A5 paper size, and the left and top margins are half the right and bottom margins respectively. 2–3–4–6 system: page dimensions and the margin unit are defined by the user, and the typographic box is adapted to have two, three, four, and six times the margin unit as left, top, right and bottom margins respectively. This paper presents classics, the author’s new class which allows the user to typeset camera-ready books using any of the above designs. This class uses the calc and geometry packages to create the design, and crop to generate the crop marks. If classics is used with H`anThˆe´ Th`anh’s micro-typographic exten- sions, the user will get state-of-the-art printed material. Let’s recover centuries of publishing tradition!
Introduction Gutenberg, in the XVth century, used over 280 types, including many ligatures and expanded (or Typography and book design are artistic expressions contracted) characters, to get almost even interword whose principal goal is to bring the reader the most spaces, and protruding of some left and rightmost pleasant reading experience. characters (marginal kerning). With these, he ob-
10 TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting Return to the classics
tained perfectly visual “gray” boxes when printing A B his Bible. Most of these aspects are already achieved by P Q using (LA)TEX, and the micro-typographic extensions made by H`anThˆe´ Th`anh for pdf(LA)TEX, explained in [7], complete the picture. This paper is divided in two sections: the first contains a brief geometric description of some page O layouts that have proven to be aesthetic and func- tional. Some variations obtained from them are in- cluded. The second explains the usage of classics, M a class that allows the user to typeset books using those page layouts. Some instances of the usage of classics with protruding characters generated with pdfLATEX are included. Classic page layouts S R Traditional published works present carefully stud- ied margin proportions obeying (some of) the fol- lowing four rules: 1. the diagonal of the typographic box coincides D C with the diagonal of the page; 2. the height of the typographic box equals the Figure 1: First approach. page width; 3. the outer margin is twice the inner margin; Page ratios Documents % of area 4. the bottom margin is twice the top margin. 1 : 2 — 25% First approach to the classics Let ABCD be 2 : 3 Gutenberg’s Bible 39.5% a page with arbitrary proportions. Consider the 2 : 3 Ternary Canon 44.4% following construction for the type area (figure 1) 1: √2 ISO 216 50% which guarantees rules 1, 3 and 4. 3 : 4 Ghostscript’s archA 56% Construct diagonals AC and BM, where M is 1 : 1 — 100% the midpoint of AD, and O the point of intersection. Take any point P between A and O. From P draw Table 1: Page ratios and typographic box area. the parallel to AB which intersects BM in Q. From Q trace the parallel to BC which intersects AC in R. To obtain S, draw parallels from R and P to CD to height ratio of the page and on the value of u and AD respectively. Then the rectangle P QRS will respect to the width of the page. In most cases (ex- have the same proportions as ABCD. Moreover, O cept for a 2 : 3 page), the typographic box will not divides in the same ratio both P R and AC, i.e., present the same width to height ratio as the page, P R/P O = AC/AO = 1/3. because if w and h represent the width and height Of course we want to leave wide enough mar- of the page, then the typographic box will be w 6u − gins on our page, so that the area of the typographic in width and h 9u in height. Suppose the page and − box covers no more than, say, 50%. But if we also type area have the same proportions; then want to follow rule 2 we must restrict the propor- w w 6u 2 √ = − = . tions of our page to no less than 1 : 2. Table 1 h h 9u 3 shows some page ratios with the percentage of area − their typographic box occupies if its height equals This is, nevertheless, a good method for obtain- the paper’s width (i.e., following rule 2). ing interesting asymmetrical results. 2–3–4–6 approach Take a unit u as half the in- Ternary Canon Many medieval and Renaissance ner margin of any page. If we take 2u, 3u, 4u, and manuscripts and printed books present a 2 : 3 width 6u dimensions for the inner, top, outer, and bottom to height page ratio whose typographic box not only margins respectively we will get a fairly good typo- follows the four rules mentioned above but also pre- graphic box — this depends, of course, on the width sents the 2–3–4–6 progression in the margins.
TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting 11 Pablo Rosell-Gonz´alez
Following Van der Graaf’s method, Jan Tschi- and proportions for the typographic box to fulfill the chold [8] published an elegant geometrical way to rules and the 2–3–4–6 progression. obtain such a layout. Take a two-page diagram (see figure 2), draw diagonals AC and BD which inter- sect at M, the midpoint of EF ; draw diagonals EC and ED which intersect BD and AC at G and G′ re- spectively. Draw GG′ and perpendiculars through G and G′ to AB which intersect it at H and H′. The point of intersection P (P ′) of EG (EG′) and HG′ (H′G) is the upper left (right) corner of the typographic box. Complete the construction as in figure 1.
A H′ EH B P ′ P
Figure 3: Rosarivo’s 9 9 grid. At the left, the ternary canon typographic× box in gray. At the G′ G right, Gutenberg’s Bible two column boxes.
M In the ternary canon model, the typographic box will cover only 4/9 (44%) of the area of the pa- per. Gutenberg designed his G¨ottingen Bible of 42 lines using the ternary canon model, but the text is written in two columns whose separation space is exactly 2/3 the width of the grid’s cells as shown D F C in figure 3 (right); each column has 2 2/3 cell width covering just (39.5%) of the area of the paper. Figure 2: Tschichold’s geometric construction for the Ternary Canon. Universal scaling Rosarivo extended this concept to n n grids, where n is a multiple of 3. Once divided,× the column and the row correspond to in- The circle in figure 2 simply shows that the ner and top margins, and two columns and rows to height of the typographic box equals the width of outer and bottom margins. The margin dimensions the page. That the margins are in 2–3–4–6 progres- are inversely proportional to the number of divisions sion follows from the fact that the top left corner 1 made. of the box divides in /9 both the height and the Note, however, that if n is not a multiple of 3 we width of the page. If we fix a unit u which is half are still following rules 1, 3 and 4. A quite critical the inner margin then the page will have width 18u example is taking a square page and dividing it in a and height 27u, so the inner margin is 2u wide, the 10 10 grid. The resulting type area is a 7 7 box, top margin is 3u high. Because the height of the filling× 49% of the page (see figure 10). Nice,× isn’t it? type area is equal to the width of the page, 18u, the bottom margin is 27u (3u + 18u) = 6u. More- ISO 216 The ISO A range begins with the A0 sheet, over, as the typographic− box is in the same ratio as whose ratio is 1 : √2 and has area 1 m2. If we cut the page its width is 12u, thus the outer margin is the A0 sheet along the middle of the long side we 18u (2u + 12u) = 4u. obtain a sheet whose ratio is √2/2 : 1 = 1/√2. −On the other hand, a much different approach This new sheet, A1, is proportional to the orig- 2 is given by Ra´ul Rosarivo [6], who discovered that inal one and has half A0’s area, 1/2 m . This process creating a 9 9 grid on a 2 : 3 ratio page (figure 3, can be continued to obtain proportional sheets with left), and positioning× the typographic box leaving half the area of the predecessor. one column and one row of the grid as inner and Another range that belongs to the ISO 216 fam- top margins, and two columns and rows as outer ily starts with the B0 sheet, whose ratio is again and bottom margins, gives exactly the same position 1: √2 and has area √2 m2, i.e., whose width is 1m.
12 TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting Return to the classics
Name dimensions (mm) area (m2) A0 841 1189 1 × A1 594 841 1/2 × A2 420 594 1/4 × A3 297 420 1/8 × A4 210 297 1/16 × B5 176 250 √2/32 × A5 148 210 1/32 × A6 105 148 1/64 × A6 Table 2: ISO 216 A range and B5 page dimensions. A5
It happens that the B range consists of the geomet- ric means of the A range. For example, the height A4 of B5 is equal to the square root of the product of the heights of A4 and A5. Table 2 shows the dimensions of the A range up Figure 5: A5 as the typographic box of an A4 to 6 divisions, and B5, between A4 and A5 in italics. page (light gray in white), and A6 in A5 (dark in Figure 4 shows a sketch of the A range. light gray).
The classics class The classics class is primarily intended to typeset A2 books using any of the designs explained in the pre- vious section, along with some variations of them. The user invokes classics like any other class: A1 \documentclass[options]{classics} A6 A5 The description of options will be divided into A7 the generic ones which are inherited from the book A8 A3 class, and the specific ones created for classics to- gether with the commands (parameters) related to A4 each page layout. Generic options The following list shows the op- Figure 4: Subdivisions of an A0 sheet. tions inherited from book, which do not relate to the page design whatsoever. 10pt|11pt|12pt For choosing the normal type size. What is really important about this system is The default is 10pt. that it allows us two things. First, we can make a complete sheet from, say, 8 physical pages without final|draft Shows (draft) black boxes for over- having to make unnecessary cuts. Second, we can full lines or not (final). The final option is reduce the size of the page to its immediate succes- the default. sor, retaining proportions, using pstops, psnup, or oneside|twoside For printing on one or both sides some other tool; or by means of photographic media. of a page. The default is twoside, which pro- Let An be the page; then if A(n +1) is the ty- duces mirrored layouts of even and odd pages. pographic box which, as mentioned above, has 50% The oneside option makes even pages the same the area of the page (not far from the 44.4% of the as odd numbered ones. ternary canon). If we follow the four rules (as shown openright|openany For the chapters to begin only in figure 5) the margin progression will be 2–2√2–4– on recto pages (openright) or on any pages 4√2 which is approximately 2–2.828–4–5.657 which (openany). The default is openright. is not very far from the ternary canon’s progression. onecolumn|twocolumn Specifies if the text box will be one or two columns per page. The default
TUGboat, Volume 24 (2003), No. 1 — Proceedings of the 2003 Annual Meeting 13
Pablo Rosell-Gonz´alez ✒✕✢✣✏✥✤✎✦✝✁✕✞✙✚✧✏✓★✩✚ is onecolumn unless the gutenberg option is ✂✁☎✄✝✆✟✞✝✠☛✡☛✞✝☞✌✁✎✍✑✏✓✒✕✔✕✔✕✖☛✗✎✒☛✗✎✘✙✏✛✚☎✜ chosen. (See Specific options.)
Como aplicacion´ elemental del por la compresion´ resultante de titlepage|notitlepage If \maketitle is invoked, gas ideal de fermiones conside- la gravedad. raremos el problema de las es- Si la masa es suficientemente trellas de neutrones y las lama- alta, la estrella termina como un by default classics (book) will make a separate das enanas blancas. Una es- agujero negro, en que la con- trella normal como nuestro sol traccion´ gravitacional reduce el produce energ´ıa principalmente tamano˜ de la estrella a un l´ımite title page, and a separate abstract page, if any. por la fusion´ de nucleos´ ligeros, tal que su velocidad de escape como el hidrogeno,´ a nucleos´ es igual a la velocidad de la luz, mas´ pesados, como el helio. La de modo que ni los fotones pue- presi´on termica´ proveniente de la den escapar. Este radio, llamado
openbib To format the bibliography in open style. energ´ıa cinetica´ de las part´ıculas radio de Schwartzschild ✪ ❖ , defi-
❂ ❂❅❩ ✪ ❖◆❚❯❙❲❱❨❳
constituyentes, mas´ la presi´on de nido por ◗✧❘◆❙ , o
❩ ❂
◗✧❘ ❱☛❳ ◗ radiacion,´ se equilibran con la bien ✪✬❖❬❚ , donde leqno Formula numbers will be put to the left for compresi´on gravitacional de las es la constante de gravitacion,´ ❘ masas en atraccion,´ y la estrella y ❙ son las masas de la estre- mantiene una cierta estabilidad lla y de una part´ıcula de prueba,
de tamano˜ o radio ✪✬✫ , que es del respectivamente. El tipo 1 de
any numbered display math environments. orden de ✭✯✮✱✰✳✲✵✴✷✶ cm. Al agotarse cadaver´ de la estrella normal con este mecanismo de produccion´ que empezamos ocurre general- de energ´ıa por fusion,´ y despues´ mente cuando la masa de esta´ es de pasar por una etapa de gigante del orden de magnitud de una
fleqn Aligns to the left displayed formulae. roja, en que la estrella se enfr´ıa masa solar ❘❭✫ , el tipo 2 cuando
y se expande enormemente, ocu- es diez veces ❘❭✫ y el tipo 3 ✫ rre la muerte de la estrella que de- cuando es 100 o mas´ veces ❘ ; al pendiendo de la masa de la estre- grado que ningun´ mecanismo de As classics is intended specifically to produce lla puede terminar como: presion´ es capaz de contrarrestar Una enana blanca, compues- la contraccion´ gravitacional. La ta principalmente por nucleos´ de figura 47 compara los tamanos˜ re- page layouts whose dimensions are not, in general, helio-4 (o carbono-12 o hierro- lativos de una gigante roja, nues- 56) inmersos en un mar de elec- tro sol, una enana blanca, una es-
trones liberados; el sistema esta´ trella de neutrones y un agujero ✰✳✲✺✹☎✻☎✼
book a temperaturas entre ✰☎✲✵✸ y negro. Los radios de Schwartzs- ✰☎✲✿✾
standard, paper size options (letterpaper, ✰☎✲✵✽ ✪ y densidades entre y child ❖ para cuerpos con la ❀✺❁❃❂❅❄☛❁❇❆ . masa de la Tierra o del Sol ser´ıan, Una estrella de neutrones, respectivamente, un cent´ımetro legalpaper, . . . ) are not recognized. compuesta en un 99% por los o tres kilometros.´ Una enana
neutrones remanentes despues´ blanca t´ıpica con una masa solar
✫ ✪❫❪▲✰☎✲ de la conversion´ de los protones ❘ tiene un radio Km, y electrones en i, a neutrones por un poco mayor que el radio co-
el proceso de decaimiento beta rrespondiente de Schwartzschild ✪✬❖✩❚❵❴ Specific options The classics class offers the fol- inverso ❈❊❉●❋✿❍❏■▲❑✱❉◆▼ forzado Km. lowing options for page layouts in contrast to page size options of book; ternary being the default. ternary This layout builds a 2 : 3 width-to-height page with type area as described in figures 2 and 3. The only parameter users can modify is \classicswidth (see Parameters) because all \documentclass[gutenberg,utopia,frame]{classics} other parameters are absolutely determined. Figure 7: Page layout for gutenberg option.
“ternary” — 2003/2/9 — 1:30 — page 1 — #1
gutenberg Same as above but the type area is type- Como aplicaci´on elemental del gas ideal de fermiones consideraremos el pro- blema de las estrellas de neutrones y las lamadas enanas blancas. Una es- trella normal como nuestro sol produce energ´ıa principalmente por la fusi´on set in two columns having the column separa- de n´ucleos ligeros, como el hidr´ogeno, a n´ucleos m´as pesados, como el he- lio. La presi´on t´ermica proveniente de la energ´ıa cin´etica de las part´ıculas 2 constituyentes, m´as la presi´on de radiaci´on, se equilibran con la compresi´on tion space equal to /3 the inner margin.
gravitacional de las masas en atracci´on, y la estrella mantiene una cierta esta- ✂✁
bilidad de tama˜no o radio , que es del orden de ✄✆☎✞✝✠✟☛✡✌☞ cm. Al agotarse este mecanismo de producci´on de energ´ıa por fusi´on, y despu´es de pasar por una etapa de gigante roja, en que la estrella se enfr´ıa y se expande enor- Figure 7 shows the Gutenberg Bible’s layout. memente, ocurre la muerte de la estrella que dependiendo de la masa de la estrella puede terminar como: Una enana blanca, compuesta principalmente por n´ucleos de helio-4 (o car- It is similar to ternary but in two columns sep-
bono-12 o hierro-56) inmersos en un mar de electrones liberados; el sistema
✝✠✟✑✏✠✒✔✓ ✝✠✟✖✕ ✝✠✟✖✗✙✘✖✚✜✛✣✢✤✚✆✥ est´aa temperaturas entre ✝✠✟✎✍ y y densidades entre y . 2 Una estrella de neutrones, compuesta en un 99% por los neutrones rema- arated by /3 the inner margin width. nentes despu´es de la conversi´on de los protones y electrones en i, a neutro-
nes por el proceso de decaimiento beta inverso ✦✆✧✩★✎✪✬✫✮✭✯✧✩✰ forzado por la compresi´on resultante de la gravedad. Si la masa es suficientemente alta, la estrella termina como un agujero rosarivo Following Rosarivo’s ideas, the user can negro, en que la contracci´on gravitacional reduce el tama˜no de la estrella a un l´ımite tal que su velocidad de escape es igual a la velocidad de la luz,
de modo que ni los fotones pueden escapar. Este radio, llamado radio de