Index

Browse

Web Browser

Tim Berners-LeeIf you click on [B], you can browse through the HTML file that you have opened or created.

Your browser does not simply display all the letters in this file like the text viewer does: The characters are parsed into content and markup, and the mark­up is used as an instruction to render the content. So what you see is an interpretation of the file, not the file itself. The rendering changes if you resize the browser window, and another browser gives a slightly different rendering of the same file.

HTMLHTML, developed by Tim Berners-Lee around the year 1990 to retrieve information from various sources all over the world, was not intended for typesetting, but can be used for this task too, since style sheetsstyle sheets were introduced which allow to specify the precise appearance of a document with respect to the media. Common web browsers still do give such a nice print as Word, failing in hyphenation, for instance.

There are techniques to produce both a PDF and an HTML version of a document for print and online publishing other than the GMS approach of converting HTML to PDF. For example, you can start with: 1. a Word or OpenOffice document (save it as a web page and print it to a file using a PDF driver), 2. a LaTeX file (convert it to PDF using the pdfTeX typesetting engine, like GMS, and to HTML with LaTeX2HTML or TeX4ht), 3. an XML file (convert it to PDF using the xmlTeX or passiveTeX, and the LaTeX or ConTeXt macro packages, and the pdfTeX typesetting engine, like GMS; if a style sheet is given, modern web browsers can also render that XML file).

If an HTML file is produced by conversion, it may be very large, but not optimized for screen display. If you start to do this manually, you have to update more than one file whenever you change the document content. Markup Shredder uses a single source together with different style sheets for screen and print. So you can use a what-you-see-is-what-you-get editor to create a multi-purpose document in a human-readable file format which is designed for data exchange with many other applications, and if it turns out that GMS cannot properly render your HTML file, you still can open it with Word or OpenOffice to get a nicer print.

Text Mode

If you press [B], an external program is executed to browse through the markup document. By default, it is netscape.exe (Dos, Windows 16) or iexplore.exe (Windows 32). On Linux, it is lynx, if none of the following is found in the /usr/bin directory: links, opera, konqueror, netscape, or mozilla.

You can select another browser if you press [S] and [P]. The browser binary should be found in the search path or in a sub-directory of [GMS­_ROOT]/binbin.

Command Line

In the command line, enter gms -b /my­fold­er/my­file.htm (Linux) or gms /b x:\my­fold­er\my­file.htm (Dos, Windows) to browse through a markup document. If the file was opened or created before, it is sufficient to call gms -b or gms /b.

Alternatively, you can execute the command mozilla /my­fold­er/my­file.htm (Linux), win netscape x:\my­fol­der\my­file.htm respectively arachne x:\my­fol­der\my­file.htm (Dos) or iexplore x:\my­fold­er\my­file.htm (Windows).

Appendix