1 / 13

Chapter 12: Network Programming Desktop Publishing

Chapter 12: Network Programming Desktop Publishing. Translator models Latex Documentation Preparation Postscript programming language WYSIWIG Editors. Translator models. Interpretation - the output is a value. Compilation - translator produces an algorithm that computes the answer

fritz-dale
Download Presentation

Chapter 12: Network Programming Desktop Publishing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 12: NetworkProgrammingDesktop Publishing • Translator models • Latex Documentation Preparation • Postscript programming language • WYSIWIG Editors

  2. Translator models • Interpretation -the outputis a value. • Compilation - translator produces an algorithm that computes the answer • Semantic Description - translator produces a description of the output    

  3. Translator modelsfor text processing languages • Interpretation: bitmap output • Compilation: documents are converted to an executable program that creates an image – Postscript • Semantic Description : description of the text's attributes – Microsoft Rich Text format

  4. LaTex Documentation Preparation • high-quality typesetting system • de facto standard for the communication and publication of scientific documents • a special version of Donald Knuth's TeX program • TeX: sophisticated program designed to produce high-quality typesetting, especially for mathematical text.

  5. Features of TeX • automatic hyphenation, • line justification, centering, flushing right or left, • tabular aligning, • formatting of complicated mathematical expressions, • section and page numbering, • numbering and placing of footnotes, • preparation of a table of contents and an index.

  6. TeX and LaTeX • LaTeX makes TeX facilities easy to use  • LaTeX uses environments to define different document styles - article, report, letter, etc

  7. Example Programming languages for document preparation Peter Loven September 2000 Hello world!

  8. Example – cont. \documentclass{article} \title{Programming languages for document preparation} \author{Peter Loven} \date{September 2000} \begin{document} \maketitle Hello world! \end{document}

  9. LaTeX processing • The TEX compiler outputs a symbol table in Pass 1 like a regular compiler • Pass 2 (optional) produces a Table of Contents • Pass 3 produces the formatted document in a device-independent (dvi) form • Convert the dvi form to a format that allows a particular device to display or print the result

  10. Postscript programming language • An interpreter for performing calculations – postfix execution stack • Language syntax based on FORTH • Painting Extensions – extension to FORTH for printing • Conventions for different printing systems

  11. WYSIWIG Editors • WYSIWIG (what you see is what you get) - a file is preformatted to its final output presentation by embedded tags. • The word processing program is a virtual machine designed to display those commands. • All editing is immediately reflected on the screen display.

  12. Differences between models LaTeX and MS Word - define the layout of the final document Postscript - defines a program which computes the final layout. A Postscript printer contains an interpreter that executes the Postscript program to produce the final printed document

More Related