diff options
Diffstat (limited to 'Master/texmf-dist/tex/optex/demo')
-rw-r--r-- | Master/texmf-dist/tex/optex/demo/op-biblist.bib | 298 | ||||
-rw-r--r-- | Master/texmf-dist/tex/optex/demo/op-demo.tex | 127 | ||||
-rw-r--r-- | Master/texmf-dist/tex/optex/demo/op-letter-cs.tex | 41 | ||||
-rw-r--r-- | Master/texmf-dist/tex/optex/demo/op-letter-en.tex | 38 | ||||
-rw-r--r-- | Master/texmf-dist/tex/optex/demo/op-ring.png | bin | 0 -> 512984 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/optex/demo/op-slides-bg.png | bin | 0 -> 62385 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/optex/demo/op-slides.tex | 322 |
7 files changed, 826 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/optex/demo/op-biblist.bib b/Master/texmf-dist/tex/optex/demo/op-biblist.bib new file mode 100644 index 00000000000..691a02ea0ea --- /dev/null +++ b/Master/texmf-dist/tex/optex/demo/op-biblist.bib @@ -0,0 +1,298 @@ +This is an example of .bib file using by OpTeX. +Petr Olsak 2014 +---------------------------------------------------------- +See the section 1.5.3 of OpTeX documentation for more information. + +@BOOK{white, + author = "David J. Whitehouse", + title = "Handbook of surface and nanometrology", + edition = "2nd", + address = "Boca Raton", + publisher = "CRC Press", + year = 2011, + isbn = "978-1-4200-8201-2", + lang = "en", +} +@BOOK{lech, + author = "Richard Lech", + title = "Fundamental principles of engineering nanometrology", + howpublished = "online", + address = "Oxford", + publisher = "Elsevier", + year = 2009, + isbn = "978-0-08-096454-6", + citedate = "2011/08/29", + url = "http://www.sciencedirect.com/science/book/9780080964546", + option = "autrim:1", +} +@BOOK{Cmej, + author = "Světla Čmejrková and František Daneš and Jindra Světlá", + title = "Jak napsat odborný text", + address = "Praha", + publisher = "Leda", + year = 1999, + isbn = "80-85927-69-1", + key = "Czzmejrkova", +} +@BOOK{ tbn, + bibmark = "Ol00", + author = "Petr Olšák", + title = "\TeX{}book naruby", + edition = "2.", + address = "Brno", + publisher = "Konvoj", + year = 2001, + isbn = "80-7302-007-6", + url = "http://math.feld.cvut.cz/olsak/tbn.html", + option = "urlalso", +} +@BOOK{ tst, + author = "Petr Olšák", + title = "Typografický systém \TeX{}", + edition = "2.", + address = "Brno", + publisher = "Konvoj", + year = 2000, + url = "http://math.feld.cvut.cz/olsak/tst.html", + isbn = "80-85615-91-6", +} +@BOOK{ tpp, + author = "Petr Olšák", + title = "\TeX{} pro pragmatiky", + year = "2013", + address = "Brno", + publisher = "CsTUG", + isbn = "978-80-901950-1-1", + option = "titlepost:{\TeX{} -- CSplain -- OPmac}", + howpublished = "online", + url = "http://math.feld.cvut.cz/olsak/tpp.html", +} +@BOOK{texbook, + author = "Donald Ervin Knuth", + title = "The \TeX{}book", + address = "Boston", + publisher = "Addison-Wesley", + year = 1984, + isbn = "02-011-3448-9", +} +@BOOK{ rowling, + author = "Robert Calbraith", + option = "auprint:{\AU\space [pseudonym of J. K. Rowling]}", + title = "The Cuckoo's Calling", + address = "New York", + publisher = "Mulholland Books", + isbn = "0-316-20684-6", + year = 2013, +} +@BOOK{ earle, + author = "Richard Earle", + title = "The art of cause marketing: + how to use advertising to change personal behavior and public policy", + ednote = "Cover and interior design by Monica \upper{Baziuk}", + address = "New York", + publisher = "McGraw-Hill", + year = 2000, + isbn = "0-07-138702-1", + option = "yearprint:{\copyright2000}", +} +@BOOK{ novaci, + author = "Jan Novák and Helena Nováková", + title = "Alergenní rostliny", + address = "Praha", + publisher = "Knižní klub", + year = 2010, + isbn = "80-242-2591-3", +} +@BOOK{ adobe, + author = "Adobe\ creative\ team", + title = "Adobe Flash CS4 Professional: Oficiální výukový kurz", + ednote = "Přeložil Lukáš \upper{Krejčí}", + address = "Brno", + publisher = "Computer Press", + year = 2009, + isbn = "80-251-2334-8", +} +@BOOK{ nierhaus, + author = "Grehard Nierhaus", + title = "Algorithmic Composition: Paradigms of Automated Music Generation", + address = "Wien", + publisher = "Springer", + year = 2009, + isbn = "3-211-77539-6", + url = "http://www.springerlink.com/content/g7h129", + option = "yearprint:{\copyright2009} urlalso", +} +@BOOK{ taschen, + author = "Laszlo Taschen", + title = "Modern architekture A-Z", + ednote = "vol. 1, A-L", + address = "Köln", + publisher = "Tashen", + year = 2010, + isbn = "383-6521-321", +} +@ARTICLE{ opmactug, + author = "Petr Olšák", + title = "OPmac: Macros for Plain \TeX", + journal = "TUGboat", + publisher = "\TeX{} Users Group", + year = 2013, + volume = 34, + number = 1, + pages = "88--96", + issn = "0896-3207", + url = "http://petr.olsak.net/ftp/olsak/bulletin/tb106olsak-csplain.pdf", + option = "urlalso", + lang = "en", +} +@ARTICLE{ optextug, + author = "Petr Olšák", + title = "\OpTeX/ -- A new generation of Plain \TeX/", + journal = "TUGboat", + publisher = "\TeX{} Users Group", + year = 2020, + volume = 41, + number = 3, + pages = "348--354", + issn = "0896-3207", + url = "http://petr.olsak.net/ftp/olsak/bulletin/tb128olsak-optex.pdf", + option = "urlalso", + lang = "en", +} +@THESIS{ mirekB, + author = "Miroslav Olšák", + title = "Kvadratické rovnice na slovech", + school = "Univerzita Karlova v~Praze, fakulta Matematicko-fyzikální", + address = "Praha", + year = 2013, + url = "http://www.olsak.net/mirek/bakalarka/", + type = "Bakalářská práce", + option = "urlalso", +} +@THESIS{ mirekM, + author = "Miroslav Olšák", + title = "Součiny Fréchetovských prostorů", + school = "Univerzita Karlova v~Praze, fakulta Matematicko-fyzikální", + address = "Praha", + year = 2015, + url = "http://www.olsak.net/mirek/diplomka/", + type = "Diplomová práce", + option = "urlalso", +} +@THESIS{ mirekD, + author = "Miroslav Olšák", + title = "Generalizing CSP-related results to infinite algebras", + school = "Univerzita Karlova v~Praze, fakulta Matematicko-fyzikální", + address = "Praha", + year = 2019, + url = "https://dspace.cuni.cz/handle/20.500.11956/108756", + type = "Disertační práce", + option = "urlalso", + lang = "en", +} +@INBOOK{ zakonVS, + author = "Česko", + title = "Zákon č. 111 ze dne 22. dubna 1998 o vysokých školách a o změně a + doplnění dalších zákonů (zákon o vysokých školách)", + booktitle = "Sbírka zákonů České republiky", + year = 1998, + series = "částka 39, s. 5388--5419", + url = "http://aplikace.mvcr.cz/archiv2008/sbirka/1998/sb039-98.pdf", + issn = "1211-1244", + option = "urlalso unpublished", + key = "Czzesko", +} +@INBOOK{ lonka, + author = "Kristi Lonka", + title = "Helping doctoral students to finish their theses", + booktitle = "Teaching academic writing in European higher education", + editor = "Lennart Björk and Gerd Bräuer and Lotte Reinecker and Peter Stray Jörgensen", + address = "Dordrecht", + publisher = "Kluwer Academic Publ.", + year = 2003, + pages = "113--131", + isbn = "1-4020-1208-X", + option = "edprint:{\ED,~eds.}", +} +@INBOOK{ demay, + author = "Y. Demay", + title = "Computation of 2D viscoelastic flows for a differential constitutive equation", + editor = "J-M. Piau and J-F. Agassant", + booktitle = "Rheology for Polymer Melt Processing", + howpublished = "online", + publisher = "Elsevier", + year = 2011, + numbering = "s.~237--255", + isbn = "0444822369", + citedate = "2011/08/29", + url = "htpp://www.sciencedirect.com/science/article/pii/S0169310796800098", + option = "nowarn", +} +@INPROCEEDINGS{ distler, + author = "Tobias Distler and Rüdiger Kapitza", + title = "Increasing performance in Byzantine fault-tolerant systems on-demand replica consistency", + booktitle = "Proceedings of the Eurosys' 2011 conference. April 10 -- April 13, 2011, Salzburg, Austria", + address = "New York", + publisher = "Association of computer machinery", + year = 2011, + numbering = "pp.~91--105", + isbn = "1-4503-0634-8", +} +@INPROCEEDINGS{ talich, + author = "Milan Talich and Filip Antoš", + title = "Metody a postupy doigitalizace a online zpřístupnění starých kartografických děl", + howpublished = "online", + booktitle = "INFORUM 2011: 17. ročník konference o profesionálních informačních zdrojích, + 24.--26. května 2011, Vysoká škola ekonomická v Praze", + option = "unpublished", + url = "http://www.inforum.cz/pdf/2011/talich-milan.pdf", + citedate = "2011/08/29", + year = 2011, + option = "nowarn", +} +@ARTICLE{ mansouri, + author = "Majdi Mansouri and Quachani Ilham and Hicham Snoussi and Richard Cédric", + title = "Adaptive quantized target tracking in wireless sensors networks", + journal = "Wireles Networks", + number = 7, + volume = 17, + pages = "1625--1639", + lang = "en", + option = "nowarn", +} +@ARTICLE{ calafiore, + author = "Giuseppe C. Calafiore and Fabrizio Dabbene and Roberto Tempo", + title = "Research~ on probabilistic methods for control system design", + journal = "Automatica", + howpublished = "online", + Publisher = "Elsevier", + month = "July", + year = 2011, + volume = 47, + number = 7, + pages = "1279--1293", + issn = "0005-1090", + citedate = "2011/07/17", + doi = "10.1016/j.automatica.2011.02.029", + lang = "en", +} +@MISC{ bowles, + title = "What is fluid technology?", + ednote = "Bowles Fluidics Corp.", + citedate = "2011/10/10", + url = "http://www.bowlesfluidics.com/capabilites/technology/", + key = "zzzz" +} +@MISC{ biernatova, + author = "Olga Biernátová and Jan Skůpa", + title = "Bibliografické okazy a citace dokumentů: dle ČSN ISO 690 (01~0197) platné od 1. dubna 2011", + ednote = "Brno, 2011. Vytvořeno ve spolupráci s portálem citace.com", + url = "http://www.citace.com/dokumenty.php", +} +@MISC{ trtikova, + author = "Ilona Trtíková and Ludmila Tichá", + title = "Jak citovat", + ednote = "Ústřední knihovna ČVUT, 2011, 2012, 2013", + citedate = "2014/04/22", + url = "http://knihovna.cvut.cz/studium/jak-psat-vskp/doporuceni/jak-citovat/", +} diff --git a/Master/texmf-dist/tex/optex/demo/op-demo.tex b/Master/texmf-dist/tex/optex/demo/op-demo.tex new file mode 100644 index 00000000000..e17b2f0b2f7 --- /dev/null +++ b/Master/texmf-dist/tex/optex/demo/op-demo.tex @@ -0,0 +1,127 @@ +%% This is part of the OpTeX project, see http://petr.olsak.net/optex + +\fontfam[LMfonts] % Default font family: Latin Modern + +\margins/1 a5 (1,1,1,1.4)cm % A5 paper + 1cm margins +\typosize[9/10.5] % 9pt font / 10.5pt baselineskip +\parindent=10pt % typesetting parameters +\hyperlinks \Blue\Blue % active hyperlinks +\verbchar` % in-text verbatim by `...` +\everyintt={\Red} % in-text verbatim Red +\enquotes % use \"text" for English quotation + +\tit Demonstration + +\nonum\notoc\sec Contents + +\maketoc % Table of Contents is auto-generated here + +\sec Lists + +The lists have to be surrounded by `\begitems` +and `\enditems` sequences. + +\begitems +* First item. +* Second item. + \begitems \style i + * Nested item list, + * numbered by roman numerals. + \enditems +* Last item. +\enditems + +\secc Title of\nl Subsection + +The subsection text\dots + +\sec References + +There is a numbered equation. +The number is auto-generated by `\eqmark` sequence. +$$\label[my-eq] + a^2 + b^2 = c^2 \eqmark +$$ +We can refer to Equation~\ref[my-eq] +on page~\pgref[my-eq]. +We can refer to Table~\ref[my-tab] in +Section~\ref[tab-sec] too. And Figure~\ref[my-pic] +is on page~\pgref[my-pic]. + +\sec Hyperlinks + +You can refer to \url{http://petr.olsak.net} using `\url`. +Or use `\ulink` if the raw URL needs to be hidden: +\ulink[http://petr.olsak.net/optex]{\OpTeX/ page}. +The parameter text is colorized and it becomes +an active link if the `\hyperlinks` sequence +is used at the beginning of the document. +Internal links are activated too. + +\sec[tab-sec] Tables + +The `\table` sequence can be used +instead of \"low level" `\halign`. +The following table is framed by the `\frame` sequence +to get a double frame. + +\bigskip +\caption/t [my-tab] Testing table. +\cskip +\centerline{% + \frame{\table{|r|c|l|}{\crl + \bf Title A & \bf Title B & \bf Title C \crll + first & second & third \cr + next & text & last \crl }}} + +\sec Images + +The images (PDF, JPG, PNG, TIFF) can be inserted +by `\inspic` sequence. The `\caption` +can be added if you need to refer to a figure. + +\label[my-pic] +\centerline {\picwidth=2.7cm \inspic{op-ring.png}} +\cskip +\caption/f The nonempty ideal of a simple ring -- + the ring itself. + +\sec Verbatim + +In-text verbatim is surrounded by the character declared +by `\verbchar` sequence. The listing can be surrounded +by `\begtt` and `\endtt` sequences +\begtt +This is verbatim. + All characters are printed $$, \, # etc. +\endtt +or it can be included by `\verbinput` from an external file. + +\verbinput (98-100) op-demo.tex + +\sec Math + +The Math alphabets +`\mit`, `\cal`, `\script`, `\frak`, `\bbchar`, `\bi` +are provided. For example: +$$ + {\bi A} = \pmatrix {\cal C & \script C \cr + \frak M & \bbchar R }. +$$ +Hundreds of AMS symbols are available: +$\sphericalangle, \boxplus, \Cup, \Cap, \ldots$ + +\sec Others + +The `\fontfam` command selects a desired family of fonts. +The `\typosize` or `\typoscale` sequences set the size +and baselineskip of used fonts (including math fonts). +The `\fnote` generates a footnote\fnote{Like this} and +`\mnote` generates a margin note. +The `\margins` sets margins and paper dimensions. +The `\cite` sequence can be used for bibliographic citations. +The `\bib` sequence creates one bibliography record. Or +you can use `\usebib` for direct access to the {\tt.bib} files. +The list of features does not end here\dots + +\bye diff --git a/Master/texmf-dist/tex/optex/demo/op-letter-cs.tex b/Master/texmf-dist/tex/optex/demo/op-letter-cs.tex new file mode 100644 index 00000000000..b6883cb74c6 --- /dev/null +++ b/Master/texmf-dist/tex/optex/demo/op-letter-cs.tex @@ -0,0 +1,41 @@ +%% This is part of the OpTeX project, see http://petr.olsak.net/optex + +\letter % \letter OpTeX style activated +\fontfam[bonum] +\cslang + +\address + Vážený pan + Mgr. Bořek Byrokrat + ředitel Ústavu pro další možnosti + Úřední 789 + 123 45 Praha 1 + +\hfill V Praze dne \today + +\subject Žádost o možnost další možnosti + +Vážený pane řediteli, + +na základě Vašeho dopisu č.j.~123456/78-dat a elektronické výzvy si dovoluji +Vás požádat o prozkoumání mé možnosti další možnosti. +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do +eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim +veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea +commodo consequat. + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do +eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim +veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea +commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit +esse cillum dolore eu fugiat nulla pariatur. + +S úctou + +\hfill \address + {\it Petr Olšák} + specialista na \TeX/ + Ulice 12345 + Praha 13 + +\bye diff --git a/Master/texmf-dist/tex/optex/demo/op-letter-en.tex b/Master/texmf-dist/tex/optex/demo/op-letter-en.tex new file mode 100644 index 00000000000..0154e48c018 --- /dev/null +++ b/Master/texmf-dist/tex/optex/demo/op-letter-en.tex @@ -0,0 +1,38 @@ +%% This is part of the OpTeX project, see http://petr.olsak.net/optex +\useOpTeX + +\letter % \letter OpTeX style activated +\enlang \enquotes % Language and quote style +\fontfam[bonum] + +\hfill\address + Alice Author + 123 Sender Street + City 4567 + +\bigskip + +\address + Mr. Bobby Bureaucrat + 456 Magnolia Street + City 8901 + +\hfill\today + +\subject Inquiry regarding \"lorem ipsum" + +Dear Mr. Bureaucrat, + +\lorem[1-2] % 2 paragraphs of blindtext + +Thank you for your time. + +With best regards, + +\bigskip % leave some space for signature +\bigskip + +Alice Author + +\bye + diff --git a/Master/texmf-dist/tex/optex/demo/op-ring.png b/Master/texmf-dist/tex/optex/demo/op-ring.png Binary files differnew file mode 100644 index 00000000000..de7811df83e --- /dev/null +++ b/Master/texmf-dist/tex/optex/demo/op-ring.png diff --git a/Master/texmf-dist/tex/optex/demo/op-slides-bg.png b/Master/texmf-dist/tex/optex/demo/op-slides-bg.png Binary files differnew file mode 100644 index 00000000000..4ac1ad8c38c --- /dev/null +++ b/Master/texmf-dist/tex/optex/demo/op-slides-bg.png diff --git a/Master/texmf-dist/tex/optex/demo/op-slides.tex b/Master/texmf-dist/tex/optex/demo/op-slides.tex new file mode 100644 index 00000000000..50bcdaffa60 --- /dev/null +++ b/Master/texmf-dist/tex/optex/demo/op-slides.tex @@ -0,0 +1,322 @@ +%% This is part of the OpTeX project, see http://petr.olsak.net/optex + +\slides % OpTeX slides style activated + +\catcode`<=13 % special printing of <text> +\def<#1>{\hbox{$\langle$\it#1\/$\rangle$}} +\everyintt={\catcode`\<=13} + +\hyperlinks\Blue\Blue % hyperlinks are used in the title page +\backgroundpic{op-slides-bg.png} % background picture + +\verbchar` % inline verbatim +\enquotes % English quotes \"..." + +\slideshow %------------------------------------------------------------ + + +\tit \OpTeX/ slides + +\subtit Petr Olšák\nl petr@olsak.net + +\subtit\rm \url{http://petr.olsak.net/optex} + +\pg; %------------------------------------------------------------------ + +\sec Basics + +* The the simple document looks like: + +\begtt +\slides % style initialized +%\wideformat % 16:9 +\slideshow % partially uncovering ideas + +\sec First slide +text +\pg; + +\sec Second slide +text +\pg. +\endtt + +* If `\slideshow` is missing or commented out then + \"partially uncovering ideas" (see later) are deactivated. It is useful + for printing. +* The `\slideshow` must be the last command in the declaration part of the + document. +* By default, the slides have A5 landscape format. + You can declare `\wideformat`. Then the height is the same + but width is 263\,mm, i.\,e.~the ratio width:height is 16:9. + +\pg; %------------------------------------------------------------------ + +\sec Title slide + +* Title of the document (used at the first slide) is created + by `\tit Title` (terminated by end of line). +* The `\subtit Author name etc.`\ (terminated by end of line) + can be used after `\tit` at the first slide. +* You can use `\nl` for a new line in paragraphs or titles. + +\sec Default design + +* The paragraph texts are ragged right. +* Titles, subtitles, and section titles are centered. +* The `\sec` and `\secc` are printed without numbers. +* No paragraph indentation, a little vertical space between paragraphs. +* The Heros font family (aka Helvetica) is initialized as default.\nl + Sans-serif FiraMath font for math typesetting is used.\nl + If `\fontfam[<famname>]` precedes `\slides` then it rewrites default. +* The items in lists are started by a blue square (`\type X` and `\type x` ). + +\pg; %------------------------------------------------------------------ + +\sec One slide (one page) + +* Top-level item list is activated by default. The asterisk `*` opens + new item at the top-level list. +* Nested items lists (second and more level) should be created in + the `\begitems`\dots`\enditems` environments. +* Each slide (page) must be terminated by `\pg;` command. +* The last slide must be terminated by `\pg.` command or by `\bye`. + +\begtt +\sec My ideas + +* First idea +* Second idea + \begitems + * First sub-idea + * Second sub-idea + \enditems +* Final idea +\endtt + +* Note: each page is processed in a group, so: put your own definitions + (if~exist) before `\slideshow` or use `\global` assignment. + +\pg; %------------------------------------------------------------------ + +\sec Partially uncovering ideas + +* The control sequence `\pg` must be followed by:\pg+ +\begitems +* the character `;` -- normal next page,\pg+ +* the character `.` -- the end of the document,\pg+ +* the character `+` -- next page keeps the same text + and a next text is added (usable for partially uncovering of ideas).\pg+ +\enditems + +* Summary: +\begtt +\pg; ... next page +\pg. ... the end of the document +\pg+ ... uncover next text on the same page +\endtt +\pg+ + +* When `\slideshow` is not declared then `\pg+` is deactivated.\pg+ +* The `\pg+` creates a new \"virtual page", so the current paragraph is + terminated. + +\pg; %------------------------------------------------------------------ + +\sec Example with partially uncovering ideas + +The previous page was created by: + +\begtt +\sec Partially uncovering ideas + +* The control sequence `\pg` must be followed by:\pg+ + +\begitems +* the character `.` -- normal next page,\pg+ +* the character `;` -- the end of the document,\pg+ +* the character `+` -- next ... \pg+ +\enditems + +* Summary +... +* When `\slideshow` is not declared + then `\pg+` is deactivated.\pg+ +* The `\pg+` creates a new \"virtual page", + so the current paragraph is terminated. +\pg; +\endtt + +\pg; %------------------------------------------------------------------ + +\sec Notes to `\slideshow` + +* When `\slideshow` is active then you cannot reference sections by + hyperlinked `\ref`. Only `\pgref` works (and goes to the last layer + of the referenced page). +* If the text overfull the page (slide) then it follows to the next page without + saying explicitly `\pg;`. But `\slideshow` cannot work in this case.\pg+ +* If `\slideshow` then each part of page between two `\pg`'s or between + `\slideshow` and the first `\pg` is processed in a local group. +* If not `\slideshow` then the document is not separated to groups. + This can lead to different results. So, you can put `\slideopen` command + instead of `\slideshow`. Then local groups are opened exactly as when + `\slideshow` is used but `\slideshow` is not activated. Example: + +\begtt +\slides +\def\foo...{...} % global definitions. +%\slideshow % printing version, no slide show. +\slideopen % opens group for first page. +... first page +\pg; % closes group and opens group for second page. +... second page +\pg. % closes group of the last page. +\endtt + +\pg; %------------------------------------------------------------------ + +\sec More about design + +* You can use `\backgroundpic{<image-file>}` for putting an image to the background. +* You can re-declare `\footline` or re-define internal macros for design as + you wish. +* The TeXGyre Heros font is used as default text font, the FiraMath is used + for math. +* If you want to use another text font fmaily, use `\fontfam` + {\em before} `\slides` command. +* If you want to use different math font, use + `\loadmath{[font]}` before `\fontfam` (if used) and before `\slides`. For example: + +\begtt +\loadmath{[Asana-Math]} % Math font: Asana +\fontfam[Termes] % Text font: Termes +\slides +... +\endtt + +* You can put the images or text wherever using `\putimege` or `\puttext` + macros... + +\pg; %------------------------------------------------------------------ + +\sec Putting images and texts wherever + +* `\puttext <right> <up> {<text>}` puts a <text> to the desired place: + It moves the current point <right> and <up>, puts the <text> and returns + back, so the typesetting continues from previous position. The parameters + <right> and <up> are dimensions. For example + +\begtt +\puttext 0mm 50mm {\Red HELLO} +\endtt + + \puttext 0mm 50mm {\Red HELLO} + prints red HELLO, as shown here.\pg+ + +* `\putpic <right> <up> <width> <height> {<image-file>}` + puts the image with desired <width> and <height> at the position like + `\puttext` puts the text. + + \putpic .8\hsize 20mm 30mm \nospec {op-ring.png} +* The ring above is the result of + +\begtt +\putpic .8\hsize 20mm 30mm \nospec {op-ring.png} +\endtt + % + used at beginning of this paragraph.\pg+ +* Use `\nospec` for <width> or <height> of the image if you don't want to specify both + dimensions (because you don't want to change the image aspect ratio). + +\pg; %------------------------------------------------------------------ + +\sec Limits of the \code{\\pg+} sequence + +* The \code{\\pg+} sequence (partially uncovering ideas) cannot be used inside + a~group. +* The exception is the nested environment `\begitems...\enditems`. +* The `\pg+` always finalizes the current paragraph. + It is impossible to hide only a part of the horizontal mode.\pg+ + +\sec The \code{\\layers}\,...\code{\\endlayers} environment + +If you really need something unsupported by `\pg+` then you can use + +\begtt \catcode`\<=13 +\layers <number> +<layered text> +\endlayers +\endtt + +* The <layered text> should include conditions like + `\ifnum\layernum...` or `\ifcase\layernum`. + It is printed <number> times to more slide pages (layers) with the same + surrounding text. See next page... + +\pg; %------------------------------------------------------------------ + +\sec Example of \code{\\layers} environment + +The `\slides` style provides a shortcut `\use` and a macro `\pshow` (means +partially show): + +\begtt +\def\use#1#2{\ifnum\layernum#1\relax#2\fi} +\def\pshow#1{\use{=#1}\Red \use{<#1}\Transparent \ignorespaces} +\endtt +`\use{=3}{do something}` does something only if `\layernum=3`. + +The `{\pshow<num> <text>}` prints <text> in Red when current layer is equal +to <num> or it prints <text> normally when current layers is greater than <num>. +The transparent (invisible) text is used in other cases. + +The following dance: +\layers 3 +{\pshow2 Second text.} {\pshow3 Third text.} {\pshow1 First text.} +\endlayers +\pg+ + +was generated by + +\begtt +\layers 3 +{\pshow2 Second text.} {\pshow3 Third text.} {\pshow1 First text.} +\endlayers +\endtt + +\pg+ +* The <layered text> is treated as a macro parameter. So, you cannot use verbatim + nor `\sec` titles here. Maximal one `\layers` environment can be per one + page (terminated by `\pg+` or `\pg;` or `\pg.` + +\pg; %------------------------------------------------------------------ + +\sec Comparison \OpTeX/ slides with Beamer\fnote{\url{http://www.ctan.org/pkg/beamer}} + +The \LaTeX{} package {\bf\Blue Beamer} gives much more features and many themes +are prepared for Beamer, {\bf\Red but} +\pg+ +* the user of Beamer is forced to {\em program} his/her document using + dozens of \code{\\begin{foo}} and \code{\\end{foo}} and many another + programming constructions,\pg+ +* plain \TeX{} gives you a possibility to simply + {\em write} your document with minimal markup. The result is more compact. + You can concentrate on the contents of your document, not on the + programming syntax.\pg+ +* User needs to read 250 pages of doc for understanding Beamer,\pg+ +* on the other hand, you need to read only eleven + slides\fnote{this twelfth slide isn't counted} + and you are ready to use {\bf\Blue\OpTeX/ slides}. + +\pg; %------------------------------------------------------------------ + +\null +\vskip2cm +\centerline{\typosize[35/40]\bf Thanks for your attention}\pg+ + +\vskip2cm +\centerline{\Blue\typosize[60/70]\bf Questions?} + +\pg. %----------------------------- THE END ---------------------------- + |