Zpravodaj Československého sdružení uživatelů TEXu 3-4/2013
Pages: 133–156
Algoritmy TEXu jsou určeny pro zpracování textu, ale nezabývají se prací s externími obrázky. Tato činnost je ponechána výstupním ovladačům. Ovladače se přizpůsobily vývoji polygrafie, takže zejména s využitím balíčku graphicx lze vkládat obrázky v běžných formátech pohodlným způsobem nezávislým na použitém ovladači. Formát LATEX je primárně určen pro sazbu textů, v nichž se občas vyskytuje tabulka či obrázek. Mechanismus plovoucích objektů zajistí, že si tabulky a obrázky automaticky najdou vhodné místo v textu. Jiná situace však nastane v případě, kdy jsou těžištěm publikace právě obrázky, jejichž umístění na stránkách je pevně dáno a jež má text obeplout. Navíc má text uprostřed odstavce přetéci na další stránku, kde bude sázen do sloupce jiné šířky. V tomto okamžiku již nelze použít existující postupy, je nutno napsat vlastní makra. V tomto článku je popsáno, jak je využito spojení XML s XELATEXem a vlastními makry při sazbě ilustrované publikace.
plovoucí text, XELATEX, XML, XSLT, validace
The algorithms of TEX are intended for text processing, they are not designed to work with external images. This work is left to the output drivers. The drivers follow evolution of polygraphy. Thus especially by using the graphicx package, images in common formats can easily be included in a way independent of the output driver used. The LATEX format is primarily aimed at typesetting texts containing a few tables or figures. The mechanism of floating objects ensures that the tables and figures automatically find a convenient place within the text. Another situation arises if the main part of the publication consists of pictures the position of which is bound to a strict place of a page and the text should float around them. Moreover, it is required that the text floats to the next page in the middle of a paragraph and then be typeset to a column of different width. In such a case the existing approach cannot be used and a set of appropriate macros must be developed. The article shows how XML and XELATEX with a special set of macros was used to typeset an illustrated publication.
floating text, XELATEX, XML, XSLT, validation
Hlavní stránka Zpravodaje CSTUGu. Adresa redakce: zpravodaj@cstug.cz. (c) 1996-2012 CSTUG