From: Juergen Spitzmueller Date: Tue, 19 Mar 2019 06:07:22 +0000 (+0100) Subject: Reorganize templates and example folders X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=19bb6006b83b15a2d38b99f61c4c31a83885b005;p=features.git Reorganize templates and example folders Re-structure and rename files in a transparent way. Most template/example names now correspond to the (verbose GUI) name of their layouts. Note that this, most prominently, also changes [LANG/]splash.lyx to something less insiderish, namely "Welcome.lyx". --- diff --git a/lib/Makefile.am b/lib/Makefile.am index f22c9f7769..819a61ec81 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -68,319 +68,427 @@ dist_commands_DATA = \ arexamplesdir = $(pkgdatadir)/examples/ar dist_arexamples_DATA = \ - examples/ar/splash.lyx + examples/ar/Welcome.lyx caexamplesdir = $(pkgdatadir)/examples/ca dist_caexamples_DATA = \ - examples/ca/ItemizeBullets.lyx \ - examples/ca/splash.lyx + examples/ca/Welcome.lyx + +cainsetexamplesdir = $(pkgdatadir)/examples/ca/Graphics_&_Insets +dist_cainsetexamples_DATA = \ + examples/ca/Graphics_&_Insets/Itemize_Bullets.lyx csexamplesdir = $(pkgdatadir)/examples/cs dist_csexamples_DATA = \ - examples/cs/splash.lyx \ - examples/cs/priklad_syrovy.lyx \ - examples/cs/priklad_zLyXovany.lyx + examples/cs/Welcome.lyx \ + examples/cs/Example_(LyXified).lyx \ + examples/cs/Example_(raw).lyx daexamplesdir = $(pkgdatadir)/examples/da dist_daexamples_DATA = \ - examples/da/splash.lyx + examples/da/Welcome.lyx deexamplesdir = $(pkgdatadir)/examples/de dist_deexamples_DATA = \ - examples/de/beamer.lyx \ - examples/de/beamer-article.lyx \ - examples/de/beispiel_gelyxt.lyx \ - examples/de/beispiel_roh.lyx \ - examples/de/Braille.lyx \ - examples/de/Dezimal.lyx \ - examples/de/europassCV.lyx \ - examples/de/FeynmanDiagrams.lyx \ - examples/de/ItemizeBullets.lyx \ - examples/de/Lebenslauf.lyx \ - examples/de/linguistics.lyx \ - examples/de/MultilingualCaptions.lyx \ - examples/de/PDF-comment.lyx \ - examples/de/PDF-form.lyx \ - examples/de/serienbrief1.lyx \ - examples/de/serienbrief2.lyx \ - examples/de/serienbrief3.lyx \ - examples/de/splash.lyx \ - examples/de/tufte-handout.lyx + examples/de/Example_(LyXified).lyx \ + examples/de/Example_(raw).lyx \ + examples/de/Welcome.lyx + +decvexamplesdir = $(pkgdatadir)/examples/de/Curricula_Vitae +dist_decvexamples_DATA = \ + examples/de/Curricula_Vitae/Europass_CV_(2013).lyx \ + examples/de/Curricula_Vitae/Simple_CV.lyx + +dehandoutexamplesdir = $(pkgdatadir)/examples/de/Curricula_Vitae +dist_dehandoutexamples_DATA = \ + examples/de/Handouts/Tufte_Handout.lyx + +deinsetexamplesdir = $(pkgdatadir)/examples/de/Graphics_&_Insets +dist_deinsetexamples_DATA = \ + examples/de/Graphics_&_Insets/Itemize_Bullets.lyx \ + examples/de/Graphics_&_Insets/Feynman_Diagrams.lyx + +deletterexamplesdir = $(pkgdatadir)/examples/de/Letters +dist_deletterexamples_DATA = \ + examples/de/Letters/addressExample.adr \ + examples/de/Letters/Serial_Letter_1.lyx \ + examples/de/Letters/Serial_Letter_2.lyx \ + examples/de/Letters/Serial_Letter_3.lyx + +depresentationexamplesdir = $(pkgdatadir)/examples/de/Presentations +dist_depresentationexamples_DATA = \ + examples/de/Presentations/Beamer.lyx \ + examples/de/Presentations/Beamer_Article_(Standard_Class).lyx + +demoduleexamplesdir = $(pkgdatadir)/examples/de/Modules +dist_demoduleexamples_DATA = \ + examples/de/Modules/Braille.lyx \ + examples/de/Modules/Linguistics.lyx \ + examples/de/Modules/Multilingual_Captions.lyx \ + examples/de/Modules/PDF_Comments.lyx \ + examples/de/Modules/PDF_Form.lyx elexamplesdir = $(pkgdatadir)/examples/el dist_elexamples_DATA = \ - examples/el/splash.lyx + examples/el/Welcome.lyx esexamplesdir = $(pkgdatadir)/examples/es dist_esexamples_DATA = \ - examples/es/Braille.lyx \ - examples/es/ejemplo_con_lyx.lyx \ - examples/es/ejemplo_sin_lyx.lyx \ - examples/es/europeCV.lyx \ - examples/es/ItemizeBullets.lyx \ - examples/es/linguistics.lyx \ - examples/es/modernCV.lyx \ - examples/es/splash.lyx \ - examples/es/tufte-book.lyx \ - examples/es/tufte-handout.lyx + examples/es/Example_(LyXified).lyx \ + examples/es/Example_(raw).lyx \ + examples/es/Welcome.lyx + +esbookexamplesdir = $(pkgdatadir)/examples/es/Books +dist_esbookexamples_DATA = \ + examples/es/Books/Tufte_Book.lyx + +escvexamplesdir = $(pkgdatadir)/examples/es/Curricula_Vitae +dist_escvexamples_DATA = \ + examples/es/Curricula_Vitae/Europe_CV.lyx \ + examples/es/Curricula_Vitae/Modern_CV.lyx + +eshandoutexamplesdir = $(pkgdatadir)/examples/es/Handouts +dist_eshandoutexamples_DATA = \ + examples/es/Handouts/Tufte_Handout.lyx + +esinsetexamplesdir = $(pkgdatadir)/examples/es/Graphics_&_Insets +dist_esinsetexamples_DATA = \ + examples/es/Graphics_&_Insets/Itemize_Bullets.lyx + +esmoduleexamplesdir = $(pkgdatadir)/examples/es/Modules +dist_esmoduleexamples_DATA = \ + examples/es/Modules/Braille.lyx \ + examples/es/Modules/Linguistics.lyx euexamplesdir = $(pkgdatadir)/examples/eu dist_euexamples_DATA = \ - examples/eu/adibide_gordina.lyx \ - examples/eu/adibide_lyx-atua.lyx \ - examples/eu/splash.lyx + examples/eu/Example_(LyXified).lyx \ + examples/eu/Example_(raw).lyx + examples/eu/Welcome.lyx faexamplesdir = $(pkgdatadir)/examples/fa dist_faexamples_DATA = \ - examples/fa/splash.lyx + examples/fa/Welcome.lyx frexamplesdir = $(pkgdatadir)/examples/fr dist_frexamples_DATA = \ - examples/fr/AlignementDecimal.lyx \ - examples/fr/beamer.lyx \ - examples/fr/beamer-article.lyx \ - examples/fr/Braille.lyx \ - examples/fr/exemple_brut.lyx \ - examples/fr/exemple_lyxifie.lyx \ - examples/fr/FeynmanDiagrams.lyx \ - examples/fr/Foils.lyx \ - examples/fr/linguistics.lyx \ - examples/fr/ListesPuces.lyx \ - examples/fr/MultilingualCaptions.lyx \ - examples/fr/PDF-comment.lyx \ - examples/fr/powerdot.lyx \ - examples/fr/seminar.lyx \ - examples/fr/simplecv.lyx \ - examples/fr/splash.lyx \ - examples/fr/xyfigure.lyx \ - examples/fr/xyfigure.png \ - examples/fr/xypic.lyx + examples/fr/Example_(LyXified).lyx \ + examples/fr/Example_(raw).lyx \ + examples/fr/Welcome.lyx + +frcvexamplesdir = $(pkgdatadir)/examples/fr/Curricula_Vitae +dist_frcvexamples_DATA = \ + examples/fr/Curricula_Vitae/Simple_CV.lyx + +frinsetexamplesdir = $(pkgdatadir)/examples/fr/Graphics_&_Insets +dist_frinsetexamples_DATA = \ + examples/fr/Graphics_&_Insets/Itemize_Bullets.lyx \ + examples/fr/Graphics_&_Insets/Feynman_Diagrams.lyx \ + examples/fr/Graphics_&_Insets/XY-Figure.lyx \ + examples/fr/Graphics_&_Insets/xyfigure.png \ + examples/fr/Graphics_&_Insets/XY-Pic.lyx + +frmoduleexamplesdir = $(pkgdatadir)/examples/fr/Modules +dist_frmoduleexamples_DATA = \ + examples/fr/Modules/Linguistics.lyx \ + examples/fr/Modules/Multilingual_Captions.lyx \ + examples/fr/Modules/PDF_Comments.lyx + +frpresentationexamplesdir = $(pkgdatadir)/examples/fr/Presentations +dist_frpresentationexamples_DATA = \ + examples/fr/Presentations/Beamer.lyx \ + examples/fr/Presentations/Beamer_Article_(Standard_Class).lyx \ + examples/fr/Presentations/Foils.lyx \ + examples/fr/Presentations/Powerdot.lyx \ + examples/fr/Presentations/Seminar.lyx glexamplesdir = $(pkgdatadir)/examples/gl dist_glexamples_DATA = \ - examples/gl/exemplo_bruto.lyx \ - examples/gl/exemplo_lyxificado.lyx \ - examples/gl/splash.lyx + examples/gl/Example_(LyXified).lyx \ + examples/gl/Example_(raw).lyx \ + examples/gl/Welcome.lyx heexamplesdir = $(pkgdatadir)/examples/he dist_heexamples_DATA = \ - examples/he/example_lyxified.lyx \ - examples/he/example_raw.lyx \ - examples/he/splash.lyx + examples/he/Example_(LyXified).lyx \ + examples/he/Example_(raw).lyx \ + examples/he/Welcome.lyx huexamplesdir = $(pkgdatadir)/examples/hu dist_huexamples_DATA = \ - examples/hu/example_lyxified.lyx \ - examples/hu/example_raw.lyx \ - examples/hu/splash.lyx + examples/hu/Example_(LyXified).lyx \ + examples/hu/Example_(raw).lyx \ + examples/hu/Welcome.lyx idexamplesdir = $(pkgdatadir)/examples/id dist_idexamples_DATA = \ - examples/id/splash.lyx + examples/id/Welcome.lyx itexamplesdir = $(pkgdatadir)/examples/it dist_itexamples_DATA = \ - examples/it/ItemizeBullets.lyx \ - examples/it/splash.lyx + examples/it/Welcome.lyx + +itinsetexamplesdir = $(pkgdatadir)/examples/it/Graphics_&_Insets +dist_itinsetexamples_DATA = \ + examples/it/Graphics_&_Insets/Itemize_Bullets.lyx jaexamplesdir = $(pkgdatadir)/examples/ja dist_jaexamples_DATA = \ - examples/ja/Braille.lyx \ - examples/ja/FeynmanDiagrams.lyx \ - examples/ja/MultilingualCaptions.lyx \ - examples/ja/beamer.lyx \ - examples/ja/knitr.lyx \ - examples/ja/lilypond.lyx \ - examples/ja/linguistics.lyx \ - examples/ja/splash.lyx \ - examples/ja/sweave.lyx \ - examples/ja/xyfigure.png \ - examples/ja/xypic.lyx + examples/ja/Multilingual_Typesetting_(CJKutf8).lyx \ + examples/ja/Welcome.lyx + +jainsetexamplesdir = $(pkgdatadir)/examples/ja/Graphics_&_Insets +dist_jainsetexamples_DATA = \ + examples/ja/Graphics_&_Insets/Feynman_Diagrams.lyx \ + examples/ja/Graphics_&_Insets/xyfigure.png \ + examples/ja/Graphics_&_Insets/XY-Pic.lyx + +jamoduleexamplesdir = $(pkgdatadir)/examples/ja/Modules +dist_jamoduleexamples_DATA = \ + examples/ja/Modules/Braille.lyx \ + examples/ja/Modules/LilyPond_Book.lyx \ + examples/ja/Modules/Linguistics.lyx \ + examples/ja/Modules/Multilingual_Captions.lyx \ + examples/ja/Modules/Rnw_(knitr).lyx \ + examples/ja/Modules/Sweave.lyx + +japresentationexamplesdir = $(pkgdatadir)/examples/ja/Presentations +dist_japresentationexamples_DATA = \ + examples/ja/Presentations/Beamer.lyx koexamplesdir = $(pkgdatadir)/examples/ko dist_koexamples_DATA = \ - examples/ko/splash.lyx + examples/ko/Welcome.lyx nbexamplesdir = $(pkgdatadir)/examples/nb dist_nbexamples_DATA = \ - examples/nb/eksempel_lyxet.lyx \ - examples/nb/eksempel_txt.lyx \ - examples/nb/splash.lyx + examples/nb/Example_(LyXified).lyx \ + examples/nb/Example_(raw).lyx \ + examples/nb/Welcome.lyx nlexamplesdir = $(pkgdatadir)/examples/nl dist_nlexamples_DATA = \ - examples/nl/opsommingstekens.lyx \ - examples/nl/splash.lyx \ - examples/nl/voorbeeld_ruw.lyx \ - examples/nl/voorbeeld_verlyxt.lyx + examples/nl/Example_(LyXified).lyx \ + examples/nl/Example_(raw).lyx \ + examples/nl/Welcome.lyx + +nlinsetexamplesdir = $(pkgdatadir)/examples/nl/Graphics_&_Insets +dist_nlinsetexamples_DATA = \ + examples/nl/Graphics_&_Insets/Itemize_Bullets.lyx plexamplesdir = $(pkgdatadir)/examples/pl dist_plexamples_DATA = \ - examples/pl/splash.lyx + examples/pl/Welcome.lyx pt_BRexamplesdir = $(pkgdatadir)/examples/pt_BR dist_pt_BRexamples_DATA = \ - examples/pt_BR/splash.lyx + examples/pt_BR/Welcome.lyx pt_PTexamplesdir = $(pkgdatadir)/examples/pt_PT dist_pt_PTexamples_DATA = \ - examples/pt_PT/splash.lyx + examples/pt_PT/Welcome.lyx roexamplesdir = $(pkgdatadir)/examples/ro dist_roexamples_DATA = \ - examples/ro/splash.lyx + examples/ro/Welcome.lyx ruexamplesdir = $(pkgdatadir)/examples/ru dist_ruexamples_DATA = \ - examples/ru/example_lyxified.lyx \ - examples/ru/example_raw.lyx \ - examples/ru/splash.lyx + examples/ru/Example_(LyXified).lyx \ + examples/ru/Example_(raw).lyx + examples/ru/Welcome.lyx slexamplesdir = $(pkgdatadir)/examples/sl dist_slexamples_DATA = \ - examples/sl/primer_lyxan.lyx \ - examples/sl/primer_surov.lyx \ - examples/sl/splash.lyx + examples/sl/Example_(LyXified).lyx \ + examples/sl/Example_(raw).lyx \ + examples/sl/Welcome.lyx skexamplesdir = $(pkgdatadir)/examples/sk dist_skexamples_DATA = \ - examples/sk/splash.lyx + examples/sk/Welcome.lyx srexamplesdir = $(pkgdatadir)/examples/sr dist_srexamples_DATA = \ - examples/sr/Braille.lyx \ - examples/sr/splash.lyx + examples/sr/Welcome.lyx + +srmoduleexamplesdir = $(pkgdatadir)/examples/sr/Modules +dist_srmoduleexamples_DATA = \ + examples/sr/Modules/Braille.lyx svexamplesdir = $(pkgdatadir)/examples/sv dist_svexamples_DATA = \ - examples/sv/splash.lyx - -springerexamplesdir = $(pkgdatadir)/examples/springer -dist_springerexamples_DATA = \ - examples/springer/svmono_acknow.lyx \ - examples/springer/svmono_acronym.lyx \ - examples/springer/svmono_appendix.lyx \ - examples/springer/svmono_book-master.lyx \ - examples/springer/svmono_chapter.lyx \ - examples/springer/svmono_dedication.lyx \ - examples/springer/svmono_foreword.lyx \ - examples/springer/svmono_glossary.lyx \ - examples/springer/svmono_part.lyx \ - examples/springer/svmono_preface.lyx \ - examples/springer/svmono_referenc.lyx \ - examples/springer/svmono_solutions.lyx \ - examples/springer/svmult_acknow.lyx \ - examples/springer/svmult_acronym.lyx \ - examples/springer/svmult_appendix.lyx \ - examples/springer/svmult_author.lyx \ - examples/springer/svmult_cblist.lyx \ - examples/springer/svmult_dedication.lyx \ - examples/springer/svmult_editor-master.lyx \ - examples/springer/svmult_foreword.lyx \ - examples/springer/svmult_glossary.lyx \ - examples/springer/svmult_part.lyx \ - examples/springer/svmult_preface.lyx \ - examples/springer/svmult_referenc.lyx - -thesisexamplesdir = $(pkgdatadir)/examples/thesis -dist_thesisexamples_DATA = \ - examples/thesis/Acknowledgments.lyx \ - examples/thesis/alpha.bst \ - examples/thesis/Appendix.lyx \ - examples/thesis/Bibliography.lyx \ - examples/thesis/chapter-1.lyx \ - examples/thesis/chapter-2.lyx \ - examples/thesis/Summary.lyx \ - examples/thesis/thesis.lyx \ - examples/thesis/thesisExample.bib + examples/sv/Welcome.lyx + +thesisexamplesdir = $(pkgdatadir)/examples/Theses +dist_thesisexamples_DATA = + +phdthesisexamplesdir = $(pkgdatadir)/examples/Theses/PhD_Thesis +dist_phdthesisexamples_DATA = \ + examples/Theses/PhD_Thesis/Acknowledgments.lyx \ + examples/Theses/PhD_Thesis/alpha.bst \ + examples/Theses/PhD_Thesis/Appendix.lyx \ + examples/Theses/PhD_Thesis/Bibliography.lyx \ + examples/Theses/PhD_Thesis/Chapter_1.lyx \ + examples/Theses/PhD_Thesis/Chapter_2.lyx \ + examples/Theses/PhD_Thesis/Main_File.lyx \ + examples/Theses/PhD_Thesis/Summary.lyx \ + examples/Theses/PhD_Thesis/thesisExample.bib ukexamplesdir = $(pkgdatadir)/examples/uk dist_ukexamples_DATA = \ - examples/uk/splash.lyx + examples/uk/Welcome.lyx examplesdir = $(pkgdatadir)/examples dist_examples_DATA = \ - examples/Braille.lyx \ - examples/CV-image.eps \ - examples/CV-image.png \ - examples/Foils.lyx \ - examples/ItemizeBullets.lyx \ - examples/Literate.lyx \ - examples/aa_sample.lyx \ - examples/aas_sample.lyx \ - examples/aas_sample62.lyx \ - examples/achemso.lyx \ - examples/addressExample.adr \ - examples/amsart-test.lyx \ - examples/amsbook-test.lyx \ - examples/beamer.lyx \ - examples/beamer-article.lyx \ - examples/beamer-g4.jpg \ - examples/beamer-g4-mask.jpg \ - examples/beamer-icsi-logo.pdf \ - examples/beamer-knight1-mask.png \ - examples/beamer-knight1.png \ - examples/beamer-knight2-mask.png \ - examples/beamer-knight2.png \ - examples/beamer-knight3-mask.png \ - examples/beamer-knight3.png \ - examples/beamer-knight4-mask.png \ - examples/beamer-knight4.png \ - examples/beamerlyxexample1.lyx \ - examples/beamerposter.lyx \ examples/biblioExample.bib \ - examples/chess-article.lyx \ - examples/chessboard-article.lyx \ - examples/chessgame.lyx \ - examples/colored-boxes.lyx \ - examples/docbook_article.lyx \ - examples/europeCV.lyx \ - examples/europassCV.lyx \ - examples/example_lyxified.lyx \ - examples/example_raw.lyx \ - examples/FeynmanDiagrams.lyx \ - examples/gnuplot.lyx \ - examples/gnuplot-example.gp \ - examples/H-P-statements.lyx \ - examples/iecc05.fen \ - examples/iecc07.fen \ - examples/iecc12.fen \ - examples/instant_preview.lyx \ - examples/knitr.lyx \ - examples/landslide.lyx \ - examples/lilypond.lyx \ - examples/linguistics.lyx \ - examples/listerrors.lyx \ - examples/localization_test.lyx \ - examples/longsheet.gnumeric \ - examples/minted-filelisting.lyx \ - examples/minted-listings.lyx \ - examples/modernCV.lyx \ - examples/MultilingualCaptions.lyx \ - examples/noweb2lyx.lyx \ - examples/paralist.lyx \ - examples/PDF-comment.lyx \ - examples/PDF-form.lyx \ - examples/powerdot.lyx \ - examples/recipebook.lyx \ - examples/script_form.lyx \ - examples/seminar.lyx \ - examples/serial_letter1.lyx \ - examples/serial_letter2.lyx \ - examples/serial_letter3.lyx \ - examples/sheet1.gnumeric \ - examples/sheet2.ods \ - examples/sheet3.xls \ - examples/simplecv.lyx \ - examples/splash.lyx \ - examples/spreadsheet.lyx \ - examples/sweave.lyx \ - examples/tufte-book.lyx \ - examples/tufte-handout.lyx \ - examples/varwidth-floats-side-by-side.lyx \ - examples/xyfigure.lyx \ - examples/xyfigure.png \ - examples/xypic.lyx + examples/Example_(LyXified).lyx \ + examples/Example_(raw).lyx \ + examples/Localization_Test.lyx \ + examples/Welcome.lyx + +articleexamplesdir = $(pkgdatadir)/examples/Articles +dist_articleexamples_DATA = \ + examples/Articles/Astronomy_&_Astrophysics.lyx \ + examples/Articles/American_Astronomical_Society_(AASTeX_v._6).lyx \ + examples/Articles/American_Astronomical_Society_(AASTeX_v._6.2).lyx \ + examples/Articles/American_Chemical_Society_(ACS).lyx \ + examples/Articles/American_Mathematical_Society_(AMS).lyx \ + examples/Articles/DocBook_Article_(SGML).lyx + +articlechessexamplesdir = $(pkgdatadir)/examples/Articles/Chess +dist_articlechessexamples_DATA = \ + examples/Articles/Chess/Game_1.lyx \ + examples/Articles/Chess/Game_2.lyx + +bookexamplesdir = $(pkgdatadir)/examples/Books +dist_bookexamples_DATA = \ + examples/Books/American_Mathematical_Society_(AMS).lyx \ + examples/Books/Recipe_Book.lyx \ + examples/Books/Tufte_Book.lyx + +booksvmonoexamplesdir = $(pkgdatadir)/examples/Books/Springer_Monographs_(svmono) +dist_booksvmonoexamples_DATA = \ + examples/Books/Springer_Monographs_(svmono)/00_Main_File.lyx \ + examples/Books/Springer_Monographs_(svmono)/01_Dedication.lyx \ + examples/Books/Springer_Monographs_(svmono)/02_Foreword.lyx \ + examples/Books/Springer_Monographs_(svmono)/03_Preface.lyx \ + examples/Books/Springer_Monographs_(svmono)/04_Acknowledgements.lyx \ + examples/Books/Springer_Monographs_(svmono)/05_Acronym.lyx \ + examples/Books/Springer_Monographs_(svmono)/06_Part.lyx \ + examples/Books/Springer_Monographs_(svmono)/07_Chapter.lyx \ + examples/Books/Springer_Monographs_(svmono)/08_Appendix.lyx \ + examples/Books/Springer_Monographs_(svmono)/09_Glossary.lyx \ + examples/Books/Springer_Monographs_(svmono)/10_Solutions.lyx \ + examples/Books/Springer_Monographs_(svmono)/11_References.lyx + +booksvmultexamplesdir = $(pkgdatadir)/examples/Books/Springer_Contributed_Books_(svmult) +dist_booksvmultexamples_DATA = \ + examples/Books/Springer_Contributed_Books_(svmult)/00_Main_File.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/01_Dedication.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/02_Foreword.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/03_Preface.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/04_Acknowledgements.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/05_Contributor_List.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/06_Acronym.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/07_Part.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/08_Author.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/09_Appendix.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/10_Glossary.lyx \ + examples/Books/Springer_Contributed_Books_(svmult)/11_References.lyx + +cvexamplesdir = $(pkgdatadir)/examples/Curricula_Vitae +dist_cvexamples_DATA = \ + examples/Curricula_Vitae/Europass_CV_(2013).lyx \ + examples/Curricula_Vitae/Europe_CV.lyx \ + examples/Curricula_Vitae/Modern_CV.lyx \ + examples/Curricula_Vitae/Simple_CV.lyx \ + examples/Curricula_Vitae/CV-image.eps \ + examples/Curricula_Vitae/CV-image.png + +externalexamplesdir = $(pkgdatadir)/examples/External_Material +dist_externalexamples_DATA = \ + examples/External_Material/Gnuplot.lyx \ + examples/External_Material/gnuplot-example.gp \ + examples/External_Material/longsheet.gnumeric \ + examples/External_Material/longsheet.tex \ + examples/External_Material/sheet1.gnumeric \ + examples/External_Material/sheet2.ods \ + examples/External_Material/sheet3.xls \ + examples/External_Material/Spreadsheet.lyx + +handoutexamplesdir = $(pkgdatadir)/examples/Handouts +dist_handoutexamples_DATA = \ + examples/Handouts/Tufte_Handout.lyx + +insetexamplesdir = $(pkgdatadir)/examples/Graphics_&_Insets +dist_insetexamples_DATA = \ + examples/Graphics_&_Insets/Feynman_Diagrams.lyx \ + examples/Graphics_&_Insets/iecc05.fen \ + examples/Graphics_&_Insets/iecc07.fen \ + examples/Graphics_&_Insets/iecc12.fen \ + examples/Graphics_&_Insets/Instant_Preview.lyx \ + examples/Graphics_&_Insets/Itemize_Bullets.lyx \ + examples/Graphics_&_Insets/Minted_File_Listing.lyx \ + examples/Graphics_&_Insets/Minted_Listings.lyx \ + examples/Graphics_&_Insets/XY-Figure.lyx \ + examples/Graphics_&_Insets/xyfigure.png \ + examples/Graphics_&_Insets/XY-Pic.lyx + +letterexamplesdir = $(pkgdatadir)/examples/Letters +dist_letterexamples_DATA = \ + examples/Letters/addressExample.adr \ + examples/Letters/Serial_Letter_1.lyx \ + examples/Letters/Serial_Letter_2.lyx \ + examples/Letters/Serial_Letter_3.lyx + +moduleexamplesdir = $(pkgdatadir)/examples/Modules +dist_moduleexamples_DATA = \ + examples/Modules/Braille.lyx \ + examples/Modules/Chessboard.lyx \ + examples/Modules/Fancy_Colored_Boxes.lyx \ + examples/Modules/Hazard_and_Precautionary_Statements.lyx \ + examples/Modules/LilyPond_Book.lyx \ + examples/Modules/Linguistics.lyx \ + examples/Modules/Multilingual_Captions.lyx \ + examples/Modules/Noweb.lyx \ + examples/Modules/Noweb2LyX.lyx \ + examples/Modules/Noweb_Listerrors.lyx \ + examples/Modules/Paragraph_Lists_(paralist).lyx \ + examples/Modules/PDF_Comments.lyx \ + examples/Modules/PDF_Form.lyx \ + examples/Modules/Rnw_(knitr).lyx \ + examples/Modules/Sweave.lyx \ + examples/Modules/Variable-width_Minipages.lyx + +posterexamplesdir = $(pkgdatadir)/examples/Posters +dist_posterexamples_DATA = \ + examples/Posters/Beamerposter.lyx + +presentationexamplesdir = $(pkgdatadir)/examples/Presentations +dist_presentationexamples_DATA = \ + examples/Presentations/Beamer.lyx \ + examples/Presentations/Beamer_Article_(Standard_Class).lyx \ + examples/Presentations/beamer-g4.jpg \ + examples/Presentations/beamer-g4-mask.jpg \ + examples/Presentations/beamer-icsi-logo.pdf \ + examples/Presentations/beamer-knight1-mask.png \ + examples/Presentations/beamer-knight1.png \ + examples/Presentations/beamer-knight2-mask.png \ + examples/Presentations/beamer-knight2.png \ + examples/Presentations/beamer-knight3-mask.png \ + examples/Presentations/beamer-knight3.png \ + examples/Presentations/beamer-knight4-mask.png \ + examples/Presentations/beamer-knight4.png \ + examples/Presentations/Beamer_(Complex).lyx \ + examples/Presentations/Foils.lyx \ + examples/Presentations/Foils_Landslide.lyx \ + examples/Presentations/Powerdot.lyx \ + examples/Presentations/Seminar.lyx + +scriptexamplesdir = $(pkgdatadir)/examples/Scripts +dist_scriptexamples_DATA = \ + examples/Scripts/Hollywood.lyx fontsdir = $(pkgdatadir)/fonts dist_fonts_DATA = \ @@ -2410,66 +2518,96 @@ dist_scripts_DATA += \ templatesdir = $(pkgdatadir)/templates dist_templates_DATA = \ - templates/aa.lyx \ - templates/aastex6.lyx \ - templates/aastex62.lyx \ - templates/acmart.lyx \ - templates/AEA.lyx \ - templates/APA.lyx \ - templates/APA6.lyx \ - templates/beamer-conference-ornate-20min.lyx \ - templates/copernicus.lyx \ - templates/ctex.lyx \ - templates/de_beamer-conference-ornate-20min.lyx \ - templates/dinbrief.lyx \ - templates/DocBook_article.lyx \ - templates/ectaart.lyx \ - templates/elsarticle.lyx \ - templates/EPS-cropped.lyx \ - templates/es_beamer-conference-ornate-20min.lyx \ - templates/fr_beamer-conference-ornate-20min.lyx \ - templates/frletter.lyx \ - templates/g-brief2.lyx \ - templates/hollywood.lyx \ - templates/IEEEtran-CompSoc.lyx \ - templates/IEEEtran-Conference.lyx \ - templates/IEEEtran-Journal.lyx \ - templates/IEEEtran-TransMag.lyx \ - templates/IJMPC.lyx \ - templates/IJMPD.lyx \ - templates/IOP-article.lyx \ - templates/IUCr-article.lyx \ - templates/ja_beamer-conference-ornate-20min.lyx \ - templates/JASA.lyx \ - templates/JSS-article.lyx \ - templates/kluwer.lyx \ - templates/koma-letter2.lyx \ - templates/letter.lyx \ - templates/lettre.lyx \ - templates/maa-monthly.lyx \ - templates/PDF-cropped.lyx \ - templates/poster-a0poster-colored.lyx \ - templates/poster-a0poster-simple.lyx \ - templates/poster-beamerposter.lyx \ - templates/poster-sciposter.lyx \ - templates/README.new_templates \ - templates/RJournal.lyx \ - templates/revtex4.lyx \ - templates/revtex4-1.lyx \ - templates/slides.lyx - -obsoletetemplatesdir = $(pkgdatadir)/templates/obsolete + templates/EPS_(cropped).lyx \ + templates/PDF_(cropped).lyx \ + templates/README.new_templates + +articletemplatesdir = $(pkgdatadir)/templates/Articles +dist_articletemplates_DATA = \ + templates/Articles/American_Astronomical_Society_(AASTeX_v._6).lyx \ + templates/Articles/American_Astronomical_Society_(AASTeX_v._6.2).lyx \ + templates/Articles/American_Economic_Association_(AEA).lyx \ + templates/Articles/American_Psychological_Association_(APA).lyx \ + templates/Articles/American_Psychological_Association_(APA),_v._6.lyx \ + templates/Articles/Association_for_Computing_Machinery_(ACM).lyx \ + templates/Articles/Astronomy_&_Astrophysics.lyx \ + templates/Articles/Chinese_Article_(CTeX).lyx \ + templates/Articles/Copernicus_Publications_Manuscript_Preparation.lyx \ + templates/Articles/DocBook_Article_(SGML).lyx \ + templates/Articles/Econometrica.lyx \ + templates/Articles/Elsevier.lyx \ + templates/Articles/IEEE_Transactions_Computer_Society.lyx \ + templates/Articles/IEEE_Transactions_Conference.lyx \ + templates/Articles/IEEE_Transactions_Journal.lyx \ + templates/Articles/IEEE_Transactions_on_Magnetics.lyx \ + templates/Articles/Institute_of_Physics_(IOP).lyx \ + templates/Articles/Int._Journal_of_Modern_Physics_C.lyx \ + templates/Articles/Int._Journal_of_Modern_Physics_D.lyx \ + templates/Articles/International_Union_of_Crystallography_(IUCr).lyx \ + templates/Articles/Journal_of_Statistical_Software_(JSS)_version_2.lyx \ + templates/Articles/Journal_of_the_Acoustical_Society_of_America_(JASA).lyx \ + templates/Articles/Kluwer.lyx \ + templates/Articles/Mathematical_Monthly.lyx \ + templates/Articles/R_Journal.lyx \ + templates/Articles/REVTeX_(V._4).lyx \ + templates/Articles/REVTeX_(V._4.1).lyx \ + templates/Articles/Springers_Global_Journal_Template_(V._3).lyx + +depresentationtemplatesdir = $(pkgdatadir)/templates/de/Presentations +dist_depresentationtemplates_DATA = \ + templates/de/Presentations/Beamer.lyx + +espresentationtemplatesdir = $(pkgdatadir)/templates/es/Presentations +dist_espresentationtemplates_DATA = \ + templates/es/Presentations/Beamer.lyx + +frpresentationtemplatesdir = $(pkgdatadir)/templates/fr/Presentations +dist_frpresentationtemplates_DATA = \ + templates/fr/Presentations/Beamer.lyx + +japresentationtemplatesdir = $(pkgdatadir)/templates/ja/Presentations +dist_japresentationtemplates_DATA = \ + templates/ja/Presentations/Beamer.lyx + +lettertemplatesdir = $(pkgdatadir)/templates/Letters +dist_lettertemplates_DATA = \ + templates/Letters/DIN-Brief.lyx \ + templates/Letters/French_Letter_(frletter).lyx \ + templates/Letters/French_Letter_(lettre).lyx \ + templates/Letters/G-Brief_(V._2).lyx \ + templates/Letters/KOMA-Script_Letter_(V._2).lyx \ + templates/Letters/Letter_(Standard_Class).lyx + +obsoletetemplatesdir = $(pkgdatadir)/templates/Obsolete dist_obsoletetemplates_DATA = \ - templates/obsolete/ACM-siggraph.lyx \ - templates/obsolete/ACM-sigplan.lyx \ - templates/obsolete/ACM-SIGS.lyx \ - templates/obsolete/AGUTeX.lyx \ - templates/obsolete/g-brief-de.lyx \ - templates/obsolete/g-brief-en.lyx - -springertemplatesdir = $(pkgdatadir)/templates/springer -dist_springertemplates_DATA = \ - templates/springer/svjour3.lyx + templates/Obsolete/ACM_SIGGGRAPH_0.92_(obsolete).lyx \ + templates/Obsolete/ACM_SIGPLAN_(Obsolete).lyx \ + templates/Obsolete/ACM_SIG_Proceedings_(SP,_Obsolete).lyx \ + templates/Obsolete/American_Geophysical_Union_(AGUTeX).lyx + +obsoletegbrieftemplatesdir = $(pkgdatadir)/templates/Obsolete/G-Brief_(V._1,_Obsolete) +dist_obsoletegbrieftemplates_DATA = \ + templates/Obsolete/G-Brief_(V._1,_Obsolete)/German.lyx \ + templates/Obsolete/G-Brief_(V._1,_Obsolete)/English.lyx + +postertemplatesdir = $(pkgdatadir)/templates/Posters +dist_postertemplates_DATA = \ + templates/Posters/Beamerposter.lyx \ + templates/Posters/SciPoster.lyx + +posteraztemplatesdir = $(pkgdatadir)/templates/Posters/A0_Poster +dist_posteraztemplates_DATA = \ + templates/Posters/A0_Poster/Colored.lyx \ + templates/Posters/A0_Poster/Simple.lyx + +presentationtemplatesdir = $(pkgdatadir)/templates/Presentations +dist_presentationtemplates_DATA = \ + templates/Presentations/Beamer.lyx \ + templates/Presentations/Slides.lyx + +scriptstemplatesdir = $(pkgdatadir)/templates/Scripts +dist_scriptstemplates_DATA = \ + templates/Scripts/Hollywood.lyx texdir = $(pkgdatadir)/tex dist_tex_DATA = \ @@ -2530,33 +2668,81 @@ endif dist_noinst_DATA += lyx.desktop.in images/lyx.svg images/lyx.png exampleandtemplate_files = \ + $(dist_articleexamples_DATA) \ + $(dist_articlechessexamples_DATA) \ + $(dist_articletemplates_DATA) \ + $(dist_bookexamples_DATA) \ + $(dist_booksvmonoexamples_DATA) \ + $(dist_booksvmultexamples_DATA) \ $(dist_caexamples_DATA) \ + $(dist_cainsetexamples_DATA) \ $(dist_csexamples_DATA) \ + $(dist_cvexamples_DATA) \ $(dist_daexamples_DATA) \ $(dist_deexamples_DATA) \ + $(dist_decvexamples_DATA) \ + $(dist_dehandoutexamples_DATA) \ + $(dist_deinsetexamples_DATA) \ + $(dist_deletterexamples_DATA) \ + $(dist_depresentationexamples_DATA) \ + $(dist_demoduleexamples_DATA) \ + $(dist_depresentationtemplates_DATA) \ $(dist_elexamples_DATA) \ $(dist_esexamples_DATA) \ + $(dist_esbookexamples_DATA) \ + $(dist_escvexamples_DATA) \ + $(dist_eshandoutexamples_DATA) \ + $(dist_esinsetexamples_DATA) \ + $(dist_esmoduleexamples_DATA) \ + $(dist_espresentationtemplates_DATA) \ $(dist_euexamples_DATA) \ + $(dist_externalexamples_DATA) \ $(dist_faexamples_DATA) \ $(dist_frexamples_DATA) \ + $(dist_frcvexamples_DATA) \ + $(dist_frinsetexamples_DATA) \ + $(dist_frmoduleexamples_DATA) \ + $(dist_frpresentationexamples_DATA) \ + $(dist_frpresentationtemplates_DATA) \ $(dist_glexamples_DATA) \ + $(dist_handoutexamples_DATA) \ $(dist_heexamples_DATA) \ $(dist_huexamples_DATA) \ $(dist_idexamples_DATA) \ + $(dist_insetexamples_DATA) \ $(dist_itexamples_DATA) \ + $(dist_itinsetexamples_DATA) \ $(dist_jaexamples_DATA) \ + $(dist_jainsetexamples_DATA) \ + $(dist_jamoduleexamples_DATA) \ + $(dist_japresentationexamples_DATA) \ + $(dist_japresentationtemplates_DATA) \ $(dist_koexamples_DATA) \ + $(dist_letterexamples_DATA) \ + $(dist_lettertemplates_DATA) \ + $(dist_moduleexamples_DATA) \ $(dist_nbexamples_DATA) \ $(dist_nlexamples_DATA) \ + $(dist_nlinsetexamples_DATA) \ + $(dist_obsoletetemplates_DATA) \ + $(dist_obsoletegbrieftemplates_DATA) \ + $(dist_phdthesisexamples_DATA) \ $(dist_plexamples_DATA) \ + $(dist_posterexamples_DATA) \ + $(dist_postertemplates_DATA) \ + $(dist_posteraztemplates_DATA) \ + $(dist_presentationexamples_DATA) \ + $(dist_presentationtemplates_DATA) \ $(dist_ptexamples_DATA) \ $(dist_roexamples_DATA) \ $(dist_ruexamples_DATA) \ + $(dist_scriptexamples_DATA) \ + $(dist_scriptstemplates_DATA) \ $(dist_slexamples_DATA) \ $(dist_skexamples_DATA) \ $(dist_srexamples_DATA) \ + $(dist_srmoduleexamples_DATA) \ $(dist_svexamples_DATA) \ - $(dist_springerexamples_DATA) \ $(dist_thesisexamples_DATA) \ $(dist_ukexamples_DATA) \ $(dist_examples_DATA) \ diff --git a/lib/examples/Articles/American_Astronomical_Society_(AASTeX_v._6).lyx b/lib/examples/Articles/American_Astronomical_Society_(AASTeX_v._6).lyx new file mode 100644 index 0000000000..fd73b972ea --- /dev/null +++ b/lib/examples/Articles/American_Astronomical_Society_(AASTeX_v._6).lyx @@ -0,0 +1,2520 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass aastex6 +\begin_preamble +\newcommand{\vdag}{(v)^\dagger} +\newcommand{\myemail}{skywalker@galaxy.far.far.away} +\slugcomment{Not to appear in Nonlearned J., 45.} +\shorttitle{Djorgovski et al.} +\shortauthors{Collapsed Cores in Globular Clusters} +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\noindent +\align left +Sample document for contributions to journals of the American Astronomical + Society (AAS). + Please consult the +\begin_inset CommandInset href +LatexCommand href +name "AASTeX user guide" +target "http://journals.aas.org/authors/aastex/aasguide.html" +literal "false" + +\end_inset + + for details on how to use AASTeX. + +\end_layout + +\begin_layout Plain Layout +\noindent +\align left +An up-to-date sample LaTeX article using AASTeX is available under +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +http://journals.aas.org/authors/aastex/aastex.html#_download +\end_layout + +\end_inset + +. +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\noindent +\align left +The AASTeX document class uses a different name since version 6.0 (2016/02/16). + Depending on the version installed on your system, set the document class + to American Astronomical Society (AASTeX v. + 6) or American Astronomical Society (AASTeX v. + 5). + +\end_layout + +\begin_layout Plain Layout +\noindent +\align left +New features (cf. + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://journals.aas.org/authors/aastex/revisionhistory.html +\end_layout + +\end_inset + +) are only partially supported by LyX (see +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://www.lyx.org/trac/ticket/10027 +\end_layout + +\end_inset + +). +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +Collapsed Cores in Globular Clusters, Gauge-Boson Couplings, and AAS\SpecialChar TeX + Examples +\end_layout + +\begin_layout Author +S. + Djorgovski +\begin_inset Flex altaffilmark +status open + +\begin_layout Plain Layout +1,2,3 +\end_layout + +\end_inset + + and Ivan R. + King +\begin_inset Flex altaffilmark +status collapsed + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Affiliation +Astronomy Department, University of California, Berkeley, CA 94720 +\end_layout + +\begin_layout Author +C. + D. + Biemesderfer +\begin_inset Flex altaffilmark +status collapsed + +\begin_layout Plain Layout +4,5 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Affiliation +National Optical Astronomy Observatories, Tucson, AZ 85719 +\end_layout + +\begin_layout Email +aastex-help@aas.org +\end_layout + +\begin_layout And + +\end_layout + +\begin_layout Author +R. + J. + Hanisch +\begin_inset Flex altaffilmark +status collapsed + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Affiliation +Space Telescope Science Institute, Baltimore, MD 21218 +\end_layout + +\begin_layout Altaffilation +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +1 +\end_layout + +\end_inset + +Visiting Astronomer, Cerro Tololo Inter-American Observatory. + CTIO is operated by AURA, Inc. +\begin_inset space \space{} +\end_inset + +under contract to the National Science Foundation. +\end_layout + +\begin_layout Altaffilation +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +2 +\end_layout + +\end_inset + +Society of Fellows, Harvard University. +\end_layout + +\begin_layout Altaffilation +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +3 +\end_layout + +\end_inset + +present address: Center for Astrophysics, 60 Garden Street, Cambridge, MA + 02138 +\end_layout + +\begin_layout Altaffilation +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +4 +\end_layout + +\end_inset + +Visiting Programmer, Space Telescope Science Institute +\end_layout + +\begin_layout Altaffilation +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +5 +\end_layout + +\end_inset + +Patron, Alonso's Bar and Grill +\end_layout + +\begin_layout Abstract +This is a preliminary report on surface photometry of the major fraction + of known globular clusters, to see which of them show the signs of a collapsed + core. + We also explore some diversionary mathematics and recreational tables. + +\end_layout + +\begin_layout Keywords +clusters: globular, peanut—bosons: bozos +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +A focal problem today in the dynamics of globular clusters is core collapse. + It has been predicted by theory for decades +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +citep{hen61,lyn68,spi85} +\end_layout + +\end_inset + +, but observation has been less alert to the phenomenon. + For many years the central brightness peak in M15 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +citep{kin75,new78} +\end_layout + +\end_inset + + seemed a unique anomaly. + Then +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +citet{aur82} +\end_layout + +\end_inset + + suggested a central peak in NGC 6397, and a limited photographic survey + of ours +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +citep[Paper I]{djo84} +\end_layout + +\end_inset + + found three more cases, including NGC 6624, whose sharp center had often + been remarked on +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +citep{can78} +\end_layout + +\end_inset + +. + +\end_layout + +\begin_layout Section +Observations +\end_layout + +\begin_layout Standard +All our observations were short direct exposures with CCD's. + At Lick Observatory we used a TI 500 +\begin_inset Formula $\times$ +\end_inset + +500 chip and a GEC 575 +\begin_inset Formula $\times$ +\end_inset + +385, on the 1-m Nickel reflector. + The only filter available at Lick was red. + At CTIO we used a GEC 575 +\begin_inset Formula $\times$ +\end_inset + +385, with +\begin_inset Formula $B,V,$ +\end_inset + + and +\begin_inset Formula $R$ +\end_inset + + filters, and an RCA 512 +\begin_inset Formula $\times$ +\end_inset + +320, with +\begin_inset Formula $U,B,V,R,$ +\end_inset + + and +\begin_inset Formula $I$ +\end_inset + + filters, on the 1.5-m reflector. + In the CTIO observations we tried to concentrate on the shortest practicable + wavelengths; but faintness, reddening, and poor short-wavelength sensitivity + often kept us from observing in +\begin_inset Formula $U$ +\end_inset + + or even in +\begin_inset Formula $B$ +\end_inset + +. + All four cameras had scales of the order of 0.4 arcsec/pixel, and our field + sizes were around 3 arcmin. +\end_layout + +\begin_layout Standard +The CCD images are unfortunately not always suitable, for very poor clusters + or for clusters with large cores. + Since the latter are easily studied by other means, we augmented our own + CCD profiles by collecting from the literature a number of star-count profiles + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +citep{kin68,pet76,har84,ort85} +\end_layout + +\end_inset + +, as well as photoelectric profiles +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +citep{kin66,kin75} +\end_layout + +\end_inset + + and electronographic profiles +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +citep{kro84} +\end_layout + +\end_inset + +. + In a few cases we judged normality by eye estimates on one of the Sky Surveys. +\end_layout + +\begin_layout Section +Helicity Amplitudes +\end_layout + +\begin_layout Standard +It has been realized that helicity amplitudes provide a convenient means + for Feynman diagram +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Footnotes can be inserted like this. +\end_layout + +\end_inset + + evaluations. + These amplitude-level techniques are particularly convenient for calculations + involving many Feynman diagrams, where the usual trace techniques for the + amplitude squared becomes unwieldy. + Our calculations use the helicity techniques developed by other authors + +\begin_inset CommandInset citation +LatexCommand cite +key "hag86" +literal "true" + +\end_inset + +; we briefly summarize below. +\end_layout + +\begin_layout Subsection +Formalism +\end_layout + +\begin_layout Standard +\begin_inset CommandInset label +LatexCommand label +name "bozomath" + +\end_inset + + +\end_layout + +\begin_layout Standard +A tree-level amplitude in +\begin_inset Formula $e^{+}e^{-}$ +\end_inset + + collisions can be expressed in terms of fermion strings of the form +\begin_inset Formula +\begin{equation} +\bar{v}(p_{2},\sigma_{2})P_{-\tau}\hat{a}_{1}\hat{a}_{2}\cdots\hat{a}_{n}u(p_{1},\sigma_{1}), +\end{equation} + +\end_inset + + where +\begin_inset Formula $p$ +\end_inset + + and +\begin_inset Formula $\sigma$ +\end_inset + + label the initial +\begin_inset Formula $e^{\pm}$ +\end_inset + + four-momenta and helicities +\begin_inset Formula $(\sigma=\pm1)$ +\end_inset + +, +\begin_inset Formula $\hat{a}_{i}=a_{i}^{\mu}\gamma_{\nu}$ +\end_inset + + and +\begin_inset Formula $P_{\tau}=\frac{1}{2}(1+\tau\gamma_{5})$ +\end_inset + + is a chirality projection operator +\begin_inset Formula $(\tau=\pm1)$ +\end_inset + +. + The +\begin_inset Formula $a_{i}^{\mu}$ +\end_inset + + may be formed from particle four-momenta, gauge-boson polarization vectors + or fermion strings with an uncontracted Lorentz index associated with final-sta +te fermions. +\end_layout + +\begin_layout NoteToEditor +Figures 1 and 2 should appear side-by-side in print +\end_layout + +\begin_layout Standard +In the chiral representation the +\begin_inset Formula $\gamma$ +\end_inset + + matrices are expressed in terms of +\begin_inset Formula $2\times2$ +\end_inset + + Pauli matrices +\begin_inset Formula $\sigma$ +\end_inset + + and the unit matrix 1 as +\begin_inset Formula +\begin{eqnarray*} +\gamma^{\mu} & = & \left(\begin{array}{cc} +0 & \sigma_{+}^{\mu}\\ +\sigma_{-}^{\mu} & 0 +\end{array}\right),\gamma^{5}=\left(\begin{array}{cc} +-1 & 0\\ +0 & 1 +\end{array}\right),\\ +\sigma_{\pm}^{\mu} & = & ({\textbf{1}},\pm\sigma), +\end{eqnarray*} + +\end_inset + + giving +\begin_inset Formula +\begin{equation} +\hat{a}=\left(\begin{array}{cc} +0 & (\hat{a})_{+}\\ +(\hat{a})_{-} & 0 +\end{array}\right),(\hat{a})_{\pm}=a_{\mu}\sigma_{\pm}^{\mu}, +\end{equation} + +\end_inset + + The spinors are expressed in terms of two-component Weyl spinors as +\begin_inset Formula +\begin{equation} +u=\left(\begin{array}{c} +(u)_{-}\\ +(u)_{+} +\end{array}\right),v={\textbf{(}}\vdag_{+}{\textbf{,}}\vdag_{-}{\textbf{)}}. +\end{equation} + +\end_inset + + +\end_layout + +\begin_layout Standard +The Weyl spinors are given in terms of helicity eigenstates +\begin_inset Formula $\chi_{\lambda}(p)$ +\end_inset + + with +\begin_inset Formula $\lambda=\pm1$ +\end_inset + + by +\end_layout + +\begin_layout MathLetters +\begin_inset Formula +\begin{eqnarray} +u(p,\lambda)_{\pm} & = & (E\pm\lambda|{\textbf{p}}|)^{1/2}\chi_{\lambda}(p),\\ +v(p,\lambda)_{\pm} & = & \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi_{-\lambda}(p) +\end{eqnarray} + +\end_inset + + +\end_layout + +\begin_layout Section +Floating material and so forth +\end_layout + +\begin_layout Standard +Consider a task that computes profile parameters for a modified Lorentzian + of the form +\begin_inset Formula +\begin{equation} +I=\frac{1}{1+d_{1}^{P(1+d_{2})}} +\end{equation} + +\end_inset + + where +\begin_inset Formula +\[ +d_{1}=\sqrt{\left(\begin{array}{c} +\frac{x_{1}}{R_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c} +\frac{y_{1}}{R_{min}}\end{array}\right)^{2}} +\] + +\end_inset + + +\begin_inset Formula +\[ +d_{2}=\sqrt{\left(\begin{array}{c} +\frac{x_{1}}{PR_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c} +\case{y_{1}}{PR_{min}}\end{array}\right)^{2}} +\] + +\end_inset + + +\begin_inset Formula +\[ +x_{1}=(x-x_{0})\cos\Theta+(y-y_{0})\sin\Theta +\] + +\end_inset + + +\begin_inset Formula +\[ +y_{1}=-(x-x_{0})\sin\Theta+(y-y_{0})\cos\Theta +\] + +\end_inset + + +\end_layout + +\begin_layout Standard +In these expressions +\begin_inset Formula $x_{0}$ +\end_inset + +, +\begin_inset Formula $y_{0}$ +\end_inset + + is the star center, and +\begin_inset Formula $\Theta$ +\end_inset + + is the angle with the +\begin_inset Formula $x$ +\end_inset + + axis. + Results of this task are shown in table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tbl-2" + +\end_inset + +. + It is not clear how these sorts of analyses may affect determination of + +\begin_inset Formula $M_{\text{\sun}}$ +\end_inset + +, but the assumption is that the alternate results should be less than 90° + out of phase with previous values. + We have no observations of +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ion{Ca}{2} +\end_layout + +\end_inset + +. + Roughly +\begin_inset Formula $\nicefrac{4}{5}$ +\end_inset + + of the electronically submitted abstracts for AAS meetings are error-free. + +\end_layout + +\begin_layout Acknowledgements + +\end_layout + +\begin_layout Standard +We are grateful to V. + Barger, T. + Han, and R. + J. + N. + Phillips for doing the math in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "bozomath" + +\end_inset + +. + More information on the AAS\SpecialChar TeX + macros package are available at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.aas.org/publications/aastex +\end_layout + +\end_inset + + or the +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +anchor{ +\end_layout + +\end_inset + +ftp://www.aas.org/pubs/ +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +AAS ftp site +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +. + +\end_layout + +\begin_layout Software +IRAF, AIPS, Astropy, ... + +\end_layout + +\begin_layout Appendix + +\end_layout + +\begin_layout Section +Appendicial material +\end_layout + +\begin_layout Standard +Consider once again a task that computes profile parameters for a modified + Lorentzian of the form +\begin_inset Formula +\begin{equation} +I=\frac{1}{1+d_{1}^{P(1+d_{2})}} +\end{equation} + +\end_inset + + where +\end_layout + +\begin_layout MathLetters +\begin_inset Formula +\[ +d_{1}=\frac{3}{4}\sqrt{\left(\begin{array}{c} +\frac{x_{1}}{R_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c} +\frac{y_{1}}{R_{min}}\end{array}\right)^{2}} +\] + +\end_inset + + +\begin_inset Formula +\begin{equation} +d_{2}=\case{3}{4}\sqrt{\left(\begin{array}{c} +\frac{x_{1}}{PR_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c} +\case{y_{1}}{PR_{min}}\end{array}\right)^{2}} +\end{equation} + +\end_inset + + +\begin_inset Formula +\begin{eqnarray} +x_{1} & = & (x-x_{0})\cos\Theta+(y-y_{0})\sin\Theta\\ +y_{1} & = & -(x-x_{0})\sin\Theta+(y-y_{0})\cos\Theta +\end{eqnarray} + +\end_inset + + +\end_layout + +\begin_layout Standard +For completeness, here is one last equation. + +\begin_inset Formula +\begin{equation} +e=mc^{2} +\end{equation} + +\end_inset + + +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Auri\\`ere(1982)" +key "aur82" +literal "true" + +\end_inset + +Aurière, M. + 1982, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aap +\end_layout + +\end_inset + +, 109, 301 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Canizares et al.(1978)" +key "can78" +literal "true" + +\end_inset + +Canizares, C. + R., Grindlay, J. + E., Hiltner, W. + A., Liller, W., and McClintock, J. + E. + 1978, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +apj +\end_layout + +\end_inset + +, 224, 39 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Djorgovski and King(1984)" +key "djo84" +literal "true" + +\end_inset + +Djorgovski, S., and King, I. + R. + 1984, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +apjl +\end_layout + +\end_inset + +, 277, L49 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Hagiwara and Zeppenfeld(1986)" +key "hag86" +literal "true" + +\end_inset + +Hagiwara, K., and Zeppenfeld, D. + 1986, Nucl.Phys., 274, 1 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Harris and van den Bergh(1984)" +key "har84" +literal "true" + +\end_inset + +Harris, W. + E., and van den Bergh, S. + 1984, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aj +\end_layout + +\end_inset + +, 89, 1816 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "H\\`enon(1961)" +key "hen61" +literal "true" + +\end_inset + +Hénon, M. + 1961, Ann.d'Ap., 24, 369 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "King(1966)" +key "kin66" +literal "true" + +\end_inset + +King, I. + R. + 1966, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aj +\end_layout + +\end_inset + +, 71, 276 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "King(1975)" +key "kin75" +literal "true" + +\end_inset + +King, I. + R. + 1975, Dynamics of Stellar Systems, A. + Hayli, Dordrecht: Reidel, 1975, 99 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "King et al.(1968)" +key "kin68" +literal "true" + +\end_inset + +King, I. + R., Hedemann, E., Hodge, S. + M., and White, R. + E. + 1968, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aj +\end_layout + +\end_inset + +, 73, 456 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Kron et al.(1984)" +key "kro84" +literal "true" + +\end_inset + +Kron, G. + E., Hewitt, A. + V., and Wasserman, L. + H. + 1984, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +pasp +\end_layout + +\end_inset + +, 96, 198 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Lynden-Bell and Wood(1968)" +key "lyn68" +literal "true" + +\end_inset + +Lynden-Bell, D., and Wood, R. + 1968, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +mnras +\end_layout + +\end_inset + +, 138, 495 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Newell and O'Neil(1978)" +key "new78" +literal "true" + +\end_inset + +Newell, E. + B., and O'Neil, E. + J. + 1978, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +apjs +\end_layout + +\end_inset + +, 37, 27 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Ortolani et al.(1985)" +key "ort85" +literal "true" + +\end_inset + +Ortolani, S., Rosino, L., and Sandage, A. + 1985, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aj +\end_layout + +\end_inset + +, 90, 473 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Peterson(1976)" +key "pet76" +literal "true" + +\end_inset + +Peterson, C. + J. + 1976, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aj +\end_layout + +\end_inset + +, 81, 617 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Spitzer(1985)" +key "spi85" +literal "true" + +\end_inset + +Spitzer, L. + 1985, Dynamics of Star Clusters, J. + Goodman and P. + Hut, Dordrecht: Reidel, 109 +\end_layout + +\begin_layout Standard +\begin_inset Newpage clearpage +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Caption FigCaption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig1" + +\end_inset + +This is the first figure and it uses sgi9259.eps as its EPS figure file. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Caption FigCaption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig2" + +\end_inset + +This is an example of a long figure caption that must be set as a paragraph. + The processor has to buffer the text of the caption, so it is good not + to be too wordy, but that would make for poor communication as well. + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Caption FigCaption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig3" + +\end_inset + +This figure has no associated EPS file, so the optional parameter is omitted. + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Newpage clearpage +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Terribly relevant tabular information. +\begin_inset CommandInset label +LatexCommand label +name "tbl-2" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Star +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + Height +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $d_{x}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $d_{y}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $n$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $\chi^{2}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $R_{maj}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $R_{min}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $P$ +\end_inset + + +\begin_inset Flex tablenotemark +status collapsed + +\begin_layout Plain Layout +a +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $PR_{maj}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $PR_{min}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Theta$ +\end_inset + + +\begin_inset Flex tablenotemark +status collapsed + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Ref. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +tableline +\backslash +tableline +\end_layout + +\end_inset + +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +33472.5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +53 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +27.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.065 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.940 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3.900 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +68.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +116.2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-27.639 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1,2 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + 2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +27802.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +60 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3.7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.628 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.510 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.156 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6.8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +7.5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-26.764 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + 3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +29210.6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0.9 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +60 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.622 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.551 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.159 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6.7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +7.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-40.272 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + 4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +32733.8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-1.2 +\begin_inset Flex tablenotemark +status open + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +41 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +54.8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.282 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.156 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4.313 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +117.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +78.2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-35.847 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5,6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + 5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + 9607.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +60 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.669 +\begin_inset Flex tablenotemark +status collapsed + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.574 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.343 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8.0 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8.9 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-33.417 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + 6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +31638.6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0.1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +39 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +315.2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + 3.433 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3.075 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +7.488 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +92.1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +25.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-12.052 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Table note +a +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +Sample footnote for table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tbl-2" + +\end_inset + + that was generated with the \SpecialChar LaTeX + table environment +\end_layout + +\begin_layout Table note +b +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +Yet another sample footnote for table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tbl-2" + +\end_inset + + +\end_layout + +\begin_layout Table note +c +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +Another sample footnote for table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tbl-2" + +\end_inset + + +\end_layout + +\begin_layout TableComments +We can also attach a long-ish paragraph of explanatory material to a table. + Use +\backslash +tablerefs to append a list of references. + The following references were from a different table: I've patched them + in here to show how they look, but don't take them too seriously—I certainly + have not. +\end_layout + +\begin_layout TableRefs +(1) Barbuy, Spite, & Spite 1985; (2) Bond 1980; (3) Carbon et al. + 1987; (4) Hobbs & Duncan 1987; (5) Gilroy et al. + 1988: (6) Gratton & Ortolani 1986; (7) Gratton & Sneden 1987; (8) Gratton + & Sneden (1988); (9) Gratton & Sneden 1991; (10) Kraft et al. + 1982; (11) LCL, or Laird, 1990; (12) Leep & Wallerstein 1981; (13) Luck + & Bond 1981; (14) Luck & Bond 1985; (15) Magain 1987; (16) Magain 1989; + (17) Peterson 1981; (18) Peterson, Kurucz, & Carney 1990; (19) RMB; (20) + Schuster & Nissen 1988; (21) Schuster & Nissen 1989b; (22) Spite et al. + 1984; (23) Spite & Spite 1986; (24) Hobbs & Thorburn 1991; (25) Hobbs et + al. + 1991; (26) Olsen 1983. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +LyX can load deluxetable files verbatim. + To see this in action, dissolve the following Note and copy the file table.tex + from the AASTeX 5.0 distribution into the same directory as this file. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\begin_inset CommandInset include +LatexCommand input +filename "table" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Articles/American_Astronomical_Society_(AASTeX_v._6.2).lyx b/lib/examples/Articles/American_Astronomical_Society_(AASTeX_v._6.2).lyx new file mode 100644 index 0000000000..47a016d353 --- /dev/null +++ b/lib/examples/Articles/American_Astronomical_Society_(AASTeX_v._6.2).lyx @@ -0,0 +1,2397 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 562 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass aastex62 +\begin_preamble +\newcommand{\myemail}{skywalker@galaxy.far.far.away} +%\slugcomment{Not to appear in Nonlearned J., 45.} +\shorttitle{Djorgovski et al.} +\shortauthors{Collapsed Cores in Globular Clusters} +\end_preamble +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding auto +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement class +\float_alignment class +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine natbib +\cite_engine_type authoryear +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 0 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\noindent +\align left +Sample document for contributions to journals of the American Astronomical + Society (AAS). + Please consult the +\begin_inset CommandInset href +LatexCommand href +name "AASTeX user guide" +target "http://journals.aas.org/authors/aastex/aasguide.html" +literal "false" + +\end_inset + + for details on how to use AASTeX. + +\end_layout + +\begin_layout Plain Layout +\noindent +\align left +An up-to-date sample LaTeX article using AASTeX is available under +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +http://journals.aas.org/authors/aastex/aastex.html#_download +\end_layout + +\end_inset + +. +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\noindent +\align left +The AASTeX document class uses a different name since version 6.0 (2016/02/16). + Depending on the version installed on your system, set the document class + to American Astronomical Society (AASTeX v. + 6) or American Astronomical Society (AASTeX v. + 5). + +\end_layout + +\begin_layout Plain Layout +\noindent +\align left +New features (cf. + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://journals.aas.org/authors/aastex/revisionhistory.html +\end_layout + +\end_inset + +) are only partially supported by LyX (see +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://www.lyx.org/trac/ticket/10027 +\end_layout + +\end_inset + +). +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +Collapsed Cores in Globular Clusters, Gauge-Boson Couplings, and AAS\SpecialChar TeX + Examples +\end_layout + +\begin_layout Author +S. + Djorgovski and Ivan R. + King +\end_layout + +\begin_layout Affiliation +Astronomy Department, University of California, Berkeley, CA 94720 +\end_layout + +\begin_layout Altaffilation +Visiting Astronomer +\begin_inset Newline newline +\end_inset + + Cerro Tololo Inter-American Observatory. +\begin_inset Newline newline +\end_inset + +CTIO is operated by AURA Inc. +\begin_inset space \space{} +\end_inset + +under contract to the National Science Foundation. +\end_layout + +\begin_layout Altaffilation +Society of Fellows, Harvard University. +\end_layout + +\begin_layout Altaffilation +present address: Center for Astrophysics +\begin_inset Newline newline +\end_inset + +60 Garden Street, Cambridge, MA 02138 +\end_layout + +\begin_layout Author +C. + D. + Biemesderfer +\end_layout + +\begin_layout Affiliation +National Optical Astronomy Observatories, Tucson, AZ 85719 +\end_layout + +\begin_layout Altaffilation +Visiting Programmer, Space Telescope Science Institute +\end_layout + +\begin_layout Altaffilation +Patron, Alonso's Bar and Grill +\end_layout + +\begin_layout Email +aastex-help@aas.org +\end_layout + +\begin_layout Author +R. + J. + Hanisch +\end_layout + +\begin_layout Affiliation +Space Telescope Science Institute, Baltimore, MD 21218 +\end_layout + +\begin_layout Altaffilation +Patron, Alonso's Bar and Grill +\end_layout + +\begin_layout Abstract +This is a preliminary report on surface photometry of the major fraction + of known globular clusters, to see which of them show the signs of a collapsed + core. + We also explore some diversionary mathematics and recreational tables. + +\end_layout + +\begin_layout Keywords +clusters: globular, peanut—bosons: bozos +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +A focal problem today in the dynamics of globular clusters is core collapse. + It has been predicted by theory for decades +\begin_inset CommandInset citation +LatexCommand citep +key "hen61,lyn68,spi85" +literal "false" + +\end_inset + +, but observation has been less alert to the phenomenon. + For many years the central brightness peak in M15 +\begin_inset CommandInset citation +LatexCommand citep +key "kin75,new78" +literal "false" + +\end_inset + + seemed a unique anomaly. + Then +\begin_inset CommandInset citation +LatexCommand citep +key "aur82" +literal "false" + +\end_inset + + suggested a central peak in NGC 6397, and a limited photographic survey + of ours +\begin_inset CommandInset citation +LatexCommand citep +after "Paper I" +key "djo84" +literal "false" + +\end_inset + + found three more cases, including NGC 6624, whose sharp center had often + been remarked on +\begin_inset CommandInset citation +LatexCommand citep +key "can78" +literal "false" + +\end_inset + +. + +\end_layout + +\begin_layout Section +Observations +\end_layout + +\begin_layout Standard +All our observations were short direct exposures with CCD's. + At Lick Observatory we used a TI 500 +\begin_inset Formula $\times$ +\end_inset + +500 chip and a GEC 575 +\begin_inset Formula $\times$ +\end_inset + +385, on the 1-m Nickel reflector. + The only filter available at Lick was red. + At CTIO we used a GEC 575 +\begin_inset Formula $\times$ +\end_inset + +385, with +\begin_inset Formula $B,V,$ +\end_inset + + and +\begin_inset Formula $R$ +\end_inset + + filters, and an RCA 512 +\begin_inset Formula $\times$ +\end_inset + +320, with +\begin_inset Formula $U,B,V,R,$ +\end_inset + + and +\begin_inset Formula $I$ +\end_inset + + filters, on the 1.5-m reflector. + In the CTIO observations we tried to concentrate on the shortest practicable + wavelengths; but faintness, reddening, and poor short-wavelength sensitivity + often kept us from observing in +\begin_inset Formula $U$ +\end_inset + + or even in +\begin_inset Formula $B$ +\end_inset + +. + All four cameras had scales of the order of 0.4 arcsec/pixel, and our field + sizes were around 3 arcmin. +\end_layout + +\begin_layout Standard +The CCD images are unfortunately not always suitable, for very poor clusters + or for clusters with large cores. + Since the latter are easily studied by other means, we augmented our own + CCD profiles by collecting from the literature a number of star-count profiles + +\begin_inset CommandInset citation +LatexCommand citep +key "kin68,pet76,har84,ort85" +literal "false" + +\end_inset + +, as well as photoelectric profiles +\begin_inset CommandInset citation +LatexCommand citep +key "kin66,kin75" +literal "false" + +\end_inset + + and electronographic profiles +\begin_inset CommandInset citation +LatexCommand citep +key "kro84" +literal "false" + +\end_inset + +. + In a few cases we judged normality by eye estimates on one of the Sky Surveys. +\end_layout + +\begin_layout Section +Helicity Amplitudes +\end_layout + +\begin_layout Standard +It has been realized that helicity amplitudes provide a convenient means + for Feynman diagram +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Footnotes can be inserted like this. +\end_layout + +\end_inset + + evaluations. + These amplitude-level techniques are particularly convenient for calculations + involving many Feynman diagrams, where the usual trace techniques for the + amplitude squared becomes unwieldy. + Our calculations use the helicity techniques developed by other authors + +\begin_inset CommandInset citation +LatexCommand cite +key "hag86" +literal "true" + +\end_inset + +; we briefly summarize below. +\end_layout + +\begin_layout Subsection +Formalism +\end_layout + +\begin_layout Standard +\begin_inset CommandInset label +LatexCommand label +name "bozomath" + +\end_inset + + +\end_layout + +\begin_layout Standard +A tree-level amplitude in +\begin_inset Formula $e^{+}e^{-}$ +\end_inset + + collisions can be expressed in terms of fermion strings of the form +\begin_inset Formula +\begin{equation} +\bar{v}(p_{2},\sigma_{2})P_{-\tau}\hat{a}_{1}\hat{a}_{2}\cdots\hat{a}_{n}u(p_{1},\sigma_{1}), +\end{equation} + +\end_inset + + where +\begin_inset Formula $p$ +\end_inset + + and +\begin_inset Formula $\sigma$ +\end_inset + + label the initial +\begin_inset Formula $e^{\pm}$ +\end_inset + + four-momenta and helicities +\begin_inset Formula $(\sigma=\pm1)$ +\end_inset + +, +\begin_inset Formula $\hat{a}_{i}=a_{i}^{\mu}\gamma_{\nu}$ +\end_inset + + and +\begin_inset Formula $P_{\tau}=\frac{1}{2}(1+\tau\gamma_{5})$ +\end_inset + + is a chirality projection operator +\begin_inset Formula $(\tau=\pm1)$ +\end_inset + +. + The +\begin_inset Formula $a_{i}^{\mu}$ +\end_inset + + may be formed from particle four-momenta, gauge-boson polarization vectors + or fermion strings with an uncontracted Lorentz index associated with final-sta +te fermions. +\end_layout + +\begin_layout NoteToEditor +Figures 1 and 2 should appear side-by-side in print +\end_layout + +\begin_layout Standard +In the chiral representation the +\begin_inset Formula $\gamma$ +\end_inset + + matrices are expressed in terms of +\begin_inset Formula $2\times2$ +\end_inset + + Pauli matrices +\begin_inset Formula $\sigma$ +\end_inset + + and the unit matrix 1 as +\begin_inset Formula +\begin{eqnarray*} +\gamma^{\mu} & = & \left(\begin{array}{cc} +0 & \sigma_{+}^{\mu}\\ +\sigma_{-}^{\mu} & 0 +\end{array}\right),\gamma^{5}=\left(\begin{array}{cc} +-1 & 0\\ +0 & 1 +\end{array}\right),\\ +\sigma_{\pm}^{\mu} & = & ({\textbf{1}},\pm\sigma), +\end{eqnarray*} + +\end_inset + + giving +\begin_inset Formula +\begin{equation} +\hat{a}=\left(\begin{array}{cc} +0 & (\hat{a})_{+}\\ +(\hat{a})_{-} & 0 +\end{array}\right),(\hat{a})_{\pm}=a_{\mu}\sigma_{\pm}^{\mu}, +\end{equation} + +\end_inset + + The spinors are expressed in terms of two-component Weyl spinors as +\begin_inset Formula +\begin{equation} +u=\left(\begin{array}{c} +(u)_{-}\\ +(u)_{+} +\end{array}\right),v={\textbf{(}}\vdag_{+}{\textbf{,}}\vdag_{-}{\textbf{)}}. +\end{equation} + +\end_inset + + +\end_layout + +\begin_layout Standard +The Weyl spinors are given in terms of helicity eigenstates +\begin_inset Formula $\chi_{\lambda}(p)$ +\end_inset + + with +\begin_inset Formula $\lambda=\pm1$ +\end_inset + + by +\end_layout + +\begin_layout MathLetters +\begin_inset Formula +\begin{eqnarray} +u(p,\lambda)_{\pm} & = & (E\pm\lambda|{\textbf{p}}|)^{1/2}\chi_{\lambda}(p),\\ +v(p,\lambda)_{\pm} & = & \pm\lambda(E\mp\lambda|{\textbf{p}}|)^{1/2}\chi_{-\lambda}(p) +\end{eqnarray} + +\end_inset + + +\end_layout + +\begin_layout Section +Floating material and so forth +\end_layout + +\begin_layout Standard +Consider a task that computes profile parameters for a modified Lorentzian + of the form +\begin_inset Formula +\begin{equation} +I=\frac{1}{1+d_{1}^{P(1+d_{2})}} +\end{equation} + +\end_inset + + where +\begin_inset Formula +\[ +d_{1}=\sqrt{\left(\begin{array}{c} +\frac{x_{1}}{R_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c} +\frac{y_{1}}{R_{min}}\end{array}\right)^{2}} +\] + +\end_inset + + +\begin_inset Formula +\[ +d_{2}=\sqrt{\left(\begin{array}{c} +\frac{x_{1}}{PR_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c} +\case{y_{1}}{PR_{min}}\end{array}\right)^{2}} +\] + +\end_inset + + +\begin_inset Formula +\[ +x_{1}=(x-x_{0})\cos\Theta+(y-y_{0})\sin\Theta +\] + +\end_inset + + +\begin_inset Formula +\[ +y_{1}=-(x-x_{0})\sin\Theta+(y-y_{0})\cos\Theta +\] + +\end_inset + + +\end_layout + +\begin_layout Standard +In these expressions +\begin_inset Formula $x_{0}$ +\end_inset + +, +\begin_inset Formula $y_{0}$ +\end_inset + + is the star center, and +\begin_inset Formula $\Theta$ +\end_inset + + is the angle with the +\begin_inset Formula $x$ +\end_inset + + axis. + Results of this task are shown in table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tbl-2" + +\end_inset + +. + It is not clear how these sorts of analyses may affect determination of + +\begin_inset Formula $M_{\text{\sun}}$ +\end_inset + +, but the assumption is that the alternate results should be less than 90° + out of phase with previous values. + We have no observations of +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +ion{Ca}{2} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + +. + Roughly +\begin_inset Formula $\nicefrac{4}{5}$ +\end_inset + + of the electronically submitted abstracts for AAS meetings are error-free. + +\end_layout + +\begin_layout Acknowledgements +We are grateful to V. + Barger, T. + Han, and R. + J. + N. + Phillips for doing the math in section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "bozomath" + +\end_inset + +. + More information on the AAS\SpecialChar TeX + macros package are available at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.aas.org/publications/aastex +\end_layout + +\end_inset + + or the +\begin_inset CommandInset href +LatexCommand href +name "AAS ftp site" +target "ftp://www.aas.org/pubs/AAS ftp site" +literal "false" + +\end_inset + +. +\end_layout + +\begin_layout Software +IRAF, AIPS, Astropy, ... +\end_layout + +\begin_layout Appendix + +\end_layout + +\begin_layout Section +Appendicial material +\end_layout + +\begin_layout Standard +Consider once again a task that computes profile parameters for a modified + Lorentzian of the form +\begin_inset Formula +\begin{equation} +I=\frac{1}{1+d_{1}^{P(1+d_{2})}} +\end{equation} + +\end_inset + + where +\end_layout + +\begin_layout MathLetters +\begin_inset Formula +\[ +d_{1}=\frac{3}{4}\sqrt{\left(\begin{array}{c} +\frac{x_{1}}{R_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c} +\frac{y_{1}}{R_{min}}\end{array}\right)^{2}} +\] + +\end_inset + + +\begin_inset Formula +\begin{equation} +d_{2}=\case{3}{4}\sqrt{\left(\begin{array}{c} +\frac{x_{1}}{PR_{maj}}\end{array}\right)^{2}+\left(\begin{array}{c} +\case{y_{1}}{PR_{min}}\end{array}\right)^{2}} +\end{equation} + +\end_inset + + +\begin_inset Formula +\begin{eqnarray} +x_{1} & = & (x-x_{0})\cos\Theta+(y-y_{0})\sin\Theta\\ +y_{1} & = & -(x-x_{0})\sin\Theta+(y-y_{0})\cos\Theta +\end{eqnarray} + +\end_inset + + +\end_layout + +\begin_layout Standard +For completeness, here is one last equation. + +\begin_inset Formula +\begin{equation} +e=mc^{2} +\end{equation} + +\end_inset + + +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Auri\\`ere(1982)" +key "aur82" +literal "true" + +\end_inset + +Aurière, M. + 1982, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aap +\end_layout + +\end_inset + +, 109, 301 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Canizares et al.(1978)" +key "can78" +literal "true" + +\end_inset + +Canizares, C. + R., Grindlay, J. + E., Hiltner, W. + A., Liller, W., and McClintock, J. + E. + 1978, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +apj +\end_layout + +\end_inset + +, 224, 39 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Djorgovski and King(1984)" +key "djo84" +literal "true" + +\end_inset + +Djorgovski, S., and King, I. + R. + 1984, +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +apjl +\end_layout + +\end_inset + + +\end_layout + +\end_inset + +, 277, L49 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Hagiwara and Zeppenfeld(1986)" +key "hag86" +literal "true" + +\end_inset + +Hagiwara, K., and Zeppenfeld, D. + 1986, Nucl.Phys., 274, 1 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Harris and van den Bergh(1984)" +key "har84" +literal "true" + +\end_inset + +Harris, W. + E., and van den Bergh, S. + 1984, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aj +\end_layout + +\end_inset + +, 89, 1816 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "H\\`enon(1961)" +key "hen61" +literal "true" + +\end_inset + +Hénon, M. + 1961, Ann.d'Ap., 24, 369 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "King(1966)" +key "kin66" +literal "true" + +\end_inset + +King, I. + R. + 1966, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aj +\end_layout + +\end_inset + +, 71, 276 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "King(1975)" +key "kin75" +literal "true" + +\end_inset + +King, I. + R. + 1975, Dynamics of Stellar Systems, A. + Hayli, Dordrecht: Reidel, 1975, 99 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "King et al.(1968)" +key "kin68" +literal "true" + +\end_inset + +King, I. + R., Hedemann, E., Hodge, S. + M., and White, R. + E. + 1968, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aj +\end_layout + +\end_inset + +, 73, 456 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Kron et al.(1984)" +key "kro84" +literal "true" + +\end_inset + +Kron, G. + E., Hewitt, A. + V., and Wasserman, L. + H. + 1984, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +pasp +\end_layout + +\end_inset + +, 96, 198 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Lynden-Bell and Wood(1968)" +key "lyn68" +literal "true" + +\end_inset + +Lynden-Bell, D., and Wood, R. + 1968, +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +mnras +\end_layout + +\end_inset + + +\end_layout + +\end_inset + +, 138, 495 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Newell and O'Neil(1978)" +key "new78" +literal "true" + +\end_inset + +Newell, E. + B., and O'Neil, E. + J. + 1978, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +apjs +\end_layout + +\end_inset + +, 37, 27 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Ortolani et al.(1985)" +key "ort85" +literal "true" + +\end_inset + +Ortolani, S., Rosino, L., and Sandage, A. + 1985, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aj +\end_layout + +\end_inset + +, 90, 473 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Peterson(1976)" +key "pet76" +literal "true" + +\end_inset + +Peterson, C. + J. + 1976, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +aj +\end_layout + +\end_inset + +, 81, 617 +\end_layout + +\begin_layout References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "Spitzer(1985)" +key "spi85" +literal "true" + +\end_inset + +Spitzer, L. + 1985, Dynamics of Star Clusters, J. + Goodman and P. + Hut, Dordrecht: Reidel, 109 +\end_layout + +\begin_layout Standard +\begin_inset Newpage clearpage +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Caption FigCaption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig1" + +\end_inset + +This is the first figure and it uses sgi9259.eps as its EPS figure file. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Caption FigCaption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig2" + +\end_inset + +This is an example of a long figure caption that must be set as a paragraph. + The processor has to buffer the text of the caption, so it is good not + to be too wordy, but that would make for poor communication as well. + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Caption FigCaption + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig3" + +\end_inset + +This figure has no associated EPS file, so the optional parameter is omitted. + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Newpage clearpage +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Terribly relevant tabular information. +\begin_inset CommandInset label +LatexCommand label +name "tbl-2" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Star +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + Height +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $d_{x}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $d_{y}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $n$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $\chi^{2}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $R_{maj}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $R_{min}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $P$ +\end_inset + + +\begin_inset Flex tablenotemark +status collapsed + +\begin_layout Plain Layout +a +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $PR_{maj}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\begin_inset Formula $PR_{min}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Theta$ +\end_inset + + +\begin_inset Flex tablenotemark +status collapsed + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Ref. +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +tableline +\backslash +tableline +\end_layout + +\end_inset + +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +33472.5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +53 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +27.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.065 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.940 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3.900 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +68.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +116.2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-27.639 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1,2 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + 2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +27802.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +60 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3.7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.628 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.510 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.156 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6.8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +7.5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-26.764 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + 3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +29210.6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0.9 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +60 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.622 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.551 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.159 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6.7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +7.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-40.272 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + 4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +32733.8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-1.2 +\begin_inset Flex tablenotemark +status open + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +41 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +54.8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.282 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.156 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4.313 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +117.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +78.2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-35.847 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5,6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + 5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + 9607.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-0.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +60 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.669 +\begin_inset Flex tablenotemark +status collapsed + +\begin_layout Plain Layout +c +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.574 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2.343 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8.0 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8.9 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-33.417 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + 6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +31638.6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1.6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0.1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +39 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +315.2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + 3.433 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3.075 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +7.488 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +92.1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +25.3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-12.052 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Table note +a +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +Sample footnote for table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tbl-2" + +\end_inset + + that was generated with the \SpecialChar LaTeX + table environment +\end_layout + +\begin_layout Table note +b +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +Yet another sample footnote for table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tbl-2" + +\end_inset + + +\end_layout + +\begin_layout Table note +c +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +Another sample footnote for table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tbl-2" + +\end_inset + + +\end_layout + +\begin_layout TableComments +We can also attach a long-ish paragraph of explanatory material to a table. + Use +\backslash +tablerefs to append a list of references. + The following references were from a different table: I've patched them + in here to show how they look, but don't take them too seriously—I certainly + have not. +\end_layout + +\begin_layout TableRefs +(1) Barbuy, Spite, & Spite 1985; (2) Bond 1980; (3) Carbon et al. + 1987; (4) Hobbs & Duncan 1987; (5) Gilroy et al. + 1988: (6) Gratton & Ortolani 1986; (7) Gratton & Sneden 1987; (8) Gratton + & Sneden (1988); (9) Gratton & Sneden 1991; (10) Kraft et al. + 1982; (11) LCL, or Laird, 1990; (12) Leep & Wallerstein 1981; (13) Luck + & Bond 1981; (14) Luck & Bond 1985; (15) Magain 1987; (16) Magain 1989; + (17) Peterson 1981; (18) Peterson, Kurucz, & Carney 1990; (19) RMB; (20) + Schuster & Nissen 1988; (21) Schuster & Nissen 1989b; (22) Spite et al. + 1984; (23) Spite & Spite 1986; (24) Hobbs & Thorburn 1991; (25) Hobbs et + al. + 1991; (26) Olsen 1983. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +LyX can load deluxetable files verbatim. + To see this in action, dissolve the following Note and copy the file table.tex + from the AASTeX 5.0 distribution into the same directory as this file. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\begin_inset CommandInset include +LatexCommand input +filename "table" +literal "true" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Articles/American_Chemical_Society_(ACS).lyx b/lib/examples/Articles/American_Chemical_Society_(ACS).lyx new file mode 100644 index 0000000000..7253ac3d82 --- /dev/null +++ b/lib/examples/Articles/American_Chemical_Society_(ACS).lyx @@ -0,0 +1,595 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass achemso +\begin_preamble +% If issues arise when submitting your manuscript, you may want to +% un-comment the next line. This provides information on the +% version of every file you have used. +%\listfiles +\end_preamble +\options journal=jacsat,manuscript=article +\use_default_options false +\begin_modules +theorems-ams +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command bibtex +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This is an example \SpecialChar LyX + file for articles to be submitted to journals of the + American Chemistry Society (ACS). + For general infos see +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://wiki.lyx.org/Layouts/Achemso +\end_layout + +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The journal where you want to submit is specified in the document class + options of this file. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +A demonstration of the achemso \SpecialChar LaTeX + class +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +\family sans +achemso +\family default + demonstration +\end_layout + +\end_inset + + +\begin_inset Foot +status open + +\begin_layout Plain Layout +A footnote for the title +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Author +Andrew N. + Other +\end_layout + +\begin_layout Alt Affiliation +A shared footnote +\end_layout + +\begin_layout Author +Fred T. + Secondauthor +\end_layout + +\begin_layout Affiliation +Current address: Some other place, Othertöwn, Germany +\end_layout + +\begin_layout Author +I. + Ken Groupleader +\end_layout + +\begin_layout Affiliation +A shared footnote +\end_layout + +\begin_layout Email +i.k.groupleader@unknown.uu +\end_layout + +\begin_layout Phone ++123 (0)123 4445556 +\end_layout + +\begin_layout Fax ++123 (0)123 4445557 +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The affiliation of authors is given after the authors; each +\family sans +Affiliation +\family default + applies to all preceding authors not already assigned an affiliation. +\end_layout + +\begin_layout Plain Layout + +\family sans +Altaffiliation +\family default + should be used for new address, etc. +\end_layout + +\begin_layout Plain Layout + +\family sans +Alsoaffiliation +\family default + is used on a per author basis when authors are associated with multiple + institutions. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Affiliation +Department of Chemistry, Unknown University, Unknown Town +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Unknown University +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Also Affiliation +Department of Chemistry, Second University, Nearby Town +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Second University +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Abbreviations +IR,NMR,UV +\end_layout + +\begin_layout Keywords +American Chemical Society, \SpecialChar LaTeX + +\end_layout + +\begin_layout Abstract +This is the abstract. +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +This is a paragraph of text. +\end_layout + +\begin_layout Section +Results and discussion +\end_layout + +\begin_layout Subsection +Outline +\end_layout + +\begin_layout Subsection +References +\end_layout + +\begin_layout Standard +The class makes various changes to the way that references are handled. + The class loads +\family sans +natbib +\family default +, and also the appropriate bibliography style. + References can be made using the normal method; the citation should be + placed before any punctuation, as the class will move it if using a superscript + citation style +\begin_inset CommandInset citation +LatexCommand cite +key "Mena2000,Abernethy2003" +literal "true" + +\end_inset + +. + The use of +\family sans +natbib +\family default + allows the use of the various citation commands of that package: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +citeauthor{ +\end_layout + +\end_inset + +Abernethy2003 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + have shown something, or in +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +citeyear{ +\end_layout + +\end_inset + +Cotton1999 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +. + Long lists of authors will be automatically truncated in most article formats, + but not in supplementary information or reviews +\begin_inset CommandInset citation +LatexCommand cite +key "Pople2003" +literal "true" + +\end_inset + +. + Notice that +\begin_inset Quotes eld +\end_inset + + +\begin_inset Flex Latin +status open + +\begin_layout Plain Layout +et al. +\end_layout + +\end_inset + + +\begin_inset Quotes erd +\end_inset + + is auto-formatted. +\end_layout + +\begin_layout Standard +Multiple citations to be combined into a list can be given as a single citation. + This uses the +\family sans +mciteplus +\family default + package +\begin_inset CommandInset citation +LatexCommand cite +key "Arduengo1992,*Eisenstein2005,*Arduengo1994" +literal "true" + +\end_inset + +. + Citations other than the first of the list should be indicated with a star. +\end_layout + +\begin_layout Standard +The class also handles notes to be added to the bibliography. + These should be given in place in the document +\begin_inset Flex Bibnote +status open + +\begin_layout Plain Layout +This is a bibnote; its text will be moved the the references section. + Bibnotes are inserted with the menu +\family sans +Insert\SpecialChar menuseparator +Custom Insets +\family default +. +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Standard +As with citations, the text should be placed before punctuation. + A note is also generated if a citation has an optional note. + This assumes that the whole work has already been cited: odd numbering + will result if this is not the case +\begin_inset CommandInset citation +LatexCommand cite +key "Cotton1999" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Subsection +Some Infos +\end_layout + +\begin_layout Standard +Besides the standard figure and table floats, the achemso \SpecialChar LaTeX +-class provides + scheme, chart, and graph floats. +\end_layout + +\begin_layout Standard +\begin_inset Float scheme +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +An example scheme +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float chart +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +An example chart +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float graph +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +An example graph +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Chemical symbols can easily be input: +\begin_inset Flex Chemistry +status open + +\begin_layout Plain Layout +H2SO4 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Acknowledgement +Acknowledgments go here. +\end_layout + +\begin_layout SupplementalInfo +Supplemental informations go here. +\end_layout + +\begin_layout TOC entry +Some journals require a graphical entry for the Table of Contents. + This should be laid out ``print ready'' so that the sizing of the text + is correct. +\end_layout + +\begin_layout TOC entry +The surrounding frame is 9 +\begin_inset space \thinspace{} +\end_inset + +cm by 3.5 +\begin_inset space \thinspace{} +\end_inset + +cm, which is the maximum permitted for +\emph on +Journal of the American Chemical Society +\emph default + graphical table of content entries. + The box will not resize if the content is too big: instead it will overflow + the edge of the box. +\end_layout + +\begin_layout TOC entry +This box and the associated title will always be printed on a separate page + at the end of the document. +\end_layout + +\begin_layout Standard +\begin_inset CommandInset bibtex +LatexCommand bibtex +bibfiles "biblioExample" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Articles/American_Mathematical_Society_(AMS).lyx b/lib/examples/Articles/American_Mathematical_Society_(AMS).lyx new file mode 100644 index 0000000000..499f344646 --- /dev/null +++ b/lib/examples/Articles/American_Mathematical_Society_(AMS).lyx @@ -0,0 +1,657 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass amsart +\use_default_options false +\begin_modules +theorems-ams +eqs-within-sections +figs-within-sections +theorems-ams-extended +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding default +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 2 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Test of AMS-Art Style +\end_layout + +\begin_layout Author +David L. + Johnson +\end_layout + +\begin_layout Address +Department of Mathematics +\begin_inset Newline newline +\end_inset + +Lehigh University +\begin_inset Newline newline +\end_inset + +Bethlehem, PA 18015 +\end_layout + +\begin_layout Current Address +Home +\end_layout + +\begin_layout Email +dlj0@lehigh.edu +\end_layout + +\begin_layout URL +http://www.lehigh.edu/~dlj0/dlj0.html +\end_layout + +\begin_layout Keywords +Test +\end_layout + +\begin_layout Thanks +To Emmanuel, for forcing me to fix this, and Jean-Marc, for making it possible, + and necessary. + Also to Mate, who suggested numerous improvements. +\end_layout + +\begin_layout Dedicatory +To my wife. +\end_layout + +\begin_layout Translator +Joe +\end_layout + +\begin_layout Subjectclass +Primary: 12G34, Secondary: 09G87 +\end_layout + +\begin_layout Abstract +This is not very abstract. + Note that the abstract must be part of the title stuff for AMS. + \SpecialChar LyX + is aware of that since version 0.12.1. + Good. + +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +This file, and any amsart-* \SpecialChar LyX + file, can be converted to either of the numbering + schemes by simply changing the document class in the +\family sans +\bar under +L +\bar default +ayout- +\bar under +D +\bar default +ocument +\family default + popup. + The styles are: +\end_layout + +\begin_layout Enumerate +amsart - The standard AMS-article format. + All results and similar statements are numbered as +\begin_inset Formula $(n.m)$ +\end_inset + +, where the first number refers to the section, and the second refers to + the total number of results (Theorems, Corollaries, Propositions, Definitions + and Remarks, etc.) in that section. + There are also many (but not all) environments available unnumbered, which + is occasionally needed. + Unnumbered environments indicated by an asterisk at the end. +\end_layout + +\begin_layout Enumerate +amsart-seq - Here, numbering for each type of statement is in its own sequence, + with no reference to the section number. + There are also many (but not all) environments available unnumbered, which + is occasionally needed. +\end_layout + +\begin_layout Theorem +This is a numbered theorem +\end_layout + +\begin_layout Proof +Here is its proof. + Here is its proof. + Here is its proof. + Here is its proof. + Here is its proof. + Here is its proof. + +\end_layout + +\begin_layout Standard +More text. + Note that two occurrences of the same environment, like two definitions, + need to be separated somehow. + For the moment, the best way is to include a paragraph with a %, in the + \SpecialChar LaTeX + environment, if you really want two definitions (or whatever) together, + with no intervening text of another sort. +\end_layout + +\begin_layout Theorem* +This is an unnumbered theorem +\end_layout + +\begin_layout Proof +Here is its proof. + Here is its proof. + Here is its proof. + Here is its proof. + Here is its proof. + Here is its proof. +\end_layout + +\begin_layout Corollary +First corollary. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Corollary* +Unnumbered corollary. + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +% +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Corollary* +A second, with no intervening text. + Note the % to force a separation. +\end_layout + +\begin_layout Lemma +Lemma number 1 +\end_layout + +\begin_layout Proposition +First proposition. +\end_layout + +\begin_layout Proposition* +Unnumbered version. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Conjecture* +So wild I didn't number it. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Algorithm +first this, then the next +\end_layout + +\begin_layout Fact +Not fiction. +\end_layout + +\begin_layout Fact* +Bald statement of fact. + Unnumbered environments are often used for emphasis, or in a short presentation + that doesn't require numbered results. + +\end_layout + +\begin_layout Axiom +It stands to reason. +\end_layout + +\begin_layout Definition +a word means exactly what I say it means. +\end_layout + +\begin_layout Definition* +Unnumbered. +\end_layout + +\begin_layout Standard +Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + +\end_layout + +\begin_layout Example +This should be an example. +\end_layout + +\begin_layout Standard +Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + Plain text. + +\end_layout + +\begin_layout Condition +If you say so. +\end_layout + +\begin_layout Problem +I don't know what to write is the problem. +\end_layout + +\begin_layout Remark +I think this will be useful. +\end_layout + +\begin_layout Claim +I did it the way the documentation said to. +\end_layout + +\begin_layout Note +It may need more work yet. +\end_layout + +\begin_layout Standard +More plain text, in standard format. +\end_layout + +\begin_layout Theorem +This is a second numbered theorem +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Corollary +Second corollary. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 2 +\end_layout + +\begin_layout Proposition +Second proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Notation +\begin_inset Formula $S=\mathbb{R}$ +\end_inset + +. +\end_layout + +\begin_layout Summary +In the end, will it matter? +\end_layout + +\begin_layout Acknowledgement +Thanks to Mattias Ettrich. + Without him I never would have learned \SpecialChar LaTeX +. +\end_layout + +\begin_layout Case +If this works, then the rest will. +\end_layout + +\begin_layout Conclusion +It seems to work. +\end_layout + +\begin_layout Proof +Here goes another proof. +\end_layout + +\begin_layout Standard +Plain text. +\end_layout + +\begin_layout Section +Next try. +\end_layout + +\begin_layout Standard +This tries out the section environments. +\end_layout + +\begin_layout Theorem +This is a theorem +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Corollary +Third corollary. + First one of this section. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 3 +\end_layout + +\begin_layout Proposition +Third proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Subsection +This is a subsection +\end_layout + +\begin_layout Standard +With more results therein. +\end_layout + +\begin_layout Theorem +This is a theorem, maybe the fourth one. +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Corollary +Fourth corollary. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 4 +\end_layout + +\begin_layout Proposition +Fourth proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Standard +More random text. +\end_layout + +\begin_layout Theorem +This is a theorem +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Claim +I believe this is true. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 5 +\end_layout + +\begin_layout Proposition +Fifth proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Subsubsection +This is the subsection with results. +\end_layout + +\begin_layout Standard +The quick, brown fox jumped over the lazy dog. +\end_layout + +\begin_layout Theorem +This is a theorem - sixth in the series +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Corollary +Sixth corollary. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 6 +\end_layout + +\begin_layout Proposition +Sixth proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "1" +literal "true" + +\end_inset + +Johnson, D. + L. + +\emph on +Out of my head +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "2" +literal "true" + +\end_inset + +American Mathematical Society, +\emph on +Instructions for preparation of papers and monographs: AMS-\SpecialChar LaTeX + +\emph default +, (1997). +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "3" +literal "true" + +\end_inset + +American Mathematical Society, +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Articles/Astronomy_&_Astrophysics.lyx b/lib/examples/Articles/Astronomy_&_Astrophysics.lyx new file mode 100644 index 0000000000..960ff171ab --- /dev/null +++ b/lib/examples/Articles/Astronomy_&_Astrophysics.lyx @@ -0,0 +1,1261 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass aa +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command bibtex +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine natbib +\cite_engine_type authoryear +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 2 +\papersides 2 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\family roman +\series medium +\size normal +This is an example \SpecialChar LyX + file for articles to be submitted to the Journal of + Astronomy & Astrophysics (A&A). + How to install the A&A \SpecialChar LaTeX + class to your \SpecialChar LaTeX + system is explained in +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://wiki.lyx.org/Layouts/Astronomy-Astrophysics +\end_layout + +\end_inset + +. +\begin_inset Newline newline +\end_inset + +Depending on the submission state and the abstract layout, you need to use + different document class options that are listed in the aa manual. +\family default + +\begin_inset Newline newline +\end_inset + + +\family roman +\series default +Note: +\series medium + If you use accented characters in your document, you must use the predefined + document class option +\series default +latin9 +\series medium + in the document settings. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +Hydrodynamics of giant planet formation +\end_layout + +\begin_layout Subtitle +I. + Overviewing the +\begin_inset Formula $\kappa$ +\end_inset + +-mechanism +\end_layout + +\begin_layout Author +G. + Wuchterl +\begin_inset Flex institutemark +status open + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +and +\end_layout + +\end_inset + + C. + Ptolemy +\begin_inset Flex institutemark +status collapsed + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fnmsep +\end_layout + +\end_inset + + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Just to show the usage of the elements in the author field +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout + +\backslash +fnmsep is only needed for more than one consecutive notes/marks +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Offprint +G. + Wuchterl +\end_layout + +\begin_layout Address +Institute for Astronomy (IfA), University of Vienna, Türkenschanzstrasse + 17, A-1180 Vienna +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex Email +status open + +\begin_layout Plain Layout +wuchterl@amok.ast.univie.ac.at +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +and +\end_layout + +\end_inset + +University of Alexandria, Department of Geography, ... +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex Email +status collapsed + +\begin_layout Plain Layout +c.ptolemy@hipparch.uheaven.space +\end_layout + +\end_inset + + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +The university of heaven temporarily does not accept e-mails +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Date +Received September 15, 1996; accepted March 16, 1997 +\end_layout + +\begin_layout Abstract (unstructured) +To investigate the physical nature of the `nuc\SpecialChar softhyphen +leated instability' of proto + giant planets, the stability of layers in static, radiative gas spheres + is analysed on the basis of Baker's standard one-zone model. + It is shown that stability depends only upon the equations of state, the + opacities and the local thermodynamic state in the layer. + Stability and instability can therefore be expressed in the form of stability + equations of state which are universal for a given composition. + The stability equations of state are calculated for solar composition and + are displayed in the domain +\begin_inset Formula $-14\leq\lg\rho/[\mathrm{g}\,\mathrm{cm}^{-3}]\leq0$ +\end_inset + +, +\begin_inset Formula $8.8\leq\lg e/[\mathrm{erg}\,\mathrm{g}^{-1}]\leq17.7$ +\end_inset + +. + These displays may be used to determine the one-zone stability of layers + in stellar or planetary structure models by directly reading off the value + of the stability equations for the thermodynamic state of these layers, + specified by state quantities as density +\begin_inset Formula $\rho$ +\end_inset + +, temperature +\begin_inset Formula $T$ +\end_inset + + or specific internal energy +\begin_inset Formula $e$ +\end_inset + +. + Regions of instability in the +\begin_inset Formula $(\rho,e)$ +\end_inset + +-plane are described and related to the underlying microphysical processes. + Vibrational instability is found to be a common phenomenon at temperatures + lower than the second He ionisation zone. + The +\begin_inset Formula $\kappa$ +\end_inset + +-mechanism is widespread under `cool' conditions. +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Citations are not allowed in A&A abstracts. +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This is the unstructured abstract type, an example for the structured abstract + is in the +\family sans +aa.lyx +\family default + template file that comes with \SpecialChar LyX +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Keywords +giant planet formation – +\begin_inset Formula $\kappa$ +\end_inset + +-mechanism – stability of gas spheres +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +In the +\emph on +nucleated instability +\emph default + (also called core instability) hypothesis of giant planet formation, a + critical mass for static core envelope protoplanets has been found. + Mizuno ( +\begin_inset CommandInset citation +LatexCommand cite +key "Eisenstein2005" +literal "true" + +\end_inset + +) determined the critical mass of the core to be about +\begin_inset Formula $12\,M_{\oplus}$ +\end_inset + + ( +\begin_inset Formula $M_{\oplus}=5.975\,10^{27}\,\mathrm{g}$ +\end_inset + + is the Earth mass), which is independent of the outer boundary conditions + and therefore independent of the location in the solar nebula. + This critical value for the core mass corresponds closely to the cores + of today's giant planets. +\end_layout + +\begin_layout Standard +Although no hydrodynamical study has been available many workers conjectured + that a collapse or rapid contraction will ensue after accumulating the + critical mass. + The main motivation for this article is to investigate the stability of + the static envelope at the critical mass. + With this aim the local, linear stability of static radiative gas spheres + is investigated on the basis of Baker's ( +\begin_inset CommandInset citation +LatexCommand cite +key "Abernethy2003" +literal "true" + +\end_inset + +) standard one-zone model. +\end_layout + +\begin_layout Standard +Phenomena similar to the ones described above for giant planet formation + have been found in hydrodynamical models concerning star formation where + protostellar cores explode (Tscharnuter +\begin_inset CommandInset citation +LatexCommand cite +key "Cotton1999" +literal "true" + +\end_inset + +, Balluch +\begin_inset CommandInset citation +LatexCommand cite +key "Mena2000" +literal "true" + +\end_inset + +), whereas earlier studies found quasi-steady collapse flows. + The similarities in the (micro)physics, i. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +constitutive relations of protostellar cores and protogiant planets serve + as a further motivation for this study. +\end_layout + +\begin_layout Section +Baker's standard one-zone model +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide true +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:FigGam" + +\end_inset + +Adiabatic exponent +\begin_inset Formula $\Gamma_{1}$ +\end_inset + +. + +\begin_inset Formula $\Gamma_{1}$ +\end_inset + + is plotted as a function of +\begin_inset Formula $\lg$ +\end_inset + + internal energy +\begin_inset Formula $[\mathrm{erg}\,\mathrm{g}^{-1}]$ +\end_inset + + and +\begin_inset Formula $\lg$ +\end_inset + + density +\begin_inset Formula $[\mathrm{g}\,\mathrm{cm}^{-3}]$ +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + In this section the one-zone model of Baker ( +\begin_inset CommandInset citation +LatexCommand cite +key "Abernethy2003" +literal "true" + +\end_inset + +), originally used to study the Cepheïd pulsation mechanism, will be briefly + reviewed. + The resulting stability criteria will be rewritten in terms of local state + variables, local timescales and constitutive relations. +\end_layout + +\begin_layout Standard +Baker ( +\begin_inset CommandInset citation +LatexCommand cite +key "Abernethy2003" +literal "true" + +\end_inset + +) investigates the stability of thin layers in self-gravitating, spherical + gas clouds with the following properties: +\end_layout + +\begin_layout Itemize +hydrostatic equilibrium, +\end_layout + +\begin_layout Itemize +thermal equilibrium, +\end_layout + +\begin_layout Itemize +energy transport by grey radiation diffusion. + +\end_layout + +\begin_layout Standard +\noindent +For the one-zone-model Baker obtains necessary conditions for dynamical, + secular and vibrational (or pulsational) stability (Eqs. +\begin_inset space \space{} +\end_inset + +(34a, +\begin_inset space \thinspace{} +\end_inset + +b, +\begin_inset space \thinspace{} +\end_inset + +c) in Baker +\begin_inset CommandInset citation +LatexCommand cite +key "Abernethy2003" +literal "true" + +\end_inset + +). + Using Baker's notation: +\end_layout + +\begin_layout Standard +\align left +\begin_inset Formula +\begin{eqnarray*} +M_{r} & & \textrm{mass internal to the radius }r\\ +m & & \textrm{mass of the zone}\\ +r_{0} & & \textrm{unperturbed zone radius}\\ +\rho_{0} & & \textrm{unperturbed density in the zone}\\ +T_{0} & & \textrm{unperturbed temperature in the zone}\\ +L_{r0} & & \textrm{unperturbed luminosity}\\ +E_{\textrm{th}} & & \textrm{thermal energy of the zone} +\end{eqnarray*} + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +and with the definitions of the +\emph on +local cooling time +\emph default + (see Fig. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:FigGam" + +\end_inset + +) +\begin_inset Formula +\begin{equation} +\tau_{\mathrm{co}}=\frac{E_{\mathrm{th}}}{L_{r0}}\,, +\end{equation} + +\end_inset + + and the +\emph on +local free-fall time +\emph default + +\begin_inset Formula +\begin{equation} +\tau_{\mathrm{ff}}=\sqrt{\frac{3\pi}{32G}\frac{4\pi r_{0}^{3}}{3M_{\mathrm{r}}}}\,, +\end{equation} + +\end_inset + + Baker's +\begin_inset Formula $K$ +\end_inset + + and +\begin_inset Formula $\sigma_{0}$ +\end_inset + + have the following form: +\begin_inset Formula +\begin{eqnarray} +\sigma_{0} & = & \frac{\pi}{\sqrt{8}}\frac{1}{\tau_{\mathrm{ff}}}\\ +K & = & \frac{\sqrt{32}}{\pi}\frac{1}{\delta}\frac{\tau_{\mathrm{ff}}}{\tau_{\mathrm{co}}}\,; +\end{eqnarray} + +\end_inset + + where +\begin_inset Formula $E_{\mathrm{th}}\approx m(P_{0}/{\rho_{0}})$ +\end_inset + + has been used and +\begin_inset Formula +\begin{equation} +\begin{array}{l} +\delta=-\left(\frac{\partial\ln\rho}{\partial\ln T}\right)_{P}\\ +e=mc^{2} +\end{array} +\end{equation} + +\end_inset + + is a thermodynamical quantity which is of order +\begin_inset Formula $1$ +\end_inset + + and equal to +\begin_inset Formula $1$ +\end_inset + + for nonreacting mixtures of classical perfect gases. + The physical meaning of +\begin_inset Formula $\sigma_{0}$ +\end_inset + + and +\begin_inset Formula $K$ +\end_inset + + is clearly visible in the equations above. + +\begin_inset Formula $\sigma_{0}$ +\end_inset + + represents a frequency of the order one per free-fall time. + +\begin_inset Formula $K$ +\end_inset + + is proportional to the ratio of the free-fall time and the cooling time. + Substituting into Baker's criteria, using thermodynamic identities and + definitions of thermodynamic quantities, +\begin_inset Formula +\[ +\Gamma_{1}=\left(\frac{\partial\ln P}{\partial\ln\rho}\right)_{S}\,,\;\chi_{\rho}^{}=\left(\frac{\partial\ln P}{\partial\ln\rho}\right)_{T}\,,\;\kappa_{P}^{}=\left(\frac{\partial\ln\kappa}{\partial\ln P}\right)_{T} +\] + +\end_inset + + +\begin_inset Formula +\[ +\nabla_{\mathrm{ad}}=\left(\frac{\partial\ln T}{\partial\ln P}\right)_{S}\,,\;\chi_{T}^{}=\left(\frac{\partial\ln P}{\partial\ln T}\right)_{\rho}\,,\;\kappa_{T}^{}=\left(\frac{\partial\ln\kappa}{\partial\ln T}\right)_{T} +\] + +\end_inset + + one obtains, after some pages of algebra, the conditions for +\emph on +stability +\emph default + given below: +\begin_inset Formula +\begin{eqnarray} +\frac{\pi^{2}}{8}\frac{1}{\tau_{\mathrm{ff}}^{2}}(3\Gamma_{1}-4) & > & 0\label{ZSDynSta}\\ +\frac{\pi^{2}}{\tau_{\mathrm{co}}\tau_{\mathrm{ff}}^{2}}\Gamma_{1}\nabla_{\mathrm{ad}}\left[\frac{1-3/4\chi_{\rho}^{}}{\chi_{T}^{}}(\kappa_{T}^{}-4)+\kappa_{P}^{}+1\right] & > & 0\label{ZSSecSta}\\ +\frac{\pi^{2}}{4}\frac{3}{\tau_{\mathrm{co}}\tau_{\mathrm{ff}}^{2}}\Gamma_{1}^{2}\,\nabla_{\mathrm{ad}}\left[4\nabla_{\mathrm{ad}}-(\nabla_{\mathrm{ad}}\kappa_{T}^{}+\kappa_{P}^{})-\frac{4}{3\Gamma_{1}}\right] & > & 0\label{ZSVibSta} +\end{eqnarray} + +\end_inset + + For a physical discussion of the stability criteria see Baker ( +\begin_inset CommandInset citation +LatexCommand cite +key "Abernethy2003" +literal "true" + +\end_inset + +) or Cox ( +\begin_inset CommandInset citation +LatexCommand cite +key "Parkin2005" +literal "true" + +\end_inset + +). +\end_layout + +\begin_layout Standard +We observe that these criteria for dynamical, secular and vibrational stability, + respectively, can be factorized into +\end_layout + +\begin_layout Enumerate +a factor containing local timescales only, +\end_layout + +\begin_layout Enumerate +a factor containing only constitutive relations and their derivatives. + +\end_layout + +\begin_layout Standard +The first factors, depending on only timescales, are positive by definition. + The signs of the left hand sides of the inequalities +\begin_inset space ~ +\end_inset + +( +\begin_inset CommandInset ref +LatexCommand ref +reference "ZSDynSta" + +\end_inset + +), ( +\begin_inset CommandInset ref +LatexCommand ref +reference "ZSSecSta" + +\end_inset + +) and ( +\begin_inset CommandInset ref +LatexCommand ref +reference "ZSVibSta" + +\end_inset + +) therefore depend exclusively on the second factors containing the constitutive + relations. + Since they depend only on state variables, the stability criteria themselves + are +\emph on + functions of the thermodynamic state in the local zone +\emph default +. + The one-zone stability can therefore be determined from a simple equation + of state, given for example, as a function of density and temperature. + Once the microphysics, i. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +the thermodynamics and opacities (see Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:KapSou" + +\end_inset + +), are specified (in practice by specifying a chemical composition) the + one-zone stability can be inferred if the thermodynamic state is specified. + The zone – or in other words the layer – will be stable or unstable in + whatever object it is imbedded as long as it satisfies the one-zone-model + assumptions. + Only the specific growth rates (depending upon the time scales) will be + different for layers in different objects. +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:KapSou" + +\end_inset + +Opacity sources +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Source +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $T/[\textrm{K}]$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Yorke 1979, Yorke 1980a +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\leq1700^{\textrm{a}}$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Krügel 1971 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $1700\leq T\leq5000$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Cox & Stewart 1969 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $5000\leq$ +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Formula $^{\textrm{a}}$ +\end_inset + +This is footnote a +\end_layout + +\end_inset + + We will now write down the sign (and therefore stability) determining parts + of the left-hand sides of the inequalities ( +\begin_inset CommandInset ref +LatexCommand ref +reference "ZSDynSta" + +\end_inset + +), ( +\begin_inset CommandInset ref +LatexCommand ref +reference "ZSSecSta" + +\end_inset + +) and ( +\begin_inset CommandInset ref +LatexCommand ref +reference "ZSVibSta" + +\end_inset + +) and thereby obtain +\emph on +stability equations of state +\emph default +. +\end_layout + +\begin_layout Standard +The sign determining part of inequality +\begin_inset space ~ +\end_inset + +( +\begin_inset CommandInset ref +LatexCommand ref +reference "ZSDynSta" + +\end_inset + +) is +\begin_inset Formula $3\Gamma_{1}-4$ +\end_inset + + and it reduces to the criterion for dynamical stability +\begin_inset Formula +\begin{equation} +\Gamma_{1}>\frac{4}{3}\,\cdot +\end{equation} + +\end_inset + + Stability of the thermodynamical equilibrium demands +\begin_inset Formula +\begin{equation} +\chi_{\rho}^{}>0,\;\;c_{v}>0\,, +\end{equation} + +\end_inset + + and +\begin_inset Formula +\begin{equation} +\chi_{T}^{}>0 +\end{equation} + +\end_inset + + holds for a wide range of physical situations. + With +\begin_inset Formula +\begin{eqnarray} +\Gamma_{3}-1=\frac{P}{\rho T}\frac{\chi_{T}^{}}{c_{v}} & > & 0\\ +\Gamma_{1}=\chi_{\rho}^{}+\chi_{T}^{}(\Gamma_{3}-1) & > & 0\\ +\nabla_{\mathrm{ad}}=\frac{\Gamma_{3}-1}{\Gamma_{1}} & > & 0 +\end{eqnarray} + +\end_inset + + we find the sign determining terms in inequalities +\begin_inset space ~ +\end_inset + +( +\begin_inset CommandInset ref +LatexCommand ref +reference "ZSSecSta" + +\end_inset + +) and ( +\begin_inset CommandInset ref +LatexCommand ref +reference "ZSVibSta" + +\end_inset + +) respectively and obtain the following form of the criteria for dynamical, + secular and vibrational +\emph on +stability +\emph default +, respectively: +\begin_inset Formula +\begin{eqnarray} +3\Gamma_{1}-4=:S_{\mathrm{dyn}}> & 0\label{DynSta}\\ +\frac{1-3/4\chi_{\rho}^{}}{\chi_{T}^{}}(\kappa_{T}^{}-4)+\kappa_{P}^{}+1=:S_{\mathrm{sec}}> & 0\label{SecSta}\\ +4\nabla_{\mathrm{ad}}-(\nabla_{\mathrm{ad}}\kappa_{T}^{}+\kappa_{P}^{})-\frac{4}{3\Gamma_{1}}=:S_{\mathrm{vib}}> & 0\,.\label{VibSta} +\end{eqnarray} + +\end_inset + + The constitutive relations are to be evaluated for the unperturbed thermodynami +c state (say +\begin_inset Formula $(\rho_{0},T_{0})$ +\end_inset + +) of the zone. + We see that the one-zone stability of the layer depends only on the constitutiv +e relations +\begin_inset Formula $\Gamma_{1}$ +\end_inset + +, +\begin_inset Formula $\nabla_{\mathrm{ad}}$ +\end_inset + +, +\begin_inset Formula $\chi_{T}^{},\,\chi_{\rho}^{}$ +\end_inset + +, +\begin_inset Formula $\kappa_{P}^{},\,\kappa_{T}^{}$ +\end_inset + +. + These depend only on the unperturbed thermodynamical state of the layer. + Therefore the above relations define the one-zone-stability equations of + state +\begin_inset Formula $S_{\mathrm{dyn}},\,S_{\mathrm{sec}}$ +\end_inset + + and +\begin_inset Formula $S_{\mathrm{vib}}$ +\end_inset + +. + See Fig. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:VibStabEquation" + +\end_inset + + for a picture of +\begin_inset Formula $S_{\mathrm{vib}}$ +\end_inset + +. + Regions of secular instability are listed in Table +\begin_inset space ~ +\end_inset + +1. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:VibStabEquation" + +\end_inset + +Vibrational stability equation of state +\begin_inset Formula $S_{\mathrm{vib}}(\lg e,\lg\rho)$ +\end_inset + +. + +\begin_inset Formula $>0$ +\end_inset + + means vibrational stability +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Conclusions +\end_layout + +\begin_layout Enumerate +The conditions for the stability of static, radiative layers in gas spheres, + as described by Baker's ( +\begin_inset CommandInset citation +LatexCommand cite +key "Abernethy2003" +literal "true" + +\end_inset + +) standard one-zone model, can be expressed as stability equations of state. + These stability equations of state depend only on the local thermodynamic + state of the layer. + +\end_layout + +\begin_layout Enumerate +If the constitutive relations – equations of state and Rosseland mean opacities + – are specified, the stability equations of state can be evaluated without + specifying properties of the layer. + +\end_layout + +\begin_layout Enumerate +For solar composition gas the +\begin_inset Formula $\kappa$ +\end_inset + +-mechanism is working in the regions of the ice and dust features in the + opacities, the +\begin_inset Formula $\mathrm{H}_{2}$ +\end_inset + + dissociation and the combined H, first He ionization zone, as indicated + by vibrational instability. + These regions of instability are much larger in extent and degree of instabilit +y than the second He ionization zone that drives the Cepheïd pulsations. + +\end_layout + +\begin_layout Acknowledgement +Part of this work was supported by the German +\emph on +Deut\SpecialChar softhyphen +sche For\SpecialChar softhyphen +schungs\SpecialChar softhyphen +ge\SpecialChar softhyphen +mein\SpecialChar softhyphen +schaft, DFG +\emph default + project number Ts +\begin_inset space ~ +\end_inset + +17/2–1. +\end_layout + +\begin_layout Standard +\begin_inset CommandInset bibtex +LatexCommand bibtex +btprint "btPrintAll" +bibfiles "biblioExample" +options "aa" + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + If you cannot see the bibliography in the output, assure that you have + given the full path to the Bib\SpecialChar TeX + style file +\family sans +aa.bst +\family default + that is part of the A&A \SpecialChar LaTeX +-package. +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Articles/Chess/Game_1.lyx b/lib/examples/Articles/Chess/Game_1.lyx new file mode 100644 index 0000000000..01f297508d --- /dev/null +++ b/lib/examples/Articles/Chess/Game_1.lyx @@ -0,0 +1,422 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass chess +\begin_preamble +\usepackage{multicol} +\usepackage{chessfss} +\smallboard +\columnsep 0.25in +\columnseprule 0.4pt +\hyphenpenalty 10000 +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf3 +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref false +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\leftmargin 0.5in +\topmargin 0.5in +\rightmargin 0.5in +\bottommargin 0.5in +\headheight 0cm +\headsep 0cm +\footskip 0in +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle empty +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\align center + +\series bold +\size larger +Email Chess Game analyzed +\size large + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + +Kayvan A. + Sylvan +\begin_inset Newline newline +\end_inset + + +\size default +\emph on + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + +Game start 05/29/2001 +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + This document does not compile with pdflatex. + For viewing and exporting this as PDF, use in the PDF (ps2pdf) or PDF (dvipdfm). + The latter is set as default output format. +\end_layout + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Depending on your \SpecialChar LaTeX +-system you might have to add the option +\begin_inset Quotes cld +\end_inset + +dvips +\begin_inset Quotes crd +\end_inset + + to the document class options to get proper DVI output. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{multicols}{2} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The following game was played at the IECC (International Email Chess Club). + It is presented as an example of the fun you can have with \SpecialChar LyX +'s new chess + layout (based on the +\begin_inset Quotes eld +\end_inset + +skak.sty +\begin_inset Quotes erd +\end_inset + + package from CTAN). +\end_layout + +\begin_layout Standard +\noindent +\begin_inset VSpace medskip +\end_inset + + +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\noun on +Sylvan, Kayvan +\begin_inset space \hfill{} +\end_inset + +Wakeham, Marc +\noun default + +\begin_inset Newline newline +\end_inset + +(1623) +\begin_inset space \hfill{} +\end_inset + + (1639) +\end_layout + +\begin_layout Standard +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\begin_inset VSpace smallskip +\end_inset + + +\end_layout + +\begin_layout Mainline +1. + e4 c5 2. + Nc3 d6 3. + g3 Nc6 4. + Bg2 e6 5. + Nge2 +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout BoardCentered + +\end_layout + +\begin_layout HighLight +d4,f4 +\end_layout + +\begin_layout Arrow +d2->d4 +\end_layout + +\begin_layout KnightMove +g1->e2 +\end_layout + +\begin_layout Standard +\begin_inset VSpace -0.75in* +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +This vertical space is a hack +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +So far, so good. + The e2 knight controls the d4 and f4 squares, preparing an eventual d4 + push. + The diagrammed position has been reached before in hundreds of GM games. +\end_layout + +\begin_layout Mainline +5... + Be7?! +\end_layout + +\begin_layout Variation +5... + Nge7 [ +\backslash +equal{} was better. + ] +\end_layout + +\begin_layout Mainline +6. + d4 cxd4 7. + Nxd4 a6 +\end_layout + +\begin_layout Standard +With 7... + a6, we are back in the well-trodden theory of this opening. +\end_layout + +\begin_layout BoardCentered + +\end_layout + +\begin_layout Mainline +8. + Nxc6 bxc6 9. + O-O Bb7 10. + Qg4 Bf6 11. + Bf4 Ne7 12. + Rad1 +\end_layout + +\begin_layout BoardCentered + +\end_layout + +\begin_layout Arrow +a1->d1 +\end_layout + +\begin_layout Standard +\begin_inset VSpace -0.5in* +\end_inset + + +\end_layout + +\begin_layout Standard +White continues to develop pieces and also sets a trap for Black. +\end_layout + +\begin_layout Mainline +12... + O-O? [ This move loses instantly. + ] +\end_layout + +\begin_layout Standard +The following was better, even though white retains the upper hand. +\end_layout + +\begin_layout Variation +12... + e5 13. + Be3 Qc7 14. + Na4 O-O [ +\backslash +wbetter ] +\end_layout + +\begin_layout Mainline +13. + e5! +\end_layout + +\begin_layout Standard +Black's knight and bishop form a bumbling pair here. + The bishop is doomed. +\end_layout + +\begin_layout Mainline +13... + Nd5!? 14. + Bxd5 cxd5 15. + exf6 Qxf6 16. + Bxd6 Rfd8 17. + Bc7 Rd7 18. + Bf4 1-0 +\end_layout + +\begin_layout BoardCentered + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{multicols} +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Articles/Chess/Game_2.lyx b/lib/examples/Articles/Chess/Game_2.lyx new file mode 100644 index 0000000000..4e39dabd1e --- /dev/null +++ b/lib/examples/Articles/Chess/Game_2.lyx @@ -0,0 +1,434 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass chess +\begin_preamble +\usepackage{chessfss} +\smallboard +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref false +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\topmargin 0in +\bottommargin 0.5in +\headheight 0in +\headsep 0in +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip smallskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 2 +\papersides 1 +\paperpagestyle empty +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + In order to get proper PDF output, this document needs to be compiled to + either format +\family sans +PDF (ps2pdf) +\family default + or +\family sans +PDF (XeTeX) +\family default +. + The former is set as default output format. + +\family sans +PDF (dvipdfm) +\family default + will produce output, but without movement indicators, +\family sans +PDF (pdflatex) +\family default + and +\family sans +PDF (LuaTeX) +\family default + will produce LaTeX errors. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +Email Chess Game analyzed +\end_layout + +\begin_layout Author +Kayvan A. + Sylvan +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Date + +\emph on +Game start 05/29/2001 +\end_layout + +\begin_layout Standard +The following game was played at the IECC (International Email Chess Club). + It is presented as an example of the fun you can have with \SpecialChar LyX +'s new chess + support. + You must have xboard installed on your machine to be able to open and view + the chess positions from \SpecialChar LyX +. +\end_layout + +\begin_layout Standard +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\noun on +Sylvan, Kayvan +\begin_inset space \hfill{} +\end_inset + +Wakeham, Marc +\begin_inset Newline newline +\end_inset + +(1623) +\begin_inset space \hfill{} +\end_inset + +(1639) +\end_layout + +\begin_layout Standard +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Mainline +1. + e4 c5 2. + Nc3 d6 3. + g3 Nc6 4. + Bg2 e6 5. + Nge2 +\end_layout + +\begin_layout Standard +\begin_inset VSpace medskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +[ +\end_layout + +\end_inset + + +\begin_inset External + template ChessDiagram + filename iecc05.fen + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout KnightMove +g1->e2 +\end_layout + +\begin_layout HighLight +d4,f4 +\end_layout + +\begin_layout Standard +\begin_inset VSpace -0.5in* +\end_inset + + +\end_layout + +\begin_layout Standard +So far, so good. + This is all according to theory. +\end_layout + +\begin_layout Mainline +5... + Be7?! +\end_layout + +\begin_layout Variation +5... + Nge7 [ +\backslash +equal{} ] +\end_layout + +\begin_layout Mainline +6. + d4 cxd4 7. + Nxd4 a6 +\end_layout + +\begin_layout Standard +With 7... +\begin_inset space ~ +\end_inset + +a6, we are back in the well-trodden theory of this opening. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +[ +\end_layout + +\end_inset + + +\begin_inset External + template ChessDiagram + filename iecc07.fen + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Mainline +8. + Nxc6 bxc6 9. + O-O Bb7 10. + Qg4 Bf6 11. + Bf4 Ne7 12. + Rad1 +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +[ +\end_layout + +\end_inset + + +\begin_inset External + template ChessDiagram + filename iecc12.fen + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Arrow +a1->d1 +\end_layout + +\begin_layout Standard +\begin_inset VSpace -0.3in* +\end_inset + + +\end_layout + +\begin_layout Standard +White continues to develop pieces and also sets a trap for Black. +\end_layout + +\begin_layout Mainline +12...O-O? [ This move loses instantly. + ] +\end_layout + +\begin_layout Variation +12... + e5 13. + Be3 Qc7 14. + Na4 O-O [ +\backslash +wbetter{} is best ] +\end_layout + +\begin_layout Mainline +13. + e5! +\end_layout + +\begin_layout Standard +Black's knight and bishop are in each other's way. + The bishop is doomed. +\end_layout + +\begin_layout Mainline +13... + Nd5!? 14. + Bxd5 cxd5 15. + exf6 Qxf6 16. + Bxd6 Rfd8 17. + Bc7 Rd7 18. + Bf4 1-0 +\end_layout + +\begin_layout BoardCentered + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Articles/DocBook_Article_(SGML).lyx b/lib/examples/Articles/DocBook_Article_(SGML).lyx new file mode 100644 index 0000000000..190d150a68 --- /dev/null +++ b/lib/examples/Articles/DocBook_Article_(SGML).lyx @@ -0,0 +1,734 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass docbook +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding default +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Docbook with LyX +\end_layout + +\begin_layout Date +24 September 1999 +\end_layout + +\begin_layout Author +\begin_inset Flex Firstname +status open + +\begin_layout Plain Layout +José +\end_layout + +\end_inset + + +\begin_inset Flex Surname +status open + +\begin_layout Plain Layout +Matos +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Abstract +This is a small illustration of lyx's features using DocBook. +\end_layout + +\begin_layout Abstract +The abstract can span several paragraphs. +\end_layout + +\begin_layout Section +\begin_inset CommandInset label +LatexCommand label +name "first-section" + +\end_inset + +Introduction +\end_layout + +\begin_layout Standard +This file ilustrates the generation of docbook documents with LyX. +\end_layout + +\begin_layout Standard +This will improve as soon as new features are available. +\end_layout + +\begin_layout Section +Standard layouts +\end_layout + +\begin_layout Standard +One of the goals is the support, as much as possible, of layouts used in + other textclass, for compatibility purposes. +\end_layout + +\begin_layout Standard +Remember that this is work in progress, I would like to hear any comments, + good or +\begin_inset Quotes eld +\end_inset + +bad +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\begin_layout Subsection +Lists +\end_layout + +\begin_layout Standard +This is an example with several nested lists. +\end_layout + +\begin_layout Itemize +item 1 +\end_layout + +\begin_deeper +\begin_layout Enumerate +item 2 +\end_layout + +\begin_layout Description +new item +\end_layout + +\begin_deeper +\begin_layout Enumerate +collection +\end_layout + +\end_deeper +\end_deeper +\begin_layout Itemize +new set +\end_layout + +\begin_layout Subsection +Code +\end_layout + +\begin_layout Standard +Required steps to have a running lyx. +\end_layout + +\begin_layout Quotation +Be carefull with your own code. +\end_layout + +\begin_layout Quotation +The debugger. +\end_layout + +\begin_layout Code +cat > env.out +\end_layout + +\begin_layout Code +tar xvzf lyx.tgz +\end_layout + +\begin_layout Code +cd lyx-1_0_x +\end_layout + +\begin_layout Code +./configure +\end_layout + +\begin_layout Code +make +\end_layout + +\begin_layout Code +make install +\end_layout + +\begin_layout Subsection +Labels +\end_layout + +\begin_layout Standard +If a label is the first element in any layout, that label will be merged + with that element. + See as an example +\begin_inset CommandInset ref +LatexCommand ref +name "first-section" +reference "first-section" + +\end_inset + +. +\end_layout + +\begin_layout Subsection +Fonts +\end_layout + +\begin_layout Standard +The only fonts supported are +\emph on +Emphasis +\emph default + and +\begin_inset Flex Literal +status open + +\begin_layout Plain Layout +SGML +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Subsection +Figures +\end_layout + +\begin_layout Standard +One of the major changes in the docbook when compared with the linuxdoc + support are the figures support. + LyX only allows to view eps figures. + So you should have one of these if you want to take advantage of this feature. +\end_layout + +\begin_layout Standard +Notice that when the docbook code is exported the filename extension is + stripped. + This enables that when the several backends are processed in sgmltools, + the corresponding extensions are added. + The default extension are eps for the print and gif for the html backend. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement htbp +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Graphics + filename ../doc/clipart/platypus.eps + width 2cm + height 3cm + scaleBeforeRotation + rotateAngle 45 + rotateOrigin center + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Nice platypus +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Wide figures are treated as normal figures. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement htbp +wide true +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Graphics + filename ../doc/clipart/platypus.eps + width 2cm + height 3cm + scaleBeforeRotation + rotateAngle 45 + rotateOrigin center + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +long, very long\SpecialChar ldots + :-) +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Tables +\end_layout + +\begin_layout Standard +There is also basic support for tables. +\begin_inset Float table +placement htbp +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Software 1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Software 2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Software 3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Software 4 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Plataform 1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +25 MB +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +10 MB +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +34 MB +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Plataform 2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +12 MB +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +30 MB +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +35 MB +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Nice Formal Table +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +As it happens with the figures the wide tables are treated as normal tables. +\end_layout + +\begin_layout Subsection +Margins +\end_layout + +\begin_layout Standard +There are some restrictions when using margins. + For further information on docbook allowed syntax consult the +\begin_inset CommandInset href +LatexCommand href +name "docbook reference manual" +target "http://www.oasis-open.org/docbook/documentation/reference/" +literal "false" + +\end_inset + +. +\end_layout + +\begin_layout Quotation +It is also possible to insert margin notes inside some environments. +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +second par -> margin note +\end_layout + +\begin_layout Plain Layout + +third par -> margin note +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Quotation +Notice that the previous layout is at level 1 +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +This comes from a docbook restriction. + Sidebar can only appear inside "MSGTEXT", "CAUTION", "IMPORTANT", "NOTE", + "TIP", "WARNING", "BLOCKQUOTE". +\end_layout + +\begin_layout Plain Layout +These environments are easily added to the docbook layout. +\end_layout + +\end_inset + + and so is the follow: +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Section +The road map +\end_layout + +\begin_layout Standard +This is a small list of the remaining tasks: +\end_layout + +\begin_layout Itemize +Expand the number of layouts +\end_layout + +\begin_deeper +\begin_layout Itemize +example +\end_layout + +\begin_layout Itemize +note +\end_layout + +\begin_layout Itemize +warning +\end_layout + +\begin_layout Itemize +tip +\end_layout + +\begin_layout Itemize +caution +\end_layout + +\begin_layout Itemize +important +\end_layout + +\end_deeper +\begin_layout Itemize +Compose other layout files, besides article +\end_layout + +\begin_deeper +\begin_layout Enumerate +book +\end_layout + +\begin_layout Enumerate +set (very unlikely) +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +I do not expect lyx to deal with colection of books, for now! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Enumerate +refentry +\end_layout + +\end_deeper +\begin_layout Itemize +goodies +\end_layout + +\begin_deeper +\begin_layout Enumerate +including other lyx files +\end_layout + +\begin_layout Enumerate +more advanced tables support +\end_layout + +\end_deeper +\begin_layout Itemize +better documentation +\end_layout + +\begin_layout Standard +That's all. + ;-) +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/American_Mathematical_Society_(AMS).lyx b/lib/examples/Books/American_Mathematical_Society_(AMS).lyx new file mode 100644 index 0000000000..d40c25cecb --- /dev/null +++ b/lib/examples/Books/American_Mathematical_Society_(AMS).lyx @@ -0,0 +1,593 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass amsbook +\use_default_options false +\begin_modules +theorems-ams +eqs-within-sections +figs-within-sections +theorems-ams-extended +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding default +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 2 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Test of AMS-Book Style +\end_layout + +\begin_layout Author +David L. + Johnson +\end_layout + +\begin_layout Address +Department of Mathematics, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +newline +\end_layout + +\end_inset + +Lehigh University, Bethlehem, PA 18015 +\end_layout + +\begin_layout Current Address +Home +\end_layout + +\begin_layout Email +dlj0@lehigh.edu +\end_layout + +\begin_layout URL +http://www.lehigh.edu/~dlj0/dlj0.html +\end_layout + +\begin_layout Keywords +Test +\end_layout + +\begin_layout Thanks +To Emmanuel, for forcing me to fix this, and Jean-Marc, for making it possible, + and necessary. +\end_layout + +\begin_layout Dedicatory +To my wife. +\end_layout + +\begin_layout Translator +Joe +\end_layout + +\begin_layout Subjectclass +Primary: 12G34, Secondary: 09G87 +\end_layout + +\begin_layout Chapter +Beginning. +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +This file, using the amsbook layout, numbers all results, Theorems, Definitions, + etc., using +\begin_inset Formula $(m.n.p)$ +\end_inset + + where the +\begin_inset Formula $m$ +\end_inset + + is the chapter number, the +\begin_inset Formula $n$ +\end_inset + + is the section number, and, finally, the +\begin_inset Formula $p$ +\end_inset + + is the result number in that section. +\end_layout + +\begin_layout Standard +This can be changed by modifying the layout file, removing the line +\family typewriter + +\begin_inset Newline newline +\end_inset + + +\backslash +numberwithin{section}{chapter} +\family default + +\begin_inset Newline newline +\end_inset + +from the +\family typewriter +Preamble +\family default + . +\end_layout + +\begin_layout Theorem +This is a theorem +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Corollary +First corollary. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 1 +\end_layout + +\begin_layout Proposition +First proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Algorithm +first this, then the next +\end_layout + +\begin_layout Fact +Not fiction. +\end_layout + +\begin_layout Axiom +It stands to reason. +\end_layout + +\begin_layout Definition +a word means exactly what I say it means. +\end_layout + +\begin_layout Example +This should be an example. +\end_layout + +\begin_layout Standard +Plain text. +\end_layout + +\begin_layout Condition +If you say so. +\end_layout + +\begin_layout Problem +I don't know what to write is the problem. +\end_layout + +\begin_layout Remark +I think this will be useful. +\end_layout + +\begin_layout Claim +I did it the way the documentation said to. +\end_layout + +\begin_layout Note +It may need more work yet. +\end_layout + +\begin_layout Standard +More plain text, in standard format. +\end_layout + +\begin_layout Theorem +This is a second theorem +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Corollary +Second corollary. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 2 +\end_layout + +\begin_layout Proposition +Second proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Notation +\begin_inset Formula $S=\mathbb{R}$ +\end_inset + +. +\end_layout + +\begin_layout Summary +In the end, will it matter? +\end_layout + +\begin_layout Acknowledgement +Thanks to Mattias Ettrich. + Without him I never would have learned \SpecialChar LaTeX +. +\end_layout + +\begin_layout Case +If this works, then the rest will. +\end_layout + +\begin_layout Conclusion +It seems to work. +\end_layout + +\begin_layout Proof +Here goes another proof. +\end_layout + +\begin_layout Standard +Plain text +\end_layout + +\begin_layout Chapter Exercises +Exercise 1 +\end_layout + +\begin_layout Chapter Exercises +Exercise 2 +\end_layout + +\begin_layout Chapter Exercises +These should not be italicised! +\end_layout + +\begin_layout Section +Next try. +\end_layout + +\begin_layout Standard +This tries out the section environments. +\end_layout + +\begin_layout Theorem +This is a theorem +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Corollary +Third corollary. + First one of this section. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 3 +\end_layout + +\begin_layout Proposition +Third proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Subsection +This is a subsection +\end_layout + +\begin_layout Standard +With more results therein. +\end_layout + +\begin_layout Theorem +This is a theorem, maybe the fourth one. +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Chapter +Next one. +\end_layout + +\begin_layout Section +Next Section +\end_layout + +\begin_layout Corollary +Fourth corollary. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 4 +\end_layout + +\begin_layout Proposition +Fourth proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Standard +More random text. +\end_layout + +\begin_layout Section +Another section +\end_layout + +\begin_layout Theorem +This is a theorem +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Corollary +Fifth corollary. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 5 +\end_layout + +\begin_layout Proposition +Fifth proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Subsubsection +This is the subsection with results. +\end_layout + +\begin_layout Standard +The quick, brown fox jumped over the lazy dog. +\end_layout + +\begin_layout Theorem +This is a theorem - sixth in the series +\end_layout + +\begin_layout Proof +Here is its proof. +\end_layout + +\begin_layout Standard +More text. +\end_layout + +\begin_layout Corollary +Sixth corollary. +\end_layout + +\begin_layout Proof +Its proof. +\end_layout + +\begin_layout Lemma +Lemma number 6 +\end_layout + +\begin_layout Proposition +Sixth proposition. +\end_layout + +\begin_layout Conjecture +A wild guess. +\end_layout + +\begin_layout Criterion +Need some criteria +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "1" +literal "true" + +\end_inset + +Johnson, D. + L. + +\emph on +Out of my head +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "2" +literal "true" + +\end_inset + +American Mathematical Society, +\emph on +Instructions for preparation of papers and monographs: AMS-\SpecialChar LaTeX + +\emph default +, (1997). +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "3" +literal "true" + +\end_inset + +American Mathematical Society, +\end_layout + +\begin_layout Standard + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Recipe_Book.lyx b/lib/examples/Books/Recipe_Book.lyx new file mode 100644 index 0000000000..595a11ddbc --- /dev/null +++ b/lib/examples/Books/Recipe_Book.lyx @@ -0,0 +1,385 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass recipebook +\begin_preamble + +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "times" "default" +\font_sans "helvet" "default" +\font_typewriter "courier" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 2 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style swedish +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Recipe book example +\end_layout + +\begin_layout Author +By Sándor Szőke (alex@lyx.hu) +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Chapter +Soups +\end_layout + +\begin_layout Recipe +\begin_inset Quotes sld +\end_inset + +Birdmilk +\begin_inset Quotes srd +\end_inset + + +\end_layout + +\begin_layout Ingredients +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +\begin_inset space ~ +\end_inset + +(for 4 persons) +\end_layout + +\end_inset + +2 +\begin_inset space \thinspace{} +\end_inset + +litres milk, 7 +\begin_inset space \thinspace{} +\end_inset + +pcs. + egg, 3 +\begin_inset space \thinspace{} +\end_inset + +packet vanilia (3×10 +\begin_inset space \thinspace{} +\end_inset + +g), 6 +\begin_inset space \thinspace{} +\end_inset + +tbl spoon sugar +\end_layout + +\begin_layout Standard +Put 2 +\begin_inset space \thinspace{} +\end_inset + +tbl. + spoon sugar into 2 +\begin_inset space \thinspace{} +\end_inset + +litres milk (spare 1.5 +\begin_inset space \thinspace{} +\end_inset + +dl for later) and 1 +\begin_inset space \thinspace{} +\end_inset + +packet vanilia. +\end_layout + +\begin_layout Standard +Put 2 +\begin_inset space \thinspace{} +\end_inset + +tbl. + spoon sugar into the 7 +\begin_inset space \thinspace{} +\end_inset + +eggyolk and 1 +\begin_inset space \thinspace{} +\end_inset + +packet vanilia. + Stir well. + Add 1.5 +\begin_inset space \thinspace{} +\end_inset + +dl milk to it and stir it again well. +\end_layout + +\begin_layout Standard +Whisk the 7 +\begin_inset space \thinspace{} +\end_inset + +eggwhite, when you almost ready add 2 +\begin_inset space \thinspace{} +\end_inset + +tbl. + spoon sugar and 1 +\begin_inset space \thinspace{} +\end_inset + +packet vanilia to it. + The egg foam must be brewed in the milk (in the approx 2 +\begin_inset space \thinspace{} +\end_inset + +l). +\end_layout + +\begin_layout Standard +Put the eggyolk into the milk, stir a little. + Now take a tbl. + spoon and put equivalent sized pieces of the foam into the milk. + Almost ready, all the thing must be brewed alltogether. + When you are stiring do it carefully, do not brake the foam. +\end_layout + +\begin_layout Standard +You can eat it when it is hot, but I prefer to cool it down. + I like when it is cold. +\end_layout + +\begin_layout Chapter +Drinks +\end_layout + +\begin_layout Recipe +Wineliqueur (1st variant) +\end_layout + +\begin_layout Ingredients +1 +\begin_inset space \thinspace{} +\end_inset + +litre wine, 25 +\begin_inset space \thinspace{} +\end_inset + +dkg sugar, 3 +\begin_inset space ~ +\end_inset + +packets vanilla (3×10 +\begin_inset space \thinspace{} +\end_inset + +g), 3-4 +\begin_inset space \thinspace{} +\end_inset + +dl rum and rum flavour +\end_layout + +\begin_layout Standard +Stir all of the components and store for at least one week on a cold place. +\end_layout + +\begin_layout Standard +Taste it and enjoy. + :) +\end_layout + +\begin_layout Recipe +Wineliqueur (2nd variant) +\end_layout + +\begin_layout Ingredients +1 +\begin_inset space \thinspace{} +\end_inset + +litre wine, 40 +\begin_inset space \thinspace{} +\end_inset + +dkg sugar, 1 +\begin_inset space \thinspace{} +\end_inset + +pc. + vanilla stick, 3-4 +\begin_inset space \thinspace{} +\end_inset + +dl rum and rum flavour +\end_layout + +\begin_layout Standard +Stir all of the components and store for at least one week on a cold place. +\end_layout + +\begin_layout Standard +Taste it and enjoy. + :) +\end_layout + +\begin_layout Recipe +Wineliqueur (3rd variant) +\end_layout + +\begin_layout Ingredients +2 +\begin_inset space ~ +\end_inset + +litres wine, 50 +\begin_inset space \thinspace{} +\end_inset + +dkg sugar, 5 +\begin_inset space \thinspace{} +\end_inset + +dl water, 5 +\begin_inset space \thinspace{} +\end_inset + +dl sour cherry fluid (!), 1 +\begin_inset space \thinspace{} +\end_inset + +dl Cuba rum, 2 +\begin_inset space \thinspace{} +\end_inset + +packets vanilla (2×10 +\begin_inset space \thinspace{} +\end_inset + +g) +\end_layout + +\begin_layout Standard +Stir all of the components and store for at least one week on a cold place. +\end_layout + +\begin_layout Standard +Taste it and enjoy. + :) +\end_layout + +\begin_layout Recipe +Home made Baily's +\end_layout + +\begin_layout Ingredients +2 +\begin_inset space \thinspace{} +\end_inset + +dl Whisky or Rum, 3 +\begin_inset space \thinspace{} +\end_inset + +dl skimmings, 2 +\begin_inset space \thinspace{} +\end_inset + +pcs egg yolk, 40 +\begin_inset space \thinspace{} +\end_inset + +dkg powdered sugar (can be replaced with honey) +\end_layout + +\begin_layout Standard +Stir all of the components and store for at least one week on a cold place. +\end_layout + +\begin_layout Standard +Taste it and enjoy. + :) +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/00_Main_File.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/00_Main_File.lyx new file mode 100644 index 0000000000..677a9b60b4 --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/00_Main_File.lyx @@ -0,0 +1,263 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass svmult +\begin_preamble +%\usepackage{type1cm} % activate if the fonts mathptmx, helvet or courier are + % not available on your system + +\usepackage{multicol}% used for the two-column index +\usepackage[bottom]{footmisc}% places footnotes at page bottom + +%\makeindex % used for the subject index + % please use the style svind.ist with + % your makeindex program +\end_preamble +\options graybox,envcountchap +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "times" "default" +\font_sans "helvet" "default" +\font_typewriter "courier" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref true +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle true +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This is a template \SpecialChar LyX + file for books and monographs to be published by the + Springer publishing group. + This template is for editors, the template for authors has the filename + +\family sans +08_Author.lyx +\family default +. + How to install the svmult \SpecialChar LaTeX + class to your \SpecialChar LaTeX + system is explained in +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://wiki.lyx.org/Examples/Springer +\end_layout + +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Front Matter + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "01_Dedication.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "02_Foreword.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "03_Preface.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "04_Acknowledgements.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\begin_inset CommandInset include +LatexCommand include +filename "05_Contributor_List.lyx" + +\end_inset + + +\begin_inset CommandInset include +LatexCommand include +filename "06_Acronym.lyx" + +\end_inset + + +\end_layout + +\begin_layout Main Matter + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "07_Part.lyx" + +\end_inset + + +\begin_inset CommandInset include +LatexCommand include +filename "08_Author.lyx" + +\end_inset + + +\end_layout + +\begin_layout Back Matter + +\end_layout + +\begin_layout Standard +\start_of_appendix +\begin_inset CommandInset include +LatexCommand include +filename "09_Appendix.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "10_Glossary.lyx" + +\end_inset + + +\begin_inset CommandInset index_print +LatexCommand printindex +type "idx" +name "Index" +literal "false" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/01_Dedication.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/01_Dedication.lyx new file mode 100644 index 0000000000..afa9de36cd --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/01_Dedication.lyx @@ -0,0 +1,96 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmult +\use_default_options false +\master svmult_editor-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Dedication +A quotation or a dedication +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +dedication +\end_layout + +\end_inset + + at the very beginning of your book. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/02_Foreword.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/02_Foreword.lyx new file mode 100644 index 0000000000..4e66ed7688 --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/02_Foreword.lyx @@ -0,0 +1,145 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmult +\use_default_options false +\master svmult_editor-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Foreword +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The style Foreword has an optional argument that overrides the default text + "Foreword". + This is useful when there are different forewords by different authors + and editors. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The foreword covers introductory remarks preceding the text of a book that + are written by a +\shape italic +person other than the author or editor +\shape default + of the book. + If applicable, the foreword precedes the preface which is written by the + author or editor of the book. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +vspace{ +\backslash +baselineskip} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +\align right +Place, month year +\begin_inset space \hfill{} +\end_inset + + +\shape italic +Firstname Surname +\shape default + +\begin_inset Newline newline +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/03_Preface.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/03_Preface.lyx new file mode 100644 index 0000000000..14f3925b91 --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/03_Preface.lyx @@ -0,0 +1,175 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmult +\use_default_options false +\master svmult_editor-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Preface +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The style Preface has an optional argument that overrides the default text + "Preface". + This is useful when there are different prefaces by different authors and + editors. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +A preface +\begin_inset Index idx +status open + +\begin_layout Plain Layout +preface +\end_layout + +\end_inset + + is a book's preliminary statement, usually written by the +\shape italic +author or editor +\shape default + of a work, which states its origin, scope, purpose, plan, and intended + audience, and which sometimes includes afterthoughts and acknowledgments + of assistance. + +\end_layout + +\begin_layout Standard +When written by a person other than the author, it is called a foreword. + The preface or foreword is distinct from the introduction, which deals + with the subject of the work. +\end_layout + +\begin_layout Standard +Customarily +\shape italic +acknowledgments +\shape default + are included as last part of the preface. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +vspace{ +\backslash +baselineskip} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +\align right +Place(s), +\begin_inset space \hfill{} +\end_inset + + +\shape italic +Firstname Surname +\shape default + +\begin_inset Newline newline +\end_inset + +month year +\begin_inset space \hfill{} +\end_inset + + +\shape italic +Firstname Surname +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/04_Acknowledgements.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/04_Acknowledgements.lyx new file mode 100644 index 0000000000..4d74f373d8 --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/04_Acknowledgements.lyx @@ -0,0 +1,129 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmult +\use_default_options false +\master svmult_editor-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout extrachap +Acknowledgements +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The +\begin_inset Quotes eld +\end_inset + +extrachap +\begin_inset Quotes erd +\end_inset + + layout appears unnumbered and not in the table of contents. + But the layout shares the behavior of +\begin_inset Quotes eld +\end_inset + +Chapter +\begin_inset Quotes erd +\end_inset + + with respect to headings. + This is different from +\begin_inset Quotes eld +\end_inset + +Chapter* +\begin_inset Quotes erd +\end_inset + + which continues to use the name of the last numbered chapter in the header + of left pages and the name of the last numbered section in the header of + right pages. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Optional section; if you prefer to set your acknowledgement section as a + separate chapter instead of including it as last part of your preface. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/05_Contributor_List.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/05_Contributor_List.lyx new file mode 100644 index 0000000000..366d15bcea --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/05_Contributor_List.lyx @@ -0,0 +1,155 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmult +\options graybox,envcountchap +\use_default_options false +\master svmult_editor-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "times" "default" +\font_sans "helvet" "default" +\font_typewriter "courier" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Contributors + +\end_layout + +\begin_layout Contributor List +Firstname Surname +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +at +\end_layout + +\end_inset + + ABC Institute, 123 Prime Street, Daisy Town, NA 01234, USA, +\begin_inset Flex Email +status collapsed + +\begin_layout Plain Layout +smith@smith.edu +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +and +\end_layout + +\end_inset + + Firstname Surname +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +at +\end_layout + +\end_inset + + XYZ Institute, Technical University, Albert-Schweitzer-Str. + 34, 1000 Berlin, Germany, +\begin_inset Flex Email +status collapsed + +\begin_layout Plain Layout +meier@tu.edu +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/06_Acronym.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/06_Acronym.lyx new file mode 100644 index 0000000000..b03d30aad6 --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/06_Acronym.lyx @@ -0,0 +1,151 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmult +\use_default_options false +\master svmult_editor-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout extrachap +Acronyms +\end_layout + +\begin_layout Standard +List(s) of abbreviations or symbols +\end_layout + +\begin_layout Standard +Lists of abbreviations +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +acronyms, list of +\end_layout + +\end_inset + +, symbols +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +symbols, list of +\end_layout + +\end_inset + + and the like are easily formatted with the help of the Springer-enhanced + +\family sans +description +\family default + environment. +\end_layout + +\begin_layout Description +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +CABR +\end_layout + +\end_inset + +ABC Spelled-out abbreviation and definition +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The optional longest description label ca be used to set the space that + is necessary to contain all description labels. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +BABI Spelled-out abbreviation and definition +\end_layout + +\begin_layout Description +CABR Spelled-out abbreviation and definition +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/07_Part.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/07_Part.lyx new file mode 100644 index 0000000000..d2d0b5aca4 --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/07_Part.lyx @@ -0,0 +1,107 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmult +\use_default_options false +\master svmult_editor-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout PartBacktext +\noindent +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Part Title +\end_layout + +\end_inset + + Part title page and, if desired, a short introductory text (maximum one + page) on its verso page +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The part title is mandatory; the further text for the backpart is optional. +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/08_Author.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/08_Author.lyx new file mode 100644 index 0000000000..83ee3261f7 --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/08_Author.lyx @@ -0,0 +1,1557 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass svmult +\begin_preamble +\usepackage{type1cm} + +\usepackage{multicol} % used for the two-column index +\usepackage[bottom]{footmisc} % places footnotes at page bottom + +%\makeindex % used for the subject index + % please use the style svind.ist with + % your makeindex program +\end_preamble +\options graybox +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "times" "default" +\font_sans "helvet" "default" +\font_typewriter "courier" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle true +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This is a template \SpecialChar LyX + file for books and journals to be published by the Springer + publishing group. + This template is for authors, the template for editors has the filename + +\family sans +svmult_editor.lyx +\family default +. + How to install the svmult \SpecialChar LaTeX + class to your \SpecialChar LaTeX + system is explained in +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://wiki.lyx.org/Examples/Springer +\end_layout + +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title* +Contribution Title +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note +\series default +: If this file is used as a subdocument of svmult_editor.lyx then you must + use the +\family sans +Title +\family default + layout instead of +\family sans +Title* +\family default +. +\begin_inset Newline newline +\end_inset + +Also note that if +\family sans +Title* +\family default + is used, you must not use +\family sans +hyperref support +\family default + in the document settings under +\family sans +PDF properties +\family default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Running Title +Short form of title +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Author +Name of First Author and Name of Second Author +\end_layout + +\begin_layout Running Author +Short form of author list +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Institute +Name of First Author +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +at +\end_layout + +\end_inset + +Name, Address of Institute, +\begin_inset Flex Email +status collapsed + +\begin_layout Plain Layout +name@email.address +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +and +\end_layout + +\end_inset + +Name of Second Author +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +at +\end_layout + +\end_inset + +Name, Address of Institute +\begin_inset Flex Email +status collapsed + +\begin_layout Plain Layout +name@email.address +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Abstract* +Each chapter should be preceded by an abstract (10–15 lines long) that summarize +s the content. + The abstract will appear +\shape italic +online +\shape default + at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +www.SpringerLink.com +\end_layout + +\end_inset + + and be available with unrestricted access. + This allows unregistered users to read the abstract as a teaser for the + complete chapter. + As a general rule the abstracts will not appear in the printed version + of your book unless it is the style of your particular book or that of + the series to which your book belongs. +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +indent +\end_layout + +\end_inset + + Please use the 'starred' version of the +\family typewriter +abstract +\family default + environment for typesetting the text of the online abstracts. + Use the plain +\family typewriter +abstract +\family default + if the abstract is also to appear in the printed version of the book. +\end_layout + +\begin_layout Abstract +Each chapter should be preceded by an abstract (10–15 lines long) that summarize +s the content. + The abstract will appear +\shape italic +online +\shape default + at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +www.SpringerLink.com +\end_layout + +\end_inset + + and be available with unrestricted access. + This allows unregistered users to read the abstract as a teaser for the + complete chapter. + As a general rule the abstracts will not appear in the printed version + of your book unless it is the style of your particular book or that of + the series to which your book belongs. +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +indent +\end_layout + +\end_inset + + Please use the 'starred' version of the +\family typewriter +abstract +\family default + environment for typesetting the text of the online abstracts. + Use the plain +\family typewriter +abstract +\family default + if the abstract is also to appear in the printed version of the book. +\end_layout + +\begin_layout Section +Section Heading +\begin_inset CommandInset label +LatexCommand label +name "sec:1" + +\end_inset + + +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Section +Section Heading +\begin_inset CommandInset label +LatexCommand label +name "sec:Section-Heading2" + +\end_inset + + +\end_layout + +\begin_layout Running Section +Short form of section title +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Use the standard +\family sans +equation +\family default + environment to typeset your equations, e. +\begin_inset space \thinspace{} +\end_inset + +g. + +\begin_inset Formula +\begin{equation} +a\times b=c\;, +\end{equation} + +\end_inset + + however, for multiline equations we recommend to use the +\family sans +eqnarray +\family default + environment +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +In physics texts please activate the class option +\family typewriter +vecphys +\family default + to depict your vectors in +\series bold +\shape italic +boldface-italic +\series default + type - as is customary for a wide range of physical subjects +\end_layout + +\end_inset + +. + +\begin_inset Formula +\begin{eqnarray} +a\times b & = & c\nonumber \\ +\vec{a}\cdot\vec{b} & = & c\label{eq:01} +\end{eqnarray} + +\end_inset + + +\end_layout + +\begin_layout Subsection +Subsection Heading +\begin_inset CommandInset label +LatexCommand label +name "subsec:Subsection-Heading" + +\end_inset + + +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. + Further on please use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-references +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +cross-references +\end_layout + +\end_inset + + and citations +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +citations +\end_layout + +\end_inset + + as has already been described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading2" + +\end_inset + +. +\end_layout + +\begin_layout Quotation +Please do not use quotation marks when quoting texts! Simply use the +\family sans +quotation +\family default + environment – it will automatically render Springer's preferred layout. + +\end_layout + +\begin_layout Subsubsection +Subsubsection Heading +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. + Further on please use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-references and citations as has already been + described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Subsection-Heading" + +\end_inset + +, see also Fig. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:If-the-width" + +\end_inset + + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +If you copy text passages, figures, or tables from other works, you must + obtain +\shape italic +permission +\shape default + from the copyright holder (usually the original publisher). + Please enclose the signed permission with the manuscript. + The sources +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +permission to print +\end_layout + +\end_inset + + must be acknowledged either in the captions, as footnotes or in a separate + section of the book. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Please note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement b +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +sidecaption +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "7.5cm" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +replace this box by an image +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:If-the-width" + +\end_inset + +If the width of the figure is less than 7.8 +\begin_inset space \thinspace{} +\end_inset + +cm use the +\family typewriter +sidecapion +\family default + command to flush the caption on the left side of the page. + If the figure is positioned at the top of the page, align the sidecaption + with the top of the figure – to achieve this you simply need to use the + optional argument +\family typewriter +[t] +\family default + with the +\family typewriter +sidecaption +\family default + command +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Paragraph +Paragraph Heading +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Standard +For typesetting numbered lists we recommend to use the +\family sans +enumerate +\family default + environment – it will automatically render Springer's preferred layout. +\end_layout + +\begin_layout Enumerate +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\begin_deeper +\begin_layout Enumerate +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\begin_layout Enumerate +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\end_deeper +\begin_layout Enumerate +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\begin_layout Subparagraph +Subparagraph Heading +\end_layout + +\begin_layout Standard +In order to avoid simply listing headings of different levels we recommend + to let every heading be followed by at least a short passage of text. + Use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-references and citations as has already been + described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading2" + +\end_inset + +, see also Fig. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:2" + +\end_inset + +. +\end_layout + +\begin_layout Standard +For unnumbered list we recommend to use the +\family sans +itemize +\family default + environment – it will automatically render Springer's preferred layout. +\end_layout + +\begin_layout Itemize +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development, cf. + Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:1" + +\end_inset + +. +\end_layout + +\begin_deeper +\begin_layout Itemize +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\begin_layout Itemize +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\end_deeper +\begin_layout Itemize +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement t +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +sidecaption[t] +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +replace this box by an image +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:2" + +\end_inset + + Please write your figure caption here +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Run-in headings +Run-in Heading Boldface Version +\end_layout + +\begin_layout Standard +Use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-references and citations as has already been + described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading2" + +\end_inset + +. +\end_layout + +\begin_layout Sub-run-in headings +Run-in Heading Italic Version +\end_layout + +\begin_layout Standard +Use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-refer\SpecialChar softhyphen +ences and citations as has already been + described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading2" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +paragraph +\end_layout + +\end_inset + +. + +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:1" + +\end_inset + +Please write your table caption here +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Classes +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Subclass +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Length +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Action Mechanism +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +svhline +\end_layout + +\end_inset + + Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\begin_inset Formula $^{a}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +22 (19–25) +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Translation repression, mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +21 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +21–22 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +24–26 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Histone and DNA Modification +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Formula $^{a}$ +\end_inset + + Table foot note (with superscript) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Section Heading +\begin_inset CommandInset label +LatexCommand label +name "sec:3" + +\end_inset + + +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Standard +Please note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Standard +If you want to list definitions or the like we recommend to use the Springer-enh +anced +\family sans +description +\family default + environment – it will automatically render Springer's preferred layout. +\end_layout + +\begin_layout Description +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Type 1 +\end_layout + +\end_inset + +Type +\begin_inset space ~ +\end_inset + +1 That addresses central themes pertainng to migration, health, and disease. + In Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:1" + +\end_inset + +, Wilson discusses the role of human migration in infectious disease distributio +ns and patterns. +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The optional longest description label ca be used to set the space that + is necessary to contain all description labels. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Type +\begin_inset space ~ +\end_inset + +2 That addresses central themes pertainng to migration, health, and disease. + In Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Subsection-Heading" + +\end_inset + +, Wilson discusses the role of human migration in infectious disease distributio +ns and patterns. +\end_layout + +\begin_layout Subsection +Subsection Heading +\end_layout + +\begin_layout Standard +In order to avoid simply listing headings of different levels we recommend + to let every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Standard +Please note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Svgraybox +If you want to emphasize complete paragraphs of texts we recommend to use + the newly defined Springer class option +\emph on +graybox +\emph default + and the newly defined environment +\emph on +svgraybox +\emph default +. + This will produce a 15 +\begin_inset space \thinspace{} +\end_inset + +percent screened box 'behind' your text. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Svgraybox +If you want to emphasize complete paragraphs of texts we recommend to use + the newly defined Springer class option +\emph on +graybox +\emph default + and the newly defined environment +\emph on +svgraybox +\emph default +. + This will produce a 15 +\begin_inset space \thinspace{} +\end_inset + +percent screened box 'behind' your text. +\end_layout + +\begin_layout Subsubsection +Subsubsection Heading +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Standard +Please note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Theorem +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Name/Title (optional) +\end_layout + +\end_inset + +Theorem text goes here. +\end_layout + +\begin_layout Definition +Definition text goes here. +\end_layout + +\begin_layout Proof +Proof text goes here. +\end_layout + +\begin_layout Proof(QED) +\begin_inset Quotes eld +\end_inset + +qed layout +\begin_inset Quotes erd +\end_inset + + Proof text goes here. +\end_layout + +\begin_layout Paragraph +Paragraph Heading +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Standard +Note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Theorem +Theorem text goes here. +\end_layout + +\begin_layout Definition +Definition text goes here. +\end_layout + +\begin_layout Proof(smartQED) +\begin_inset Quotes eld +\end_inset + +smartqed layout +\begin_inset Quotes erd +\end_inset + + Proof text goes here. +\end_layout + +\begin_layout Acknowledgement +If you want to include acknowledgments of assistance and the like at the + end of an individual chapter please use the +\family sans +acknowledgement +\family default + environment – it will automatically render Springer's preferred layout. +\end_layout + +\begin_layout Section* +Appendix +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +addcontentsline{toc}{section}{ +\end_layout + +\end_inset + +Appendix +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + When placed at the end of a chapter or contribution (as opposed to at the + end of the book), the numbering of tables, figures, and equations in the + appendix section continues on from that in the main text. + Hence please +\shape italic +do not +\shape default + use the +\family sans +appendix +\family default + command when writing an appendix at the end of your chapter or contribution. + If there is only one the appendix is designated +\begin_inset Quotes eld +\end_inset + +Appendix +\begin_inset Quotes erd +\end_inset + +, or +\begin_inset Quotes eld +\end_inset + +Appendix 1 +\begin_inset Quotes erd +\end_inset + +, or +\begin_inset Quotes eld +\end_inset + +Appendix 2 +\begin_inset Quotes erd +\end_inset + +, etc. + if there is more than one. +\end_layout + +\begin_layout Standard +\begin_inset Formula +\begin{equation} +a\times b=c +\end{equation} + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand input +filename "11_References.lyx" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/09_Appendix.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/09_Appendix.lyx new file mode 100644 index 0000000000..58303418bb --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/09_Appendix.lyx @@ -0,0 +1,543 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmult +\use_default_options false +\master svmult_editor-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout ChapMotto +All's well that ends well +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional motto +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Chapter +Chapter Heading +\begin_inset CommandInset label +LatexCommand label +name "chap:introA" + +\end_inset + + +\end_layout + +\begin_layout Running Chapter +chapter heading in the running head +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Section Heading +\begin_inset CommandInset label +LatexCommand label +name "sec:Section-HeadingA" + +\end_inset + + +\end_layout + +\begin_layout Running Section +section heading in the running head +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +bla +\end_layout + +\begin_layout Subsection +Section Heading 2 +\begin_inset CommandInset label +LatexCommand label +name "subsec:Section-HeadingA-2" + +\end_inset + + +\end_layout + +\begin_layout Standard +For multiline equations we recommend to use the +\family sans +eqnarray +\family default + environment. + +\begin_inset Formula +\begin{eqnarray} +a\times b & = & c\nonumber \\ +\vec{a}\cdot\vec{b} & = & c\label{eq:A01} +\end{eqnarray} + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Subsubsection Heading +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement t +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +sidecaption[t] +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +replace this box by an image +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:A1" + +\end_inset + + Please write your figure caption here +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:A1" + +\end_inset + +Please write your table caption here +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Classes +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Subclass +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Length +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Action Mechanism +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +svhline +\end_layout + +\end_inset + + Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\begin_inset Formula $^{a}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +22 (19–25) +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Translation repression, mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +21 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +21–22 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +24–26 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Histone and DNA Modification +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Formula $^{a}$ +\end_inset + + Table foot note (with superscript) +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/10_Glossary.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/10_Glossary.lyx new file mode 100644 index 0000000000..903fff8504 --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/10_Glossary.lyx @@ -0,0 +1,177 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmult +\use_default_options false +\master svmult_editor-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Extrachap +Glossary +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The layout +\begin_inset Quotes eld +\end_inset + +Extrachap +\begin_inset Quotes erd +\end_inset + + is similar to +\begin_inset Quotes eld +\end_inset + +extrachap +\begin_inset Quotes erd +\end_inset + + (as described in the note behind the Acknowledgement) but it is also listed + in the table of contents. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Here comes the glossary +\begin_inset Index idx +status open + +\begin_layout Plain Layout +glossary +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Run-in headings +glossary term +\end_layout + +\begin_layout Standard +Write here the description of the glossary term. + Write here the description of the glossary term. + Write here the description of the glossary term. +\end_layout + +\begin_layout Run-in headings +glossary term +\end_layout + +\begin_layout Standard +Write here the description of the glossary term. + Write here the description of the glossary term. + Write here the description of the glossary term. +\end_layout + +\begin_layout Run-in headings +glossary term +\end_layout + +\begin_layout Standard +Write here the description of the glossary term. + Write here the description of the glossary term. + Write here the description of the glossary term. +\end_layout + +\begin_layout Run-in headings +glossary term +\end_layout + +\begin_layout Standard +Write here the description of the glossary term. + Write here the description of the glossary term. + Write here the description of the glossary term. +\end_layout + +\begin_layout Run-in headings +glossary term +\end_layout + +\begin_layout Standard +Write here the description of the glossary term. + Write here the description of the glossary term. + Write here the description of the glossary term. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Contributed_Books_(svmult)/11_References.lyx b/lib/examples/Books/Springer_Contributed_Books_(svmult)/11_References.lyx new file mode 100644 index 0000000000..3865a97921 --- /dev/null +++ b/lib/examples/Books/Springer_Contributed_Books_(svmult)/11_References.lyx @@ -0,0 +1,919 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass svmult +\use_default_options false +\master /usr/local/share/lyx/examples/springer/svmult_author.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +instead of manually inserting the references as done in this file as an + example, it is recommended to use Bib\SpecialChar TeX + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +biblstarthook{ +\end_layout + +\end_inset + +In view of the parallel print and (chapter-wise) online publication of your + book at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +www.springerlink.com +\end_layout + +\end_inset + + it has been decided that – as a general rule – references should be sorted + chapter-wise and placed at the end of the individual chapters. + However, upon agreement with your contact at Springer you may list your + references in a single separate chapter at the end of your book. + Deactivate the class option +\family typewriter +sectrefs +\family default + and the +\family typewriter +thebibliography +\family default + environment will be put out as a chapter of its own. +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +indent +\end_layout + +\end_inset + + References may be +\shape italic +cited +\shape default + in the text either by number (preferred) or by author/year. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Make sure that all references from the list are cited in the text. + Those not cited should be moved to a separate +\shape italic +Further Reading +\shape default + section or chapter. +\end_layout + +\end_inset + + The reference list should ideally be +\shape italic +sorted +\shape default + in alphabetical order – even if reference numbers are used for the their + citation in the text. + If there are several works by the same author, the following order should + be used: +\end_layout + +\begin_layout Enumerate +all works by the author alone, ordered chronologically by year of publication + +\end_layout + +\begin_layout Enumerate +all works by the author with a coauthor, ordered alphabetically by coauthor + +\end_layout + +\begin_layout Enumerate +all works by the author with several coauthors, ordered chronologically + by year of publication. + +\end_layout + +\begin_layout Standard +The +\shape italic +styling +\shape default + of references +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Always use the standard abbreviation of a journal's name according to the + ISSN +\shape italic +List of Title Word Abbreviations +\shape default +, see +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.issn.org/en/node/344 +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + depends on the subject of your book: +\end_layout + +\begin_layout Itemize +The +\shape italic +two +\shape default + recommended styles for references in books on +\shape italic +mathematical, physical, statistical and computer sciences +\shape default + are depicted in +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +key "science-contrib, science-online, science-mono, science-journal, science-DOI" +literal "true" + +\end_inset + + and +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +key "phys-online, phys-mono, phys-journal, phys-DOI, phys-contrib" +literal "true" + +\end_inset + +. + +\end_layout + +\begin_layout Itemize +Examples of the most commonly used reference style in books on +\shape italic +Psychology, Social Sciences +\shape default + are +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +key "psysoc-mono, psysoc-online,psysoc-journal, psysoc-contrib, psysoc-DOI" +literal "true" + +\end_inset + +. + +\end_layout + +\begin_layout Itemize +Examples for references in books on +\shape italic +Humanities, Linguistics, Philosophy +\shape default + are +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +key "humlinphil-journal, humlinphil-contrib, humlinphil-mono, humlinphil-online, humlinphil-DOI" +literal "true" + +\end_inset + +. + +\end_layout + +\begin_layout Itemize +Examples of the basic Springer style used in publications on a wide range + of subjects such as +\shape italic +Computer Science, Economics, Engineering, Geosciences, Life Sciences, Medicine, + Biomedicine +\shape default + are +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +key "basic-contrib, basic-online, basic-journal, basic-DOI, basic-mono" +literal "true" + +\end_inset + +. + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +end of biblstarthook +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Use the following syntax and markup for your references if the subject of + your book is from the field "Mathematics, Physics, Statistics, Computer + Science": +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "science-contrib" +literal "true" + +\end_inset + + Broy, M.: Software engineering — from auxiliary to key technologies. + In: Broy, M., Dener, E. + (eds.) Software Pioneers, pp. + 10-13. + Springer, Heidelberg (2002) +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "science-online" +literal "true" + +\end_inset + + Dod, J.: Effective substances. + In: The Dictionary of Substances and Their Effects. + Royal Society of Chemistry (1999) Available via DIALOG. + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.rsc.org/dose/title of subordinate document. + Cited 15 Jan 1999 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "science-mono" +literal "true" + +\end_inset + + Geddes, K.O., Czapor, S.R., Labahn, G.: Algorithms for Computer Algebra. + Kluwer, Boston (1992) +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "science-journal" +literal "true" + +\end_inset + + Hamburger, C.: Quasimonotonicity, regularity and duality for nonlinear systems + of partial differential equations. + Ann. + Mat. + Pura. + Appl. + +\series bold +169 +\series default +, 321–354 (1995) +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "science-DOI" +literal "true" + +\end_inset + + Slifka, M.K., Whitton, J.L.: Clinical implications of dysregulated cytokine + production. + J. + Mol. + Med. + (2000) doi: 10.1007/s001090000086 +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Use the following (APS) syntax and markup for your references if the subject + of your book is from the field "Mathematics, Physics, Statistics, Computer + Science": +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "phys-online" +literal "true" + +\end_inset + + J. + Dod, in +\shape italic +The Dictionary of Substances and Their Effects +\shape default +, Royal Society of Chemistry. + (Available via DIALOG, 1999), +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.rsc.org/dose/title of subordinate document. + Cited 15 Jan 1999 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "phys-mono" +literal "true" + +\end_inset + + H. + Ibach, H. + Lüth, +\shape italic +Solid-State Physics +\shape default +, 2nd edn. + (Springer, New York, 1996), pp. + 45-56 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "phys-journal" +literal "true" + +\end_inset + + S. + Preuss, A. + Demchuk Jr., M. + Stuke, Appl. + Phys. + A +\series bold +61 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "phys-DOI" +literal "true" + +\end_inset + + M.K. + Slifka, J.L. + Whitton, J. + Mol. + Med., doi: 10.1007/s001090000086 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "phys-contrib" +literal "true" + +\end_inset + + S.E. + Smith, in +\shape italic +Neuromuscular Junction +\shape default +, ed. + by E. + Zaimis. + Handbook of Experimental Pharmacology, vol 42 (Springer, Heidelberg, 1976), + p. + 593 +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "psysoc-mono" +literal "true" + +\end_inset + + Calfee, R. +\begin_inset space ~ +\end_inset + +C., & Valencia, R. +\begin_inset space ~ +\end_inset + +R. + (1991). + +\shape italic +APA guide to preparing manuscripts for journal publication. + +\shape default + Washington, DC: American Psychological Association. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "psysoc-online" +literal "true" + +\end_inset + + Dod, J. + (1999). + Effective substances. + In: The dictionary of substances and their effects. + Royal Society of Chemistry. + Available via DIALOG. + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.rsc.org/dose/Effective substances. +\end_layout + +\end_inset + + Cited 15 Jan 1999. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "psysoc-journal" +literal "true" + +\end_inset + + Harris, M., Karper, E., Stacks, G., Hoffman, D., DeNiro, R., Cruz, P., et al. + (2001). + Writing labs and the Hollywood connection. + +\shape italic +J Film +\shape default + Writing, 44(3), 213–245. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "psysoc-contrib" +literal "true" + +\end_inset + + O'Neil, J. +\begin_inset space ~ +\end_inset + +M., & Egan, J. + (1992). + Men's and women's gender role journeys: Metaphor for healing, transition, + and transformation. + In B. +\begin_inset space ~ +\end_inset + +R. + Wainrig (Ed.), +\shape italic +Gender issues across the life cycle +\shape default + (pp. + 107–123). + New York: Springer. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "psysoc-DOI" +literal "true" + +\end_inset + +Kreger, M., Brindis, C.D., Manuel, D.M., Sassoubre, L. + (2007). + Lessons learned in systems change initiatives: benchmarks and indicators. + +\shape italic +American Journal of Community Psychology +\shape default +, doi: 10.1007/s10464-007-9108-14. + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Use the following syntax and markup for your references if the subject of + your book is from the field "Humanities, Linguistics, Philosophy": +\end_layout + +\end_inset + + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "humlinphil-journal" +literal "true" + +\end_inset + + Alber John, Daniel C. + O'Connell, and Sabine Kowal. + 2002. + Personal perspective in TV interviews. + +\shape italic +Pragmatics +\shape default + 12:257–271 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "humlinphil-contrib" +literal "true" + +\end_inset + + Cameron, Deborah. + 1997. + Theoretical debates in feminist linguistics: Questions of sex and gender. + In +\shape italic +Gender and discourse +\shape default +, ed. + Ruth Wodak, 99–119. + London: Sage Publications. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "humlinphil-mono" +literal "true" + +\end_inset + + Cameron, Deborah. + 1985. + +\shape italic +Feminism and linguistic theory. + +\shape default + New York: St. + Martin's Press. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "humlinphil-online" +literal "true" + +\end_inset + + Dod, Jake. + 1999. + Effective substances. + In: The dictionary of substances and their effects. + Royal Society of Chemistry. + Available via DIALOG. + +\begin_inset Newline newline +\end_inset + + http://www.rsc.org/dose/title of subordinate document. + Cited 15 Jan 1999 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "humlinphil-DOI" +literal "true" + +\end_inset + + Suleiman, Camelia, Daniel C. + O'Connell, and Sabine Kowal. + 2002. + `If you and I, if we, in this later day, lose that sacred fire...´': Perspective + in political interviews. + +\shape italic +Journal of Psycholinguistic Research +\shape default +. + doi: 10.1023/A:1015592129296. + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "basic-contrib" +literal "true" + +\end_inset + + Brown B, Aaron M (2001) The politics of nature. + In: Smith J (ed) The rise of modern genomics, 3rd edn. + Wiley, New York +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "basic-online" +literal "true" + +\end_inset + + Dod J (1999) Effective Substances. + In: The dictionary of substances and their effects. + Royal Society of Chemistry. + Available via DIALOG. + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.rsc.org/dose/title of subordinate document. + Cited 15 Jan 1999 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "basic-DOI" +literal "true" + +\end_inset + + Slifka MK, Whitton JL (2000) Clinical implications of dysregulated cytokine + production. + J Mol Med, doi: 10.1007/s001090000086 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "basic-journal" +literal "true" + +\end_inset + + Smith J, Jones M Jr, Houghton L et al (1999) Future of health insurance. + N Engl J Med 965:325–329 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "basic-mono" +literal "true" + +\end_inset + + South J, Blass B (2001) The future of modern genomics. + Blackwell, London +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/00_Main_File.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/00_Main_File.lyx new file mode 100644 index 0000000000..de3a14b8a7 --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/00_Main_File.lyx @@ -0,0 +1,309 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass svmono +\begin_preamble +\usepackage{type1cm} + +\usepackage{multicol} % used for the two-column index +\usepackage[bottom]{footmisc} % places footnotes at page bottom + +%\makeindex % used for the subject index + % please use the style svind.ist with + % your makeindex program +\end_preamble +\options graybox,envcountchap,sectrefs +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "times" "default" +\font_sans "helvet" "default" +\font_typewriter "courier" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref true +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle true +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 2 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This is a template \SpecialChar LyX + file for books and monographs to be published by the + Springer publishing group. + How to install the svmono \SpecialChar LaTeX + class to your \SpecialChar LaTeX + system is explained in +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://wiki.lyx.org/Examples/Springer +\end_layout + +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Author +Author name(s) +\end_layout + +\begin_layout Title +Book title +\end_layout + +\begin_layout Subtitle +– Monograph – +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional subtitle +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Front Matter + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "01_Dedication.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "02_Foreword.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "03_Preface.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +acknowledgements are optional: +\end_layout + +\end_inset + + +\begin_inset CommandInset include +LatexCommand include +filename "04_Acknowledgements.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "05_Acronym.lyx" + +\end_inset + + +\end_layout + +\begin_layout Main Matter + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "06_Part.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "07_Chapter.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "08_Appendix.lyx" + +\end_inset + + +\end_layout + +\begin_layout Back Matter + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "09_Glossary.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand include +filename "10_Solutions.lyx" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset index_print +LatexCommand printindex +type "idx" +name "Index" +literal "false" + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +please use the style +\emph on +svind.ist +\emph default + with your makeindex program +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/01_Dedication.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/01_Dedication.lyx new file mode 100644 index 0000000000..a458f0757c --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/01_Dedication.lyx @@ -0,0 +1,96 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmono +\use_default_options false +\master svmono_book-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Dedication +A quotation or a dedication +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +dedication +\end_layout + +\end_inset + + at the very beginning of your book. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/02_Foreword.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/02_Foreword.lyx new file mode 100644 index 0000000000..4c42330f09 --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/02_Foreword.lyx @@ -0,0 +1,145 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmono +\use_default_options false +\master svmono_book-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Foreword +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The style Foreword has an optional argument that overrides the default text + "Foreword". + This is useful when there are different forewords by different authors + and editors. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The foreword covers introductory remarks preceding the text of a book that + are written by a +\shape italic +person other than the author or editor +\shape default + of the book. + If applicable, the foreword precedes the preface which is written by the + author or editor of the book. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +vspace{ +\backslash +baselineskip} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +\align right +Place, month year +\begin_inset space \hfill{} +\end_inset + + +\shape italic +Firstname Surname +\shape default + +\begin_inset Newline newline +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/03_Preface.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/03_Preface.lyx new file mode 100644 index 0000000000..1793ff93f3 --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/03_Preface.lyx @@ -0,0 +1,175 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmono +\use_default_options false +\master svmono_book-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Preface +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The style Preface has an optional argument that overrides the default text + "Preface". + This is useful when there are different prefaces by different authors and + editors. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +A preface +\begin_inset Index idx +status open + +\begin_layout Plain Layout +preface +\end_layout + +\end_inset + + is a book's preliminary statement, usually written by the +\shape italic +author or editor +\shape default + of a work, which states its origin, scope, purpose, plan, and intended + audience, and which sometimes includes afterthoughts and acknowledgments + of assistance. + +\end_layout + +\begin_layout Standard +When written by a person other than the author, it is called a foreword. + The preface or foreword is distinct from the introduction, which deals + with the subject of the work. +\end_layout + +\begin_layout Standard +Customarily +\shape italic +acknowledgments +\shape default + are included as last part of the preface. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +vspace{ +\backslash +baselineskip} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +\align right +Place(s), +\begin_inset space \hfill{} +\end_inset + + +\shape italic +Firstname Surname +\shape default + +\begin_inset Newline newline +\end_inset + +month year +\begin_inset space \hfill{} +\end_inset + + +\shape italic +Firstname Surname +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/04_Acknowledgements.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/04_Acknowledgements.lyx new file mode 100644 index 0000000000..ecdd21adc5 --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/04_Acknowledgements.lyx @@ -0,0 +1,129 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmono +\use_default_options false +\master svmono_book-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout extrachap +Acknowledgements +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The +\begin_inset Quotes eld +\end_inset + +extrachap +\begin_inset Quotes erd +\end_inset + + layout appears unnumbered and not in the table of contents. + But the layout shares the behavior of +\begin_inset Quotes eld +\end_inset + +Chapter +\begin_inset Quotes erd +\end_inset + + with respect to headings. + This is different from +\begin_inset Quotes eld +\end_inset + +Chapter* +\begin_inset Quotes erd +\end_inset + + which continues to use the name of the last numbered chapter in the header + of left pages and the name of the last numbered section in the header of + right pages. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Optional section; if you prefer to set your acknowledgement section as a + separate chapter instead of including it as last part of your preface. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/05_Acronym.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/05_Acronym.lyx new file mode 100644 index 0000000000..f18877b011 --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/05_Acronym.lyx @@ -0,0 +1,151 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmono +\use_default_options false +\master svmono_book-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout extrachap +Acronyms +\end_layout + +\begin_layout Standard +List(s) of abbreviations or symbols +\end_layout + +\begin_layout Standard +Lists of abbreviations +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +acronyms, list of +\end_layout + +\end_inset + +, symbols +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +symbols, list of +\end_layout + +\end_inset + + and the like are easily formatted with the help of the Springer-enhanced + +\family sans +description +\family default + environment. +\end_layout + +\begin_layout Description +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +CABR +\end_layout + +\end_inset + +ABC Spelled-out abbreviation and definition +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The optional longest description label ca be used to set the space that + is necessary to contain all description labels. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +BABI Spelled-out abbreviation and definition +\end_layout + +\begin_layout Description +CABR Spelled-out abbreviation and definition +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/06_Part.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/06_Part.lyx new file mode 100644 index 0000000000..347d9091f9 --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/06_Part.lyx @@ -0,0 +1,107 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmono +\use_default_options false +\master svmono_book-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout PartBacktext +\noindent +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Part Title +\end_layout + +\end_inset + + Part title page and, if desired, a short introductory text (maximum one + page) on its verso page +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The part title is mandatory; the further text for the backpart is optional. +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/07_Chapter.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/07_Chapter.lyx new file mode 100644 index 0000000000..3b744c200a --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/07_Chapter.lyx @@ -0,0 +1,1599 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass svmono +\use_default_options false +\master /usr/local/share/lyx/examples/springer/svmono_book-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Chapter +Chapter Heading +\begin_inset CommandInset label +LatexCommand label +name "chap:intro" + +\end_inset + + +\end_layout + +\begin_layout Running Chapter +chapter heading in the running head +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Abstract* +Each chapter should be preceded by an abstract (10–15 lines long) that summarize +s the content. + The abstract will appear +\shape italic +online +\shape default + at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +www.SpringerLink.com +\end_layout + +\end_inset + + and be available with unrestricted access. + This allows unregistered users to read the abstract as a teaser for the + complete chapter. + As a general rule the abstracts will not appear in the printed version + of your book unless it is the style of your particular book or that of + the series to which your book belongs. +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +indent +\end_layout + +\end_inset + + Please use the 'starred' version of the +\family typewriter +abstract +\family default + environment for typesetting the text of the online abstracts. + Use the plain +\family typewriter +abstract +\family default + if the abstract is also to appear in the printed version of the book. +\end_layout + +\begin_layout Abstract +Each chapter should be preceded by an abstract (10–15 lines long) that summarize +s the content. + The abstract will appear +\shape italic +online +\shape default + at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +www.SpringerLink.com +\end_layout + +\end_inset + + and be available with unrestricted access. + This allows unregistered users to read the abstract as a teaser for the + complete chapter. + As a general rule the abstracts will not appear in the printed version + of your book unless it is the style of your particular book or that of + the series to which your book belongs. +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +indent +\end_layout + +\end_inset + + Please use the 'starred' version of the +\family typewriter +abstract +\family default + environment for typesetting the text of the online abstracts. + Use the plain +\family typewriter +abstract +\family default + if the abstract is also to appear in the printed version of the book. +\end_layout + +\begin_layout Section +Section Heading +\begin_inset CommandInset label +LatexCommand label +name "sec:Section-Heading" + +\end_inset + + +\end_layout + +\begin_layout Running Section +section heading in the running head +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +bla +\end_layout + +\begin_layout Section +Section Heading 2 +\begin_inset CommandInset label +LatexCommand label +name "sec:Section-Heading-2" + +\end_inset + + +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Standard +Use the standard +\family sans +equation +\family default + environment to typeset your equations, e.g. + +\begin_inset Formula +\begin{equation} +a\times b=c\;, +\end{equation} + +\end_inset + + however, for multiline equations we recommend to use the +\family sans +eqnarray +\family default + environment +\begin_inset Foot +status open + +\begin_layout Plain Layout +In physics texts please activate the class option +\family typewriter +vecphys +\family default + to depict your vectors in +\series bold +\shape italic +boldface-italic +\series default + type - as is customary for a wide range of physical subjects. +\end_layout + +\end_inset + +. + +\begin_inset Formula +\begin{eqnarray} +a\times b & = & c\nonumber \\ +\vec{a}\cdot\vec{b} & = & c\label{eq:01} +\end{eqnarray} + +\end_inset + + +\end_layout + +\begin_layout Subsection +Subsection Heading +\begin_inset CommandInset label +LatexCommand label +name "subsec:Subsection-Heading" + +\end_inset + + +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. + Furtheron please use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-references +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +cross-references +\end_layout + +\end_inset + + and citations +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +citations +\end_layout + +\end_inset + + as has already been described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading-2" + +\end_inset + +. +\end_layout + +\begin_layout Quotation +Please do not use quotation marks when quoting texts! Simply use the +\family sans +quotation +\family default + environment – it will automatically render Springer's preferred layout. + +\end_layout + +\begin_layout Subsubsection +Subsubsection Heading +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. + Furtheron please use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-references and citations as has already been + described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Subsection-Heading" + +\end_inset + +, see also Fig. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:If-the-width" + +\end_inset + + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +If you copy text passages, figures, or tables from other works, you must + obtain +\shape italic +permission +\shape default + from the copyright holder (usually the original publisher). + Please enclose the signed permission with the manucript. + The sources +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +permission to print +\end_layout + +\end_inset + + must be acknowledged either in the captions, as footnotes or in a separate + section of the book. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Please note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement b +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +sidecaption +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "7.5cm" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +replace this box by an image +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:If-the-width" + +\end_inset + +If the width of the figure is less than 7.8 +\begin_inset space \thinspace{} +\end_inset + +cm use the +\family typewriter +sidecapion +\family default + command to flush the caption on the left side of the page. + If the figure is positioned at the top of the page, align the sidecaption + with the top of the figure – to achieve this you simply need to use the + optional argument +\family typewriter +[t] +\family default + with the +\family typewriter +sidecaption +\family default + command +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Paragraph +Paragraph Heading +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Standard +For typesetting numbered lists we recommend to use the +\family sans +enumerate +\family default + environment – it will automatically render Springer's preferred layout. +\end_layout + +\begin_layout Enumerate +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\begin_deeper +\begin_layout Enumerate +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\begin_layout Enumerate +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\end_deeper +\begin_layout Enumerate +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\begin_layout Subparagraph +Subparagraph Heading +\end_layout + +\begin_layout Standard +In order to avoid simply listing headings of different levels we recommend + to let every heading be followed by at least a short passage of text. + Use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-references and citations as has already been + described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading-2" + +\end_inset + +, see also Fig. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:2" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Please note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Standard +For unnumbered list we recommend to use the +\family sans +itemize +\family default + environment – it will automatically render Springer's preferred layout. +\end_layout + +\begin_layout Itemize +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development, cf. +\begin_inset space ~ +\end_inset + +Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:1" + +\end_inset + +. +\end_layout + +\begin_deeper +\begin_layout Itemize +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\begin_layout Itemize +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\end_deeper +\begin_layout Itemize +Livelihood and survival mobility are oftentimes coutcomes of uneven socioeconomi +c development. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement t +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +sidecaption[t] +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +replace this box by an image +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:2" + +\end_inset + + Please write your figure caption here +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Run-in headings +Run-in Heading Boldface Version +\end_layout + +\begin_layout Standard +Use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-references and citations as has already been + described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading-2" + +\end_inset + +. +\end_layout + +\begin_layout Sub-run-in headings +Run-in Heading Italic Version +\end_layout + +\begin_layout Standard +Use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-refer\SpecialChar softhyphen +ences and citations as has already been + described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading-2" + +\end_inset + + +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +paragraph +\end_layout + +\end_inset + +. + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:1" + +\end_inset + +Please write your table caption here +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Classes +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Subclass +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Length +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Action Mechanism +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +svhline +\end_layout + +\end_inset + + Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\begin_inset Formula $^{a}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +22 (19–25) +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Translation repression, mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +21 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +21–22 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +24–26 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Histone and DNA Modification +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Formula $^{a}$ +\end_inset + + Table foot note (with superscript) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Section Heading +\begin_inset CommandInset label +LatexCommand label +name "sec:Section-Heading-3" + +\end_inset + + +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Standard +Please note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Standard +If you want to list definitions or the like we recommend to use the Springer-enh +anced +\family sans +description +\family default + environment – it will automatically render Springer's preferred layout. +\end_layout + +\begin_layout Description +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Type 1 +\end_layout + +\end_inset + +Type +\begin_inset space ~ +\end_inset + +1 That addresses central themes pertainng to migration, health, and disease. + In Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading" + +\end_inset + +, Wilson discusses the role of human migration in infectious disease distributio +ns and patterns. +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The optional longest description label ca be used to set the space that + is necessary to contain all description labels. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Type +\begin_inset space ~ +\end_inset + +2 That addresses central themes pertainng to migration, health, and disease. + In Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading-3" + +\end_inset + +, Wilson discusses the role of human migration in infectious disease distributio +ns and patterns. +\end_layout + +\begin_layout Subsection +Subsection Heading +\end_layout + +\begin_layout Standard +In order to avoid simply listing headings of different levels we recommend + to let every heading be followed by at least a short passage of text. + Use the \SpecialChar LyX + +\begin_inset space \space{} +\end_inset + +automatism for all your cross-references and citations citations as has + already been described in Sect. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Section-Heading-2" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Please note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Svgraybox +If you want to emphasize complete paragraphs of texts we recommend to use + the newly defined Springer class option +\emph on +graybox +\emph default + and the newly defined environment +\emph on +svgraybox +\emph default +. + This will produce a 15 +\begin_inset space \thinspace{} +\end_inset + +percent screened box 'behind' your text. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Svgraybox +If you want to emphasize complete paragraphs of texts we recommend to use + the newly defined Springer class option +\emph on +graybox +\emph default + and the newly defined environment +\emph on +svgraybox +\emph default +. + This will produce a 15 +\begin_inset space \thinspace{} +\end_inset + +percent screened box 'behind' your text. +\end_layout + +\begin_layout Subsubsection +Subsubsection Heading +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Standard +Please note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Theorem +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Name/Title (optional) +\end_layout + +\end_inset + +Theorem text goes here. +\end_layout + +\begin_layout Definition +Definition text goes here. +\end_layout + +\begin_layout Proof +Proof text goes here. +\end_layout + +\begin_layout Proof(QED) +\begin_inset Quotes eld +\end_inset + +qed layout +\begin_inset Quotes erd +\end_inset + + Proof text goes here. +\end_layout + +\begin_layout Paragraph +Paragraph Heading +\end_layout + +\begin_layout Standard +Instead of simply listing headings of different levels we recommend to let + every heading be followed by at least a short passage of text. +\end_layout + +\begin_layout Standard +Note that the first line of text that follows a heading is not indented, + whereas the first lines of all subsequent paragraphs are. +\end_layout + +\begin_layout Theorem +Theorem text goes here. +\end_layout + +\begin_layout Definition +Definition text goes here. +\end_layout + +\begin_layout Proof(smartQED) +\begin_inset Quotes eld +\end_inset + +smartqed layout +\begin_inset Quotes erd +\end_inset + + Proof text goes here. +\end_layout + +\begin_layout Acknowledgement +If you want to include acknowledgments of assistance and the like at the + end of an individual chapter please use the +\family sans +acknowledgement +\family default + environment – it will automatically render Springer's preferred layout. +\end_layout + +\begin_layout Section* +Appendix +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +addcontentsline{toc}{section}{ +\end_layout + +\end_inset + +Appendix +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +adds an entry to the table of contents +\end_layout + +\end_inset + + When placed at the end of a chapter or contribution (as opposed to at the + end of the book), the numbering of tables, figures, and equations in the + appendix section continues on from that in the main text. + Hence please +\shape italic +do not +\shape default + use the +\family sans +appendix +\family default + command when writing an appendix at the end of your chapter or contribution. + If there is only one the appendix is designated +\begin_inset Quotes eld +\end_inset + +Appendix +\begin_inset Quotes erd +\end_inset + +, or +\begin_inset Quotes eld +\end_inset + +Appendix 1 +\begin_inset Quotes erd +\end_inset + +, or +\begin_inset Quotes eld +\end_inset + +Appendix 2 +\begin_inset Quotes erd +\end_inset + +, etc. + if there is more than one. +\end_layout + +\begin_layout Standard +\begin_inset Formula +\begin{equation} +a\times b=c +\end{equation} + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Problems or Exercises should be sorted chapterwise +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section* +Problems +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +addcontentsline{toc}{section}{ +\end_layout + +\end_inset + +Problems +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +adds an entry to the table of contents +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Don't forget to label each problem; the label is needed for the solutions' + environment +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +There are two styles for problems: +\family sans +Prob +\family default + and +\family sans +Problem +\family default +. + The +\family sans +Prob +\family default + style is the preferred because it can be referenced in the solution section. +\end_layout + +\begin_layout Standard +Two +\begin_inset space ~ +\end_inset + +examples of +\family sans +Prob +\family default +: +\end_layout + +\begin_layout Prob +\begin_inset CommandInset label +LatexCommand label +name "prob:given-problem" + +\end_inset + +A given problem or excercise is described here. + The problem is described here. + Its label will be referenced in its solution. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Prob +\begin_inset CommandInset label +LatexCommand label +name "prob:prob2" + +\end_inset + + +\series bold +Problem Heading +\series default + +\begin_inset Newline newline +\end_inset + + (a) The first part of the problem is described here. +\begin_inset Newline newline +\end_inset + + (b) The second part of the problem is described here. +\end_layout + +\begin_layout Standard +This is the +\family sans +Problem +\family default + style: +\end_layout + +\begin_layout Problem +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Title/Name (optional) +\end_layout + +\end_inset + +The problem +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +problems +\end_layout + +\end_inset + + is revealed here. +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand input +filename "11_References.lyx" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/08_Appendix.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/08_Appendix.lyx new file mode 100644 index 0000000000..08d03d9dea --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/08_Appendix.lyx @@ -0,0 +1,544 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmono +\use_default_options false +\master svmono_book-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout ChapMotto +\start_of_appendix +All's well that ends well +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional motto +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Chapter +Chapter Heading +\begin_inset CommandInset label +LatexCommand label +name "chap:introA" + +\end_inset + + +\end_layout + +\begin_layout Running Chapter +chapter heading in the running head +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Section Heading +\begin_inset CommandInset label +LatexCommand label +name "sec:Section-HeadingA" + +\end_inset + + +\end_layout + +\begin_layout Running Section +section heading in the running head +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +bla +\end_layout + +\begin_layout Subsection +Section Heading 2 +\begin_inset CommandInset label +LatexCommand label +name "subsec:Section-HeadingA-2" + +\end_inset + + +\end_layout + +\begin_layout Standard +For multiline equations we recommend to use the +\family sans +eqnarray +\family default + environment. + +\begin_inset Formula +\begin{eqnarray} +a\times b & = & c\nonumber \\ +\vec{a}\cdot\vec{b} & = & c\label{eq:A01} +\end{eqnarray} + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Subsubsection Heading +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement t +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +sidecaption[t] +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "25col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +replace this box by an image +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "fig:A1" + +\end_inset + + Please write your figure caption here +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:A1" + +\end_inset + +Please write your table caption here +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Classes +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Subclass +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Length +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Action Mechanism +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +svhline +\end_layout + +\end_inset + + Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\begin_inset Formula $^{a}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +22 (19–25) +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Translation repression, mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +21 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +21–22 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA cleavage +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Translation +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +mRNA +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +24–26 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Histone and DNA Modification +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Formula $^{a}$ +\end_inset + + Table foot note (with superscript) +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/09_Glossary.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/09_Glossary.lyx new file mode 100644 index 0000000000..0cdebf89b0 --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/09_Glossary.lyx @@ -0,0 +1,177 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmono +\use_default_options false +\master svmono_book-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Extrachap +Glossary +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The layout +\begin_inset Quotes eld +\end_inset + +Extrachap +\begin_inset Quotes erd +\end_inset + + is similar to +\begin_inset Quotes eld +\end_inset + +extrachap +\begin_inset Quotes erd +\end_inset + + (as described in the note behind the Acknowledgement) but it is also listed + in the table of contents. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Here comes the glossary +\begin_inset Index idx +status open + +\begin_layout Plain Layout +glossary +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Run-in headings +glossary term +\end_layout + +\begin_layout Standard +Write here the description of the glossary term. + Write here the description of the glossary term. + Write here the description of the glossary term. +\end_layout + +\begin_layout Run-in headings +glossary term +\end_layout + +\begin_layout Standard +Write here the description of the glossary term. + Write here the description of the glossary term. + Write here the description of the glossary term. +\end_layout + +\begin_layout Run-in headings +glossary term +\end_layout + +\begin_layout Standard +Write here the description of the glossary term. + Write here the description of the glossary term. + Write here the description of the glossary term. +\end_layout + +\begin_layout Run-in headings +glossary term +\end_layout + +\begin_layout Standard +Write here the description of the glossary term. + Write here the description of the glossary term. + Write here the description of the glossary term. +\end_layout + +\begin_layout Run-in headings +glossary term +\end_layout + +\begin_layout Standard +Write here the description of the glossary term. + Write here the description of the glossary term. + Write here the description of the glossary term. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/10_Solutions.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/10_Solutions.lyx new file mode 100644 index 0000000000..6d303b4f39 --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/10_Solutions.lyx @@ -0,0 +1,240 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmono +\use_default_options false +\master svmono_book-master.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Extrachap +Solutions +\end_layout + +\begin_layout Section* +Problems of Chapter +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "chap:intro" + +\end_inset + + +\end_layout + +\begin_layout Standard +There two styles for solutions: +\family sans +Sol +\family default + and +\family sans +Solution +\family default +. + The +\family sans +Sol +\family default + style is the preferred because it references trhe corresponding +\family sans +Prob +\family default + problem style. +\end_layout + +\begin_layout Standard +An examples of +\family sans +Sol +\family default +: +\end_layout + +\begin_layout Sol +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +prob:given-problem +\end_layout + +\end_inset + +The solution of the corresponding problem. +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The label of the corresponding (referenced) problem is +\emph on +mandatory +\emph default +! +\end_layout + +\end_inset + + The number of the prob/sol can also be referenced in the text: +\begin_inset Quotes eld +\end_inset + +As explained in the description of problem +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "prob:given-problem" + +\end_inset + +\SpecialChar ldots + +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Sol +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +prob:prob2 +\end_layout + +\end_inset + + +\series bold +Problem Heading +\series default + +\begin_inset Newline newline +\end_inset + +(a) The solution of first part is revealed here. +\begin_inset Newline newline +\end_inset + +(b) The solution of second part is revealed here. +\end_layout + +\begin_layout Standard +An example of +\family sans +Solution +\family default +: +\end_layout + +\begin_layout Solution +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Title/Name (optional) +\end_layout + +\end_inset + +The solution +\begin_inset Index idx +status collapsed + +\begin_layout Plain Layout +solutions +\end_layout + +\end_inset + + is revealed here. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Springer_Monographs_(svmono)/11_References.lyx b/lib/examples/Books/Springer_Monographs_(svmono)/11_References.lyx new file mode 100644 index 0000000000..ed1e58d94e --- /dev/null +++ b/lib/examples/Books/Springer_Monographs_(svmono)/11_References.lyx @@ -0,0 +1,923 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/springer/ +\textclass svmono +\use_default_options false +\master svmono_chapter.lyx +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +instead of manually inserting the references as done in this file as an + example, it is recommended to use Bib\SpecialChar TeX + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +biblstarthook{ +\end_layout + +\end_inset + +In view of the parallel print and (chapter-wise) online publication of your + book at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +www.springerlink.com +\end_layout + +\end_inset + + it has been decided that – as a genreral rule – references should be sorted + chapter-wise and placed at the end of the individual chapters. + However, upon agreement with your contact at Springer you may list your + references in a single seperate chapter at the end of your book. + Deactivate the class option +\family typewriter +sectrefs +\family default + and the +\family typewriter +thebibliography +\family default + environment will be put out as a chapter of its own. +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +indent +\end_layout + +\end_inset + + References may be +\shape italic +cited +\shape default + in the text either by number (preferred) or by author/year. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Make sure that all references from the list are cited in the text. + Those not cited should be moved to a separate +\shape italic +Further Reading +\shape default + section or chapter. +\end_layout + +\end_inset + + The reference list should ideally be +\shape italic +sorted +\shape default + in alphabetical order – even if reference numbers are used for the their + citation in the text. + If there are several works by the same author, the following order should + be used: +\end_layout + +\begin_layout Enumerate +all works by the author alone, ordered chronologically by year of publication + +\end_layout + +\begin_layout Enumerate +all works by the author with a coauthor, ordered alphabetically by coauthor + +\end_layout + +\begin_layout Enumerate +all works by the author with several coauthors, ordered chronologically + by year of publication. + +\end_layout + +\begin_layout Standard +The +\shape italic +styling +\shape default + of references +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Always use the standard abbreviation of a journal's name according to the + ISSN +\shape italic +List of Title Word Abbreviations +\shape default +, see +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.issn.org/en/node/344 +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + depends on the subject of your book: +\end_layout + +\begin_layout Itemize +The +\shape italic +two +\shape default + recommended styles for references in books on +\shape italic +mathematical, physical, statistical and computer sciences +\shape default + are depicted in +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +key "science-contrib, science-online, science-mono, science-journal, science-DOI" +literal "true" + +\end_inset + + and +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +key "phys-online, phys-mono, phys-journal, phys-DOI, phys-contrib" +literal "true" + +\end_inset + +. + +\end_layout + +\begin_layout Itemize +Examples of the most commonly used reference style in books on +\shape italic +Psychology, Social Sciences +\shape default + are +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +key "psysoc-mono, psysoc-online,psysoc-journal, psysoc-contrib, psysoc-DOI" +literal "true" + +\end_inset + +. + +\end_layout + +\begin_layout Itemize +Examples for references in books on +\shape italic +Humanities, Linguistics, Philosophy +\shape default + are +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +key "humlinphil-journal, humlinphil-contrib, humlinphil-mono, humlinphil-online, humlinphil-DOI" +literal "true" + +\end_inset + +. + +\end_layout + +\begin_layout Itemize +Examples of the basic Springer style used in publications on a wide range + of subjects such as +\shape italic +Computer Science, Economics, Engineering, Geosciences, Life Sciences, Medicine, + Biomedicine +\shape default + are +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +key "basic-contrib, basic-online, basic-journal, basic-DOI, basic-mono" +literal "true" + +\end_inset + +. + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +end of +\series bold + +\backslash +biblstarthook +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Use the following syntax and markup for your references if the subject of + your book is from the field "Mathematics, Physics, Statistics, Computer + Science": +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "science-contrib" +literal "true" + +\end_inset + + Broy, M.: Software engineering — from auxiliary to key technologies. + In: Broy, M., Dener, E. + (eds.) Software Pioneers, pp. + 10-13. + Springer, Heidelberg (2002) +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "science-online" +literal "true" + +\end_inset + + Dod, J.: Effective substances. + In: The Dictionary of Substances and Their Effects. + Royal Society of Chemistry (1999) Available via DIALOG. + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.rsc.org/dose/title of subordinate document. + Cited 15 Jan 1999 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "science-mono" +literal "true" + +\end_inset + + Geddes, K.O., Czapor, S.R., Labahn, G.: Algorithms for Computer Algebra. + Kluwer, Boston (1992) +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "science-journal" +literal "true" + +\end_inset + + Hamburger, C.: Quasimonotonicity, regularity and duality for nonlinear systems + of partial differential equations. + Ann. + Mat. + Pura. + Appl. + +\series bold +169 +\series default +, 321–354 (1995) +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "science-DOI" +literal "true" + +\end_inset + + Slifka, M.K., Whitton, J.L.: Clinical implications of dysregulated cytokine + production. + J. + Mol. + Med. + (2000) doi: 10.1007/s001090000086 +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Use the following (APS) syntax and markup for your references if the subject + of your book is from the field "Mathematics, Physics, Statistics, Computer + Science": +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "phys-online" +literal "true" + +\end_inset + + J. + Dod, in +\shape italic +The Dictionary of Substances and Their Effects +\shape default +, Royal Society of Chemistry. + (Available via DIALOG, 1999), +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.rsc.org/dose/title of subordinate document. + Cited 15 Jan 1999 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "phys-mono" +literal "true" + +\end_inset + + H. + Ibach, H. + Lüth, +\shape italic +Solid-State Physics +\shape default +, 2nd edn. + (Springer, New York, 1996), pp. + 45-56 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "phys-journal" +literal "true" + +\end_inset + + S. + Preuss, A. + Demchuk Jr., M. + Stuke, Appl. + Phys. + A +\series bold +61 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "phys-DOI" +literal "true" + +\end_inset + + M.K. + Slifka, J.L. + Whitton, J. + Mol. + Med., doi: 10.1007/s001090000086 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "phys-contrib" +literal "true" + +\end_inset + + S.E. + Smith, in +\shape italic +Neuromuscular Junction +\shape default +, ed. + by E. + Zaimis. + Handbook of Experimental Pharmacology, vol 42 (Springer, Heidelberg, 1976), + p. + 593 +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "psysoc-mono" +literal "true" + +\end_inset + + Calfee, R. +\begin_inset space ~ +\end_inset + +C., & Valencia, R. +\begin_inset space ~ +\end_inset + +R. + (1991). + +\shape italic +APA guide to preparing manuscripts for journal publication. + +\shape default + Washington, DC: American Psychological Association. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "psysoc-online" +literal "true" + +\end_inset + + Dod, J. + (1999). + Effective substances. + In: The dictionary of substances and their effects. + Royal Society of Chemistry. + Available via DIALOG. + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.rsc.org/dose/Effective substances. +\end_layout + +\end_inset + + Cited 15 Jan 1999. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "psysoc-journal" +literal "true" + +\end_inset + + Harris, M., Karper, E., Stacks, G., Hoffman, D., DeNiro, R., Cruz, P., et al. + (2001). + Writing labs and the Hollywood connection. + +\shape italic +J Film +\shape default + Writing, 44(3), 213–245. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "psysoc-contrib" +literal "true" + +\end_inset + + O'Neil, J. +\begin_inset space ~ +\end_inset + +M., & Egan, J. + (1992). + Men's and women's gender role journeys: Metaphor for healing, transition, + and transformation. + In B. +\begin_inset space ~ +\end_inset + +R. + Wainrig (Ed.), +\shape italic +Gender issues across the life cycle +\shape default + (pp. + 107–123). + New York: Springer. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "psysoc-DOI" +literal "true" + +\end_inset + +Kreger, M., Brindis, C.D., Manuel, D.M., Sassoubre, L. + (2007). + Lessons learned in systems change initiatives: benchmarks and indicators. + +\shape italic +American Journal of Community Psychology +\shape default +, doi: 10.1007/s10464-007-9108-14. + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Use the following syntax and markup for your references if the subject of + your book is from the field "Humanities, Linguistics, Philosophy": +\end_layout + +\end_inset + + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "humlinphil-journal" +literal "true" + +\end_inset + + Alber John, Daniel C. + O'Connell, and Sabine Kowal. + 2002. + Personal perspective in TV interviews. + +\shape italic +Pragmatics +\shape default + 12:257–271 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "humlinphil-contrib" +literal "true" + +\end_inset + + Cameron, Deborah. + 1997. + Theoretical debates in feminist linguistics: Questions of sex and gender. + In +\shape italic +Gender and discourse +\shape default +, ed. + Ruth Wodak, 99–119. + London: Sage Publications. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "humlinphil-mono" +literal "true" + +\end_inset + + Cameron, Deborah. + 1985. + +\shape italic +Feminism and linguistic theory. + +\shape default + New York: St. + Martin's Press. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "humlinphil-online" +literal "true" + +\end_inset + + Dod, Jake. + 1999. + Effective substances. + In: The dictionary of substances and their effects. + Royal Society of Chemistry. + Available via DIALOG. + +\begin_inset Newline newline +\end_inset + + http://www.rsc.org/dose/title of subordinate document. + Cited 15 Jan 1999 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "humlinphil-DOI" +literal "true" + +\end_inset + + Suleiman, Camelia, Daniel C. + O'Connell, and Sabine Kowal. + 2002. + `If you and I, if we, in this later day, lose that sacred fire...´': Perspective + in political interviews. + +\shape italic +Journal of Psycholinguistic Research +\shape default +. + doi: 10.1023/A:1015592129296. + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "basic-contrib" +literal "true" + +\end_inset + + Brown B, Aaron M (2001) The politics of nature. + In: Smith J (ed) The rise of modern genomics, 3rd edn. + Wiley, New York +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "basic-online" +literal "true" + +\end_inset + + Dod J (1999) Effective Substances. + In: The dictionary of substances and their effects. + Royal Society of Chemistry. + Available via DIALOG. + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.rsc.org/dose/title of subordinate document. + Cited 15 Jan 1999 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "basic-DOI" +literal "true" + +\end_inset + + Slifka MK, Whitton JL (2000) Clinical implications of dysregulated cytokine + production. + J Mol Med, doi: 10.1007/s001090000086 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "basic-journal" +literal "true" + +\end_inset + + Smith J, Jones M Jr, Houghton L et al (1999) Future of health insurance. + N Engl J Med 965:325–329 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "basic-mono" +literal "true" + +\end_inset + + South J, Blass B (2001) The future of modern genomics. + Blackwell, London +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Books/Tufte_Book.lyx b/lib/examples/Books/Tufte_Book.lyx new file mode 100644 index 0000000000..d1642777f6 --- /dev/null +++ b/lib/examples/Books/Tufte_Book.lyx @@ -0,0 +1,1522 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 553 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass tufte-book +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding auto +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command bibtex +\index_command default +\float_placement class +\float_alignment class +\paperfontsize default +\spacing single +\use_hyperref true +\pdf_bookmarks true +\pdf_bookmarksnumbered false +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle true +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine natbib +\cite_engine_type authoryear +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 2 +\tocdepth 2 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note +\series default +: To be able to view your file as PDF you must have the \SpecialChar LaTeX +-package +\family sans +fpl +\family default + installed to your \SpecialChar LaTeX + system. + If you are using MiK\SpecialChar TeX +, you will automatically be asked to install this package + when previewing your file, if you are using \SpecialChar TeX +Live, use \SpecialChar TeX +Live's package manager. +\end_layout + +\begin_layout Plain Layout + +\series bold +Note 2 +\series default +: If you wish to compile to PDF with plain \SpecialChar LaTeX + (instead of pdf\SpecialChar TeX +), there is currently + a bug in the Tufte class that causes errors. + You can add the class option 'nols' (put this in the +\begin_inset Quotes eld +\end_inset + +Custom +\begin_inset Quotes erd +\end_inset + + field of Document\SpecialChar menuseparator +Settings \SpecialChar menuseparator +Document Class) to get rid of the errors, but + this also removes letterspacing, an important part of the Tufte design. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +Tufte Examples +\end_layout + +\begin_layout Author +Fake Author +\begin_inset Note Note +status open + +\begin_layout Plain Layout +author of this example file: Jason Waskiewicz +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Chapter +The Features of the Tufte-book Class +\end_layout + +\begin_layout Standard +In this document, it was endeavored to show some of the features of the + +\family sans +Tufte-book +\family default + class. + In the first chapter, their use is outlined. + In the second chapter, their use through a handout that was created in + a calculus class is demonstrated. +\end_layout + +\begin_layout Section +Features +\end_layout + +\begin_layout Standard +The +\family sans +Tufte-book +\family default + class is based on the work of +\noun on +Edward Tufte +\noun default +. + It provides the same functionality as the +\family sans +Tufte-handout +\family default + class with book-specific additions. + Tufte's documents consist of a rather narrow column of text and a wide + column of margin notes and margin figures. + This is to improve readability. +\end_layout + +\begin_layout Standard +The features provided by this format include: +\end_layout + +\begin_layout Itemize +Margin figures +\end_layout + +\begin_layout Itemize +Ordinary figures in text with captions in margins +\end_layout + +\begin_layout Itemize +Full width figures and text when needed +\end_layout + +\begin_layout Itemize +\begin_inset Quotes eld +\end_inset + +Footnotes +\begin_inset Quotes erd +\end_inset + + in margins +\end_layout + +\begin_layout Itemize +Limited layers of sections and subsections +\end_layout + +\begin_layout Standard +In this sample document, some of these features are demonstrated. + For a full demonstration, visit the tufte-latex website: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://tufte-latex.github.io/tufte-latex/ +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Section +Page Layout +\end_layout + +\begin_layout Standard +Tufte's margins are +\begin_inset Quotes eld +\end_inset + +ragged right +\begin_inset Quotes erd +\end_inset + + rather than justified. +\begin_inset Flex Sidenote +status open + +\begin_layout Plain Layout +To get justified text, add the option +\emph on +justified +\emph default + to the +\emph on +Custom +\emph default + field in +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Document Class +\family default +. +\end_layout + +\end_inset + + Ragged right text is used in most of his works, but the class option +\emph on +justified +\emph default + is provided to change this. +\end_layout + +\begin_layout Standard +Tufte also formats his pages asymmetrically. + This means that the marginalia appear on the right side on each page, whether + odd or even. + If you prefer, you can change that and have symmetric layout, as common + in traditional book typography, by using the +\emph on +symmetric +\emph default + class option. +\begin_inset Flex Sidenote +status open + +\begin_layout Plain Layout +To create a symmetric layout, add the option +\emph on +symmetric +\emph default + to the +\emph on +Custom +\emph default + field in +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Document Class +\family default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Finally, Tufte does not number his chapters or his sections. + If you like to refer to sections by number, move the +\emph on +Numbering +\emph default + slider in +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Numbering & TOC +\family default + to the very right (as done in this document). +\begin_inset Flex Marginnote +status collapsed + +\begin_layout Plain Layout +marginnote +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Figures +\end_layout + +\begin_layout Standard +Tufte uses ordinary figure floats such as the following: +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +Imagine your favorite figure inside this box instead of this boring text. +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +An ordinary figure float. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Furthermore, he uses margin figures, as shown in Fig. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:margin-figure" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset VSpace 5theight% +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float marginfigure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +Imagine your favorite photograph of a squirrel inside this box instead of + this boring text. +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +A margin figure. +\begin_inset CommandInset label +LatexCommand label +name "fig:margin-figure" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + If you are using margin figures or tables you must use the default float + placement option in the document settings under +\family sans +Float +\begin_inset space ~ +\end_inset + +Placement +\family default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +In the same vein, the +\family sans +Tufte-book +\family default + class allows the use of tables, both in the margins and in the text. + The margin tables are recommended for a small set of data to illustrate + a concept such as +\begin_inset Quotes eld +\end_inset + +Look, distance-time data is quadratic when the object is falling. +\begin_inset Quotes erd +\end_inset + + More detailed data such as flame test results and comments should be put + in a full-width table instead. +\end_layout + +\begin_layout Standard +Finally, +\family sans +Tufte-book +\family default + provides a full-width figure. + This one takes up the entire width of the page, i. +\begin_inset space \thinspace{} +\end_inset + +e., text and margin. + See Fig. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:full-width-figure" + +\end_inset + + for an example. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement document +alignment document +wide true +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100line%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +Imagine your favorite photograph of a squirrel inside this box instead of + this boring text. +\end_layout + +\end_inset + + +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +A full-width figure. +\begin_inset CommandInset label +LatexCommand label +name "fig:full-width-figure" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Working with Text +\end_layout + +\begin_layout Standard +One of the most prominent and distinctive features of this style is the + extensive use of sidenotes. + There is a wide margin to provide ample room for sidenotes and small figures. + Any footnotes will automatically be converted to sidenotes. +\begin_inset Foot +status open + +\begin_layout Plain Layout +This is a sidenote that was entered using a +\family typewriter +footnote +\family default +. +\end_layout + +\end_inset + + Alternatively, you can also use the +\family typewriter +Sidenote +\family default + inset directly; you'll find it in the +\family sans +Insert\SpecialChar menuseparator +Custom Insets +\family default + menu. +\begin_inset Flex Sidenote +status open + +\begin_layout Plain Layout +This is a sidenote that was entered using a +\family typewriter +sidenote +\family default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +If you like to place ancillary information in the margin without the sidenote + mark (the superscript number), you can use the +\family typewriter +Marginnote +\family default + inset. + +\begin_inset Flex Marginnote +status open + +\begin_layout Plain Layout +This is Tufte's margin note. + Notice that there isn't a number preceding the note, and there is no number + in the main text where this note was written. +\end_layout + +\end_inset + + The normal margin note will work as well, but it will look rather odd. +\begin_inset Marginal +status open + +\begin_layout Plain Layout +This is a normal margin note. + Don't use it. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex NewThought +status open + +\begin_layout Plain Layout +Another useful +\end_layout + +\end_inset + + innovation is Tufte's +\family typewriter +NewThought +\family default + character style ( +\family sans +Edit\SpecialChar menuseparator +TextStyle\SpecialChar menuseparator +NewThought +\family default +). + It introduces new thoughts by means of small caps, as demonstrated in this + paragraph. + +\end_layout + +\begin_layout Standard +The Tufte document classes include two new character styles and some improvement +s on existing commands for letterspacing. +\end_layout + +\begin_layout Standard +When setting strings of +\begin_inset Flex AllCaps +status open + +\begin_layout Plain Layout +ALL CAPS +\end_layout + +\end_inset + + or +\begin_inset Flex SmallCaps +status open + +\begin_layout Plain Layout +small caps +\end_layout + +\end_inset + +, the letterspacing—that is, the spacing between the letters—should be increased + slightly. +\begin_inset CommandInset citation +LatexCommand cite +key "Bringhurst2005" +literal "true" + +\end_inset + + The +\emph on +AllCaps +\emph default + character style ( +\family sans +Edit\SpecialChar menuseparator +TextStyle\SpecialChar menuseparator +AllCaps +\family default +) has proper letterspacing for strings of +\begin_inset Flex AllCaps +status open + +\begin_layout Plain Layout +FULL CAPITAL LETTERS +\end_layout + +\end_inset + +, and the +\emph on +SmallCaps +\emph default + character style ( +\family sans +Edit\SpecialChar menuseparator +TextStyle\SpecialChar menuseparator +SmallCaps +\family default +) has letterspacing for +\begin_inset Flex SmallCaps +status open + +\begin_layout Plain Layout +small capital letters +\end_layout + +\end_inset + +. + These commands will also automatically convert the case of the text to + upper- or lowercase, respectively. +\end_layout + +\begin_layout Standard +The normal +\emph on +Small Caps +\emph default + shape has also been redefined to include letterspacing. + Its case is left as is, however. + This allows one to use both uppercase and lowercase letters: +\shape smallcaps +The Initial Letters Of The Words In This Sentence Are Capitalized. +\end_layout + +\begin_layout Standard +Finally, the +\emph on + Full Width +\emph default + paragraph environment provides a paragraph layout that stretches across + the main text block and the sidenotes area: +\end_layout + +\begin_layout Full Width +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. + Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. + Curabitur dictum gravida mauris. + Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. + Donec vehicula augue eu neque. + Pellentesque habitant morbi tristique senectus et netus et malesuada fames + ac turpis egestas. + Mauris ut leo. + Cras viverra metus rhoncus sem. + Nulla et lectus vestibulum urna fringilla ultrices. + Phasellus eu tellus sit amet tortor gravida placerat. + Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. + Praesent eget sem vel leo ultrices bibendum. + Aenean faucibus. + Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. + Curabitur auctor semper nulla. + Donec varius orci eget risus. + Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam. + Duis eget orci sit amet orci dignissim rutrum. +\end_layout + +\begin_layout Section +References +\end_layout + +\begin_layout Standard +References are placed alongside their citations as sidenotes, as well. + This can be accomplished using the normal citation command. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +The previous section includes a citation. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The complete list of references may also be printed automatically by using + +\family sans +Insert\SpecialChar menuseparator +Lists/TOC\SpecialChar menuseparator +Bib\SpecialChar TeX + +\begin_inset space ~ +\end_inset + +Bibliography +\family default + (see the end of this document for an example.) If you do not want to print + a bibliography at the end of your document, place the +\family sans +Bib\SpecialChar TeX + +\begin_inset space ~ +\end_inset + +Bibliography +\family default + inset inside a \SpecialChar LyX + note and use the \SpecialChar LaTeX + command +\family typewriter + +\backslash +nobibliography +\family default + the text. +\end_layout + +\begin_layout Chapter +Calculation of Volume: Sections 2.12–2.13 +\end_layout + +\begin_layout Standard +Imagine taking a function like +\begin_inset Formula $y=\sqrt{x}$ +\end_inset + + and rotating it in 3 dimensions around the x-axis. + The resulting shape would look somewhat like a cup (on its side). + Interestingly, integration empowers us to do exactly this and to find out + how much water that cup could hold. +\end_layout + +\begin_layout Section +Visualizing Rotation +\end_layout + +\begin_layout Standard +\begin_inset Float marginfigure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +I had a graph of the square root function here. +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "mar:A-graph-of" + +\end_inset + +A graph of +\begin_inset Formula $f(x)=\sqrt{x}$ +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float marginfigure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +Here I rotated the square root function and then drew a disk on the figure + to illustrate how I would calculate the volume of the figure. +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "mar:rotated" + +\end_inset + +A graph of +\begin_inset Formula $f(x)=\sqrt{x}$ +\end_inset + + rotated about the x-axis and with additional remarks for integration. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Figure +\begin_inset CommandInset ref +LatexCommand ref +reference "mar:A-graph-of" + +\end_inset + + shows the plot of the function +\begin_inset Formula $f(x)=\sqrt{x}.$ +\end_inset + + Now, imagine that we rotate that function about the x-axis. + The resulting figure would be somewhat like figure +\begin_inset CommandInset ref +LatexCommand ref +reference "mar:rotated" + +\end_inset + +. + This is akin to a cup lying on its side. + For the sake of clarity, the artist (me) drew a circle on the end of the + figure to show that it is indeed rotated. +\end_layout + +\begin_layout Standard +Now, suppose we wished to find the volume of the figure. + When we integrated the original square root function to find its area, + we imagined a series of rectangles inside the figure. + Their height was +\begin_inset Formula $h=f(x)$ +\end_inset + + and their width was +\begin_inset Formula $dx$ +\end_inset + +. + Since height multiplied by width was the area of each rectangle, we summed + these areas and rewrote this as +\begin_inset Formula $\int\,f(x)\,dx$ +\end_inset + +, or, in this specific case, +\begin_inset Formula $\int\,\sqrt{x}\,dx$ +\end_inset + +. +\end_layout + +\begin_layout Standard +To find the volume of our rotated figure the prodecure is quite similar. + Begin by rotating each rectangle about the x-axis. + This creates a series of cylinders. +\begin_inset Flex Sidenote +status collapsed + +\begin_layout Plain Layout +The text refers to these cylinders as "disks". + This is standard practice in all the Calculus books I checked. +\end_layout + +\end_inset + + Then, we can find the volume of each cylinder/disk. + The basic formula is: +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +V=hA +\] + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +where +\begin_inset Formula $h$ +\end_inset + + is the height of the cylinder (width of the rectangle) +\begin_inset Formula $dx$ +\end_inset + +. + The area of each figure is a circle where +\begin_inset Formula $A=\pi r^{2}$ +\end_inset + +. + The radius in this case is the function +\begin_inset Formula $f(x)$ +\end_inset + +. + By substitution +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +A=\pi f^{2}(x) +\] + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +In our specific case, +\end_layout + +\begin_layout Standard +\begin_inset Formula +\begin{eqnarray*} +A & = & \pi\left(\sqrt{x}\right)^{2}\\ + & = & \pi x +\end{eqnarray*} + +\end_inset + + +\end_layout + +\begin_layout Standard +To calculate the volume of one disk, we have +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +V=\pi x\,dx +\] + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +or, in the general case +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +V=\pi f^{2}(x)\,dx +\] + +\end_inset + + +\end_layout + +\begin_layout Standard +To find the volume of the figure between points +\begin_inset Formula $a$ +\end_inset + + and +\begin_inset Formula $b$ +\end_inset + + we sum the volumes by means of integration: +\end_layout + +\begin_layout Standard +\begin_inset Formula +\begin{equation} +\int_{a}^{b}\,\pi f^{2}(x)\,dx +\end{equation} + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +In the specific example, over the interval +\begin_inset Formula $[0,4]$ +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Formula +\begin{eqnarray*} +\int_{0}^{4}\,\pi x\,dx & = & \pi\int_{0}^{4}\,x\,dx\\ + & = & \pi\left.\left(\frac{x^{2}}{2}\right)\right|_{0}^{4}\\ + & = & \pi\left(\frac{4^{2}}{2}-0\right)\\ + & = & 8\pi +\end{eqnarray*} + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex NewThought +status open + +\begin_layout Plain Layout +Suppose I drill +\end_layout + +\end_inset + + a special hole down the length of the cup we just worked with. + It is made with a quadratic shaped bit. +\begin_inset Flex Sidenote +status collapsed + +\begin_layout Plain Layout +I have no idea how I'd do this in real life, but I'm making a point. +\end_layout + +\end_inset + + I find that the hole the bit makes can be modeled with the function +\begin_inset Formula $g(x)=\frac{x^{2}}{16}$ +\end_inset + +. + I would need to subtract the volume of the material removed from the volume + of the entire +\begin_inset Quotes eld +\end_inset + +cup +\begin_inset Quotes erd +\end_inset + +. + Each individual cylinder would become like a +\begin_inset Quotes eld +\end_inset + +washer +\begin_inset Quotes erd +\end_inset + +. + To get the area of one washer, I would use the formula +\end_layout + +\begin_layout Standard +\begin_inset Float marginfigure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +Here I used RLPlot to draw the square root function and the quadratic function. + Then I used Inkscape to shade the area between them. +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +The functions +\begin_inset Formula $f(x)$ +\end_inset + + and +\begin_inset Formula $g(x)$ +\end_inset + + and the area left by +\begin_inset Formula $f(x)-g(x)$ +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Formula +\begin{eqnarray*} +A_{washer} & = & A_{cup}-A_{drill}\\ + & = & \pi f^{2}(x)-\pi g^{2}(x)\\ + & = & \pi\left(f^{2}(x)-g^{2}(x)\right) +\end{eqnarray*} + +\end_inset + + +\end_layout + +\begin_layout Standard +The volume of each washer would be +\end_layout + +\begin_layout Standard +\begin_inset Formula +\begin{eqnarray*} +V_{washer} & = & A_{washer}\,dx\\ + & = & \pi\left(f^{2}(x)-g^{2}(x)\right)\,dx +\end{eqnarray*} + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +Then, by summing the volumes of all the washers between points +\begin_inset Formula $a$ +\end_inset + + and +\begin_inset Formula $b$ +\end_inset + +, the integral is derived: +\end_layout + +\begin_layout Standard +\begin_inset Formula +\begin{equation} +\int_{a}^{b}\,\pi\left(f^{2}(x)-g^{2}(x)\right)\,dx +\end{equation} + +\end_inset + + +\end_layout + +\begin_layout Standard +In the case of our quadratic drill bit:: +\begin_inset Float marginfigure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +This was the rotated set of 2 functions. +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +The cup with a quadratic hole drilled down its length +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Formula +\begin{eqnarray*} +\int_{0}^{4}\,\pi\left(\left(\sqrt{x}\right)^{2}-\left(\frac{x^{2}}{16}\right)\right)\,dx & = & \pi\int_{0}^{4}\,\left(x-\frac{x^{4}}{256}\right)\,dx\\ + & = & \pi\left(\int_{0}^{4}\,x\,dx-\int_{0}^{4}\,\frac{x^{4}}{256}\,dx\right)\\ + & = & \pi\left(\left.\left(\frac{x^{2}}{2}\right)\right|_{0}^{4}-\left.\left(\frac{x^{5}}{1280}\right)\right|_{0}^{4}\right)\\ + & = & \pi\left(\left(\frac{4^{2}}{2}-0\right)-\left(\frac{4^{5}}{1280}-0\right)\right)\\ + & = & \pi\left(8-0.8\right)\\ + & = & 7.2\pi +\end{eqnarray*} + +\end_inset + + +\end_layout + +\begin_layout Standard + +\end_layout + +\begin_layout Section +Homework +\end_layout + +\begin_layout Itemize +p114: 1, 4, 5, 6, 8, 10, 12, 15 +\end_layout + +\begin_layout Standard +\begin_inset CommandInset bibtex +LatexCommand bibtex +bibfiles "biblioExample" +options "plainnat" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Braille.lyx b/lib/examples/Braille.lyx deleted file mode 100644 index 1434ce66a3..0000000000 --- a/lib/examples/Braille.lyx +++ /dev/null @@ -1,721 +0,0 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 544 -\begin_document -\begin_header -\save_transient_properties true -\origin /systemlyxdir/examples/ -\textclass article -\begin_preamble -% color greyed-out notes blue -\renewenvironment{lyxgreyedout} - {\textcolor{blue}\bgroup}{\egroup} -\end_preamble -\use_default_options false -\begin_modules -braille -\end_modules -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding utf8 -\fontencoding global -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures false -\graphics default -\default_output_format default -\output_sync 0 -\bibtex_command default -\index_command default -\paperfontsize default -\spacing single -\use_hyperref true -\pdf_title "How to write Braille with LyX" -\pdf_author "Uwe Stöhr" -\pdf_bookmarks false -\pdf_bookmarksnumbered false -\pdf_bookmarksopen false -\pdf_bookmarksopenlevel 1 -\pdf_breaklinks false -\pdf_pdfborder false -\pdf_colorlinks true -\pdf_backref false -\pdf_pdfusetitle false -\pdf_quoted_options "pdfstartview=XYZ" -\papersize default -\use_geometry true -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\cite_engine basic -\cite_engine_type default -\biblio_style plain -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date true -\justification true -\use_refstyle 0 -\use_minted 0 -\index Index -\shortcut idx -\color #008000 -\end_index -\leftmargin 2.5cm -\rightmargin 2.5cm -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation skip -\defskip medskip -\is_math_indent 0 -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Title -How to write Braille with \SpecialChar LyX - -\end_layout - -\begin_layout Author -Uwe Stöhr -\end_layout - -\begin_layout Standard -First a general note: The Braille you can create with \SpecialChar LaTeX - is not complete! - Braille can have 6 or 8 -\begin_inset space \thinspace{} -\end_inset - -dots, while \SpecialChar LaTeX - (and therefore \SpecialChar LyX -) only supports only 6 -\begin_inset space \thinspace{} -\end_inset - -dot Braille without accented characters. -\end_layout - -\begin_layout Standard -To write Braille with \SpecialChar LyX -, load the module -\family sans -Braille -\family default - in the document settings under -\family sans -Modules -\family default -. - Now select the environment -\family sans -Braille -\begin_inset space ~ -\end_inset - -(default) -\family default - or -\family sans -Braille -\begin_inset space ~ -\end_inset - -(textsize) -\family default - from \SpecialChar LyX -'s environment selection box and write your text. - The other Braille environments are only turn on/off some properties as - described below; keep them empty! -\end_layout - -\begin_layout Standard -Here is an example: -\begin_inset Newline newline -\end_inset - - -\begin_inset CommandInset line -LatexCommand rule -offset "0.5ex" -width "100line%" -height "1pt" - -\end_inset - - -\end_layout - -\begin_layout Standard -with Latin letters: -\begin_inset Newline newline -\end_inset - -This is an example sentence written in Braille. -\end_layout - -\begin_layout Standard -with Braille letters: -\end_layout - -\begin_layout Braille (default) -This is an example sentence written in Braille. -\end_layout - -\begin_layout Standard -\noindent -\begin_inset CommandInset line -LatexCommand rule -offset "0.5ex" -width "100line%" -height "1pt" - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -You can see that \SpecialChar LaTeX - is not able to hyphenate words written in Braille; you - have to do this manually. -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - - -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - Only Latin letters, numbers, punctuations, parentheses, and brackets can - be printed in Braille. - Special characters like -\begin_inset Quotes eld -\end_inset - -@ -\begin_inset Quotes erd -\end_inset - -, or -\begin_inset Quotes eld -\end_inset - -$ -\begin_inset Quotes erd -\end_inset - -, accented characters like umlauts, as well as line breaks are not supported. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - - -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - \SpecialChar LyX -'s and \SpecialChar LaTeX -'s proper names -\begin_inset Quotes eld -\end_inset - -\SpecialChar LaTeX - -\begin_inset Quotes erd -\end_inset - -, -\begin_inset Quotes eld -\end_inset - -\SpecialChar LaTeX2e - -\begin_inset Quotes erd -\end_inset - -, -\begin_inset Quotes eld -\end_inset - -\SpecialChar TeX - -\begin_inset Quotes erd -\end_inset - -, and -\begin_inset Quotes eld -\end_inset - -\SpecialChar LyX - -\begin_inset Quotes erd -\end_inset - - must be inserted as \SpecialChar TeX - code like in the following example: -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\noindent -\begin_inset CommandInset line -LatexCommand rule -offset "0.5ex" -width "100line%" -height "1pt" - -\end_inset - - -\end_layout - -\begin_layout Standard -Latin: -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -LyX -\end_layout - -\end_inset - - is cool! -\begin_inset Newline newline -\end_inset - -Braille: -\end_layout - -\begin_layout Braille (default) -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -LyX -\end_layout - -\end_inset - - is cool! -\end_layout - -\begin_layout Standard -\noindent -\begin_inset CommandInset line -LatexCommand rule -offset "0.5ex" -width "100line%" -height "1pt" - -\end_inset - - -\end_layout - -\begin_layout Standard -Here is an overview about the different Braille environments using the example - text -\begin_inset Quotes eld -\end_inset - -This is Braille. -\begin_inset Quotes erd -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - - -\family sans -Braille -\begin_inset space ~ -\end_inset - -(default) -\family default -: -\end_layout - -\begin_layout Braille (default) -This is Braille. -\end_layout - -\begin_layout Standard - -\family sans -Braille -\begin_inset space ~ -\end_inset - -(textsize) -\family default - - size that approximately matches the document's text size: -\end_layout - -\begin_layout Braille (textsize) -This is Braille. -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - - -\family sans -Braille -\begin_inset space ~ -\end_inset - -(dots on) -\family default - - tiny dots can be displayed at empty positions: -\end_layout - -\begin_layout Braille (dots on) - -\end_layout - -\begin_layout Braille (textsize) -This is Braille. -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -Text can be printed mirror-inverted for embossing the Braille by hand with - a needle or another suitable device: -\end_layout - -\begin_layout Standard -Normal: -\end_layout - -\begin_layout Braille (default) -This is Braille. -\end_layout - -\begin_layout Standard - -\family sans -Braille -\begin_inset space ~ -\end_inset - -(mirror on) -\family default -: -\end_layout - -\begin_layout Braille (mirror on) - -\end_layout - -\begin_layout Braille (default) -This is Braille. -\end_layout - -\begin_layout Braille (mirror off) - -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -Braille characters can alternatively be created by writing a number to a - Braille box. - A Braille box is inserted with the menu -\family sans - Insert\SpecialChar menuseparator -Custom -\begin_inset space ~ -\end_inset - -insets -\family default -. - Every number in this box turns on the corresponding Braille dot. - For example, the number -\series bold - 6145 -\series default - results in: -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex Braillebox -status open - -\begin_layout Plain Layout -6145 -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -Computer Braille that uses 8 -\begin_inset space \thinspace{} -\end_inset - -dots can be turned on with the command -\series bold - -\backslash -brailleeightdotstrue -\series default -. - But the two extra dots are only printed when using a Braille box. - For example, the number -\series bold -8175 -\series default - in a Braille box results in: -\begin_inset Newline newline -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -brailleeightdotstrue -\end_layout - -\end_inset - - -\begin_inset Flex Braillebox -status open - -\begin_layout Plain Layout -8175 -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -brailleeightdotsfalse -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -The size of the default Braille font can be changed by the length -\series bold - -\backslash -brailleunit -\series default -. - Its default value is 2.4 -\begin_inset space \thinspace{} -\end_inset - -mm. - To get e. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} -\end_inset - -double-sized Braille use this command in \SpecialChar TeX - code in your document: -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -renewcommand{ -\backslash -braillenormal}[1] -\begin_inset Newline newline -\end_inset - - -\begin_inset space ~ -\end_inset - -{ -\backslash -setlength{ -\backslash -brailleunit}{4.8mm} -\backslash -braille{#1}} -\end_layout - -\begin_layout Standard -Double-sized Braille: -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -renewcommand{ -\backslash -braillenormal}[1] -\end_layout - -\begin_layout Plain Layout - - { -\backslash -setlength{ -\backslash -brailleunit}{4mm} -\backslash -braille{#1}} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Braille (default) -This is Braille. -\end_layout - -\begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -renewcommand{ -\backslash -braillenormal}[1] -\end_layout - -\begin_layout Plain Layout - - { -\backslash -setlength{ -\backslash -brailleunit}{2mm} -\backslash -braille{#1}} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - -For more informations about the Braille cell dimensions have a look at -\begin_inset Newline newline -\end_inset - - -\begin_inset CommandInset href -LatexCommand href -name "http://www.tiresias.org/research/reports/braille_cell.htm" -target "http://www.tiresias.org/research/reports/braille_cell.htm" -literal "false" - -\end_inset - -. -\end_layout - -\end_body -\end_document diff --git a/lib/examples/CV-image.eps b/lib/examples/CV-image.eps deleted file mode 100644 index 540bcf12b6..0000000000 --- a/lib/examples/CV-image.eps +++ /dev/null @@ -1,793 +0,0 @@ -%!PS-Adobe-3.0 EPSF-3.0 -%%Creator: (ImageMagick) -%%Title: (C:/Documents and Settings/usti/Local Settings/Temp/lyx_tmpdir1300a02420/lyx_tmpbuf0/1D__LyXSVN_lyx-devel_lib_templates_CV-image.eps) -%%CreationDate: (Wed Apr 04 01:28:58 2007) -%%BoundingBox: 0 0 96 96 -%%HiResBoundingBox: 0 0 96 96 -%%DocumentData: Clean7Bit -%%LanguageLevel: 1 -%%Pages: 1 -%%EndComments - -%%BeginDefaults -%%EndDefaults - -%%BeginProlog -% -% Display a color image. The image is displayed in color on -% Postscript viewers or printers that support color, otherwise -% it is displayed as grayscale. -% -/DirectClassPacket -{ - % - % Get a DirectClass packet. - % - % Parameters: - % red. - % green. - % blue. - % length: number of pixels minus one of this color (optional). - % - currentfile color_packet readhexstring pop pop - compression 0 eq - { - /number_pixels 3 def - } - { - currentfile byte readhexstring pop 0 get - /number_pixels exch 1 add 3 mul def - } ifelse - 0 3 number_pixels 1 sub - { - pixels exch color_packet putinterval - } for - pixels 0 number_pixels getinterval -} bind def - -/DirectClassImage -{ - % - % Display a DirectClass image. - % - systemdict /colorimage known - { - columns rows 8 - [ - columns 0 0 - rows neg 0 rows - ] - { DirectClassPacket } false 3 colorimage - } - { - % - % No colorimage operator; convert to grayscale. - % - columns rows 8 - [ - columns 0 0 - rows neg 0 rows - ] - { GrayDirectClassPacket } image - } ifelse -} bind def - -/GrayDirectClassPacket -{ - % - % Get a DirectClass packet; convert to grayscale. - % - % Parameters: - % red - % green - % blue - % length: number of pixels minus one of this color (optional). - % - currentfile color_packet readhexstring pop pop - color_packet 0 get 0.299 mul - color_packet 1 get 0.587 mul add - color_packet 2 get 0.114 mul add - cvi - /gray_packet exch def - compression 0 eq - { - /number_pixels 1 def - } - { - currentfile byte readhexstring pop 0 get - /number_pixels exch 1 add def - } ifelse - 0 1 number_pixels 1 sub - { - pixels exch gray_packet put - } for - pixels 0 number_pixels getinterval -} bind def - -/GrayPseudoClassPacket -{ - % - % Get a PseudoClass packet; convert to grayscale. - % - % Parameters: - % index: index into the colormap. - % length: number of pixels minus one of this color (optional). - % - currentfile byte readhexstring pop 0 get - /offset exch 3 mul def - /color_packet colormap offset 3 getinterval def - color_packet 0 get 0.299 mul - color_packet 1 get 0.587 mul add - color_packet 2 get 0.114 mul add - cvi - /gray_packet exch def - compression 0 eq - { - /number_pixels 1 def - } - { - currentfile byte readhexstring pop 0 get - /number_pixels exch 1 add def - } ifelse - 0 1 number_pixels 1 sub - { - pixels exch gray_packet put - } for - pixels 0 number_pixels getinterval -} bind def - -/PseudoClassPacket -{ - % - % Get a PseudoClass packet. - % - % Parameters: - % index: index into the colormap. - % length: number of pixels minus one of this color (optional). - % - currentfile byte readhexstring pop 0 get - /offset exch 3 mul def - /color_packet colormap offset 3 getinterval def - compression 0 eq - { - /number_pixels 3 def - } - { - currentfile byte readhexstring pop 0 get - /number_pixels exch 1 add 3 mul def - } ifelse - 0 3 number_pixels 1 sub - { - pixels exch color_packet putinterval - } for - pixels 0 number_pixels getinterval -} bind def - -/PseudoClassImage -{ - % - % Display a PseudoClass image. - % - % Parameters: - % class: 0-PseudoClass or 1-Grayscale. - % - currentfile buffer readline pop - token pop /class exch def pop - class 0 gt - { - currentfile buffer readline pop - token pop /depth exch def pop - /grays columns 8 add depth sub depth mul 8 idiv string def - columns rows depth - [ - columns 0 0 - rows neg 0 rows - ] - { currentfile grays readhexstring pop } image - } - { - % - % Parameters: - % colors: number of colors in the colormap. - % colormap: red, green, blue color packets. - % - currentfile buffer readline pop - token pop /colors exch def pop - /colors colors 3 mul def - /colormap colors string def - currentfile colormap readhexstring pop pop - systemdict /colorimage known - { - columns rows 8 - [ - columns 0 0 - rows neg 0 rows - ] - { PseudoClassPacket } false 3 colorimage - } - { - % - % No colorimage operator; convert to grayscale. - % - columns rows 8 - [ - columns 0 0 - rows neg 0 rows - ] - { GrayPseudoClassPacket } image - } ifelse - } ifelse -} bind def - -/DisplayImage -{ - % - % Display a DirectClass or PseudoClass image. - % - % Parameters: - % x & y translation. - % x & y scale. - % label pointsize. - % image label. - % image columns & rows. - % class: 0-DirectClass or 1-PseudoClass. - % compression: 0-none or 1-RunlengthEncoded. - % hex color packets. - % - gsave - /buffer 512 string def - /byte 1 string def - /color_packet 3 string def - /pixels 768 string def - - currentfile buffer readline pop - token pop /x exch def - token pop /y exch def pop - x y translate - currentfile buffer readline pop - token pop /x exch def - token pop /y exch def pop - currentfile buffer readline pop - token pop /pointsize exch def pop - /Times-Roman findfont pointsize scalefont setfont - x y scale - currentfile buffer readline pop - token pop /columns exch def - token pop /rows exch def pop - currentfile buffer readline pop - token pop /class exch def pop - currentfile buffer readline pop - token pop /compression exch def pop - class 0 gt { PseudoClassImage } { DirectClassImage } ifelse - grestore -} bind def -%%EndProlog -%%Page: 1 1 -%%PageBoundingBox: 0 0 96 96 -userdict begin -DisplayImage -0 0 -96 96 -12.000000 -96 96 -1 -0 -0 -256 -A7B2CA -C4CBDC -A6B5D5 -767D90 -8998B4 -8DA0CA -E2E7EE -9DADD1 -8A9DC8 -A0AED0 -6B7895 -919CBD -5A6683 -A1B0D2 -CDD1DB -AAB8D6 -99A9CE -657089 -7A88A8 -C9D1E5 -8A9CC4 -717A8D -D1D8E9 -CED5E8 -99A2B5 -A2ABCA -A8B6D5 -C5CEE1 -A9B6D9 -697489 -798092 -6D788B -BAC6E0 -E1E5F0 -E5E9F1 -B9C5DE -D0D5DC -6A7183 -C2CDCE -B5C2DC -DAE0ED -8993A9 -94A6CE -8BA1C4 -94A3D1 -C9CED3 -57677E -C1CCE1 -BDC9E0 -616D86 -99AAD0 -D8DEEC -5D6985 -AEBCD9 -7E8494 -CDD4E7 -8B9EC9 -848A99 -5B6988 -808695 -96A8CE -92A4CC -BDC8DE -DEE2ED -C0CDD2 -9DACCE -D6DCED -92A3C2 -C8D0E2 -D6DCE9 -B0BEDA -B2BCDF -E9ECF3 -616E88 -B2BBD2 -D3D9E4 -6C7689 -A5B3DB -D1D7E4 -5A6885 -657086 -D4DAEA -BBC3D5 -A5B4D2 -D0D6E9 -B1B8CC -96A8D1 -A4B3D4 -656F88 -ADBCD6 -99A5C3 -6A758C -939EC1 -ADBBD8 -7C8291 -CBD0D5 -BFCAE0 -8FA2CA -CCD2E6 -B2C0DC -DCE2F0 -ACBAD6 -A2B1D3 -646E87 -9199AB -C5D0E4 -BEC4C3 -BCC7DE -DDE0EA -B5C1DA -C5CDD5 -B1BFDC -B3C1D5 -677289 -B1C1D9 -C5CDE4 -5B6588 -566481 -9EAAC1 -C9CED8 -828DA5 -C5CCD1 -98A4D2 -AAB9D8 -8D9DCD -99A9CA -BDCCD2 -C1C9D5 -98A7CE -5A6982 -787F91 -A3B2D1 -8E9BCF -757C8F -616E81 -9FB1D2 -A3AABB -7A859E -7A8193 -9EB1CC -CFD5E2 -D8DCE4 -C2C9D1 -75839E -6B768D -627089 -C4C9D1 -606A86 -D3DAED -5D6C82 -B4C2E0 -B6C3DD -91A5C9 -9BABCF -C5CAD5 -9DAAC9 -B8C2DD -9CAAD1 -AAB9D3 -B0BADD -97A6CA -AEB8DB -D2D9EB -C8CEE2 -5E6C87 -7E8492 -B9C2DA -DCE4EF -AEB9D1 -828897 -C2CDE4 -70788B -BEC6D8 -BAC5DA -5B6B80 -596B93 -929FD1 -98AAD3 -C6D0DB -B6BEDF -B5C4D9 -8C97CD -65728E -98ACCA -767F94 -C5CFD2 -C3CCD6 -9FACDA -6D7DA0 -7B87A0 -ADBDD4 -D4D9C9 -9FAEC9 -95A8C3 -B4BEDA -A1B5D0 -9BAACC -AEBDDE -737B8E -C1C9E4 -B1BADB -D8DFEB -A5B8D2 -68728C -707E99 -CED7E5 -616F8B -B7BED1 -8A9BD1 -ECEFF5 -D7DEF0 -666C8D -CCD3E2 -67748E -646A8C -63718D -DBDFE6 -63698B -D3DDE8 -899AC8 -98ABD4 -7A818E -8394BE -888E9D -A1B4D4 -BFC7E2 -707689 -60678A -9CAECE -9EA9D5 -787E8E -8B9DCF -7C8395 -808799 -8FA3CE -62688C -C0C8DB -788492 -BFC7D4 -AFC0D5 -C4CBE5 -CFD5CB -D6E3EC -8FA1D3 -CBD4E4 -808FB1 -A1AED6 -5F7092 -AAB8E0 -8797CA -8798BE -707B92 -8A97C7 -BCC3DF -66758A -CBD3E6 -6A245F795F5F2D2D2D2D2D2D2D2D2D790E0E5F0E5F775F775F5F2D2D2D2D2D795F5F5F2D -2D2D2D79B25F77776E6E6E6EB26EB26EBABABABA6E6E9ABA9A7F8E8E9A77799A92929292 -2D2D2D2D7979927977B9B9B97940798E9A6E797E017F6ABF244848064848222222220622 -060606063F3F3F3F6C6C6C6C6CD8D8D8D88D8D8D4B4B4E4B8C248C240E0E0EB277777777 -B2B201B201BABA017F7F7F7F7FEEEEEE52525252CFCFCFCF4A4A554A5555555500000000 -00000000000000768319886AF148D1D1D1D1D1484848484848482222212121213F3F3F3F -2828C93345458D4551514B514B4E4E4EF4D4D4D4444444A31B1B1B1B010101ECECADACAD -AD525252B3B3B3C2C8C2C8C8A1A1A1A1A11C1C1C1A0202830D830D09E5190910E5E5197F -2D224848D14848482222222206060606212121213F3F3F3F28D233424242515116165454 -541737373737FF6262134444737373732F2FC7606B232023B4B497B4969696966F6F6FC5 -F8C5F8F8F8F81C1C4DF84D1C4D4D4D57BBF687DCBBE5831B5F48D148D148484848222222 -2222222221212121A7A7A7A7D2D2D2D2D24242429494A21654545454626262131313A3A3 -F0F0F0F0C7C7E1C72020232397979797727272EFEFBEBEBE5D5D7B7B0F7B1A1CE0E0E0E0 -E087878799E48BDCDC2AC07E5F2248222222222222060606212121213F643F2828282828 -D2424242515151A2A2A216A254541717FFFF13131344731BAAAAAAC72FC730C720202320 -239797977072EFEFEFEFEFBEBE595959659E9E9ECACACAC3C3C3C38B0DC08B8BE47D767E -5F224822482222222222220606060621A7A7A7A7A7A7A72828C9C9C93345DADA54545417 -1737FFFF1313131344441B1BAAAAAA2F2F6060306B6B2323239CA6A62727636372464646 -659E9E9E9E531A53025353E08383878309C0C0E4077D887E2D224822D122482222222221 -22212121A7A728A7C928C9C9DADADADADA4BDA4BA21616CDCDCDCDCDF4F4F4134444441B -2F2F2F2F6060603EFDFDFDFDA6A6A6A647B3474747479F9F9F9FA1A1A11C1C1C024D4D57 -66666666F641E441BB80196E5F2248224822222222212221212121216464646428282828 -42424242515151A2941617175454371317137373FF3713732F2F60303E3E6B6B20202023 -239797276363636F464646357B7B7B0F1A1A1A1A0257575766660D0D090707B7077A1979 -5F2248062222222222212121212121216464646428282828424242425151515154545454 -545454541313131373732F1B7369AA2F60306B6B20202023239797276363636F46464635 -7B7B7B0F1A1A1A1A02575783660D0D0D090707B7077A196E5F2222062221222221212121 -212121216464642828282828424242515151515154545417624444131B13FF37FF131B1B -3E3E3E3E3E3E3030202023232397272763636F6F464635357B7B7B0F1A1A1A0257575783 -660D0D09090707B7077A19795F0622212222212121212121213F3F3F6464282828283333 -42425151515151165454541737FFFFFFFF7360EC601B1B1BAAAA2F60303E3E3020202323 -9797272763636F46464635357B7B0F0F1A1A020257578357660D0909099D07B7077A1979 -2D06222122212121212121213F3F3F3F2828282828333333425151515151161616543737 -37FF13443713444444441B01AA2F603E6B6B3E302023232397272727636F6F4646353535 -7B7B0F1A1A1A0202575783660D0D0909099D07B7077A19792D0622210621212121213F3F -3F3F3F3F2828282833333333515151515116164EA254173737FF13441B44131BECECEC01 -2F2F2F60303E3E3E232323239727276D6F6F6F464635355D7B0F0F1A1A02020257835766 -0D090909099D99B7997A19792D060621062121213F3F3F3F3F3F3F3F2828283333333333 -5151515116164E16FF5454174401A31337014A1868296868A6AD3E60603E6BAD23232323 -97276D6D6F6F464646355D5D0F0F0F1A1A020253835783660D090909419D99B7997A1979 -79060621062121213F3F3F3F3F3F6C2828282833333333455151515116164E16FF5454EC -55888888186829393B36E939291876A870AD6B6B2323239797276D6D6F6F464646355D5D -0F0F1A1A1A020253835766660D090909419D99B7997A19790E3F2121A728A7A764646464 -28282828424242424251515194549442541716374BCF8868395E5E3BA93B3B3B3B3B363B -E903AB8A680052EC6BA6236DC2966F96464646355D65650F0F0F1A1A1A02535366660D0D -0D09090907B1DCB7322C19260E3F3F21A728A72864646464282828284242424251515151 -54D29417545417A255183939DFDF3B5EA93B3B3B3B3B3B3B1EE8368A1E3B681870A66B97 -2720966F464646355D65650F0F0F1A1A1A02535366660D0D0D09090941B1DCB7327A1926 -5F6C3F3FA728A7286464282828282833424242515151515117D294FFFF5417D4DFA95EA5 -39A9A9A93B3B3B3B3B3B3B3BE83B361EC6C68AE96818709C6D466563464635355D650F0F -0F0F1A1A0202535366660D0D0909090941B1DCB7322C19265F6C3F3FA728A72828282828 -283333334242515151515151943794A21316FF55A53B39393B5EA5393B3B3B3B3B3B3B3B -E9E81E1E363B8A82C6E97670209C5D9C4646355D65650F0F0F1A1A1A02535353660D0D0D -0909090941B1DCB7322C1926776C3F3F28C928C928282833333333335151515151511616 -421317511737CF68DF39A939393BA5A53B3B3B3B3B3B3B36E88A8A8A8A1E82038215E918 -A8306DA84635355D650F0F0F1A1A1A1A025353570D0D0D0D0909094141B1DCB7327A9B26 -77D86C6C28C928C928333333333345455151515151161616541662D4A2521839DFA93BA9 -39393BA53B3B3B3B3B3636368A8A8A1E828203031EC615C6294A6D463535355D650F0F0F -1A1A1A1A025357830D0D0D0D0909414199B1B1B7322C9B262DD86C6C284528C933333333 -454545455151515116164E16379437441B88E9393BA9A9A93B3B3BA93B3B3B3B3B363636 -8A1E821EE8368A1EE61E8A158A6800AD35355D5D650F0F0F1A1A1A02535383570D0D0D09 -0909414199B1B1B7327A9B262DD86C6C284528C933333333454545455151511616164E16 -17541617CF295EDF39A9A93B3B3B3B363B3B3B3B36363636828AE88A8203828ADD15DD82 -15B8290035355D65650F0F0F1A1A1A02535357830D0D0D09090941419956B1B7322C9B26 -5F8D2842D2D242DA424294949494A2A216A21654545454175462169A685E393B3B3B3B3B -3B3B3B3B3B3B3B3B363636368A8A8A8A1E1E1E82C6E882821EAB82186D35A859650F1C1A -020202025783660D870D0707070799999956DC983C7A5A265F8D284242D242DA42949494 -94A2A2A216A254545454171737625155DFA93BA93B3B3B3B3B3B3B3B3B3B3B3636363636 -8A8A8A8A1E1E8282828285821EC603DF0065A81A0F7B7B1A02020202578366660D870707 -070799999956B198102C5A262D8DC99442D251DA94949494A2A2A2165454545454171717 -44624418A939A5DF3B3B3B3B3B3B3B3B3B3B3B363636365E8A8A8A8A1E1E82821E85C603 -820385030B53461A1A5D7B1A020202575783660D870D070707079999C456B1983C7A5A26 -2D8D3351944251DA949494A2A21616165454541717373737134455DF3B393BDF3B3B3B3B -3B3B3B363B363636365E5E5E8A8A8A1E1E8282821EC685038503854C89C0709E1A7B7B1A -02020257836666660D07070707999999C456B1983C7A5A262D4B33A2949451DAA2A2A216 -16545454545417173737FF376201683B393BA9393B3B3B3B3B363636363636365E5E5E5E -8A8A8A1E1E82820382C68282158582E20A1846591A1A1C1A020202578366660D07070707 -07999910C45632983C2C5A262D4B45A2A294A24BA21616165454545417173737FFFF6262 -37CF393BDFA539A93B3B3B3B363636363636365E5E5E5E5E8A8A1E1E8282030382C68282 -ABC603C61DF5C0A80F0202020202575783660D0D0707070707991010C45656983C2C5A26 -794B4516A294164B1616165454545417373737FFFF62626237883B3BDF36A93B3B3B3B3B -363636363636365E5E5E5E1E8A8A1E1E8282030382858503C615C6C61FB804830F1A1A02 -0202578366660D0D07070707999910107D5656433C2C5A26794B4516A294164B16165454 -545417173737FFFF62621313131839A9A9A93B3B3B3B3B363636363636365E5E5E5E1EDD -8A1E1E1E828203031E8515C60315ABABCC1189C00F1A1C570202578366660D0D07070707 -999910107D2A56433C2C5A265F8C4B54545454CD1717171737373737FFFF131313134444 -CFDF363939A9363B3B3B3B3B363636368A8A8A8A8A1E1E1E1E1E828282820303C6C6C615 -15151515AB90FB5A530F1C575757660D0D0D090907079D9D9D321010102C56432AB05A40 -5F8C4E54545454F41717173737373737FF1313131344444488A936A9A939A9A93B3B3B36 -363636368A8A8A8A1E1E1E1E1E82828282030303C6C6C615151515AB4CFBFB5A9E350266 -5766660D0D09090907079D9D32321010A02AB12B2AB05A405F244E54175454F437373737 -37FFFFFF131313134444441B68363BA936A9A93B3B3B3B363636365E8A8A8A8A1E1E1E1E -8282828282030385C6C615151515ABABAB1571789B02660266660D0D0D090909079D9D9D -321010807D2C56432AB05A405F248C17371717F43737FFFFFFFF13131313134444444444 -683B3B39363B36363B363636365E5E5E8A8A8A1E1E1E1E828282828203858585C6C61515 -1515ABAB4CFB5BBD9B0F0D5766660D0D090909099D9D9D9D32101080A02A56433DB05A40 -2D0E8C37FF1737D4FFFF13131313131344444444441B1BA318A936393B3B363636363636 -5E5E5E5E8A1E1E1E1E82828282828203858585C61515151515ABABAB4CFBCBCC5A1A0957 -0D0D0D0D090941419D9D9D9D32108080802A562B2AB05A402D0E8C62FF37FF44FF131313 -13131313444444441B1B1B1B183B5EA9A9A93B3B3636365E5E5E5E5E1E1E1E1E82828282 -8203038585C6C6C61515151515ABABABAB1F1111048309570D0D0D09090941419D9D9D32 -10108080A02C562B3DB05A8E2D0E8C6262FFF44413131313134444444444441B1B1B1B1B -68365E3B36A93B363636365E5E5E5E1E1E1E1E1E828282820303038585C6C6C615151515 -ABABABE24C90FBFB5C1A57090D0D0D09094141419D9D9D3210808080A02C562B3DB05A26 -2D0ED46262FF6244131313134444444444441B1B1B1B011B295E3B3B5EA936E636365E5E -5E5E1EDD1E1E1E828282828203038585C6C6C6C615151515ABABABAB4C5B90CB0483570D -0D0D0909094141419D9D9D3210808080A02C562B3DB05A40B24444131369696969696969 -6969696969AA2FAAAAAA30AD3B368AE8368A8A368A8A8A8A8A1E1E1E1E1E828282820303 -C6C6C6C6C615151515151F1F1F1F1F4C4CFB500A0BC0E487870D070707079999B1B15656 -2A2A2A2A3DEAEA9861B05C40B2B2441313136969696969696969696969AA2FAAAAAA30AD -E936E9E9E8E8E88A8A8A8A8A1E1E1E1E1E82828282030303C6C6C6C61515151515151F1F -1F1F4C4C1F901D89C15387E40D87070707079999B15656562A2A2A2A3D2CEA9861B05C40 -B2B244131369696969696969691BAA1BAAAA2F2FAA2F3E6BE91EE8361EE836038A8A8A8A -1E1E1E1E8282828282030385C6C6C6C61515151515151F1F1F1F4C4C1F5BFB04C00287E4 -0D07070707999910565656562A2A2A2A3D2C059861B05C40B2B244446969691B69691BAA -1BAA2F2FAA2F2F2F2F2F306B683682361E8A36038A8A8A1E1E1E1E828282828203858585 -C6C6C61515151515151F1F1F1F4C4C4C5B50BD760D8B878707070707079910105656562A -2A2A2A2A3D2CEA9805B05C406EB2A3737369AA1BAA1B2F2F2F2F2F2F2F2F2F2F2F603E6B -55298236E88AE8828A1E1E1E1E82828282828203858585C6C6151515151515151F1F1F1F -1F4C4C4C1D11788B83418787070707079910101056562A2A2A2A3D3D3DEA059805B05C40 -6EB21B1B73AA1B2F2F2F2F2F2F2F2F2F2F2F60606030303E5229E6E68A1E8A8A1E1E1E1E -828282828203038585C6C6C615151515151515151F1F1F1F4C4C4C4C906778C083098707 -0707079999101010562A2A2A2A2A3D3D3DEA059805B05C406E6E1B1B73AA2F2F2F2F2F2F -2F6060602F606030303E3060CF18E88503821E8A1E1E1E1E828282820303038585C6C6C6 -15151515151515151F1F1F1F4C4C4C4C5BB678C08307070707070799C41010802A2A2A2A -2A3D3D3D3DEA052B05B05C406E011B1B73AA2F2F2F2F2F2F60606060606060303E3E3E30 -EC556836E88A82821E1E1E828282828203038585C6C6C6C615151515151515151F1F1F1F -4C4C4C4C11D5290D0DC4078707070799101010802A2A2A2A2A3D3D3D3DEA05612BB05C40 -6E0101C7C7C730C760606060303030302020202020202020A6A6AC788282823682828282 -03030303C6C6C6C6C6151515151515151F1F1F1FFB901FFB1F1D1D900AB6049B0983C409 -323232323C3C3C2A2A2A2A2A3D3D3D3D6105052B387C5C406E0101C7C7C730C730606030 -3030303020202020202020209C6DAD68B88A82858282828203030303C6C6C6C615151515 -1515151F1F1F1F1F1F909090905B5B9011B6044109574107323232323C3C2A2A2A2A2A2A -3D3D3D3D0505382B087C0B406EBA01C7E1E1303030303030303030302020202020232323 -30A62076B81E1E038282030303038585C6C6C6C6151515151F1F1F1F1F1F1F1F9090901D -5B5B5B5BA40A0B09095707993232323C3C3C2A2A2A2A2A2A3D3D3D610505382B387C0B40 -BABAECE1E1E130303030303030306B6B202023232323232320239CA88AFB15E803030303 -85858585C6C6C615151515151F1F1F1F1F1F1F1F5B15901D5B5B1D1D0A125A0D410D0710 -32323C3C3C2A2A2A2A2A2A3D3D3D61612B05382B147C0B40BA7FECE1E120E16B30306B6B -6B6B23202323232323239797C29C594A298A1503030385858585C6C6C615151515151515 -1F1F1F1F1F4C4C4C1DFB901D901D501FF50B0909C4073232323C3C3C2A2A2A2A2A2A3D3D -3D6161610505382B14840B40BA7FECFDE1206B6B6B6B6B20232023202323239797979797 -279759A6001878C685858585C6C6C6C615151515151515151F1F1F4C4C4C4C4C1D15905B -907171B8C10983097D1032323C3C3C3C2A2A983D2A3D3D3D616161612B7C082B147C0B40 -7F7FACE1FD20236B2023202320232323979797979727272796976397B4A800B88585C6C6 -C6C6C6C615151515151515151F4C4C4C4C4C4C4C5B1F1D1D90505B78C00D09411032DCDC -3C3C3C2A2A2A3D3D3D3D3D3D616161052B7C082B147C0B407FEEACFDE1FD236B23202320 -23232323979797972727272746466359C26DADB803C6C6C6C6C6C6C61515151515151515 -4C4C4C4C4C4C4C4C9090717190501529E4E47DC49932DCDC3C3C3C2A2A983D3D3D3D3D3D -616105052B7C082B14840B406EAC9C9620B49CFD97979797972727276363636363636363 -6F636346639653431FC6B8851503851F1F1F1F1F1F1F1F1F1F1F1F1F4C4C4C4C4C1D1D58 -CBB6BC5A9D9D9D3232101010562A2A2A2A3D3D3DEAEA61050505050538E7082B08840B40 -6EAC9C9623B49CFD969797972727272763636363636363634663463546630FC0ABB8154C -C6AB4C851F1F1F1F1F1F1F1F1F1F1F4C4C4C4C1D1D1D1D5BD5498F7D9D9D9D3232101010 -562A2A2A2A3D3D3D61EA61050505050538E7082B08840B406EAC9C9623B49CFD97972727 -2727636363636363636F466F466F46653563461AE8B8ABAB85E21D851F1F1F1F1F1F1F1F -4C4C4C4C4C1D1D1D501F1190B6D7F5C49D9D3232101080802A2A2A2A2A3D3D3DEA610505 -0505383838E7082B08840B4079AC9C9697B46DFD962727636363636363636F466F464646 -466F46655D466F3568CC90B81515C64C1F1F1F1F1F1F1F1F4C4C4C1D1D1D1D1D711D5011 -49BC5C4110323210108080802A2A2A2A3D3D3D61050505050538383838E7082B08840B40 -7952B396B4709CB36363636363636363466F464646463535356F6F355D3535C500BD1DFB -15FB031D1F1F1F1F1F1F4C4C1D1D1D1D1D1D1D1D4C5071A4B6F5A0C43232101080808080 -2A2A2A3D3D3D6161050505053838383838E7082B08840B408E52C2632770C2B363636363 -6F466F464646463535353535354646465D6565654618CC71FB154C1F1F1F1F1F4C4C4C4C -1D1D1D1D1D1D1D1D9086D5D78F43C47D10101080808080802A2A2A3D3D61616105050538 -3838383838E7082B08840B408E52C263B470C2B36363466F466F46463535353535595959 -5D353535650F0F0FBE00048FFB9071FB1F1F4C4C4C4C1D1D1D1D1D1D1D1D1D1DFE49D589 -044141A01010808080802AA02A2A3D3D3D616161050538383838080838E7082B08840B40 -8E52C2637270C2B36F466F466F46464635353535595959595D5D5D650F0F0F0F1A4A000B -B85B1F1F1F4C4C4C4C1D1D1D1D1D1D1D1D1D1D1D8691D504414107A0101080808080A02A -2A2A3D3D61616161050538383838080838E7082B08840B4077CF47C546EF594746464646 -4635353559595959656565657B7B7B0F0F0F0F0F02025D00BD0A904C909090905B5B5B5B -1D1D1D1D71717171D54949437D103C562A2A2A2A2A2A3D3DEAEA61050505050538383838 -3838383838E7082B08840B4077CFC8C5BEEF354746464646353535355959596565656565 -7B7B0F0F0F0F1A1A1C020F83BD905B4C909090905B5B5B5B1D1D1D1D71717171CB11CE43 -7D103C562A2A2A2A2A2A3D3D61EA610505050505383838383838383838E7082B08840B40 -774AC8C559EF59474646353535355D5D65656565650F0F0F0F0F0F0F1A1A1A1A7B571A83 -BD5B5B4C90905B5B5B5B1D1D1D1D71717171505011119143C43C3C562A2A2A2A2A3D3D3D -EA61050505053838383838383838383838E7082B08840B409A4AC8C559BE65473535355D -5D5D5D6565650F0F0F0F0F0F1A1A1A1A1A1A1A1A1C66020089CB1D4C5B5B5B5B1D1D1D1D -71717171505050506711B60BB7A02A562A2A2A2A3D3D3D3D050505050538383838383838 -3838383838E7082B08840B409A55C8C559BE9E9F5D5D5D65656565657B7B0F0F0F0F1A1A -1A1A1A1A1A02020202661A83BD5B714C5B5B1D1D1D1D1D1D71715050505050506711D704 -C4983C2A2A2A2A3D3D3D3D3D0505050538383838383838383838383838E7082B08840B40 -9A55C85D65BE9E9F656565650F0F0F0F0F0F0F1A1A1A1A1A1A1A02020202535302571AC0 -8F5B1D1D1D1D1D1D1D1D1D1D50505050505050506711CEF57D982A2A2A2A3D3D3D3D6161 -0505053838383838383838383838383838E7082B08840B409A55A1C59EBE9EA165650F0F -0F0F0F0F1C1C1C1C1C021C1A020202025353535357570276CCCB5B251D1D1D1D1D1D7171 -5050505050505050119131F57D982A3D3D3D3D3D3D616161050538383838080838383838 -3838383838E7082B08840B409A55A15D9E9E9EA10F0F0F0F0F0F0F0F1C1C1C1C1A1C021C -02020253535353575757574390CB5B251D1D1D1D1D71717150505050505050501167A412 -7D982A3D3D3D3D3D3D6161610505383838380808383838383838383838E7082B08840B40 -9A4A1CF81C9E1A1C1C1C1C1C1C1C1C1C1A1A1A1A1A0202021C4D6666571C0266A87604B8 -CB67CB90CB71717171111111111111119191919191A44FD5780B7D5A2BEA2AEA050505EA -057C053808383838383838383838383838E7082B08840B406EA81CF81C9E021C1C1C1C1C -1C1C1C1C1A1A025353578383094D1C1C0D09831A0B78FBCB5B0A5B587171717171111111 -111111119191919149919149CE0A780B9898050561EA0538080808083838383838383838 -3838383838E7082B08840B409A551CF8029E531C1C021C021C021C1A0202025353020202 -A16609661A0D4329FB90116771CBCB7171717111111111111111919191914949A44949A4 -0C3AB6CCFA142B612B080838387C050538380808383838383838383838E7082B08840B40 -79A81C4D02CA531C0202020202020202535353535783535366021A575A29CCB631715BCB -5867115B11111111115858589191919149494949A43434A449A43A75F7BCF52B43381414 -08083838380808DB383838383838383838E7082B08840B408E551C4D02CA531C02020202 -02020253575353835783830D83C05AF5CCD7D7D55BCBCBCB5B5B71671111115858585858 -9191494949493131A4A4A4A434343AA4754FF7BCF5FA5C43DBDBDBDBDB08080838383838 -3838383838E7082B08840B408E55574D02CA83020202020202020202838353020257830D -5A29FB4931CB5B1D90CB1171CB5B11675858585858676767494949493131313149A4A434 -4F4F3AA4A44F7575A4BCF5047C050505383808DB383838383838383838E7082B08840B40 -8E55574D5753835757575757575757570D830D099B430B040A0AD5909090718611CBCB71 -5867587158585867676767674949313131313131A4348134A4A43A750C34A43A0C74CEF7 -F5F5DEDB08380808383838383838383838E7082B08840B408E55574D5753835757575757 -57575757830D9B43F5BD0AF7581111505050FE1D71711111585811715858586767676767 -493131313131313134A495A4344F3AA434810C7575757575AFAFBC12DEDB380508383838 -3838383838E7082B08840B40261A4DE0C00257C0095702660D0941437889FB716767715B -CB717171711111111111111111111111919191494949494931939393939393933A3A4F3A -4F3A4F4F4F4F4F4F4F4F4F0C3A7575754FD7CC8F1414FA145C0505DB14F9F308DBB55A26 -261AF6878BE00D8383839B5CF512CCBC5BCBCB1111CBCB90717171717111111111111111 -11111167919149494949313193939393939393933A3A4F3A4F4F4F4F4F4F4F4F4F4F4F4F -3A4F4F0C4F4FA4A4F7D5BC12DEDE14145CD07C0838B543262653BB87C3660953C0048FD5 -9191919167675871CBCB7171717171111111111111111111116767674949494931313131 -93939393939393933A4F3A4F3A4F4F4F4F4F4F4F4F4F4F4F0C0C4F4F0C0C75757575744F -AF0A12FA5C7C3814B0B50B26B900BB878B66099BBD1F95AE50717171CBCB717111111111 -11111111115858581111116767676767494931313131313193939393933434343A4F3A4F -4F4F4F4F4F4F4F4F4F4F4F4F4F4F0C0C0C4F4F3A813A81757575F70ADE14EA1405840B8E -B909F6E0C166410486504C1F4C508671CB7111111171CBCB111111585858585867676767 -67313131313131313131313193939334343434343A4F3A4F4F4F4F0C4F4F4F4F4F4F4F4F -A4343A4F0C0C0C4F0C4F9534810C7575CCDE3D147C845C402600BB87C18743CC1D1D5B1D -5067505B6767581111586767585858585867676767676731313131313131313131319393 -34343434343434343A4F4F4F4F0C0C0C4F4F4F4F4F4F4F4F0C0C4F4F4F0C7575810C2E0C -4F3A4F0CA412051405845C6E2600E5E48B41F59111586767715BCB585858111158673193 -58585867676767676731313131313131313131319393939334343434343434344F4F4F4F -4F0C0C0C4F4F4F4F4F4F4F4F75750C4F4F4F0C0C750C4F4F3A3A4F4F750ADE2B05B55CBA -26537AB7CA7DBC4F67CBD5116711111111586767671171CB585858676767676731313131 -313131313131313193939393343434343434340C4F4F4F4F0C0C0C0C4F4F4F4F4F4F4F4F -A43A4F0C0C0C4F3A0C34344F747474E32EAFF52B05B50BBA015AE5BB9D04D3CB50505050 -50505825D35858D35858D358D3D3D3D3D3D3D3D3D6D6D6D9D9D9D9D9EBEBEBE3E3E3E3E3 -343434343434343474747474747474747474747474747474747474747474747474747474 -74747474930CBC05B0FC0B7FB27609F69B0467D371505050505050506758585858585858 -58676767673131313131319393939393939393349334933481818181818181810C2E0C0C -2E0C0C2E0C0C2E0C0C2E0C0C2E0C0C2E0C0C2E0C0C2E0C0C2E0C0C2E0C750AFA05140B7E -26769BB7C17886869191919191919191CECECECECECECE49918686868686868686868686 -86959595959595959595AEAE81818181818181AEAEAEAEAEAEAEAEAEAEAEAEAEAEAEAEAE -AEAEAEAEAEAEAEAEAEAEAEAEAEAEAEAE812E0AFA0514187EB276B710C1BD9531A4A4A4A4 -A4A4A4A4A4A4A4A4A4A4A4A495959595959595959595AEAEAEAE8181818181812E812E81 -75757575757575752E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E -2E2E2E2E0C75B6FAE708437EB25A8056B78FA4B691919191919191914949494949494949 -CECECECECECECECE49A4A4A4A4A4A4A43A3A3A3A3A3A3A3A743A743A743A743A3A3A3A3A -3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3AE375F7DED0FC0BAC -B2768080A0FB34D386868686868686868686868686868686939393939393939334930C34 -34340C0CE334740C740C0C0C74747474747474740C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C -0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0CE375CEDE848418018E88765A5AED4CE225252525 -252525252525252525252525254C25252525252525252525252525252525252525252525 -252525252525252525252525252525252525252525252525252525252525252525252525 -25252525258615290B0B186AF16A011BF25F5F0E8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C -24242424242424242424242424242424248C242424242424242424242424242424242424 -24242424242424242424242424242424242424242424242424242424F124F1CD73016ABF - -end -%%PageTrailer -%%Trailer -%%EOF diff --git a/lib/examples/CV-image.png b/lib/examples/CV-image.png deleted file mode 100644 index 8541c00496..0000000000 Binary files a/lib/examples/CV-image.png and /dev/null differ diff --git a/lib/examples/Curricula_Vitae/CV-image.eps b/lib/examples/Curricula_Vitae/CV-image.eps new file mode 100644 index 0000000000..540bcf12b6 --- /dev/null +++ b/lib/examples/Curricula_Vitae/CV-image.eps @@ -0,0 +1,793 @@ +%!PS-Adobe-3.0 EPSF-3.0 +%%Creator: (ImageMagick) +%%Title: (C:/Documents and Settings/usti/Local Settings/Temp/lyx_tmpdir1300a02420/lyx_tmpbuf0/1D__LyXSVN_lyx-devel_lib_templates_CV-image.eps) +%%CreationDate: (Wed Apr 04 01:28:58 2007) +%%BoundingBox: 0 0 96 96 +%%HiResBoundingBox: 0 0 96 96 +%%DocumentData: Clean7Bit +%%LanguageLevel: 1 +%%Pages: 1 +%%EndComments + +%%BeginDefaults +%%EndDefaults + +%%BeginProlog +% +% Display a color image. The image is displayed in color on +% Postscript viewers or printers that support color, otherwise +% it is displayed as grayscale. +% +/DirectClassPacket +{ + % + % Get a DirectClass packet. + % + % Parameters: + % red. + % green. + % blue. + % length: number of pixels minus one of this color (optional). + % + currentfile color_packet readhexstring pop pop + compression 0 eq + { + /number_pixels 3 def + } + { + currentfile byte readhexstring pop 0 get + /number_pixels exch 1 add 3 mul def + } ifelse + 0 3 number_pixels 1 sub + { + pixels exch color_packet putinterval + } for + pixels 0 number_pixels getinterval +} bind def + +/DirectClassImage +{ + % + % Display a DirectClass image. + % + systemdict /colorimage known + { + columns rows 8 + [ + columns 0 0 + rows neg 0 rows + ] + { DirectClassPacket } false 3 colorimage + } + { + % + % No colorimage operator; convert to grayscale. + % + columns rows 8 + [ + columns 0 0 + rows neg 0 rows + ] + { GrayDirectClassPacket } image + } ifelse +} bind def + +/GrayDirectClassPacket +{ + % + % Get a DirectClass packet; convert to grayscale. + % + % Parameters: + % red + % green + % blue + % length: number of pixels minus one of this color (optional). + % + currentfile color_packet readhexstring pop pop + color_packet 0 get 0.299 mul + color_packet 1 get 0.587 mul add + color_packet 2 get 0.114 mul add + cvi + /gray_packet exch def + compression 0 eq + { + /number_pixels 1 def + } + { + currentfile byte readhexstring pop 0 get + /number_pixels exch 1 add def + } ifelse + 0 1 number_pixels 1 sub + { + pixels exch gray_packet put + } for + pixels 0 number_pixels getinterval +} bind def + +/GrayPseudoClassPacket +{ + % + % Get a PseudoClass packet; convert to grayscale. + % + % Parameters: + % index: index into the colormap. + % length: number of pixels minus one of this color (optional). + % + currentfile byte readhexstring pop 0 get + /offset exch 3 mul def + /color_packet colormap offset 3 getinterval def + color_packet 0 get 0.299 mul + color_packet 1 get 0.587 mul add + color_packet 2 get 0.114 mul add + cvi + /gray_packet exch def + compression 0 eq + { + /number_pixels 1 def + } + { + currentfile byte readhexstring pop 0 get + /number_pixels exch 1 add def + } ifelse + 0 1 number_pixels 1 sub + { + pixels exch gray_packet put + } for + pixels 0 number_pixels getinterval +} bind def + +/PseudoClassPacket +{ + % + % Get a PseudoClass packet. + % + % Parameters: + % index: index into the colormap. + % length: number of pixels minus one of this color (optional). + % + currentfile byte readhexstring pop 0 get + /offset exch 3 mul def + /color_packet colormap offset 3 getinterval def + compression 0 eq + { + /number_pixels 3 def + } + { + currentfile byte readhexstring pop 0 get + /number_pixels exch 1 add 3 mul def + } ifelse + 0 3 number_pixels 1 sub + { + pixels exch color_packet putinterval + } for + pixels 0 number_pixels getinterval +} bind def + +/PseudoClassImage +{ + % + % Display a PseudoClass image. + % + % Parameters: + % class: 0-PseudoClass or 1-Grayscale. + % + currentfile buffer readline pop + token pop /class exch def pop + class 0 gt + { + currentfile buffer readline pop + token pop /depth exch def pop + /grays columns 8 add depth sub depth mul 8 idiv string def + columns rows depth + [ + columns 0 0 + rows neg 0 rows + ] + { currentfile grays readhexstring pop } image + } + { + % + % Parameters: + % colors: number of colors in the colormap. + % colormap: red, green, blue color packets. + % + currentfile buffer readline pop + token pop /colors exch def pop + /colors colors 3 mul def + /colormap colors string def + currentfile colormap readhexstring pop pop + systemdict /colorimage known + { + columns rows 8 + [ + columns 0 0 + rows neg 0 rows + ] + { PseudoClassPacket } false 3 colorimage + } + { + % + % No colorimage operator; convert to grayscale. + % + columns rows 8 + [ + columns 0 0 + rows neg 0 rows + ] + { GrayPseudoClassPacket } image + } ifelse + } ifelse +} bind def + +/DisplayImage +{ + % + % Display a DirectClass or PseudoClass image. + % + % Parameters: + % x & y translation. + % x & y scale. + % label pointsize. + % image label. + % image columns & rows. + % class: 0-DirectClass or 1-PseudoClass. + % compression: 0-none or 1-RunlengthEncoded. + % hex color packets. + % + gsave + /buffer 512 string def + /byte 1 string def + /color_packet 3 string def + /pixels 768 string def + + currentfile buffer readline pop + token pop /x exch def + token pop /y exch def pop + x y translate + currentfile buffer readline pop + token pop /x exch def + token pop /y exch def pop + currentfile buffer readline pop + token pop /pointsize exch def pop + /Times-Roman findfont pointsize scalefont setfont + x y scale + currentfile buffer readline pop + token pop /columns exch def + token pop /rows exch def pop + currentfile buffer readline pop + token pop /class exch def pop + currentfile buffer readline pop + token pop /compression exch def pop + class 0 gt { PseudoClassImage } { DirectClassImage } ifelse + grestore +} bind def +%%EndProlog +%%Page: 1 1 +%%PageBoundingBox: 0 0 96 96 +userdict begin +DisplayImage +0 0 +96 96 +12.000000 +96 96 +1 +0 +0 +256 +A7B2CA +C4CBDC +A6B5D5 +767D90 +8998B4 +8DA0CA +E2E7EE +9DADD1 +8A9DC8 +A0AED0 +6B7895 +919CBD +5A6683 +A1B0D2 +CDD1DB +AAB8D6 +99A9CE +657089 +7A88A8 +C9D1E5 +8A9CC4 +717A8D +D1D8E9 +CED5E8 +99A2B5 +A2ABCA +A8B6D5 +C5CEE1 +A9B6D9 +697489 +798092 +6D788B +BAC6E0 +E1E5F0 +E5E9F1 +B9C5DE +D0D5DC +6A7183 +C2CDCE +B5C2DC +DAE0ED +8993A9 +94A6CE +8BA1C4 +94A3D1 +C9CED3 +57677E +C1CCE1 +BDC9E0 +616D86 +99AAD0 +D8DEEC +5D6985 +AEBCD9 +7E8494 +CDD4E7 +8B9EC9 +848A99 +5B6988 +808695 +96A8CE +92A4CC +BDC8DE +DEE2ED +C0CDD2 +9DACCE +D6DCED +92A3C2 +C8D0E2 +D6DCE9 +B0BEDA +B2BCDF +E9ECF3 +616E88 +B2BBD2 +D3D9E4 +6C7689 +A5B3DB +D1D7E4 +5A6885 +657086 +D4DAEA +BBC3D5 +A5B4D2 +D0D6E9 +B1B8CC +96A8D1 +A4B3D4 +656F88 +ADBCD6 +99A5C3 +6A758C +939EC1 +ADBBD8 +7C8291 +CBD0D5 +BFCAE0 +8FA2CA +CCD2E6 +B2C0DC +DCE2F0 +ACBAD6 +A2B1D3 +646E87 +9199AB +C5D0E4 +BEC4C3 +BCC7DE +DDE0EA +B5C1DA +C5CDD5 +B1BFDC +B3C1D5 +677289 +B1C1D9 +C5CDE4 +5B6588 +566481 +9EAAC1 +C9CED8 +828DA5 +C5CCD1 +98A4D2 +AAB9D8 +8D9DCD +99A9CA +BDCCD2 +C1C9D5 +98A7CE +5A6982 +787F91 +A3B2D1 +8E9BCF +757C8F +616E81 +9FB1D2 +A3AABB +7A859E +7A8193 +9EB1CC +CFD5E2 +D8DCE4 +C2C9D1 +75839E +6B768D +627089 +C4C9D1 +606A86 +D3DAED +5D6C82 +B4C2E0 +B6C3DD +91A5C9 +9BABCF +C5CAD5 +9DAAC9 +B8C2DD +9CAAD1 +AAB9D3 +B0BADD +97A6CA +AEB8DB +D2D9EB +C8CEE2 +5E6C87 +7E8492 +B9C2DA +DCE4EF +AEB9D1 +828897 +C2CDE4 +70788B +BEC6D8 +BAC5DA +5B6B80 +596B93 +929FD1 +98AAD3 +C6D0DB +B6BEDF +B5C4D9 +8C97CD +65728E +98ACCA +767F94 +C5CFD2 +C3CCD6 +9FACDA +6D7DA0 +7B87A0 +ADBDD4 +D4D9C9 +9FAEC9 +95A8C3 +B4BEDA +A1B5D0 +9BAACC +AEBDDE +737B8E +C1C9E4 +B1BADB +D8DFEB +A5B8D2 +68728C +707E99 +CED7E5 +616F8B +B7BED1 +8A9BD1 +ECEFF5 +D7DEF0 +666C8D +CCD3E2 +67748E +646A8C +63718D +DBDFE6 +63698B +D3DDE8 +899AC8 +98ABD4 +7A818E +8394BE +888E9D +A1B4D4 +BFC7E2 +707689 +60678A +9CAECE +9EA9D5 +787E8E +8B9DCF +7C8395 +808799 +8FA3CE +62688C +C0C8DB +788492 +BFC7D4 +AFC0D5 +C4CBE5 +CFD5CB +D6E3EC +8FA1D3 +CBD4E4 +808FB1 +A1AED6 +5F7092 +AAB8E0 +8797CA +8798BE +707B92 +8A97C7 +BCC3DF +66758A +CBD3E6 +6A245F795F5F2D2D2D2D2D2D2D2D2D790E0E5F0E5F775F775F5F2D2D2D2D2D795F5F5F2D +2D2D2D79B25F77776E6E6E6EB26EB26EBABABABA6E6E9ABA9A7F8E8E9A77799A92929292 +2D2D2D2D7979927977B9B9B97940798E9A6E797E017F6ABF244848064848222222220622 +060606063F3F3F3F6C6C6C6C6CD8D8D8D88D8D8D4B4B4E4B8C248C240E0E0EB277777777 +B2B201B201BABA017F7F7F7F7FEEEEEE52525252CFCFCFCF4A4A554A5555555500000000 +00000000000000768319886AF148D1D1D1D1D1484848484848482222212121213F3F3F3F +2828C93345458D4551514B514B4E4E4EF4D4D4D4444444A31B1B1B1B010101ECECADACAD +AD525252B3B3B3C2C8C2C8C8A1A1A1A1A11C1C1C1A0202830D830D09E5190910E5E5197F +2D224848D14848482222222206060606212121213F3F3F3F28D233424242515116165454 +541737373737FF6262134444737373732F2FC7606B232023B4B497B4969696966F6F6FC5 +F8C5F8F8F8F81C1C4DF84D1C4D4D4D57BBF687DCBBE5831B5F48D148D148484848222222 +2222222221212121A7A7A7A7D2D2D2D2D24242429494A21654545454626262131313A3A3 +F0F0F0F0C7C7E1C72020232397979797727272EFEFBEBEBE5D5D7B7B0F7B1A1CE0E0E0E0 +E087878799E48BDCDC2AC07E5F2248222222222222060606212121213F643F2828282828 +D2424242515151A2A2A216A254541717FFFF13131344731BAAAAAAC72FC730C720202320 +239797977072EFEFEFEFEFBEBE595959659E9E9ECACACAC3C3C3C38B0DC08B8BE47D767E +5F224822482222222222220606060621A7A7A7A7A7A7A72828C9C9C93345DADA54545417 +1737FFFF1313131344441B1BAAAAAA2F2F6060306B6B2323239CA6A62727636372464646 +659E9E9E9E531A53025353E08383878309C0C0E4077D887E2D224822D122482222222221 +22212121A7A728A7C928C9C9DADADADADA4BDA4BA21616CDCDCDCDCDF4F4F4134444441B +2F2F2F2F6060603EFDFDFDFDA6A6A6A647B3474747479F9F9F9FA1A1A11C1C1C024D4D57 +66666666F641E441BB80196E5F2248224822222222212221212121216464646428282828 +42424242515151A2941617175454371317137373FF3713732F2F60303E3E6B6B20202023 +239797276363636F464646357B7B7B0F1A1A1A1A0257575766660D0D090707B7077A1979 +5F2248062222222222212121212121216464646428282828424242425151515154545454 +545454541313131373732F1B7369AA2F60306B6B20202023239797276363636F46464635 +7B7B7B0F1A1A1A1A02575783660D0D0D090707B7077A196E5F2222062221222221212121 +212121216464642828282828424242515151515154545417624444131B13FF37FF131B1B +3E3E3E3E3E3E3030202023232397272763636F6F464635357B7B7B0F1A1A1A0257575783 +660D0D09090707B7077A19795F0622212222212121212121213F3F3F6464282828283333 +42425151515151165454541737FFFFFFFF7360EC601B1B1BAAAA2F60303E3E3020202323 +9797272763636F46464635357B7B0F0F1A1A020257578357660D0909099D07B7077A1979 +2D06222122212121212121213F3F3F3F2828282828333333425151515151161616543737 +37FF13443713444444441B01AA2F603E6B6B3E302023232397272727636F6F4646353535 +7B7B0F1A1A1A0202575783660D0D0909099D07B7077A19792D0622210621212121213F3F +3F3F3F3F2828282833333333515151515116164EA254173737FF13441B44131BECECEC01 +2F2F2F60303E3E3E232323239727276D6F6F6F464635355D7B0F0F1A1A02020257835766 +0D090909099D99B7997A19792D060621062121213F3F3F3F3F3F3F3F2828283333333333 +5151515116164E16FF5454174401A31337014A1868296868A6AD3E60603E6BAD23232323 +97276D6D6F6F464646355D5D0F0F0F1A1A020253835783660D090909419D99B7997A1979 +79060621062121213F3F3F3F3F3F6C2828282833333333455151515116164E16FF5454EC +55888888186829393B36E939291876A870AD6B6B2323239797276D6D6F6F464646355D5D +0F0F1A1A1A020253835766660D090909419D99B7997A19790E3F2121A728A7A764646464 +28282828424242424251515194549442541716374BCF8868395E5E3BA93B3B3B3B3B363B +E903AB8A680052EC6BA6236DC2966F96464646355D65650F0F0F1A1A1A02535366660D0D +0D09090907B1DCB7322C19260E3F3F21A728A72864646464282828284242424251515151 +54D29417545417A255183939DFDF3B5EA93B3B3B3B3B3B3B1EE8368A1E3B681870A66B97 +2720966F464646355D65650F0F0F1A1A1A02535366660D0D0D09090941B1DCB7327A1926 +5F6C3F3FA728A7286464282828282833424242515151515117D294FFFF5417D4DFA95EA5 +39A9A9A93B3B3B3B3B3B3B3BE83B361EC6C68AE96818709C6D466563464635355D650F0F +0F0F1A1A0202535366660D0D0909090941B1DCB7322C19265F6C3F3FA728A72828282828 +283333334242515151515151943794A21316FF55A53B39393B5EA5393B3B3B3B3B3B3B3B +E9E81E1E363B8A82C6E97670209C5D9C4646355D65650F0F0F1A1A1A02535353660D0D0D +0909090941B1DCB7322C1926776C3F3F28C928C928282833333333335151515151511616 +421317511737CF68DF39A939393BA5A53B3B3B3B3B3B3B36E88A8A8A8A1E82038215E918 +A8306DA84635355D650F0F0F1A1A1A1A025353570D0D0D0D0909094141B1DCB7327A9B26 +77D86C6C28C928C928333333333345455151515151161616541662D4A2521839DFA93BA9 +39393BA53B3B3B3B3B3636368A8A8A1E828203031EC615C6294A6D463535355D650F0F0F +1A1A1A1A025357830D0D0D0D0909414199B1B1B7322C9B262DD86C6C284528C933333333 +454545455151515116164E16379437441B88E9393BA9A9A93B3B3BA93B3B3B3B3B363636 +8A1E821EE8368A1EE61E8A158A6800AD35355D5D650F0F0F1A1A1A02535383570D0D0D09 +0909414199B1B1B7327A9B262DD86C6C284528C933333333454545455151511616164E16 +17541617CF295EDF39A9A93B3B3B3B363B3B3B3B36363636828AE88A8203828ADD15DD82 +15B8290035355D65650F0F0F1A1A1A02535357830D0D0D09090941419956B1B7322C9B26 +5F8D2842D2D242DA424294949494A2A216A21654545454175462169A685E393B3B3B3B3B +3B3B3B3B3B3B3B3B363636368A8A8A8A1E1E1E82C6E882821EAB82186D35A859650F1C1A +020202025783660D870D0707070799999956DC983C7A5A265F8D284242D242DA42949494 +94A2A2A216A254545454171737625155DFA93BA93B3B3B3B3B3B3B3B3B3B3B3636363636 +8A8A8A8A1E1E8282828285821EC603DF0065A81A0F7B7B1A02020202578366660D870707 +070799999956B198102C5A262D8DC99442D251DA94949494A2A2A2165454545454171717 +44624418A939A5DF3B3B3B3B3B3B3B3B3B3B3B363636365E8A8A8A8A1E1E82821E85C603 +820385030B53461A1A5D7B1A020202575783660D870D070707079999C456B1983C7A5A26 +2D8D3351944251DA949494A2A21616165454541717373737134455DF3B393BDF3B3B3B3B +3B3B3B363B363636365E5E5E8A8A8A1E1E8282821EC685038503854C89C0709E1A7B7B1A +02020257836666660D07070707999999C456B1983C7A5A262D4B33A2949451DAA2A2A216 +16545454545417173737FF376201683B393BA9393B3B3B3B3B363636363636365E5E5E5E +8A8A8A1E1E82820382C68282158582E20A1846591A1A1C1A020202578366660D07070707 +07999910C45632983C2C5A262D4B45A2A294A24BA21616165454545417173737FFFF6262 +37CF393BDFA539A93B3B3B3B363636363636365E5E5E5E5E8A8A1E1E8282030382C68282 +ABC603C61DF5C0A80F0202020202575783660D0D0707070707991010C45656983C2C5A26 +794B4516A294164B1616165454545417373737FFFF62626237883B3BDF36A93B3B3B3B3B +363636363636365E5E5E5E1E8A8A1E1E8282030382858503C615C6C61FB804830F1A1A02 +0202578366660D0D07070707999910107D5656433C2C5A26794B4516A294164B16165454 +545417173737FFFF62621313131839A9A9A93B3B3B3B3B363636363636365E5E5E5E1EDD +8A1E1E1E828203031E8515C60315ABABCC1189C00F1A1C570202578366660D0D07070707 +999910107D2A56433C2C5A265F8C4B54545454CD1717171737373737FFFF131313134444 +CFDF363939A9363B3B3B3B3B363636368A8A8A8A8A1E1E1E1E1E828282820303C6C6C615 +15151515AB90FB5A530F1C575757660D0D0D090907079D9D9D321010102C56432AB05A40 +5F8C4E54545454F41717173737373737FF1313131344444488A936A9A939A9A93B3B3B36 +363636368A8A8A8A1E1E1E1E1E82828282030303C6C6C615151515AB4CFBFB5A9E350266 +5766660D0D09090907079D9D32321010A02AB12B2AB05A405F244E54175454F437373737 +37FFFFFF131313134444441B68363BA936A9A93B3B3B3B363636365E8A8A8A8A1E1E1E1E +8282828282030385C6C615151515ABABAB1571789B02660266660D0D0D090909079D9D9D +321010807D2C56432AB05A405F248C17371717F43737FFFFFFFF13131313134444444444 +683B3B39363B36363B363636365E5E5E8A8A8A1E1E1E1E828282828203858585C6C61515 +1515ABAB4CFB5BBD9B0F0D5766660D0D090909099D9D9D9D32101080A02A56433DB05A40 +2D0E8C37FF1737D4FFFF13131313131344444444441B1BA318A936393B3B363636363636 +5E5E5E5E8A1E1E1E1E82828282828203858585C61515151515ABABAB4CFBCBCC5A1A0957 +0D0D0D0D090941419D9D9D9D32108080802A562B2AB05A402D0E8C62FF37FF44FF131313 +13131313444444441B1B1B1B183B5EA9A9A93B3B3636365E5E5E5E5E1E1E1E1E82828282 +8203038585C6C6C61515151515ABABABAB1F1111048309570D0D0D09090941419D9D9D32 +10108080A02C562B3DB05A8E2D0E8C6262FFF44413131313134444444444441B1B1B1B1B +68365E3B36A93B363636365E5E5E5E1E1E1E1E1E828282820303038585C6C6C615151515 +ABABABE24C90FBFB5C1A57090D0D0D09094141419D9D9D3210808080A02C562B3DB05A26 +2D0ED46262FF6244131313134444444444441B1B1B1B011B295E3B3B5EA936E636365E5E +5E5E1EDD1E1E1E828282828203038585C6C6C6C615151515ABABABAB4C5B90CB0483570D +0D0D0909094141419D9D9D3210808080A02C562B3DB05A40B24444131369696969696969 +6969696969AA2FAAAAAA30AD3B368AE8368A8A368A8A8A8A8A1E1E1E1E1E828282820303 +C6C6C6C6C615151515151F1F1F1F1F4C4CFB500A0BC0E487870D070707079999B1B15656 +2A2A2A2A3DEAEA9861B05C40B2B2441313136969696969696969696969AA2FAAAAAA30AD +E936E9E9E8E8E88A8A8A8A8A1E1E1E1E1E82828282030303C6C6C6C61515151515151F1F +1F1F4C4C1F901D89C15387E40D87070707079999B15656562A2A2A2A3D2CEA9861B05C40 +B2B244131369696969696969691BAA1BAAAA2F2FAA2F3E6BE91EE8361EE836038A8A8A8A +1E1E1E1E8282828282030385C6C6C6C61515151515151F1F1F1F4C4C1F5BFB04C00287E4 +0D07070707999910565656562A2A2A2A3D2C059861B05C40B2B244446969691B69691BAA +1BAA2F2FAA2F2F2F2F2F306B683682361E8A36038A8A8A1E1E1E1E828282828203858585 +C6C6C61515151515151F1F1F1F4C4C4C5B50BD760D8B878707070707079910105656562A +2A2A2A2A3D2CEA9805B05C406EB2A3737369AA1BAA1B2F2F2F2F2F2F2F2F2F2F2F603E6B +55298236E88AE8828A1E1E1E1E82828282828203858585C6C6151515151515151F1F1F1F +1F4C4C4C1D11788B83418787070707079910101056562A2A2A2A3D3D3DEA059805B05C40 +6EB21B1B73AA1B2F2F2F2F2F2F2F2F2F2F2F60606030303E5229E6E68A1E8A8A1E1E1E1E +828282828203038585C6C6C615151515151515151F1F1F1F4C4C4C4C906778C083098707 +0707079999101010562A2A2A2A2A3D3D3DEA059805B05C406E6E1B1B73AA2F2F2F2F2F2F +2F6060602F606030303E3060CF18E88503821E8A1E1E1E1E828282820303038585C6C6C6 +15151515151515151F1F1F1F4C4C4C4C5BB678C08307070707070799C41010802A2A2A2A +2A3D3D3D3DEA052B05B05C406E011B1B73AA2F2F2F2F2F2F60606060606060303E3E3E30 +EC556836E88A82821E1E1E828282828203038585C6C6C6C615151515151515151F1F1F1F +4C4C4C4C11D5290D0DC4078707070799101010802A2A2A2A2A3D3D3D3DEA05612BB05C40 +6E0101C7C7C730C760606060303030302020202020202020A6A6AC788282823682828282 +03030303C6C6C6C6C6151515151515151F1F1F1FFB901FFB1F1D1D900AB6049B0983C409 +323232323C3C3C2A2A2A2A2A3D3D3D3D6105052B387C5C406E0101C7C7C730C730606030 +3030303020202020202020209C6DAD68B88A82858282828203030303C6C6C6C615151515 +1515151F1F1F1F1F1F909090905B5B9011B6044109574107323232323C3C2A2A2A2A2A2A +3D3D3D3D0505382B087C0B406EBA01C7E1E1303030303030303030302020202020232323 +30A62076B81E1E038282030303038585C6C6C6C6151515151F1F1F1F1F1F1F1F9090901D +5B5B5B5BA40A0B09095707993232323C3C3C2A2A2A2A2A2A3D3D3D610505382B387C0B40 +BABAECE1E1E130303030303030306B6B202023232323232320239CA88AFB15E803030303 +85858585C6C6C615151515151F1F1F1F1F1F1F1F5B15901D5B5B1D1D0A125A0D410D0710 +32323C3C3C2A2A2A2A2A2A3D3D3D61612B05382B147C0B40BA7FECE1E120E16B30306B6B +6B6B23202323232323239797C29C594A298A1503030385858585C6C6C615151515151515 +1F1F1F1F1F4C4C4C1DFB901D901D501FF50B0909C4073232323C3C3C2A2A2A2A2A2A3D3D +3D6161610505382B14840B40BA7FECFDE1206B6B6B6B6B20232023202323239797979797 +279759A6001878C685858585C6C6C6C615151515151515151F1F1F4C4C4C4C4C1D15905B +907171B8C10983097D1032323C3C3C3C2A2A983D2A3D3D3D616161612B7C082B147C0B40 +7F7FACE1FD20236B2023202320232323979797979727272796976397B4A800B88585C6C6 +C6C6C6C615151515151515151F4C4C4C4C4C4C4C5B1F1D1D90505B78C00D09411032DCDC +3C3C3C2A2A2A3D3D3D3D3D3D616161052B7C082B147C0B407FEEACFDE1FD236B23202320 +23232323979797972727272746466359C26DADB803C6C6C6C6C6C6C61515151515151515 +4C4C4C4C4C4C4C4C9090717190501529E4E47DC49932DCDC3C3C3C2A2A983D3D3D3D3D3D +616105052B7C082B14840B406EAC9C9620B49CFD97979797972727276363636363636363 +6F636346639653431FC6B8851503851F1F1F1F1F1F1F1F1F1F1F1F1F4C4C4C4C4C1D1D58 +CBB6BC5A9D9D9D3232101010562A2A2A2A3D3D3DEAEA61050505050538E7082B08840B40 +6EAC9C9623B49CFD969797972727272763636363636363634663463546630FC0ABB8154C +C6AB4C851F1F1F1F1F1F1F1F1F1F1F4C4C4C4C1D1D1D1D5BD5498F7D9D9D9D3232101010 +562A2A2A2A3D3D3D61EA61050505050538E7082B08840B406EAC9C9623B49CFD97972727 +2727636363636363636F466F466F46653563461AE8B8ABAB85E21D851F1F1F1F1F1F1F1F +4C4C4C4C4C1D1D1D501F1190B6D7F5C49D9D3232101080802A2A2A2A2A3D3D3DEA610505 +0505383838E7082B08840B4079AC9C9697B46DFD962727636363636363636F466F464646 +466F46655D466F3568CC90B81515C64C1F1F1F1F1F1F1F1F4C4C4C1D1D1D1D1D711D5011 +49BC5C4110323210108080802A2A2A2A3D3D3D61050505050538383838E7082B08840B40 +7952B396B4709CB36363636363636363466F464646463535356F6F355D3535C500BD1DFB +15FB031D1F1F1F1F1F1F4C4C1D1D1D1D1D1D1D1D4C5071A4B6F5A0C43232101080808080 +2A2A2A3D3D3D6161050505053838383838E7082B08840B408E52C2632770C2B363636363 +6F466F464646463535353535354646465D6565654618CC71FB154C1F1F1F1F1F4C4C4C4C +1D1D1D1D1D1D1D1D9086D5D78F43C47D10101080808080802A2A2A3D3D61616105050538 +3838383838E7082B08840B408E52C263B470C2B36363466F466F46463535353535595959 +5D353535650F0F0FBE00048FFB9071FB1F1F4C4C4C4C1D1D1D1D1D1D1D1D1D1DFE49D589 +044141A01010808080802AA02A2A3D3D3D616161050538383838080838E7082B08840B40 +8E52C2637270C2B36F466F466F46464635353535595959595D5D5D650F0F0F0F1A4A000B +B85B1F1F1F4C4C4C4C1D1D1D1D1D1D1D1D1D1D1D8691D504414107A0101080808080A02A +2A2A3D3D61616161050538383838080838E7082B08840B4077CF47C546EF594746464646 +4635353559595959656565657B7B7B0F0F0F0F0F02025D00BD0A904C909090905B5B5B5B +1D1D1D1D71717171D54949437D103C562A2A2A2A2A2A3D3DEAEA61050505050538383838 +3838383838E7082B08840B4077CFC8C5BEEF354746464646353535355959596565656565 +7B7B0F0F0F0F1A1A1C020F83BD905B4C909090905B5B5B5B1D1D1D1D71717171CB11CE43 +7D103C562A2A2A2A2A2A3D3D61EA610505050505383838383838383838E7082B08840B40 +774AC8C559EF59474646353535355D5D65656565650F0F0F0F0F0F0F1A1A1A1A7B571A83 +BD5B5B4C90905B5B5B5B1D1D1D1D71717171505011119143C43C3C562A2A2A2A2A3D3D3D +EA61050505053838383838383838383838E7082B08840B409A4AC8C559BE65473535355D +5D5D5D6565650F0F0F0F0F0F1A1A1A1A1A1A1A1A1C66020089CB1D4C5B5B5B5B1D1D1D1D +71717171505050506711B60BB7A02A562A2A2A2A3D3D3D3D050505050538383838383838 +3838383838E7082B08840B409A55C8C559BE9E9F5D5D5D65656565657B7B0F0F0F0F1A1A +1A1A1A1A1A02020202661A83BD5B714C5B5B1D1D1D1D1D1D71715050505050506711D704 +C4983C2A2A2A2A3D3D3D3D3D0505050538383838383838383838383838E7082B08840B40 +9A55C85D65BE9E9F656565650F0F0F0F0F0F0F1A1A1A1A1A1A1A02020202535302571AC0 +8F5B1D1D1D1D1D1D1D1D1D1D50505050505050506711CEF57D982A2A2A2A3D3D3D3D6161 +0505053838383838383838383838383838E7082B08840B409A55A1C59EBE9EA165650F0F +0F0F0F0F1C1C1C1C1C021C1A020202025353535357570276CCCB5B251D1D1D1D1D1D7171 +5050505050505050119131F57D982A3D3D3D3D3D3D616161050538383838080838383838 +3838383838E7082B08840B409A55A15D9E9E9EA10F0F0F0F0F0F0F0F1C1C1C1C1A1C021C +02020253535353575757574390CB5B251D1D1D1D1D71717150505050505050501167A412 +7D982A3D3D3D3D3D3D6161610505383838380808383838383838383838E7082B08840B40 +9A4A1CF81C9E1A1C1C1C1C1C1C1C1C1C1A1A1A1A1A0202021C4D6666571C0266A87604B8 +CB67CB90CB71717171111111111111119191919191A44FD5780B7D5A2BEA2AEA050505EA +057C053808383838383838383838383838E7082B08840B406EA81CF81C9E021C1C1C1C1C +1C1C1C1C1A1A025353578383094D1C1C0D09831A0B78FBCB5B0A5B587171717171111111 +111111119191919149919149CE0A780B9898050561EA0538080808083838383838383838 +3838383838E7082B08840B409A551CF8029E531C1C021C021C021C1A0202025353020202 +A16609661A0D4329FB90116771CBCB7171717111111111111111919191914949A44949A4 +0C3AB6CCFA142B612B080838387C050538380808383838383838383838E7082B08840B40 +79A81C4D02CA531C0202020202020202535353535783535366021A575A29CCB631715BCB +5867115B11111111115858589191919149494949A43434A449A43A75F7BCF52B43381414 +08083838380808DB383838383838383838E7082B08840B408E551C4D02CA531C02020202 +02020253575353835783830D83C05AF5CCD7D7D55BCBCBCB5B5B71671111115858585858 +9191494949493131A4A4A4A434343AA4754FF7BCF5FA5C43DBDBDBDBDB08080838383838 +3838383838E7082B08840B408E55574D02CA83020202020202020202838353020257830D +5A29FB4931CB5B1D90CB1171CB5B11675858585858676767494949493131313149A4A434 +4F4F3AA4A44F7575A4BCF5047C050505383808DB383838383838383838E7082B08840B40 +8E55574D5753835757575757575757570D830D099B430B040A0AD5909090718611CBCB71 +5867587158585867676767674949313131313131A4348134A4A43A750C34A43A0C74CEF7 +F5F5DEDB08380808383838383838383838E7082B08840B408E55574D5753835757575757 +57575757830D9B43F5BD0AF7581111505050FE1D71711111585811715858586767676767 +493131313131313134A495A4344F3AA434810C7575757575AFAFBC12DEDB380508383838 +3838383838E7082B08840B40261A4DE0C00257C0095702660D0941437889FB716767715B +CB717171711111111111111111111111919191494949494931939393939393933A3A4F3A +4F3A4F4F4F4F4F4F4F4F4F0C3A7575754FD7CC8F1414FA145C0505DB14F9F308DBB55A26 +261AF6878BE00D8383839B5CF512CCBC5BCBCB1111CBCB90717171717111111111111111 +11111167919149494949313193939393939393933A3A4F3A4F4F4F4F4F4F4F4F4F4F4F4F +3A4F4F0C4F4FA4A4F7D5BC12DEDE14145CD07C0838B543262653BB87C3660953C0048FD5 +9191919167675871CBCB7171717171111111111111111111116767674949494931313131 +93939393939393933A4F3A4F3A4F4F4F4F4F4F4F4F4F4F4F0C0C4F4F0C0C75757575744F +AF0A12FA5C7C3814B0B50B26B900BB878B66099BBD1F95AE50717171CBCB717111111111 +11111111115858581111116767676767494931313131313193939393933434343A4F3A4F +4F4F4F4F4F4F4F4F4F4F4F4F4F4F0C0C0C4F4F3A813A81757575F70ADE14EA1405840B8E +B909F6E0C166410486504C1F4C508671CB7111111171CBCB111111585858585867676767 +67313131313131313131313193939334343434343A4F3A4F4F4F4F0C4F4F4F4F4F4F4F4F +A4343A4F0C0C0C4F0C4F9534810C7575CCDE3D147C845C402600BB87C18743CC1D1D5B1D +5067505B6767581111586767585858585867676767676731313131313131313131319393 +34343434343434343A4F4F4F4F0C0C0C4F4F4F4F4F4F4F4F0C0C4F4F4F0C7575810C2E0C +4F3A4F0CA412051405845C6E2600E5E48B41F59111586767715BCB585858111158673193 +58585867676767676731313131313131313131319393939334343434343434344F4F4F4F +4F0C0C0C4F4F4F4F4F4F4F4F75750C4F4F4F0C0C750C4F4F3A3A4F4F750ADE2B05B55CBA +26537AB7CA7DBC4F67CBD5116711111111586767671171CB585858676767676731313131 +313131313131313193939393343434343434340C4F4F4F4F0C0C0C0C4F4F4F4F4F4F4F4F +A43A4F0C0C0C4F3A0C34344F747474E32EAFF52B05B50BBA015AE5BB9D04D3CB50505050 +50505825D35858D35858D358D3D3D3D3D3D3D3D3D6D6D6D9D9D9D9D9EBEBEBE3E3E3E3E3 +343434343434343474747474747474747474747474747474747474747474747474747474 +74747474930CBC05B0FC0B7FB27609F69B0467D371505050505050506758585858585858 +58676767673131313131319393939393939393349334933481818181818181810C2E0C0C +2E0C0C2E0C0C2E0C0C2E0C0C2E0C0C2E0C0C2E0C0C2E0C0C2E0C0C2E0C750AFA05140B7E +26769BB7C17886869191919191919191CECECECECECECE49918686868686868686868686 +86959595959595959595AEAE81818181818181AEAEAEAEAEAEAEAEAEAEAEAEAEAEAEAEAE +AEAEAEAEAEAEAEAEAEAEAEAEAEAEAEAE812E0AFA0514187EB276B710C1BD9531A4A4A4A4 +A4A4A4A4A4A4A4A4A4A4A4A495959595959595959595AEAEAEAE8181818181812E812E81 +75757575757575752E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E +2E2E2E2E0C75B6FAE708437EB25A8056B78FA4B691919191919191914949494949494949 +CECECECECECECECE49A4A4A4A4A4A4A43A3A3A3A3A3A3A3A743A743A743A743A3A3A3A3A +3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3A3AE375F7DED0FC0BAC +B2768080A0FB34D386868686868686868686868686868686939393939393939334930C34 +34340C0CE334740C740C0C0C74747474747474740C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C +0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0CE375CEDE848418018E88765A5AED4CE225252525 +252525252525252525252525254C25252525252525252525252525252525252525252525 +252525252525252525252525252525252525252525252525252525252525252525252525 +25252525258615290B0B186AF16A011BF25F5F0E8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C +24242424242424242424242424242424248C242424242424242424242424242424242424 +24242424242424242424242424242424242424242424242424242424F124F1CD73016ABF + +end +%%PageTrailer +%%Trailer +%%EOF diff --git a/lib/examples/Curricula_Vitae/CV-image.png b/lib/examples/Curricula_Vitae/CV-image.png new file mode 100644 index 0000000000..8541c00496 Binary files /dev/null and b/lib/examples/Curricula_Vitae/CV-image.png differ diff --git a/lib/examples/Curricula_Vitae/Europass_CV_(2013).lyx b/lib/examples/Curricula_Vitae/Europass_CV_(2013).lyx new file mode 100644 index 0000000000..88b16e72ff --- /dev/null +++ b/lib/examples/Curricula_Vitae/Europass_CV_(2013).lyx @@ -0,0 +1,1061 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass europasscv +\begin_preamble +% Footnote at the very bottom of the page +\usepackage[bottom]{footmisc} +% This assure footnotes are printed +\usepackage{footnote} +\makesavenoteenv{tabular} +\end_preamble +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package none +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 3 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle true +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 1 +\tocdepth 1 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This template relies on the \SpecialChar LaTeX + package +\family sans +europasscv +\family default +, see +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +http://www.ctan.org/pkg/europasscv +\end_layout + +\end_inset + +, to create a CV according to the guidelines at +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +http://europass.cedefop.europa.eu +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Plain Layout +For further documentation please refer to: +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://ctan.org/tex-archive/macros/latex/contrib/europasscv/europasscv.pdf +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +\series bold +Note +\series default + that this class supports +\family sans +pdflatex +\family default + output only. + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following personal information may be included within the Latex preamble + as well: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Name +Stefan Swerk +\end_layout + +\begin_layout Address +In Austria +\end_layout + +\begin_layout Telephone +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout ++43 123 +\begin_inset space \enskip{} +\end_inset + +45 678 99 +\end_layout + +\end_inset + ++43 123 +\begin_inset space \enskip{} +\end_inset + +45 678 99 +\end_layout + +\begin_layout Email +stefan_lyx@swerk.priv.at +\end_layout + +\begin_layout Homepage +gitlab.swerk.priv.at +\end_layout + +\begin_layout InstantMessaging +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Google Talk +\end_layout + +\end_inset + +123 +\end_layout + +\begin_layout InstantMessaging +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Skype +\end_layout + +\end_inset + +456 +\end_layout + +\begin_layout Birthday +12.10.1492 +\end_layout + +\begin_layout Nationality +Austria +\end_layout + +\begin_layout Gender +Male +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +To include a picture (optional argument +\begin_inset Quotes els +\end_inset + +width +\begin_inset Quotes ers +\end_inset + +, file path): +\end_layout + +\begin_layout Picture + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +width=3.5cm +\end_layout + +\end_inset + +REPLACEphoto.jpg +\end_layout + +\end_inset + + +\end_layout + +\begin_layout BigItem +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Job applied for +\end_layout + +\end_inset + +The Doctor's Companion +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Big Item +\series default +: Puts left text to the left column and transforms it into capital letters. + The font size for the right text will be increased. +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes gld +\end_inset + +Vertical Space +\begin_inset Quotes grd +\end_inset + + for manual, vertical formatting. +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes gld +\end_inset + +Summary +\begin_inset Quotes grd +\end_inset + + represents the text in the left column. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Work Experience +\begin_inset Note Note +status open + +\begin_layout Plain Layout +A section. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout TitleItem +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +January 1999–June 2007 +\end_layout + +\end_inset + +Solid Waste Management Consultant +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Title Item +\series default +: Left text is typeset in blue, font size of right text will be increased. +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes eld +\end_inset + +Vertical Space +\begin_inset Quotes erd +\end_inset + + for manual, vertical formatting. +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes eld +\end_inset + +Summary +\begin_inset Quotes erd +\end_inset + + represents the text in the left column. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Item +Soprano Family +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +newline +\end_layout + +\end_inset + + New Jersey, United States of America +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Item +\series default +: Puts left text to the left column and right text to the right column. + +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes eld +\end_inset + +Vertical Space +\begin_inset Quotes erd +\end_inset + + for manual, vertical formatting. +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes eld +\end_inset + +Summary +\begin_inset Quotes erd +\end_inset + + represents the text in the left column. +\end_layout + +\begin_layout Plain Layout +Note: The usage of +\family typewriter + +\backslash +newline +\family default + instead of a normal or forced linebreak reduces the distance between two + consecutive items, i.e. + it retains the format of a single item. + Alternatively it may be possible to manually define the +\begin_inset Quotes eld +\end_inset + +Vertical Space +\begin_inset Quotes erd +\end_inset + + arguments in a way that results in the same effect. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex ItemInset +status open + +\begin_layout EcvItemize +Management and administration of associates +\end_layout + +\begin_layout EcvItemize +Adviser for various institutions +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +It is advisable to use the +\begin_inset Quotes els +\end_inset + +EcvItemize +\begin_inset Quotes ers +\end_inset + + layout exclusively within the +\begin_inset Quotes els +\end_inset + +ItemInset +\begin_inset Quotes ers +\end_inset + + ( +\family sans +Insert \SpecialChar menuseparator + Custom Insets \SpecialChar menuseparator + ItemInset +\family default +) as demonstrated above, in order to ensure correctly formatted listings. + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout TitleItem +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +September 1987–Mai 1994 +\end_layout + +\end_inset + +Starship Captain +\end_layout + +\begin_layout Item +USS Enterprise (NCC-1701-D), Somewhere in the Alpha Quadrant. +\end_layout + +\begin_layout Item +Space: the final frontier. + These are the voyages of the starship Enterprise. + Its continuing mission: to explore strange new worlds, to seek out new + life and new civilizations, to boldly go where no one has gone before. +\begin_inset Foot +status open + +\begin_layout Plain Layout +Nemeck, Larry (2003). + Star Trek: The Next Generation Companion. + Pocket Books. + ISBN 0-7434-5798-6. +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Note that you'll need the preamble code used in this example to make footnotes + appear. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Education and Training +\end_layout + +\begin_layout TitleLevel +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +June 2001–August 2005 +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +Undertaker +\end_layout + +\end_inset + +ISCED-11: 7 +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Title Level +\series default +: Like Title Item, including the possibility to specify, for instance, ISCED-11 + levels. +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes eld +\end_inset + +Vertical Space +\begin_inset Quotes erd +\end_inset + + for manual, vertical formatting. +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes eld +\end_inset + +Summary +\begin_inset Quotes erd +\end_inset + + represents the text in the left column. +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes eld +\end_inset + +Text (right side) +\begin_inset Quotes erd +\end_inset + + represents the text in the right column. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Item +\begin_inset Flex Highlight +status open + +\begin_layout Plain Layout +Fisher +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Example of a +\begin_inset Quotes eld +\end_inset + +Highlight +\begin_inset Quotes grd +\end_inset + +: +\family sans +Edit\SpecialChar menuseparator +Text Style\SpecialChar menuseparator +Highlight +\end_layout + +\end_inset + + Family, United States of America. +\end_layout + +\begin_layout Standard +\begin_inset Flex ItemInset +status open + +\begin_layout EcvItemize +Six +\end_layout + +\begin_layout EcvItemize +Feet +\end_layout + +\begin_layout EcvItemize +Under +\end_layout + +\end_inset + + +\end_layout + +\begin_layout TitleLevel +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +October 2006–September 2013 +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +Forensic Practitioner +\end_layout + +\end_inset + +ISCED-11: 6 +\end_layout + +\begin_layout Item +Miami Metro PD, United States of America. +\end_layout + +\begin_layout Standard +\begin_inset Flex ItemInset +status open + +\begin_layout EcvItemize +Blood Spatter Analyst +\end_layout + +\begin_layout EcvItemize +Doughnuts! +\end_layout + +\begin_layout EcvItemize +Superior: Maria LaGuerta (until 2012) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Newpage pagebreak +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Feel free to remove this page break. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Personal skills +\end_layout + +\begin_layout MotherTongue +German +\end_layout + +\begin_layout LangHeader +\begin_inset Note Note +status open + +\begin_layout Plain Layout +i.e. + left column + table header +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Language +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +English +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +C2 +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +C2 +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +B2 +\end_layout + +\end_inset + + +\begin_inset Argument 5 +status open + +\begin_layout Plain Layout +C1 +\end_layout + +\end_inset + +B2 +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Language: +\end_layout + +\begin_layout Itemize +Understanding/Listening +\end_layout + +\begin_layout Itemize +Understanding/Reading +\end_layout + +\begin_layout Itemize +Speaking/Spoken Interaction +\end_layout + +\begin_layout Itemize +Speaking/Spoken production +\end_layout + +\begin_layout Itemize +Writing +\end_layout + +\begin_layout Plain Layout +Levels: A1/A2: Basic user - B1/B2: Independent user - C1/C2: Proficient + user +\end_layout + +\end_inset + + +\end_layout + +\begin_layout LastLanguage +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Latein +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +A1 +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +A2 +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +- +\end_layout + +\end_inset + + +\begin_inset Argument 5 +status open + +\begin_layout Plain Layout +- +\end_layout + +\end_inset + +A1 +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The last language in the table, as above. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout LangFooter +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Short CEF Definition +\end_layout + +\end_inset + + +\end_layout + +\begin_layout BlueItem +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Driving license +\end_layout + +\end_inset + +B +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Blue Item +\series default +: Like Item, blue left column appearance. +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes eld +\end_inset + +Vertical Space +\begin_inset Quotes erd +\end_inset + + for manual, vertical formatting. +\end_layout + +\begin_layout Itemize +Optional argument +\begin_inset Quotes eld +\end_inset + +Summary +\begin_inset Quotes erd +\end_inset + + represents the text in the left column. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout BlueItem +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Other skills +\end_layout + +\end_inset + +Traveling \SpecialChar ldots + +\end_layout + +\begin_layout BlueItem +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +aaa +\end_layout + +\end_inset + +bbbb +\end_layout + +\begin_layout BlueItem +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +ccc +\end_layout + +\end_inset + +dddd +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Curricula_Vitae/Europe_CV.lyx b/lib/examples/Curricula_Vitae/Europe_CV.lyx new file mode 100644 index 0000000000..ed5b9284b7 --- /dev/null +++ b/lib/examples/Curricula_Vitae/Europe_CV.lyx @@ -0,0 +1,1034 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass europecv +\begin_preamble +% to handle the picture +% only load the package of not already loaded +\@ifundefined{rotatebox}{\usepackage{graphicx}}{} +\end_preamble +\options nologo +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding utf8x +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command bibtex +\index_command default +\paperfontsize 10 +\spacing single +\use_hyperref false +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\leftmargin 2cm +\topmargin 2cm +\rightmargin 2cm +\bottommargin 3cm +\secnumdepth 1 +\tocdepth 1 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Name +Testmann, Paul +\end_layout + +\begin_layout FooterName +Paul Testmann +\end_layout + +\begin_layout Nationality +Swiss +\end_layout + +\begin_layout Birthday +June 23, 1962 +\end_layout + +\begin_layout Address +Teststreet +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +newline +\end_layout + +\end_inset + +03333 Nicecity +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +newline +\end_layout + +\end_inset + +Switzerland +\end_layout + +\begin_layout Email +testman@testman.ch +\end_layout + +\begin_layout Telephone +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout ++43(0)777 7777 +\end_layout + +\end_inset + ++43(0)999 9999 +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The mobile number is optional. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Gender +Male +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Fax +Fax number +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout BeforePicture +\begin_inset space \hspace*{} +\length 6cm +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +optional, alignment and position of the picture or text, in this case the + picture is shifted 6 +\begin_inset space \thinspace{} +\end_inset + +cm to the right +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Picture +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +height=3cm +\end_layout + +\end_inset + +CV-image +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The name of the image file. + The optional size is in this case the height the photo is resized to. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout AfterPicture +\begin_inset Flex VerticalSpace +status open + +\begin_layout Plain Layout +-2cm +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +optional, in this case the following material is shifted 2 +\begin_inset space \thinspace{} +\end_inset + +cm to the picture +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Page +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +thepage +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +optional, redefines what is printed in the footer, in this case only the + page number +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The europecv-class offers lots of customization possibilities; to find out + more, look at its documentation: +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://ctan.org/tex-archive/macros/latex/contrib/europecv/europecv.pdf +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Begin +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Keep entries with green labels empty! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout PersonalInfo +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Inserts the personal data. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Education +\end_layout + +\begin_layout Item +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +2003–2006 +\end_layout + +\end_inset + +Master of Economics, Institution, City, Country, Description +\end_layout + +\begin_layout Item +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +2001–2003 +\end_layout + +\end_inset + +Bachelor of Economics, Institution, City, Country, Description +\end_layout + +\begin_layout Section +Master Thesis +\end_layout + +\begin_layout BulletedItem +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Title +\end_layout + +\end_inset + + +\emph on +Title of the thesis +\end_layout + +\begin_layout BulletedItem +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Supervisors +\end_layout + +\end_inset + +Names of supervisors +\end_layout + +\begin_layout BulletedItem +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Description +\end_layout + +\end_inset + + +\size small +Description text +\end_layout + +\begin_layout Section +Experience +\end_layout + +\begin_layout Item +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +2006–current +\end_layout + +\end_inset + +Maintainer of OpenSource projects +\end_layout + +\begin_layout Item +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +2005–2006 +\end_layout + +\end_inset + +Employer, Corp. + name, City, Country +\end_layout + +\begin_layout Section +Languages +\end_layout + +\begin_layout MotherTongue +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +10pt +\end_layout + +\end_inset + +French +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The optional parameter is the vertical height behind the item; negative + values are allowed. + It is available for every kind of entries. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout LangHeader +( +\begin_inset Formula $\star$ +\end_inset + +) +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Optional, inserts the language level explanation and sets the symbol for + the reference footnote. + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Language +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +German +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ecvBTwo +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ecvCOne +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Argument 5 +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ecvATwo +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Argument 6 +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ecvATwo +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ecvBOne +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The last info is the level how good you think you can write. +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The language level codes can be found in the documentation of the package + europecv. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout LastLanguage +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Italian +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ecvATwo +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ecvBOne +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Argument 5 +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ecvAOne +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Argument 6 +status open + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ecvAOne +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ecvAOne +\end_layout + +\end_inset + + +\end_layout + +\begin_layout LangFooter +( +\begin_inset Formula $\star$ +\end_inset + +) +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The footer and header should be the same character. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Computer skills +\end_layout + +\begin_layout Item +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout + +2.5ex +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +OS +\end_layout + +\end_inset + +Linux, Unix, Windows, administration, Apache, Mailman +\end_layout + +\begin_layout Item +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Programming +\end_layout + +\end_inset + + +\shape smallcaps +Java +\shape default +, C/C++, scripting, PHP, Shell, Ruby +\end_layout + +\begin_layout Item +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout + +2.5ex +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Scientific +\end_layout + +\end_inset + +Matlab, Autocad, Abaqus, typography, \SpecialChar LaTeX +, Con\SpecialChar TeX +t, Scribus, QuarkXPress +\end_layout + +\begin_layout Item +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Web +\begin_inset space ~ +\end_inset + +design +\end_layout + +\end_inset + +XHTML, CSS, AJAX, database, MySQL, PostgreSQL +\end_layout + +\begin_layout Section +Interests +\end_layout + +\begin_layout Item +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout + +2.5ex +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Adventure +\begin_inset space ~ +\end_inset + +sports +\end_layout + +\end_inset + + +\size small +I like practicing adventure sports like skiing, rock climbing and scuba + diving, and have been a boy scout for five years. +\end_layout + +\begin_layout Item +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout + +2.5ex +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Travelling +\end_layout + +\end_inset + + +\size small +I love travelling around the world. +\end_layout + +\begin_layout Section +Publications +\end_layout + +\begin_layout Item +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +References +\end_layout + +\end_inset + +[1] Helmut Kopka and Patrick W. + Daly: +\emph on +A Guide to \SpecialChar LaTeX + Fourth Edition. + +\emph default + Addison-Wesley, 2003 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +newline% +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +newline% +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + +[2] Leslie Lamport: +\emph on +\SpecialChar LaTeX +: A Document Preparation System. + +\emph default + Addison-Wesley, second edition, 1994 +\end_layout + +\begin_layout Section +Publications +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +You can also use Bib\SpecialChar TeX + references: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Item +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +References +\end_layout + +\end_inset + + +\begin_inset VSpace -1cm* +\end_inset + + +\begin_inset CommandInset bibtex +LatexCommand bibtex +btprint "btPrintAll" +bibfiles "biblioExample" +options "plain" + +\end_inset + + +\end_layout + +\begin_layout End + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Curricula_Vitae/Modern_CV.lyx b/lib/examples/Curricula_Vitae/Modern_CV.lyx new file mode 100644 index 0000000000..3541d30384 --- /dev/null +++ b/lib/examples/Curricula_Vitae/Modern_CV.lyx @@ -0,0 +1,1653 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass moderncv +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command bibtex +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref false +\papersize a4paper +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\leftmargin 2.5cm +\rightmargin 2.5cm +\secnumdepth 0 +\tocdepth -1 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The moderncv class offers lots of customization possibilities; for more + information look at the documentation of the \SpecialChar LaTeX +-package +\series bold +moderncv +\series default +: +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://ctan.org/tex-archive/macros/latex/contrib/moderncv/examples/template.tex +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout CVStyle +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +left +\end_layout + +\end_inset + +options can only be activated if moderncv 2.0 is installed +\end_layout + +\end_inset + +casual +\begin_inset Note Note +status open + +\begin_layout Plain Layout +required, possible styles are 'casual' (default), 'classic', 'fancy' ('fancy' + requires moderncv 2.0), 'oldstyle' and 'banking' +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +To be able to use style options you need at least moderncv version 2.0 installed. + A list of possible options can be found here: +\begin_inset Newline newline +\end_inset + +http://article.gmane.org/gmane.comp.tex.ctan.announce/11898 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout CVColor +blue +\begin_inset Note Note +status open + +\begin_layout Plain Layout +required, possible colors are 'blue' (default), 'orange', 'green', 'red', + 'purple', 'burgundy' ('burgundy' requires moderncv 2.0), 'grey' and 'black' +\end_layout + +\end_inset + + +\end_layout + +\begin_layout CVIcons +awesome +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +optional, must be inserted after the +\family sans +CV Style +\family default +, possible icon sets are 'awesome' (default for style 'casual' and 'banking'), + 'marvosym' (default for the other styles) and 'letters' (default for style + 'oldstyle') +\end_layout + +\end_inset + + +\end_layout + +\begin_layout CVColumnWidth +3cm +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +optional, the width of the column with the dates, default is '3cm' +\end_layout + +\end_inset + + +\end_layout + +\begin_layout PDF Page Mode +UseOutlines +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +optional, controls how the PDF will be shown; use either 'UseNone' (only + the document), 'UseThumbs' (show thumbnails), 'UseOutlines' (show bookmarks) + or 'FullScreen' (open in fullscreen mode). +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +General hints: +\end_layout + +\begin_layout Itemize +To suppress the page numbering, enable the option +\family sans +Suppress default date on front page +\family default + in the document settings under +\family sans +Document Class. +\end_layout + +\begin_layout Itemize +The default page margins are left and right 3.5 +\begin_inset space \thinspace{} +\end_inset + +cm. + To get smaller ones, use the +\family sans +Page Margins +\family default + section of the document settings like it is done in this example. +\end_layout + +\begin_layout Itemize +To get for example sans-serif fonts for the whole CV, set them as +\family sans +Default Family +\family default + in the document settings under +\family sans +Fonts. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Name +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Paul +\end_layout + +\end_inset + +Testman +\end_layout + +\begin_layout Title +Curriculum Vitae +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +optional +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following personal entries are optional. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Address +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Teststreet +\begin_inset space ~ +\end_inset + +17 +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +03333 +\begin_inset space ~ +\end_inset + +Nicecity +\end_layout + +\end_inset + +Switzerland +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +the optional lines are only important for the styles +\emph on +classic +\emph default + and +\emph on +oldstyle +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Phone +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +mobile +\end_layout + +\end_inset + ++43(0)999 888 +\end_layout + +\begin_layout Phone ++43(0)999 9999 +\end_layout + +\begin_layout Phone +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +fax +\end_layout + +\end_inset + ++43(0)999 7777 +\end_layout + +\begin_layout Email +testman@testman.xx +\end_layout + +\begin_layout Homepage +www.johndoe.com +\end_layout + +\begin_layout Social +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +twitter +\end_layout + +\end_inset + +ptestman +\begin_inset Note Note +status open + +\begin_layout Plain Layout +currently only +\series bold +twitter +\series default +, +\series bold +linkedin +\series default + or +\series bold +github +\series default + is supported as name +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Social +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +linkedin +\end_layout + +\end_inset + +ptestman +\end_layout + +\begin_layout Social +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +github +\end_layout + +\end_inset + +ptestman +\end_layout + +\begin_layout ExtraInfo +www.lyx.org +\end_layout + +\begin_layout Photo +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +64pt +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout + +0.4pt +\end_layout + +\end_inset + +CV-image +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The name of the image file. + The first argument is the height the photo is resized to, the second one + the thickness of the surrounding frame +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Quote +“You only live twice.“ (an optional quote) +\end_layout + +\begin_layout MakeCVtitle +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +outputs the title part; optional +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Keep entries with green labels empty! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Education +\end_layout + +\begin_layout Entry +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +2003–2006 +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Master of Economics +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +Institution +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +City +\end_layout + +\end_inset + + +\begin_inset Argument 5 +status open + +\begin_layout Plain Layout +Country +\end_layout + +\end_inset + +Description +\end_layout + +\begin_layout Entry +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +2001–2003 +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Bachelor of Economics +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +Institution +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +City +\end_layout + +\end_inset + + +\begin_inset Argument 5 +status open + +\begin_layout Plain Layout +Country +\end_layout + +\end_inset + +Description +\end_layout + +\begin_layout Section +Master Thesis +\end_layout + +\begin_layout Item +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Title +\end_layout + +\end_inset + + +\emph on +Title of the thesis +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.5cm +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +add negative or positive space as you like +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Item +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Supervisors +\end_layout + +\end_inset + +Names of supervisors +\end_layout + +\begin_layout Item +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Description +\end_layout + +\end_inset + + +\size small +Description text +\end_layout + +\begin_layout Section +Experience +\end_layout + +\begin_layout Entry +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +2006– +\begin_inset Newline newline +\end_inset + +current +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Maintainer of Open Source projects +\end_layout + +\end_inset + +Maintainer of the xxx documentation +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + If you use the +\emph on +banking +\emph default + or the +\emph on +fancy +\emph default + theme, no linebreaks are allowed in entries. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Entry +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +2005–2006 +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Employer +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +Corp. + name +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +City +\end_layout + +\end_inset + + +\begin_inset Argument 5 +status open + +\begin_layout Plain Layout +Country +\end_layout + +\end_inset + +Description +\end_layout + +\begin_layout Section +Languages +\end_layout + +\begin_layout ItemWithComment +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +French +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Native +\end_layout + +\end_inset + + +\end_layout + +\begin_layout ItemWithComment +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Dutch +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Near-native +\end_layout + +\end_inset + +Primary education degree obtained in a Dutch college +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\begin_layout Section +Computer skills +\end_layout + +\begin_layout DoubleItem +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +OS +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Linux, Unix, Windows +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +Administration +\end_layout + +\end_inset + +Apache, Mailman +\end_layout + +\begin_layout DoubleItem +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Programming +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout + +\shape smallcaps +Java +\shape default +, C/C++ +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +Scripting +\end_layout + +\end_inset + +PHP, Shell, Ruby +\end_layout + +\begin_layout DoubleItem +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Scientific +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Matlab, AutoCAD, Abaqus +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +Typography +\end_layout + +\end_inset + +\SpecialChar LaTeX +, Con\SpecialChar TeX +t, Scribus, QuarkXPress +\end_layout + +\begin_layout DoubleItem +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Web +\begin_inset space ~ +\end_inset + +design +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +XHTML, CSS, AJAX +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +Database +\end_layout + +\end_inset + +MySQL, PostgreSQL +\end_layout + +\begin_layout Section +Interests +\end_layout + +\begin_layout Item +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Adventure +\begin_inset Newline newline +\end_inset + +sports +\end_layout + +\end_inset + +I like practicing adventure sports like skiing, rock climbing and scuba + diving, and have been a boy scout for five years. +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Item +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Travelling +\end_layout + +\end_inset + +I love travelling around the world. +\end_layout + +\begin_layout Section +Section with a list +\end_layout + +\begin_layout ListItem +Single item. +\end_layout + +\begin_layout ListItem +Another single item. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{itemize} +\backslash +item +\end_layout + +\end_inset + +Sub-item. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{itemize} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +listitemsymbol}{-~} +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional, changes the symbol for lists +\end_layout + +\end_inset + + +\end_layout + +\begin_layout DoubleListItem +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Item 1 +\end_layout + +\end_inset + +Item 3 +\end_layout + +\begin_layout DoubleListItem +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Item 2 +\end_layout + +\end_inset + +Item 4, see +\begin_inset CommandInset citation +LatexCommand cite +key "Jobs95" +literal "true" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +listitemsymbol}{ +\backslash +labelitemi~} +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional, resets the symbol for lists to the default one +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +subsection +\end_layout + +\begin_layout ListItem +subsection item +\end_layout + +\begin_layout Section +Section with a column +\end_layout + +\begin_layout Columns +\begin_inset Flex Column +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +0.5 +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +the optional width is a number in the range 0 - 1 and specifies the fraction + of the line length; if no width is given all available width is used for + the column +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +header 1 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +Everything can be the content +\end_layout + +\begin_layout Plain Layout +\noindent +\begin_inset Tabular + + + + + +\begin_inset Text + +\begin_layout Plain Layout +even a table +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + paragraph alignments are not allowed, so e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +centering the table is not possible +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Flex Column +status open + +\begin_layout Plain Layout +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +header 2 +\end_layout + +\end_inset + +the second column +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Section with your own content +\end_layout + +\begin_layout Standard +Your content here, inside an unformatted environment. + You can use here e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +mathematics +\begin_inset Formula +\[ +E=mc^{2} +\] + +\end_inset + +put some table or figure, etc. +\end_layout + +\begin_layout EmptySection +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Creates a section without a section heading. +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Keep entries with green labels empty! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Item +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Now +\end_layout + +\end_inset + +Back to moderncv layout, without making a new section +\end_layout + +\begin_layout Standard +You can use bibitems: +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +To redefine the heading string ( +\begin_inset Quotes eld +\end_inset + +Publications +\begin_inset Quotes erd +\end_inset + +), uncomment this: +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +% +\backslash +renewcommand{ +\backslash +refname}{Articles} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +bibliographyitemlabel}{[ +\backslash +arabic{enumiv}]} +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +optional, numbers the bibliography items +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "latexguide" +literal "true" + +\end_inset + +Helmut Kopka and Patrick W. + Daly: +\emph on +A Guide to \SpecialChar LaTeX + Fourth Edition. + +\emph default + Addison-Wesley, 2003 +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "latexbook" +literal "true" + +\end_inset + +Leslie Lamport: +\emph on +\SpecialChar LaTeX +: A Document Preparation System. + +\emph default + Addison-Wesley, second edition, 1994 +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + +or Bib\SpecialChar TeX + references: +\end_layout + +\begin_layout Standard +\begin_inset CommandInset bibtex +LatexCommand bibtex +btprint "btPrintAll" +bibfiles "biblioExample" +options "plain" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Newpage clearpage +\end_inset + + +\end_layout + +\begin_layout Recipient +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Company Recruitment team +\end_layout + +\end_inset + +Company, Inc. +\begin_inset Newline newline +\end_inset + +123 somestreet +\begin_inset Newline newline +\end_inset + +some city +\end_layout + +\begin_layout Date +January 01, 1984 +\end_layout + +\begin_layout Opening +Dear Sir or Madam, +\end_layout + +\begin_layout Closing +Yours faithfully, +\end_layout + +\begin_layout Enclosing +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Attached +\end_layout + +\end_inset + +curriculum vitae +\end_layout + +\begin_layout MakeLetterTitle +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +generates the letter title; must be behind the letter closing and the enclosing +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Keep entries with green labels empty! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. + Vivamus at neque arcu, sed tempor quam. + Curabitur pharetra tincidunt tincidunt. + Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. + Duis tristique justo vel massa fermentum accumsan. + Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. + Donec scelerisque lobortis ipsum eu vestibulum. + Pellentesque vel massa at felis accumsan rhoncus. +\end_layout + +\begin_layout Standard +Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque + orci, cursus tempor odio nisl euismod augue. + Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. + Mauris a accumsan ligula. + Class aptent taciti sociosqu ad litora torquent per conubia nostra, per + inceptos himenaeos. + Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. + Phasellus et est urna, ut auctor erat. + Sed tincidunt odio id odio aliquam mattis. + Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. + Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, + vitae aliquet lectus orci nec velit. + Vivamus dapibus varius blandit. +\end_layout + +\begin_layout Standard +Duis sit amet magna ante, at sodales diam. + Aenean consectetur porta risus et sagittis. + Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, + ut fermentum nunc metus a ante. + Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. + Nunc sed orci lectus. + Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis. +\end_layout + +\begin_layout Standard +Albert Einstein discovered that +\begin_inset Formula $E=mc^{2}$ +\end_inset + + in 1905. +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +e=\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^{n} +\] + +\end_inset + + +\end_layout + +\begin_layout MakeLetterClosing +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Keep entries with green labels empty! +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Curricula_Vitae/Simple_CV.lyx b/lib/examples/Curricula_Vitae/Simple_CV.lyx new file mode 100644 index 0000000000..cd630f9ce7 --- /dev/null +++ b/lib/examples/Curricula_Vitae/Simple_CV.lyx @@ -0,0 +1,241 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass simplecv +\begin_preamble +%% You can modify the fonts used in the document be using the +%% following macros. They take one parameter which is the font +%% changing command. +%% \headerfont: the font used in both headers. +%% Defaults to sans serif. +%% \titlefont: the font used for the title. +%% Defaults to \LARGE sans-serif semi bold condensed. +%% \sectionfont: the font used by \section when beginning a new topic. +%% Defaults to sans-serif semi bold condensed. +%% \itemfont: the font used in descriptions of items. +%% Defaults to sans-serif slanted. +% to make your name even bigger, uncomment the following line: +% \titlefont{\Huge} +%% +%% You can modify the following parameters using \renewcommand: +%% \topicmargin: the left margin inside topics. +%% Defaults to 20% of the column width (0.20\columnwidth). +% To get more room for left column of Topic layouts, uncomment following line: +% \renewcommand{\topicmargin}{0.3\columnwidth} +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding default +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 0 +\tocdepth 0 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Left Header +123 Hamlet Street +\begin_inset Newline newline +\end_inset + +Stratford-upon-Avon +\end_layout + +\begin_layout Right Header +TEL: 888-PUCK +\begin_inset Newline newline +\end_inset + + +\family typewriter +\size small +bill@globe.org +\end_layout + +\begin_layout Title +William Shakespeare +\end_layout + +\begin_layout Standard +Some people put a summary here. + Note: there are many \SpecialChar LaTeX + variables you can set in the preamble to change the + look of the CV. + Look there (choose +\family sans +Document +\family default +\SpecialChar menuseparator + +\family sans +Settings... + +\family default + ) for examples. +\end_layout + +\begin_layout Section +Work Experience +\end_layout + +\begin_layout Topic +\labelwidthstring MMMMM +1593–1609 Wrote and produced plays for the Queen, and then for the King. + He really liked them a lot, but they reminded him of plays by this guy, + the Earl of Oxford. +\end_layout + +\begin_layout Topic +\labelwidthstring MMMMM +\begin_inset space ~ +\end_inset + + If a topic does not have a subtitle, you have to put a protected space + there. + This is a shortcoming of \SpecialChar LyX +. +\end_layout + +\begin_deeper +\begin_layout Standard +But you can also use the paragraph depth setting, depending on what you + want to do. +\end_layout + +\end_deeper +\begin_layout Section +Education +\end_layout + +\begin_layout Topic +\labelwidthstring MMMMM +1577–78 My Dad taught me stuff. +\end_layout + +\begin_layout Topic +\labelwidthstring MMMMM +April +\begin_inset space ~ +\end_inset + +to +\begin_inset space ~ +\end_inset + +May +\begin_inset space ~ +\end_inset + +1581 Tried high school. + Hated my English teacher. + [Two things here: first, note (on paper) how a linebreak is inserted if + your subtitle is too long; second, note that you have to use unbreakable + spaces to embed spaces in the subtitle.] +\end_layout + +\begin_layout Section +Publications +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "firstref" +literal "true" + +\end_inset + +First Folio. + Me. + 1623. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "secondref" +literal "true" + +\end_inset + +These references could have been entered via Bib\SpecialChar TeX +\SpecialChar ldots + In any case, here I can + cite my work of +\begin_inset CommandInset citation +LatexCommand cite +key "firstref" +literal "true" + +\end_inset + +. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Example_(LyXified).lyx b/lib/examples/Example_(LyXified).lyx new file mode 100644 index 0000000000..2d6b2cf252 --- /dev/null +++ b/lib/examples/Example_(LyXified).lyx @@ -0,0 +1,410 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle plain +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +THIS IS THE TITLE OF THE DOCUMENT +\end_layout + +\begin_layout Author +by Fee \SpecialChar LyX + +\end_layout + +\begin_layout Date +June 12, 1972 +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Section +Basic Philosophy +\end_layout + +\begin_layout Standard +The basic philosophy of \SpecialChar LyX + is that you should worry about the content of what + you're writing and not the form. +\end_layout + +\begin_layout Subsection +How \SpecialChar LyX + does it +\end_layout + +\begin_layout Standard +\SpecialChar LyX + uses \SpecialChar LaTeX +, a document preparation system designed by Leslie Lamport in 1985. + It, in turn, was built up from a typesetting language called \SpecialChar TeX +, created + by Donald Knuth in 1984. + \SpecialChar LaTeX + is designed around a philosophy similar to that of \SpecialChar LyX +. + Leslie Lamport once said (see reference +\begin_inset CommandInset citation +LatexCommand cite +key "lamport" +literal "true" + +\end_inset + +): +\end_layout + +\begin_layout Quote +The function of typographic design is to help the reader understand the + author's ideas. + For a document to be easy to read, its visual structure must reflect its + logical structure. + Quotations and computer programs, being logically distinct structural elements, + should be distinguished visually from one another.... + Since \SpecialChar LaTeX + can't understand your prose, you must explicitly indicate the logical + structure by typing special commands.... + As you are writing your document, you should be concerned with its logical + structure, not its visual appearance. +\end_layout + +\begin_layout Subsection +Why \SpecialChar LyX + is better +\begin_inset CommandInset label +LatexCommand label +name "subsec:Why-LyX-is" + +\end_inset + + +\end_layout + +\begin_layout Standard +\SpecialChar LyX + can be useful to more people than \SpecialChar LaTeX +. + It's considerably easier to learn, because you don't need to learn \SpecialChar LaTeX + (which + is practically a programming language). + \SpecialChar LyX + is basically like other +\begin_inset Quotes eld +\end_inset + +What you see is what you get +\begin_inset Quotes erd +\end_inset + + word processors, except that \SpecialChar LyX + is +\begin_inset Quotes eld +\end_inset + +What you see is what you mean +\begin_inset Quotes erd +\end_inset + +. + In this way, it combines the ease of use of word processors with the power + of \SpecialChar LaTeX +. + This is a Good Thing. + Also, the file format is platform independent. + Best of all, it's FREE! +\end_layout + +\begin_layout Section +Features of \SpecialChar LyX + +\end_layout + +\begin_layout Standard +\SpecialChar LyX + has many features which make writing documents easier. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +After all, why else would you want to use it? +\end_layout + +\end_inset + + I'm +\shape italic +very excited +\shape default + to talk about them. + Here's a list of just a few. +\end_layout + +\begin_layout Itemize +\SpecialChar LyX + worries about margins, and footnote numbering for you +\end_layout + +\begin_layout Itemize +\SpecialChar LyX + makes it simple to write and edit mathematical formulae +\end_layout + +\begin_layout Standard +For a more philosophical discussion of why \SpecialChar LyX + is better than lots of other + word processors, see Section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Why-LyX-is" + +\end_inset + +, which can be found on page +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand pageref +reference "subsec:Why-LyX-is" + +\end_inset + +. +\end_layout + +\begin_layout Section +Lame attempts to use other \SpecialChar LyX + stuff +\end_layout + +\begin_layout Standard +I wrote a program the other day. + It looked like this. +\end_layout + +\begin_layout LyX-Code +5 REMARK MY AWESOME PROGRAM +\end_layout + +\begin_layout LyX-Code +10 PRINT +\begin_inset Quotes eld +\end_inset + +I'M AWESOME! +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout LyX-Code +20 GOTO 10 +\end_layout + +\begin_layout Standard +After all that scientific thinking, I started feeling more artistic, so + I wrote this haiku +\end_layout + +\begin_layout Verse +\SpecialChar LyX + is really great +\begin_inset Newline newline +\end_inset + +Typesetting word processor +\begin_inset Newline newline +\end_inset + + It saves so much time +\end_layout + +\begin_layout Section +Math Stuff +\end_layout + +\begin_layout Standard +My favorite equation is the solution to a quadratic equation. + If +\begin_inset Formula $ax^{2}+bx+c=0$ +\end_inset + + (eq.1), then +\begin_inset Formula $x=\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}$ +\end_inset + + (eq. + 2). +\end_layout + +\begin_layout Standard +Another favorite equation is the basis of calculus: +\begin_inset Formula $f'(x)\equiv\lim_{\Delta x\rightarrow0}\frac{f(x+\Delta x)-f(x)}{\Delta x}$ +\end_inset + + (eq. + 3). +\end_layout + +\begin_layout Section +Notes +\end_layout + +\begin_layout Standard +A couple notes about \SpecialChar LyX +ifiying this file: +\end_layout + +\begin_layout Itemize +I was able to remove the lines made with dashes. + They were there purely to separate the title and references from the rest + of the document. + \SpecialChar LyX + (\SpecialChar LaTeX +) knows enough to separate these parts of the document with space. +\end_layout + +\begin_layout Itemize +I didn't bother putting the math equations in display mode. + Also, I didn't use \SpecialChar LyX +' automatic equation numbering, because it's not described + in the +\emph on +Tutorial +\emph default +. +\end_layout + +\begin_layout Itemize +I didn't have to type the word +\begin_inset Quotes eld +\end_inset + +References +\begin_inset Quotes erd +\end_inset + + below. + \SpecialChar LyX + automatically writes it (or the word +\begin_inset Quotes eld +\end_inset + +Bibliography, +\begin_inset Quotes erd +\end_inset + + depending on the textclass) when you select +\family sans +Bibliography +\family default + style. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "lamport" +literal "true" + +\end_inset + +Lamport, Leslie. + +\emph on +\SpecialChar LaTeX +: A Document Preparation System. + +\emph default + Addison-Wesley, Reading, Massachusetts, second edition, 1994. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Example_(raw).lyx b/lib/examples/Example_(raw).lyx new file mode 100644 index 0000000000..710a1e7415 --- /dev/null +++ b/lib/examples/Example_(raw).lyx @@ -0,0 +1,487 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle plain +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +THIS IS THE TITLE OF THE DOCUMENT +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: the title should look more like a title +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +by Fee \SpecialChar LyX + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: Fee is the AUTHOR +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +June 12, 1972 +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: this is a DATE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Table of Contents +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: It would be nice if we didn't have to type the Table +\end_layout + +\begin_layout Plain Layout +of Contents explicitly +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +1. + Basic Philosophy..................1 +\end_layout + +\begin_layout Standard +1.1 How \SpecialChar LyX + Does It...............1 +\end_layout + +\begin_layout Standard +1.2 Why \SpecialChar LyX + is Better...............1 +\end_layout + +\begin_layout Standard +2. + Features of \SpecialChar LyX + +\end_layout + +\begin_layout Standard +3. + Lame Attempts to use more \SpecialChar LyX + stuff +\end_layout + +\begin_layout Standard +4. + Math Stuff +\end_layout + +\begin_layout Standard +————————————————— +\end_layout + +\begin_layout Standard +1. + Basic Philosophy +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: Section titles should probably stand out more +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The basic philosophy of \SpecialChar LyX + is that you should worry about the content of what + you're writing and not the form. +\end_layout + +\begin_layout Standard +1.1 How \SpecialChar LyX + does it +\end_layout + +\begin_layout Standard +\SpecialChar LyX + uses \SpecialChar LaTeX +, a document preparation system designed by Leslie Lamport in 1985. + It, in turn, was built up from a typesetting language called \SpecialChar TeX +, created + by Donald Knuth in 1984. + \SpecialChar LaTeX + is designed around a philosophy similar to that of \SpecialChar LyX +. + Leslie Lamport once said (see reference [1]) +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: Probably, this CITATION REFERENCE shouldn't be +\end_layout + +\begin_layout Plain Layout +"hard-coded". + What if we make Lamport's book the second +\end_layout + +\begin_layout Plain Layout +item in the bibliography? +\end_layout + +\end_inset + +: +\end_layout + +\begin_layout Standard +\begin_inset Quotes eld +\end_inset + +The function of typographic design is to help the reader understand the + author's ideas. + For a document to be easy to read, its visual structure must reflect its + logical structure. + Quotations and computer programs, being logically distinct structural elements, + should be distinguished visually from one another.... + Since \SpecialChar LaTeX + can't understand your prose, you must explicitly indicate the logical + structure by typing special commands.... + As you are writing your document, you should be concerned with its logical + structure, not its visual appearance. +\begin_inset Quotes erd +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: This is a QUOTE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +1.2 Why \SpecialChar LyX + is better +\end_layout + +\begin_layout Standard +\SpecialChar LyX + can be useful to more people than \SpecialChar LaTeX +. + It's considerably easier to learn, because you don't need to learn \SpecialChar LaTeX + (which + is practically a programming language). + \SpecialChar LyX + is basically like other +\begin_inset Quotes eld +\end_inset + +What you see is what you get +\begin_inset Quotes erd +\end_inset + + word processors, except that \SpecialChar LyX + is +\begin_inset Quotes eld +\end_inset + +What you see is what you mean +\begin_inset Quotes erd +\end_inset + +. + In this way, it combines the ease of use of word processors with the power + of \SpecialChar LaTeX +. + This is a Good Thing. + Also, the file format is platform independent. + Best of all, it's FREE! +\end_layout + +\begin_layout Standard +2. + Features of \SpecialChar LyX + +\end_layout + +\begin_layout Standard +\SpecialChar LyX + has many features which make writing documents easier. + (After all, why else would you want to use it? +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: This parenthetical statement would look better in a footnote +\end_layout + +\end_inset + +) I'm VERY EXCITED +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: Emphasize! +\end_layout + +\end_inset + + to talk about them. + Here's a list of just a few. +\end_layout + +\begin_layout Standard +* \SpecialChar LyX + worries about margins, and footnote numbering for you +\end_layout + +\begin_layout Standard +* \SpecialChar LyX + makes it simple to write and edit mathematical formulae +\end_layout + +\begin_layout Standard +For a more philosophical discussion of why \SpecialChar LyX + is better than lots of other + word processors, see Section 1.2, which can be found on page 1. +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: Probably, these CROSS-REFERENCES shouldn't be +\end_layout + +\begin_layout Plain Layout +"hard-coded". + What if we change the section numbers? +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +3. + Lame attempts to use other \SpecialChar LyX + stuff +\end_layout + +\begin_layout Standard +I wrote a program the other day. + It looked like this. +\end_layout + +\begin_layout Standard +5 REMARK MY AWESOME PROGRAM +\end_layout + +\begin_layout Standard +10 PRINT +\begin_inset Quotes eld +\end_inset + +I'M AWESOME! +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Standard +20 GOTO 10 +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: This is computer CODE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +After all that scientific thinking, I started feeling more artistic, so + I wrote this haiku +\end_layout + +\begin_layout Standard +\SpecialChar LyX + is really great +\end_layout + +\begin_layout Standard +Typesetting word processor +\end_layout + +\begin_layout Standard +It saves so much time +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: It's not very good, but it is poetry, +\end_layout + +\begin_layout Plain Layout +otherwise known as VERSE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +4. + Math Stuff +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Hint: these math things should be printed in math mode! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +My favorite equation is the solution to a quadratic equation. + If ax^2+bx+c=0 (eq.1), then x= -b + or minus the square root of b^2-4ac + all divided by 2a (eq. + 2). +\end_layout + +\begin_layout Standard +Another favorite equation is the basis of calculus: f'(x) is defined as + the limit as deltax goes to zero of f(x+deltax) - f(x) divided by deltax + (eq. + 3). +\end_layout + +\begin_layout Standard +———————————————— +\end_layout + +\begin_layout Standard +REFERENCES +\end_layout + +\begin_layout Standard +[1] Lamport, Leslie. + \SpecialChar LaTeX +: A Document Preparation System. + Addison-Wesley, Reading, Massachusetts, second edition, 1994. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/External_Material/Gnuplot.lyx b/lib/examples/External_Material/Gnuplot.lyx new file mode 100644 index 0000000000..9045078e51 --- /dev/null +++ b/lib/examples/External_Material/Gnuplot.lyx @@ -0,0 +1,209 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +LyX gnuplot scripting example +\end_layout + +\begin_layout Standard +This is a sample LyX file showing a Graphics inset including a simple gnuplot + script, that is auto-converted when previewing on-screen and when formatting + for PDF or other output format. +\end_layout + +\begin_layout Standard +This can be inserted using the menu +\family sans +Insert\SpecialChar menuseparator +Graphics +\family default + then choosing a gnuplot script with either +\family typewriter +.gp +\family default + or +\family typewriter +.gnuplot +\family default + extension. + You should see a plot just below this text. +\end_layout + +\begin_layout Standard +\begin_inset Graphics + filename gnuplot-example.gp + +\end_inset + + +\end_layout + +\begin_layout Standard +If you don't see it, there are basically a few possible causes +\end_layout + +\begin_layout Enumerate +you don't have Gnuplot installed +\end_layout + +\begin_layout Enumerate +you have on-screen graphics display disabled; this can be checked/enabled + with menu +\family sans +Tools\SpecialChar menuseparator +Preferences, +\family default + pane +\family sans +Look & feel\SpecialChar menuseparator +Display, +\family default + then ensuring that the option +\family sans +Display graphics +\family default + is enabled +\end_layout + +\begin_layout Enumerate +you have +\family typewriter +needauth +\family default + converters completely disabled/forbidden (gnuplot is among this type of + converters, more information is available at +\begin_inset CommandInset href +LatexCommand href +target "https://www.lyx.org/trac/ticket/10481" +literal "false" + +\end_inset + +); these can be re-enabled from the menu +\family sans +Tools\SpecialChar menuseparator +Preferences, +\family default + pane +\family sans +File Handling\SpecialChar menuseparator +Converters\SpecialChar menuseparator +Security +\family default +, then ensuring that the option +\family sans +Forbid use of needauth converters +\family default + is unchecked +\end_layout + +\begin_layout Enumerate +even though you have +\family typewriter +needauth +\family default + converters enabled, you denied permission to run the Gnuplot script included + in this sample document when you first opened it, and you got a prompt + dialog on screen; in such case, close the document and open it again, then + answer +\begin_inset Quotes eld +\end_inset + +Run +\begin_inset Quotes erd +\end_inset + + in that prompt dialog +\end_layout + +\begin_layout Enumerate +if none of the above worked, please contact us on the +\begin_inset CommandInset href +LatexCommand href +name "lyx-devel@lyx.org" +target "lyx-devel@lyx.org" +type "mailto:" +literal "false" + +\end_inset + + mailing list for assistance +\end_layout + +\end_body +\end_document diff --git a/lib/examples/External_Material/Spreadsheet.lyx b/lib/examples/External_Material/Spreadsheet.lyx new file mode 100644 index 0000000000..8197ff605c --- /dev/null +++ b/lib/examples/External_Material/Spreadsheet.lyx @@ -0,0 +1,284 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize a4paper +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip bigskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Spreadsheets External Inset +\end_layout + +\begin_layout Author +Helge Hafting +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Standard +Test of spreadsheet external inset in \SpecialChar LyX +. + Spreadsheets (created with Gnumeric, LibreOffice, OpenOffice.org, or Excel) + gets converted to .tex with the +\family typewriter +ssconvert +\family default + program that is distributed together with Gnumeric. + They are then imported as longtables. + As the spreadsheet is +\begin_inset Quotes eld +\end_inset + +External material +\begin_inset Quotes erd +\end_inset + +, any changes to the spreadsheet will be reflected in \SpecialChar LyX +'s output too. + Thus, the \SpecialChar LyX + document is always up to date. +\end_layout + +\begin_layout Section +How to do it +\end_layout + +\begin_layout Enumerate +Make a spreadsheet. +\end_layout + +\begin_layout Enumerate +In \SpecialChar LyX + use the menu Insert\SpecialChar menuseparator +File\SpecialChar menuseparator +External Material. +\end_layout + +\begin_layout Enumerate +In the dialog, set template to +\family sans +GnumericSpreadsheet +\family default + and select your spreadsheet file. +\end_layout + +\begin_layout Section +Simple examples +\end_layout + +\begin_layout Standard +First, the file +\emph on +sheet1.gnumeric, +\emph default +a spreadsheet created with Gnumeric: +\end_layout + +\begin_layout Standard +\begin_inset External + template GnumericSpreadsheet + filename sheet1.gnumeric + +\end_inset + + +\end_layout + +\begin_layout Standard +Then +\emph on +sheet2.ods, +\emph default +which was made with LibreOffice: +\end_layout + +\begin_layout Standard +\begin_inset External + template GnumericSpreadsheet + filename sheet2.ods + +\end_inset + + +\end_layout + +\begin_layout Standard +Finally +\emph on +sheet3.xls +\emph default +which was made for Excel. +\end_layout + +\begin_layout Standard +\begin_inset External + template GnumericSpreadsheet + filename sheet3.xls + +\end_inset + + +\end_layout + +\begin_layout Section +Long spreadsheets +\end_layout + +\begin_layout Standard +A multi-page spreadsheet called +\emph on +longsheet.gnumeric +\emph default +. + Notice that page breaking works fine: +\end_layout + +\begin_layout Standard +\begin_inset External + template GnumericSpreadsheet + filename longsheet.gnumeric + +\end_inset + + +\end_layout + +\begin_layout Section +Necessary software +\end_layout + +\begin_layout Standard +\SpecialChar LyX + needs the converter program +\family typewriter +ssconvert +\family default + that is distributed with Gnumeric. + It is therefore necessary to install Gnumeric, even if other software is + used to create and edit the spreadsheets. +\end_layout + +\begin_layout Section +Limitations +\end_layout + +\begin_layout Standard +Spreadsheet inclusion have some limitations. + I don't know all of them, but have seen problem with this: +\end_layout + +\begin_layout Labeling +\labelwidthstring Wide~spreadsheets +\noindent +Wide +\begin_inset space ~ +\end_inset + +spreadsheets Unlike long spreadsheets, a spreadsheet wider than the margins + doesn't work well. + There is no attempt at breaking up such spreadsheets. +\end_layout + +\begin_layout Labeling +\labelwidthstring Wide~spreadsheets +\noindent +Some +\begin_inset space ~ +\end_inset + +formatting Some types of formatting doesn't work. + The red and green texts in the long spreadsheet are underlined. + The underlining doesn't show, but the texts is otherwise printed correctly. +\end_layout + +\begin_layout Standard +These limitations come from +\family typewriter +ssconvert +\family default +. + Feature requests for better spreadsheet conversions should therefore go + to the Gnumeric developers. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/External_Material/gnuplot-example.gp b/lib/examples/External_Material/gnuplot-example.gp new file mode 100644 index 0000000000..910ea26f2b --- /dev/null +++ b/lib/examples/External_Material/gnuplot-example.gp @@ -0,0 +1,4 @@ +set grid +set xlabel "Sample" +set ylabel "My Value" +plot exp(-x) t 'Titles' diff --git a/lib/examples/External_Material/longsheet.gnumeric b/lib/examples/External_Material/longsheet.gnumeric new file mode 100644 index 0000000000..f8703dde1b Binary files /dev/null and b/lib/examples/External_Material/longsheet.gnumeric differ diff --git a/lib/examples/External_Material/longsheet.tex b/lib/examples/External_Material/longsheet.tex new file mode 100644 index 0000000000..8eaab2a131 --- /dev/null +++ b/lib/examples/External_Material/longsheet.tex @@ -0,0 +1,877 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% %% +%% This is the header of a LaTeX2e file exported from Gnumeric. %% +%% %% +%% This file can be compiled as it stands or included in another %% +%% LaTeX document. The table is based on the longtable package so %% +%% the longtable options (headers, footers...) can be set in the %% +%% preamble section below (see PRAMBLE). %% +%% %% +%% To include the file in another, the following two lines must be %% +%% in the including file: %% +%% \def\inputGnumericTable{} %% +%% at the beginning of the file and: %% +%% \input{name-of-this-file.tex} %% +%% where the table is to be placed. Note also that the including %% +%% file must use the following packages for the table to be %% +%% rendered correctly: %% +%% \usepackage[latin1]{inputenc} %% +%% \usepackage{color} %% +%% \usepackage{array} %% +%% \usepackage{longtable} %% +%% \usepackage{calc} %% +%% \usepackage{multirow} %% +%% \usepackage{hhline} %% +%% \usepackage{ifthen} %% +%% optionally (for landscape tables embedded in another document): %% +%% \usepackage{lscape} %% +%% %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + +%% This section checks if we are begin input into another file or %% +%% the file will be compiled alone. First use a macro taken from %% +%% the TeXbook ex 7.7 (suggestion of Han-Wen Nienhuys). %% +\def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax} + + +%% Check for the \def token for inputed files. If it is not %% +%% defined, the file will be processed as a standalone and the %% +%% preamble will be used. %% +\ifundefined{inputGnumericTable} + +%% We must be able to close or not the document at the end. %% + \def\gnumericTableEnd{\end{document}} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% %% +%% This is the PREAMBLE. Change these values to get the right %% +%% paper size and other niceties. %% +%% %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + \documentclass[12pt% + %,landscape% + ]{report} + \usepackage[latin1]{inputenc} + \usepackage{fullpage} + \usepackage{color} + \usepackage{array} + \usepackage{longtable} + \usepackage{calc} + \usepackage{multirow} + \usepackage{hhline} + \usepackage{ifthen} + + \begin{document} + + +%% End of the preamble for the standalone. The next section is for %% +%% documents which are included into other LaTeX2e files. %% +\else + +%% We are not a stand alone document. For a regular table, we will %% +%% have no preamble and only define the closing to mean nothing. %% + \def\gnumericTableEnd{} + +%% If we want landscape mode in an embedded document, comment out %% +%% the line above and uncomment the two below. The table will %% +%% begin on a new page and run in landscape mode. %% +% \def\gnumericTableEnd{\end{landscape}} +% \begin{landscape} + + +%% End of the else clause for this file being \input. %% +\fi + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% %% +%% The rest is the gnumeric table, except for the closing %% +%% statement. Changes below will alter the table's appearance. %% +%% %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\providecommand{\gnumericmathit}[1]{#1} +%% Uncomment the next line if you would like your numbers to be in %% +%% italics if they are italizised in the gnumeric table. %% +%\renewcommand{\gnumericmathit}[1]{\mathit{#1}} +\providecommand{\gnumericPB}[1]% +{\let\gnumericTemp=\\#1\let\\=\gnumericTemp\hspace{0pt}} + \ifundefined{gnumericTableWidthDefined} + \newlength{\gnumericTableWidth} + \newlength{\gnumericTableWidthComplete} + \newlength{\gnumericMultiRowLength} + \global\def\gnumericTableWidthDefined{} + \fi +%% The following setting protects this code from babel shorthands. %% + \ifthenelse{\isundefined{\languageshorthands}}{}{\languageshorthands{english}} +%% The default table format retains the relative column widths of %% +%% gnumeric. They can easily be changed to c, r or l. In that case %% +%% you may want to comment out the next line and uncomment the one %% +%% thereafter %% +\providecommand\gnumbox{\makebox[0pt]} +%%\providecommand\gnumbox[1][]{\makebox} + +%% to adjust positions in multirow situations %% +\setlength{\bigstrutjot}{\jot} +\setlength{\extrarowheight}{\doublerulesep} + +%% The \setlongtables command keeps column widths the same across %% +%% pages. Simply comment out next line for varying column widths. %% +\setlongtables + +\setlength\gnumericTableWidth{% + 100pt+% + 53pt+% + 40pt+% + 53pt+% +0pt} +\def\gumericNumCols{4} +\setlength\gnumericTableWidthComplete{\gnumericTableWidth+% + \tabcolsep*\gumericNumCols*2+\arrayrulewidth*\gumericNumCols} +\ifthenelse{\lengthtest{\gnumericTableWidthComplete > \linewidth}}% + {\def\gnumericScale{\ratio{\linewidth-% + \tabcolsep*\gumericNumCols*2-% + \arrayrulewidth*\gumericNumCols}% +{\gnumericTableWidth}}}% +{\def\gnumericScale{1}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% %% +%% The following are the widths of the various columns. We are %% +%% defining them here because then they are easier to change. %% +%% Depending on the cell formats we may use them more than once. %% +%% %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\ifthenelse{\isundefined{\gnumericColB}}{\newlength{\gnumericColB}}{}\settowidth{\gnumericColB}{\begin{tabular}{@{}p{100pt*\gnumericScale}@{}}x\end{tabular}} +\ifthenelse{\isundefined{\gnumericColC}}{\newlength{\gnumericColC}}{}\settowidth{\gnumericColC}{\begin{tabular}{@{}p{53pt*\gnumericScale}@{}}x\end{tabular}} +\ifthenelse{\isundefined{\gnumericColD}}{\newlength{\gnumericColD}}{}\settowidth{\gnumericColD}{\begin{tabular}{@{}p{40pt*\gnumericScale}@{}}x\end{tabular}} +\ifthenelse{\isundefined{\gnumericColE}}{\newlength{\gnumericColE}}{}\settowidth{\gnumericColE}{\begin{tabular}{@{}p{53pt*\gnumericScale}@{}}x\end{tabular}} + +\begin{longtable}[c]{% + b{\gnumericColB}% + b{\gnumericColC}% + b{\gnumericColD}% + b{\gnumericColE}% + } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% The longtable options. (Caption, headers... see Goosens, p.124) %% +% \caption{The Table Caption.} \\ % +% \hline % Across the top of the table. +%% The rest of these options are table rows which are placed on %% +%% the first, last or every page. Use \multicolumn if you want. %% + +%% Header for the first page. %% +% \multicolumn{4}{c}{The First Header} \\ \hline +% \multicolumn{1}{c}{colTag} %Column 1 +% &\multicolumn{1}{c}{colTag} %Column 2 +% &\multicolumn{1}{c}{colTag} %Column 3 +% &\multicolumn{1}{c}{colTag} \\ \hline %Last column +% \endfirsthead + +%% The running header definition. %% +% \hline +% \multicolumn{4}{l}{\ldots\small\slshape continued} \\ \hline +% \multicolumn{1}{c}{colTag} %Column 1 +% &\multicolumn{1}{c}{colTag} %Column 2 +% &\multicolumn{1}{c}{colTag} %Column 3 +% &\multicolumn{1}{c}{colTag} \\ \hline %Last column +% \endhead + +%% The running footer definition. %% +% \hline +% \multicolumn{4}{r}{\small\slshape continued\ldots} \\ +% \endfoot + +%% The ending footer definition. %% +% \multicolumn{4}{c}{That's all folks} \\ \hline +% \endlastfoot +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\hhline{|----} + \multicolumn{4}{|p{ \gnumericColB+% + \gnumericColC+% + \gnumericColD+% + \gnumericColE+% + \tabcolsep*2*3}|}% + {\gnumericPB{\centering}\gnumbox{{\color[rgb]{1.00,0.00,0.00} Long spreadsheet for LyX import}}} +\\ + \multicolumn{4}{|p{ \gnumericColB+% + \gnumericColC+% + \gnumericColD+% + \gnumericColE+% + \tabcolsep*2*3}|}% + {\gnumericPB{\centering}\gnumbox{{\color[rgb]{1.00,0.00,0.00} \textit{longsheet.gnumeric}}}} +\\ +\hhline{|-|-|-|-|} + \multicolumn{1}{|p{\gnumericColB}|}% + {\gnumericPB{\raggedright}\gnumbox[l]{{\color[rgb]{0.00,0.00,0.50} \textbf{Item}}}} + &\multicolumn{1}{p{\gnumericColC}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{{\color[rgb]{0.00,0.00,0.50} \textbf{Price}}}} + &\multicolumn{1}{p{\gnumericColD}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{{\color[rgb]{0.00,0.00,0.50} \textbf{\#}}}} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{{\color[rgb]{0.00,0.00,0.50} \textbf{Total}}}} +\\ +\hhline{|-|-|-|-|} + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{{\color[rgb]{0.00,0.50,0.00} \textit{Stuff}}}} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{scissors}} + &\gnumericPB{\raggedleft}\gnumbox[r]{8} + &\gnumericPB{\raggedleft}\gnumbox[r]{30} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{240}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{pens}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\gnumericPB{\raggedleft}\gnumbox[r]{30} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{30}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{pencils}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\gnumericPB{\raggedleft}\gnumbox[r]{30} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{30}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{radio}} + &\gnumericPB{\raggedleft}\gnumbox[r]{105} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{105}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{camera}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1200} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{2400}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{telephoto lens}} + &\gnumericPB{\raggedleft}\gnumbox[r]{2000} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{2000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{macro lens}} + &\gnumericPB{\raggedleft}\gnumbox[r]{300} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{600}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{flash}} + &\gnumericPB{\raggedleft}\gnumbox[r]{150} + &\gnumericPB{\raggedleft}\gnumbox[r]{4} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{600}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{memory card 8G}} + &\gnumericPB{\raggedleft}\gnumbox[r]{40} + &\gnumericPB{\raggedleft}\gnumbox[r]{16} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{640}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{computer}} + &\gnumericPB{\raggedleft}\gnumbox[r]{300} + &\gnumericPB{\raggedleft}\gnumbox[r]{30} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{9000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{os}} + &\gnumericPB{\raggedleft}\gnumbox[r]{0} + &\gnumericPB{\raggedleft}\gnumbox[r]{30} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{0}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{sw packages}} + &\gnumericPB{\raggedleft}\gnumbox[r]{0} + &\gnumericPB{\raggedleft}\gnumbox[r]{2600} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{0}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{sw docs}} + &\gnumericPB{\raggedleft}\gnumbox[r]{0} + &\gnumericPB{\raggedleft}\gnumbox[r]{2600} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{0}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{license mgmt}} + &\gnumericPB{\raggedleft}\gnumbox[r]{0} + &\gnumericPB{\raggedleft}\gnumbox[r]{0} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{0}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{sw upgrades}} + &\gnumericPB{\raggedleft}\gnumbox[r]{0} + &\gnumericPB{\raggedleft}\gnumbox[r]{2600} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{0}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{{\color[rgb]{0.00,0.50,0.00} \textit{Clothes}}}} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{socks}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\gnumericPB{\raggedleft}\gnumbox[r]{14} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{14}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{hats}} + &\gnumericPB{\raggedleft}\gnumbox[r]{8} + &\gnumericPB{\raggedleft}\gnumbox[r]{3} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{24}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{jeans}} + &\gnumericPB{\raggedleft}\gnumbox[r]{30} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{60}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{black shoes}} + &\gnumericPB{\raggedleft}\gnumbox[r]{45} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{90}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{brown shoes}} + &\gnumericPB{\raggedleft}\gnumbox[r]{42} + &\gnumericPB{\raggedleft}\gnumbox[r]{6} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{252}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{jacket}} + &\gnumericPB{\raggedleft}\gnumbox[r]{50} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{50}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{shirts}} + &\gnumericPB{\raggedleft}\gnumbox[r]{22} + &\gnumericPB{\raggedleft}\gnumbox[r]{14} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{308}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{t-shirts}} + &\gnumericPB{\raggedleft}\gnumbox[r]{5} + &\gnumericPB{\raggedleft}\gnumbox[r]{6} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{30}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{funny t-shirts}} + &\gnumericPB{\raggedleft}\gnumbox[r]{8} + &\gnumericPB{\raggedleft}\gnumbox[r]{4} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{32}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{{\color[rgb]{0.00,0.50,0.00} \textit{Food}}}} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{cheese}} + &\gnumericPB{\raggedleft}\gnumbox[r]{3} + &\gnumericPB{\raggedleft}\gnumbox[r]{3} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{9}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{beer}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\gnumericPB{\raggedleft}\gnumbox[r]{48} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{48}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{bread}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\gnumericPB{\raggedleft}\gnumbox[r]{3} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{3}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{butter}} + &\gnumericPB{\raggedleft}\gnumbox[r]{3} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{3}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{garlic}} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\gnumericPB{\raggedleft}\gnumbox[r]{5} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{10}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{meatballs}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\gnumericPB{\raggedleft}\gnumbox[r]{50} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{50}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{mustard}} + &\gnumericPB{\raggedleft}\gnumbox[r]{13} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{13}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{ketchup}} + &\gnumericPB{\raggedleft}\gnumbox[r]{11} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{11}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{salt}} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\gnumericPB{\raggedleft}\gnumbox[r]{6} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{12}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{pepper}} + &\gnumericPB{\raggedleft}\gnumbox[r]{3} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{6}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{{\color[rgb]{0.00,0.50,0.00} \textit{Animals}}}} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{cows}} + &\gnumericPB{\raggedleft}\gnumbox[r]{500} + &\gnumericPB{\raggedleft}\gnumbox[r]{30} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{15000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{sheep}} + &\gnumericPB{\raggedleft}\gnumbox[r]{300} + &\gnumericPB{\raggedleft}\gnumbox[r]{800} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{240000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{dogs}} + &\gnumericPB{\raggedleft}\gnumbox[r]{250} + &\gnumericPB{\raggedleft}\gnumbox[r]{8} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{2000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{cats}} + &\gnumericPB{\raggedleft}\gnumbox[r]{5} + &\gnumericPB{\raggedleft}\gnumbox[r]{3} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{15}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{goats}} + &\gnumericPB{\raggedleft}\gnumbox[r]{350} + &\gnumericPB{\raggedleft}\gnumbox[r]{60} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{21000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{horse}} + &\gnumericPB{\raggedleft}\gnumbox[r]{660} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{660}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{pigs}} + &\gnumericPB{\raggedleft}\gnumbox[r]{400} + &\gnumericPB{\raggedleft}\gnumbox[r]{200} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{80000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{bears}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1800} + &\gnumericPB{\raggedleft}\gnumbox[r]{4} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{7200}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{bears (polar)}} + &\gnumericPB{\raggedleft}\gnumbox[r]{5000} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{10000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{giraffes}} + &\gnumericPB{\raggedleft}\gnumbox[r]{4500} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{9000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{hippos}} + &\gnumericPB{\raggedleft}\gnumbox[r]{12000} + &\gnumericPB{\raggedleft}\gnumbox[r]{16} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{192000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{camels}} + &\gnumericPB{\raggedleft}\gnumbox[r]{800} + &\gnumericPB{\raggedleft}\gnumbox[r]{12} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{9600}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{squirrels}} + &\gnumericPB{\raggedleft}\gnumbox[r]{8} + &\gnumericPB{\raggedleft}\gnumbox[r]{16} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{128}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{mice}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\gnumericPB{\raggedleft}\gnumbox[r]{45} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{45}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{mice (white)}} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\gnumericPB{\raggedleft}\gnumbox[r]{133} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{266}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{rats}} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\gnumericPB{\raggedleft}\gnumbox[r]{20} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{40}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{elephants}} + &\gnumericPB{\raggedleft}\gnumbox[r]{10000} + &\gnumericPB{\raggedleft}\gnumbox[r]{20} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{200000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{crocodile (s)}} + &\gnumericPB{\raggedleft}\gnumbox[r]{500} + &\gnumericPB{\raggedleft}\gnumbox[r]{18} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{9000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{crocodile (m)}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1500} + &\gnumericPB{\raggedleft}\gnumbox[r]{8} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{12000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{crocodile (l)}} + &\gnumericPB{\raggedleft}\gnumbox[r]{3500} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{7000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{crocodile (xl)}} + &\gnumericPB{\raggedleft}\gnumbox[r]{8000} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{8000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{gnu}} + &\gnumericPB{\raggedleft}\gnumbox[r]{655} + &\gnumericPB{\raggedleft}\gnumbox[r]{45} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{29475}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{leopards}} + &\gnumericPB{\raggedleft}\gnumbox[r]{9600} + &\gnumericPB{\raggedleft}\gnumbox[r]{4} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{38400}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{weasel}} + &\gnumericPB{\raggedleft}\gnumbox[r]{45} + &\gnumericPB{\raggedleft}\gnumbox[r]{12} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{540}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{zebras}} + &\gnumericPB{\raggedleft}\gnumbox[r]{400} + &\gnumericPB{\raggedleft}\gnumbox[r]{12} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{4800}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{ant eater}} + &\gnumericPB{\raggedleft}\gnumbox[r]{83} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{83}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{ants}} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\gnumericPB{\raggedleft}\gnumbox[r]{1300} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{1300}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{gorillas}} + &\gnumericPB{\raggedleft}\gnumbox[r]{12000} + &\gnumericPB{\raggedleft}\gnumbox[r]{5} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{60000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{monkeys}} + &\gnumericPB{\raggedleft}\gnumbox[r]{300} + &\gnumericPB{\raggedleft}\gnumbox[r]{45} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{13500}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{lions}} + &\gnumericPB{\raggedleft}\gnumbox[r]{8000} + &\gnumericPB{\raggedleft}\gnumbox[r]{6} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{48000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{{\color[rgb]{0.00,0.50,0.00} \textit{Furniture}}}} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{chairs}} + &\gnumericPB{\raggedleft}\gnumbox[r]{12} + &\gnumericPB{\raggedleft}\gnumbox[r]{64} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{768}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{tables}} + &\gnumericPB{\raggedleft}\gnumbox[r]{20} + &\gnumericPB{\raggedleft}\gnumbox[r]{6} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{120}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{table (round)}} + &\gnumericPB{\raggedleft}\gnumbox[r]{33} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{33}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{chairs (office)}} + &\gnumericPB{\raggedleft}\gnumbox[r]{16} + &\gnumericPB{\raggedleft}\gnumbox[r]{34} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{544}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{desks}} + &\gnumericPB{\raggedleft}\gnumbox[r]{42} + &\gnumericPB{\raggedleft}\gnumbox[r]{30} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{1260}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{big desk}} + &\gnumericPB{\raggedleft}\gnumbox[r]{150} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{150}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{boss chair}} + &\gnumericPB{\raggedleft}\gnumbox[r]{120} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{120}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{desk lamps}} + &\gnumericPB{\raggedleft}\gnumbox[r]{8} + &\gnumericPB{\raggedleft}\gnumbox[r]{30} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{240}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{wall lamps}} + &\gnumericPB{\raggedleft}\gnumbox[r]{4} + &\gnumericPB{\raggedleft}\gnumbox[r]{22} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{88}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{standing lamps}} + &\gnumericPB{\raggedleft}\gnumbox[r]{11} + &\gnumericPB{\raggedleft}\gnumbox[r]{12} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{132}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{water coolers}} + &\gnumericPB{\raggedleft}\gnumbox[r]{57} + &\gnumericPB{\raggedleft}\gnumbox[r]{5} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{285}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{safe}} + &\gnumericPB{\raggedleft}\gnumbox[r]{6500} + &\gnumericPB{\raggedleft}\gnumbox[r]{2} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{13000}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{bookshelf}} + &\gnumericPB{\raggedleft}\gnumbox[r]{19} + &\gnumericPB{\raggedleft}\gnumbox[r]{13} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{247}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{world map}} + &\gnumericPB{\raggedleft}\gnumbox[r]{3} + &\gnumericPB{\raggedleft}\gnumbox[r]{1} + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{3}} +\\ + \multicolumn{1}{|p{\gnumericColB}}% + {} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {} +\\ +\hhline{|----|} + \multicolumn{1}{|p{\gnumericColB}}% + {\gnumericPB{\raggedright}\gnumbox[l]{\textit{Total sum for everything:}}} + & + & + &\multicolumn{1}{p{\gnumericColE}|}% + {\gnumericPB{\raggedleft}\gnumbox[r]{\textit{1052712}}} +\\ +\hhline{|----|} +\end{longtable} + +\ifthenelse{\isundefined{\languageshorthands}}{}{\languageshorthands{\languagename}} +\gnumericTableEnd diff --git a/lib/examples/External_Material/sheet1.gnumeric b/lib/examples/External_Material/sheet1.gnumeric new file mode 100644 index 0000000000..7d3d07fa54 Binary files /dev/null and b/lib/examples/External_Material/sheet1.gnumeric differ diff --git a/lib/examples/External_Material/sheet2.ods b/lib/examples/External_Material/sheet2.ods new file mode 100644 index 0000000000..9eb9b8fd68 Binary files /dev/null and b/lib/examples/External_Material/sheet2.ods differ diff --git a/lib/examples/External_Material/sheet3.xls b/lib/examples/External_Material/sheet3.xls new file mode 100644 index 0000000000..50f3801a78 Binary files /dev/null and b/lib/examples/External_Material/sheet3.xls differ diff --git a/lib/examples/FeynmanDiagrams.lyx b/lib/examples/FeynmanDiagrams.lyx deleted file mode 100644 index e63f9b0ef1..0000000000 --- a/lib/examples/FeynmanDiagrams.lyx +++ /dev/null @@ -1,871 +0,0 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 544 -\begin_document -\begin_header -\save_transient_properties true -\origin /systemlyxdir/examples/ -\textclass scrartcl -\begin_preamble -% DO NOT ALTER THIS PREAMBLE!!! -% -% This preamble is designed to ensure that the file prints -% out as advertised. If you mess with this preamble, -% parts of this document may not print out as expected. If you -% have problems LaTeXing this file, please contact -% the documentation team -% email: lyx-docs@lists.lyx.org - -% if pdflatex is used -\usepackage{ifpdf} -\ifpdf - -% set fonts for nicer pdf view -\IfFileExists{lmodern.sty} - {\usepackage{lmodern}}{} - -\fi % end if pdflatex is used - -% used to have extra space in table cells -\@ifundefined{extrarowheight} - {\usepackage{array}}{} -\setlength{\extrarowheight}{5pt} -\end_preamble -\use_default_options true -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding auto -\fontencoding global -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures false -\graphics default -\default_output_format default -\output_sync 0 -\bibtex_command default -\index_command default -\paperfontsize 12 -\spacing single -\use_hyperref true -\pdf_title "Feynman Diagrams" -\pdf_author "LyX Team, Uwe Stöhr, Ronen Abravanel" -\pdf_bookmarks false -\pdf_bookmarksnumbered false -\pdf_bookmarksopen false -\pdf_bookmarksopenlevel 1 -\pdf_breaklinks false -\pdf_pdfborder true -\pdf_colorlinks false -\pdf_backref false -\pdf_pdfusetitle false -\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" -\papersize default -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\cite_engine basic -\cite_engine_type default -\biblio_style plain -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date true -\justification true -\use_refstyle 0 -\use_minted 0 -\notefontcolor #0000ff -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation skip -\defskip medskip -\is_math_indent 0 -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Title -Feynman Diagrams -\end_layout - -\begin_layout Standard -\begin_inset Note Note -status open - -\begin_layout Plain Layout -authors: Uwe Stöhr and Ronen Abravanel -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -To be able to create -\noun on -Feynman -\noun default - diagrams, the \SpecialChar LaTeX --package -\series bold -feyn -\series default - must be installed. - A -\noun on -Feynman -\noun default - diagram is created by inserting the command -\series bold - -\backslash -Diagram -\series default - in a formula. - Then you are able to add new matrix columns and rows like a normal matrices. - -\end_layout - -\begin_layout Standard -As matrix entry, one can enter commands that act as -\begin_inset Quotes eld -\end_inset - -particles -\begin_inset Quotes erd -\end_inset - - or -\begin_inset Quotes eld -\end_inset - -propagators -\begin_inset Quotes erd -\end_inset - -, for example: -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -Commands -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -Description -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -Example -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -Result -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -f,g,h -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\noindent -\align left -fermion, photon or ghost propagator -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -f -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -g -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -h -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Diagram{f & g & h} -$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -fu,fd,fv (gu,gd,gv) -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\noindent -\align left -fermion/photon, going up/down/vertical -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -fd -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -gu -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -fv -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Diagram{fd & & gu\\ - & fv -} -$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -fA,fV -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\noindent -\align left -A and V are modifiers to produce arrow going left/up or right/down -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -fdA -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -fuV -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -gvV -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Diagram{fdA & & fuV\\ - & gvV -} -$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -fl,glB,glS,fl1,gl2, etc. -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\noindent -\align left -fermions/photons loop -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -f -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -gl -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -f -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -f -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Diagram{f & gl\\ - & f & f -} -$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\backslash -momentum{ch}{text} -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\noindent -\align left -particle-momentum specification -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\backslash\mathrm{momentum}\{fA\}\{\vec{p\}}$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Diagram{\momentum{fA}{\vec{p}}} -$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\backslash -vertexlabel{p}{text} -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\noindent -\align left -the vertex label -\emph on -p -\emph default - is either '^' or '_' for labeling above or below the vertex -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Tabular - - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\backslash\mathrm{vertexlabel}^{e^{+}}fA$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $fglS\backslash\mathrm{vertexlabel}_{\gamma}$ -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Diagram{\vertexlabel^{\mathrm{e^{+}}}fA\\ -fglS\vertexlabel_{\gamma} -} -$ -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -These are just some of the features of thepackage -\series bold -feyn -\series default - whose user manual can be found in -\begin_inset CommandInset citation -LatexCommand cite -key "Feyn" -literal "true" - -\end_inset - -. -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - If you have an index list in your document and use one of the AMS theorem - modules, you have to add the option -\series bold -noglobalbang -\series default - to the document class options in the document settings. - This enables the usage of the '!' character in index entries (necessary - for subentries) but might cause troubles with the align environments (which - are described in section -\begin_inset Quotes eld -\end_inset - -Align Environments -\begin_inset Quotes erd -\end_inset - - of \SpecialChar LyX -'s Math manual). -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Bibliography -\begin_inset CommandInset bibitem -LatexCommand bibitem -key "Feyn" -literal "true" - -\end_inset - - -\begin_inset CommandInset href -LatexCommand href -name "Documentation" -target "http://mirror.ctan.org/fonts/feyn/feyn.pdf" -literal "false" - -\end_inset - - of the \SpecialChar LaTeX - package -\series bold -feyn -\end_layout - -\end_body -\end_document diff --git a/lib/examples/Foils.lyx b/lib/examples/Foils.lyx deleted file mode 100644 index 0f3d6b8274..0000000000 --- a/lib/examples/Foils.lyx +++ /dev/null @@ -1,892 +0,0 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 544 -\begin_document -\begin_header -\save_transient_properties true -\origin /systemlyxdir/examples/ -\textclass foils -\begin_preamble -\raggedright -\MyLogo{-\LyX{} and \FoilTeX{}: What a team!-} -\end_preamble -\options dvips -\use_default_options false -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding default -\fontencoding global -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures false -\graphics dvips -\default_output_format default -\output_sync 0 -\bibtex_command default -\index_command default -\paperfontsize default -\spacing single -\use_hyperref false -\papersize default -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\cite_engine basic -\cite_engine_type default -\biblio_style plain -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date false -\justification true -\use_refstyle 0 -\use_minted 0 -\index Index -\shortcut idx -\color #008000 -\end_index -\paperwidth 0cm -\paperheight 0cm -\leftmargin 0cm -\topmargin 0cm -\rightmargin 0cm -\bottommargin 0cm -\headheight 0cm -\headsep 0cm -\footskip 0cm -\secnumdepth 0 -\tocdepth 1 -\paragraph_separation indent -\paragraph_indentation default -\is_math_indent 0 -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\bullet 0 5 2 -1 -\bullet 1 5 4 -1 -\bullet 2 4 8 -1 -\bullet 3 1 3 -1 -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Title -Foils Class -\end_layout - -\begin_layout Author - -\noun on -Allan Rae -\end_layout - -\begin_layout Date -November 19 1997 -\end_layout - -\begin_layout Standard -\begin_inset VSpace 7pt -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset CommandInset line -LatexCommand rule -offset "0ex" -width "100col%" -height "7pt" - -\end_inset - - -\end_layout - -\begin_layout Abstract -\SpecialChar LyX - and Foil\SpecialChar TeX - combine to provide a powerful presentation package for creating - -\begin_inset Quotes eld -\end_inset - -foils -\begin_inset Quotes erd -\end_inset - - also known as slides and overhead transparencies. -\end_layout - -\begin_layout Foilhead -This is a Foilhead -\end_layout - -\begin_layout Standard -\begin_inset CommandInset line -LatexCommand rule -offset "0ex" -width "100col%" -height "3pt" - -\end_inset - - -\end_layout - -\begin_layout Standard -A Foilhead starts a new foil. - A -\emph on -short -\emph default - version is also provided that reduces the separation between the Foilhead - and the body of the foil. - Almost all the environments found in other classes are also supported. -\end_layout - -\begin_layout Itemize -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -zerolistvertdimens{} -\end_layout - -\end_inset - -The new Itemize Bullet Selection popup -\end_layout - -\begin_deeper -\begin_layout Itemize -is tailor-made for use with the foils class -\end_layout - -\begin_deeper -\begin_layout Itemize -allowing you to select the bullet used -\end_layout - -\begin_deeper -\begin_layout Itemize -at each of the four levels of the Itemize environment -\end_layout - -\end_deeper -\end_deeper -\end_deeper -\begin_layout Itemize -NOTE: to get the full capabilities of the Itemize Bullet Selection popup - read the Special Tools manual and the ItemizeBullets.lyx file included with - the examples. -\end_layout - -\begin_layout Itemize -NOTE 2: To get your list spacing small like this use the Foil\SpecialChar TeX - command: -\family typewriter - -\backslash -zerolistvertdimens{} -\family default - set as \SpecialChar TeX - at the start of the first item. -\end_layout - -\begin_layout ShortFoilhead -This is a ShortFoilhead -\end_layout - -\begin_layout Standard -\begin_inset CommandInset line -LatexCommand rule -offset "0ex" -width "100col%" -height "3pt" - -\end_inset - - -\end_layout - -\begin_layout Standard -The foils class has been extended to provide two additional bullet-lists. - These lists are namely: -\end_layout - -\begin_layout TickList -TickList -\end_layout - -\begin_layout Standard -and -\end_layout - -\begin_layout CrossList -CrossList -\end_layout - -\begin_layout Standard -These two lists were added because the listing of do's and don'ts or good - and bad are relatively common in foils. - Providing a dedicated paragraph style for these occasions should allow - faster entry and simplify interaction with \SpecialChar LyX -. -\end_layout - -\begin_layout Rotatefoilhead -Rotatefoilhead -\end_layout - -\begin_layout Standard - -\backslash -hrule height 3pt -\end_layout - -\begin_layout Itemize -Create landscape foils by using Rotatefoilhead -\end_layout - -\begin_layout Itemize -Note that if you are viewing this with xdvi the page will appear to overrun - the page dimensions because it xdvi doesn't rotate the text -\end_layout - -\begin_layout Itemize -If you view this document using ghostview or something similar then the - page should appear rotated. - If not then you probably don't have the necessary dvips driver. -\end_layout - -\begin_layout Definition* -There are also several environments specially designed for presenting Theorems, - Lemmas, Corollaries, Propositions, Proofs and Definitions. - These are available as numbered or unnumbered environments. -\end_layout - -\begin_layout ShortRotatefoilhead -ShortRotateFoilhead -\end_layout - -\begin_layout Standard -\begin_inset CommandInset line -LatexCommand rule -offset "0ex" -width "100col%" -height "3pt" - -\end_inset - - -\end_layout - -\begin_layout Itemize -Again the short version reduces the space below the heading -\end_layout - -\begin_layout Itemize -Another way to control the amount of separation is to adjust the length - in the preamble. - This will affect both the normal and short versions of foilhead and rotatefoilh -ead. - For example, -\begin_inset Newline newline -\end_inset - - -\family typewriter - -\backslash -setlength{ -\backslash -foilheadskip}{-0.5in} -\family default - -\begin_inset Newline newline -\end_inset - -will reduce the spacing by 0.5 inches. - Other units include mm (millimeters) and pt (points). -\end_layout - -\begin_layout Itemize -The -\emph on -short -\emph default - versions of the foilheads reduce the separation by 0.5 inches (approximately - 12.5mm). -\end_layout - -\begin_layout ShortFoilhead -Tricky Proofs -\end_layout - -\begin_layout Standard -\begin_inset CommandInset line -LatexCommand rule -offset "0ex" -width "100col%" -height "3pt" - -\end_inset - - -\end_layout - -\begin_layout Lemma* -Several consecutive paragraphs of type -\emph on -Theorem -\emph default -, -\emph on -Lemma -\emph default -, -\emph on -Corollary -\emph default -, -\emph on -Proposition -\emph default -, -\emph on -Definition -\emph default -, -\emph on -Proof -\emph default - or the starred versions of these are part of the same environment. -\end_layout - -\begin_layout Lemma* -As you can see, we are still in the same lemma. -\end_layout - -\begin_layout Standard -\begin_inset Separator plain -\end_inset - - -\end_layout - -\begin_layout Lemma* -To force this second Lemma straight after the first it's necessary to add - some dividing text or as I've done in this case separate the two by inserting - a -\emph on -\SpecialChar TeX - -\emph default - inset that simply contains a -\begin_inset Quotes eld -\end_inset - -% -\begin_inset Quotes erd -\end_inset - -. - This is simply a comment character in \SpecialChar LaTeX - but the insertion of the \SpecialChar LaTeX - paragraph - is sufficient to fool \SpecialChar LyX - into correctly handling the multiple environments. -\end_layout - -\begin_layout Lemma* -NOTE: You only have this problem with multiple paragraphs of the same type - -\emph on -not -\emph default - with different types such as a Proof followed by a Theorem. -\end_layout - -\begin_layout ShortFoilhead -Tables and Figures -\end_layout - -\begin_layout Standard -\begin_inset CommandInset line -LatexCommand rule -offset "0ex" -width "100col%" -height "3pt" - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -Column1 -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -Column2 -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -Column3 -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -A -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\emph on -simple -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -table -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\bar under -example -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -with -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\series bold -foils -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Standard -Both tables and figures are supported in Foils however floats don't float - instead they appear exactly where they appear in the text. - Any placement parameters you set will be ignored. -\begin_inset Float table -placement htbp -wide false -sideways false -status open - -\begin_layout Plain Layout -\begin_inset Caption Standard - -\begin_layout Plain Layout -This is a non-floating -\begin_inset Quotes eld -\end_inset - -float -\begin_inset Quotes erd -\end_inset - - table -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Plain Layout -\align center -\begin_inset Tabular - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -Row1 -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\emph on -Another -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -simple -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Row2 -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\bar under -table -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -example -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Row3 -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\series bold -with -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -foils -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout ShortFoilhead -Headers and Footers -\end_layout - -\begin_layout Standard -\begin_inset CommandInset line -LatexCommand rule -offset "0ex" -width "100col%" -height "3pt" - -\end_inset - - -\end_layout - -\begin_layout Standard -Foil\SpecialChar TeX - provides some powerful header and footer capabilities -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -You can also use the standard footnotes like this one. -\end_layout - -\end_inset - - that are best set in the preamble although they may be set at any point - in a document. - If you want to change these settings in the document the best place to - do so is at the very top of a foil ie. - straight after the foilhead. -\end_layout - -\begin_layout Standard -The left-footer is controlled by two commands: -\family typewriter - -\backslash -MyLogo{} -\family default - and -\family typewriter - -\backslash -Restriction{} -\family default -. - The first is meant to allow you to include a graphic logo on your foils - and defaults to -\begin_inset Quotes eld -\end_inset - --Typeset by Foil\SpecialChar TeX -- -\begin_inset Quotes erd -\end_inset - -. - While the second is meant to provide a classification for the audience - e. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} -\end_inset - -Confidential. -\end_layout - -\begin_layout Standard -The remaining corners are controlled by: -\end_layout - -\begin_layout Standard - -\family typewriter - -\backslash -rightfooter{} -\family default - – which defaults to page numbers -\end_layout - -\begin_layout Standard - -\family typewriter - -\backslash -rightheader{} -\end_layout - -\begin_layout Standard - -\family typewriter - -\backslash -leftheader{} -\end_layout - -\begin_layout Foilhead -Further Reading -\end_layout - -\begin_layout Standard -\begin_inset CommandInset line -LatexCommand rule -offset "0ex" -width "100col%" -height "3pt" - -\end_inset - - -\end_layout - -\begin_layout Standard -Your \SpecialChar LaTeX - distribution should include some documentation on Foil\SpecialChar TeX -. - There are many more features in Foil\SpecialChar TeX - than those described here. - For example, Foil\SpecialChar TeX - can automatically place a horizontal rule between the - headers and all foilheads, and between the body and the footers. -\end_layout - -\begin_layout Bibliography -\begin_inset CommandInset bibitem -LatexCommand bibitem -key "2" -literal "true" - -\end_inset - -Jim Hafner, -\begin_inset Quotes eld -\end_inset - -The Foil\SpecialChar TeX - Class Package -\begin_inset Quotes erd -\end_inset - -, -\family typewriter -.../texmf/texmf/doc/latex/foiltex/foiltex.dvi -\end_layout - -\begin_layout Bibliography -\begin_inset CommandInset bibitem -LatexCommand bibitem -key "2" -literal "true" - -\end_inset - -\SpecialChar LyX - Documentation Team, -\begin_inset Quotes eld -\end_inset - -Advanced Editing Tools -\begin_inset Quotes erd -\end_inset - -. -\end_layout - -\end_body -\end_document diff --git a/lib/examples/Graphics_&_Insets/Feynman_Diagrams.lyx b/lib/examples/Graphics_&_Insets/Feynman_Diagrams.lyx new file mode 100644 index 0000000000..e63f9b0ef1 --- /dev/null +++ b/lib/examples/Graphics_&_Insets/Feynman_Diagrams.lyx @@ -0,0 +1,871 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrartcl +\begin_preamble +% DO NOT ALTER THIS PREAMBLE!!! +% +% This preamble is designed to ensure that the file prints +% out as advertised. If you mess with this preamble, +% parts of this document may not print out as expected. If you +% have problems LaTeXing this file, please contact +% the documentation team +% email: lyx-docs@lists.lyx.org + +% if pdflatex is used +\usepackage{ifpdf} +\ifpdf + +% set fonts for nicer pdf view +\IfFileExists{lmodern.sty} + {\usepackage{lmodern}}{} + +\fi % end if pdflatex is used + +% used to have extra space in table cells +\@ifundefined{extrarowheight} + {\usepackage{array}}{} +\setlength{\extrarowheight}{5pt} +\end_preamble +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "Feynman Diagrams" +\pdf_author "LyX Team, Uwe Stöhr, Ronen Abravanel" +\pdf_bookmarks false +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Feynman Diagrams +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +authors: Uwe Stöhr and Ronen Abravanel +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To be able to create +\noun on +Feynman +\noun default + diagrams, the \SpecialChar LaTeX +-package +\series bold +feyn +\series default + must be installed. + A +\noun on +Feynman +\noun default + diagram is created by inserting the command +\series bold + +\backslash +Diagram +\series default + in a formula. + Then you are able to add new matrix columns and rows like a normal matrices. + +\end_layout + +\begin_layout Standard +As matrix entry, one can enter commands that act as +\begin_inset Quotes eld +\end_inset + +particles +\begin_inset Quotes erd +\end_inset + + or +\begin_inset Quotes eld +\end_inset + +propagators +\begin_inset Quotes erd +\end_inset + +, for example: +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Commands +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Description +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Example +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Result +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +f,g,h +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\noindent +\align left +fermion, photon or ghost propagator +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +f +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +g +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +h +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Diagram{f & g & h} +$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +fu,fd,fv (gu,gd,gv) +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\noindent +\align left +fermion/photon, going up/down/vertical +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +fd +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +gu +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +fv +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Diagram{fd & & gu\\ + & fv +} +$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +fA,fV +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\noindent +\align left +A and V are modifiers to produce arrow going left/up or right/down +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +fdA +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +fuV +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +gvV +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Diagram{fdA & & fuV\\ + & gvV +} +$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +fl,glB,glS,fl1,gl2, etc. +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\noindent +\align left +fermions/photons loop +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +f +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +gl +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +f +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +f +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Diagram{f & gl\\ + & f & f +} +$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\backslash +momentum{ch}{text} +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\noindent +\align left +particle-momentum specification +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\backslash\mathrm{momentum}\{fA\}\{\vec{p\}}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Diagram{\momentum{fA}{\vec{p}}} +$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\backslash +vertexlabel{p}{text} +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\noindent +\align left +the vertex label +\emph on +p +\emph default + is either '^' or '_' for labeling above or below the vertex +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\backslash\mathrm{vertexlabel}^{e^{+}}fA$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $fglS\backslash\mathrm{vertexlabel}_{\gamma}$ +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Diagram{\vertexlabel^{\mathrm{e^{+}}}fA\\ +fglS\vertexlabel_{\gamma} +} +$ +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +These are just some of the features of thepackage +\series bold +feyn +\series default + whose user manual can be found in +\begin_inset CommandInset citation +LatexCommand cite +key "Feyn" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + If you have an index list in your document and use one of the AMS theorem + modules, you have to add the option +\series bold +noglobalbang +\series default + to the document class options in the document settings. + This enables the usage of the '!' character in index entries (necessary + for subentries) but might cause troubles with the align environments (which + are described in section +\begin_inset Quotes eld +\end_inset + +Align Environments +\begin_inset Quotes erd +\end_inset + + of \SpecialChar LyX +'s Math manual). +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "Feyn" +literal "true" + +\end_inset + + +\begin_inset CommandInset href +LatexCommand href +name "Documentation" +target "http://mirror.ctan.org/fonts/feyn/feyn.pdf" +literal "false" + +\end_inset + + of the \SpecialChar LaTeX + package +\series bold +feyn +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Graphics_&_Insets/Instant_Preview.lyx b/lib/examples/Graphics_&_Insets/Instant_Preview.lyx new file mode 100644 index 0000000000..bbdaec838b --- /dev/null +++ b/lib/examples/Graphics_&_Insets/Instant_Preview.lyx @@ -0,0 +1,2504 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +\usepackage{etex} +\usepackage[all, knot]{xy} +\xyoption{arc} +\usepackage{qtree} +\usepackage{tipa} +\usepackage{pstricks} +\usepackage{pst-plot} +\usepackage{rotating} +\usepackage{tikz} +\usetikzlibrary{scopes} +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "lmodern" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict true +\end_header + +\begin_body + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +In order to properly typeset the document and have instant preview working, + the following packages have to be installed: +\end_layout + +\begin_layout LyX-Code +xy, qtree, tipa, pstricks, pst-plot, rotating, tikz, pgf, etex +\end_layout + +\begin_layout Standard +Due to the use of postscript specials in Section +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:PSTricks" + +\end_inset + +, only the Postscript or PDF (ps2pdf) output formats will correctly render + the included images. + However, the PDF (Xe\SpecialChar TeX +) output seems to also work, while trying to typeset + the document with +\family typewriter +pdflatex +\family default + or +\family typewriter +pdflualatex +\family default + will generate errors. +\end_layout + +\begin_layout Section +Diagrams by XY(-pic) +\end_layout + +\begin_layout Standard +Few examples of diagrams were taken from Aaron Landa's archive of xy-pic + examples, see +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://www.ctan.org/tex-archive/macros/generic/diagrams/xypic/doc/xyguide.pdf +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Description +Braid +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +xy +\end_layout + +\begin_layout Plain Layout + +(5,10)*{}; (-10,-10)*{} ** +\backslash +crv{(6,-2)&(-12,4)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +POS?(.25)*{ +\backslash +hole}="x" +\backslash +POS?(.45)*{ +\backslash +hole}="y" +\backslash +POS?(.6)*{ +\backslash +hole}="z"; +\end_layout + +\begin_layout Plain Layout + +"y"+(0,-1); (2,-10)*{} ** +\backslash +crv{} +\backslash +POS?(.2)*{ +\backslash +hole}="M"; +\end_layout + +\begin_layout Plain Layout + +(-10,10)*{}; "z" ** +\backslash +crv{(-9,0)}; +\end_layout + +\begin_layout Plain Layout + +"z"; "M" ** +\backslash +crv{}; +\end_layout + +\begin_layout Plain Layout + +"M"; "x" ** +\backslash +crv{(5,0)}; +\end_layout + +\begin_layout Plain Layout + +"x"; "y" ** +\backslash +crv{(0,7) & (-5,6)}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +endxy +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Knots +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +xy +\end_layout + +\begin_layout Plain Layout + +(6,9)*{}="1"; +\end_layout + +\begin_layout Plain Layout + +(-8.5,-1)*{}="2"; +\end_layout + +\begin_layout Plain Layout + +"1";"2" ** +\backslash +crv{~*=<.5pt>{.} (0,30)}?(.75)* +\backslash +dir{>}+(-2,2)*{z}; +\end_layout + +\begin_layout Plain Layout + +(-6.5,8)*{}="1"; +\end_layout + +\begin_layout Plain Layout + +(-.5,-9)*{}="2"; +\end_layout + +\begin_layout Plain Layout + +"1";"2" ** +\backslash +crv{~*=<.5pt>{.} (-28.5,9.3)}?(.7)* +\backslash +dir{>}+(-2,-2)*{u}; +\end_layout + +\begin_layout Plain Layout + +(-9.5,-3.35)*{}="1"; +\end_layout + +\begin_layout Plain Layout + +(8.5,-3)*{}="2"; +\end_layout + +\begin_layout Plain Layout + +"1";"2" ** +\backslash +crv{~*=<.5pt>{.} (-17.67,-24.19)}?(.7)* +\backslash +dir{>}+(-1,-3)*{x}; +\end_layout + +\begin_layout Plain Layout + +(1,-10)*{}="1"; +\end_layout + +\begin_layout Plain Layout + +(6.5,7.13)*{}="2"; +\end_layout + +\begin_layout Plain Layout + +"1";"2" ** +\backslash +crv{~*=<.5pt>{.} (17.67,-24.19)}?(.7)* +\backslash +dir{>}+(3,-1)*{y}; +\end_layout + +\begin_layout Plain Layout + +(11,-1)*{}="1"; +\end_layout + +\begin_layout Plain Layout + +(-4,8)*{}="2"; +\end_layout + +\begin_layout Plain Layout + +"1";"2" ** +\backslash +crv{~*=<.5pt>{.} (28.5,9.3)}?(.93)* +\backslash +dir{>}+(1,2)*{w}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +endxy +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Circles +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +xy +\end_layout + +\begin_layout Plain Layout + +(0,0)* +\backslash +xycircle(14,8){++ +\backslash +dir{<}}; +\end_layout + +\begin_layout Plain Layout + +(0,0)* +\backslash +xycircle<10pt>{{.}}; +\end_layout + +\begin_layout Plain Layout + +(0,0)* +\backslash +xycircle(5,2){:}; +\end_layout + +\begin_layout Plain Layout + +(0,15)* +\backslash +xycircle(10,4){--}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +endxy +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Cobordism +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +xy +\end_layout + +\begin_layout Plain Layout + +(0,0)* +\backslash +ellipse(3,1){.}; +\end_layout + +\begin_layout Plain Layout + +(0,0)* +\backslash +ellipse(3,1)__,=:a(-180){-}; +\end_layout + +\begin_layout Plain Layout + +(-6,-8)* +\backslash +ellipse(3,1){.}; +\end_layout + +\begin_layout Plain Layout + +(6,-8)* +\backslash +ellipse(3,1){.}; +\end_layout + +\begin_layout Plain Layout + +(0,-8)* +\backslash +ellipse(3,1){.}; +\end_layout + +\begin_layout Plain Layout + +(-6,-8)* +\backslash +ellipse(3,1)__,=:a(-180){-}; +\end_layout + +\begin_layout Plain Layout + +(6,-8)* +\backslash +ellipse(3,1)__,=:a(-180){-}; +\end_layout + +\begin_layout Plain Layout + +(0,-8)* +\backslash +ellipse(3,1)__,=:a(180){-}; +\end_layout + +\begin_layout Plain Layout + +(-3,6)* +\backslash +ellipse(3,1){-}; +\end_layout + +\begin_layout Plain Layout + +(3,6)* +\backslash +ellipse(3,1){-}; +\end_layout + +\begin_layout Plain Layout + +(-3,12)*{}="1"; +\end_layout + +\begin_layout Plain Layout + +(3,12)*{}="2"; +\end_layout + +\begin_layout Plain Layout + +(-9,12)*{}="A2"; +\end_layout + +\begin_layout Plain Layout + +(9,12)*{}="B2"; +\end_layout + +\begin_layout Plain Layout + +"1";"2" ** +\backslash +crv{(-3,7) & (3,7)}; +\end_layout + +\begin_layout Plain Layout + +(-3,0)*{}="A"; +\end_layout + +\begin_layout Plain Layout + +(3,0)*{}="B"; +\end_layout + +\begin_layout Plain Layout + +(-3,1)*{}="A1"; +\end_layout + +\begin_layout Plain Layout + +(3,1)*{}="B1"; +\end_layout + +\begin_layout Plain Layout + +"A";"A1" ** +\backslash +dir{-}; +\end_layout + +\begin_layout Plain Layout + +"B";"B1" ** +\backslash +dir{-}; +\end_layout + +\begin_layout Plain Layout + +"B2";"B1" ** +\backslash +crv{(8,7) & (3,5)}; +\end_layout + +\begin_layout Plain Layout + +"A2";"A1" ** +\backslash +crv{(-8,7) & (-3,5)}; +\end_layout + +\begin_layout Plain Layout + +%REFLECT +\end_layout + +\begin_layout Plain Layout + +(3,-16)*{}="1"; +\end_layout + +\begin_layout Plain Layout + +(9,-16)*{}="2"; +\end_layout + +\begin_layout Plain Layout + +"1";"2" ** +\backslash +crv{(3,-10) & (9,-10)}; +\end_layout + +\begin_layout Plain Layout + +(-3,-16)*{}="1"; +\end_layout + +\begin_layout Plain Layout + +(-9,-16)*{}="2"; +\end_layout + +\begin_layout Plain Layout + +"1";"2" ** +\backslash +crv{(-3,-10) & (-9,-10)}; +\end_layout + +\begin_layout Plain Layout + +(-15,-16)*{}="A2"; +\end_layout + +\begin_layout Plain Layout + +(15,-16)*{}="B2"; +\end_layout + +\begin_layout Plain Layout + +(-3,0)*{}="A"; +\end_layout + +\begin_layout Plain Layout + +(3,0)*{}="B"; +\end_layout + +\begin_layout Plain Layout + +(-3,-1)*{}="A1"; +\end_layout + +\begin_layout Plain Layout + +(3,-1)*{}="B1"; +\end_layout + +\begin_layout Plain Layout + +"A";"A1" ** +\backslash +dir{-}; +\end_layout + +\begin_layout Plain Layout + +"B";"B1" ** +\backslash +dir{-}; +\end_layout + +\begin_layout Plain Layout + +"B2";"B1" ** +\backslash +crv{(13,-6) & (2,-8)}; +\end_layout + +\begin_layout Plain Layout + +"A2";"A1" ** +\backslash +crv{(-13,-6) & (-2,-8)}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +endxy +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +xy 0;/r.18pc/: +\end_layout + +\begin_layout Plain Layout + +(20,2)*{ +\backslash +bullet}="RU"+(1,3)*{x^{ +\backslash +ast}}; +\end_layout + +\begin_layout Plain Layout + +(16,-3)*{ +\backslash +bullet}="RD"+(2.5,2)*{x^{ +\backslash +ast}}; +\end_layout + +\begin_layout Plain Layout + +(-16,2)*{ +\backslash +bullet}="LU"+(-1,2)*{x}; +\end_layout + +\begin_layout Plain Layout + +(-20,-3)*{ +\backslash +bullet}="LD"+(-1,2)*{x}; +\end_layout + +\begin_layout Plain Layout + +"RU";"RD" ** +\backslash +crv{(4,2) & (4,-1)}; ?(.1)* +\backslash +dir{<}; ?(.85)* +\backslash +dir{<}; +\end_layout + +\begin_layout Plain Layout + +"LD";"LU" ** +\backslash +crv{(-4,-2) & (-4,1)}; +\end_layout + +\begin_layout Plain Layout + +?(.08)* +\backslash +dir{<}; ?(.85)* +\backslash +dir{<}; +\end_layout + +\begin_layout Plain Layout + +(7.5,0)*{}="x1"; (-7.5,0)*{}="x2"; +\end_layout + +\begin_layout Plain Layout + +"x1"; "x2" ** +\backslash +crv{(7,-10) & (-7,-10)}; +\end_layout + +\begin_layout Plain Layout + +(16,-20)*{ +\backslash +bullet}="RDD"+(2.5,-1)*{x^{ +\backslash +ast}}; +\end_layout + +\begin_layout Plain Layout + +(-20,-20)*{ +\backslash +bullet}="LDD"+(-1,-3)*{x}; +\end_layout + +\begin_layout Plain Layout + +(20,-12.5)*{ +\backslash +bullet}="RUD"+(3.5,1)*{x^{ +\backslash +ast}}; +\end_layout + +\begin_layout Plain Layout + +(-16,-15)*{ +\backslash +bullet}="LUD"; +\end_layout + +\begin_layout Plain Layout + +(-16,-2.5)*{}="A"; (16.1,-14.9)*{}="B"; +\end_layout + +\begin_layout Plain Layout + +"RD"; "RDD" ** +\backslash +dir{-}; +\end_layout + +\begin_layout Plain Layout + +"LD"; "LDD" ** +\backslash +dir{-}; +\end_layout + +\begin_layout Plain Layout + +"A"; "LUD" ** +\backslash +dir{.}; +\end_layout + +\begin_layout Plain Layout + +"RDD"; "LDD" ** +\backslash +crv{(0,-17)}; ?(.57)* +\backslash +dir{>}; +\end_layout + +\begin_layout Plain Layout + +"RU"; "RUD" ** +\backslash +dir{-}; +\end_layout + +\begin_layout Plain Layout + +"LU"; "A" ** +\backslash +dir{-}; +\end_layout + +\begin_layout Plain Layout + +"B"; "RUD" ** +\backslash +crv{(18,-14.15)}; +\end_layout + +\begin_layout Plain Layout + +"B"; "LUD" ** +\backslash +crv{~*=<4pt>{.}(0,-18)}; ?(.4)* +\backslash +dir{<}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +endxy +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Strings +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +xy (-15,0)*{};(15,0)*{}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +endxy +\end_layout + +\begin_layout Plain Layout + + +\backslash +qquad = +\backslash +qquad +\backslash +xy +\end_layout + +\begin_layout Plain Layout + +(-10,12)*{}; (-10,-12)*{}; ** +\backslash +dir{-}?(.5)* +\backslash +dir{<}+(-4,0)*{F(x)}; +\end_layout + +\begin_layout Plain Layout + +(-2,12)*{}="1"; +\end_layout + +\begin_layout Plain Layout + +(6,-7) *{}="2"; +\end_layout + +\begin_layout Plain Layout + +(14,-7) *{}="3"; +\end_layout + +\begin_layout Plain Layout + +(14,-13)*{}="3'"; +\end_layout + +\begin_layout Plain Layout + +(18,0) *={}=""; +\end_layout + +\begin_layout Plain Layout + +"1";"2" ** +\backslash +crv{(-4,-21)&(5,-15)}; +\end_layout + +\begin_layout Plain Layout + +?(.15)* +\backslash +dir{<}+(5,10)*{ +\backslash +overline{F(x)}}; +\end_layout + +\begin_layout Plain Layout + +"2";"3" ** +\backslash +crv{(6,1)&(14,1)}; +\end_layout + +\begin_layout Plain Layout + +?(0)* +\backslash +dir{<}+(4,8)*{ +\backslash +widetilde{F(i_x)}} ; +\end_layout + +\begin_layout Plain Layout + +?(.95)* +\backslash +dir{<}+(5,-2)*{F( +\backslash +overline x)}; +\end_layout + +\begin_layout Plain Layout + +"3";"3'" ** +\backslash +dir{-}; +\end_layout + +\begin_layout Plain Layout + +(-2,6)*{}="X1"; +\end_layout + +\begin_layout Plain Layout + +(-10,6)*{}="X2"; +\end_layout + +\begin_layout Plain Layout + +"X1";"X2" ** +\backslash +crv{~*=<2pt>{.}(-2,-1)&(-10,-1)}; +\end_layout + +\begin_layout Plain Layout + +(-2,-6)*{}="XA"; +\end_layout + +\begin_layout Plain Layout + +(-10,-6)*{}="XB"; +\end_layout + +\begin_layout Plain Layout + +"XA";"XB" ** +\backslash +crv{~*=<2pt>{.}(-2,1)&(-10,1)}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +endxy +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Categories +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +xymatrix{ +\end_layout + +\begin_layout Plain Layout + +(x +\backslash +otimes 1) +\backslash +otimes y +\end_layout + +\begin_layout Plain Layout + + +\backslash +ar[rr]^{a_{x,1,y}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +ar[dr]_{r_x +\backslash +otimes 1_y} +\end_layout + +\begin_layout Plain Layout + +&& x +\backslash +otimes(1 +\backslash +otimes y) +\end_layout + +\begin_layout Plain Layout + + +\backslash +ar[dl]^{1_x +\backslash +otimes +\backslash +ell_y } +\backslash + +\backslash + +\end_layout + +\begin_layout Plain Layout + +& x +\backslash +otimes y } +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +xy +\end_layout + +\begin_layout Plain Layout + +(-9,0)*+{ +\backslash +bullet}="1"; +\end_layout + +\begin_layout Plain Layout + +(0,0)*+{ +\backslash +bullet}="2"; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/^.9pc/ "1";"2"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.9pc/ "1";"2"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/^2pc/ "1";"2"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_2pc/ "1";"2"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@{=>} (-4.5,1.5)*{};(-4.5,-1.5)*{}} ; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@{=>} (-4.5,7.25)*{};(-4.5,4.75)*{}} ; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@{=>} (-4.5,-4.75)*{};(-4.5,-7.25)*{}} ; +\end_layout + +\begin_layout Plain Layout + +(0,0)*+{ +\backslash +bullet}="1"; +\end_layout + +\begin_layout Plain Layout + +(9,0)*+{ +\backslash +bullet}="2"; +\end_layout + +\begin_layout Plain Layout + +(18,0)*+{ +\backslash +bullet}="3"; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar "1";"2"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar "2";"3"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/^1pc/ "1";"2"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_1pc/ "1";"2"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@{=>} (4.5,3)*{};(4.5,.75)*{}} ; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@{=>} (4.5,-.75)*{};(4.5,-3)*{}} ; +\end_layout + +\begin_layout Plain Layout + + +\backslash +endxy +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Transformations +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +xy %FIG.19. + Natural transformation between functors. +\end_layout + +\begin_layout Plain Layout + +(-26,-2)*+{ +\backslash +bullet}="a"; +\end_layout + +\begin_layout Plain Layout + +(-12,3)*+{ +\backslash +bullet}="b"; +\end_layout + +\begin_layout Plain Layout + +(-16,-5)*+{ +\backslash +bullet}="c"; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/^.25pc/ "a";"b"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.25pc/"a";"c"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.15pc/ "b";"c"}; +\end_layout + +\begin_layout Plain Layout + +%START TOP +\end_layout + +\begin_layout Plain Layout + +(12,10)*+{ +\backslash +bullet}="ta"; +\end_layout + +\begin_layout Plain Layout + +(26,15)*+{ +\backslash +bullet}="tb"; +\end_layout + +\begin_layout Plain Layout + +(22,8)*+{ +\backslash +bullet}="tc"; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/^.25pc/ "ta";"tb"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.25pc/ "ta";"tc"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.15pc/ "tb";"tc"}; +\end_layout + +\begin_layout Plain Layout + +%START bottom +\end_layout + +\begin_layout Plain Layout + +(12,-10)*+{ +\backslash +bullet}="ba"; +\end_layout + +\begin_layout Plain Layout + +(26,-5)*+{ +\backslash +bullet}="bb"; +\end_layout + +\begin_layout Plain Layout + +(22,-12)*+{ +\backslash +bullet}="bc"; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/^.25pc/@{.>} "ba";"bb"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.25pc/ "ba";"bc"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.15pc/ "bb";"bc"}; +\end_layout + +\begin_layout Plain Layout + +%START CONNECT +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.15pc/ "ta";"ba"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.15pc/ "tb";"bb"}; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.15pc/ "tc";"bc"}; +\end_layout + +\begin_layout Plain Layout + +%START ARROWS AND LABELS +\end_layout + +\begin_layout Plain Layout + +(-12,6)*{}="DF"; +\end_layout + +\begin_layout Plain Layout + +(6,10)*{}="CF"; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/^.35pc/^F "DF";"CF"}; +\end_layout + +\begin_layout Plain Layout + +(-12,-6)*{}="DF"; +\end_layout + +\begin_layout Plain Layout + +(6,-10)*{}="CF"; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@/_.35pc/_G "DF";"CF"}; +\end_layout + +\begin_layout Plain Layout + +(-2,5)*{}="DF"; +\end_layout + +\begin_layout Plain Layout + +(-2,-5)*{}="CF"; +\end_layout + +\begin_layout Plain Layout + +{ +\backslash +ar@{=>}^{ +\backslash +alpha} "DF";"CF"}; +\end_layout + +\begin_layout Plain Layout + +(29,3)*{D}; +\end_layout + +\begin_layout Plain Layout + +(-23,3)*{C}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +endxy +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +IPA +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +textipa{Ekspl@"neIS@n} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +QTree +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Tree[.S [.N This ] [.V is ] [.NP [.Det a ] [.N test ] ] ] +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Tree [.$ +\backslash +sigma$ $ +\backslash +mu$ $ +\backslash +mu$ ] +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +PSTricks +\begin_inset CommandInset label +LatexCommand label +name "sec:PSTricks" + +\end_inset + + +\end_layout + +\begin_layout Standard +Some simple graphing examples. +\end_layout + +\begin_layout Subsection +Function plotting +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +begin{pspicture*}(-1,-3.5)(10.5,3.5) +\end_layout + +\begin_layout Plain Layout + + +\backslash +psaxes{->}(0,0)(0,-3)(10,3) +\end_layout + +\begin_layout Plain Layout + + +\backslash +uput[-90](10,0){$x$} +\backslash +uput[0](0,3){$f(x)$} +\end_layout + +\begin_layout Plain Layout + + +\backslash +psplot[linecolor=red,linewidth=1pt]{0.1}{10}{ x ln } +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pspicture*} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Inline data plotting +\end_layout + +\begin_layout Standard +\align center +\begin_inset Preview + +\begin_layout Standard +\align center +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +begin{pspicture*}(-1.5,-1.5)(11,5) +\end_layout + +\begin_layout Plain Layout + + +\backslash +psaxes{->}(0,0)(0,0)(10,5) +\end_layout + +\begin_layout Plain Layout + + +\backslash +psset{linewidth=2.5pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +rput(5.0,-1.0){Speed [MPH]} +\end_layout + +\begin_layout Plain Layout + + +\backslash +rput(-1.0,1.0){ +\backslash +begin{rotate}{90}Cost [Dollars] +\backslash +end{rotate}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +savedata{ +\backslash +mydata}[{{0,0},{1.3,0.32},{5.5,1.1},{6.5,1.15},{8.1,1.28},{10,4}}] +\end_layout + +\begin_layout Plain Layout + + +\backslash +dataplot[plotstyle=curve,showpoints=true,dotstyle=triangle,linecolor=blue]{ +\backslash +mydata} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pspicture*} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Lissajous curves +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +begin{pspicture*}(-1.1,-1.1)(1.1,1.1) +\end_layout + +\begin_layout Plain Layout + + +\backslash +parametricplot[plotstyle=line,plotpoints=50,linecolor=red]{0}{8}{50 t mul + cos 100 t mul sin} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pspicture*} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +begin{pspicture*}(-1.1,-1.1)(1.1,1.1) +\end_layout + +\begin_layout Plain Layout + + +\backslash +parametricplot[plotstyle=line,plotpoints=100,linecolor=red]{0}{8}{150 t + mul cos 100 t mul sin} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pspicture*} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +begin{pspicture*}(-1.1,-1.1)(1.1,1.1) +\end_layout + +\begin_layout Plain Layout + + +\backslash +parametricplot[plotstyle=line,plotpoints=150,linecolor=red]{0}{8}{150 t + mul cos 200 t mul sin} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pspicture*} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +begin{pspicture*}(-1.1,-1.1)(1.1,1.1) +\end_layout + +\begin_layout Plain Layout + + +\backslash +parametricplot[plotstyle=line,plotpoints=200,linecolor=red]{0}{8}{250 t + mul cos 200 t mul sin} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pspicture*} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +TikZ +\end_layout + +\begin_layout Standard +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.texample.net/media/tikz/examples/TEX/free-body-diagrams.tex +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +def +\backslash +iangle{35} % Angle of the inclined plane +\end_layout + +\begin_layout Plain Layout + + +\backslash +def +\backslash +down{-90} +\end_layout + +\begin_layout Plain Layout + + +\backslash +def +\backslash +arcr{0.5cm} % Radius of the arc used to indicate angles +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +begin{tikzpicture}[ +\end_layout + +\begin_layout Plain Layout + + force/.style={>=latex,draw=blue,fill=blue}, +\end_layout + +\begin_layout Plain Layout + + axis/.style={densely dashed,gray,font= +\backslash +small}, +\end_layout + +\begin_layout Plain Layout + + M/.style={rectangle,draw,fill=lightgray,minimum size=0.5cm,thin}, +\end_layout + +\begin_layout Plain Layout + + m/.style={rectangle,draw=black,fill=lightgray,minimum size=0.3cm,thin}, +\end_layout + +\begin_layout Plain Layout + + plane/.style={draw=black,fill=blue!10}, +\end_layout + +\begin_layout Plain Layout + + string/.style={draw=red, thick}, +\end_layout + +\begin_layout Plain Layout + + pulley/.style={thick}, +\end_layout + +\begin_layout Plain Layout + +] +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +matrix[column sep=1cm] { +\end_layout + +\begin_layout Plain Layout + + %% Sketch +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw[plane] (0,-1) coordinate (base) +\end_layout + +\begin_layout Plain Layout + + -- coordinate[pos=0.5] (mid) ++( +\backslash +iangle:3) coordinate (top) +\end_layout + +\begin_layout Plain Layout + + |- (base) -- cycle; +\end_layout + +\begin_layout Plain Layout + + +\backslash +path (mid) node[M,rotate= +\backslash +iangle,yshift=0.25cm] (M) {}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw[pulley] (top) -- ++( +\backslash +iangle:0.25) circle (0.25cm) +\end_layout + +\begin_layout Plain Layout + + ++ (90- +\backslash +iangle:0.5) coordinate (pulley); +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw[string] (M.east) -- ++( +\backslash +iangle:1.5cm) arc (90+ +\backslash +iangle:0:0.25) +\end_layout + +\begin_layout Plain Layout + + -- ++(0,-1) node[m] {}; +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw[->] (base)++( +\backslash +arcr,0) arc (0: +\backslash +iangle: +\backslash +arcr); +\end_layout + +\begin_layout Plain Layout + + +\backslash +path (base)++( +\backslash +iangle*0.5: +\backslash +arcr+5pt) node {$ +\backslash +alpha$}; +\end_layout + +\begin_layout Plain Layout + + %% +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +& +\end_layout + +\begin_layout Plain Layout + + %% Free body diagram of M +\end_layout + +\begin_layout Plain Layout + + +\backslash +begin{scope}[rotate= +\backslash +iangle] +\end_layout + +\begin_layout Plain Layout + + +\backslash +node[M,transform shape] (M) {}; +\end_layout + +\begin_layout Plain Layout + + % Draw axes and help lines +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + {[axis,->] +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw (0,-1) -- (0,2) node[right] {$+y$}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw (M) -- ++(2,0) node[right] {$+x$}; +\end_layout + +\begin_layout Plain Layout + + % Indicate angle. + The code is a bit awkward. +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw[solid,shorten >=0.5pt] ( +\backslash +down- +\backslash +iangle: +\backslash +arcr) +\end_layout + +\begin_layout Plain Layout + + arc( +\backslash +down- +\backslash +iangle: +\backslash +down: +\backslash +arcr); +\end_layout + +\begin_layout Plain Layout + + +\backslash +node at ( +\backslash +down-0.5* +\backslash +iangle:1.3* +\backslash +arcr) {$ +\backslash +alpha$}; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + % Forces +\end_layout + +\begin_layout Plain Layout + + {[force,->] +\end_layout + +\begin_layout Plain Layout + + % Assuming that Mg = 1. + The normal force will therefore be cos(alpha) +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw (M.center) -- ++(0,{cos( +\backslash +iangle)}) node[above right] {$N$}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw (M.west) -- ++(-1,0) node[left] {$f_R$}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw (M.east) -- ++(1,0) node[above] {$T$}; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{scope} +\end_layout + +\begin_layout Plain Layout + + % Draw gravity force. + The code is put outside the rotated +\end_layout + +\begin_layout Plain Layout + + % scope for simplicity. + No need to do any angle calculations. + +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw[force,->] (M.center) -- ++(0,-1) node[below] {$Mg$}; +\end_layout + +\begin_layout Plain Layout + + %% +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +& +\end_layout + +\begin_layout Plain Layout + + %%% +\end_layout + +\begin_layout Plain Layout + + % Free body diagram of m +\end_layout + +\begin_layout Plain Layout + + +\backslash +node[m] (m) {}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw[axis,->] (m) -- ++(0,-2) node[left] {$+$}; +\end_layout + +\begin_layout Plain Layout + + {[force,->] +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw (m.north) -- ++(0,1) node[above] {$T'$}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +draw (m.south) -- ++(0,-1) node[right] {$mg$}; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash + +\backslash + +\end_layout + +\begin_layout Plain Layout + +}; +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{tikzpicture} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Graphics_&_Insets/Itemize_Bullets.lyx b/lib/examples/Graphics_&_Insets/Itemize_Bullets.lyx new file mode 100644 index 0000000000..0d1a568f0d --- /dev/null +++ b/lib/examples/Graphics_&_Insets/Itemize_Bullets.lyx @@ -0,0 +1,4396 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble + +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 10 +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\bulletLaTeX 0 "\raise1pt\hbox{\small\(\blacktriangleright\)}" +\bulletLaTeX 1 "\raise1pt\hbox{\(\leadsto\)}" +\bullet 2 4 8 3 +\bullet 3 0 8 -1 +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Section* +Introduction +\end_layout + +\begin_layout Standard +You'll see pretty quickly that bullet settings can be quite complex if you + want them to be. + Don't be frightened, most settings are just a mouse click or two away. +\end_layout + +\begin_layout Itemize + +\emph on +itemize +\emph default + is the standard environment for bullet lists +\end_layout + +\begin_deeper +\begin_layout Itemize +it has its own counter that limits it to 4 levels +\end_layout + +\begin_deeper +\begin_layout Itemize +each level can have its own bullet shape +\end_layout + +\begin_deeper +\begin_layout Itemize +\SpecialChar LyX + however displays all bullets as an `*' +\end_layout + +\end_deeper +\end_deeper +\end_deeper +\begin_layout Itemize +Also note that \SpecialChar LyX + does +\emph on +not +\emph default + check the environment depths for you +\end_layout + +\begin_deeper +\begin_layout Itemize +Other than to enforce the \SpecialChar LaTeX + depth limit of 6 for all lists. +\end_layout + +\end_deeper +\begin_layout Standard +Are there any other restrictions? +\end_layout + +\begin_layout Standard +Yes. + The bullet selection support will allow you to set the bullets used across + the entire document only. + If you want to customise each paragraph you'll have to do that manually. +\end_layout + +\begin_layout Standard +You can access the popup via the +\family sans +Layout\SpecialChar menuseparator +Document\SpecialChar ldots + +\family default + menu and select the +\family sans +Bullet Shapes +\family default + button. + Try it now. +\end_layout + +\begin_layout Section* +Bullet Tables: +\end_layout + +\begin_layout Standard +The following tables are those used to generate the bullet panels in the + +\family sans +Itemize Bullet Selection +\family default + popup. +\end_layout + +\begin_layout Subsection* +Standard +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +– +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\vdash$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\dashv$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\flat$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\natural$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\sharp$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\ast$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\star$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\bullet$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\circ$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\cdot$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\dagger$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\bigtriangleup$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\bigtriangledown$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\triangleleft$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\triangleright$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\lhd$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\rhd$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\oplus$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\ominus$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\otimes$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\oslash$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\odot$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\spadesuit$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\diamond$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Diamond$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Box$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\diamondsuit$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\heartsuit$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\clubsuit$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\rightarrow$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\leadsto$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\rightharpoonup$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\rightharpoondown$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Rightarrow$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\succ$ +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Subsection* +Maths (AMS +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +American Mathematical Society +\end_layout + +\end_inset + +-symbols) +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Rrightarrow$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\rightarrowtail$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\twoheadrightarrow$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\rightsquigarrow$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\looparrowright$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\multimap$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\boxtimes$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\boxplus$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\boxminus$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\boxdot$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\divideontimes$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Vvdash$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\lessdot$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\gtrdot$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\maltese$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\bigstar$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\checkmark$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\Vdash$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\backsim$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\thicksim$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\centerdot$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\circleddash$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\circledast$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\circledcirc$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\vartriangleleft$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\vartriangleright$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\vartriangle$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\triangledown$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\lozenge$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\square$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\blacktriangleleft$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\blacktriangleright$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\blacktriangle$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\blacktriangledown$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\blacklozenge$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\blacksquare$ +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Subsection* +Ding 1 (PSNFSS +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +NFSS is the New Font Selecting Scheme of \SpecialChar LaTeX2e + (basically, what changed the font + commands from +\family typewriter +{ +\backslash +bf \SpecialChar ldots +} +\family default + to +\family typewriter + +\backslash +textbf{\SpecialChar ldots +} +\family default +, although the real changes are inside the guts). + PS stands for PostScript. + PSNFSS is a set of \SpecialChar LaTeX + files which provide NFSS support for the basic set + of 35 PS fonts present in many postscript printers. + +\end_layout + +\end_inset + + Fonts - Zapf Dingbats and Symbols) +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{108} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{109} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{119} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{197} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{196} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{183} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{71} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{70} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{118} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{117} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{224} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{215} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{111} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{112} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{113} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{114} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{68} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{209} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{120} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{121} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{122} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{110} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{115} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{116} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{42} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{67} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{66} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{82} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{81} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{228} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{162} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{163} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{166} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{167} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{226} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{227} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Subsection* +Ding 2 +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{37} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{38} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{34} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{36} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{39} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{40} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{41} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{42} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{43} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{44} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{45} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{47} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{53} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{54} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{59} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{57} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{62} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{61} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{55} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{56} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{58} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{60} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{63} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{64} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{51} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{52} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{170} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{167} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{168} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{169} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{164} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{165} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{171} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{168} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{169} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{170} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Subsection* +Ding 3 +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{65} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{76} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{75} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{72} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{80} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{74} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{78} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{77} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{79} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{85} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{90} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{98} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{83} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{84} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{86} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{87} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{88} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{89} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{92} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{91} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{93} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{105} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{94} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{99} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{103} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{104} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{106} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{107} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{68} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{69} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{100} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{101} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{102} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{96} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{95} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{97} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Subsection* +Ding 4 +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{223} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{224} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{225} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{232} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{229} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{230} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{238} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{237} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{236} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{235} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{234} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{233} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{239} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{241} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{250} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{251} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{49} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{50} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{217} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{245} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{243} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{248} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{252} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{253} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{219} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{213} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{221} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{222} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{220} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{212} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{174} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{222} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{254} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{242} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ding{231} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Pisymbol{psy}{45} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Graphics_&_Insets/Minted_File_Listing.lyx b/lib/examples/Graphics_&_Insets/Minted_File_Listing.lyx new file mode 100644 index 0000000000..282925b785 --- /dev/null +++ b/lib/examples/Graphics_&_Insets/Minted_File_Listing.lyx @@ -0,0 +1,215 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +\usepackage{xcolor} +\definecolor{lgray}{rgb}{0.95, 0.95, 0.95} +\usepackage{eso-pic} +\newlength{\boxwidth} +\newlength{\boxheight} +\setlength{\boxwidth}{\paperwidth} +\setlength{\boxheight}{\paperheight} +\addtolength{\boxwidth}{-1.2cm} +\addtolength{\boxheight}{-2.5cm} +\AddToShipoutPicture{% + \setlength{\@tempdimb}{0.5cm}% + \setlength{\@tempdimc}{1.0cm}% + \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){% + \hbox{\fboxrule=0.6pt\fbox{\vbox to \boxheight{% + \vss\hbox to \boxwidth{\hss}\vss}}}}% + \addtolength{\@tempdimc}{\boxheight}% + \addtolength{\@tempdimc}{6.5pt}% + \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){% + \hbox{\fboxrule=0.6pt\fcolorbox{black}{lgray}{\vbox to 3.5mm{% + \vss\hbox to \boxwidth{\hss\textbf{\textsf{\small\titlename}}\hss% + \hbox to 0pt{\hss\textsf{\footnotesize Page \arabic{page}/\pageref{lastpage}~}}}\vss}}}}% +} +\end_preamble +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "times" "DejaVu Sans Mono" +\font_sans "helvet" "DejaVu Sans" +\font_typewriter "courier" "DejaVu Sans Mono" +\font_math "auto" "default" +\font_default_family default +\use_non_tex_fonts true +\font_sc false +\font_osf false +\font_sf_scale 95 95 +\font_tt_scale 110 110 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format pdf4 +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref false +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation landscape +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 1 +\index Index +\shortcut idx +\color #008000 +\end_index +\leftmargin 0.5cm +\topmargin 1.35cm +\rightmargin 0.5cm +\bottommargin 1.05cm +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 2 +\papersides 1 +\paperpagestyle empty +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This example shows a possible use of the minted package (version 2.1 or later) + for typesetting listings containing unicode characters. + For this reason, the default output format is +\family typewriter +PDF (XeTeX) +\family default +. + The listing is typeset using the DejaVu font. + If this font is not installed on your system, you need to choose a different + one in Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Fonts. +\end_layout + +\begin_layout Plain Layout +Other than the minted latex package, you also need the pygments python module. + See the minted documentation for directions on how to install it and what + you have to do for using it with LaTeX. + If you use a linux system, you can possibly install a suitable package + through your package manager. + Look for python packages named +\family typewriter +python-pygments +\family default + or similar. +\end_layout + +\begin_layout Plain Layout +Another required package is the +\family typewriter +eso-pic +\family default + latex package, so you also need to install it. + It is used to draw a page frame around the listing. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +def +\backslash +titlename{lyxpak.py} +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This is the title of the listing appearing in the headers. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand inputminted +filename "../scripts/lyxpak.py" +lstparams "language=python,style=bw,fontsize={\\tiny},baselinestretch={1.05},frame=leftline,framesep=10pt,breaklines,breakanywhere" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset label +LatexCommand label +name "lastpage" + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This label is needed to show the total number of pages in upper-right corner + of the PDF. +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Graphics_&_Insets/Minted_Listings.lyx b/lib/examples/Graphics_&_Insets/Minted_Listings.lyx new file mode 100644 index 0000000000..f8b4ba0528 --- /dev/null +++ b/lib/examples/Graphics_&_Insets/Minted_Listings.lyx @@ -0,0 +1,292 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +\usepackage{xcolor} +\definecolor{lgray}{rgb}{0.95, 0.95, 0.95} +\end_preamble +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 1 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\listings_params "breaklines=true" +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This example shows how to typeset code listings in a document using the + minted latex package. +\end_layout + +\begin_layout Plain Layout +Other than the minted package, you also need the pygments python module. + See the minted documentation for directions on how to install it and what + you have to do for using it with LaTeX. + If you use a linux system, you can possibly install a suitable package + through your package manager. + Look for python packages named +\family typewriter +python-pygments +\family default + or similar. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +A common example of a C program is shown in Listing +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "lis:foo" +plural "false" +caps "false" +noprefix "false" + +\end_inset + + using the default style, a light gray background, visible spaces, and numbered + lines. + The listing of some fortran code using the +\family typewriter +bw +\family default + style is instead shown in a non-floating listing below. +\end_layout + +\begin_layout Standard +\begin_inset listings +lstparams "language=C,float=t,numbers=left,showspaces=true,bgcolor=lgray" +inline false +status open + +\begin_layout Plain Layout + +int main() +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + printf( +\begin_inset Quotes eld +\end_inset + +Hello world! +\backslash +n +\begin_inset Quotes erd +\end_inset + +); +\end_layout + +\begin_layout Plain Layout + + return 0; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +\begin_inset Caption Standard + +\begin_layout Plain Layout +foo +\begin_inset CommandInset label +LatexCommand label +name "lis:foo" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset listings +lstparams "language=Fortran,frame=lines,style=bw" +inline false +status open + +\begin_layout Plain Layout + +* Compute machine precision +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + implicit double precision (a-h,o-z) +\end_layout + +\begin_layout Plain Layout + + unit = 1.d0 +\end_layout + +\begin_layout Plain Layout + + 1 eps = unit +\end_layout + +\begin_layout Plain Layout + + unit = 0.5d0*unit +\end_layout + +\begin_layout Plain Layout + + u = 1.d0-unit +\end_layout + +\begin_layout Plain Layout + + if (u .lt. + 1.d0) go to 1 +\end_layout + +\begin_layout Plain Layout + + write(*,'(1pg24.17)') eps +\end_layout + +\begin_layout Plain Layout + + stop +\end_layout + +\begin_layout Plain Layout + + end +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Here is an inline listing of some TeX code: +\begin_inset listings +lstparams "language=TeX,fontfamily=tt" +inline true +status open + +\begin_layout Plain Layout + + +\backslash +let +\backslash +thefun +\backslash +begin +\end_layout + +\end_inset + +. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Graphics_&_Insets/XY-Figure.lyx b/lib/examples/Graphics_&_Insets/XY-Figure.lyx new file mode 100644 index 0000000000..5982b7c487 --- /dev/null +++ b/lib/examples/Graphics_&_Insets/XY-Figure.lyx @@ -0,0 +1,138 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +\usepackage[all]{xy} +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Section* +Editing +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Pic figures in \SpecialChar LyX + +\end_layout + +\begin_layout Standard +Below you see an +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-Pic diagram inside \SpecialChar LyX + being edited and to the right you see how the diagram + appears as soon as the cursor leaves the editing area. +\end_layout + +\begin_layout Standard +\begin_inset Formula $\xymatrix{A\ar[d]\ar[r] & B\ar[d]\ar@{-->}[dl]\\ +C\ar@{_{(}->}[r] & D\ar@/{}_{1pc}/[u] +} +$ +\end_inset + + +\begin_inset Formula $\xymatrix{\, & \, & \mbox{}A\ar[r]\ar[d] & B\ar[d]\ar@{-->}[dl]\\ +\, & & C\ar@{_{(}->}[r] & D\ar@/_{1pc}/[u] +} +$ +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Graphics_&_Insets/XY-Pic.lyx b/lib/examples/Graphics_&_Insets/XY-Pic.lyx new file mode 100644 index 0000000000..b4419f263f --- /dev/null +++ b/lib/examples/Graphics_&_Insets/XY-Pic.lyx @@ -0,0 +1,3894 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrartcl +\begin_preamble +% DO NOT ALTER THIS PREAMBLE!!! +% +% This preamble is designed to ensure that the file prints +% out as advertised. If you mess with this preamble, +% parts of this document may not print out as expected. If you +% have problems LaTeXing this file, please contact +% the documentation team +% email: lyx-docs@lists.lyx.org + +\usepackage[all]{xy} + +% define new commands used in sec. 5.1 +\newcommand{\xyR}[1]{ + \xydef@\xymatrixrowsep@{#1}} +\newcommand{\xyC}[1]{ + \xydef@\xymatrixcolsep@{#1}} + +\newdir{|>}{!/4.5pt/@{|}*:(1,-.2)@^{>}*:(1,+.2)@_{>}} + +% a pdf-bookmark for the TOC is added +\let\myTOC\tableofcontents +\renewcommand\tableofcontents{% + \pdfbookmark[1]{\contentsname}{} + \myTOC } + +% redefine the \LyX macro for PDF bookmarks +\def\LyX{\texorpdfstring{% + L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} + {LyX}} + +% if pdflatex is used +\usepackage{ifpdf} +\ifpdf + +% set fonts for nicer pdf view +\IfFileExists{lmodern.sty} + {\usepackage{lmodern}}{} + +\fi % end if pdflatex is used +\end_preamble +\options BCOR7.5mm +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "Using XY-pc in LyX" +\pdf_author "H. Peter Gumm" +\pdf_subject "LyX's XY-pic manual" +\pdf_keywords "LyX, documentation" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 2 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks true +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true,pdfstartview=XYZ, plainpages=false" +\papersize a4paper +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 2 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict true +\end_header + +\begin_body + +\begin_layout Title +Using +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic in \SpecialChar LyX + +\end_layout + +\begin_layout Author +H. + Peter Gumm +\end_layout + +\begin_layout Abstract +With the recent versions of \SpecialChar LyX + and with the +\family typewriter +preview +\family default +-style installed in the \SpecialChar LaTeX +-System, the graph drawing package +\family typewriter + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\family default +-pic can be conveniently used inside \SpecialChar LyX +. + Diagrams can be edited and displayed inside the main \SpecialChar LyX + editing window. + Here, we shall describe how to use the +\family typewriter + +\backslash +xymatrix +\family default + command from +\family typewriter +xypic +\family default + inside \SpecialChar LyX + in order to draw, to edit and to preview diagrams as typically + used in category theory, algebra, and related fields. + +\end_layout + +\begin_layout Abstract +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +The +\family typewriter +xypic +\family default +-package has long served as a convenient tool for easily constructing graphs + and diagrams in \SpecialChar LaTeX +. + Unfortunately, its use in \SpecialChar LyX + had long been restricted to the infamous \SpecialChar TeX + code + boxes, meaning that the \SpecialChar LyX + editor could only display the \SpecialChar LaTeX +-source and not + the finished diagram. + The new +\family typewriter +preview +\family default +-style of \SpecialChar LaTeX + which is part of the AUC\SpecialChar TeX + project +\begin_inset CommandInset citation +LatexCommand cite +key "AUCTeX" +literal "true" + +\end_inset + +, finally enables the editing and displaying of +\family typewriter +xypic +\family default +-diagrams, constructed, displayed and interactively edited inside \SpecialChar LyX +. +\end_layout + +\begin_layout Standard +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Standard +\align center +\begin_inset Graphics + filename xyfigure.png + width 75col% + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Standard +In this note, we describe how +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic can be used from inside \SpecialChar LyX +, how diagrams can be created and edited. + We have tested the following using \SpecialChar LyX + versions 1.3.7 up to 1.6, running under + Windows +\begin_inset space \thinspace{} +\end_inset + +XP and under Windows Vista. + +\end_layout + +\begin_layout Standard +There are two modes of operations: For a start, and for some first tests, + it may be easiest to first enter the +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic code inside the \SpecialChar LyX +-window, select it all and convert it to a graphical + representation by pressing +\family sans +Ctrl-m +\family default + or +\family sans +Ctrl-M +\family default +. + If you use +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic more frequently, or if you want to modify your initial figure, you + will want to assemble and modify your figures using \SpecialChar LyX +'s math editor. + +\end_layout + +\begin_layout Standard +Once the cursor is moved over a diagram, this is displayed as an array of + nodes and arrow-commands. + These can be changed interactively. + When the cursor leaves the editing area, the diagram reappears. + +\end_layout + +\begin_layout Standard +In the first two sections of this documentation, we explain how to use \SpecialChar LyX + + in the first mentioned mode and we introduce all +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic features that might be of use for drawing commutative diagrams, graphs + or automata. + Section +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:math-editor" + +\end_inset + + explains how to use the +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic commands inside a math-editing area. + +\end_layout + +\begin_layout Standard +It is not our intention to write another introduction to +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic, rather our motivation is to give an introduction how the most important + commands work inside \SpecialChar LyX +, since the keystrokes as explained in the +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic manual +\begin_inset CommandInset citation +LatexCommand cite +key "xypic manual" +literal "true" + +\end_inset + + will not always function correctly inside \SpecialChar LyX +. + +\end_layout + +\begin_layout Section +Preparation +\end_layout + +\begin_layout Standard +The following requires that the \SpecialChar LaTeX +-packages +\family typewriter +xypic +\family default + and +\family typewriter +preview +\family default + are installed in the \SpecialChar LaTeX + system. + They are available from CTAN, see at +\begin_inset CommandInset citation +LatexCommand cite +key "instant-preview" +literal "true" + +\end_inset + +, resp. + at +\begin_inset CommandInset citation +LatexCommand cite +key "xypic" +literal "true" + +\end_inset + +. + After freshly installing them, it may be necessary, to run +\family sans +Tools\SpecialChar menuseparator +Reconfigure +\family default + from the main \SpecialChar LyX + menu. + The steps to a first diagram output in \SpecialChar LyX + are then: +\end_layout + +\begin_layout Enumerate +Activate and test +\family typewriter +preview +\end_layout + +\begin_deeper +\begin_layout Enumerate +Open \SpecialChar LyX +, choose +\family sans +Tools\SpecialChar menuseparator +Preferences\SpecialChar menuseparator +Look and Feel\SpecialChar menuseparator +Display +\family default + and turn +\emph on +Instant Preview +\emph default + on. +\end_layout + +\begin_layout Enumerate +In +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Math +\begin_inset space ~ +\end_inset + +Options +\family default +, uncheck +\emph on +Use AMS Math package automatically +\emph default + and check +\emph on +Use AMS Math package +\emph default +. +\end_layout + +\begin_layout Enumerate +Test, if +\family typewriter +instant-preview +\family default + works by opening a \SpecialChar LyX +-document and entering any math-formula, e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\begin_inset Formula $a+b=c$ +\end_inset + +. + +\end_layout + +\begin_layout Enumerate +Move the cursor out of the formula, and watch it change its appearance to + look just like in the finished DVI- or PostScript document. + +\end_layout + +\end_deeper +\begin_layout Enumerate +Activate and test +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic +\family typewriter +: +\end_layout + +\begin_deeper +\begin_layout Enumerate +Inside your \SpecialChar LyX +-Document, enter the text +\family typewriter + +\begin_inset Newline newline +\end_inset + + +\backslash +xymatrix{A +\backslash +ar[r] & B} +\family default + . +\end_layout + +\begin_layout Enumerate +Select the whole text and choose +\family sans +Insert\SpecialChar menuseparator +Math\SpecialChar menuseparator +Display Formula +\family default +, or use the corresponding keyboard shortcut +\family sans +Ctrl-M +\family default +. + +\end_layout + +\begin_layout Enumerate +Move the mouse cursor out of the editing box and wait for a split second + to see an arrow appear: +\begin_inset Formula $\xymatrix{A\ar[r] & B} +$ +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Section +Commutative diagrams +\end_layout + +\begin_layout Standard +The following diagram, which is taken from the documentation of +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic +\begin_inset CommandInset citation +LatexCommand cite +key "xypic manual" +literal "true" + +\end_inset + + by its creator Kristoffer H. + Rose, will provide an example for many of the features available with that + package. + Its source code is: +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{ +\begin_inset Newline newline +\end_inset + + U +\backslash +ar@/_{1pc}/[ddr]_ +\backslash +psi +\backslash +ar@/^{1pc}/[drr]^ +\backslash +varphi +\begin_inset Newline newline +\end_inset + + +\backslash +ar@{.>}[dr]|-{(x,y)} +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & X +\backslash +times_Z Y +\backslash +ar[d]^q +\backslash +ar[r]_p & X +\backslash +ar[d]_f +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & Y +\backslash +ar[r]^g & Z } +\end_layout + +\begin_layout LyX-Code + +\end_layout + +\begin_layout Standard +Again, to turn this code into a graphical output, select it all at once + starting from the +\family typewriter + +\backslash +xymatrix{ +\family default + \SpecialChar ldots + up to the closing brace \SpecialChar ldots + +\family typewriter +} +\family default + and turn it into display-math as explained above. + A moment after the cursor leaves the math-area, you should see the diagram + in its full graphical glory as shown below. + +\end_layout + +\begin_layout Standard +\begin_inset Formula $\xymatrix{U\ar@/_{1pc}/[ddr]_{\psi}\ar@/{}^{1pc}/[drr]^{\varphi}\ar@{.>}[dr]|-{(x,y)}\\ + & X\times_{Z}Y\ar[d]^{q}\ar[r]_{p} & X\ar[d]_{f}\\ + & Y\ar[r]^{g} & Z +} +$ +\end_inset + + +\end_layout + +\begin_layout Subsection +The matrix layout of diagrams +\end_layout + +\begin_layout Standard + +\family typewriter +xymatrix +\family default + uses a matrix to define the layout of the vertices of a diagram. + For the above example, we need a +\begin_inset Formula $3\times3$ +\end_inset + +-matrix of which 5 entries are used for the vertices +\begin_inset Formula $U$ +\end_inset + +, +\begin_inset Formula $X\times_{Z}Y$ +\end_inset + +, +\begin_inset Formula $X$ +\end_inset + +, +\begin_inset Formula $Y$ +\end_inset + +, +\begin_inset Formula $Z$ +\end_inset + +, the other positions remaining empty. + In this case, the following matrix determines the layout: +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{ +\begin_inset Newline newline +\end_inset + + U +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & X +\backslash +times_Z Y & X +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & Y & Z } +\end_layout + +\begin_layout Standard +The pattern should be familiar from \SpecialChar LaTeX +: We see three rows, the first two being + terminated by the end-of-line-marker +\family typewriter + +\backslash + +\backslash + +\family default + . + Each line consists of entries, separated by the ampersand +\family typewriter +& +\family default +. + +\end_layout + +\begin_layout Subsection +Arrows +\end_layout + +\begin_layout Standard +Having entered the vertices, we add arrows between them. + The basic +\family typewriter +xypic +\family default +-command to produce an arrow is +\family typewriter + +\backslash +ar +\family default + , it is entered into the cell of the matrix where the arrow is to start. + The target of the arrow is defined by direction commands +\family typewriter +u +\family default + (up) +\family typewriter +d +\family default + (down) +\family typewriter +l +\family default + (left), or +\family typewriter +r +\family default + (right). + These can be combined to a path and enclosed in square brackets. + As an example, the arrows from the vertex +\begin_inset Formula $U$ +\end_inset + + in the upper left corner down and right to the vertices +\begin_inset Formula $X\times_{Z}Y$ +\end_inset + +, +\begin_inset Formula $Y$ +\end_inset + +, and +\begin_inset Formula $X$ +\end_inset + + are, respectively, defined as +\family typewriter + +\backslash +ar[dr] +\family default +, +\family typewriter + +\backslash +ar[ddr] +\family default + and +\family typewriter + +\backslash +ar[drr] +\family default +. + Thus the above diagram with all arrows added becomes: +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{ +\begin_inset Newline newline +\end_inset + + U +\backslash +ar[ddr] +\backslash +ar[drr] +\backslash +ar[dr] +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & X +\backslash +times_Z Y +\backslash +ar[d] +\backslash +ar[r]& X +\backslash +ar[d] +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & Y +\backslash +ar[r] & Z } +\end_layout + +\begin_layout LyX-Code +\begin_inset Formula $\xymatrix{U\ar[ddr]\ar[drr]\ar[dr]\\ + & X\times_{Z}Y\ar[d]\ar[r] & X\ar[d]\\ + & Y\ar[r] & Z +} +$ +\end_inset + + +\end_layout + +\begin_layout LyX-Code + +\end_layout + +\begin_layout LyX-Code + +\end_layout + +\begin_layout Subsection +Labels +\end_layout + +\begin_layout Standard +Labels are attached to arrows by affixing them as upper or lower indices + to the +\family typewriter + +\backslash +ar +\family default +-command. + Thus, +\family typewriter + +\backslash +ar[drr]^ +\backslash +varphi +\family default + defines an arrow going one cell down, two to the right and having the label + +\begin_inset Formula $\varphi$ +\end_inset + + attached above. + To attach a label below the arrow, make it a lower index as in +\family typewriter + +\backslash +ar[ddr]_ +\backslash +psi +\family default +. + This explanation is correct only for arrows pointing to the right. + More precisely, imagine looking along the arrow in the direction it is + pointing. + Then an upper index places a label to the left and a lower index places + it to the right. + Consequently, an arrow pointing from right to left, such as +\family typewriter + +\backslash +ar[l]^ +\backslash +alpha_ +\backslash +beta +\family default + will have label +\begin_inset Formula $\alpha$ +\end_inset + + below and label +\begin_inset Formula $\beta$ +\end_inset + + above the arrow, e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\begin_inset Formula $\xymatrix{\ & \ \ar[l]_{\beta}^{\alpha}.} +$ +\end_inset + +Using the character | instead of ^ or _ , it is even possible to place the + label right onto the arrow, obscuring part of its shaft. + +\end_layout + +\begin_layout Standard +Normally, a label is placed halfway between an arrow's start and target + objects. + In the first diagram, the central arrow starting in +\begin_inset Formula $U$ +\end_inset + + has the label +\begin_inset Formula $(x,y)$ +\end_inset + + in the middle of the arrow's shaft, rather than in the middle between the + two objects it connects. + This is achieved by prefixing the label with a minus sign, here: +\family typewriter + +\backslash +ar[dr]|-{(x,y)} +\family default +. +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{ +\begin_inset Newline newline +\end_inset + + U +\backslash +ar[ddr]_ +\backslash +psi +\backslash +ar[drr]^ +\backslash +varphi +\backslash +ar[dr]|-{(x,y)} +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & X +\backslash +times_Z Y +\backslash +ar[d]^q +\backslash +ar[r]_p& X +\backslash +ar[d]_f +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + & Y +\backslash +ar[r]^g & Z } +\end_layout + +\begin_layout LyX-Code +\begin_inset Formula $\xymatrix{U\ar[ddr]_{\psi}\ar[drr]^{\varphi}\ar[dr]|-{(x,y)}\\ + & X\times_{Z}Y\ar[d]^{q}\ar[r]_{p} & X\ar[d]_{f}\\ + & Y\ar[r]^{g} & Z +} +$ +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic normally permits labels to be shifted towards the tip or towards the + start of an arrow by prefixing the label with a ratio, such as e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\family typewriter +(.3) +\family default +. + In \SpecialChar LyX + this works only for labels which are placed on top of the arrow, such + as +\family typewriter + +\backslash +ar[r]|(0.3){ +\backslash +phi} +\family default +. + +\end_layout + +\begin_layout Standard +For labels placed to the left or to the right of the arrow this does not + work. + The corresponding +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic code such as e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\family typewriter + +\backslash +ar[r]^(.3) +\backslash +phi +\family default + or +\family typewriter + +\backslash +ar[r]_(.3) +\backslash +psi +\family default + is not correctly interpreted by \SpecialChar LyX +'s math editor. + Two workarounds are suggested in the last section of this note. +\end_layout + +\begin_layout Subsection +Arrow modification +\end_layout + +\begin_layout Standard +Modification of the design, the form or the positioning of arrows are introduced + by the +\family typewriter +@ +\family default +-character. + This is followed by a pair of matching brackets, where the form of the + bracket pair, +\family typewriter +{ } +\family default + or +\family typewriter +< > +\family default + or +\family typewriter +/ / +\family default + indicates, whether we want to modify the design, the or the curvature of + the arrow. + Various modifications can be applied to an arrow at the same time. +\end_layout + +\begin_layout Subsubsection +Arrow design +\end_layout + +\begin_layout Standard +Various designs such as +\emph on +solid +\emph default +, +\emph on +dotted +\emph default +, +\emph on +dashed +\emph default + or +\emph on +double +\emph default + are possible for the shaft of an arrow. + These can be combined with various ends and various tips. + In general, the design of an arrow is described by following the command + +\family typewriter + +\backslash +ar +\family default + immediately by an +\family typewriter +@ +\family default +-sign and a pair of braces {\SpecialChar ldots +} containing characters describing the end, + the shaft and the tip of the arrow. + These characters are chosen to give some form of ASCII-rendering of the + real thing. + For instance +\family typewriter + +\backslash +ar@{>..>>} +\family default + produces an arrow with split end, a dotted shaft and double head. + A number of other arrow designs is given in the table below. + Note that the ends of embedding arrows +\begin_inset Formula $\xymatrix{A\ar@{^{(}->}[r] & B} +$ +\end_inset + + are described by raising or lowering opening parentheses, such as in +\family typewriter + +\backslash +ar@{^(->}[r]. +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Result +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Source code in \SpecialChar LyX + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@{-->}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{-->} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@{..>}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{..>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@{~>}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{~>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@{->>}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{->>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@{-->>}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{-->>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@{>->>}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{>->>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@{_{(}->}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{_(->} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@{^{(}->}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{^(->} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@{|-|}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{|-|} +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +Following the @-character by either a 2, 3, _ or a ^, we can produce arrows + with double, triple shaft or arrows showing only the lower or upper half + of their tips and ends. + Arrows need not have tips nor ends, as the last example shows: +\end_layout + +\begin_layout Standard +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Result +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Source code for \SpecialChar LyX + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@2[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@2 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@3[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@_{->}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@_{->} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@^{->}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@^{->} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@^{>>->>}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@^{>\SpecialChar ligaturebreak +>->\SpecialChar ligaturebreak +>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@{^{<}-_{>}}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@{^<-_>} +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\xymatrix{\ \ar@2{--}[r] & \ } +$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family typewriter + +\backslash +ar@2{--} +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Designing your own arrows +\end_layout + +\begin_layout Standard +Within certain limits there is even a way to design your own arrows. + Using some the characters +\family typewriter +><|ox+/()[ +\family default + one can even design one's own arrow tips using the +\family typewriter + +\backslash +newdir +\family default + command in the preamble. + For explanations, we refer to the +\family typewriter + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\family default +-manual, from which we take the example: +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +newdir{|>}{!/4.5pt/@{|}*:(1,-.2)@^{>}*:(1,+.2)@_{>}} +\family default +. +\end_layout + +\begin_layout Standard +\noindent +This defines a new arrow tip, referred to as +\family typewriter +|> +\family default + in +\family typewriter + +\backslash +ar@{-|>}[r] +\family default + and which displays correctly in \SpecialChar LyX + as: +\begin_inset Formula +\[ +\xymatrix{A\ar@{-|>}[r] & \ \ B} +\] + +\end_inset + + +\end_layout + +\begin_layout Subsection +Arrow positioning +\end_layout + +\begin_layout Standard +Arrows are shifted sideways with the modifier +\family typewriter +@< +\family default + +\begin_inset Formula $\ldots$ +\end_inset + + +\family typewriter +> +\family default + where the ellipsis is replaced by a positive or negative measure. + For instance, to design a pair of mutually opposing arrows between two + nodes, we shift them to see them apart. + Note that the direction of the shift (positive) is to the left if one looks + along the arrow. + Thus +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +xymatrix{ +\backslash +circ +\backslash +ar@<1ex>[r]& +\backslash +circ +\backslash +ar@<1ex>[l]} +\end_layout + +\begin_layout Standard +\noindent +produces +\begin_inset Formula +\[ +\xymatrix{\circ\ar@<1ex>[r] & \circ\ar@<1ex>[l]} +\] + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Inline or centered diagrams +\end_layout + +\begin_layout Standard +Arrows and diagrams can be used inline, such as this one: +\begin_inset Formula $\xymatrix{\circ\ar@<1ex>[r] & \circ\ar@<1ex>[l]} +$ +\end_inset + +. + When their code is written inside \SpecialChar LyX + as above, select it and choose either + +\family sans +Ctrl-m +\family default + for inline appearance or +\family sans +Ctrl-M +\family default + for displaystyle. + Diagrams constructed inline can later be centered, or, conversely, centered + diagrams can be changed to inline formulas with +\family sans +Edit\SpecialChar menuseparator +Math +\family default + +\family sans +\SpecialChar menuseparator +Change Formula Type. +\end_layout + +\begin_layout Subsection +Bending arrows +\end_layout + +\begin_layout Standard +There are two simple methods to make arrows bend. + The first is giving an explicit value by which the midpoint of the arrow's + shaft is raised or depressed, the other is by forcing the arrow to leave + its origin in a prescribed compass direction and to make him enter the + target at another direction. + The necessary bending of the arrow is determined automatically. + We describe both methods. +\end_layout + +\begin_layout Subsubsection +Raising the shaft +\end_layout + +\begin_layout Standard +For bending arrows we use the modifier @/ +\begin_inset Formula $\ldots$ +\end_inset + +/ . + The ellipsis stands for a \SpecialChar TeX +-measure which needs to be entered as a lower + or upper index. + Whereas in +\family typewriter +xypic +\family default +, we could simply write, e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\family typewriter + +\backslash +ar@/_1pc/ +\family default + for an arrow bending +\family typewriter +1pc +\family default + downwards, this cannot directly be done in \SpecialChar LyX +. + It is necessary, to enclose the measure in a pair of braces, such as e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\family typewriter + +\backslash +ar@/_{1pc}/ +\family default +. + As an example, here are two opposing arrows between +\begin_inset Formula $A$ +\end_inset + + and +\begin_inset Formula $B$ +\end_inset + +, each bending by .5 pica, given by the following source code: +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +xymatrix{A +\backslash +ar@/_{.5pc}/[r] & B +\backslash +ar@/_{.5pc}/[l]} +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +\xymatrix{A\ar@/{}_{.5pc}/[r] & B\ar@/{}_{.5pc}/[l]} +\] + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Specifying exit- and entrance directions +\end_layout + +\begin_layout Standard +An alternative for making arrows bend is by specifying their compass direction + as they are leaving their source and their direction from which they enter + their target. + Instead of north, north-east, east, etc., the directions are named +\family typewriter +u +\family default +, +\family typewriter +ur +\family default +, +\family typewriter +r +\family default +, +\family typewriter +dr +\family default +, +\family typewriter +d +\family default +, +\family typewriter +dl +\family default +, +\family typewriter +l +\family default +, +\family typewriter +ul +\family default +, standing for up, up-right, right, down-right, etc.. + A direction is specified as @( +\emph on +out +\emph default +, +\emph on +in +\emph default +) where +\emph on +out +\emph default + stands for the direction the first object is left and +\emph on +in +\emph default + stands for the direction from which the target is entered. + As an example, we show some bending arrows and a loop, which arises when + we do not specify a target for an arrow, just its incoming and outgoing + direction: +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +\xymatrix{A\ar@(dr,dl)[r]\ar@(dr,dl)[rr] & B\ar@(d,r)[dl] & C\\ +E\ar@(ul,ur) +} +\] + +\end_inset + + +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{A +\backslash +ar@(dr,dl)[r] +\backslash +ar@(dr,dl)[rr] +\begin_inset Newline newline +\end_inset + + &B +\backslash +ar@(d,r)[dl] &C +\backslash + +\backslash + +\begin_inset Newline newline +\end_inset + + E +\backslash +ar@(ul,ur)} +\end_layout + +\begin_layout Subsection +Modifying vertices +\end_layout + +\begin_layout Standard +The above example is reminiscent of an automata diagram, except that in + such a diagram states would be enclosed in small circles, with double circles + denoting final states. + +\end_layout + +\begin_layout Subsubsection +Framing objects +\end_layout + +\begin_layout Standard +With +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic, entries can obtain a single or a double frame, such as +\begin_inset Formula $\xymatrix{*+[F]{A}} +$ +\end_inset + + or +\begin_inset Formula $\xymatrix{*+[F=]{B}} +$ +\end_inset + + by prefixing an entry with +\family typewriter +*[F-] +\family default + or +\family typewriter +*[F=] +\family default + and enclosing the portion of the entry to be framed in braces. + Normally, the frame will be very tight so that it must be widened by prefixing + with +\family typewriter ++ +\family default + or with +\family typewriter +++ +\family default +. + Round frames, such as +\begin_inset Formula $\xymatrix{*++[o][F]{A}} +$ +\end_inset + + and +\begin_inset Formula $\xymatrix{*++[o][F=]{B}} +$ +\end_inset + + are obtained by specifying the shape as +\family typewriter +[o]. + +\family default + So the latter figure was constructed as *++[o][F=]{B}. + This way, the following automaton +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +\xymatrix{\txt{start}\ar[r] & *++[o][F]{1}\ar[r] & *++[o][F=]{2}\ar@(ur,dr)\ar@(ur,ul)[l]} +\] + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +can be typeset as +\end_layout + +\begin_layout LyX-Code + +\backslash +xymatrix{ +\backslash +txt{start} +\backslash +ar[r] +\end_layout + +\begin_layout LyX-Code + & *++[o][F]{1} +\backslash +ar[r] +\end_layout + +\begin_layout LyX-Code + & *++[o][F=]{2} +\backslash +ar@(ur,dr) +\backslash +ar@(ur,ul)[l] +\end_layout + +\begin_layout LyX-Code + }. +\end_layout + +\begin_layout Standard +The \SpecialChar LaTeX + command +\family typewriter + +\backslash +entrymodifiers={ +\family default +\SpecialChar ldots + +\family typewriter +} +\family default + will make a certain entry style the default, that can, of course be overridden + for individual entries. + Thus, after +\family typewriter + +\backslash +entrymodifiers={++[o][F-]} +\family default +, all following entries inside +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-matrices would be encircled. +\end_layout + +\begin_layout Subsubsection +Framing rectangles +\end_layout + +\begin_layout Standard +Framing a whole rectangle inside an xymatrix is done with the macro pair + +\family typewriter + +\backslash +save ... + +\backslash +restore +\family default +. + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +The dimension of the rectangle is given as a dotted pair +\begin_inset Formula $P_{0}.P_{1}$ +\end_inset + + of points denoting the top left and lower right corners of the rectangle. + Each point, in turn,is given as a doubly quoted comma separated pair +\begin_inset Quotes eld +\end_inset + + +\begin_inset Formula $x,y$ +\end_inset + + +\begin_inset Quotes erd +\end_inset + + specifying row +\begin_inset Formula $x$ +\end_inset + + and column +\begin_inset Formula $y$ +\end_inset + +. + These are followed by the framing commands, to produce figures such as + the following: +\begin_inset Formula +\[ +\xymatrix{A & B\ar@(d,r)[dl]\sp(0.2)\phi\sp(0.7)\psi\save"1,1"."2,1"*+[F=]\frm{}\restore\,\\ +C & \save"1,1"."1,2"*++[F]\frm{}\restore +} +\] + +\end_inset + + Here, the code +\family typewriter +\series default +\shape default +\size default +\emph default +\bar default +\noun default +\color inherit + +\backslash +save"1,1"."2,1"*+[F=] +\backslash +frm{} +\backslash +restore +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + produces the doubly framed rectangle, and the code for the extra wide horizonta +l rectangle is +\family typewriter +\series default +\shape default +\size default +\emph default +\bar default +\noun default +\color inherit + +\backslash +save"1,1"."1,2"*++[F] +\backslash +frm{} +\backslash +restore +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +. + This code can be placed in arbitrary cells of the xymatrix. + +\end_layout + +\begin_layout Section +Using \SpecialChar LyX +'s math editor +\begin_inset CommandInset label +LatexCommand label +name "sec:math-editor" + +\end_inset + + +\end_layout + +\begin_layout Standard +As an alternative to writing the +\family typewriter +xypic +\family default + code, then transforming it into a math-editing environment by marking it + and applying +\family sans +Ctrl-m +\family default +, or +\family sans +Ctrl-M +\family default +, one may construct and modify the whole xypic-diagram inside \SpecialChar LyX +'s math editor. + We describe the editing steps for a figure just like the one above. + +\end_layout + +\begin_layout Subsection +Caveat - how to enter braces +\end_layout + +\begin_layout Standard +Recall that in \SpecialChar LyX +'s math-editor any pair of braces +\family typewriter +{ +\family default + and +\family typewriter +} +\family default + that are to enclose a macro-parameter must be entered by typing just +\family typewriter + +\backslash +{ +\family default + . + The closing brace is automatically supplied and in between a box into which + to the parameter is entered. + In connection with +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-diagrams, this applies in particular to arrow modifications that are normally + given in the form +\family typewriter +@{ +\family default + \SpecialChar ldots + +\family typewriter +} +\family default + with the ellipsis standing for the description of end, shaft and tip of + the arrow. + Inside the math-editor, enter just +\family typewriter +@ +\backslash +{ +\family default + and let \SpecialChar LyX + provide the closing brace and the box into which to enter the + description of the arrow. +\end_layout + +\begin_layout Standard +Braces that are entered without the backslash +\family typewriter + +\backslash + +\family default + will just appear as typed, but cannot be used to receive a macro parameter. + They are useful, for instance to denote sets, e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\family typewriter +{x +\backslash +in X +\backslash +mid x +\backslash +notin x} +\family default + will display as +\begin_inset Formula $\{x\in X\mid x\notin x\}$ +\end_inset + +. +\end_layout + +\begin_layout Subsection +Setting up the matrix +\end_layout + +\begin_layout Standard +With +\family sans +Ctrl-m +\family default + or +\family sans +Ctrl-M +\family default + open a formula environment and enter: +\family typewriter + +\backslash +xymatrix +\family default +. + This produces a 1 +\begin_inset Formula $\times$ +\end_inset + +1- +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-matrix. + Add extra rows by typing +\family sans +Ctrl-Enter +\family default + and add columns by typing +\family sans +Alt-m c i. + +\end_layout + +\begin_layout Standard +At any time, further rows or columns can be entered or deleted using commands + available from +\family sans +Edit\SpecialChar menuseparator +Math, +\family default + resp. + their shortcuts, beginning with +\family sans +Alt-m c +\family default + for the column commands or +\family sans +Alt-m w +\family default + for the row commands. + A more direct way uses the icons in the math toolbar once it has been activated + via +\family sans +View\SpecialChar menuseparator +Toolbars. +\end_layout + +\begin_layout Subsection +Entering nodes, arrows and labels +\end_layout + +\begin_layout Standard +Type the nodes into the correct positions of the matrix. + If you move the cursor out of the matrix, you should see a first rendering + of the node layout. + Next, add the arrows at the nodes from where they should emanate by typing + +\family typewriter + +\backslash +ar[ +\family default +\emph on +p +\family typewriter +\emph default +] +\family default +, where +\emph on +p +\emph default + can be any path made up from the characters +\family typewriter +u +\family default +, +\family typewriter +d +\family default +, +\family typewriter +l +\family default +, +\family typewriter +r +\family default +. + Make sure that the path indeed leads to an existing node within the matrix. + Otherwise, the figure will not display when the cursor leaves the editing + area. +\end_layout + +\begin_layout Standard +Next, label the arrows by attaching a label text as upper or lower indices + to the end of the arrow's path. + As always in \SpecialChar LyX +'s math editor, an underscore +\family typewriter +_ +\family default + opens a box for a lower index and a +\family typewriter +^ +\family default + followed by a space opens a box for an upper index. + You can enter any \SpecialChar LaTeX +-code as a label. +\end_layout + +\begin_layout Subsection +Modifying arrows +\end_layout + +\begin_layout Standard +Finally, you can modify the appearance of the arrows by entering @-modifiers + +\family typewriter +@{ +\family default +\SpecialChar ldots + +\family typewriter +} +\family default +, +\family typewriter +@< +\family default +\SpecialChar ldots +>, +\family typewriter +@( +\family default +\SpecialChar ldots +,\SpecialChar ldots +) or +\family typewriter +@/ +\family default +\SpecialChar ldots + +\family typewriter +/ +\family default +. + The above caveat applies to the first form only. + It must be entered as +\family typewriter +@ +\backslash +{ +\family default + with the arrow description entered inside the \SpecialChar LyX +-supplied box. + If this box remains empty, you have specified an empty arrow. + This is a useful construction, too, as you will see in the next section. + +\end_layout + +\begin_layout Standard +The other modifiers, +\family typewriter +@< +\family default +\SpecialChar ldots + +\family typewriter +> +\family default +, +\family typewriter +@( +\family default +\SpecialChar ldots +,\SpecialChar ldots + +\family typewriter +) +\family default +and +\family typewriter +@/ +\family default +\SpecialChar ldots + +\family typewriter +/ +\family default +are typed as shown with the arrow description replacing the ellipsis. + The code for bending arrows, which in +\family typewriter +xypic +\family default + is +\family typewriter +@/_ +\family default +\emph on +measure +\family typewriter +\emph default +/ +\family default +or +\family typewriter +@/ +\emph on +^ +\family default +measure +\family typewriter +\emph default +/ +\family default +where +\emph on +measure +\emph default + is any valid \SpecialChar TeX +-measure that should be entered as upper or lower index to + the first slash /. + Make sure that the ending slash does not end up being part of the upper + or lower index. +\end_layout + +\begin_layout Subsection +What if something goes wrong +\end_layout + +\begin_layout Standard +When constructing a diagram, you should at times check it by just moving + the cursor out of the editing area to see whether instant preview can successfu +lly convert it into graphical output. + If this does not happen, it may either be that instant preview for some + reason is not aware that it should retranslate the graphics. + Moving the cursor into the editing area and out again sometimes wakes up + instant preview. +\end_layout + +\begin_layout Standard +A more serious reason could be a syntactical error in your input (in that + case, the math edition area disappears completely). + If necessary, undo the last editing steps, using +\family sans +Ctrl+Z +\family default +, or try to translate the \SpecialChar LyX +-file into +\family sans +DVI +\family default + using +\family sans +Ctrl+D +\family default + or +\family sans +View\SpecialChar menuseparator +DVI +\family default +. + There should be some error generated, which hopefully gives you a hint + as to the source of the mistake. +\end_layout + +\begin_layout Section +Hacks +\end_layout + +\begin_layout Standard +Certain things do not work correctly inside \SpecialChar LyX +. + The ones that we (used to) miss most are the horizontal and vertical scaling + of diagrams, and the correct positioning of arrows. + There are some workarounds that we are explaining here. + +\end_layout + +\begin_layout Subsection +Horizontal and vertical scaling +\end_layout + +\begin_layout Standard +It is often convenient to stretch the horizontal or the vertical dimensions + of an entire diagram by using spacing commands for rows and/or columns. + According to the +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-manual, +\begin_inset CommandInset citation +LatexCommand cite +key "xypic manual" +literal "true" + +\end_inset + +, for instance, +\family typewriter + +\backslash +xymatrix@R=1pc{ +\family default +\SpecialChar ldots + +\family typewriter +} +\family default + defines an +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-matrix with row spacing of 1 +\begin_inset space ~ +\end_inset + +pica. + Similarly, +\family typewriter + +\backslash +xymatrix@C= +\family default +\SpecialChar ldots + +\family typewriter +{ +\family default +\SpecialChar ldots + +\family typewriter +} +\family default + allows to modify the space between columns. + Unfortunately, one cannot type +\begin_inset Quotes eld +\end_inset + + +\family typewriter + +\backslash +xymatrix@R=1pc +\family default + +\begin_inset Quotes erd +\end_inset + + into a formula to get the desired matrix because the @-character is interpreted + by \SpecialChar LyX + as ending the +\family typewriter + +\backslash +xymatrix +\family default + command. + But there are two other ways of getting the desired matrix: +\end_layout + +\begin_layout Itemize +One types e.g. +\begin_inset space \space{} +\end_inset + + +\family typewriter + +\backslash +xymatrix@R=1pc +\family default + as normal document text, then either highlight it and press +\begin_inset Info +type "shortcut" +arg "math-mode" +\end_inset + + to get a formula, or copy it into an existing formula. + You can now continue as normal. +\begin_inset Newline newline +\end_inset + + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + This method only works for single spacing settings, so using +\begin_inset Newline newline +\end_inset + + +\family typewriter + +\backslash +xymatrix@M=1pt +\family default + is possible while +\family typewriter + +\backslash +xymatrix@M=1pt@C=1dd +\family default + is not. + The method also don't work if you use '!' to get a fixed grid with a defined + dimension, e.g. +\begin_inset space \space{} +\end_inset + + +\family typewriter + +\backslash +xymatrix@!R=3pt +\family default + fails while +\family typewriter + +\backslash +xymatrix@!R +\family default + works. +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + +For the following matrix, the command +\family typewriter + +\backslash +xymatrix@C=9pc +\family default + was used: +\begin_inset Formula +\[ +\xymatrix@C=9pc{A\ar[r]\ar[d] & B\\ +C\ar@{}[ur]|{\text{{horizontal stretch}}} +} +\] + +\end_inset + + +\end_layout + +\begin_layout Itemize +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\begin_inset space ~ +\end_inset + + stores the values for row-spacing and column-spacing in the variables +\begin_inset Newline newline +\end_inset + + +\family typewriter + +\backslash +xymatrixrowsep@ +\family default + and +\family typewriter + +\backslash +xymatrixrowsep@ +\family default +. + So one can add the following macro to the preamble ( +\family sans +Layout\SpecialChar menuseparator +Document\SpecialChar menuseparator +Preamble +\family default +): +\end_layout + +\begin_deeper +\begin_layout LyX-Code + +\backslash +newcommand{ +\backslash +xyR}[1]{% +\end_layout + +\begin_layout LyX-Code + +\backslash +xydef@ +\backslash +xymatrixrowsep@{#1}} +\end_layout + +\begin_layout Standard +A macro +\family typewriter + +\backslash +xyC +\family default + can be defined correspondingly by replacing +\family typewriter + +\backslash +xymatrixrowsep@ +\family default + with +\family typewriter + +\backslash +xymatrixcolsep@ +\family default +. + Now, a figure can be scaled by entering +\backslash +xyR{ into the formula before the +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-matrix. + Place the cursor inside the matrix, just before the first entry. + Then enter +\family typewriter + +\backslash +xyR +\backslash +{ +\family default + or +\family typewriter + +\backslash +xyC +\backslash +{ +\family default + or both. + Don't forget the backslashes and remember, that the closing brace is automatica +lly supplied by \SpecialChar LyX +. + Inside the braces enter the dimensions. +\begin_inset Newline newline +\end_inset + + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + these commands affect all following +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-matrices. + Therefore don't forget to reset the values to default after the usage of + +\family typewriter + +\backslash +xyR +\family default + etc.. +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + +The default is +\family typewriter +2pc +\family default +. + Here you see a diagram which is squashed vertically and stretched horizontally + with +\family typewriter + +\backslash +xyR{.5pc} +\backslash +xyC{9pc} +\family default +: +\begin_inset Formula +\[ +\xyR{.5pc}\xyC{9pc}\xymatrix{A\ar[r]\ar[d] & B\\ +C\ar@{}[ur]|{\text{{horizontal stretch}}} +} +\] + +\end_inset + + +\begin_inset Formula $\xyR{2pc}\xyC{2pc}$ +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +reset to default +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Subsection +Label positioning +\end_layout + +\begin_layout Standard +Another useful +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-command allows the correct positioning of labels along the shaft of arrows. + This feature is sometimes necessary, when the default position of a label + would otherwise clutter the picture, or would even coincide with other + items, such as the intersection of the arrows in the figure below. + In order to shift a label position alongside the shaft of an arrow, +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\begin_inset space ~ +\end_inset + + allows to prefix the label by a decimal number in parentheses, specifying + the fraction of distance alongside the arrow where the label is to be placed. + For instance, the code +\family typewriter + +\backslash +ar[r]|(0.3) +\backslash +varphi +\family default +, will place the label on the shaft, but only about one third of the way. + +\end_layout + +\begin_layout Standard +Doing the same with labels above or below arrows as +\family typewriter + +\backslash +ar[dr]^(0.3) +\backslash +varphi, +\family default + respectively +\family typewriter + +\backslash +ar[ur]_(0.3) +\backslash +phi +\family default +, does not work from inside \SpecialChar LyX +. + Instead, one has to replace the hat-symbol ^, resp. + the underscore _ , by the macros +\family typewriter + +\backslash +sp +\family default +, resp. + +\family typewriter + +\backslash +sb +\family default +, obtaining +\family typewriter + +\backslash +ar[dr] +\backslash +sp(0.3) +\backslash +varphi +\family default +and +\family typewriter + +\backslash +ar[ur] +\backslash +sb(0.3) +\backslash +phi. + +\family default +It is, in fact, possible to enter several labels this way and those labels + are placed correctly, even if the arrow bends. + In the following figure, the bending arrow with its four labels has been + produced with +\family typewriter + +\backslash +ar@(r,r)[d] +\backslash +sp(0.2){ +\backslash +phi_{1}} +\backslash +sp(0.4){ +\backslash +phi_{2}} +\backslash +sb(0.6){ +\backslash +phi_{3}} +\backslash +sp(0.8){ +\backslash +phi_{4}}. +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +\xyC{4pc}\xymatrix{\bullet\ar[dr]\sp(0.3)\varphi & \circ\ar@{}[d]|\vdots\ar@(r,r)[d]\sp(0.2){\phi_{1}}\sp(0.4){\phi_{2}}\sb(0.6){\phi_{3}}\sp(0.8){\phi_{4}}\\ +\circ\ar[ur]\sb(0.3)\phi & \bullet +} +\] + +\end_inset + + +\end_layout + +\begin_layout Subsection +Invisible stretched arrows +\end_layout + +\begin_layout Standard +A more general trick uses invisible arrows to place any object almost anywhere + inside a diagram. + Produce an invisible arrow, shorten (or prolong) it past its goal by adding + a decimal stretching ratio, e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\family typewriter +(0.6) +\family default + or +\family typewriter +(1.4) +\family default + to its path. + Attach a label to this invisible arrow. + +\end_layout + +\begin_layout Standard +Thus, the down pointing arrow with its label +\begin_inset Formula $\varphi$ +\end_inset + + at (0.3) of its way along the shaft might as well have been produced by + adding to the regular arrow +\family typewriter + +\backslash +ar[dr] +\family default +an invisible +\begin_inset Formula $\varphi$ +\end_inset + +-labelled arrow +\family typewriter + +\backslash +ar@{}[dr(0.6)]^ +\backslash +varphi +\family default +, reaching only 0.6 of the way. + Its label will now appear at 0.3 of the way of the original visible arrow. + +\end_layout + +\begin_layout Standard +This workaround has two minor drawbacks: First, it does not work with bending + arrows. + Secondly, prolonging an invisible arrow beyond the normal dimension of + the figure will invisibly extend the figure box, and thereby cause too + much vertical space between the figure and the preceding or the following + paragraph. + +\end_layout + +\begin_layout Standard +Nevertheless, invisible arrows are an important tool, since they can, in + principle, be used to place information at any chosen place in a diagram. + In the above figure, for instance, we have used an invisible arrow to carry + the +\family typewriter + +\backslash +vdots +\family default + as label and at the earlier figure we had used an invisible arrow to carry + the text +\begin_inset Quotes eld +\end_inset + + +\family typewriter +horizontal stretch +\family default + +\begin_inset Quotes erd +\end_inset + + into the center of the figure. +\end_layout + +\begin_layout Subsection +Further +\family typewriter +Xy +\family default +-tricks +\end_layout + +\begin_layout Standard +Here we have focused only on the +\family typewriter + +\backslash +xymatrix +\family default + command, which is just one of the features available in Kris Rose's amazing +\family typewriter + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\family default +-package. + The +\family typewriter + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\family default +-pic manual +\begin_inset CommandInset citation +LatexCommand cite +key "xypic manual" +literal "true" + +\end_inset + + demonstrates many of the advanced possibilities of that package. + Beware, that its style is rather terse and you will likely need a lot of + experimenting and modifying the many worked examples. + Lauda +\begin_inset CommandInset citation +LatexCommand cite +key "Lauda" +literal "true" + +\end_inset + + explains how to use +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-pic to make braids, cobordism, string diagrams, and much more. + You might want to look on +\family typewriter +inset_preview.lyx +\family default + example shipped with \SpecialChar LyX +, which demonstrates how to use more advanced +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + +-commands via +\family typewriter +\SpecialChar TeX + +\begin_inset space ~ +\end_inset + +Code +\family default + and +\family typewriter +Instant preview +\family default + insets. +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "xypic manual" +literal "true" + +\end_inset + +Kristoffer H. + Rose: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\emph on +-pic User's Guide +\emph default +. +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://www.ctan.org/tex-archive/macros/generic/diagrams/xypic/doc/xyguide.pdf +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "xypic reference" +literal "true" + +\end_inset + +Kristoffer H. + Rose and Ross Moore: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\emph on +-pic Reference Manual +\emph default +. +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://www.ctan.org/tex-archive/macros/generic/diagrams/xypic/doc/xyrefer.pdf +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "xypic" +literal "true" + +\end_inset + +Homepage of the package +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\emph on +-pic +\emph default +: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/pkg/xypic +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "instant-preview" +literal "true" + +\end_inset + +Homepage of preview-latex: +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.gnu.org/software/auctex/preview-latex.html +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "AUCTeX" +literal "true" + +\end_inset + +Homepage of AUC\SpecialChar TeX +: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.gnu.org/software/auctex/ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "Lauda" +literal "true" + +\end_inset + +Aarlon Lauda: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +Xy +\end_layout + +\end_inset + + +\emph on +-pic +\emph default + +\emph on +tutorial with an archive of examples +\emph default +. +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://www.ctan.org/tex-archive/macros/generic/diagrams/xypic/doc/xyguide.pdf +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Graphics_&_Insets/iecc05.fen b/lib/examples/Graphics_&_Insets/iecc05.fen new file mode 100644 index 0000000000..bd120ec128 --- /dev/null +++ b/lib/examples/Graphics_&_Insets/iecc05.fen @@ -0,0 +1 @@ +r1bqkbnr/pp3ppp/2npp3/2p5/4P3/2N3P1/PPPPNPBP/R1BQK2R b KQkq - 0 5 diff --git a/lib/examples/Graphics_&_Insets/iecc07.fen b/lib/examples/Graphics_&_Insets/iecc07.fen new file mode 100644 index 0000000000..e631996830 --- /dev/null +++ b/lib/examples/Graphics_&_Insets/iecc07.fen @@ -0,0 +1 @@ +r1bqk1nr/1p2bppp/p1npp3/8/3NP3/2N3P1/PPP2PBP/R1BQK2R w KQkq - 0 8 diff --git a/lib/examples/Graphics_&_Insets/iecc12.fen b/lib/examples/Graphics_&_Insets/iecc12.fen new file mode 100644 index 0000000000..1f827c3052 --- /dev/null +++ b/lib/examples/Graphics_&_Insets/iecc12.fen @@ -0,0 +1 @@ +r2qk2r/1b2nppp/p1pppb2/8/4PBQ1/2N3P1/PPP2PBP/3R1RK1 b kq - 0 12 diff --git a/lib/examples/Graphics_&_Insets/xyfigure.png b/lib/examples/Graphics_&_Insets/xyfigure.png new file mode 100644 index 0000000000..899c53fbfd Binary files /dev/null and b/lib/examples/Graphics_&_Insets/xyfigure.png differ diff --git a/lib/examples/H-P-statements.lyx b/lib/examples/H-P-statements.lyx deleted file mode 100644 index 12e96bf5f5..0000000000 --- a/lib/examples/H-P-statements.lyx +++ /dev/null @@ -1,640 +0,0 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 544 -\begin_document -\begin_header -\save_transient_properties true -\origin /systemlyxdir/examples/ -\textclass scrartcl -\begin_preamble -% if pdflatex is used -\usepackage{ifpdf} -\ifpdf - -% set fonts for nicer pdf view -\IfFileExists{lmodern.sty} - {\usepackage{lmodern}}{} - -\fi % end if pdflatex is used -\end_preamble -\use_default_options true -\begin_modules -hpstatement -\end_modules -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding auto -\fontencoding global -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures false -\graphics default -\default_output_format default -\output_sync 0 -\bibtex_command default -\index_command default -\paperfontsize default -\spacing single -\use_hyperref true -\pdf_title "Chemical Hazard and Precautionary statements in LyX" -\pdf_author "Uwe Stöhr" -\pdf_bookmarks true -\pdf_bookmarksnumbered true -\pdf_bookmarksopen false -\pdf_bookmarksopenlevel 1 -\pdf_breaklinks false -\pdf_pdfborder false -\pdf_colorlinks true -\pdf_backref false -\pdf_pdfusetitle false -\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" -\papersize default -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\cite_engine basic -\cite_engine_type default -\biblio_style plain -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date true -\justification true -\use_refstyle 1 -\use_minted 0 -\notefontcolor #0000ff -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation skip -\defskip medskip -\is_math_indent 0 -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Title -Chemical Hazard and Precautionary statements in \SpecialChar LyX - -\end_layout - -\begin_layout Author -Uwe Stöhr -\end_layout - -\begin_layout Section -Introduction -\end_layout - -\begin_layout Standard -To be able to insert chemical hazard and precautionary statements in \SpecialChar LyX -, you - need to load the module -\family sans -Risk -\begin_inset space ~ -\end_inset - -and -\begin_inset space ~ -\end_inset - -Safety -\begin_inset space ~ -\end_inset - -Statements -\family default - in the menu -\family sans -Document\SpecialChar menuseparator -Settings\SpecialChar menuseparator -Modules -\family default -. - The module provides 2 -\begin_inset space ~ -\end_inset - -insets which are accessible via the menu -\family sans -Insert\SpecialChar menuseparator -Custom -\begin_inset space ~ -\end_inset - -Insets -\family default -. -\end_layout - -\begin_layout Section -Statements -\end_layout - -\begin_layout Standard -The inset -\family sans -H-P -\begin_inset space ~ -\end_inset - -number -\family default - is used to typeset the number, the inset -\family sans -H-P -\begin_inset space ~ -\end_inset - -statement -\family default - will output the corresponding statement. -\end_layout - -\begin_layout Standard -The hazard statement -\begin_inset Flex H-P number -status open - -\begin_layout Plain Layout - -H200 -\end_layout - -\end_inset - - has the statement: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -H200 -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -This is -\begin_inset Flex H-P number -status collapsed - -\begin_layout Plain Layout - -H200 -\end_layout - -\end_inset - -: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -As you can see, the statement inset can be left empty. - In this case the previously used number is used for the statement. -\end_layout - -\begin_layout Standard -Precautionary statements are inserted the same way as hazard statements: -\end_layout - -\begin_layout Standard -The precautionary statement -\begin_inset Flex H-P number -status collapsed - -\begin_layout Plain Layout - -P235 -\end_layout - -\end_inset - - is: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Statement Alternatives -\end_layout - -\begin_layout Standard -Some statements allow you to choose between certain alternatives. - In these cases you must add a dot and the number of the alternative to - the statement number. - Some examples: -\end_layout - -\begin_layout Description -P210.1 leads to: -\begin_inset Flex H-P number -status open - -\begin_layout Plain Layout - -P210.1 -\end_layout - -\end_inset - -: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Description -P210.2 leads to: -\begin_inset Flex H-P number -status open - -\begin_layout Plain Layout - -P210.2 -\end_layout - -\end_inset - -: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The alternative number -\begin_inset Quotes eld -\end_inset - -0 -\begin_inset Quotes erd -\end_inset - - refers to the original version as stated in the regulations: -\end_layout - -\begin_layout Description -P210.0 leads to: -\begin_inset Flex H-P number -status open - -\begin_layout Plain Layout - -P210.0 -\end_layout - -\end_inset - -: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Required Text -\end_layout - -\begin_layout Standard -Some statements require text. - This is inserted to the optional argument of LyX's -\family sans -H-P-Statement -\family default - inset. - The argument is inserted with the menu -\family sans -Insert\SpecialChar menuseparator -Statement -\begin_inset space ~ -\end_inset - -Text -\family default -. -\end_layout - -\begin_layout Standard -In this example the text -\begin_inset Quotes eld -\end_inset - -sunglasses -\begin_inset Quotes erd -\end_inset - - was added to the optional argument: -\end_layout - -\begin_layout Standard -Statement -\begin_inset Flex H-P number -status open - -\begin_layout Plain Layout - -P280 -\end_layout - -\end_inset - - says: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -sunglasses -\end_layout - -\end_inset - -P280 -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Some statements print text referring to the place on a label. - For example: -\end_layout - -\begin_layout Standard -Statement -\begin_inset Flex H-P number -status open - -\begin_layout Plain Layout - -P321 -\end_layout - -\end_inset - - says: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -the left side -\end_layout - -\end_inset - -P321 -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Where -\begin_inset Quotes eld -\end_inset - -the left side -\begin_inset Quotes erd -\end_inset - - is the input required text. -\end_layout - -\begin_layout Standard -If you don't have a label use -\begin_inset Quotes eld -\end_inset - -nolabel -\begin_inset Quotes erd -\end_inset - - as -\begin_inset Quotes eld -\end_inset - -number -\begin_inset Quotes erd -\end_inset - - for the alternative to omit the text about the label: -\end_layout - -\begin_layout Standard -Statement -\begin_inset Flex H-P number -status open - -\begin_layout Plain Layout - -P321 -\end_layout - -\end_inset - - says: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -the left side -\end_layout - -\end_inset - -P321.nolabel -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Language issues -\end_layout - -\begin_layout Standard -The statements are output depending on the language. - Currently only the languages -\begin_inset Newline newline -\end_inset - -Danish, English, French, German, Italian and Spanish -\begin_inset Newline newline -\end_inset - -are supported. -\end_layout - -\begin_layout Standard -At -\begin_inset CommandInset href -LatexCommand href -name "this webpage" -target "http://schoolscout24.de/cgi-bin/keminaco/hppinput.cgi" -literal "false" - -\end_inset - - you find the official statements for all 23 -\begin_inset space ~ -\end_inset - -languages of the EU. -\end_layout - -\begin_layout Standard -Mixing languages is possible without problems: -\end_layout - -\begin_layout Standard - -\lang ngerman -Dies ist H-Satz -\begin_inset Flex H-P number -status open - -\begin_layout Plain Layout - -H251 -\end_layout - -\end_inset - -: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -This is hazard statement -\begin_inset Flex H-P number -status open - -\begin_layout Plain Layout - -H251 -\end_layout - -\end_inset - -: -\begin_inset Flex H-P statement -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\end_body -\end_document diff --git a/lib/examples/Handouts/Tufte_Handout.lyx b/lib/examples/Handouts/Tufte_Handout.lyx new file mode 100644 index 0000000000..71c135da67 --- /dev/null +++ b/lib/examples/Handouts/Tufte_Handout.lyx @@ -0,0 +1,1541 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 553 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass tufte-handout +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding auto +\font_roman "default" "default" +\font_sans "helvet" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command bibtex +\index_command default +\paperfontsize default +\spacing single +\use_hyperref true +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks true +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle true +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine natbib +\cite_engine_type authoryear +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 2 +\tocdepth 2 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note +\series default +: To be able to view your file as PDF you must have the \SpecialChar LaTeX +-package +\family sans +fpl +\family default + installed to your \SpecialChar LaTeX + system. + If you are using MiK\SpecialChar TeX +, you will automatically be asked to install this package + when previewing your file, if you are using \SpecialChar TeX +Live, use \SpecialChar TeX +Live's package manager. +\end_layout + +\begin_layout Plain Layout + +\series bold +Note 2 +\series default +: If you wish to compile to PDF with plain \SpecialChar LaTeX + (instead of pdf\SpecialChar TeX +), there is currently + a bug in the Tufte class that causes errors. + You can add the class option 'nols' (put this in the +\begin_inset Quotes eld +\end_inset + +Custom +\begin_inset Quotes erd +\end_inset + + field of Document\SpecialChar menuseparator +Settings \SpecialChar menuseparator +Document Class) to get rid of the errors, but + this also removes letterspacing, an important part of the Tufte design. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +If the +\emph on +Date +\emph default + is left out, the current date will be used. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +An Example of the Usage of the Tufte-Handout Style +\end_layout + +\begin_layout Author +Tufte-LaTeX Developers and The LyX Team +\end_layout + +\begin_layout Abstract +\noindent +This document describes the +\emph on +Tufte handout +\emph default + \SpecialChar LaTeX + document style. + It also provides examples and comments on the style's use. + It is based on the example file shiped with +\emph on +tufte-handout.cls +\emph default +, but adapted for the use with \SpecialChar LyX +. +\end_layout + +\begin_layout Standard +The +\family sans +tufte-handout +\family default + document class +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Cf. + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://ctan.org/tex-archive/macros/latex/contrib/tufte-latex +\end_layout + +\end_inset + +. +\end_layout + +\end_inset + + defines a style similar to the style +\noun on +Edward Tufte +\noun default + uses in his books and handouts. + Tufte's style is known for its extensive use of sidenotes, tight integration + of graphics with text, and well-set typography. + This document aims to be at once a demonstration of the features of the + +\family sans +tufte-handout +\family default + document class and a style guide to its use. +\end_layout + +\begin_layout Part +First part +\end_layout + +\begin_layout Section +Page Layout +\end_layout + +\begin_layout Subsection +Headings and paragraph design +\begin_inset CommandInset label +LatexCommand label +name "sec:headings" + +\end_inset + + +\end_layout + +\begin_layout Standard +This style provides +\shape smallcaps +a +\shape default +- and +\shape smallcaps +b +\shape default +-heads (that is, +\emph on +section +\emph default + and +\emph on +subsection +\emph default +, both numbered and non-numbered), as demonstrated above. +\end_layout + +\begin_layout Standard +If you need more than two levels of section headings, you'll have to define + them yourself at the moment; +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +See +\begin_inset Quotes eld +\end_inset + +Defining new sections +\begin_inset Quotes erd +\end_inset + + on page +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand pageref +reference "sec:defining-sections" + +\end_inset + + for help with defining more heading levels. +\end_layout + +\end_inset + + there are no pre-defined styles for anything below a +\emph on +subsection +\emph default +. + As +\noun on +Bringhurst +\noun default + points out in +\shape italic +The Elements of Typographic Style +\shape default +, +\begin_inset CommandInset citation +LatexCommand cite +key "Bringhurst2005" +literal "true" + +\end_inset + + you should +\begin_inset Quotes eld +\end_inset + +use as many levels of headings as you need: no more, and no fewer. +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex NewThought +status open + +\begin_layout Plain Layout +In his later books +\end_layout + +\end_inset + +, +\begin_inset CommandInset citation +LatexCommand cite +key "Tufte2006" +literal "true" + +\end_inset + + Tufte starts each section with a bit of vertical space, a non-indented + paragraph, and sets the first few words of the sentence in +\shape smallcaps +small caps +\shape default +. + To accomplish this, use the +\family typewriter +NewThought +\family default + character style ( +\family sans +Edit\SpecialChar menuseparator +TextStyle\SpecialChar menuseparator +NewThought +\family default +). +\end_layout + +\begin_layout Subsection +Sidenotes +\end_layout + +\begin_layout Standard +One of the most prominent and distinctive features of this style is the + extensive use of sidenotes. + There is a wide margin to provide ample room for sidenotes and small figures. + Any footnotes will automatically be converted to sidenotes. +\begin_inset Foot +status open + +\begin_layout Plain Layout +This is a sidenote that was entered using a +\family typewriter +footnote +\family default +. +\end_layout + +\end_inset + + Alternatively, you can also use the +\family typewriter +Sidenote +\family default + inset directly; you'll find it in the +\family sans +Insert\SpecialChar menuseparator +Custom Insets +\family default + menu. +\begin_inset Flex Sidenote +status open + +\begin_layout Plain Layout +This is a sidenote that was entered using a +\family typewriter +sidenote +\family default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +If you like to place ancillary information in the margin without the sidenote + mark (the superscript number), you can use the +\family typewriter +Marginnote +\family default + inset. + +\begin_inset Flex Marginnote +status open + +\begin_layout Plain Layout +This is Tufte's margin note. + Notice that there isn't a number preceding the note, and there is no number + in the main text where this note was written. +\end_layout + +\end_inset + + The normal margin note will work as well, but it will look rather odd. +\begin_inset Marginal +status open + +\begin_layout Plain Layout +This is a normal margin note. + Don't use it. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +References +\end_layout + +\begin_layout Standard +References are placed alongside their citations as sidenotes, as well. + This can be accomplished using the normal citation command. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +The first paragraph of this document includes a citation. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The complete list of references may also be printed automatically by using + +\family sans +Insert\SpecialChar menuseparator +Lists/TOC\SpecialChar menuseparator +Bib\SpecialChar TeX + +\begin_inset space ~ +\end_inset + +Bibliography +\family default + (see the end of this document for an example.) If you do not want to print + a bibliography at the end of your document, place the +\family sans +Bib\SpecialChar TeX + +\begin_inset space ~ +\end_inset + +Bibliography +\family default + inset inside a \SpecialChar LyX + note and use the \SpecialChar LaTeX + command +\family typewriter + +\backslash +nobibliography +\family default + the text. +\end_layout + +\begin_layout Section +Figures and Tables +\end_layout + +\begin_layout Standard +Images and graphics play an integral role in Tufte's work. + In addition to the standard +\emph on +figure +\emph default + and +\emph on +tabular +\emph default + floats, this class provides special figure and table environments for full-widt +h floats. +\end_layout + +\begin_layout Standard +Full page width figures and tables can be produced by using figure or table + floats and clicking +\emph on +Span Columns +\emph default + in the float dialog. + To place figures or tables in the margin, use the +\emph on +MarginFigure +\emph default + or +\emph on +MarginTable +\emph default + floats (see figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:marginfig" + +\end_inset + +). +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Note: unfortunately, the counting inside the \SpecialChar LyX + view is wrong. + Margin floats and normal floats are counted differently, whereas the use + the same counter in the output. +\end_layout + +\end_inset + + +\begin_inset Float marginfigure +placement document +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100line%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\align center +replace the box by your figure! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +This is a margin figure. + The figure will be put in the margin. +\begin_inset CommandInset label +LatexCommand label +name "fig:marginfig" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + If you are using margin figures or tables you must use the default float + placement option in the document settings under +\family sans +Float +\begin_inset space ~ +\end_inset + +Placement +\family default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:fullfig" + +\end_inset + + is an example of the wide figure float and figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:textfig" + +\end_inset + + is an example of the normal figure float. + +\begin_inset Float figure +placement document +alignment document +wide true +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100line%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\align center +replace the box by your figure! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +This is a wide figure ( +\emph on +span columns +\emph default +). + +\emph on +Notice that this figure takes up the full page width. +\emph default + +\begin_inset CommandInset label +LatexCommand label +name "fig:fullfig" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace 6theight% +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement h +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "100line%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\align center +replace the box by your figure! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +This is a normal figure. + +\emph on +Notice that this figure only takes up the main textblock width. +\emph default + +\begin_inset CommandInset label +LatexCommand label +name "fig:textfig" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:normaltab" + +\end_inset + + shows a table created with the +\family typewriter +booktabs +\family default + package (this is border style +\begin_inset Quotes eld +\end_inset + +formal +\begin_inset Quotes erd +\end_inset + + in the tabular dialog). + Notice the lack of vertical rules—they serve only to clutter the table's + data. +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement ht +alignment document +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Margin +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Length +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Paper width +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\unit[8\nicefrac{1}{2}]{inches}$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Paper height +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\unit[11]{inches}$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Textblock width +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\unit[6\nicefrac{1}{2}]{inches}$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Textblock/sidenote gutter +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\unit[\nicefrac{3}{8}]{inches}$ +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Sidenote width +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\unit[2]{inches}$ +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Here are the dimensions of the various margins used in the +\emph on +Tufte-handout +\emph default + class. +\begin_inset CommandInset label +LatexCommand label +name "tab:normaltab" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Full-width text blocks +\end_layout + +\begin_layout Standard +In addition to the new float types, there is a +\emph on +Full Width +\emph default + environment that stretches across the main text block and the sidenotes + area and ragged left: +\end_layout + +\begin_layout Full Width +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. + Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. + Curabitur dictum gravida mauris. + Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. + Donec vehicula augue eu neque. + Pellentesque habitant morbi tristique senectus et netus et malesuada fames + ac turpis egestas. + Mauris ut leo. + Cras viverra metus rhoncus sem. + Nulla et lectus vestibulum urna fringilla ultrices. + Phasellus eu tellus sit amet tortor gravida placerat. + Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. + Praesent eget sem vel leo ultrices bibendum. + Aenean faucibus. + Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. + Curabitur auctor semper nulla. + Donec varius orci eget risus. + Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam. + Duis eget orci sit amet orci dignissim rutrum. +\end_layout + +\begin_layout Part +Second part +\end_layout + +\begin_layout Section +Typography +\end_layout + +\begin_layout Subsection +Typefaces +\end_layout + +\begin_layout Standard +If the +\emph on +Palatino +\emph default + and +\emph on +Bera Mono +\emph default + typefaces are installed, this style will use them automatically. + Otherwise, we'll fall back on the +\emph on +Computer Modern +\emph default + typefaces. +\end_layout + +\begin_layout Subsection +Letterspacing +\end_layout + +\begin_layout Standard +This document class includes two new character styles and some improvements + on existing commands for letterspacing. +\end_layout + +\begin_layout Standard +When setting strings of +\begin_inset Flex AllCaps +status open + +\begin_layout Plain Layout +ALL CAPS +\end_layout + +\end_inset + + or +\begin_inset Flex SmallCaps +status open + +\begin_layout Plain Layout +small caps +\end_layout + +\end_inset + +, the letterspacing—that is, the spacing between the letters—should be increased + slightly. +\begin_inset CommandInset citation +LatexCommand cite +key "Bringhurst2005" +literal "true" + +\end_inset + + The +\emph on +AllCaps +\emph default + character style ( +\family sans +Edit\SpecialChar menuseparator +TextStyle\SpecialChar menuseparator +AllCaps +\family default +) has proper letterspacing for strings of +\begin_inset Flex AllCaps +status open + +\begin_layout Plain Layout +FULL CAPITAL LETTERS +\end_layout + +\end_inset + +, and the +\emph on +SmallCaps +\emph default + character style ( +\family sans +Edit\SpecialChar menuseparator +TextStyle\SpecialChar menuseparator +SmallCaps +\family default +) has letterspacing for +\begin_inset Flex SmallCaps +status open + +\begin_layout Plain Layout +small capital letters +\end_layout + +\end_inset + +. + These commands will also automatically convert the case of the text to + upper- or lowercase, respectively. +\end_layout + +\begin_layout Standard +The normal +\emph on +Small Caps +\emph default + shape has also been redefined to include letterspacing. + Its case is left as is, however. + This allows one to use both uppercase and lowercase letters: +\shape smallcaps +The Initial Letters Of The Words In This Sentence Are Capitalized. +\end_layout + +\begin_layout Section +Customization +\end_layout + +\begin_layout Subsection +Document class options +\end_layout + +\begin_layout Standard +The +\family sans +tufte-handout +\family default + class is based on the +\family sans +article +\family default + document class. + Therefore, you can pass any of the typical article options. + There are a few options that are specific to the +\family sans +tufte-handout +\family default + document class, however. +\end_layout + +\begin_layout Itemize +The +\emph on +a4paper +\emph default + option will set the paper size to A4 instead of the default US letter size. +\end_layout + +\begin_layout Itemize +The +\emph on +sfsidenotes +\emph default + option will set the sidenotes in a +\family sans +sans serif +\family default + typeface instead of the default roman. +\end_layout + +\begin_layout Itemize +The +\emph on +twoside +\emph default + option will modify the running heads so that the page number is printed + on the outside edge (as opposed to always printing the page number on the + right-side edge in +\emph on +oneside +\emph default + mode). +\end_layout + +\begin_layout Itemize +The +\emph on +symmetric +\emph default + option typesets the sidenotes on the outside edge of the page. + This is how books are traditionally printed, but is contrary to Tufte's + book design which sets the sidenotes on the right side of the page. + This option implicitly sets the +\emph on +twoside +\emph default + option. +\end_layout + +\begin_layout Itemize +The +\emph on +justified +\emph default + option sets all the text fully justified (flush left and right). + The default is to set the text ragged right. + The body text of Tufte's books are set ragged right. + This prevents needless hyphenation and makes it easier to read the text + in the slightly narrower column. +\end_layout + +\begin_layout Subsection +Defining new sections +\begin_inset CommandInset label +LatexCommand label +name "sec:defining-sections" + +\end_inset + + +\end_layout + +\begin_layout Standard +As mentioned on page +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand pageref +reference "sec:headings" + +\end_inset + +, the +\family sans +tufte-handout +\family default + document class only defines +\emph on +section +\emph default + and +\emph on +subsection +\emph default + headings. +\end_layout + +\begin_layout Standard +If you want to define, say, a +\emph on +paragraph +\emph default + heading, you could do it as follows: +\end_layout + +\begin_layout LyX-Code + +\backslash +makeatletter +\end_layout + +\begin_layout LyX-Code + +\backslash +renewcommand +\backslash +paragraph{% +\end_layout + +\begin_layout LyX-Code + +\backslash +@startsection{paragraph}% the name of the new section +\end_layout + +\begin_layout LyX-Code +{4}% the section level number +\end_layout + +\begin_layout LyX-Code +{0em}% indentation amount +\end_layout + +\begin_layout LyX-Code +{ +\backslash +baselineskip}% amount of space to leave before heading +\end_layout + +\begin_layout LyX-Code +{-1.5em}% amount of space to leave after heading +\end_layout + +\begin_layout LyX-Code +{ +\backslash +normalfont +\backslash +itshape}% style +\end_layout + +\begin_layout LyX-Code +} +\end_layout + +\begin_layout LyX-Code + +\backslash +makeatother +\end_layout + +\begin_layout Standard +Place that code in +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Preamble +\family default + and you'll now be able to use +\family typewriter + +\backslash +paragraph +\family default + in \SpecialChar LaTeX + mode. +\end_layout + +\begin_layout Standard +For more details on defining section levels, see +\shape italic +The \SpecialChar LaTeX + +\begin_inset space \space{} +\end_inset + +Companion +\shape default +, +\begin_inset CommandInset citation +LatexCommand cite +key "LComp2004" +literal "true" + +\end_inset + + or use the +\emph on +titlesec +\emph default + package. +\end_layout + +\begin_layout Section +Support +\end_layout + +\begin_layout Subsection +Package Dependencies +\end_layout + +\begin_layout Standard +The following is a list of packages that the +\family sans +tufte-handout +\family default + document class relies upon. + Packages marked with an asterisk are optional. +\end_layout + +\begin_layout Itemize +geometry +\end_layout + +\begin_layout Itemize +ragged2e +\end_layout + +\begin_layout Itemize +chngpage +\end_layout + +\begin_layout Itemize +paralist +\end_layout + +\begin_layout Itemize +textcase +\end_layout + +\begin_layout Itemize +footmisc +\end_layout + +\begin_layout Itemize +natbib and bibentry +\end_layout + +\begin_layout Itemize +placeins +\end_layout + +\begin_layout Itemize +caption +\end_layout + +\begin_layout Itemize +fancyhdr +\end_layout + +\begin_layout Itemize +microtype* +\end_layout + +\begin_layout Itemize +soul* +\end_layout + +\begin_layout Itemize +palatino* +\end_layout + +\begin_layout Itemize +beramono* +\end_layout + +\begin_layout Subsection +Tufte-\SpecialChar LaTeX + +\begin_inset space \space{} +\end_inset + +Website +\end_layout + +\begin_layout Standard +The website for the Tufte-\SpecialChar LaTeX + +\begin_inset space \space{} +\end_inset + +packages is located at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://tufte-latex.github.io/tufte-latex/ +\end_layout + +\end_inset + +. + On this website, you'll find links to the +\begin_inset Flex SmallCaps +status open + +\begin_layout Plain Layout +svn +\end_layout + +\end_inset + + repository of the tufte-latex project, mailing lists, bug tracker, and + documentation. +\end_layout + +\begin_layout Standard +\begin_inset CommandInset bibtex +LatexCommand bibtex +bibfiles "biblioExample" +options "plainnat" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/ItemizeBullets.lyx b/lib/examples/ItemizeBullets.lyx deleted file mode 100644 index 0d1a568f0d..0000000000 --- a/lib/examples/ItemizeBullets.lyx +++ /dev/null @@ -1,4396 +0,0 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 544 -\begin_document -\begin_header -\save_transient_properties true -\origin /systemlyxdir/examples/ -\textclass article -\begin_preamble - -\end_preamble -\use_default_options false -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding auto -\fontencoding global -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures false -\graphics default -\default_output_format default -\output_sync 0 -\bibtex_command default -\index_command default -\paperfontsize 10 -\spacing single -\use_hyperref false -\papersize default -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\cite_engine basic -\cite_engine_type default -\biblio_style plain -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date false -\justification true -\use_refstyle 0 -\use_minted 0 -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation indent -\paragraph_indentation default -\is_math_indent 0 -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\bulletLaTeX 0 "\raise1pt\hbox{\small\(\blacktriangleright\)}" -\bulletLaTeX 1 "\raise1pt\hbox{\(\leadsto\)}" -\bullet 2 4 8 3 -\bullet 3 0 8 -1 -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Section* -Introduction -\end_layout - -\begin_layout Standard -You'll see pretty quickly that bullet settings can be quite complex if you - want them to be. - Don't be frightened, most settings are just a mouse click or two away. -\end_layout - -\begin_layout Itemize - -\emph on -itemize -\emph default - is the standard environment for bullet lists -\end_layout - -\begin_deeper -\begin_layout Itemize -it has its own counter that limits it to 4 levels -\end_layout - -\begin_deeper -\begin_layout Itemize -each level can have its own bullet shape -\end_layout - -\begin_deeper -\begin_layout Itemize -\SpecialChar LyX - however displays all bullets as an `*' -\end_layout - -\end_deeper -\end_deeper -\end_deeper -\begin_layout Itemize -Also note that \SpecialChar LyX - does -\emph on -not -\emph default - check the environment depths for you -\end_layout - -\begin_deeper -\begin_layout Itemize -Other than to enforce the \SpecialChar LaTeX - depth limit of 6 for all lists. -\end_layout - -\end_deeper -\begin_layout Standard -Are there any other restrictions? -\end_layout - -\begin_layout Standard -Yes. - The bullet selection support will allow you to set the bullets used across - the entire document only. - If you want to customise each paragraph you'll have to do that manually. -\end_layout - -\begin_layout Standard -You can access the popup via the -\family sans -Layout\SpecialChar menuseparator -Document\SpecialChar ldots - -\family default - menu and select the -\family sans -Bullet Shapes -\family default - button. - Try it now. -\end_layout - -\begin_layout Section* -Bullet Tables: -\end_layout - -\begin_layout Standard -The following tables are those used to generate the bullet panels in the - -\family sans -Itemize Bullet Selection -\family default - popup. -\end_layout - -\begin_layout Subsection* -Standard -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\series bold -– -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\vdash$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\dashv$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\flat$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\natural$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\sharp$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\ast$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\star$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\bullet$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\circ$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\cdot$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\dagger$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\bigtriangleup$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\bigtriangledown$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\triangleleft$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\triangleright$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\lhd$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\rhd$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\oplus$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\ominus$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\otimes$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\oslash$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\odot$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\spadesuit$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\diamond$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Diamond$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Box$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\diamondsuit$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\heartsuit$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\clubsuit$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\rightarrow$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\leadsto$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\rightharpoonup$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\rightharpoondown$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Rightarrow$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\succ$ -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Subsection* -Maths (AMS -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -American Mathematical Society -\end_layout - -\end_inset - --symbols) -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Rrightarrow$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\rightarrowtail$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\twoheadrightarrow$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\rightsquigarrow$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\looparrowright$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\multimap$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\boxtimes$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\boxplus$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\boxminus$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\boxdot$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\divideontimes$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Vvdash$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\lessdot$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\gtrdot$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\maltese$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\bigstar$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\checkmark$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\Vdash$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\backsim$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\thicksim$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\centerdot$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\circleddash$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\circledast$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\circledcirc$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\vartriangleleft$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\vartriangleright$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\vartriangle$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\triangledown$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\lozenge$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\square$ -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\blacktriangleleft$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\blacktriangleright$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\blacktriangle$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\blacktriangledown$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\blacklozenge$ -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Formula $\blacksquare$ -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Subsection* -Ding 1 (PSNFSS -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -NFSS is the New Font Selecting Scheme of \SpecialChar LaTeX2e - (basically, what changed the font - commands from -\family typewriter -{ -\backslash -bf \SpecialChar ldots -} -\family default - to -\family typewriter - -\backslash -textbf{\SpecialChar ldots -} -\family default -, although the real changes are inside the guts). - PS stands for PostScript. - PSNFSS is a set of \SpecialChar LaTeX - files which provide NFSS support for the basic set - of 35 PS fonts present in many postscript printers. - -\end_layout - -\end_inset - - Fonts - Zapf Dingbats and Symbols) -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{108} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{109} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{119} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{197} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{196} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{183} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{71} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{70} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{118} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{117} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{224} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{215} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{111} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{112} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{113} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{114} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{68} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{209} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{120} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{121} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{122} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{110} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{115} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{116} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{42} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{67} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{66} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{82} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{81} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{228} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{162} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{163} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{166} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{167} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{226} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{227} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Subsection* -Ding 2 -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{37} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{38} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{34} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{36} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{39} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{40} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{41} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{42} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{43} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{44} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{45} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{47} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{53} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{54} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{59} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{57} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{62} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{61} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{55} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{56} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{58} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{60} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{63} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{64} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{51} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{52} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{170} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{167} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{168} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{169} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{164} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{165} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{171} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{168} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{169} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{170} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Subsection* -Ding 3 -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{65} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{76} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{75} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{72} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{80} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{74} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{78} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{77} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{79} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{85} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{90} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{98} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{83} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{84} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{86} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{87} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{88} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{89} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{92} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{91} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{93} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{105} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{94} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{99} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{103} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{104} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{106} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{107} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{68} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{69} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{100} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{101} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{102} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{96} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{95} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{97} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Subsection* -Ding 4 -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Tabular - - - - - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{223} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{224} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{225} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{232} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{229} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{230} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{238} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{237} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{236} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{235} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{234} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{233} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{239} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{241} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{250} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{251} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{49} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{50} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{217} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{245} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{243} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{248} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{252} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{253} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{219} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{213} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{221} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{222} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{220} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{212} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{174} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{222} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{254} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{242} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ding{231} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -Pisymbol{psy}{45} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\end_body -\end_document diff --git a/lib/examples/Letters/Serial_Letter_1.lyx b/lib/examples/Letters/Serial_Letter_1.lyx new file mode 100644 index 0000000000..27c0a826b0 --- /dev/null +++ b/lib/examples/Letters/Serial_Letter_1.lyx @@ -0,0 +1,399 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrlttr2 +\begin_preamble +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Here you can modify the layout of your letter +%% Have a look at the KOMA script documentation +%% for details. Most commands are commented out +%% here (i.e. we use default settings) +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Load an *.lco style file (see KOMA documentation) +\LoadLetterOption{DIN}% + +%% THE CLASS OPTIONS +%% Remove preceeding '%' to uncomment an item +\KOMAoptions{% +%headsepline=true,% separate the header with a line on page >1 +%footsepline=true,% separate the footer with a line on page >1 +%pagenumber=botcenter,% position of the page number (see docu) +%parskip=false,% Use indent instead of skip (more options cf. docu) +fromalign=center,% alignment of the address +fromrule=aftername,% separate the address with a line? +fromphone=true,% print sender phone number +%fromfax=true,% print sender fax number +fromemail=true,% print sender e-mail address +fromurl=true% print sender URL +%fromlogo=true,% print a logo (position depends on fromalign) +%addrfield=false,% print an address field? +%backaddress=false,% print the back address? +%subject=afteropening,titled,% alternative subject layout and position +%locfield=narrow,% width of the (extra) location field +%foldmarks=false,% print foldmarks? +%numericaldate=true,% date layout +%refline=wide% layout of the refline +} + +%% Customize Separators +%\setkomavar{placeseparator}{ -- } +\setkomavar{backaddressseparator}{ $\cdot$ } +%\setkomavar{emailseparator}{ --> } +%\setkomavar{enclseparator}{ > } +%\setkomavar{faxseparator}{ --> } +%\setkomavar{phoneseparator}{ --> } +%\setkomavar{subjectseparator}{ >>> } + +%% Customize fonts +%% Use LaTeX's standard font commands +%% Modify with \setkomafont or \addtokomafont +%% (see KOMA documentation) +\setkomafont{backaddress}{\rmfamily} +%\setkomafont{descriptionlabel}{} +\setkomafont{fromaddress}{\small} +\setkomafont{fromname}{\scshape} +%\setkomafont{pagefoot}{} +%\setkomafont{pagehead}{} +%\setkomafont{pagenumber}{} +%\setkomafont{subject}{} +%\setkomafont{title}{} +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "palatino" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 11 +\spacing other 1.15 +\use_hyperref true +\pdf_bookmarks false +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style german +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Name +The \SpecialChar LyX + Developers Team +\end_layout + +\begin_layout SenderAddress +140 Map Road +\begin_inset Newline newline +\end_inset + +SVN City +\end_layout + +\begin_layout Telephone +0011/222 +\begin_inset space \thinspace{} +\end_inset + +333 +\end_layout + +\begin_layout E-Mail +lyx-users@lists.lyx.org +\end_layout + +\begin_layout URL +www.lyx.org +\end_layout + +\begin_layout Backaddress +The \SpecialChar LyX + Developers Team +\begin_inset Newline newline +\end_inset + +140 Map Road +\begin_inset Newline newline +\end_inset + +SVN City +\end_layout + +\begin_layout Signature +The \SpecialChar LyX + Team +\end_layout + +\begin_layout Subject +New KOMA letter layout +\end_layout + +\begin_layout Place +The Internet +\end_layout + +\begin_layout Date +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +today +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +renewcommand*{ +\backslash +adrentry}[8]{% +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Address +\begin_inset ERT +status open + +\begin_layout Plain Layout + +#2 #1 +\backslash + +\backslash + +\end_layout + +\begin_layout Plain Layout + +#3 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Opening +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +if #5m{Dear Mr.~#1,} +\backslash +fi +\end_layout + +\begin_layout Plain Layout + + +\backslash +if #5f{Dear Mrs.~#1,} +\backslash +fi +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +this example is a serial letter to +\series bold +all persons +\series default + in an address database. + The design of address databases is described in the documentation listed + below. +\end_layout + +\begin_layout Standard +This template illustrates the use of the new scrlttr2 class (introduced + with KOMA-script v. + 2.9). + This letter class is very flexible. + Have a look at +\family sans +Layout\SpecialChar menuseparator +Document\SpecialChar menuseparator +Preamble +\family default + for the most common parameters. + Please consult the KOMA Script documentation +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +\begin_inset CommandInset href +LatexCommand href +target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf" +literal "false" + +\end_inset + + +\end_layout + +\end_inset + + for a detailed description. +\end_layout + +\begin_layout Closing +Have fun with it, +\end_layout + +\begin_layout PS +p. +\begin_inset space \thinspace{} +\end_inset + +s.: The blue colored items have to be before the address, the magenta colored + after it. +\end_layout + +\begin_layout CC +The \SpecialChar LyX + Users +\end_layout + +\begin_layout EndLetter +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +keep this environment empty +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +closes the above +\series bold + +\backslash +renewcommand* +\series default + command +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand input +filename "addressExample.adr" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Letters/Serial_Letter_2.lyx b/lib/examples/Letters/Serial_Letter_2.lyx new file mode 100644 index 0000000000..55f44283f0 --- /dev/null +++ b/lib/examples/Letters/Serial_Letter_2.lyx @@ -0,0 +1,321 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrlttr2 +\begin_preamble +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Here you can modify the layout of your letter +%% Have a look at the KOMA script documentation +%% for details. Most commands are commented out +%% here (i.e. we use default settings) +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Load an *.lco style file (see KOMA documentation) +\LoadLetterOption{DIN}% + +%% THE CLASS OPTIONS +%% Remove preceeding '%' to uncomment an item +\KOMAoptions{% +%headsepline=true,% separate the header with a line on page >1 +%footsepline=true,% separate the footer with a line on page >1 +%pagenumber=botcenter,% position of the page number (see docu) +%parskip=false,% Use indent instead of skip (more options cf. docu) +fromalign=center,% alignment of the address +fromrule=aftername,% separate the address with a line? +fromphone=true,% print sender phone number +%fromfax=true,% print sender fax number +fromemail=true,% print sender e-mail address +fromurl=true% print sender URL +%fromlogo=true,% print a logo (position depends on fromalign) +%addrfield=false,% print an address field? +%backaddress=false,% print the back address? +%subject=afteropening,titled,% alternative subject layout and position +%locfield=narrow,% width of the (extra) location field +%foldmarks=false,% print foldmarks? +%numericaldate=true,% date layout +%refline=wide% layout of the refline +} + +%% Customize Separators +%\setkomavar{placeseparator}{ -- } +\setkomavar{backaddressseparator}{ $\cdot$ } +%\setkomavar{emailseparator}{ --> } +%\setkomavar{enclseparator}{ > } +%\setkomavar{faxseparator}{ --> } +%\setkomavar{phoneseparator}{ --> } +%\setkomavar{subjectseparator}{ >>> } + +%% Customize fonts +%% Use LaTeX's standard font commands +%% Modify with \setkomafont or \addtokomafont +%% (see KOMA documentation) +\setkomafont{backaddress}{\rmfamily} +%\setkomafont{descriptionlabel}{} +\setkomafont{fromaddress}{\small} +\setkomafont{fromname}{\scshape} +%\setkomafont{pagefoot}{} +%\setkomafont{pagehead}{} +%\setkomafont{pagenumber}{} +%\setkomafont{subject}{} +%\setkomafont{title}{} +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "palatino" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 11 +\spacing other 1.15 +\use_hyperref true +\pdf_bookmarks false +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style danish +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Name +The \SpecialChar LyX + Developers Team +\end_layout + +\begin_layout SenderAddress +140 Map Road +\begin_inset Newline newline +\end_inset + +SVN City +\end_layout + +\begin_layout Telephone +0011/222 +\begin_inset space \thinspace{} +\end_inset + +333 +\end_layout + +\begin_layout E-Mail +lyx-users@lists.lyx.org +\end_layout + +\begin_layout URL +www.lyx.org +\end_layout + +\begin_layout Backaddress +The \SpecialChar LyX + Developers Team +\begin_inset Newline newline +\end_inset + +140 Map Road +\begin_inset Newline newline +\end_inset + +SVN City +\end_layout + +\begin_layout Signature +The \SpecialChar LyX + Team +\end_layout + +\begin_layout Subject +New KOMA letter layout +\end_layout + +\begin_layout Place +The Internet +\end_layout + +\begin_layout Date +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +today +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand input +filename "addressExample.adr" + +\end_inset + + +\end_layout + +\begin_layout Address +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +WILBOE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Opening +Dear Wilhelm, +\end_layout + +\begin_layout Standard +this example is a serial letter to +\series bold +one person +\series default + in an address database. + The design of address databases is described in the documentation listed + below. +\end_layout + +\begin_layout Standard +This template illustrates the use of the new scrlttr2 class (introduced + with KOMA-script v. + 2.9). + This letter class is very flexible. + Have a look at +\family sans +Layout\SpecialChar menuseparator +Document\SpecialChar menuseparator +Preamble +\family default + for the most common parameters. + Please consult the KOMA Script documentation +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +\begin_inset CommandInset href +LatexCommand href +target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf" +literal "false" + +\end_inset + + +\end_layout + +\end_inset + +for a detailed description. +\end_layout + +\begin_layout Closing +Have fun with it, +\end_layout + +\begin_layout PS +p. +\begin_inset space \thinspace{} +\end_inset + +s.: The blue colored items have to be before the address, the magenta colored + after it. +\end_layout + +\begin_layout CC +The \SpecialChar LyX + Users +\end_layout + +\begin_layout EndLetter +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +keep this environment empty +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Letters/Serial_Letter_3.lyx b/lib/examples/Letters/Serial_Letter_3.lyx new file mode 100644 index 0000000000..fefedb9b7e --- /dev/null +++ b/lib/examples/Letters/Serial_Letter_3.lyx @@ -0,0 +1,449 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrlttr2 +\begin_preamble +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Here you can modify the layout of your letter +%% Have a look at the KOMA script documentation +%% for details. Most commands are commented out +%% here (i.e. we use default settings) +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Load an *.lco style file (see KOMA documentation) +\LoadLetterOption{DIN}% + +%% THE CLASS OPTIONS +%% Remove preceeding '%' to uncomment an item +\KOMAoptions{% +%headsepline=true,% separate the header with a line on page >1 +%footsepline=true,% separate the footer with a line on page >1 +%pagenumber=botcenter,% position of the page number (see docu) +%parskip=false,% Use indent instead of skip (more options cf. docu) +fromalign=center,% alignment of the address +fromrule=aftername,% separate the address with a line? +fromphone=true,% print sender phone number +%fromfax=true,% print sender fax number +fromemail=true,% print sender e-mail address +fromurl=true% print sender URL +%fromlogo=true,% print a logo (position depends on fromalign) +%addrfield=false,% print an address field? +%backaddress=false,% print the back address? +%subject=afteropening,titled,% alternative subject layout and position +%locfield=narrow,% width of the (extra) location field +%foldmarks=false,% print foldmarks? +%numericaldate=true,% date layout +%refline=wide% layout of the refline +} + +%% Customize Separators +%\setkomavar{placeseparator}{ -- } +\setkomavar{backaddressseparator}{ $\cdot$ } +%\setkomavar{emailseparator}{ --> } +%\setkomavar{enclseparator}{ > } +%\setkomavar{faxseparator}{ --> } +%\setkomavar{phoneseparator}{ --> } +%\setkomavar{subjectseparator}{ >>> } + +%% Customize fonts +%% Use LaTeX's standard font commands +%% Modify with \setkomafont or \addtokomafont +%% (see KOMA documentation) +\setkomafont{backaddress}{\rmfamily} +%\setkomafont{descriptionlabel}{} +\setkomafont{fromaddress}{\small} +\setkomafont{fromname}{\scshape} +%\setkomafont{pagefoot}{} +%\setkomafont{pagehead}{} +%\setkomafont{pagenumber}{} +%\setkomafont{subject}{} +%\setkomafont{title}{} +\end_preamble +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "palatino" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 11 +\spacing other 1.15 +\use_hyperref true +\pdf_bookmarks false +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style danish +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Name +The \SpecialChar LyX + Developers Team +\end_layout + +\begin_layout SenderAddress +140 Map Road +\begin_inset Newline newline +\end_inset + +SVN City +\end_layout + +\begin_layout Telephone +0011/222 +\begin_inset space \thinspace{} +\end_inset + +333 +\end_layout + +\begin_layout E-Mail +lyx-users@lists.lyx.org +\end_layout + +\begin_layout URL +www.lyx.org +\end_layout + +\begin_layout Backaddress +The \SpecialChar LyX + Developers Team +\begin_inset Newline newline +\end_inset + +140 Map Road +\begin_inset Newline newline +\end_inset + +SVN City +\end_layout + +\begin_layout Signature +The \SpecialChar LyX + Team +\end_layout + +\begin_layout Subject +New KOMA letter layout +\end_layout + +\begin_layout Place +The Internet +\end_layout + +\begin_layout Date +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +today +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +renewcommand*{ +\backslash +adrentry}[8]{ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +if #5f +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +condition for this letter: gender [#5] must be female [f] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Address +\begin_inset ERT +status open + +\begin_layout Plain Layout + +#2 #1 +\backslash + +\backslash + +\end_layout + +\begin_layout Plain Layout + +#3 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Opening +Dear Mrs. +\begin_inset space ~ +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +#1 +\end_layout + +\end_inset + +, +\end_layout + +\begin_layout Standard +this example is a serial letter to +\series bold +all female persons +\series default + in an address database. + The design of address databases is described in the documentation listed + below. +\end_layout + +\begin_layout Standard +This template illustrates the use of the new scrlttr2 class (introduced + with KOMA-script v. + 2.9). + This letter class is very flexible. + Have a look at +\family sans +Layout\SpecialChar menuseparator +Document\SpecialChar menuseparator +Preamble +\family default + for the most common parameters. + Please consult the KOMA Script documentation +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +\begin_inset CommandInset href +LatexCommand href +target "http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc/scrguien.pdf" +literal "false" + +\end_inset + + +\end_layout + +\end_inset + + for a detailed description. +\end_layout + +\begin_layout Closing +Have fun with it, +\end_layout + +\begin_layout PS +p. +\begin_inset space \thinspace{} +\end_inset + +s.: The blue colored items have to be before the address, the magenta colored + after it. +\end_layout + +\begin_layout CC +The \SpecialChar LyX + Users +\end_layout + +\begin_layout EndLetter +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +keep this environment empty +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +fi +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Schließt obigen +\series bold + +\backslash +if +\series default + Befehl ab. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +Schließt obigen +\series bold + +\backslash +renewcommand* +\series default + Befehl ab. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset include +LatexCommand input +filename "addressExample.adr" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Letters/addressExample.adr b/lib/examples/Letters/addressExample.adr new file mode 100644 index 0000000000..0f26ff5992 --- /dev/null +++ b/lib/examples/Letters/addressExample.adr @@ -0,0 +1,61 @@ +% Syntax: +% \adrentry{Lastname} -> #1 +% {Firstname} -> #2 +% {Address} -> #3 +% {Telephone} -> #4 +% {F1} -> #5 +% {F2} -> #6 +% {Comment} -> #7 +% {ID} -> #8 +% +% The F1 and F2 fields are free custom fields (F1 is used for gender +% in this example). If you need more fields, there's also an \addrentry +% entry type (note the additional 'd'), which has one additional field +% (cf. the KOMA-script documentation for details). +% NOTE: the ID must be unique. + + +\adrentry{Miller} + {John} + {43 Straight Street\\Boston} + {033-3445-90} + {m} + {} + {Customer} + {JOMILL} + +\adrentry{Boehme} + {Wilhelm} + {Ubierweg 49\\754127 Dingsda} + {0227557/35448} + {m} + {} + {Friend} + {WILBOE} + +\adrentry{Zylla} + {Rieke} + {Salierweg 9\\850289 Kolonia} + {022811/458290} + {f} + {} + {Supervisor} + {RIEZY} + +\adrentry{Klausen} + {Daniela} + {Promenadenweg 17\\23155 Fuhlingen} + {0672289/30945} + {f} + {} + {fellow student} + {DANKLA} + +\adrentry{Tollmann} + {Gerd} + {Ginsterweg 119\\48890 Karlingen} + {074418/90833} + {m} + {} + {Holiday 2004} + {GERTO} diff --git a/lib/examples/Literate.lyx b/lib/examples/Literate.lyx deleted file mode 100644 index ae16f52f19..0000000000 --- a/lib/examples/Literate.lyx +++ /dev/null @@ -1,2195 +0,0 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 544 -\begin_document -\begin_header -\save_transient_properties true -\origin /systemlyxdir/examples/ -\textclass article -\use_default_options false -\begin_modules -noweb -\end_modules -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding default -\fontencoding global -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures false -\graphics default -\default_output_format default -\output_sync 0 -\bibtex_command default -\index_command default -\paperfontsize default -\spacing single -\use_hyperref false -\papersize default -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\cite_engine basic -\cite_engine_type default -\biblio_style plain -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date true -\justification true -\use_refstyle 0 -\use_minted 0 -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation indent -\paragraph_indentation default -\is_math_indent 0 -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Title -\SpecialChar LyX - and Literate Programming -\begin_inset Newline newline -\end_inset - -An example program -\end_layout - -\begin_layout Author -Edmar Wienskoski Jr. -\begin_inset Newline newline -\end_inset - -edmar-w-jr@technologist.com -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -Modified by Bernard Michael Hurley bernardh@westherts.ac.uk —- Don't blame - Edmar for any errors that have crept in! -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Abstract - -\series bold -Note: -\series default - This example program is provided for educational use only. - The functionality in this C program has been superceded by the equivalent - Python code in -\emph on -examples/listerrors.lyx -\emph default - which should be installed in the \SpecialChar LyX - scripts directory. -\end_layout - -\begin_layout Standard -\begin_inset CommandInset toc -LatexCommand tableofcontents - -\end_inset - - -\end_layout - -\begin_layout Section -Introduction -\end_layout - -\begin_layout Standard -After typesetting a document, \SpecialChar LyX - scans the \SpecialChar LaTeX - log file looking for errors. - For each error found, the line number is obtained and a error box is displayed - in the \SpecialChar LyX - screen at that position. -\end_layout - -\begin_layout Standard -To use this feature to view compilation errors while working with literate - documents, we need a program that filters the compilation errors and puts - them in a format suitable for \SpecialChar LyX - reading it. - -\end_layout - -\begin_layout Standard -In this document we present a filter that recognizes compilation error messages - from noweb, gnu C, and the IBM C compiler (xlc). -\end_layout - -\begin_layout Standard -The filter is required to read from standard input, parse for error messages - and copy the error messages to the standard output. - During the output process, the filter must present the error messages in - a format that \SpecialChar LyX - can interpret, currently, the \SpecialChar LaTeX - error message format. - Of course, nothing will prevent future \SpecialChar LyX - releases from being able to read - other formats as well (like gcc error messages for example). - This mechanism is necessary to fully explore the literate programming tool's - capabilities. -\end_layout - -\begin_layout Section -Algorithm -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Function bodies -\end_layout - -\end_inset - -int -\end_layout - -\begin_layout Plain Layout - -main (int argc, char **argv) -\end_layout - -\begin_layout Plain Layout - -{ -\end_layout - -\begin_layout Plain Layout - - if (argc == 2) { -\end_layout - -\begin_layout Plain Layout - - switch (argv[1][0]) { -\end_layout - -\begin_layout Plain Layout - - case 'n': -\end_layout - -\begin_layout Plain Layout - - <> -\end_layout - -\begin_layout Plain Layout - - break; -\end_layout - -\begin_layout Plain Layout - - case 'x': -\end_layout - -\begin_layout Plain Layout - - <> -\end_layout - -\begin_layout Plain Layout - - break; -\end_layout - -\begin_layout Plain Layout - - case 'a': -\end_layout - -\begin_layout Plain Layout - - <> -\end_layout - -\begin_layout Plain Layout - - break; -\end_layout - -\begin_layout Plain Layout - - case 's': -\end_layout - -\begin_layout Plain Layout - - case 'b': -\end_layout - -\begin_layout Plain Layout - - <> -\end_layout - -\begin_layout Plain Layout - - break; -\end_layout - -\begin_layout Plain Layout - - case 'g': -\end_layout - -\begin_layout Plain Layout - - default: -\end_layout - -\begin_layout Plain Layout - - <> -\end_layout - -\begin_layout Plain Layout - - break; -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - } else { -\end_layout - -\begin_layout Plain Layout - - <> -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Function prototypes -\end_layout - -\end_inset - -int main (int argc, char **argv); -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Data Structures -\end_layout - -\begin_layout Standard -We resort to some global variables to allow access from several different - routines. - These are the buffer and related pointers used during the parse of the - input. -\end_layout - -\begin_layout Standard -\begin_inset ERT -status open - -\begin_layout Plain Layout - -<>= -\end_layout - -\begin_layout Plain Layout - -char buffer[200][200]; -\end_layout - -\begin_layout Plain Layout - -int last_buf_line; -\end_layout - -\begin_layout Plain Layout - -int last_err_line; -\end_layout - -\begin_layout Plain Layout - -int err_line;@ -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -The output format -\end_layout - -\begin_layout Standard -The output format mimics the \SpecialChar TeX - error messages format. - This function prints a number of lines residing in the global variable - -\family typewriter -buffer -\family default -, a program name and line number. - There is no special requirement on the input strings, they can be anything. -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -This function has been slightly changed from EW's original to make scanning - a bit easier with \SpecialChar LaTeX -::scanLogFile(). - The test has been added because \SpecialChar LyX - can crash if empty lines are allowed here - — I can't figure out why! — BMH -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Function bodies -\end_layout - -\end_inset - -void -\end_layout - -\begin_layout Plain Layout - -output_error (int buf_size, int error_line, char *tool) -\end_layout - -\begin_layout Plain Layout - -{ -\end_layout - -\begin_layout Plain Layout - - int i; -\end_layout - -\begin_layout Plain Layout - - -\end_layout - -\begin_layout Plain Layout - - fprintf(stdout, "! Build Error: ==> %s ==> -\backslash -n", tool); -\end_layout - -\begin_layout Plain Layout - - fprintf(stdout, " ... -\backslash -n -\backslash -nl.%d ... -\backslash -n", error_line); -\end_layout - -\begin_layout Plain Layout - - -\end_layout - -\begin_layout Plain Layout - - for (i=0; i>= -\end_layout - -\begin_layout Plain Layout - -char *noweb_msgs[] = { -\end_layout - -\begin_layout Plain Layout - - "couldn't open file", -\end_layout - -\begin_layout Plain Layout - - "couldn't open temporary file", -\end_layout - -\begin_layout Plain Layout - - "error writing temporary file", -\end_layout - -\begin_layout Plain Layout - - "ill-formed option", -\end_layout - -\begin_layout Plain Layout - - "unknown option", -\end_layout - -\begin_layout Plain Layout - - "Bad format sequence", -\end_layout - -\begin_layout Plain Layout - - "Can't open output file", -\end_layout - -\begin_layout Plain Layout - - "Can't open temporary file", -\end_layout - -\begin_layout Plain Layout - - "Capacity exceeded:", -\end_layout - -\begin_layout Plain Layout - - "Ignoring unknown option -", -\end_layout - -\begin_layout Plain Layout - - "This can't happen:", -\end_layout - -\begin_layout Plain Layout - - "non-numeric line number in" -\end_layout - -\begin_layout Plain Layout - -}; -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -char *noweb_msgs_mimic_gcc[] = { -\end_layout - -\begin_layout Plain Layout - - ": unescaped << in documentation chunk" -\end_layout - -\begin_layout Plain Layout - -}; -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -A noweb error message can be any string that contains a matching pair of - < < -\begin_inset space ~ -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset space ~ -\end_inset - -> >, or any of the above strings -\end_layout - -\begin_layout Standard -\begin_inset ERT -status open - -\begin_layout Plain Layout - -<>= -\end_layout - -\begin_layout Plain Layout - -int noweb_try (int buf_line) -\end_layout - -\begin_layout Plain Layout - -{ -\end_layout - -\begin_layout Plain Layout - - char *s, *t, *b; -\end_layout - -\begin_layout Plain Layout - - int i; -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - - b = buffer[buf_line]; -\end_layout - -\begin_layout Plain Layout - - err_line = 0; -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - - for (i=0; i<1; i++) { -\end_layout - -\begin_layout Plain Layout - - s = (char *)strstr (b, noweb_msgs_mimic_gcc[i]); -\end_layout - -\begin_layout Plain Layout - - if (s != NULL) { -\end_layout - -\begin_layout Plain Layout - - t = (char *)strchr(buffer[buf_line], ':'); -\end_layout - -\begin_layout Plain Layout - - err_line = atoi(t+1); -\end_layout - -\begin_layout Plain Layout - - t = buffer[buf_line]; -\end_layout - -\begin_layout Plain Layout - - ++s; -\end_layout - -\begin_layout Plain Layout - - while (*(t++) = *(s++)); -\end_layout - -\begin_layout Plain Layout - - return 1; -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - s = (char *)strstr(b, "<<"); -\end_layout - -\begin_layout Plain Layout - - if (s != NULL) { -\end_layout - -\begin_layout Plain Layout - - s = (char *)strstr(s+2, ">>"); -\end_layout - -\begin_layout Plain Layout - - if (s != NULL) { -\end_layout - -\begin_layout Plain Layout - - return 1; -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - } else { -\end_layout - -\begin_layout Plain Layout - - for (i = 0; i < 12; ++i) { -\end_layout - -\begin_layout Plain Layout - - s = (char *)strstr (b, noweb_msgs[i]); -\end_layout - -\begin_layout Plain Layout - - if (s != NULL) { -\end_layout - -\begin_layout Plain Layout - - return 1; -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - return 0; -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\begin_layout Plain Layout - -@ -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset ERT -status open - -\begin_layout Plain Layout - -<>= -\end_layout - -\begin_layout Plain Layout - -int noweb_try (int buf_line); -\end_layout - -\begin_layout Plain Layout - -@ -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The xlc compiler always outputs one single line for each error found, thus - to scan the buffer for xlc error messages it is enough to exam one input - line at a time. -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Scan input for xlc error messages -\end_layout - -\end_inset - -{ -\end_layout - -\begin_layout Plain Layout - - last_buf_line = 0; -\end_layout - -\begin_layout Plain Layout - - while (fgets(buffer[last_buf_line], 200, stdin)) { -\end_layout - -\begin_layout Plain Layout - - if (xlc_try(0)) -\end_layout - -\begin_layout Plain Layout - - output_error(1, err_line, "xlc"); -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -A xlc error message is easy to identify. - Every error message starts with a quoted string with no spaces, a comma, - a space, the word -\begin_inset Quotes eld -\end_inset - -line -\begin_inset Quotes erd -\end_inset - -, a space, and some variable text. - The following routine tests if a given buffer line matches this criteria: -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -<>= -\end_layout - -\begin_layout Plain Layout - -int -\end_layout - -\begin_layout Plain Layout - -xlc_try (int buf_line) -\end_layout - -\begin_layout Plain Layout - -{ -\end_layout - -\begin_layout Plain Layout - - char *s, *t; -\end_layout - -\begin_layout Plain Layout - - -\end_layout - -\begin_layout Plain Layout - - t = buffer[buf_line]; -\end_layout - -\begin_layout Plain Layout - - s = t+1; -\end_layout - -\begin_layout Plain Layout - - while (*s != '"' && *s != ' ' && *s != ' -\backslash -0') -\end_layout - -\begin_layout Plain Layout - - s++; -\end_layout - -\begin_layout Plain Layout - - if (*t != '"' || *s != '"' || strncmp(s+1, ", line ", 7) != 0) -\end_layout - -\begin_layout Plain Layout - - return 0; -\end_layout - -\begin_layout Plain Layout - - s += 8; -\end_layout - -\begin_layout Plain Layout - - err_line = atoi(s); -\end_layout - -\begin_layout Plain Layout - - return 1; -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Function prototypes -\end_layout - -\end_inset - -int xlc_try (int buf_line); -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The gcc compiler error messages are more complicated to scan. - Each error can span more than one line in the buffer. - The good news is that every buffer line on each error has the same pattern, - and share the same line number. - Thus the strategy will be to accumulate lines in the buffer while the reported - line number is still the same. - At the time they differ, all the accumulated lines, except the last one, - will belong to one single error message, which now can be output-ed to - \SpecialChar LyX -. -\end_layout - -\begin_layout Standard -Every gcc error message contains a string with no space followed by a -\begin_inset Quotes eld -\end_inset - -: -\begin_inset Quotes eld -\end_inset - -. - If the next character is a space, then this line is a header of a error - message and the next line will detail the line number of the source code - where the error was found. - Otherwise, the next thing is a integer number followed by another -\begin_inset Quotes eld -\end_inset - -: -\begin_inset Quotes eld -\end_inset - -. -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Scan input for gcc error messages -\end_layout - -\end_inset - -{ -\end_layout - -\begin_layout Plain Layout - - char *s, *t; -\end_layout - -\begin_layout Plain Layout - - -\end_layout - -\begin_layout Plain Layout - - last_buf_line = 0; -\end_layout - -\begin_layout Plain Layout - - while (fgets(buffer[last_buf_line], 200, stdin)) { -\end_layout - -\begin_layout Plain Layout - - /****** Skip lines until I find an error */ -\end_layout - -\begin_layout Plain Layout - - s = (char *)strpbrk(buffer[last_buf_line], " :"); -\end_layout - -\begin_layout Plain Layout - - if (s == NULL || *s == ' ') -\end_layout - -\begin_layout Plain Layout - - continue; /* No gcc error found here */ -\end_layout - -\begin_layout Plain Layout - - do { -\end_layout - -\begin_layout Plain Layout - - <> -\end_layout - -\begin_layout Plain Layout - - /****** OK It is an error message, get line number */ -\end_layout - -\begin_layout Plain Layout - - err_line = atoi(s+1); -\end_layout - -\begin_layout Plain Layout - - if (last_err_line == 0 || last_err_line == err_line) { -\end_layout - -\begin_layout Plain Layout - - last_err_line = err_line; -\end_layout - -\begin_layout Plain Layout - - continue; /* It's either a header or a continuation, don't output - yet */ -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - /****** Completed the scan of one error message, output it to LyX - */ -\end_layout - -\begin_layout Plain Layout - - discharge_buffer(1); -\end_layout - -\begin_layout Plain Layout - - break; -\end_layout - -\begin_layout Plain Layout - - } while (fgets(buffer[last_buf_line], 200, stdin)); -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - /****** EOF completes the scan of whatever was being scanned */ -\end_layout - -\begin_layout Plain Layout - - discharge_buffer(0); -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -gcc error message criteria is to find a "...:999:" or a "...: " -\end_layout - -\end_inset - -/****** Search first ":" in the error number */ -\end_layout - -\begin_layout Plain Layout - -s = (char *)strpbrk(buffer[last_buf_line], " :"); -\end_layout - -\begin_layout Plain Layout - -last_buf_line++; -\end_layout - -\begin_layout Plain Layout - -if (s == NULL || *s == ' ') -\end_layout - -\begin_layout Plain Layout - - <> -\end_layout - -\begin_layout Plain Layout - -/****** Search second ":" in the error number */ -\end_layout - -\begin_layout Plain Layout - -t = (char *)strpbrk(s+1, " :");if (t == NULL || *t == ' ') <>/****** - Verify if is all digits between ":" */if (t != s+1+strspn(s+1, "0123456789")) - <>@ -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -<>= -\end_layout - -\begin_layout Plain Layout - -{ -\end_layout - -\begin_layout Plain Layout - - err_line = 0; -\end_layout - -\begin_layout Plain Layout - - discharge_buffer(1); -\end_layout - -\begin_layout Plain Layout - - continue; -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -As we mentioned, when the scan of one gcc error message is completed everything - in the buffer except the last line is one single error message. - But if the scan terminates with a EOF or through finding one line that - does not match the gcc error message criteria, then there is no -\begin_inset Quotes eld -\end_inset - -last line -\begin_inset Quotes erd -\end_inset - - in the buffer to be concerned with. - In those cases we empty the buffer completely. -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -<>= -\end_layout - -\begin_layout Plain Layout - -void -\end_layout - -\begin_layout Plain Layout - -discharge_buffer (int save_last) -\end_layout - -\begin_layout Plain Layout - -{ -\end_layout - -\begin_layout Plain Layout - - if (last_err_line != 0) { -\end_layout - -\begin_layout Plain Layout - - clean_gcc_messages(); -\end_layout - -\begin_layout Plain Layout - - if (save_last != 0) { -\end_layout - -\begin_layout Plain Layout - - output_error(last_buf_line-1, last_err_line, "gcc"); -\end_layout - -\begin_layout Plain Layout - - strcpy (buffer[0], buffer[last_buf_line-1]); -\end_layout - -\begin_layout Plain Layout - - last_err_line = err_line; -\end_layout - -\begin_layout Plain Layout - - last_buf_line = 1; -\end_layout - -\begin_layout Plain Layout - - } else { -\end_layout - -\begin_layout Plain Layout - - ++last_buf_line; -\end_layout - -\begin_layout Plain Layout - - clean_gcc_messages(); -\end_layout - -\begin_layout Plain Layout - - output_error(last_buf_line-1, last_err_line, "gcc"); -\end_layout - -\begin_layout Plain Layout - - last_err_line = 0; -\end_layout - -\begin_layout Plain Layout - - last_buf_line = 0; -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Function prototypes -\end_layout - -\end_inset - -void discharge_buffer (int save_last); -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The next function -\begin_inset Quotes eld -\end_inset - -cleans -\begin_inset Quotes erd -\end_inset - - superfluous information from gcc messages, namely the name of the noweb - file and the line number of the Error. -\begin_inset Foot -status collapsed - -\begin_layout Plain Layout -More could be done. - For instance, some way of distinguishing between gcc Errors and Warnings - should be devised. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Function bodies -\end_layout - -\end_inset - -void -\end_layout - -\begin_layout Plain Layout - -clean_gcc_messages () -\end_layout - -\begin_layout Plain Layout - -{ -\end_layout - -\begin_layout Plain Layout - - int index; -\end_layout - -\begin_layout Plain Layout - - char search [30]; -\end_layout - -\begin_layout Plain Layout - - char *tail, *head; -\end_layout - -\begin_layout Plain Layout - - int search_len = sprintf(search, ".nw:%d:", last_err_line); -\end_layout - -\begin_layout Plain Layout - - -\end_layout - -\begin_layout Plain Layout - - for (index = 0; index < last_buf_line-1; index++) { -\end_layout - -\begin_layout Plain Layout - - tail = (char *)strstr (buffer[index], search); -\end_layout - -\begin_layout Plain Layout - - if ( tail == NULL) { -\end_layout - -\begin_layout Plain Layout - - tail = (char *) strstr (buffer[index], ".nw:"); -\end_layout - -\begin_layout Plain Layout - - if (tail) { -\end_layout - -\begin_layout Plain Layout - - tail += 4; -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - } else { -\end_layout - -\begin_layout Plain Layout - - tail += search_len; -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - if (tail != NULL) { -\end_layout - -\begin_layout Plain Layout - - head = buffer[index]; -\end_layout - -\begin_layout Plain Layout - - while (*(head++) = *(tail++)); -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Function prototypes -\end_layout - -\end_inset - -void clean_gcc_messages (); -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -To combine the scan of noweb error messages and xlc error messages is very - simple. - We just try each one for every input line: -\end_layout - -\begin_layout Standard -\begin_inset ERT -status open - -\begin_layout Plain Layout - -<>= -\end_layout - -\begin_layout Plain Layout - -{ -\end_layout - -\begin_layout Plain Layout - - last_buf_line = 0; -\end_layout - -\begin_layout Plain Layout - - while (fgets(buffer[0], 200, stdin)) { -\end_layout - -\begin_layout Plain Layout - - if (noweb_try(0)) -\end_layout - -\begin_layout Plain Layout - - output_error(1, err_line, "noweb"); -\end_layout - -\begin_layout Plain Layout - - else if (xlc_try(0)) -\end_layout - -\begin_layout Plain Layout - - output_error(1, err_line, "xlc"); -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\begin_layout Plain Layout - -@ -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -To combine the scan of noweb error messages and gcc error messages is simple - if we realize that it is not possible to find a noweb error message in - the middle of a gcc error message. - So we just repeat the gcc procedure and test for noweb error messages in - the beginning of the scan: -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Solaris and Linux systems using both noweb and gcc -\end_layout - -\end_inset - -{ -\end_layout - -\begin_layout Plain Layout - - char *s, *t; -\end_layout - -\begin_layout Plain Layout - - -\end_layout - -\begin_layout Plain Layout - - last_buf_line = 0; -\end_layout - -\begin_layout Plain Layout - - while (fgets(buffer[last_buf_line], 200, stdin)) { -\end_layout - -\begin_layout Plain Layout - - /****** Skip lines until I find an error */ -\end_layout - -\begin_layout Plain Layout - - if (last_buf_line == 0 && noweb_try(0)) { -\end_layout - -\begin_layout Plain Layout - - output_error(1, err_line, "noweb"); -\end_layout - -\begin_layout Plain Layout - - continue; -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - s = (char *)strpbrk(buffer[last_buf_line], " :"); -\end_layout - -\begin_layout Plain Layout - - if (s == NULL || *s == ' ') -\end_layout - -\begin_layout Plain Layout - - continue; /* No gcc error found here */ -\end_layout - -\begin_layout Plain Layout - - do { -\end_layout - -\begin_layout Plain Layout - - <> -\end_layout - -\begin_layout Plain Layout - - /****** OK It is an error, get line number */ -\end_layout - -\begin_layout Plain Layout - - err_line = atoi(s+1); -\end_layout - -\begin_layout Plain Layout - - if (last_err_line == 0 || last_err_line == err_line) { -\end_layout - -\begin_layout Plain Layout - - last_err_line = err_line; -\end_layout - -\begin_layout Plain Layout - - continue; /* It's either a header or a continuation, don't output - yet */ -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - /****** Completed the scan of one error message, output it to LyX - */ -\end_layout - -\begin_layout Plain Layout - - discharge_buffer(1); -\end_layout - -\begin_layout Plain Layout - - break; -\end_layout - -\begin_layout Plain Layout - - } while (fgets(buffer[last_buf_line], 200, stdin)); -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - /****** EOF completes the scan of whatever was being scanned */ -\end_layout - -\begin_layout Plain Layout - - discharge_buffer(0); -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Wrapping the code into a file -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -listerrors.c -\end_layout - -\end_inset - -#include -\end_layout - -\begin_layout Plain Layout - -#include -\end_layout - -\begin_layout Plain Layout - - -\end_layout - -\begin_layout Plain Layout - -<> -\end_layout - -\begin_layout Plain Layout - -<> -\end_layout - -\begin_layout Plain Layout - -<> -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -To build this program, we want to add the -\begin_inset Quotes eld -\end_inset - --L -\begin_inset Quotes erd -\end_inset - - option in the tangle command to force gdb to load the file -\family typewriter -Literate.nw -\family default - instead of -\family typewriter -listerrors.c -\family default -. - In accordance with this, we pass the -\begin_inset Quotes eld -\end_inset - --g -\begin_inset Quotes erd -\end_inset - - option to gcc. -\end_layout - -\begin_layout Standard -\begin_inset Flex Chunk -status open - -\begin_layout Plain Layout - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -build-script -\end_layout - -\end_inset - -#!/bin/sh -\end_layout - -\begin_layout Plain Layout - -if [ -z "$NOWEB_SOURCE" ]; then NOWEB_SOURCE=Literate.nw; fi -\end_layout - -\begin_layout Plain Layout - -if [ -z "$NOWEB_OUTPUT_DIR" ]; then NOWEB_OUTPUT_DIR=.; fi -\end_layout - -\begin_layout Plain Layout - -notangle -L -Rlisterrors.c ${NOWEB_SOURCE} > ${NOWEB_OUTPUT_DIR}/listerrors.c -\end_layout - -\begin_layout Plain Layout - -gcc -g -o listerrors listerrors.c -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -This project can be tangled and compiled from \SpecialChar LyX - if you set -\family typewriter - -\backslash -build_command -\family default - to call a generic script that always extracts a chunk named -\family typewriter -build-script -\family default - and executes it. - Here is a example of such generic script: -\end_layout - -\begin_layout LyX-Code -#!/bin/sh -\begin_inset Newline newline -\end_inset - -notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$r sh -\end_layout - -\begin_layout LyX-Code - -\end_layout - -\end_body -\end_document diff --git a/lib/examples/Localization_Test.lyx b/lib/examples/Localization_Test.lyx new file mode 100644 index 0000000000..aeb8b766e9 --- /dev/null +++ b/lib/examples/Localization_Test.lyx @@ -0,0 +1,461 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\use_default_options false +\begin_modules +theorems-ams +theorems-ams-extended +linguistics +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "lmodern" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +\SpecialChar LyX + localization test +\end_layout + +\begin_layout Section +Description +\end_layout + +\begin_layout Standard +This document contains large part +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Note that all of them can not be used simulataneously in one file, so few + strings will be missing. + +\end_layout + +\end_inset + + of layout environments and insets which can be translated automatically + by \SpecialChar LyX + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout + These are on the top of normal babel translations and could be regarded + as an extension. +\end_layout + +\end_inset + + in case proper translation is provided in .po file (for a given language) + and layouttranslations file is generated from it. +\end_layout + +\begin_layout Standard +First of all change the language of this document to your own +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +You may need to save this document elsewhere, in case the file is readonly. +\end_layout + +\end_inset + + (or the one to be tested). + Then you can test how much is this language supported in +\end_layout + +\begin_layout Itemize +GUI +\end_layout + +\begin_deeper +\begin_layout Itemize +simply scroll through the whole document in \SpecialChar LyX + window and check all layouts/insets + inside the sections 2&3 are properly translated. +\end_layout + +\begin_layout Itemize +click on the environments box (left top combo box) and scroll through the + listing. + The most important part is the section of mathematical environments. +\end_layout + +\end_deeper +\begin_layout Itemize +final document output - scroll through the whole document in output viewer + of ps/pdf file and again check proper translation. +\end_layout + +\begin_layout Standard +In case you are interested to improve or fix the support of your language, + please drop an email to \SpecialChar LyX + development list. +\end_layout + +\begin_layout Section +Test of environments +\end_layout + +\begin_layout Assumption +qasassa +\end_layout + +\begin_layout Assumption* +abbbbbb +\end_layout + +\begin_layout Acknowledgement +hggg +\end_layout + +\begin_layout Acknowledgement* +uuuu +\end_layout + +\begin_layout Axiom +jjjj +\end_layout + +\begin_layout Axiom* +uuuu +\end_layout + +\begin_layout Case +ddd +\end_layout + +\begin_layout Claim +kkkk +\end_layout + +\begin_layout Claim* +hhhh +\end_layout + +\begin_layout Conclusion +ffff +\end_layout + +\begin_layout Conclusion* +frrrr +\end_layout + +\begin_layout Condition +rrrr +\end_layout + +\begin_layout Condition* +hhhh +\end_layout + +\begin_layout Conjecture +uiiil +\end_layout + +\begin_layout Conjecture* +rrrrrr +\end_layout + +\begin_layout Corollary +nnn +\end_layout + +\begin_layout Corollary* +oioio +\end_layout + +\begin_layout Criterion +hhh +\end_layout + +\begin_layout Criterion* +asdas +\end_layout + +\begin_layout Definition +asdasd +\end_layout + +\begin_layout Definition* +asdad +\end_layout + +\begin_layout Example +asdaa +\end_layout + +\begin_layout Example* +wewe +\end_layout + +\begin_layout Exercise +oiuk +\end_layout + +\begin_layout Exercise* +asdae +\end_layout + +\begin_layout Fact +grt +\end_layout + +\begin_layout Fact* +reeer +\end_layout + +\begin_layout Notation +lhasdf +\end_layout + +\begin_layout Notation* +asdasd +\end_layout + +\begin_layout Note +asdfe +\end_layout + +\begin_layout Problem +sadasd +\end_layout + +\begin_layout Problem* +asdads +\end_layout + +\begin_layout Proof +asassa +\end_layout + +\begin_layout Proposition +sdfsdf +\end_layout + +\begin_layout Proposition* +erteer +\end_layout + +\begin_layout Question +sadas +\end_layout + +\begin_layout Question* +asdads +\end_layout + +\begin_layout Remark +sdfsdf +\end_layout + +\begin_layout Remark* +ghfdhg +\end_layout + +\begin_layout Summary* +as +\end_layout + +\begin_layout Theorem +asdasd +\end_layout + +\begin_layout Theorem* +asdasd +\end_layout + +\begin_layout Section +Test of insets and listings +\end_layout + +\begin_layout Standard +\begin_inset Float algorithm +placement H +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +hhh +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset FloatList algorithm + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float tableau +placement H +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +fggf +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset FloatList tableau + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset listings +lstparams "float,language={C++}" +inline false +status open + +\begin_layout Plain Layout + +\begin_inset Caption Standard + +\begin_layout Plain Layout +ccc +\end_layout + +\end_inset + +while(true); +\end_layout + +\end_inset + + +\begin_inset CommandInset toc +LatexCommand lstlistoflistings + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset nomenclature +LatexCommand nomenclature +symbol "x" +description "dfadsf13" +literal "false" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset nomencl_print +LatexCommand printnomenclature +set_width "auto" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Braille.lyx b/lib/examples/Modules/Braille.lyx new file mode 100644 index 0000000000..1434ce66a3 --- /dev/null +++ b/lib/examples/Modules/Braille.lyx @@ -0,0 +1,721 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +% color greyed-out notes blue +\renewenvironment{lyxgreyedout} + {\textcolor{blue}\bgroup}{\egroup} +\end_preamble +\use_default_options false +\begin_modules +braille +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding utf8 +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref true +\pdf_title "How to write Braille with LyX" +\pdf_author "Uwe Stöhr" +\pdf_bookmarks false +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks true +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "pdfstartview=XYZ" +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\leftmargin 2.5cm +\rightmargin 2.5cm +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +How to write Braille with \SpecialChar LyX + +\end_layout + +\begin_layout Author +Uwe Stöhr +\end_layout + +\begin_layout Standard +First a general note: The Braille you can create with \SpecialChar LaTeX + is not complete! + Braille can have 6 or 8 +\begin_inset space \thinspace{} +\end_inset + +dots, while \SpecialChar LaTeX + (and therefore \SpecialChar LyX +) only supports only 6 +\begin_inset space \thinspace{} +\end_inset + +dot Braille without accented characters. +\end_layout + +\begin_layout Standard +To write Braille with \SpecialChar LyX +, load the module +\family sans +Braille +\family default + in the document settings under +\family sans +Modules +\family default +. + Now select the environment +\family sans +Braille +\begin_inset space ~ +\end_inset + +(default) +\family default + or +\family sans +Braille +\begin_inset space ~ +\end_inset + +(textsize) +\family default + from \SpecialChar LyX +'s environment selection box and write your text. + The other Braille environments are only turn on/off some properties as + described below; keep them empty! +\end_layout + +\begin_layout Standard +Here is an example: +\begin_inset Newline newline +\end_inset + + +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard +with Latin letters: +\begin_inset Newline newline +\end_inset + +This is an example sentence written in Braille. +\end_layout + +\begin_layout Standard +with Braille letters: +\end_layout + +\begin_layout Braille (default) +This is an example sentence written in Braille. +\end_layout + +\begin_layout Standard +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +You can see that \SpecialChar LaTeX + is not able to hyphenate words written in Braille; you + have to do this manually. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Only Latin letters, numbers, punctuations, parentheses, and brackets can + be printed in Braille. + Special characters like +\begin_inset Quotes eld +\end_inset + +@ +\begin_inset Quotes erd +\end_inset + +, or +\begin_inset Quotes eld +\end_inset + +$ +\begin_inset Quotes erd +\end_inset + +, accented characters like umlauts, as well as line breaks are not supported. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + \SpecialChar LyX +'s and \SpecialChar LaTeX +'s proper names +\begin_inset Quotes eld +\end_inset + +\SpecialChar LaTeX + +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +\SpecialChar LaTeX2e + +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +\SpecialChar TeX + +\begin_inset Quotes erd +\end_inset + +, and +\begin_inset Quotes eld +\end_inset + +\SpecialChar LyX + +\begin_inset Quotes erd +\end_inset + + must be inserted as \SpecialChar TeX + code like in the following example: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard +Latin: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +LyX +\end_layout + +\end_inset + + is cool! +\begin_inset Newline newline +\end_inset + +Braille: +\end_layout + +\begin_layout Braille (default) +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +LyX +\end_layout + +\end_inset + + is cool! +\end_layout + +\begin_layout Standard +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard +Here is an overview about the different Braille environments using the example + text +\begin_inset Quotes eld +\end_inset + +This is Braille. +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\family sans +Braille +\begin_inset space ~ +\end_inset + +(default) +\family default +: +\end_layout + +\begin_layout Braille (default) +This is Braille. +\end_layout + +\begin_layout Standard + +\family sans +Braille +\begin_inset space ~ +\end_inset + +(textsize) +\family default + - size that approximately matches the document's text size: +\end_layout + +\begin_layout Braille (textsize) +This is Braille. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\family sans +Braille +\begin_inset space ~ +\end_inset + +(dots on) +\family default + - tiny dots can be displayed at empty positions: +\end_layout + +\begin_layout Braille (dots on) + +\end_layout + +\begin_layout Braille (textsize) +This is Braille. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +Text can be printed mirror-inverted for embossing the Braille by hand with + a needle or another suitable device: +\end_layout + +\begin_layout Standard +Normal: +\end_layout + +\begin_layout Braille (default) +This is Braille. +\end_layout + +\begin_layout Standard + +\family sans +Braille +\begin_inset space ~ +\end_inset + +(mirror on) +\family default +: +\end_layout + +\begin_layout Braille (mirror on) + +\end_layout + +\begin_layout Braille (default) +This is Braille. +\end_layout + +\begin_layout Braille (mirror off) + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +Braille characters can alternatively be created by writing a number to a + Braille box. + A Braille box is inserted with the menu +\family sans + Insert\SpecialChar menuseparator +Custom +\begin_inset space ~ +\end_inset + +insets +\family default +. + Every number in this box turns on the corresponding Braille dot. + For example, the number +\series bold + 6145 +\series default + results in: +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex Braillebox +status open + +\begin_layout Plain Layout +6145 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +Computer Braille that uses 8 +\begin_inset space \thinspace{} +\end_inset + +dots can be turned on with the command +\series bold + +\backslash +brailleeightdotstrue +\series default +. + But the two extra dots are only printed when using a Braille box. + For example, the number +\series bold +8175 +\series default + in a Braille box results in: +\begin_inset Newline newline +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +brailleeightdotstrue +\end_layout + +\end_inset + + +\begin_inset Flex Braillebox +status open + +\begin_layout Plain Layout +8175 +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +brailleeightdotsfalse +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +The size of the default Braille font can be changed by the length +\series bold + +\backslash +brailleunit +\series default +. + Its default value is 2.4 +\begin_inset space \thinspace{} +\end_inset + +mm. + To get e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +double-sized Braille use this command in \SpecialChar TeX + code in your document: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +renewcommand{ +\backslash +braillenormal}[1] +\begin_inset Newline newline +\end_inset + + +\begin_inset space ~ +\end_inset + +{ +\backslash +setlength{ +\backslash +brailleunit}{4.8mm} +\backslash +braille{#1}} +\end_layout + +\begin_layout Standard +Double-sized Braille: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +braillenormal}[1] +\end_layout + +\begin_layout Plain Layout + + { +\backslash +setlength{ +\backslash +brailleunit}{4mm} +\backslash +braille{#1}} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Braille (default) +This is Braille. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +renewcommand{ +\backslash +braillenormal}[1] +\end_layout + +\begin_layout Plain Layout + + { +\backslash +setlength{ +\backslash +brailleunit}{2mm} +\backslash +braille{#1}} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +For more informations about the Braille cell dimensions have a look at +\begin_inset Newline newline +\end_inset + + +\begin_inset CommandInset href +LatexCommand href +name "http://www.tiresias.org/research/reports/braille_cell.htm" +target "http://www.tiresias.org/research/reports/braille_cell.htm" +literal "false" + +\end_inset + +. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Chessboard.lyx b/lib/examples/Modules/Chessboard.lyx new file mode 100644 index 0000000000..e402d0fdc4 --- /dev/null +++ b/lib/examples/Modules/Chessboard.lyx @@ -0,0 +1,572 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 564 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +\AtBeginDocument{% +\columnsep 0.25in +\columnseprule 0.4pt +\hyphenpenalty 10000 +} +\end_preamble +\use_default_options true +\begin_modules +chessboard +multicol +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding auto +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement class +\float_alignment class +\paperfontsize 10 +\spacing single +\use_hyperref false +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\leftmargin 1cm +\topmargin 1cm +\rightmargin 1cm +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip smallskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle empty +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title + +\series bold +\size larger +Email Chess Game analyzed +\end_layout + +\begin_layout Author + +\series bold +\size large +Kayvan A. + Sylvan +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Author + +\series bold +\emph on +Game start 05/29/2001 +\end_layout + +\begin_layout Standard +\begin_inset Flex Multiple Columns +status open + +\begin_layout Plain Layout +The following game was played at the IECC (International Email Chess Club). + It is presented as an example of the fun you can have with \SpecialChar LyX +'s new chessboard + module (using the +\family sans +xskak +\family default + and +\family sans +chessboard +\family default + packages). +\end_layout + +\begin_layout Plain Layout +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +\noun on +Sylvan, Kayvan +\begin_inset space \hfill{} +\end_inset + +Wakeham, Marc +\noun default + +\begin_inset Newline newline +\end_inset + +(1623) +\begin_inset space \hfill{} +\end_inset + +(1639) +\end_layout + +\begin_layout Plain Layout +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout NewChessGame + +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex SetChessBoard +status open + +\begin_layout Plain Layout +pgfstyle=straightmove,arrow=to,linewidth=0.1em,smallboard +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex Mainline +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +outvar +\end_layout + +\end_inset + +1. + e4 c5 2. + Nc3 d6 3. + g3 Nc6 4. + Bg2 e6 5. + Nge2 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\noindent +\align center +\begin_inset Flex ChessBoard +status open + +\begin_layout Plain Layout +\noindent +\align center +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +markmoves={d2-d4},pgfstyle=knightmove,markmove={g1-e2},pgfstyle=circle,markfield +s={d4,f4} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\noindent +\align block +So far, so good. + The e2 knight controls the d4 and f4 squares, preparing an eventual d4 + push. + The diagrammed position has been reached before in hundreds of GM games. +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex Mainline +status open + +\begin_layout Plain Layout + +5... + Be7?! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\noindent +\align block +\begin_inset Flex Variation +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +invar +\end_layout + +\end_inset + +5... + Ng7 +\begin_inset Argument post:1 +status open + +\begin_layout Plain Layout + + +\backslash +equal{} was better +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex Mainline +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +outvar +\end_layout + +\end_inset + +6. + d4 cxd4 7. + Nxd4 a6 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +With 7... + a6, we are back in the well-trodden theory of this opening. +\end_layout + +\begin_layout Plain Layout +\noindent +\align center +\begin_inset Flex ChessBoard +status collapsed + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex Mainline +status open + +\begin_layout Plain Layout + +8. + Nxc6 bxc6 9. + O-O Bb7 10. + Qg4 Bf6 11. + Bf4 Ne7 12. + Rad1 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\noindent +\align center +\begin_inset Flex ChessBoard +status open + +\begin_layout Plain Layout +\noindent +\align center +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +markmoves={a1-d1} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +White continues to develop pieces and also sets a trap for Black. +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex Mainline +status open + +\begin_layout Plain Layout + +12... + O-O? +\begin_inset Argument post:1 +status open + +\begin_layout Plain Layout + +This move loses instantly. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +The following was better, even though white retains the upper hand. +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex Variation +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +invar +\end_layout + +\end_inset + +12... + e5 13. + Be3 Qc7 14. + Na4 O-O +\begin_inset Argument post:1 +status open + +\begin_layout Plain Layout + + +\backslash +wbetter +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex Mainline +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +outvar +\end_layout + +\end_inset + +13. + e5! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +Black's knight and bishop form a bumbling pair here. + The bishop is doomed. +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex Mainline +status open + +\begin_layout Plain Layout + +13... + Nd5!? 14. + Bxd5 cxd5 15. + exf6 Qxf6 16. + Bxd6 Rfd8 17. + Bc7 Rd7 18. + Bf4 +\begin_inset Argument post:1 +status open + +\begin_layout Plain Layout + +1-0 +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\noindent +\align center +\begin_inset Flex ChessBoard +status collapsed + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Fancy_Colored_Boxes.lyx b/lib/examples/Modules/Fancy_Colored_Boxes.lyx new file mode 100644 index 0000000000..2ed3665e58 --- /dev/null +++ b/lib/examples/Modules/Fancy_Colored_Boxes.lyx @@ -0,0 +1,7373 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrartcl +\begin_preamble +% if pdflatex is used +\usepackage{ifpdf} +\ifpdf + +% set fonts for nicer pdf view +\IfFileExists{lmodern.sty} + {\usepackage{lmodern}}{} + +\fi % end if pdflatex is used + +\@ifpackageloaded{babel}{ + % increase link area for cross-references and autoname them, + \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} + \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{} + \addto\extrasenglish{% + \renewcommand*{\equationautorefname}[1]{}% + \renewcommand{\sectionautorefname}{sec.\negthinspace}% + \renewcommand{\subsectionautorefname}{sec.\negthinspace}% + \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}% + } +}{} +\end_preamble +\options BCOR8mm, most, usenames, dvipsnames +\use_default_options false +\begin_modules +tcolorbox +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command bibtex +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "Description of the module tcolorbox" +\pdf_author "Uwe Stöhr" +\pdf_subject "fancy colored boxes" +\pdf_keywords "LyX, tcolorbox, colored boxes" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 3 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks true +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, urlbordercolor={1 0 0}" +\papersize a4paper +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Description of the module Fancy Colored Boxes +\end_layout + +\begin_layout Author +Uwe Stöhr +\end_layout + +\begin_layout Standard +With the module +\emph on +Fancy +\begin_inset space ~ +\end_inset + +Colored +\begin_inset space ~ +\end_inset + +Boxes +\emph default + you have access to a huge variety of colored boxes. + They are particularly useful for presentations or educational texts where + you might for example highlight results or equations. + This document describes how these boxes are used with \SpecialChar LyX +. +\end_layout + +\begin_layout Standard +The fancy boxes are generated by the \SpecialChar LaTeX + package +\series bold +tcolorbox +\series default +. + This package has so many features that its manual exceeds 400 +\begin_inset space ~ +\end_inset + +pages. + \SpecialChar LyX + can therefore only provide access to its basic features. + For more advanced features and examples have a loot at the +\series bold +tcolorbox +\series default + manual, +\begin_inset CommandInset citation +LatexCommand cite +key "tcolorbox" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Section +Preparation +\end_layout + +\begin_layout Standard +At first load the module +\family sans +Fancy +\begin_inset space ~ +\end_inset + +Colored +\begin_inset space ~ +\end_inset + +Boxes +\family default + in the document settings of your file. +\end_layout + +\begin_layout Standard +Add the following options to the document class options in the document + settings of your file: +\end_layout + +\begin_layout Standard + +\series bold +most, usenames, dvipsnames +\end_layout + +\begin_layout Standard +The option +\series bold +most +\series default + loads most of the libraries of the \SpecialChar LaTeX + package +\series bold +tcolorbox +\series default +. + The options +\series bold +usenames, dvipsnames +\series default + load additional colors, see Appendix +\begin_inset space ~ +\end_inset + +C of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual for a list. +\end_layout + +\begin_layout Section +Basics +\end_layout + +\begin_layout Subsection +Box types +\end_layout + +\begin_layout Subsubsection +Static (Standard) +\end_layout + +\begin_layout Standard +A static color box is inserted via the menu +\family sans +Insert\SpecialChar menuseparator +Custom Insets\SpecialChar menuseparator +Color +\begin_inset space ~ +\end_inset + +Box +\family default +. +\end_layout + +\begin_layout Standard +This is a static color box: +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +A basic color box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +It has by default a frame with round corners and consumes the full text + width. + It can contain several paragraphs and math. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The box can contain forced page breaks but they will be ignored. + To get breakable boxes, see +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Beakable-boxes" + +\end_inset + +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Dynamic +\end_layout + +\begin_layout Standard +A dynamic color box is inserted via inset via the menu +\family sans +Insert\SpecialChar menuseparator +Custom Insets\SpecialChar menuseparator +Dynamic +\begin_inset space ~ +\end_inset + +Color +\begin_inset space ~ +\end_inset + +Box +\family default +. +\end_layout + +\begin_layout Standard +This is a dynamic color box: +\begin_inset Flex Dynamic Color Box +status open + +\begin_layout Plain Layout +A dynamic color box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +In contrary to static boxes dynamic boxes cannot have parts, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Box-parts" + +\end_inset + +, and they cannot made breakable but one can set their vertical placement, + see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Vertical" + +\end_inset + +. + Their width is by default the width of the content. +\end_layout + +\begin_layout Subsubsection +Fit +\end_layout + +\begin_layout Standard +A fit color box is inserted via the menu +\family sans +Insert\SpecialChar menuseparator +Custom Insets\SpecialChar menuseparator +Fit +\begin_inset space ~ +\end_inset + +Color +\begin_inset space ~ +\end_inset + +Box +\family default +. +\end_layout + +\begin_layout Standard +Fit boxes are dynamic boxes but their content is automatically decreased + or increased to fit into the specified box width and height. + How to specify a width and height is described in +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Geometry" + +\end_inset + +. + If no width and height is specified the result is a square box consuming + the full available width of the page. + If only a width is specified, the result is a square box. +\end_layout + +\begin_layout Standard +These are fit color boxes: +\end_layout + +\begin_layout Standard +\begin_inset Flex Fit Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=3cm +\end_layout + +\end_inset + +A 3 +\begin_inset space \thinspace{} +\end_inset + +cm wide fit color box with some text. + A 3 +\begin_inset space \thinspace{} +\end_inset + +cm wide fit color box with some text. + A 3 +\begin_inset space \thinspace{} +\end_inset + +cm wide fit color box with some text. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Fit Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=5cm, height=3cm +\end_layout + +\end_inset + +A 5 +\begin_inset space \thinspace{} +\end_inset + +cm wide and 3 +\begin_inset space \thinspace{} +\end_inset + +cm high fit color box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The examples show that the text will be shrinked to fit into the box but + it will not be increased. +\end_layout + +\begin_layout Subsubsection +Custom +\end_layout + +\begin_layout Standard +A custom color box is inserted via the menu +\family sans +Insert\SpecialChar menuseparator +Custom Insets\SpecialChar menuseparator +Custom Color +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +# +\family default + where # is the number. +\end_layout + +\begin_layout Standard +How to use and customize custom color boxes, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:General" + +\end_inset + +. +\end_layout + +\begin_layout Subsection +Titles +\end_layout + +\begin_layout Standard +To add a title to a box add an options inset via the menu Insert\SpecialChar menuseparator +Color +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +Options. + There write +\series bold +title= +\series default + followed by your title. +\end_layout + +\begin_layout Standard +This is a titled box: +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A title +\end_layout + +\end_inset + +A basic box with a title. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +A subtitle is added with the inset +\family sans +Subtitle +\family default + via the menu +\family sans +Insert\SpecialChar menuseparator +Custom Insets +\family default +: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=The title +\end_layout + +\end_inset + +A basic box with a subtitle. + +\begin_inset Flex Subtitle +status open + +\begin_layout Plain Layout +The subtitle +\end_layout + +\end_inset + + The content below the subtitle. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The title and subtitle text is by default white. + How to change its color, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Title-text" + +\end_inset + +. +\end_layout + +\begin_layout Subsection +Box parts +\begin_inset CommandInset label +LatexCommand label +name "subsec:Box-parts" + +\end_inset + + +\end_layout + +\begin_layout Standard +The content of the box can be divided into an upper and a lower part by + using the environment +\family sans +Color Box Separator +\family default + in \SpecialChar LyX +'s environment selection combobox. + The idea behind this is that both parts can be treated and customized separatel +y. + An application would be that the upper part contains a description and + the lower part an equation. +\end_layout + +\begin_layout Standard +This is a box where the content is separated: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +Upper content +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The separation line can be customized as described in +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Lines" + +\end_inset + +. +\end_layout + +\begin_layout Standard +The separation can also be made side by side with the box option +\series bold +sidebyside +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +sidebyside +\end_layout + +\end_inset + +Upper content at the left +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content at the right +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The separation can be made invisible with the box option +\series bold +lower separated=false +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +sidebyside, lower separated=false +\end_layout + +\end_inset + +Upper content invisibly separated +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content at the right +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +There are several layout skins available for colored boxes, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Beamer" + +\end_inset + +, that affects also the layout of the box parts. + For example with the box option +\series bold +beamer +\series default + the box parts are separated this way: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +beamer +\end_layout + +\end_inset + +Upper content +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Lines +\begin_inset CommandInset label +LatexCommand label +name "subsec:Lines" + +\end_inset + + +\end_layout + +\begin_layout Standard +To draw a line in a box use the environment +\family sans +Color Box Line +\family default +. + The line is by default dashed. + Note that it is just a line and does not separate box parts! +\end_layout + +\begin_layout Standard +This is a box with a line: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +Some text +\end_layout + +\begin_layout Color Box Line + +\end_layout + +\begin_layout Plain Layout +Some text +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The line style can only be changed if a skin is specified, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Enhanced" + +\end_inset + +. + Then one can use the box option +\series bold +segmentation style={commands} +\series default + where +\series bold +commands +\series default + are commands to define the style. + See section +\family sans +Library +\begin_inset space ~ +\end_inset + +skins +\family default + of the +\series bold +tcolorbox +\series default + manual for possible commands, +\begin_inset CommandInset citation +LatexCommand cite +key "tcolorbox" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Here is an example in the +\emph on +enhanced +\emph default + skin with a double blue line: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +enhanced, segmentation style={double=white,draw=blue,double distance=1pt,solid} +\end_layout + +\end_inset + +Some text +\end_layout + +\begin_layout Color Box Line + +\end_layout + +\begin_layout Plain Layout +Some text +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\begin_layout Section +Breakable boxes +\begin_inset CommandInset label +LatexCommand label +name "sec:Beakable-boxes" + +\end_inset + + +\end_layout + +\begin_layout Standard +To make a box breakable the option +\series bold +breakable +\series default + is added. + If a page break occurs within a box, the box will get broken this way: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A breakable box, breakable, title after break=continued... +\end_layout + +\end_inset + +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +In the above example the special title +\emph on +continued... + +\emph default + was added for the second page of the box with the option +\series bold +title after break +\series default +. +\end_layout + +\begin_layout Standard +If boxes are inside boxes, only the outer box can made breakable. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Dynamic boxes and fit boxes cannot made breakable! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Customization +\end_layout + +\begin_layout Subsection +General +\begin_inset CommandInset label +LatexCommand label +name "subsec:General" + +\end_inset + + +\end_layout + +\begin_layout Standard +The following subsections show many possibilities to customize boxes. +\end_layout + +\begin_layout Standard +To avoid to write the box commands all the time, you can use the environment + +\family sans +Color +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +Setup +\family default +. + It is inserted via \SpecialChar LyX +'s style selection combobox. + There you can write all options that should be applied for +\emph on +all +\emph default + boxes of the document +\emph on +following +\emph default + the environment. + For example writing there +\series bold +width=3cm, height=8cm +\series default + forces all following boxes to have a height of 8 +\begin_inset space \thinspace{} +\end_inset + +cm and a width of 3 +\begin_inset space \thinspace{} +\end_inset + +cm. + However, this is not useful if one needs several box types since the changes + would affect +\emph on +all +\emph default + boxes. +\end_layout + +\begin_layout Standard +In most documents one need a few types of boxes and all boxes of a type + should look identical. + To achieve this the module +\emph on +Fancy +\begin_inset space ~ +\end_inset + +Colored +\begin_inset space ~ +\end_inset + +Boxes +\emph default + predefines 5 +\begin_inset space ~ +\end_inset + +different box types which you can customize. + To change their appearance use the environment +\family sans +New +\begin_inset space ~ +\end_inset + +Color +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +Type +\family default +. + It is inserted via \SpecialChar LyX +'s style selection combobox. +\end_layout + +\begin_layout Standard +If you want for example a box type that looks like the fancy colored one + in +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Enhanced" + +\end_inset + + use these options in the environment: +\end_layout + +\begin_layout Standard + +\series bold +enhanced, frame style={left color=red!75!black, right color=blue!75!black}, + interior style={left color=red!20!white, right color=yellow!50!white} +\end_layout + +\begin_layout Standard +Into the +\family sans +Name +\family default + inset write +\series bold +cBoxA +\series default + (cBoxA is custom box type +\begin_inset space ~ +\end_inset + +1, cBoxB type +\begin_inset space ~ +\end_inset + +2 etc.). + Because you want to customize every box of this type (e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +every box should have its own title), you need one argument. + Therefore add +\series bold +1 +\series default + into the Arguments inset of the environment. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + If you use an argument, the inset +\family sans +Default Value +\family default + must also be inserted but left empty! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout New Color Box Type +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout + +cBoxA +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout + +1 +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + +enhanced, frame style={left color=red!75!black, right color=blue!75!black}, + interior style={left color=red!20!white, right color=yellow!50!white}, + #1 +\end_layout + +\begin_layout Standard +This way you defined the box type +\family sans +Custom +\begin_inset space ~ +\end_inset + +Color +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +1 +\family default +. + Boxes of this type will look like this: +\end_layout + +\begin_layout Standard +\begin_inset Flex Custom Color Box 1 +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=Custom box +\end_layout + +\end_inset + +Custom color box 1 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +Another example: +\begin_inset Newline newline +\end_inset + +Assuming you need a box type that can be numbered, you insert +\end_layout + +\begin_layout Standard + +\series bold +auto counter, number within=section +\end_layout + +\begin_layout Standard +into the +\family sans +New +\series bold + +\series default +Box Options +\family default + inset of the +\family sans +New +\begin_inset space ~ +\end_inset + +Color +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +Type +\family default + environment. + The +\family sans +Name +\family default + is +\series bold +cBoxB +\series default +, +\family sans +Arguments +\family default + is +\series bold +1 +\series default +. + Now write +\end_layout + +\begin_layout Standard + +\series bold +colback=red!5!white, colframe=red!75!black, title=Example~ +\backslash +thetcbcounter : #1 +\end_layout + +\begin_layout Standard +into the environment. + This predefines a title prefix. + +\series bold + +\backslash +tcbcounter +\series default + is hereby the counter of colored boxes. + In your +\family sans +Custom +\begin_inset space ~ +\end_inset + +Color +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +2 +\family default + you specify the title via the options inset: +\end_layout + +\begin_layout New Color Box Type +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +auto counter, number within=section +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout + +cBoxB +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout + +1 +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + +colback=red!5!white, colframe=red!75!black, title=Example~ +\backslash +thetcbcounter : #1 +\end_layout + +\begin_layout Standard +\begin_inset Flex Custom Color Box 2 +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Custom numbered title +\end_layout + +\end_inset + +Custom color box 2 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Note that you must not write +\series bold +title= +\series default + because this is already done in the definition. +\end_layout + +\begin_layout Standard +You can still customize the box by adding options +\emph on +behind +\emph default + the title: +\end_layout + +\begin_layout Standard +\begin_inset Flex Custom Color Box 2 +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Bold numbered title, colback=lime, fonttitle= +\backslash +bfseries +\end_layout + +\end_inset + +Custom color box 2 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +At last a more advanced example: +\begin_inset Newline newline +\end_inset + +Assuming you need the type we just defined as +\family sans +Custom +\begin_inset space ~ +\end_inset + +Color +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +2 +\family default + but want to add more than one option. + This is for example useful for options that require another option before + in the options list. +\begin_inset Newline newline +\end_inset + +Like before, add +\end_layout + +\begin_layout Standard + +\series bold +auto counter, number within=section +\end_layout + +\begin_layout Standard +into the +\family sans +New +\series bold + +\series default +Box Options +\family default + inset of the +\family sans +New +\begin_inset space ~ +\end_inset + +Color +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +Type +\family default + environment. + The +\family sans +Name +\family default + is +\series bold +cBoxC +\series default +. + Now we need 2 +\begin_inset space ~ +\end_inset + +Arguments, +\family sans +Arguments +\family default + is therefore +\series bold +2 +\series default +. + Now write +\end_layout + +\begin_layout Standard + +\series bold +nobeforeafter, width=#1, square, colframe=orange!50!black, +\begin_inset Newline newline +\end_inset + +title=Example~ +\backslash +thetcbcounter : #2 +\end_layout + +\begin_layout Standard +into the environment. + In your +\family sans +Custom +\begin_inset space ~ +\end_inset + +Color +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +3 +\family default + you specify the width via the +\family sans +Color Box Options +\family default + inset and the title (and further options if you like) via the +\family sans +More Color Box Options +\family default + inset: +\end_layout + +\begin_layout New Color Box Type +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +auto counter, number within=section +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout + +cBoxC +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout + +2 +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + +nobeforeafter, width=#1, square, colframe=orange!50!black, title=Example~ +\backslash +thetcbcounter : #2 +\end_layout + +\begin_layout Standard +\begin_inset Flex Custom Color Box 3 +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +4cm +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +The title +\end_layout + +\end_inset + +4 +\begin_inset space \thinspace{} +\end_inset + +cm wide custom color box 3 +\end_layout + +\end_inset + + +\begin_inset Flex Custom Color Box 3 +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +4cm +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +The title, beamer +\end_layout + +\end_inset + +4 +\begin_inset space \thinspace{} +\end_inset + +cm wide custom color box 3 with the +\emph on +beamer +\emph default + skin +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Skins +\end_layout + +\begin_layout Standard +The \SpecialChar LaTeX + package +\series bold +tcolorbox +\series default + provides different skins. + For a full list, see the +\series bold +tcolorbox +\series default + manual, section +\family sans +Library +\begin_inset space ~ +\end_inset + +skins +\family default +, +\begin_inset CommandInset citation +LatexCommand cite +key "tcolorbox" +literal "true" + +\end_inset + +. + Only the most important skins are listed in the following. +\end_layout + +\begin_layout Subsubsection +Enhanced +\begin_inset CommandInset label +LatexCommand label +name "subsec:Enhanced" + +\end_inset + + +\end_layout + +\begin_layout Standard +This skin is enabled by adding the option enhanced. + Without further options it looks like the standard skin. + Its advantage are some extra features like the customization of lines, + see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Lines" + +\end_inset + + or the ability to have shadows, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Shadows" + +\end_inset + +. + Another feature is a nicer style of breakable boxes: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=An +\emph on +enhanced +\emph default + breakable box, breakable, enhanced +\end_layout + +\end_inset + +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Another feature you might like is to add color gradients with the options + +\series bold +frame style +\series default + and +\series bold +interior style +\series default +. + Their syntax is +\begin_inset Newline newline +\end_inset + + +\series bold +frame style={left color=color, right color=color} +\begin_inset Newline newline +\end_inset + + +\series default +where +\series bold +color +\series default + is a color name or definition, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Color" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=An +\emph on +enhanced +\emph default + box with a color gradient, enhanced, frame style={left color=red!75!black, + right color=blue!75!black}, interior style={left color=red!20!white, right + color=yellow!50!white} +\end_layout + +\end_inset + +Upper content +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Alternatively one can use a PNG image as background for boxes with the option + +\series bold +frame style image=file name +\series default + where +\series bold +file +\begin_inset space ~ +\end_inset + +name +\series default + is the file name of the image. +\end_layout + +\begin_layout Subsubsection +Bicolor +\end_layout + +\begin_layout Standard +With this skin the lower content gets another background color than the + upper part. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A box with the skin +\emph on +bicolor +\emph default +, bicolor +\end_layout + +\end_inset + +Upper content +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The color of the lower part can be changed with the option +\series bold +colbacklower +\series default +. + See +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Color" + +\end_inset + + for color customization. +\end_layout + +\begin_layout Subsubsection +Beamer +\begin_inset CommandInset label +LatexCommand label +name "subsec:Beamer" + +\end_inset + + +\end_layout + +\begin_layout Standard +This is a skin that simulates the appearance of the beamer presentation + document class. + Its appearance can be changed like for the enhanced skin, +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Enhanced" + +\end_inset + +: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A +\emph on +beamer +\emph default + box with a color gradient, beamer, frame style={left color=red!75!black, + right color=blue!75!black} +\end_layout + +\end_inset + +Upper content +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Widget +\end_layout + +\begin_layout Standard +This skin is like the standard skin but the background colors are automatically + shaded: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A +\emph on +widget +\emph default + box, widget +\end_layout + +\end_inset + +Upper content +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Empty +\end_layout + +\begin_layout Standard +This skin has no colors. + To make the title visible (because it is by default white) you have to + change its color, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Title-text" + +\end_inset + +: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A box with the +\emph on +empty +\emph default + skin, empty, coltitle=orange +\end_layout + +\end_inset + +Upper content +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Placement +\end_layout + +\begin_layout Subsubsection +Side by side +\end_layout + +\begin_layout Standard +Normally the boxes are a paragraph of its own. + They will therefore appear by default one upon another separated by vertical + space. + To change this behavior, to place for example boxes side by side, use the + placement options +\series bold +before=code +\series default + and +\series bold +after=code +\series default +. + By default there is a paragraph break before and after the box. + By using the options +\series bold +before=, after= +\series default + nothing will be added besides the boxes so that they can be places side + by side: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=3cm, square, valign=center, before=, after= +\end_layout + +\end_inset + +A 3 +\begin_inset space \thinspace{} +\end_inset + +cm wide, square box. +\end_layout + +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=3cm, square, valign=center, before=, after= +\end_layout + +\end_inset + +A 3 +\begin_inset space \thinspace{} +\end_inset + +cm wide, square box. +\end_layout + +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=3cm, square, valign=center, before=, after= +\end_layout + +\end_inset + +A 3 +\begin_inset space \thinspace{} +\end_inset + +cm wide, square box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The option +\series bold +nobeforeafter +\series default + is an alternative for +\series bold +before=, after= +\series default +. +\end_layout + +\begin_layout Standard +To separate the boxes one can use the normal \SpecialChar LyX + spacing features like a horizontal + fill: +\end_layout + +\begin_layout Standard +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=3cm, square, valign=center, nobeforeafter +\end_layout + +\end_inset + +A 3 +\begin_inset space \thinspace{} +\end_inset + +cm wide, square box. +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=3cm, square, valign=center, nobeforeafter +\end_layout + +\end_inset + +A 3 +\begin_inset space \thinspace{} +\end_inset + +cm wide, square box. +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=3cm, square, valign=center, nobeforeafter +\end_layout + +\end_inset + +A 3 +\begin_inset space \thinspace{} +\end_inset + +cm wide, square box. +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\begin_layout Standard +If you prefer \SpecialChar TeX + code you can alternatively use the option +\series bold +after= +\backslash +hfill +\series default + to add a a horizontal fill. +\end_layout + +\begin_layout Subsubsection +Floating +\end_layout + +\begin_layout Standard +Like for tables and figures in a document it is very helpful if boxes could + float in the text to be placed at the optimal position. + This is achieved by the option +\series bold +float=options +\series default + where +\series bold +options +\series default + are the optional \SpecialChar TeX + floating placement options +\begin_inset Quotes eld +\end_inset + + +\family sans +h +\family default + +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + + +\family sans +t +\family default + +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + + +\family sans +b +\family default + +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + + +\family sans +p +\family default + +\begin_inset Quotes erd +\end_inset + +. + They correspond to the float placement options described in section +\family sans +Float +\begin_inset space ~ +\end_inset + +Placement +\family default + of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. + The placement options can be mixed and are inserted without any separation, + e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + + +\begin_inset Quotes eld +\end_inset + + +\family sans +htbp +\family default + +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A floating box, float, width=5cm, valign=center +\end_layout + +\end_inset + +A 5 +\begin_inset space \thinspace{} +\end_inset + +cm wide floating box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +For floating boxes the options +\series bold +before=code +\series default + and +\series bold +after=code +\series default +are ignored. + One can instead insert code with the command +\series bold +every float=code +\series default + before the box. + If the box is breakable the code is inserted before every part of the break + sequence. + A typical application is to center the floating box with +\series bold +every float= +\backslash +centering: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A floating box, float, width=5cm, valign=center, every float= +\backslash +centering +\end_layout + +\end_inset + +A 5 +\begin_inset space \thinspace{} +\end_inset + +cm wide floating box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Vertical +\begin_inset CommandInset label +LatexCommand label +name "subsec:Vertical" + +\end_inset + + +\end_layout + +\begin_layout Standard +The vertical placement of a box in respect to the surrounding text line + can only be set for dynamic boxes. + The option +\series bold +tcbox raise=length +\series default + raises or lowers the box. + +\series bold +length +\series default + is a value. + The allowed units for values are listed in Appendix +\begin_inset space ~ +\end_inset + +A of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. + The default width is +\series bold +tcbox raise=0pt +\series default +. + With the option +\series bold +tcbox raise base +\series default + the box is lowered so that the base of the box content matches the base + of the surrounding line. +\end_layout + +\begin_layout Standard +An example: +\end_layout + +\begin_layout Standard +A line...... +\begin_inset Flex Dynamic Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +tcbox raise base, nobeforeafter +\end_layout + +\end_inset + +Lowered to base +\end_layout + +\end_inset + +...... +\begin_inset Flex Dynamic Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +nobeforeafter +\end_layout + +\end_inset + +Default placement +\end_layout + +\end_inset + +...... +\begin_inset Flex Dynamic Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +tcbox raise=1cm, nobeforeafter +\end_layout + +\end_inset + +Raised 1 +\begin_inset space \thinspace{} +\end_inset + +cm +\end_layout + +\end_inset + +... +\end_layout + +\begin_layout Subsubsection +Raster +\end_layout + +\begin_layout Standard +The easiest way to place boxes in a table-like raster is to put them into + a raster box. + The +\family sans +Raster +\begin_inset space ~ +\end_inset + +Color +\begin_inset space ~ +\end_inset + +Box +\family default + inset is inserted via the menu +\family sans +Insert\SpecialChar menuseparator +Custom Insets +\family default +. +\end_layout + +\begin_layout Standard +The number of columns is specified with the option +\series bold +raster columns=number +\series default + where +\series bold +number +\series default + is the number of columns. + All boxes inserted to the raster box will now automatically be output in + a raster with 3 columns and their width is automatically adjusted. +\end_layout + +\begin_layout Standard +\begin_inset Flex Raster Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +raster columns=3 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A box +\end_layout + +\end_inset + +A simple box. +\end_layout + +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A box +\end_layout + +\end_inset + +A simple box. +\end_layout + +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A box +\end_layout + +\end_inset + +A simple box. +\end_layout + +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A box +\end_layout + +\end_inset + +A simple box. +\end_layout + +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A box +\end_layout + +\end_inset + +A simple box. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +For more info about options of the raster color box, please consult the + +\series bold +tcolorbox +\series default + manual, section +\family sans +Library +\begin_inset space ~ +\end_inset + +raster +\family default +, +\begin_inset CommandInset citation +LatexCommand cite +key "tcolorbox" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Subsection +Geometry +\begin_inset CommandInset label +LatexCommand label +name "subsec:Geometry" + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Width +\end_layout + +\begin_layout Subsubsection* +Complete box +\end_layout + +\begin_layout Standard +The width of the box is changed with the option +\series bold +width=length +\series default + where +\series bold +length +\series default + is a value. + The allowed units for values are listed in Appendix +\begin_inset space ~ +\end_inset + +A of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. + The default width is +\series bold +width=1 +\backslash +linewidth +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=6cm +\end_layout + +\end_inset + +A 6 +\begin_inset space \thinspace{} +\end_inset + +cm wide box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +One can also set a width only for the text of the box with the option +\series bold +text width=length +\series default +. + If the width is shorter than required for the text, new lines will be created + automatically. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +text width=4cm +\end_layout + +\end_inset + +Some longer text to fill the box with a width of 4 +\begin_inset space \thinspace{} +\end_inset + +cm. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +One cannot combine +\series bold +width +\series default + and +\series bold +text width +\series default +; only the last given width option is taken into account. +\end_layout + +\begin_layout Standard +To extend the width of the box one must use the +\series bold +width +\series default + option and can then use the option +\series bold +add to width=length +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=10cm, add to width=2cm +\end_layout + +\end_inset + +A 10 +\begin_inset space \thinspace{} +\end_inset + +cm wide box with additional width of 2 +\begin_inset space \thinspace{} +\end_inset + +cm. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection* +Content +\end_layout + +\begin_layout Standard +For boxes with parts side by side one can control the width of the box parts + with the options +\series bold +sidebyside gap +\series default +, +\series bold +lefthand width +\series default +, +\series bold +righthand width +\series default +, +\series bold +lefthand ratio +\series default + and +\series bold +righthand ratio +\series default +. + The syntax is +\series bold +sidebyside gap=length +\series default + where +\series bold +length +\series default + is a value. + The allowed units for the values are listed in Appendix +\begin_inset space ~ +\end_inset + +A of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. + All options require of course the option +\series bold +sidebyside +\series default +. +\end_layout + +\begin_layout Standard + +\series bold +sidebyside gap +\series default + sets the space between the left and the right part: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +sidebyside, sidebyside gap=2cm +\end_layout + +\end_inset + +Upper content divided by 2 +\begin_inset space \thinspace{} +\end_inset + +cm +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\series bold +lefthand width +\series default + and +\series bold +righthand width +\series default + set the absolute width of the left and right part, respectively: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +sidebyside, lefthand width=3cm +\end_layout + +\end_inset + +Upper content with a width of 3 +\begin_inset space \thinspace{} +\end_inset + +cm +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\series bold +lefthand ratio +\series default + and +\series bold +righthand ratio +\series default + set the relative width of the left and right part, respectively: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +sidebyside, lefthand ratio=0.3 +\end_layout + +\end_inset + +Upper content with a width of 30 +\begin_inset space \thinspace{} +\end_inset + +% of the box width. +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Height +\begin_inset CommandInset label +LatexCommand label +name "subsec:Height" + +\end_inset + + +\end_layout + +\begin_layout Subsubsection* +Complete box +\end_layout + +\begin_layout Standard +The height of the box is changed with the option +\series bold +height=length +\series default + where +\series bold +length +\series default + is a value. + The default height is the height consumed by the box content. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=2cm +\end_layout + +\end_inset + +A 2 +\begin_inset space \thinspace{} +\end_inset + +cm high box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +If the specified height is smaller than the one consumed by the content, + the content will be placed below the box: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=2mm +\end_layout + +\end_inset + +A 2 +\begin_inset space \thinspace{} +\end_inset + +mm high box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +With the option +\series bold +square +\series default + the height will automatically be set to the same value than the box width. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=3cm, square +\end_layout + +\end_inset + +A squared box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +To extend the height of the box in case the content might consume more height + than expected one must use the +\series bold +height +\series default + option and can then uses the option +\series bold +height plus=length +\series default +. + An application would be to set a maximal possible height in case you write + a book where the spacing is defined and should not be overwritten by any + value. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=2cm, height plus=2cm +\end_layout + +\end_inset + +A 2 +\begin_inset space \thinspace{} +\end_inset + +cm high box with additional height of 2 +\begin_inset space \thinspace{} +\end_inset + +cm. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=2cm, height plus=2cm +\end_layout + +\end_inset + +A 2 +\begin_inset space \thinspace{} +\end_inset + +cm high box with additional height of 2 +\begin_inset space \thinspace{} +\end_inset + +cm. + Its content consumes 3 +\begin_inset space \thinspace{} +\end_inset + +cm therefore the box height will also be 3 +\begin_inset space \thinspace{} +\end_inset + +cm. + A 2 +\begin_inset space \thinspace{} +\end_inset + +cm high box with additional height of 2 +\begin_inset space \thinspace{} +\end_inset + +cm. + Its content consumes 3 +\begin_inset space \thinspace{} +\end_inset + +cm therefore the box height will also be 3 +\begin_inset space \thinspace{} +\end_inset + +cm. + A 2 +\begin_inset space \thinspace{} +\end_inset + +cm high box with additional height of 2 +\begin_inset space \thinspace{} +\end_inset + +cm. + Its content consumes 3 +\begin_inset space \thinspace{} +\end_inset + +cm therefore the box height will also be 3 +\begin_inset space \thinspace{} +\end_inset + +cm. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +In some cases it might be useful to specify an allowed range for the height + with the option +\series bold +height from=min to max +\series default + where +\series bold +min +\series default + and +\series bold +max +\series default + are values. + The height will then be at least the given minimal value or the height + consumed by the content. + It does not exceed the maximum, independent of the content: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height from=1cm to 3cm +\end_layout + +\end_inset + +A box with minimal height of 1 +\begin_inset space \thinspace{} +\end_inset + +cm and maximal height of 3 +\begin_inset space \thinspace{} +\end_inset + +cm. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height from=1cm to 3cm +\end_layout + +\end_inset + +A box with minimal height of 1 +\begin_inset space \thinspace{} +\end_inset + +cm and maximal height of 3 +\begin_inset space \thinspace{} +\end_inset + +cm. + The content consumes more space than 3 +\begin_inset space \thinspace{} +\end_inset + +cm. + A box with minimal height of 1 +\begin_inset space \thinspace{} +\end_inset + +cm and maximal height of 3 +\begin_inset space \thinspace{} +\end_inset + +cm. + The content consumes more space than 3 +\begin_inset space \thinspace{} +\end_inset + +cm. + A box with minimal height of 1 +\begin_inset space \thinspace{} +\end_inset + +cm and maximal height of 3 +\begin_inset space \thinspace{} +\end_inset + +cm. + The content consumes more space than 3 +\begin_inset space \thinspace{} +\end_inset + +cm. + A box with minimal height of 1 +\begin_inset space \thinspace{} +\end_inset + +cm and maximal height of 3 +\begin_inset space \thinspace{} +\end_inset + +cm. + The content consumes more space than 3 +\begin_inset space \thinspace{} +\end_inset + +cm. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +With the option +\series bold +add to height=length +\series default + one can add defined height to the box. + To use this the +\series bold +height +\series default + option must be added +\emph on +before +\emph default + it. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=1cm, add to height=1cm +\end_layout + +\end_inset + +A 1 +\begin_inset space \thinspace{} +\end_inset + +cm high box with 1 +\begin_inset space \thinspace{} +\end_inset + +cm additional height. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +With the option +\series bold +height fill=value +\series default + one can force the box to consume the rest of the available height of the + document parts where it is in. + +\series bold +value +\series default + can either be +\series bold +true +\series default + or +\series bold +maximum +\series default +. + The latter works like +\series bold +true +\series default + but compresses the content of the page before the box as much as possible + to maximize the box. +\begin_inset Newline newline +\end_inset + +In this example the box is in the main text and therefore consumes the rest + of the current page: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height fill=true +\end_layout + +\end_inset + +A box that fills the remaining height of the current page. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection* +Content +\end_layout + +\begin_layout Standard +One can set a height only for the text of the box with the option +\begin_inset Newline newline +\end_inset + + +\series bold +text height=length +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +text height=1.5cm +\end_layout + +\end_inset + +A box with 1.5 +\begin_inset space \thinspace{} +\end_inset + +cm high content. + Due to the frame separation and the frame width the box height is larger + than 1.5 +\begin_inset space \thinspace{} +\end_inset + +cm. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +One cannot combine +\series bold +height +\series default + and +\series bold +text height +\series default +; only the last given width option is taken into account. +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +With the options +\series bold +space=fraction +\series default +, +\series bold +space to upper +\series default +, +\series bold +space to lower +\series default +, +\series bold +space to both +\series default + and +\series bold +split=fraction +\series default + one can specify how the height should be divided between the upper and + the lower part. + For the +\series bold +space +\series default + option +\series bold +fraction +\series default + is the fraction of the additional height (the specified height minus the + height consumed by the content). +\begin_inset Newline newline +\end_inset + +For example +\series bold +space=0.75 +\series default + adds 75 +\begin_inset space \thinspace{} +\end_inset + +% of the additional space to the upper part: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=3cm, space=0.75 +\end_layout + +\end_inset + +A 3 +\begin_inset space \thinspace{} +\end_inset + +cm high box where 75 % of the additional height is set to the upper content. +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard + +\series bold +space to upper +\series default + is equal to +\series bold +space=1 +\series default +, +\series bold +space to lower +\series default + is equal to +\series bold +space=0 +\series default +, +\series bold +space to both +\series default + is equal to +\series bold +space=0 +\series default +.5. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=3cm, space to upper +\end_layout + +\end_inset + +A 3 +\begin_inset space \thinspace{} +\end_inset + +cm high box where all additional height is set to the upper content. +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +For the +\series bold +split +\series default + option +\series bold +fraction +\series default + is the fraction of the complete height (not the additional height). + Therefore one must be careful if e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +the upper part consumes more height than one set via +\series bold +split +\series default +: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=3cm, split=0.1 +\end_layout + +\end_inset + +A 3 +\begin_inset space \thinspace{} +\end_inset + +cm high box where the height is split by 10 +\begin_inset space \thinspace{} +\end_inset + +%. + A 3 +\begin_inset space \thinspace{} +\end_inset + +cm high box where the height is split by 10 +\begin_inset space \thinspace{} +\end_inset + +%. +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +With the option +\series bold +equal height group=id +\series default + it is possible to set the same height for all boxes in a group. + +\series bold +id +\series default + is a name to reference the group. + This is for example useful if one has 3 +\begin_inset space ~ +\end_inset + +boxes side by side inside a box: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +adjusted title=ace, width=0.3 +\backslash +columnwidth, nobeforeafter, equal height group=A +\end_layout + +\end_inset + +A box. +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +adjusted title=Grapefruit, width=0.3 +\backslash +columnwidth, space to upper, nobeforeafter, equal height group=A +\end_layout + +\end_inset + +A box with parts. +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +adjusted title=, width=0.3 +\backslash +columnwidth, nobeforeafter, equal height group=A +\end_layout + +\end_inset + +A box with longer text. + A box with longer text. + A box with longer text. + A box with longer text. + A box with longer text. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The above example was typeset by adding the option +\series bold +equal height group=A +\series default + to all 3 +\begin_inset space ~ +\end_inset + +boxes. + +\series bold +A +\series default + is hereby the name of the group. +\end_layout + +\begin_layout Standard +If you have a title that needs only a single line, it is recommended to + use the option +\series bold +adjusted title +\series default + instead of +\series bold +title +\series default + for all boxes to assure that the title height will be the same for all + boxes. + Otherwise the height would be different in the above example because +\begin_inset Quotes eld +\end_inset + +Grapefruit +\begin_inset Quotes erd +\end_inset + + needs more height than +\begin_inset Quotes eld +\end_inset + +ace +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\begin_layout Subsubsection +Frame +\end_layout + +\begin_layout Standard +The width of the box frame can be changed with the options +\series bold +toprule +\series default +, +\series bold +bottomrule +\series default +, +\series bold +leftrule +\series default +, +\series bold +rightrule +\series default + and +\series bold +titlerule +\series default +. + Each option changes the corresponding part of the frame. + The syntax is +\series bold +toprule=length +\series default + where +\series bold +length +\series default + is a value. + The allowed units for the values are listed in Appendix +\begin_inset space ~ +\end_inset + +A of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. + The default length for all parts is 0.5 +\begin_inset space \thinspace{} +\end_inset + +mm. + To set all frame parts to the same value use the option +\series bold +boxrule +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +leftrule=3mm, rightrule=4mm, toprule=2mm, bottomrule=1mm +\end_layout + +\end_inset + +3 +\begin_inset space \thinspace{} +\end_inset + +mm wide left rule, 4 +\begin_inset space \thinspace{} +\end_inset + +mm wide right rule, 2 +\begin_inset space \thinspace{} +\end_inset + +mm top rule and 1 +\begin_inset space \thinspace{} +\end_inset + +mm bottom rule. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +boxrule=6mm +\end_layout + +\end_inset + +A box with a 6 +\begin_inset space \thinspace{} +\end_inset + +mm wide frame line. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The title rule is the separation between the title and the box content. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A title, titlerule=8mm, colbacktitle=blue +\end_layout + +\end_inset + +A box with a 8 +\begin_inset space \thinspace{} +\end_inset + +mm wide title rule. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Shape +\end_layout + +\begin_layout Standard +By default boxes are rectangular with rounded edges. + The radius of the edges can be changed with the option +\series bold +arc=length +\series default + where +\series bold +length +\series default + is a value. + The allowed units for the values are listed in Appendix +\begin_inset space ~ +\end_inset + +A of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. + The default is +\series bold +arc=1mm +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +arc=0mm +\end_layout + +\end_inset + +A rectangular box ( +\series bold +arc=0 +\begin_inset space \thinspace{} +\end_inset + +mm +\series default +). +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +With the option +\series bold +outer arc=length +\series default + one can set the outer radius independently: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +arc=5mm, outer arc=0mm +\end_layout + +\end_inset + +A box with +\series bold +arc=5 +\begin_inset space \thinspace{} +\end_inset + +mm, +\series default + +\series bold +outer arc=0 +\begin_inset space \thinspace{} +\end_inset + +mm +\series default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +arc=0mm, outer arc=0mm +\end_layout + +\end_inset + +A really rectangular box ( +\series bold +arc +\series default + +\emph on +and +\emph default + +\series bold +outer arc=0 +\begin_inset space \thinspace{} +\end_inset + +mm +\series default +). + The same can alternatively be achieved with the option +\series bold +sharp corners=all +\series default +, see below. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +The general shape can be changed with the options +\series bold +circular arc +\series default +, +\series bold +bean arc +\series default + and +\series bold +octogon arc +\series default +. +\end_layout + +\begin_layout Standard +The option +\series bold +circular arc +\series default + sets the edge radius to half of the box width. + It is therefore required to specify at least the width. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=3.5cm, circular arc +\end_layout + +\end_inset + +A 3.5 +\begin_inset space \thinspace{} +\end_inset + +cm wide circular arc box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +As you can see circular arc box looks ugly when the box is wider than high. + It is therefore recommended to add the option +\series bold +square +\series default +, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Height" + +\end_inset + +, to get the same width and height. + The result is a perfect circle. + To center the text in the box use the text alignment options described + in +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Alignment" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=4cm, square, valign=center, circular arc +\end_layout + +\end_inset + +A 4 +\begin_inset space \thinspace{} +\end_inset + +cm wide circular arc box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The option +\series bold +bean arc +\series default + sets the edge radius to half of the minimum of the box width and height. + The result is a semicircle. + +\series bold +bean arc +\series default + requires the options +\series bold +width +\series default + and +\series bold +height +\series default + or +\series bold +square +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=3.5cm, height=5cm, bean arc, nobeforeafter, valign=center +\end_layout + +\end_inset + +A 3.5 +\begin_inset space \thinspace{} +\end_inset + +cm wide, 5 +\begin_inset space \thinspace{} +\end_inset + +cm high box with +\series bold +bean arc +\series default +. +\end_layout + +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=5cm, height=3.5cm, bean arc, nobeforeafter, valign=center +\end_layout + +\end_inset + +A 5 +\begin_inset space \thinspace{} +\end_inset + +cm wide, 3.5 +\begin_inset space \thinspace{} +\end_inset + +cm high box with +\series bold +bean arc +\series default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Using bean arc for a square box leads to the same result as +\series bold +circular arc +\series default +: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=4cm, square, bean arc, valign=center +\end_layout + +\end_inset + +A 4 +\begin_inset space \thinspace{} +\end_inset + +cm wide, square box as bean arc. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The option +\series bold +octogon arc +\series default + is useful to get an octagon. + For an octagon one needs a square box and the option +\series bold +arc is angular +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=4cm, square, octogon arc, valign=center, arc is angular +\end_layout + +\end_inset + +A 4 +\begin_inset space \thinspace{} +\end_inset + +cm wide, square box with +\series bold +octogon arc +\series default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The option +\series bold +arc is angular +\series default + is experimental and might cause problems on some \SpecialChar LaTeX + systems. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +It is also possible to change only some of the box edges. + To make an edge a corner there is the option +\series bold +sharp corners=position +\series default + where +\series bold +position +\series default + is the position of the edge. + The positions +\series bold +northwest +\series default +, +\series bold +northeast +\series default +, +\series bold +southwest +\series default + and +\series bold +southeast +\series default + change only the corresponding edge. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +sharp corners=northeast +\end_layout + +\end_inset + +A box with a corner at the upper right ( +\series bold +northeast +\series default +). +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The positions +\series bold +north +\series default +, +\series bold +south +\series default +, +\series bold +east +\series default +, +\series bold +west +\series default +, +\series bold +downhill +\series default + and +\series bold +uphill +\series default + change 2 +\begin_inset space ~ +\end_inset + +edges. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=0.4 +\backslash +columnwidth,sharp corners=east, nobeforeafter +\end_layout + +\end_inset + +A box with 2 +\begin_inset space ~ +\end_inset + +corners at the right ( +\series bold +east +\series default +). +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +width=0.4 +\backslash +columnwidth,sharp corners=uphill, nobeforeafter +\end_layout + +\end_inset + +A box with 2 +\begin_inset space ~ +\end_inset + +corners, one at the lower left, one at the upper right ( +\series bold +uphill +\series default +). +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The position +\series bold +all +\series default + change all edges. +\end_layout + +\begin_layout Subsection +Alignment +\begin_inset CommandInset label +LatexCommand label +name "subsec:Alignment" + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Horizontal +\end_layout + +\begin_layout Standard +The option +\series bold + halign=alignment +\series default + sets the alignment for the whole box content if there are not box parts, + otherwise the options +\series bold +halign upper +\series default + and +\series bold +halign lower +\series default + can be used. + The +\series bold +alignment +\series default + is one of the following: +\end_layout + +\begin_layout Description +right the content is right-aligned +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +halign=right +\end_layout + +\end_inset + +A right-aligned box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +left the content is left-aligned +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +halign=left +\end_layout + +\end_inset + +A left-aligned box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +center the content is centered +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +halign=center +\end_layout + +\end_inset + +A horizontally centered box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +justify the content is justified (is the default value) +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +halign=justify +\end_layout + +\end_inset + +A justified box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +An example with box parts: +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +halign upper=left, halign lower=center +\end_layout + +\end_inset + +Upper content left-aligned +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content centered +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The title alignment can be changed with the option +\series bold +halign title +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A right-aligned title, halign title=right, halign upper=left, halign + lower=center +\end_layout + +\end_inset + +Upper content left-aligned +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content centered +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Vertical +\end_layout + +\begin_layout Standard +The vertical alignment can only be changed if the box height is explicitly + set larger than the height consumed by the box content. + See +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Height" + +\end_inset + + how this is done. +\end_layout + +\begin_layout Standard +The option +\series bold + valign=alignment +\series default + sets the alignment for the whole box content if there are no box parts, + otherwise the options +\series bold +valign upper +\series default + and +\series bold +valign lower +\series default + can be used. + The +\series bold +alignment +\series default + is one of the following: +\end_layout + +\begin_layout Description +top the content is top-aligned +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=2cm, valign=top +\end_layout + +\end_inset + +A top-aligned box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +bottom the content is bottom-aligned +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=2cm, valign=bottom +\end_layout + +\end_inset + +A bottom-aligned box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +center the content is vertically centered +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=2cm, valign=center +\end_layout + +\end_inset + +A vertically centered box. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +scale the content is vertically scaled to fit the height +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=2cm, valign=scale +\end_layout + +\end_inset + +A box with scaled content. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +An example with box parts: +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +height=4cm, space=0.5, valign upper=bottom, valign lower=center +\end_layout + +\end_inset + +Upper content bottom-aligned +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower content centered +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Fonts +\end_layout + +\begin_layout Standard +The font changing options have the syntax +\series bold +option=code +\series default + where +\series bold +code +\series default + are \SpecialChar LaTeX +'s font changing commands. + For example the code +\begin_inset Newline newline +\end_inset + + +\series bold + +\backslash +sffamily +\backslash +bfseries +\backslash +large +\series default + +\begin_inset Newline newline +\end_inset + +makes the font sans-serif, bold and increases the font size to the level + +\series bold + +\backslash +large +\series default +. +\end_layout + +\begin_layout Subsubsection +Title +\end_layout + +\begin_layout Standard +The title font can be changed with the option +\series bold +fonttitle +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A title, fonttitle= +\backslash +sffamily +\backslash +bfseries +\backslash +large +\end_layout + +\end_inset + +Changed title font +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Text +\end_layout + +\begin_layout Standard +The font for the upper and lower part text can be changed with the options + +\series bold +fontupper +\series default + and +\series bold +fontlower +\series default +, respectively. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A title, fontupper= +\backslash +ttfamily, fontlower= +\backslash +small +\end_layout + +\end_inset + +Changed upper text font +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Changed lower text font +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Color +\begin_inset CommandInset label +LatexCommand label +name "subsec:Color" + +\end_inset + + +\end_layout + +\begin_layout Standard +The color is specified in one of these schemes: +\end_layout + +\begin_layout Enumerate + +\series bold +Name +\series default + +\begin_inset VSpace 3mm +\end_inset + + +\begin_inset Newline newline +\end_inset + +For example +\series bold +red +\series default + means +\begin_inset Newline newline +\end_inset + +100 +\begin_inset space \thinspace{} +\end_inset + +% red +\begin_inset Newline newline +\end_inset + +An example: +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +colback=red +\end_layout + +\end_inset + +red +\end_layout + +\end_inset + + +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Enumerate + +\series bold +Name!PercentOfName +\series default + +\begin_inset VSpace 3mm +\end_inset + + +\begin_inset Newline newline +\end_inset + +For example +\series bold +geen!30 +\series default + means +\begin_inset Newline newline +\end_inset + +30 +\begin_inset space \thinspace{} +\end_inset + +% red +\begin_inset Newline newline +\end_inset + +70 +\begin_inset space \thinspace{} +\end_inset + +% white (or +\begin_inset Quotes eld +\end_inset + +transparency +\begin_inset Quotes erd +\end_inset + +) +\begin_inset Newline newline +\end_inset + +An example: +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +colback=green!30 +\end_layout + +\end_inset + +green!30 +\end_layout + +\end_inset + + +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Enumerate + +\series bold +Name1!PercentOfName1!Name2 +\series default + +\begin_inset VSpace 3mm +\end_inset + + +\begin_inset Newline newline +\end_inset + +For example +\series bold +red!30!blue +\series default + means +\begin_inset Newline newline +\end_inset + +30 +\begin_inset space \thinspace{} +\end_inset + +% red +\begin_inset Newline newline +\end_inset + +70 +\begin_inset space \thinspace{} +\end_inset + +% blue +\begin_inset Newline newline +\end_inset + +An example: +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +colback=red!30!blue +\end_layout + +\end_inset + +red!30!blue +\end_layout + +\end_inset + + +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Enumerate + +\series bold +Name1!PercentName1!Name2!PercentName3!Name3 +\series default + +\begin_inset VSpace 3mm +\end_inset + + +\begin_inset Newline newline +\end_inset + +For example +\series bold +red!71.4!green!70!blue +\series default + means +\begin_inset Newline newline +\end_inset + + +\begin_inset Formula $1-0.70=30\,$ +\end_inset + +% blue +\begin_inset Newline newline +\end_inset + + +\begin_inset Formula $\left(1-0.714\right)\cdot0.70=20.02\thinspace$ +\end_inset + +% green +\begin_inset Newline newline +\end_inset + + +\begin_inset Formula $0.714\cdot0.70=49.98\thinspace$ +\end_inset + +% red +\begin_inset Newline newline +\end_inset + +An example: +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +colback=red!71.4!green!70!blue +\end_layout + +\end_inset + +red!71.4!green!70!blue +\end_layout + +\end_inset + + +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Standard +The possible color names are: +\end_layout + +\begin_layout Standard +\noindent +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +red +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + red +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +green +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + green +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +blue +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + blue +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +cyan +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + cyan +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +magenta +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + magenta +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +yellow +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + yellow +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +black +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + black +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +gray +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + gray +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +white +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + white +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +darkgray +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + darkgray +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +lightgray +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + lightgray +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +brown +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + brown +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +lime +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + lime +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +olive +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + olive +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +orange +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + orange +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +pink +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + pink +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +purple +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + purple +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +teal +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + teal +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fcolorbox{black}{ +\end_layout + +\end_inset + +violet +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + + +\begin_inset Phantom Phantom +status open + +\begin_layout Plain Layout +W +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + violet +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +, and the ones listed in Appendix +\begin_inset space ~ +\end_inset + +C of the +\emph on +Embedded +\begin_inset space ~ +\end_inset + +Objects +\emph default + manual. +\end_layout + +\begin_layout Subsubsection +Background +\end_layout + +\begin_layout Standard +The background color is changed with the option +\series bold +colback +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +colback=red!66!green!70!blue +\end_layout + +\end_inset + +Background color +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Frame +\end_layout + +\begin_layout Standard +The frame color is changed with the option +\series bold +colframe +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +colframe=red!30!blue +\end_layout + +\end_inset + +Frame color +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Title background +\end_layout + +\begin_layout Standard +The title background color is changed with the option +\series bold +colbacktitle +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A title, colbacktitle=green!30 +\end_layout + +\end_inset + +Title background color +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Title text +\begin_inset CommandInset label +LatexCommand label +name "subsec:Title-text" + +\end_inset + + +\end_layout + +\begin_layout Standard +The color for the title text is changed with the option +\series bold +coltitle +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +title=A title, coltitle=orange +\end_layout + +\end_inset + +Title text color +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex Subtitle +status open + +\begin_layout Plain Layout +The subtitle +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +Text +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Complete text +\end_layout + +\begin_layout Standard +The color for the complete text is changed with the option +\series bold +coltext +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +coltext=red +\end_layout + +\end_inset + +Text color +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Upper and lower text +\end_layout + +\begin_layout Standard +The color for the upper and lower part text is changed with the option +\series bold +colupper +\series default + and +\series bold +collower +\series default +, respectively. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +colupper=green!30!blue, collower=green!70!blue +\end_layout + +\end_inset + +Upper text color +\end_layout + +\begin_layout Color Box Separator + +\end_layout + +\begin_layout Plain Layout +Lower text color +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\begin_layout Subsection +Shadows +\begin_inset CommandInset label +LatexCommand label +name "subsec:Shadows" + +\end_inset + + +\end_layout + +\begin_layout Standard +Boxes can only be decorated with shadows if a skin is specified, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Enhanced" + +\end_inset + +. +\end_layout + +\begin_layout Subsubsection +Shadow +\end_layout + +\begin_layout Standard +A shadow is added with the box option +\series bold +drop shadow=color +\series default + where +\series bold +color +\series default + is a color name or definition, see +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Color" + +\end_inset + +. + One can omit the color, the shadow color is then black!50!white. + The option +\series bold +drop fuzzy shadow +\series default + creates a semi-transparent shadow. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +enhanced, drop shadow, nobeforeafter +\end_layout + +\end_inset + +A box with a shadow +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +enhanced, drop fuzzy shadow=purple, nobeforeafter +\end_layout + +\end_inset + +A box with a fuzzy, purple shadow +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The default shadow is placed right below the box. + For other shadow placements have a look at section +\family sans +Shadow Option Keys +\family default + of the +\series bold +tcolorbox +\series default + manual, +\begin_inset CommandInset citation +LatexCommand cite +key "tcolorbox" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Subsubsection +Halo +\end_layout + +\begin_layout Standard +A halo is added with the box option +\series bold +halo=size with color +\series default + where +\series bold +size +\series default + is a value and +\series bold +color +\series default + is a color name or definition. + One can omit the size and color, the halo is then 0.9 +\begin_inset space \thinspace{} +\end_inset + +mm thick and has the color yellow. + Note that one cannot omit only the size or color, either both is omitted + or both is specified. + The option +\series bold +fuzzy halo +\series default + creates a semi-transparent halo. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +enhanced, halo, nobeforeafter +\end_layout + +\end_inset + +A box with a halo +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +enhanced, fuzzy halo=5mm with green, nobeforeafter +\end_layout + +\end_inset + +A box with a 5 +\begin_inset space \thinspace{} +\end_inset + +mm thick, green fuzzy halo +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsubsection +Generic +\end_layout + +\begin_layout Standard +Generic shadows/halos can be created with the box option +\series bold +shadow +\series default + or +\series bold +fuzzy shadow +\series default +. + For a brief description of these options consult section +\family sans +Generic Shadows +\family default + of the +\series bold +tcolorbox +\series default + manual, +\begin_inset CommandInset citation +LatexCommand cite +key "tcolorbox" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Color Box +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +enhanced, title=Double shadow, shadow={-2.5mm}{-2.5mm}{0mm}{fill=blue, opacity=0.25 +}, shadow={1.5mm}{1.5mm}{0mm}{fill=red, opacity=0.25} +\end_layout + +\end_inset + +A box with 2 +\begin_inset space ~ +\end_inset + +generic shadows +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "tcolorbox" +literal "true" + +\end_inset + + +\begin_inset CommandInset href +LatexCommand href +name "Documentation" +target "https://ctan.org/tex-archive/macros/latex/contrib/tcolorbox/tcolorbox.pdf" +literal "false" + +\end_inset + + of the \SpecialChar LaTeX + package +\series bold +tcolorbox +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Hazard_and_Precautionary_Statements.lyx b/lib/examples/Modules/Hazard_and_Precautionary_Statements.lyx new file mode 100644 index 0000000000..12e96bf5f5 --- /dev/null +++ b/lib/examples/Modules/Hazard_and_Precautionary_Statements.lyx @@ -0,0 +1,640 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrartcl +\begin_preamble +% if pdflatex is used +\usepackage{ifpdf} +\ifpdf + +% set fonts for nicer pdf view +\IfFileExists{lmodern.sty} + {\usepackage{lmodern}}{} + +\fi % end if pdflatex is used +\end_preamble +\use_default_options true +\begin_modules +hpstatement +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref true +\pdf_title "Chemical Hazard and Precautionary statements in LyX" +\pdf_author "Uwe Stöhr" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks true +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 1 +\use_minted 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Chemical Hazard and Precautionary statements in \SpecialChar LyX + +\end_layout + +\begin_layout Author +Uwe Stöhr +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +To be able to insert chemical hazard and precautionary statements in \SpecialChar LyX +, you + need to load the module +\family sans +Risk +\begin_inset space ~ +\end_inset + +and +\begin_inset space ~ +\end_inset + +Safety +\begin_inset space ~ +\end_inset + +Statements +\family default + in the menu +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Modules +\family default +. + The module provides 2 +\begin_inset space ~ +\end_inset + +insets which are accessible via the menu +\family sans +Insert\SpecialChar menuseparator +Custom +\begin_inset space ~ +\end_inset + +Insets +\family default +. +\end_layout + +\begin_layout Section +Statements +\end_layout + +\begin_layout Standard +The inset +\family sans +H-P +\begin_inset space ~ +\end_inset + +number +\family default + is used to typeset the number, the inset +\family sans +H-P +\begin_inset space ~ +\end_inset + +statement +\family default + will output the corresponding statement. +\end_layout + +\begin_layout Standard +The hazard statement +\begin_inset Flex H-P number +status open + +\begin_layout Plain Layout + +H200 +\end_layout + +\end_inset + + has the statement: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +H200 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +This is +\begin_inset Flex H-P number +status collapsed + +\begin_layout Plain Layout + +H200 +\end_layout + +\end_inset + +: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +As you can see, the statement inset can be left empty. + In this case the previously used number is used for the statement. +\end_layout + +\begin_layout Standard +Precautionary statements are inserted the same way as hazard statements: +\end_layout + +\begin_layout Standard +The precautionary statement +\begin_inset Flex H-P number +status collapsed + +\begin_layout Plain Layout + +P235 +\end_layout + +\end_inset + + is: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Statement Alternatives +\end_layout + +\begin_layout Standard +Some statements allow you to choose between certain alternatives. + In these cases you must add a dot and the number of the alternative to + the statement number. + Some examples: +\end_layout + +\begin_layout Description +P210.1 leads to: +\begin_inset Flex H-P number +status open + +\begin_layout Plain Layout + +P210.1 +\end_layout + +\end_inset + +: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +P210.2 leads to: +\begin_inset Flex H-P number +status open + +\begin_layout Plain Layout + +P210.2 +\end_layout + +\end_inset + +: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The alternative number +\begin_inset Quotes eld +\end_inset + +0 +\begin_inset Quotes erd +\end_inset + + refers to the original version as stated in the regulations: +\end_layout + +\begin_layout Description +P210.0 leads to: +\begin_inset Flex H-P number +status open + +\begin_layout Plain Layout + +P210.0 +\end_layout + +\end_inset + +: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Required Text +\end_layout + +\begin_layout Standard +Some statements require text. + This is inserted to the optional argument of LyX's +\family sans +H-P-Statement +\family default + inset. + The argument is inserted with the menu +\family sans +Insert\SpecialChar menuseparator +Statement +\begin_inset space ~ +\end_inset + +Text +\family default +. +\end_layout + +\begin_layout Standard +In this example the text +\begin_inset Quotes eld +\end_inset + +sunglasses +\begin_inset Quotes erd +\end_inset + + was added to the optional argument: +\end_layout + +\begin_layout Standard +Statement +\begin_inset Flex H-P number +status open + +\begin_layout Plain Layout + +P280 +\end_layout + +\end_inset + + says: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +sunglasses +\end_layout + +\end_inset + +P280 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Some statements print text referring to the place on a label. + For example: +\end_layout + +\begin_layout Standard +Statement +\begin_inset Flex H-P number +status open + +\begin_layout Plain Layout + +P321 +\end_layout + +\end_inset + + says: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +the left side +\end_layout + +\end_inset + +P321 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Where +\begin_inset Quotes eld +\end_inset + +the left side +\begin_inset Quotes erd +\end_inset + + is the input required text. +\end_layout + +\begin_layout Standard +If you don't have a label use +\begin_inset Quotes eld +\end_inset + +nolabel +\begin_inset Quotes erd +\end_inset + + as +\begin_inset Quotes eld +\end_inset + +number +\begin_inset Quotes erd +\end_inset + + for the alternative to omit the text about the label: +\end_layout + +\begin_layout Standard +Statement +\begin_inset Flex H-P number +status open + +\begin_layout Plain Layout + +P321 +\end_layout + +\end_inset + + says: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +the left side +\end_layout + +\end_inset + +P321.nolabel +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Language issues +\end_layout + +\begin_layout Standard +The statements are output depending on the language. + Currently only the languages +\begin_inset Newline newline +\end_inset + +Danish, English, French, German, Italian and Spanish +\begin_inset Newline newline +\end_inset + +are supported. +\end_layout + +\begin_layout Standard +At +\begin_inset CommandInset href +LatexCommand href +name "this webpage" +target "http://schoolscout24.de/cgi-bin/keminaco/hppinput.cgi" +literal "false" + +\end_inset + + you find the official statements for all 23 +\begin_inset space ~ +\end_inset + +languages of the EU. +\end_layout + +\begin_layout Standard +Mixing languages is possible without problems: +\end_layout + +\begin_layout Standard + +\lang ngerman +Dies ist H-Satz +\begin_inset Flex H-P number +status open + +\begin_layout Plain Layout + +H251 +\end_layout + +\end_inset + +: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +This is hazard statement +\begin_inset Flex H-P number +status open + +\begin_layout Plain Layout + +H251 +\end_layout + +\end_inset + +: +\begin_inset Flex H-P statement +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/LilyPond_Book.lyx b/lib/examples/Modules/LilyPond_Book.lyx new file mode 100644 index 0000000000..b54d8a1e71 --- /dev/null +++ b/lib/examples/Modules/LilyPond_Book.lyx @@ -0,0 +1,1528 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\use_default_options true +\begin_modules +lilypond +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "lmodern" "default" +\font_sans "lmss" "default" +\font_typewriter "lmtt" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref true +\pdf_title "LilyPond-book and LyX" +\pdf_author "The LyX Team" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks true +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "linkcolor=blue,urlcolor=blue,pdfstartview=XYZ" +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\leftmargin 2cm +\topmargin 2cm +\rightmargin 2cm +\bottommargin 2cm +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict true +\end_header + +\begin_body + +\begin_layout Title +LilyPond-book and \SpecialChar LyX + +\end_layout + +\begin_layout Author +The \SpecialChar LyX + Team +\end_layout + +\begin_layout Abstract +This document explains and demonstrates the inclusion of musical snippets + in a \SpecialChar LyX + document, using the LilyPond syntax for music notation and the LilyPond-b +ook utility for processing. +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +LilyPond is an open-source project that renders possible the creation of + beautiful computer-generated musical scores. + The project consists of a text-based music notation language, and a program + to process this notation into musical scores. +\end_layout + +\begin_layout Standard +While LilyPond itself supports the display of title, author information, + footnotes, endnotes, etc., its primary focus is on music typesetting. + For text typesetting, other programs are generally better suited. + LilyPond-book is a utility provided by the LilyPond project that helps + incorporate musical scores using the LilyPond notation into \SpecialChar LaTeX + documents, + among other formats. +\end_layout + +\begin_layout Standard +This document describes the use of the LilyPond music notation within \SpecialChar LyX + documents + that use a \SpecialChar LaTeX +-based layout, thus combining the beauty and quality of the + typesetting achieved by both \SpecialChar LaTeX + and LilyPond. + While a basic understanding of the LilyPond syntax for music notation is + in order, knowledge of \SpecialChar LaTeX + is not necessary when using \SpecialChar LyX +. +\end_layout + +\begin_layout Standard +Section +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Using-LilyPond-code" + +\end_inset + + explains the requirements, usage instructions, and shortcomings of LilyPond + music notation within \SpecialChar LyX +. + Section +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:LilyPond-examples" + +\end_inset + + demonstrates the beauty and quality of the typesetting with a few examples. +\end_layout + +\begin_layout Section +Using LilyPond code within \SpecialChar LyX + +\begin_inset CommandInset label +LatexCommand label +name "sec:Using-LilyPond-code" + +\end_inset + + +\end_layout + +\begin_layout Standard +Support for LilyPond music notation (LilyPond code) within \SpecialChar LyX + is enabled by + adding the LilyPond module to your document. + This is done from the menu +\family sans +Document\SpecialChar menuseparator +Settings +\family default +, then selecting LilyPond in the list of modules. + You can use any \SpecialChar LaTeX +-based \SpecialChar LyX + layout and use the regular preview and export mechanism +; \SpecialChar LyX + will take care of processing the mixed \SpecialChar LaTeX +/LilyPond code through LilyPond-book + for you. + LilyPond-book can also handle DocBook and HTML documents, but the integration + of these document types with LilyPond-book and \SpecialChar LyX + is missing at the moment. +\end_layout + +\begin_layout Subsection +Requirements +\end_layout + +\begin_layout Standard +LilyPond-book version 2.13 or newer. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +LilyPond-book supports \SpecialChar LaTeX + output since version 2.1. + However, some features used by \SpecialChar LyX + are available only in recent versions: + PDF\SpecialChar LaTeX + support (version 2.9), the +\family typewriter +--lily-output-dir +\family default + flag (version 2.11) and especially the +\family typewriter +--safe +\family default + flag (version 2.13). +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Integration +\end_layout + +\begin_layout Standard +The module provides a LilyPond inset which you insert from the menu +\family sans +Insert\SpecialChar menuseparator +Custom +\begin_inset space ~ +\end_inset + +Insets +\family default +. + This inset is for typing the LilyPond code which will be typeset into your + musical notes. + First, let us try a simple scale: +\end_layout + +\begin_layout Standard +\begin_inset Flex LilyPond +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +staffsize=28 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + + +\backslash +relative c'' { +\end_layout + +\begin_layout Plain Layout + + g a b c +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +The previous \SpecialChar LyX + inset produces the following \SpecialChar LaTeX +-lookalike code: +\end_layout + +\begin_layout LyX-Code + +\backslash +begin{lilypond}[staffsize=28] +\end_layout + +\begin_layout LyX-Code + +\end_layout + +\begin_layout LyX-Code + +\backslash +relative c'' { +\end_layout + +\begin_layout LyX-Code + g a b c +\end_layout + +\begin_layout LyX-Code +} +\end_layout + +\begin_layout LyX-Code + +\backslash +end{lilypond} +\end_layout + +\begin_layout Standard +What appear first inside square brackets are options to pass to LilyPond-book. + This is inserted in \SpecialChar LyX + from the +\family sans +Insert +\family default + menu, in the same way that the LilyPond inset itself is inserted. + Here, we set the dimension of the staff to 28 +\begin_inset space \thinspace{} +\end_inset + +pt. + Other options can be added by separating them by a comma, for example: + +\family typewriter +[staffsize=28,verbatim] +\family default +. + A list of music fragment options is available in the LilyPond documentation. + This whole block can be omitted when the default settings are desired. +\end_layout + +\begin_layout Standard +What follows after the options block is the textual representation in LilyPond + syntax of a musical fragment. + This code is not, in fact, processed by \SpecialChar LaTeX +, but is preprocessed by LilyPond-book, + which creates the graphics files and includes them in the \SpecialChar LaTeX + document by + replacing the above with a +\family typewriter + +\backslash +includegraphics{\SpecialChar ldots +} +\family default + command. +\end_layout + +\begin_layout Standard +Thus, the conversion process is as follow: +\family sans +\SpecialChar LyX +\SpecialChar menuseparator +LilyPond-book\SpecialChar menuseparator +\SpecialChar LaTeX + +\family default +. + \SpecialChar LyX + creates a .lytex file, LilyPond-book creates a .tex files and the accompanying + image files, and \SpecialChar LaTeX + creates the final document. + Every step of the tool chain obeys your spacing, so whether you put the + musical extract inline, or in its own paragraph, centered, left-aligned, + etc., what you see in the \SpecialChar LyX + window should be respected in the final format. + An example of inline use may be to display a chord name, such as +\begin_inset Flex LilyPond +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +staffsize=12 +\end_layout + +\end_inset + + +\backslash +markup { +\backslash +concat {B +\backslash +super +\backslash +flat } } +\end_layout + +\end_inset + +, or perhaps a very short snippet. +\end_layout + +\begin_layout Subsection +Previews +\end_layout + +\begin_layout Standard +It is possible to have a direct feedback of what the music notation looks + like from within \SpecialChar LyX +. + To do this, wrap a LilyPond inset inside a Preview inset, which you find + from the menu +\family sans +Insert\SpecialChar menuseparator +Preview +\family default +. + This only affects the display within \SpecialChar LyX +, not the output: +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset Flex LilyPond +status collapsed + +\begin_layout Plain Layout + + +\backslash +relative c'' { +\end_layout + +\begin_layout Plain Layout + + ais a g ges +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Unfortunately, you might find that the preview isn't exactly instantaneous. + You need to move the cursor out of the Preview inset to start compilation, + and processing time can take a few seconds. + Nevertheless, the direct feedback is often worthwhile during editing, and + renders the navigation through the document much easier. +\end_layout + +\begin_layout Subsection +Gotchas +\end_layout + +\begin_layout Standard +A few gotchas that have been experienced with the integration of LilyPond-book + and \SpecialChar LyX + are reported here. +\end_layout + +\begin_layout Subsubsection +Child documents +\end_layout + +\begin_layout Standard +A \SpecialChar LyX + document using the LilyPond module cannot have child documents using + the +\begin_inset Quotes eld +\end_inset + +Input +\begin_inset Quotes erd +\end_inset + + method. + If you select +\begin_inset Quotes eld +\end_inset + +Input +\begin_inset Quotes erd +\end_inset + + as the +\begin_inset Quotes eld +\end_inset + +Include Type +\begin_inset Quotes erd +\end_inset + + under +\family sans +Insert\SpecialChar menuseparator +File\SpecialChar menuseparator +Child +\begin_inset space ~ +\end_inset + +Document +\family default +, you will get an error when producing output. + This is due to the way LilyPond-book automatically processes these input + files recursively. + Since there is currently no command-line option to turn off this behavior + of LilyPond-book, it is suggested to use the +\begin_inset Quotes eld +\end_inset + +Include +\begin_inset Quotes erd +\end_inset + + method instead. +\end_layout + +\begin_layout Standard +Note that it is possible to insert child documents which make use of the + LilyPond module, using either the +\begin_inset Quotes eld +\end_inset + +Input +\begin_inset Quotes erd +\end_inset + + or +\begin_inset Quotes eld +\end_inset + +Include +\begin_inset Quotes erd +\end_inset + + method, in a master document which does not make use of the LilyPond module. + For this to work you might have to add the line +\end_layout + +\begin_layout LyX-Code + +\backslash +usepackage{graphicx} +\end_layout + +\begin_layout Standard +to your master document's preamble under +\family sans +Document\SpecialChar menuseparator +Settings +\family default +. +\end_layout + +\begin_layout Subsubsection +Surrounding braces +\end_layout + +\begin_layout Standard +LilyPond-book searches for a +\family typewriter + +\backslash +score +\family default + or +\family typewriter + +\backslash +relative +\family default + command when it decides if the code is only a fragment. + It is possible to include no LilyPond command at all, but in that case + {surrounding braces} are required. + Thus, in the following code, +\end_layout + +\begin_layout LyX-Code + +\backslash +begin{lilypond} +\end_layout + +\begin_layout LyX-Code + ais' f'' g' e'' % no +\backslash +score given +\end_layout + +\begin_layout LyX-Code + +\backslash +end{lilypond} +\end_layout + +\begin_layout Standard +LilyPond-book gets confused: +\end_layout + +\begin_layout LyX-Code +error: syntax error, unexpected NOTENAME_PITCH +\end_layout + +\begin_layout LyX-Code +ais' f'' g' e'' % no +\backslash +score given +\end_layout + +\begin_layout Standard +With surrounding braces, all is well: +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset Flex LilyPond +status collapsed + +\begin_layout Plain Layout + +{ais' f'' g' e''} % no +\backslash +score given +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Writing the notes directly within braces without using any LilyPond command + is convenient when writing short snippets. + Advanced users will probably want to enter their musical content using + LilyPond variables and commands, which is of course supported. +\end_layout + +\begin_layout Subsubsection +Fret diagrams +\end_layout + +\begin_layout Standard +Another gotcha is with subsequent LilyPond snippets with +\family typewriter + +\backslash +fret-diagram +\family default + markup commands: +\end_layout + +\begin_layout LyX-Code + +\backslash +begin{lilypond} +\end_layout + +\begin_layout LyX-Code + +\backslash +markup{ +\backslash +fret-diagram-terse #"x;3;2;o;1;o;" } +\end_layout + +\begin_layout LyX-Code + +\backslash +end{lilypond} +\end_layout + +\begin_layout LyX-Code + +\end_layout + +\begin_layout LyX-Code + +\backslash +begin{lilypond} +\end_layout + +\begin_layout LyX-Code + +\backslash +markup{ +\backslash +fret-diagram-terse #"x;x;o;2;3;2;" } +\end_layout + +\begin_layout LyX-Code + +\backslash +end{lilypond} +\end_layout + +\begin_layout Standard +For some reason LilyPond-book version 2.13 barks on this when run in safe + mode (which you always should use, unless you know what you are doing). + This has been corrected as of version 2.15 (was LilyPond issue #1900). +\end_layout + +\begin_layout Subsubsection +The +\family typewriter + +\backslash +lilypondfile +\family default + command +\end_layout + +\begin_layout Standard +LilyPond-book supports including LilyPond code that resides in external + files with the +\family typewriter + +\backslash +lilypondfile +\family default + command. + With this command, the LilyPond code is processed as if it was typed inside + the document and the output score follows the typesetting determined by + \SpecialChar LaTeX + with respect to line width, page breaks, and so on. + This is in contrast to the long-standing \SpecialChar LyX + feature to include LilyPond scores + as external material, which calls LilyPond on the external file to produce + a rigid figure, and includes this figure in the document, leaving the typesetti +ng decisions to LilyPond. + Unfortunately, support for the +\family typewriter + +\backslash +lilypondfile +\family default + command in \SpecialChar LyX + is not implemented yet, but it is possible to use it inside + a \SpecialChar TeX +-Code block, provided that one writes the complete, absolute path to + the desired file. +\end_layout + +\begin_layout Section +LilyPond examples +\begin_inset CommandInset label +LatexCommand label +name "sec:LilyPond-examples" + +\end_inset + + +\end_layout + +\begin_layout Standard +Example +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Editorial-headword" + +\end_inset + + shows a complex score using many LilyPond constructs; some scheme code + has been removed from the original source of this snippet, to be able to + run in safe mode. + Example +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Tablatures-template" + +\end_inset + + shows another LilyPond output which should be interesting to guitarists. +\end_layout + +\begin_layout Subsection +Editorial headword +\begin_inset CommandInset label +LatexCommand label +name "subsec:Editorial-headword" + +\end_inset + + +\end_layout + +\begin_layout Standard +NR 1.7 Editorial annotations Beethoven, Op. + 31, No. + 3 Piano sonata 18, Movt II, Scherzo Measures 9–14. +\end_layout + +\begin_layout Standard +\noindent +\align center +\begin_inset Preview + +\begin_layout Standard +\begin_inset Flex LilyPond +status collapsed + +\begin_layout Plain Layout + + +\backslash +new PianoStaff << +\end_layout + +\begin_layout Plain Layout + + +\end_layout + +\begin_layout Plain Layout + + % RH Staff +\end_layout + +\begin_layout Plain Layout + + +\backslash +new Staff { +\end_layout + +\begin_layout Plain Layout + + +\backslash +clef treble +\end_layout + +\begin_layout Plain Layout + + +\backslash +key aes +\backslash +major +\end_layout + +\begin_layout Plain Layout + + +\backslash +time 2/4 +\end_layout + +\begin_layout Plain Layout + + % +\backslash +set Staff.fingeringOrientations = #'(up) +\end_layout + +\begin_layout Plain Layout + + % +\backslash +set Score.currentBarNumber = #9 +\end_layout + +\begin_layout Plain Layout + + +\backslash +partial 8 +\end_layout + +\begin_layout Plain Layout + + 8 +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + | +\end_layout + +\begin_layout Plain Layout + + % +\backslash +set doubleSlurs = ##t +\end_layout + +\begin_layout Plain Layout + + 4( +\end_layout + +\begin_layout Plain Layout + + 8 +\backslash +staccato) +\end_layout + +\begin_layout Plain Layout + + +\backslash +noBeam +\end_layout + +\begin_layout Plain Layout + + c''8-5 +\backslash +staccato +\backslash +pp +\end_layout + +\begin_layout Plain Layout + + | +\end_layout + +\begin_layout Plain Layout + + +\backslash +unset doubleSlurs +\end_layout + +\begin_layout Plain Layout + + bes'8..( +\end_layout + +\begin_layout Plain Layout + + aes'32 +\end_layout + +\begin_layout Plain Layout + + g'8) +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + f'8 +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + | +\end_layout + +\begin_layout Plain Layout + + e'4-2 +\end_layout + +\begin_layout Plain Layout + + r8 +\end_layout + +\begin_layout Plain Layout + + % +\backslash +once +\backslash +override Script #'script-priority = #-100 +\end_layout + +\begin_layout Plain Layout + + +\backslash +afterGrace +\end_layout + +\begin_layout Plain Layout + + f'8( +\backslash +trill^ +\backslash +markup { +\backslash +finger "3-2" } +\end_layout + +\begin_layout Plain Layout + + { e'16[ f'16] } +\end_layout + +\begin_layout Plain Layout + + | +\end_layout + +\begin_layout Plain Layout + + g'8..-3 +\end_layout + +\begin_layout Plain Layout + + f'32 +\end_layout + +\begin_layout Plain Layout + + e'8-1) +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + d'8-2 +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + | +\end_layout + +\begin_layout Plain Layout + + c'4 +\end_layout + +\begin_layout Plain Layout + + r4 +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + +\end_layout + +\begin_layout Plain Layout + + % LH Staff +\end_layout + +\begin_layout Plain Layout + + +\backslash +new Staff { +\end_layout + +\begin_layout Plain Layout + + +\backslash +key aes +\backslash +major +\end_layout + +\begin_layout Plain Layout + + +\backslash +clef treble +\end_layout + +\begin_layout Plain Layout + + % +\backslash +override Fingering #'direction = #down +\end_layout + +\begin_layout Plain Layout + + % +\backslash +set Staff.fingeringOrientations = #'(down) +\end_layout + +\begin_layout Plain Layout + + +\backslash +partial 8 +\end_layout + +\begin_layout Plain Layout + + 8 +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + % +\backslash +set doubleSlurs = ##t +\end_layout + +\begin_layout Plain Layout + + 4( +\end_layout + +\begin_layout Plain Layout + + 8) +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + +\backslash +noBeam +\end_layout + +\begin_layout Plain Layout + + +\backslash +clef bass +\end_layout + +\begin_layout Plain Layout + + c'8-1 +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + | +\end_layout + +\begin_layout Plain Layout + + % +\backslash +set doubleSlurs = ##f +\end_layout + +\begin_layout Plain Layout + + bes8..( +\end_layout + +\begin_layout Plain Layout + + aes32 +\end_layout + +\begin_layout Plain Layout + + g8-1) +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + f8 +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + | +\end_layout + +\begin_layout Plain Layout + + e4 +\end_layout + +\begin_layout Plain Layout + + r8 +\end_layout + +\begin_layout Plain Layout + + +\backslash +afterGrace +\end_layout + +\begin_layout Plain Layout + + f8( +\backslash +trill_ +\backslash +markup { +\backslash +finger "2-1" } +\end_layout + +\begin_layout Plain Layout + + { e16[ f16] } +\end_layout + +\begin_layout Plain Layout + + | +\end_layout + +\begin_layout Plain Layout + + g8..-1 +\end_layout + +\begin_layout Plain Layout + + f32 +\end_layout + +\begin_layout Plain Layout + + e8) +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + d8 +\backslash +staccato +\end_layout + +\begin_layout Plain Layout + + | +\end_layout + +\begin_layout Plain Layout + + c4 +\end_layout + +\begin_layout Plain Layout + + r4 +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +>> +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +[from +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://lsr.di.unimi.it/LSR/Item?id=627 +\end_layout + +\end_inset + +; scheme code removed, centering applied through the paragraph settings] +\end_layout + +\begin_layout Subsection +Tablatures template +\begin_inset CommandInset label +LatexCommand label +name "subsec:Tablatures-template" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset Flex LilyPond +status collapsed + +\begin_layout Plain Layout + +upper= +\backslash +relative c' { +\end_layout + +\begin_layout Plain Layout + + c4. + g4 g c +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +lower= +\backslash +relative c { +\end_layout + +\begin_layout Plain Layout + + c4 e g, e' +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +score { +\end_layout + +\begin_layout Plain Layout + + +\backslash +new StaffGroup << +\end_layout + +\begin_layout Plain Layout + + +\backslash +new Staff = "guitar" << +\end_layout + +\begin_layout Plain Layout + + +\backslash +context Voice = "upper guitar" { +\backslash +clef "G_8" +\backslash +voiceOne +\backslash +upper } +\end_layout + +\begin_layout Plain Layout + + +\backslash +context Voice = "lower guitar" { +\backslash +clef "G_8" +\backslash +voiceTwo +\backslash +lower } +\end_layout + +\begin_layout Plain Layout + + >> +\end_layout + +\begin_layout Plain Layout + + +\backslash +new TabStaff = "tab" << +\end_layout + +\begin_layout Plain Layout + + +\backslash +context TabVoice = "upper tab" { +\backslash +clef "tab" +\backslash +voiceOne +\backslash +upper } +\end_layout + +\begin_layout Plain Layout + + +\backslash +context TabVoice = "lower tab" { +\backslash +clef "tab" +\backslash +voiceTwo +\backslash +lower } +\end_layout + +\begin_layout Plain Layout + + >> +\end_layout + +\begin_layout Plain Layout + + >> +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +[from +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://lsr.di.unimi.it/LSR/Item?id=634 +\end_layout + +\end_inset + +] +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Linguistics.lyx b/lib/examples/Modules/Linguistics.lyx new file mode 100644 index 0000000000..1cb37dd58b --- /dev/null +++ b/lib/examples/Modules/Linguistics.lyx @@ -0,0 +1,2427 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +%% Uncomment the following for Tableaux captions on top: +%\floatstyle{plaintop} +%\restylefloat{tableau} + +% Backwards compatibility for forest 1.x +% If you use forest 2.0.1 or later, you can delete this +\@ifpackageloaded{forest}{% + \@ifpackagelater{forest}{2016/02/20}{}{% + \forestset{ + roof/.style={edge path={\noexpand\path[\forestoption{edge}]% + (.north west)--(!u.south)--(.north east)--cycle + \forestoption{edge label}; + } + }, + sn edges/.style={ + for tree={parent anchor=south, child anchor=north}, + }, + linguistics preamble/.style={sn edges, baseline, for tree={align=center}} + } + \preto\forest@do{% + \forestOpreto{\forest@root}{given options}{linguistics preamble,}% + } + } +}{} +\end_preamble +\use_default_options false +\begin_modules +linguistics +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "lmodern" "FreeSerif" +\font_sans "default" "FreeSans" +\font_typewriter "default" "FreeMono" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref true +\pdf_bookmarks true +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle true +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Writing linguistic papers with \SpecialChar LyX + +\end_layout + +\begin_layout Author +Jürgen Spitzmüller +\begin_inset Newline newline +\end_inset + + +\begin_inset CommandInset href +LatexCommand href +target "spitz@lyx.org" +type "mailto:" +literal "false" + +\end_inset + + +\end_layout + +\begin_layout Date +21/04/2015 +\end_layout + +\begin_layout Abstract +This paper describes some features that \SpecialChar LyX + provides to linguists. + It demonstrates how to use some native support in order to produce numbered + examples, glosses, OT tableaux, semantic markup, structure trees, and phonetic + symbols (IPA). +\end_layout + +\begin_layout Section +Aims and prerequisites +\end_layout + +\begin_layout Standard +Basically, this paper describes the features of the +\begin_inset Quotes eld +\end_inset + +Linguistics +\begin_inset Quotes erd +\end_inset + + module that ships with \SpecialChar LyX + as of version 1.6.0. + +\begin_inset Quotes eld +\end_inset + +Modules +\begin_inset Quotes erd +\end_inset + + are support files (introduced with \SpecialChar LyX + 1.6.0) that can easily be selected for + any document. + In order to use the Linguistics module, go to +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Modules +\family default +, select +\begin_inset Quotes eld +\end_inset + +Linguistics +\begin_inset Quotes erd +\end_inset + + from the list of available modules, and hit the +\family sans +Add +\family default + button to select it for your document (as already done for this document). +\end_layout + +\begin_layout Standard +You should be able to use the module with any document class (please inform + me, if not). + However, in order to use all the features, you need to have the following + \SpecialChar LaTeX + packages installed: +\end_layout + +\begin_layout Enumerate + +\emph on +covington.sty +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "covington" +literal "true" + +\end_inset + +: This is the base package used for numbered examples and glosses. +\end_layout + +\begin_deeper +\begin_layout Itemize +Installed on your system: +\begin_inset Info +type "package" +arg "covington" +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Enumerate + +\emph on +enumitem.sty +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "enumitem" +literal "true" + +\end_inset + +: This package is used for the Subexamples style. + It is generally useful to alter the appearance of lists (such as +\emph on +enumerate +\emph default +, +\emph on +itemize +\emph default +, +\emph on +description +\emph default +). +\end_layout + +\begin_deeper +\begin_layout Itemize +Installed on your system: +\begin_inset Info +type "package" +arg "enumitem" +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Enumerate + +\emph on +csquotes.sty +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "csquotes" +literal "true" + +\end_inset + +: Needed for the +\emph on +Meaning +\emph default + character style. + The package provides context sensitive quotation marks, depending on the + language in use. +\end_layout + +\begin_deeper +\begin_layout Itemize +Installed on your system: +\begin_inset Info +type "package" +arg "csquotes" +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Enumerate + +\emph on +float.sty +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "float" +literal "true" + +\end_inset + +: Needed for the OT tableaux floats and list of floats. + This package should be part of any \SpecialChar LaTeX + distribution. +\end_layout + +\begin_deeper +\begin_layout Itemize +Installed on your system: +\begin_inset Info +type "package" +arg "float" +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Enumerate + +\emph on +forest.sty +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "forest" +literal "true" + +\end_inset + +: This package is used to generate structure trees. +\end_layout + +\begin_deeper +\begin_layout Itemize +Installed on your system: +\begin_inset Info +type "package" +arg "forest" +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Section +Numbered examples +\end_layout + +\begin_layout Standard +Numbered examples are inserted via the layout drop-down box in the toolbar. + There are three variants: +\end_layout + +\begin_layout Numbered Example (multiline) +This is a multiline example [Style +\emph on +Numbered Example (multiline) +\emph default +] +\end_layout + +\begin_layout Numbered Example (multiline) +it can have several paragraphs +\end_layout + +\begin_layout Numbered Examples (consecutive) +This is a single example +\begin_inset CommandInset label +LatexCommand label +name "exa:single-example" + +\end_inset + + [Style +\emph on +Numbered Example (consecutive) +\emph default +] +\end_layout + +\begin_layout Numbered Examples (consecutive) +Consecutive single examples get their own numbers +\end_layout + +\begin_layout Subexample +This is a subexample +\begin_inset CommandInset label +LatexCommand label +name "subsec:subexample" + +\end_inset + + [Style +\emph on +Subexample +\emph default +] +\end_layout + +\begin_layout Subexample +And another one +\end_layout + +\begin_layout Standard +References to examples are produced as usual: insert a label to the example + and a cross-reference via +\family sans +Insert\SpecialChar menuseparator +Cross references +\family default +. + We refer here, just for the sake of demonstrating this, to +\begin_inset CommandInset ref +LatexCommand ref +reference "exa:single-example" + +\end_inset + + and +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:subexample" + +\end_inset + +. +\end_layout + +\begin_layout Standard +If you want to modify the numbering of an individual example, you can use + +\family sans +Insert\SpecialChar menuseparator +Custom Numbering +\family default +. +\end_layout + +\begin_layout Section +Glosses +\end_layout + +\begin_layout Standard +The Linguistics module provides two kinds of glosses, which can be inserted + via +\family sans +Insert\SpecialChar menuseparator +Custom Insets +\family default +: The standard +\emph on +Glosse +\emph default + provides a gloss that consists of two lines (a gloss pair) and a translation, + the +\emph on +Tri-Glosse +\emph default + insets consists of three lines and a translation (the third line is usually + needed to give morphological or phonological information next to the gloss + pair). + Each translation line might span multiple lines in the output, i. +\begin_inset space \thinspace{} +\end_inset + +e., the paragraphs are automatically broken if they exceed the text width. + The translation line is inserted by means of +\family sans +Insert\SpecialChar menuseparator +Glosse Translation +\family default +. + It does not matter where you insert the translation, it is always printed + as the last line. +\end_layout + +\begin_layout Standard +Here is a simple example for a +\emph on +Glosse +\emph default +: +\end_layout + +\begin_layout Standard +\begin_inset Flex Glosse +status open + +\begin_layout Plain Layout +C'est un exemple simple +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex GroupGlossedWords +status open + +\begin_layout Plain Layout +This is +\end_layout + +\end_inset + + an example simple +\end_layout + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +\begin_inset Quotes els +\end_inset + +This is a simple example +\begin_inset Quotes ers +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +Use +\family sans +Edit\SpecialChar menuseparator +Text Style\SpecialChar menuseparator +GroupGlossedWords +\family default + in order to hold together multi-word expressions (or alternatively just + put braces in TeX mode +\begin_inset ERT +status open + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +around those words +\begin_inset ERT +status open + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +). + Note that you can enter multiple spaces to align the glosses in the \SpecialChar LyX + work + area; this will not affect the output. +\end_layout + +\begin_layout Standard +Here is a three-line gloss ( +\emph on +Tri-Glosse +\emph default +); the procedure is the same: +\end_layout + +\begin_layout Standard +\begin_inset Flex Tri-Glosse +status open + +\begin_layout Plain Layout +C'est un exemple simple +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex GroupGlossedWords +status open + +\begin_layout Plain Layout +Das ist +\end_layout + +\end_inset + + ein Beispiel einfach +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex GroupGlossedWords +status open + +\begin_layout Plain Layout +This is +\end_layout + +\end_inset + + an example simple +\end_layout + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +\begin_inset Quotes els +\end_inset + +This is a simple example +\begin_inset Quotes ers +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +If you want to have numbered glosses, simply insert the gloss inset to a + numbered examples paragraph, as follows: +\end_layout + +\begin_layout Numbered Examples (consecutive) +\begin_inset Flex Tri-Glosse +status open + +\begin_layout Plain Layout +Mein Luftkissenfahrzeug ist voller Aale +\end_layout + +\begin_layout Plain Layout +My skeertuig is vol palings +\end_layout + +\begin_layout Plain Layout +My hovercraft is +\begin_inset Flex GroupGlossedWords +status open + +\begin_layout Plain Layout +full of +\end_layout + +\end_inset + + eels +\end_layout + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +\begin_inset Quotes els +\end_inset + +Do you have matches? +\begin_inset Quotes ers +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection* +Tips & Tricks +\end_layout + +\begin_layout Subsubsection* +Avoiding Page Breaks within Glosses +\end_layout + +\begin_layout Standard +Page breaks might occur within glosses, which is not desirable. + A workaround is to wrap glosses into boxes (via +\family sans +Insert\SpecialChar menuseparator +Box\SpecialChar menuseparator +Frameless +\family default +). + If you want to automate this for all glosses, you can copy the following + code to +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +LaTeX Preamble +\family default +: +\end_layout + +\begin_layout Quote +\begin_inset listings +lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}" +inline false +status open + +\begin_layout Plain Layout + +% Do not break pages at two-line glosses +\end_layout + +\begin_layout Plain Layout + + +\backslash +AtBeginDocument{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +renewenvironment{linggloss}[2][]{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +def +\backslash +glosstr{ +\backslash +glt #1}% +\end_layout + +\begin_layout Plain Layout + + +\backslash +begin{minipage}{.7 +\backslash +textwidth} +\end_layout + +\begin_layout Plain Layout + + +\backslash +gll #2}{ +\backslash +glosstr +\backslash +glend +\backslash +end{minipage}} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Quote +\begin_inset listings +lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}" +inline false +status open + +\begin_layout Plain Layout + +% Do not break pages at three-line glosses +\end_layout + +\begin_layout Plain Layout + + +\backslash +AtBeginDocument{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +renewenvironment{lingglosss}[2][]{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +def +\backslash +glosstr{ +\backslash +glt #1}% +\end_layout + +\begin_layout Plain Layout + + +\backslash +begin{minipage}{.7 +\backslash +textwidth} +\end_layout + +\begin_layout Plain Layout + + +\backslash +glll #2}{ +\backslash +glosstr +\backslash +glend +\backslash +end{minipage}} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You might have to adapt the minipage width ( +\family typewriter +.7 +\backslash +textwidth +\family default + in the example code) to fit the glosses to your actual page width. +\end_layout + +\begin_layout Subsubsection* +Footnotes in Glosses +\end_layout + +\begin_layout Standard +Although you can insert a footnote in a +\emph on +Glosse +\emph default + inset, LaTeX compilation will not succeed. + If you need footnotes, put +\family typewriter + +\backslash +footnotemark +\family default + in TeX mode in the glosse at the point where the footnote number should + appear, and +\family typewriter + +\backslash +footnotetext{Actual footnote ...} +\family default +, also in TeX mode, right behind the +\emph on +Glosse +\emph default + inset. + If you need several footnotes, just insert multiple of these constructs. +\end_layout + +\begin_layout Subsubsection* +Using Glosses (and Examples) in a Beamer Presentation +\end_layout + +\begin_layout Standard +If you use the linguistics module with +\emph on +beamer +\emph default + presentations, there are some caveats: +\end_layout + +\begin_layout Itemize +If you want to use glosses in +\emph on +beamer +\emph default +, you need to put it in a +\begin_inset Quotes eld +\end_inset + +fragile +\begin_inset Quotes erd +\end_inset + + frame. + +\end_layout + +\begin_layout Itemize +Older versions of the +\emph on +covington +\emph default + package (before version 1.1) do not play with the +\emph on +beamer +\emph default + class out of the box, since both +\emph on +beamer +\emph default + and +\emph on +covington +\emph default + try to define the commands +\family typewriter + +\backslash +example +\family default + and +\family typewriter + +\backslash +examples +\family default +. + In these older versions of +\emph on +covington +\emph default +, this results in a \SpecialChar LaTeX + error. + You can work around this problem by inserting the following code in +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Local Layout +\family default +: +\end_layout + +\begin_deeper +\begin_layout Quote +\begin_inset listings +lstparams "basicstyle={\footnotesize\ttfamily},tabsize=4" +inline false +status open + +\begin_layout Plain Layout + +Provides covington 1 +\end_layout + +\begin_layout Plain Layout + +AddToPreamble +\end_layout + +\begin_layout Plain Layout + + +\backslash +let +\backslash +example +\backslash +relax +\end_layout + +\begin_layout Plain Layout + + +\backslash +let +\backslash +endexample +\backslash +relax +\end_layout + +\begin_layout Plain Layout + + +\backslash +let +\backslash +examples +\backslash +relax +\end_layout + +\begin_layout Plain Layout + + +\backslash +let +\backslash +endexamples +\backslash +relax +\end_layout + +\begin_layout Plain Layout + + +\backslash +usepackage{covington} +\end_layout + +\begin_layout Plain Layout + +EndPreamble +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Press +\begin_inset Quotes eld +\end_inset + +validate +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +OK +\begin_inset Quotes erd +\end_inset + +. + This effectively defuncts +\emph on +beamer's +\emph default + example(s) environment in favor of +\emph on +covington's +\emph default + (i. +\begin_inset space \thinspace{} +\end_inset + +e., you can use the +\family sans +Numbered Example +\family default + styles, but not +\emph on +beamer's +\emph default + +\family sans +Example +\family default + and +\family sans +Examples +\family default +). +\end_layout + +\begin_layout Standard +As of v. + 1.1 of +\emph on +covington +\emph default +, this problem is solved. + +\end_layout + +\end_deeper +\begin_layout Section +Optimality Theory Tableaux +\end_layout + +\begin_layout Standard +OT tableaux itself can of course simply be inserted as ordinary tables (for + specific features such as dashed lines and shaded cells, cf. + the +\emph on +EmbeddedObjects +\emph default + manual). + However, you might want to have the tableaux numbered throughout the document, + and you might want to have a +\emph on +List of Tableaux +\emph default +, similar to the +\emph on +List of Tables +\emph default +. + +\end_layout + +\begin_layout Standard +The Linguistics module provides support for both. + In +\family sans +Insert\SpecialChar menuseparator +Floats +\family default +, you will find a Tableaux float: +\end_layout + +\begin_layout Standard +\begin_inset Float tableau +placement h +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +/atikap/ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\noun on +Onset +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\noun on +NoCoda +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\noun on +Dep +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\noun on +Max +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\mbox{☞}$ +\end_inset + + +\begin_inset Formula $\mbox{\textipa{P}}$ +\end_inset + +a.ti.ka +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +* +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +* +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +a.ti.ka +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +*! +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +* +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Formula $\mbox{\textipa{P}}$ +\end_inset + +a.ti.kap +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +*! +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +* +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +a.ti.kap +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +*! +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +*! +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Example Tableau +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Note that by default, the caption is always placed below the tableaux in + the output, no matter where you put it in the \SpecialChar LyX + window. + To get the Tableau captions on top, put the following code in +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Preamble +\family default +: +\end_layout + +\begin_layout Quote +\begin_inset listings +lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}" +inline false +status open + +\begin_layout Plain Layout + + +\backslash +floatstyle{plaintop} +\end_layout + +\begin_layout Plain Layout + + +\backslash +restylefloat{tableau} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +If you use a KOMA class, use the following code instead: +\end_layout + +\begin_layout Quote +\begin_inset listings +lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}" +inline false +status open + +\begin_layout Plain Layout + + +\backslash +floatstyle{komaabove} +\end_layout + +\begin_layout Plain Layout + + +\backslash +restylefloat{tableau} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +A List of Tableaux inset can be found in +\family sans +Insert\SpecialChar menuseparator +Lists & TOC +\family default +. + It looks like this: +\end_layout + +\begin_layout Standard +\begin_inset FloatList tableau + +\end_inset + + +\end_layout + +\begin_layout Section +Semantic Markup (Character Styles) +\end_layout + +\begin_layout Standard +The Linguistics module comes with some character styles that are common + in linguistics: +\end_layout + +\begin_layout Enumerate +Concept (in small caps): +\begin_inset Flex Concepts +status collapsed + +\begin_layout Plain Layout +concept +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Enumerate +Expression (emphasized): +\begin_inset Flex Expression +status collapsed + +\begin_layout Plain Layout +expression +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Enumerate +Meaning (in single quotes): +\begin_inset Flex Meaning +status collapsed + +\begin_layout Plain Layout +meaning +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You can insert the character styles via the +\family sans +Edit\SpecialChar menuseparator +Text Style +\family default + submenu. + If you need to change the appearance of these styles later, you can redefine + them in the preamble. + To make expressions bold, for instance, insert: +\end_layout + +\begin_layout Quote +\begin_inset listings +lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}" +inline false +status open + +\begin_layout Plain Layout + + +\backslash +renewcommand +\backslash +lingexpr[1]{ +\backslash +textbf{#1}} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Similarly, concept ( +\family typewriter + +\backslash +lingconcept +\family default +) and meaning ( +\family typewriter + +\backslash +lingmeaning +\family default +) can be modified. +\end_layout + +\begin_layout Section +Linguistic structure trees +\end_layout + +\begin_layout Standard +Meanwhile, many \SpecialChar LaTeX + are available which help producing structure trees. + \SpecialChar LyX + supports the +\family sans +forest +\family default + package, which combines high flexibility and power with a comfortable input + syntax. + The Linguistics module provides a Structure Tree inset, which can be inserted + via +\family sans +Insert\SpecialChar menuseparator +Custom Insets +\family default +. + Within this inset, you can insert the bracket notation used by +\family sans +forest +\family default + (and also by other similar packages such as +\family sans +qtree +\family default +). +\end_layout + +\begin_layout Standard +Here is a simple example: +\end_layout + +\begin_layout Standard +\begin_inset Flex Structure Tree +status open + +\begin_layout Plain Layout +[VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[D[a]][NP[letter]]] ] ] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +If you view the PDF output, you will see that the input +\end_layout + +\begin_layout Quote + +\family typewriter +\size small +[VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[D[a]][NP[letter]]]]] +\end_layout + +\begin_layout Standard +expands to a real structure tree. + To view the result within the \SpecialChar LyX + work area, you can simply embed the Structure + Tree inset into a Preview inset ( +\family sans +Insert\SpecialChar menuseparator +Preview +\family default +). + If instant preview is correctly installed and activated, you should see + the tree immediately (just click on the image in order to edit): +\end_layout + +\begin_layout Standard +\begin_inset Preview + +\begin_layout Standard +\begin_inset Flex Structure Tree +status open + +\begin_layout Plain Layout +[VP [DP[Mary]] [V' [V[sent]] [DP[John]] [DP[D[a]][NP[response]]] ] ] +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +Roofs can be easily generated by means of the +\begin_inset Quotes eld +\end_inset + +roof +\begin_inset Quotes erd +\end_inset + + option +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +\noindent +Note that the +\begin_inset Quotes eld +\end_inset + +roof +\begin_inset Quotes erd +\end_inset + + option only exists as of +\family sans +forest +\family default + version 2.0. + We have added some code to the preamble of this manual to support previous + versions. + If you use a +\family sans +forest +\family default + version < 2.0, you either need to copy this code to your preamble or use + the old option +\begin_inset Quotes eld +\end_inset + +triangle +\begin_inset Quotes erd +\end_inset + + instead of +\begin_inset Quotes eld +\end_inset + +roof +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\end_inset + + (note that the comma has special meaning, as it marks options): +\end_layout + +\begin_layout Standard +\begin_inset Flex Structure Tree +status open + +\begin_layout Plain Layout +[VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[another letter, roof]] ] ] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +In order to align nodes of the tree more elegantly, use the +\begin_inset Quotes eld +\end_inset + +tier +\begin_inset Quotes erd +\end_inset + + option. + All nodes which have the same +\begin_inset Quotes eld +\end_inset + +tier +\begin_inset Quotes erd +\end_inset + + allocated get aligned. + Here is an example: +\end_layout + +\begin_layout Standard +\begin_inset Flex Structure Tree +status open + +\begin_layout Plain Layout +[VP [DP[John,tier=word]] [V' [V[sent,tier=word]] [DP[Mary,tier=word]] [DP[D[a,ti +er=word]][NP[letter,tier=word]]] ] ] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\noindent +The package supports many additional features, such as movement arrows and + decorations, that cannot documented here (please refer to the detailed + package documentation +\begin_inset CommandInset citation +LatexCommand cite +key "forest" +literal "true" + +\end_inset + +). +\end_layout + +\begin_layout Section +Phonetic Symbols (IPA) +\end_layout + +\begin_layout Standard +You do not need the Linguistics module to insert phonetic symbols, this + is a base functionality of \SpecialChar LyX +. + However, since this is frequently used by linguists, we will describe it + (briefly) in this manual nevertheless. +\end_layout + +\begin_layout Standard +If you use traditional \SpecialChar LaTeX + or PDF\SpecialChar LaTeX +, a prerequisite to use \SpecialChar LyX +'s IPA support is + the \SpecialChar LaTeX + package +\emph on +tipa +\emph default + +\begin_inset CommandInset citation +LatexCommand cite +key "tipa" +literal "true" + +\end_inset + +, which is automatically loaded by \SpecialChar LyX + if you follow the procedure described + below. + If you use Unicode fonts (i. +\begin_inset space \thinspace{} +\end_inset + +e., if you have clicked +\begin_inset Quotes eld +\end_inset + +Use non-\SpecialChar TeX + fonts +\begin_inset Quotes erd +\end_inset + + in +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Fonts +\family default +), the package +\emph on +xunicode +\emph default + is loaded instead (since +\emph on +tipa +\emph default + does not work in this context). + +\begin_inset Foot +status open + +\begin_layout Plain Layout +See also https://github.com/wspr/fontspec/issues/280 and the discussion in + docutils-devel (https://www.mail-archive.com/search?l=mid&q=1487664738.2405.6.camel% +40lyx.org). +\end_layout + +\end_inset + + The +\emph on +xunicode +\emph default + package emulates the +\emph on +tipa +\emph default + output, but is not perfect at that, so some things might not look as expected. + Furthermore, you need to take care in this case to use a font that includes + the IPA glyphs (such as +\emph on +CMU Serif +\emph default + or +\emph on +SIL Doulos +\emph default +). + You can also specify an extra font only for IPA by adding the following + to +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +LaTeX Preamble +\family default +: +\end_layout + +\begin_layout Standard +\begin_inset listings +lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}" +inline false +status open + +\begin_layout Plain Layout + + +\backslash +AtBeginDocument{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +newfontfamily{ +\backslash +ipafont}{CMU Serif}% or another font +\end_layout + +\begin_layout Plain Layout + + +\backslash +def +\backslash +useTIPAfont{ +\backslash +ipafont} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +Additionally, and independent from which of the above approaches you use, + if you want to have instant preview, you should have the +\emph on +preview-latex +\emph default + package +\begin_inset CommandInset citation +LatexCommand cite +key "preview" +literal "true" + +\end_inset + + installed. +\end_layout + +\begin_layout Standard +The recommended way to insert phonetic symbols is via +\family sans +Insert\SpecialChar menuseparator +Special characters\SpecialChar menuseparator +Phonetic symbols. + +\family default +This gives you an input box ( +\begin_inset Quotes eld +\end_inset + +inset +\begin_inset Quotes erd +\end_inset + + in \SpecialChar LyX + speak), where you can insert the symbols. + Note that this box can be used both for the insertion of small snippets + (inline) and multiple paragraphs of phonetic notation. + While the cursor is inside the box, a toolbar opens, which provides the + basic set of phonetic symbols (sorted by the IPA categories). +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Currently, there is one symbol missing: the labiodental flap (added to the + IPA in 2005). + This symbol is not yet supported by the +\emph on +tipa +\emph default + package and thus cannot be supported by LyX. +\end_layout + +\end_inset + + Each of the toolbar's panels can be torn off the bar by clicking on the + dashed line on its top. + This way, you can insert most symbols quite comfortably: +\begin_inset IPA + +\begin_layout Standard +[l +\begin_inset IPADeco bottomtiebar +status open + +\begin_layout Plain Layout +ai +\end_layout + +\end_inset + +k ðɪs] +\end_layout + +\end_inset + +. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Note that, if you want to insert diacritics, the diacritics are inserted + +\emph on +after +\emph default + the base character. + That is to say, for +\begin_inset IPA + +\begin_layout Standard +[d̥] +\end_layout + +\end_inset + + you need to insert +\family typewriter + +\family default + and then the +\family typewriter + +\family default + subring diacritic from the toolbar immediately after the +\family typewriter + +\family default +. + If you need a diacritic alone, you can achieve this by inserting a blank + and then the diacritic, as in +\begin_inset IPA + +\begin_layout Standard + ̼ +\end_layout + +\end_inset + + ( +\family typewriter += +\begin_inset space ~ +\end_inset + ++ +\family default +). +\end_layout + +\end_inset + + Given that +\emph on + preview-latex +\emph default + is installed and you have switched on instant preview (in +\family sans + Tools\SpecialChar menuseparator +Preferences\SpecialChar menuseparator +Look +\begin_inset space ~ +\end_inset + +& +\begin_inset space ~ +\end_inset + +Feel\SpecialChar menuseparator +Display +\family default +), you'll get a nice WYSIWYG preview as soon as the cursor leaves the box. + Alternatively to the toolbar, you can also insert the symbols directly + via the shortcut notation which is described in the +\emph on +tipa +\emph default + manual: here's +\begin_inset IPA + +\begin_layout Standard + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\strikeout off +\uuline off +\uwave off +\noun off +\color none +[@n Ig"zA:mpl] +\end_layout + +\end_inset + + ( +\emph on +tipa +\emph default + shortcut notation: +\family typewriter +[@n Ig"zA:mpl +\family default +]). + Furthermore, you can insert symbols via +\family sans +Insert\SpecialChar menuseparator +Special characters\SpecialChar menuseparator +Symbols\SpecialChar ldots + +\family default + (which might be useful for symbols that are not yet covered by the toolbar), + or you can simply paste unicode-encoded text (e. +\begin_inset space \thinspace{} +\end_inset + +g., from other applications) into the box. + The output should be equal, no matter what input method you chose. +\end_layout + +\begin_layout Standard +Note that you can also insert or paste most IPA glyphs outside the specific + IPA input box: [əz ʃəʊn hɪə]. + In the output, they will be automatically transformed into the correct + +\emph on +tipa +\emph default + macro (if not, please inform us). + However, please note that this method produces inferior output quality, + since it will most likely result in a mix of fonts (the latin characters + are taken from the base document font, the IPA glyphs from the IPA font). + Within the IPA input box, on the other hand, the IPA font is used for all + characters. + So unless you only need to insert single IPA characters, using the IPA + input box is highly recommended. +\end_layout + +\begin_layout Section +Further information +\end_layout + +\begin_layout Standard +For a detailed description of specific possibilities for linguists, please + refer to the Linguist\SpecialChar LyX + page on the \SpecialChar LyX + wiki +\begin_inset CommandInset citation +LatexCommand cite +key "linguistlyx" +literal "true" + +\end_inset + + (feel free to enter your own hints there). +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "covington" +literal "true" + +\end_inset + +The covington package: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/macros/latex/contrib/covington/ +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "csquotes" +literal "true" + +\end_inset + +The csquotes package: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/ +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "enumitem" +literal "true" + +\end_inset + +The enumitem package: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/ +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "float" +literal "true" + +\end_inset + +The float package: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/macros/latex/contrib/float/ +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "forest" +literal "true" + +\end_inset + +The forest package: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/graphics/pgf/contrib/forest +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "linguistlyx" +literal "true" + +\end_inset + +Maria Gouskova, Stacia Hartleben and Jürgen Spitzmüller: Using \SpecialChar LyX + for Linguistic + Papers. + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://wiki.lyx.org/LyX/LinguistLyX +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "preview" +literal "true" + +\end_inset + +The preview-latex package: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/macros/latex/contrib/preview/ +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "tipa" +literal "true" + +\end_inset + +The tipa package and fonts: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.ctan.org/tex-archive/fonts/tipa/ +\end_layout + +\end_inset + +. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Multilingual_Captions.lyx b/lib/examples/Modules/Multilingual_Captions.lyx new file mode 100644 index 0000000000..124ce287d6 --- /dev/null +++ b/lib/examples/Modules/Multilingual_Captions.lyx @@ -0,0 +1,1913 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrartcl +\begin_preamble +% if pdflatex is used +\usepackage{ifpdf} +\ifpdf + +% set fonts for nicer pdf view +\IfFileExists{lmodern.sty} + {\usepackage{lmodern}}{} + +\fi % end if pdflatex is used + +% use this when you only need the document language captions in the list of figures/tables +%\PassOptionsToPackage{list=off}{bicaption} + +% all this is only necessary if you want to have a different list of floats for each language +\usepackage{newfloat} +% Define a new floating environment type "figureGer" +\DeclareFloatingEnvironment[fileext=lof2]{figureGer} +[Abbildung][Abbildungsverzeichnis] +% Define the new floating environment type "tableEng" +\DeclareFloatingEnvironment[fileext=lot2]{tableGer} +[Tabelle][Tabellenverzeichnis] +% inform bicaption about the new float types +\PassOptionsToPackage{listtype+=Ger}{bicaption} +\end_preamble +\options liststotoc +\use_default_options true +\begin_modules +bicaption +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement h +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_bookmarks true +\pdf_bookmarksnumbered false +\pdf_bookmarksopen false +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks true +\pdf_backref false +\pdf_pdfusetitle true +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 1 +\use_minted 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Typesetting Multilingual Captions +\end_layout + +\begin_layout Author +Uwe Stöhr +\end_layout + +\begin_layout Standard +\begin_inset FloatList figure + +\end_inset + + +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +The module +\family sans +Multilingual +\begin_inset space ~ +\end_inset + +captions +\family default + allows to typeset captions in two languages. + It requires the \SpecialChar LaTeX + package +\series bold +bicaption +\series default + which is part of the \SpecialChar LaTeX + package +\series bold +caption +\series default +. + So if +\series bold +caption +\series default + is installed, +\series bold +bicaption +\series default + should be installed too. +\end_layout + +\begin_layout Standard +The first language is the document language, the second one has to be specified + using the style +\family sans +Caption +\begin_inset space ~ +\end_inset + +setup +\family default +. + This style has an optional argument to define to which language the setup + should apply. + To change the setup of all captions in the first language, use +\series bold +bi-first +\series default + as optional argument, for the second language use +\series bold +bi-second +\series default +, for both languages use +\series bold +bi-both +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note +\series default +: If no optional argument is used for +\family sans +Caption setup +\family default +, the setup will affect all captions in the document, not only the multilingual + ones. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +This document is in English. + To set German as the second language one uses the command +\end_layout + +\begin_layout Standard + +\series bold +lang=ngerman +\end_layout + +\begin_layout Standard +in a +\family sans +Caption setup +\family default + style. + For other languages, replace +\series bold +ngerman +\series default + by the babel name of the language. + The list of babel names is given in Table +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:List-of-babel" + +\end_inset + +. + The caption labels are automatically translated. +\end_layout + +\begin_layout Standard +To add a multilingual caption to a float, press the right mouse button on + the caption that is automatically added when inserting a new float and + select +\family sans +Caption +\begin_inset space ~ +\end_inset + +(Bicaption +\family default +) from the context menu. + If no caption is inserted, you can insert the multilingual caption via + +\family sans +Insert\SpecialChar menuseparator +Caption\SpecialChar menuseparator +Bicaption +\family default +. + The caption text in the document language must be inserted in the inset + which is inserted in the caption via +\family sans +Insert\SpecialChar menuseparator +Main Language Text +\family default +. + The caption text in the second language is inserted as normal text in the + caption. +\end_layout + +\begin_layout Standard +Short Titles for both languages (for the List of Tables\SpecialChar breakableslash +Figures) can be inserted + via +\family sans +Insert\SpecialChar menuseparator +Main Language Short Title +\family default + and +\family sans +Insert\SpecialChar menuseparator +Second Language Short Title. +\end_layout + +\begin_layout Standard +Figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:example-figure" + +\end_inset + + is an example of a figure float with a multilingual caption. +\end_layout + +\begin_layout Caption setup +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +bi-second +\end_layout + +\end_inset + +lang=ngerman +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +specify the second language +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\noindent +\align center +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "50col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +A figure. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Bicaption + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +English short title +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +English Title +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +German short title +\end_layout + +\end_inset + +German Title +\begin_inset CommandInset label +LatexCommand label +name "fig:example-figure" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note +\series default +: Multilingual captions cannot be used for longtables. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Caption Customization +\end_layout + +\begin_layout Standard +The layout of the captions can also be changed using the +\family sans +Caption setup +\family default + style. + For example to typeset the caption text sans-serif italic, use the command +\end_layout + +\begin_layout Standard + +\series bold +textfont={sf,it} +\end_layout + +\begin_layout Standard +to make the label bold use +\end_layout + +\begin_layout Standard + +\series bold +labelfont=bf +\end_layout + +\begin_layout Standard +To set the font for the text and the label use the command +\series bold +font= +\series default +. + For more information about possible customizations, see the documentation + of the \SpecialChar LaTeX + package +\series bold +caption +\series default +, +\begin_inset CommandInset citation +LatexCommand cite +key "caption" +literal "true" + +\end_inset + +, because the customization options of the package +\series bold +bicaption +\series default + are the same as for +\series bold +caption +\series default +. +\end_layout + +\begin_layout Standard +Figure +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:example-figure-custom" + +\end_inset + + is an example of a figure float with a customized multilingual caption. +\end_layout + +\begin_layout Caption setup +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +Note +\series default +: This setup does not have an effect in this file as described in the note + of section +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Float-List-Customization" + +\end_inset + +. +\end_layout + +\end_inset + + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +bi-both +\end_layout + +\end_inset + +labelfont=bf, labelsep=newline +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The label font should be bold, the label separator is a line break instead + of a colon. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Caption setup +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +bi-first +\end_layout + +\end_inset + +labelfont=bf, labelsep=newline +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The first language label font should be bold. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Caption setup +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +bi-second +\end_layout + +\end_inset + +labelfont=bf, textfont={sf,it}, labelsep=newline +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The second language caption text should be sans-serif, italic. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\noindent +\align center +\begin_inset Box Boxed +position "t" +hor_pos "c" +has_inner_box 0 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "50col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +A figure. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Bicaption + +\begin_layout Plain Layout +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Customized caption format +\end_layout + +\end_inset + + +\lang ngerman +Angepasstes Beschriftungsformat +\lang english + +\begin_inset CommandInset label +LatexCommand label +name "fig:example-figure-custom" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +\begin_inset CommandInset label +LatexCommand label +name "sec:Float-List-Customization" + +\end_inset + +Float List Customization +\end_layout + +\begin_layout Standard +By default the list of figures/tables contain both languages. + You can turn off the second language by adding this line to the document + preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +PassOptionsToPackage{list=off}{bicaption} +\end_layout + +\begin_layout Standard +It is also possible to have two different lists, one for the document language, + one for the second language. + This is the case in this file. + To split the list one needs to add these lines to the \SpecialChar LaTeX + preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +usepackage{newfloat} +\begin_inset Newline newline +\end_inset + + +\backslash +DeclareFloatingEnvironment[fileext=lof2]{figureGer} +\begin_inset Newline newline +\end_inset + +[Abbildung][Abbildungsverzeichnis] +\begin_inset Newline newline +\end_inset + + +\backslash +DeclareFloatingEnvironment[fileext=lot2]{tableGer} +\begin_inset Newline newline +\end_inset + +[Tabelle][Tabellenverzeichnis] +\begin_inset Newline newline +\end_inset + + +\backslash +PassOptionsToPackage{listtype+=Ger}{bicaption} +\end_layout + +\begin_layout Standard +This defines two new float type named +\emph on +figureGer +\emph default + and +\emph on +tableGer +\emph default +. + A list for +\emph on +figureGer +\emph default + can be inserted by using the command +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +listoffigureGeres +\end_layout + +\begin_layout Standard +as \SpecialChar TeX + code. + Here is the German list of figures: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +listoffigureGeres +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note +\series default +: If you are using this feature, the +\family sans +Caption setup +\family default + style option +\series bold +bi-both +\series default + does no longer have any effect. + You then need to define everything explicitly for each language using the + options +\series bold +bi-first +\series default + and +\series bold +bi-second +\series default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +For more information what can be done with the \SpecialChar LaTeX + package +\series bold +bicaption +\series default +, have a look at its documentation, +\begin_inset CommandInset citation +LatexCommand cite +key "bicaption" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +\begin_inset CommandInset label +LatexCommand label +name "tab:List-of-babel" + +\end_inset + +List of babel names +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +language +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +babel name(s) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +language +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +babel name(s) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\family sans +\size small +continued on next page +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Afrikaans +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +afrikaans +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Basque +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +basque +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Breton +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +breton +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Bulgarian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +bulgarian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Catalan +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +catalan +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Croatian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +croatian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Czech +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +czech +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Danish +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +danish +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Dutch +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +dutch +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +English +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +english, american, australian, british, canadian, newzealand +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Esperanto +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +esperanto +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Estonian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +estonian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Finnish +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +finnish +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +French +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +french, canadien, acadian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Galician +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +galician +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Georgian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +georgian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +German +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +ngerman, naustrian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Greek +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +greek, polutonikogreek +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Hebrew +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +hebrew +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Hungarian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +magyar, hungarian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Icelandic +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +icelandic +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Indonesian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +bahasa +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Interlingua +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +interlingua +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Irish Gaelic +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +irish +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Italian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +italian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Latin +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +latin +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Lower Sorbian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +lowersorbian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Malay +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +bahasam +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +North Sami +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +samin +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Norwegian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +norsk, nynorsk +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Polish +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +polish +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Portuguese +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +portuguese, brazilian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Romanian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +romanian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Russian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +russian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Scottish Gaelic +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +scottish +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Serbian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +serbian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Slovakian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +slovak +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Slovenian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +slovene +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Spanish +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +spanish +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Swedish +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +swedish +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Turkish +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +turkish +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Ukrainian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +ukrainian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Upper Sorbian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +uppersorbian +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Welsh +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +welsh +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "bicaption" +literal "true" + +\end_inset + +Documentation of the \SpecialChar LaTeX + package +\series bold + +\begin_inset CommandInset href +LatexCommand href +name "bicaption" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/bicaption.pdf" +literal "false" + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "caption" +literal "true" + +\end_inset + +Documentation of the \SpecialChar LaTeX + package +\series bold + +\begin_inset CommandInset href +LatexCommand href +name "caption" +target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption-eng.pdf" +literal "false" + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Noweb.lyx b/lib/examples/Modules/Noweb.lyx new file mode 100644 index 0000000000..ae16f52f19 --- /dev/null +++ b/lib/examples/Modules/Noweb.lyx @@ -0,0 +1,2195 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\use_default_options false +\begin_modules +noweb +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding default +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +\SpecialChar LyX + and Literate Programming +\begin_inset Newline newline +\end_inset + +An example program +\end_layout + +\begin_layout Author +Edmar Wienskoski Jr. +\begin_inset Newline newline +\end_inset + +edmar-w-jr@technologist.com +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Modified by Bernard Michael Hurley bernardh@westherts.ac.uk —- Don't blame + Edmar for any errors that have crept in! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Abstract + +\series bold +Note: +\series default + This example program is provided for educational use only. + The functionality in this C program has been superceded by the equivalent + Python code in +\emph on +examples/listerrors.lyx +\emph default + which should be installed in the \SpecialChar LyX + scripts directory. +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +After typesetting a document, \SpecialChar LyX + scans the \SpecialChar LaTeX + log file looking for errors. + For each error found, the line number is obtained and a error box is displayed + in the \SpecialChar LyX + screen at that position. +\end_layout + +\begin_layout Standard +To use this feature to view compilation errors while working with literate + documents, we need a program that filters the compilation errors and puts + them in a format suitable for \SpecialChar LyX + reading it. + +\end_layout + +\begin_layout Standard +In this document we present a filter that recognizes compilation error messages + from noweb, gnu C, and the IBM C compiler (xlc). +\end_layout + +\begin_layout Standard +The filter is required to read from standard input, parse for error messages + and copy the error messages to the standard output. + During the output process, the filter must present the error messages in + a format that \SpecialChar LyX + can interpret, currently, the \SpecialChar LaTeX + error message format. + Of course, nothing will prevent future \SpecialChar LyX + releases from being able to read + other formats as well (like gcc error messages for example). + This mechanism is necessary to fully explore the literate programming tool's + capabilities. +\end_layout + +\begin_layout Section +Algorithm +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Function bodies +\end_layout + +\end_inset + +int +\end_layout + +\begin_layout Plain Layout + +main (int argc, char **argv) +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + if (argc == 2) { +\end_layout + +\begin_layout Plain Layout + + switch (argv[1][0]) { +\end_layout + +\begin_layout Plain Layout + + case 'n': +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + break; +\end_layout + +\begin_layout Plain Layout + + case 'x': +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + break; +\end_layout + +\begin_layout Plain Layout + + case 'a': +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + break; +\end_layout + +\begin_layout Plain Layout + + case 's': +\end_layout + +\begin_layout Plain Layout + + case 'b': +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + break; +\end_layout + +\begin_layout Plain Layout + + case 'g': +\end_layout + +\begin_layout Plain Layout + + default: +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + break; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + } else { +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Function prototypes +\end_layout + +\end_inset + +int main (int argc, char **argv); +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Data Structures +\end_layout + +\begin_layout Standard +We resort to some global variables to allow access from several different + routines. + These are the buffer and related pointers used during the parse of the + input. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +char buffer[200][200]; +\end_layout + +\begin_layout Plain Layout + +int last_buf_line; +\end_layout + +\begin_layout Plain Layout + +int last_err_line; +\end_layout + +\begin_layout Plain Layout + +int err_line;@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +The output format +\end_layout + +\begin_layout Standard +The output format mimics the \SpecialChar TeX + error messages format. + This function prints a number of lines residing in the global variable + +\family typewriter +buffer +\family default +, a program name and line number. + There is no special requirement on the input strings, they can be anything. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +This function has been slightly changed from EW's original to make scanning + a bit easier with \SpecialChar LaTeX +::scanLogFile(). + The test has been added because \SpecialChar LyX + can crash if empty lines are allowed here + — I can't figure out why! — BMH +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Function bodies +\end_layout + +\end_inset + +void +\end_layout + +\begin_layout Plain Layout + +output_error (int buf_size, int error_line, char *tool) +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + int i; +\end_layout + +\begin_layout Plain Layout + + +\end_layout + +\begin_layout Plain Layout + + fprintf(stdout, "! Build Error: ==> %s ==> +\backslash +n", tool); +\end_layout + +\begin_layout Plain Layout + + fprintf(stdout, " ... +\backslash +n +\backslash +nl.%d ... +\backslash +n", error_line); +\end_layout + +\begin_layout Plain Layout + + +\end_layout + +\begin_layout Plain Layout + + for (i=0; i>= +\end_layout + +\begin_layout Plain Layout + +char *noweb_msgs[] = { +\end_layout + +\begin_layout Plain Layout + + "couldn't open file", +\end_layout + +\begin_layout Plain Layout + + "couldn't open temporary file", +\end_layout + +\begin_layout Plain Layout + + "error writing temporary file", +\end_layout + +\begin_layout Plain Layout + + "ill-formed option", +\end_layout + +\begin_layout Plain Layout + + "unknown option", +\end_layout + +\begin_layout Plain Layout + + "Bad format sequence", +\end_layout + +\begin_layout Plain Layout + + "Can't open output file", +\end_layout + +\begin_layout Plain Layout + + "Can't open temporary file", +\end_layout + +\begin_layout Plain Layout + + "Capacity exceeded:", +\end_layout + +\begin_layout Plain Layout + + "Ignoring unknown option -", +\end_layout + +\begin_layout Plain Layout + + "This can't happen:", +\end_layout + +\begin_layout Plain Layout + + "non-numeric line number in" +\end_layout + +\begin_layout Plain Layout + +}; +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +char *noweb_msgs_mimic_gcc[] = { +\end_layout + +\begin_layout Plain Layout + + ": unescaped << in documentation chunk" +\end_layout + +\begin_layout Plain Layout + +}; +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +A noweb error message can be any string that contains a matching pair of + < < +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + +> >, or any of the above strings +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +int noweb_try (int buf_line) +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + char *s, *t, *b; +\end_layout + +\begin_layout Plain Layout + + int i; +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + b = buffer[buf_line]; +\end_layout + +\begin_layout Plain Layout + + err_line = 0; +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + for (i=0; i<1; i++) { +\end_layout + +\begin_layout Plain Layout + + s = (char *)strstr (b, noweb_msgs_mimic_gcc[i]); +\end_layout + +\begin_layout Plain Layout + + if (s != NULL) { +\end_layout + +\begin_layout Plain Layout + + t = (char *)strchr(buffer[buf_line], ':'); +\end_layout + +\begin_layout Plain Layout + + err_line = atoi(t+1); +\end_layout + +\begin_layout Plain Layout + + t = buffer[buf_line]; +\end_layout + +\begin_layout Plain Layout + + ++s; +\end_layout + +\begin_layout Plain Layout + + while (*(t++) = *(s++)); +\end_layout + +\begin_layout Plain Layout + + return 1; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + s = (char *)strstr(b, "<<"); +\end_layout + +\begin_layout Plain Layout + + if (s != NULL) { +\end_layout + +\begin_layout Plain Layout + + s = (char *)strstr(s+2, ">>"); +\end_layout + +\begin_layout Plain Layout + + if (s != NULL) { +\end_layout + +\begin_layout Plain Layout + + return 1; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + } else { +\end_layout + +\begin_layout Plain Layout + + for (i = 0; i < 12; ++i) { +\end_layout + +\begin_layout Plain Layout + + s = (char *)strstr (b, noweb_msgs[i]); +\end_layout + +\begin_layout Plain Layout + + if (s != NULL) { +\end_layout + +\begin_layout Plain Layout + + return 1; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + return 0; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +int noweb_try (int buf_line); +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The xlc compiler always outputs one single line for each error found, thus + to scan the buffer for xlc error messages it is enough to exam one input + line at a time. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Scan input for xlc error messages +\end_layout + +\end_inset + +{ +\end_layout + +\begin_layout Plain Layout + + last_buf_line = 0; +\end_layout + +\begin_layout Plain Layout + + while (fgets(buffer[last_buf_line], 200, stdin)) { +\end_layout + +\begin_layout Plain Layout + + if (xlc_try(0)) +\end_layout + +\begin_layout Plain Layout + + output_error(1, err_line, "xlc"); +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +A xlc error message is easy to identify. + Every error message starts with a quoted string with no spaces, a comma, + a space, the word +\begin_inset Quotes eld +\end_inset + +line +\begin_inset Quotes erd +\end_inset + +, a space, and some variable text. + The following routine tests if a given buffer line matches this criteria: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +int +\end_layout + +\begin_layout Plain Layout + +xlc_try (int buf_line) +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + char *s, *t; +\end_layout + +\begin_layout Plain Layout + + +\end_layout + +\begin_layout Plain Layout + + t = buffer[buf_line]; +\end_layout + +\begin_layout Plain Layout + + s = t+1; +\end_layout + +\begin_layout Plain Layout + + while (*s != '"' && *s != ' ' && *s != ' +\backslash +0') +\end_layout + +\begin_layout Plain Layout + + s++; +\end_layout + +\begin_layout Plain Layout + + if (*t != '"' || *s != '"' || strncmp(s+1, ", line ", 7) != 0) +\end_layout + +\begin_layout Plain Layout + + return 0; +\end_layout + +\begin_layout Plain Layout + + s += 8; +\end_layout + +\begin_layout Plain Layout + + err_line = atoi(s); +\end_layout + +\begin_layout Plain Layout + + return 1; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Function prototypes +\end_layout + +\end_inset + +int xlc_try (int buf_line); +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The gcc compiler error messages are more complicated to scan. + Each error can span more than one line in the buffer. + The good news is that every buffer line on each error has the same pattern, + and share the same line number. + Thus the strategy will be to accumulate lines in the buffer while the reported + line number is still the same. + At the time they differ, all the accumulated lines, except the last one, + will belong to one single error message, which now can be output-ed to + \SpecialChar LyX +. +\end_layout + +\begin_layout Standard +Every gcc error message contains a string with no space followed by a +\begin_inset Quotes eld +\end_inset + +: +\begin_inset Quotes eld +\end_inset + +. + If the next character is a space, then this line is a header of a error + message and the next line will detail the line number of the source code + where the error was found. + Otherwise, the next thing is a integer number followed by another +\begin_inset Quotes eld +\end_inset + +: +\begin_inset Quotes eld +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Scan input for gcc error messages +\end_layout + +\end_inset + +{ +\end_layout + +\begin_layout Plain Layout + + char *s, *t; +\end_layout + +\begin_layout Plain Layout + + +\end_layout + +\begin_layout Plain Layout + + last_buf_line = 0; +\end_layout + +\begin_layout Plain Layout + + while (fgets(buffer[last_buf_line], 200, stdin)) { +\end_layout + +\begin_layout Plain Layout + + /****** Skip lines until I find an error */ +\end_layout + +\begin_layout Plain Layout + + s = (char *)strpbrk(buffer[last_buf_line], " :"); +\end_layout + +\begin_layout Plain Layout + + if (s == NULL || *s == ' ') +\end_layout + +\begin_layout Plain Layout + + continue; /* No gcc error found here */ +\end_layout + +\begin_layout Plain Layout + + do { +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + /****** OK It is an error message, get line number */ +\end_layout + +\begin_layout Plain Layout + + err_line = atoi(s+1); +\end_layout + +\begin_layout Plain Layout + + if (last_err_line == 0 || last_err_line == err_line) { +\end_layout + +\begin_layout Plain Layout + + last_err_line = err_line; +\end_layout + +\begin_layout Plain Layout + + continue; /* It's either a header or a continuation, don't output + yet */ +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + /****** Completed the scan of one error message, output it to LyX + */ +\end_layout + +\begin_layout Plain Layout + + discharge_buffer(1); +\end_layout + +\begin_layout Plain Layout + + break; +\end_layout + +\begin_layout Plain Layout + + } while (fgets(buffer[last_buf_line], 200, stdin)); +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + /****** EOF completes the scan of whatever was being scanned */ +\end_layout + +\begin_layout Plain Layout + + discharge_buffer(0); +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +gcc error message criteria is to find a "...:999:" or a "...: " +\end_layout + +\end_inset + +/****** Search first ":" in the error number */ +\end_layout + +\begin_layout Plain Layout + +s = (char *)strpbrk(buffer[last_buf_line], " :"); +\end_layout + +\begin_layout Plain Layout + +last_buf_line++; +\end_layout + +\begin_layout Plain Layout + +if (s == NULL || *s == ' ') +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + +/****** Search second ":" in the error number */ +\end_layout + +\begin_layout Plain Layout + +t = (char *)strpbrk(s+1, " :");if (t == NULL || *t == ' ') <>/****** + Verify if is all digits between ":" */if (t != s+1+strspn(s+1, "0123456789")) + <>@ +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + err_line = 0; +\end_layout + +\begin_layout Plain Layout + + discharge_buffer(1); +\end_layout + +\begin_layout Plain Layout + + continue; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +As we mentioned, when the scan of one gcc error message is completed everything + in the buffer except the last line is one single error message. + But if the scan terminates with a EOF or through finding one line that + does not match the gcc error message criteria, then there is no +\begin_inset Quotes eld +\end_inset + +last line +\begin_inset Quotes erd +\end_inset + + in the buffer to be concerned with. + In those cases we empty the buffer completely. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +void +\end_layout + +\begin_layout Plain Layout + +discharge_buffer (int save_last) +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + if (last_err_line != 0) { +\end_layout + +\begin_layout Plain Layout + + clean_gcc_messages(); +\end_layout + +\begin_layout Plain Layout + + if (save_last != 0) { +\end_layout + +\begin_layout Plain Layout + + output_error(last_buf_line-1, last_err_line, "gcc"); +\end_layout + +\begin_layout Plain Layout + + strcpy (buffer[0], buffer[last_buf_line-1]); +\end_layout + +\begin_layout Plain Layout + + last_err_line = err_line; +\end_layout + +\begin_layout Plain Layout + + last_buf_line = 1; +\end_layout + +\begin_layout Plain Layout + + } else { +\end_layout + +\begin_layout Plain Layout + + ++last_buf_line; +\end_layout + +\begin_layout Plain Layout + + clean_gcc_messages(); +\end_layout + +\begin_layout Plain Layout + + output_error(last_buf_line-1, last_err_line, "gcc"); +\end_layout + +\begin_layout Plain Layout + + last_err_line = 0; +\end_layout + +\begin_layout Plain Layout + + last_buf_line = 0; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Function prototypes +\end_layout + +\end_inset + +void discharge_buffer (int save_last); +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The next function +\begin_inset Quotes eld +\end_inset + +cleans +\begin_inset Quotes erd +\end_inset + + superfluous information from gcc messages, namely the name of the noweb + file and the line number of the Error. +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +More could be done. + For instance, some way of distinguishing between gcc Errors and Warnings + should be devised. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Function bodies +\end_layout + +\end_inset + +void +\end_layout + +\begin_layout Plain Layout + +clean_gcc_messages () +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + int index; +\end_layout + +\begin_layout Plain Layout + + char search [30]; +\end_layout + +\begin_layout Plain Layout + + char *tail, *head; +\end_layout + +\begin_layout Plain Layout + + int search_len = sprintf(search, ".nw:%d:", last_err_line); +\end_layout + +\begin_layout Plain Layout + + +\end_layout + +\begin_layout Plain Layout + + for (index = 0; index < last_buf_line-1; index++) { +\end_layout + +\begin_layout Plain Layout + + tail = (char *)strstr (buffer[index], search); +\end_layout + +\begin_layout Plain Layout + + if ( tail == NULL) { +\end_layout + +\begin_layout Plain Layout + + tail = (char *) strstr (buffer[index], ".nw:"); +\end_layout + +\begin_layout Plain Layout + + if (tail) { +\end_layout + +\begin_layout Plain Layout + + tail += 4; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + } else { +\end_layout + +\begin_layout Plain Layout + + tail += search_len; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + if (tail != NULL) { +\end_layout + +\begin_layout Plain Layout + + head = buffer[index]; +\end_layout + +\begin_layout Plain Layout + + while (*(head++) = *(tail++)); +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Function prototypes +\end_layout + +\end_inset + +void clean_gcc_messages (); +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To combine the scan of noweb error messages and xlc error messages is very + simple. + We just try each one for every input line: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + last_buf_line = 0; +\end_layout + +\begin_layout Plain Layout + + while (fgets(buffer[0], 200, stdin)) { +\end_layout + +\begin_layout Plain Layout + + if (noweb_try(0)) +\end_layout + +\begin_layout Plain Layout + + output_error(1, err_line, "noweb"); +\end_layout + +\begin_layout Plain Layout + + else if (xlc_try(0)) +\end_layout + +\begin_layout Plain Layout + + output_error(1, err_line, "xlc"); +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To combine the scan of noweb error messages and gcc error messages is simple + if we realize that it is not possible to find a noweb error message in + the middle of a gcc error message. + So we just repeat the gcc procedure and test for noweb error messages in + the beginning of the scan: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Solaris and Linux systems using both noweb and gcc +\end_layout + +\end_inset + +{ +\end_layout + +\begin_layout Plain Layout + + char *s, *t; +\end_layout + +\begin_layout Plain Layout + + +\end_layout + +\begin_layout Plain Layout + + last_buf_line = 0; +\end_layout + +\begin_layout Plain Layout + + while (fgets(buffer[last_buf_line], 200, stdin)) { +\end_layout + +\begin_layout Plain Layout + + /****** Skip lines until I find an error */ +\end_layout + +\begin_layout Plain Layout + + if (last_buf_line == 0 && noweb_try(0)) { +\end_layout + +\begin_layout Plain Layout + + output_error(1, err_line, "noweb"); +\end_layout + +\begin_layout Plain Layout + + continue; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + s = (char *)strpbrk(buffer[last_buf_line], " :"); +\end_layout + +\begin_layout Plain Layout + + if (s == NULL || *s == ' ') +\end_layout + +\begin_layout Plain Layout + + continue; /* No gcc error found here */ +\end_layout + +\begin_layout Plain Layout + + do { +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + /****** OK It is an error, get line number */ +\end_layout + +\begin_layout Plain Layout + + err_line = atoi(s+1); +\end_layout + +\begin_layout Plain Layout + + if (last_err_line == 0 || last_err_line == err_line) { +\end_layout + +\begin_layout Plain Layout + + last_err_line = err_line; +\end_layout + +\begin_layout Plain Layout + + continue; /* It's either a header or a continuation, don't output + yet */ +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + /****** Completed the scan of one error message, output it to LyX + */ +\end_layout + +\begin_layout Plain Layout + + discharge_buffer(1); +\end_layout + +\begin_layout Plain Layout + + break; +\end_layout + +\begin_layout Plain Layout + + } while (fgets(buffer[last_buf_line], 200, stdin)); +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + /****** EOF completes the scan of whatever was being scanned */ +\end_layout + +\begin_layout Plain Layout + + discharge_buffer(0); +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Wrapping the code into a file +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +listerrors.c +\end_layout + +\end_inset + +#include +\end_layout + +\begin_layout Plain Layout + +#include +\end_layout + +\begin_layout Plain Layout + + +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To build this program, we want to add the +\begin_inset Quotes eld +\end_inset + +-L +\begin_inset Quotes erd +\end_inset + + option in the tangle command to force gdb to load the file +\family typewriter +Literate.nw +\family default + instead of +\family typewriter +listerrors.c +\family default +. + In accordance with this, we pass the +\begin_inset Quotes eld +\end_inset + +-g +\begin_inset Quotes erd +\end_inset + + option to gcc. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +build-script +\end_layout + +\end_inset + +#!/bin/sh +\end_layout + +\begin_layout Plain Layout + +if [ -z "$NOWEB_SOURCE" ]; then NOWEB_SOURCE=Literate.nw; fi +\end_layout + +\begin_layout Plain Layout + +if [ -z "$NOWEB_OUTPUT_DIR" ]; then NOWEB_OUTPUT_DIR=.; fi +\end_layout + +\begin_layout Plain Layout + +notangle -L -Rlisterrors.c ${NOWEB_SOURCE} > ${NOWEB_OUTPUT_DIR}/listerrors.c +\end_layout + +\begin_layout Plain Layout + +gcc -g -o listerrors listerrors.c +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +This project can be tangled and compiled from \SpecialChar LyX + if you set +\family typewriter + +\backslash +build_command +\family default + to call a generic script that always extracts a chunk named +\family typewriter +build-script +\family default + and executes it. + Here is a example of such generic script: +\end_layout + +\begin_layout LyX-Code +#!/bin/sh +\begin_inset Newline newline +\end_inset + +notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$r sh +\end_layout + +\begin_layout LyX-Code + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Noweb2LyX.lyx b/lib/examples/Modules/Noweb2LyX.lyx new file mode 100644 index 0000000000..5acd467f64 --- /dev/null +++ b/lib/examples/Modules/Noweb2LyX.lyx @@ -0,0 +1,2557 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +% +% This relaxes the noweb constraint that chunks are +% never broken across pages. +% +% This is from the noweb FAQ +% +\def\nwendcode{\endtrivlist \endgroup} +\let\nwdocspar=\smallbreak +\end_preamble +\use_default_options false +\begin_modules +noweb +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding default +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title + +\noun on +noweb2lyx +\end_layout + +\begin_layout Author +Kayvan A. + Sylvan +\end_layout + +\begin_layout Date +May 6, 1999 +\end_layout + +\begin_layout Abstract +This document describes and implements a perl script for importing noweb + files into \SpecialChar LyX + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +Since version 1.0.1, \SpecialChar LyX + now supports Literate Programming using +\noun on +noweb +\noun default +. + This addition to \SpecialChar LyX + made it very pleasant to write programs in the literate + style (like this one). + In addition to being able to write new literate programs, it would be quite + useful if old +\noun on +noweb +\noun default + code could be imported into \SpecialChar LyX + in some fashion. + That's where this program comes in. +\end_layout + +\begin_layout Standard +The purpose of +\noun on +noweb2lyx +\noun default + is to convert a +\noun on +noweb +\noun default + file to \SpecialChar LyX +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +noweb2lyx.in +\end_layout + +\end_inset + +#!@PERL@ +\end_layout + +\begin_layout Plain Layout + +# +\end_layout + +\begin_layout Plain Layout + +# Copyright (C) 1999 Kayvan A. + Sylvan +\end_layout + +\begin_layout Plain Layout + +# You are free to use and modify this code under the terms of +\end_layout + +\begin_layout Plain Layout + +# the GNU General Public Licence version 2 or later. +\end_layout + +\begin_layout Plain Layout + +# +\end_layout + +\begin_layout Plain Layout + +# Written with assistance from: +\end_layout + +\begin_layout Plain Layout + +# Edmar Wienskoski Jr. + +\end_layout + +\begin_layout Plain Layout + +# Amir Karger +\end_layout + +\begin_layout Plain Layout + +# +\end_layout + +\begin_layout Plain Layout + +# $Id: noweb2lyx.lyx,v 1.5 2005/07/18 09:42:27 jamatos Exp $ +\end_layout + +\begin_layout Plain Layout + +# +\end_layout + +\begin_layout Plain Layout + +# NOTE: This file was automatically generated from noweb2lyx.lyx using noweb. +\end_layout + +\begin_layout Plain Layout + +# +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +The Noweb file defined +\end_layout + +\begin_layout Standard +A +\noun on +noweb +\noun default + file is a collection of documentation and code chunks. + Documentation chunks simply start with an ``@'' and have no name: +\end_layout + +\begin_layout LyX-Code +@ Here is some documentation. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +We can do arbitrary LaTeX code here. +\end_layout + +\begin_layout Plain Layout + +[... + blah blah blah ...] +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Code chunks look like this: +\end_layout + +\begin_layout LyX-Code +< +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{} +\end_layout + +\end_inset + +>= +\begin_inset Newline newline +\end_inset + +{... + code for the chunk goes here ...} +\begin_inset Newline newline +\end_inset + +@ +\end_layout + +\begin_layout Standard +The ``@'' is a necessary delimiter to end the code chunk. + The other form that the ``@'' line takes is as follows: +\end_layout + +\begin_layout LyX-Code +< +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{} +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{} +\end_layout + +\end_inset + +>= +\begin_inset Newline newline +\end_inset + +{... + code for the chunk ...} +\begin_inset Newline newline +\end_inset + +@ %def identifier1 identifier2 +\end_layout + +\begin_layout Standard +In the latter form, we are declaring to +\noun on +noweb +\noun default + that this code chunk defines identifier1, identifier2, etc. +\end_layout + +\begin_layout Standard +When first tackling this problem, I spoke with members of the \SpecialChar LyX + team that + knew about the literate programming extensions and re\SpecialChar LyX + (the \SpecialChar LaTeX + importing code). +\end_layout + +\begin_layout Standard +One of the first ideas was to extend the re\SpecialChar LyX + code to understand the +\noun on +noweb +\noun default + code chunks. + This proved to be too hard and presents other problems +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Not the least of these problems is the fact that << is a quote in French. +\end_layout + +\end_inset + +. + On the other hand, it turns out that re\SpecialChar LyX + contains a very useful literal + quoting mechanism. + If the input file contains the construct +\end_layout + +\begin_layout LyX-Code + +\backslash +begin{re\SpecialChar LyX +skip} +\begin_inset Newline newline +\end_inset + +{... + \SpecialChar LaTeX + stuff ...} +\begin_inset Newline newline +\end_inset + + +\backslash +end{re\SpecialChar LyX +skip} +\end_layout + +\begin_layout Standard +then re\SpecialChar LyX + will copy the surrounded code to the output file verbatim. + Given this, the first part of the translation is easy; we simply have to + copy the code chunks into an intermediate file that surrounds them with + +\family typewriter + +\backslash +begin{re\SpecialChar LyX +skip} +\family default + and +\family typewriter + +\backslash +end{re\SpecialChar LyX +skip} +\family default +. +\end_layout + +\begin_layout Standard +Once re\SpecialChar LyX + is done with the input file, the problem is reduced to changing + the code chunks from \SpecialChar LyX +'s \SpecialChar LaTeX + layout to the Chunk layout. +\end_layout + +\begin_layout Standard +There is one final constraint on +\noun on +noweb2lyx +\noun default +. + We want to be able to run it as a simple pre-processor and post-processor + from within re\SpecialChar LyX +. + We can accomplish this by setting the flags +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[pre_only]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +and +\color none + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[post_only]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +before we reach the main conversion code. +\end_layout + +\begin_layout Standard +With all that preamble out of the way, we now have the basic high-level + outline for our code: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Convert noweb to \SpecialChar LyX + +\end_layout + +\end_inset + +if (!$post_only) { +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +if ((!$pre_only) && (!$post_only)) { +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +if (!$pre_only) { +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Making a file that re\SpecialChar LyX + can process +\end_layout + +\begin_layout Standard +In this section, we present the code that performs the task of creating + the intermediate file that re\SpecialChar LyX + can process, using the algorithm that we + just outlined. + This algorithm is outlined in the code that follows: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\begin_layout Plain Layout + +inputline: while() +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + if (/^ +\backslash +s* +\backslash +< +\backslash +<.* +\backslash +> +\backslash +>=/) { # Beginning of a noweb chunk +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + } elsif (/^@ +\backslash +s+(.*)/) { # Beginning of a documentation chunk +\end_layout + +\begin_layout Plain Layout + + print OUTPUT $1; # We do not need the ``@'' part +\end_layout + +\begin_layout Plain Layout + + } elsif (/ +\backslash +[ +\backslash +[.+ +\backslash +] +\backslash +]/) { # noweb quoted code +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + } else { +\end_layout + +\begin_layout Plain Layout + + print OUTPUT; # Just let the line pass through +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +In the code above, we do some pre-processing of the noweb ``[[...]]'' construct. + This avoids some problems with re\SpecialChar LyX + confusing lists composed of ``[[...]]'' + constructs. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +s/ +\backslash +[ +\backslash +[.+? +\backslash +]{2,}/{$&}/g; +\end_layout + +\begin_layout Plain Layout + +print OUTPUT; +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +While reading in the +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[INPUT]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +file, once we have identified a +\noun on +noweb +\noun default + code chunk, we transform it into a form that is usable by re\SpecialChar LyX +. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Read in and output the noweb code chunk +\end_layout + +\end_inset + +<> +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +File input and output for the pre-processing step +\end_layout + +\begin_layout Standard +In +\noun on +noweb2lyx +\noun default +, we will use +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[INPUT]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +and +\color none + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[OUTPUT]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +to read and write files. + In the code fragment above, we need to read from the input file and write + to a file that will be later transformed by re\SpecialChar LyX +. + If we are being called only to pre-process the input file, then there is + no need to create a temporary file. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Setup INPUT and OUTPUT +\end_layout + +\end_inset + +if ($pre_only) { +\end_layout + +\begin_layout Plain Layout + + &setup_files($input_file, $output_file); +\end_layout + +\begin_layout Plain Layout + +} else { +\end_layout + +\begin_layout Plain Layout + + $relyx_file = "temp$$"; +\end_layout + +\begin_layout Plain Layout + + &setup_files($input_file, $relyx_file); +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +This code uses a small perl subroutine, +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[setup_files]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default +\color inherit +, which we define below: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +sub setup_files { +\end_layout + +\begin_layout Plain Layout + + my($in, $out) = @_; +\end_layout + +\begin_layout Plain Layout + + open(INPUT, "<$in") || die "Cannot read $in: $! +\backslash +n"; +\end_layout + +\begin_layout Plain Layout + + open(OUTPUT, ">$out") || die "Cannot write $out: $! +\backslash +n"; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +@ %def setup_files +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Reading in the +\noun on +noweb +\noun default + chunk +\end_layout + +\begin_layout Standard +After we see the beginning of the chunk, we need to read in and save the + rest of the chunk for output. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Save the beginning of the chunk to savedchunk +\end_layout + +\end_inset + +$savedchunk = $_; +\end_layout + +\begin_layout Plain Layout + +$endLine = ""; +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +chunkline: while () { +\end_layout + +\begin_layout Plain Layout + + last chunkline if /^@ +\backslash +s+/; +\end_layout + +\begin_layout Plain Layout + + $savedchunk .= $_; +\end_layout + +\begin_layout Plain Layout + +}; +\end_layout + +\begin_layout Plain Layout + +switch: { +\end_layout + +\begin_layout Plain Layout + + if (/^@ +\backslash +s+$/) {$savedchunk .= $_; last switch; } +\end_layout + +\begin_layout Plain Layout + + if (/^@ +\backslash +s+%def.*$/) {$savedchunk .= $_; last switch; } +\end_layout + +\begin_layout Plain Layout + + if (/^@ +\backslash +s+(.*)$/) {$savedchunk .= "@ +\backslash +n"; $endLine = "$1 +\backslash +n"; } +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Printing out the chunk +\end_layout + +\begin_layout Standard +The final piece of the first pass of the conversion is done by this code. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +print out the chunk in a re\SpecialChar LyX +skip block +\end_layout + +\end_inset + +print OUTPUT " +\backslash + +\backslash +begin{reLyXskip} +\backslash +n"; +\end_layout + +\begin_layout Plain Layout + +print OUTPUT $savedchunk; +\end_layout + +\begin_layout Plain Layout + +print OUTPUT " +\backslash + +\backslash +end{reLyXskip} +\backslash +n +\backslash +n"; +\end_layout + +\begin_layout Plain Layout + +print OUTPUT "$endLine"; +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Finally, we need to close the +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[INPUT]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +and +\color none + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[OUTPUT]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +files. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Close INPUT and OUTPUT +\end_layout + +\end_inset + +close(INPUT); +\end_layout + +\begin_layout Plain Layout + +close(OUTPUT); +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Running re\SpecialChar LyX + +\end_layout + +\begin_layout Standard +In this section, we describe and implement the code that runs re\SpecialChar LyX + on the + intermediate file +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[relyx_file]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default +\color inherit +. + +\end_layout + +\begin_layout Subsection +Selecting the document class +\end_layout + +\begin_layout Standard +In order to run re\SpecialChar LyX +, we need to know the article class of the input document + (to choose the corresponding literate document layout). + For this, we need to parse the intermediate file. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Run re\SpecialChar LyX + on intermediate file +\end_layout + +\end_inset + +<> +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +In the code below, you'll see a strange regular expression to search for + the document class. + The reason for this kludge is that without it, we can't run +\noun on +noweb2lyx +\noun default + on the +\emph on +noweb2lyx.nw +\emph default + file that is generated by \SpecialChar LyX + +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +re\SpecialChar LyX + searches for +\backslash + +\backslash +doc +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{} +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default +\color inherit +ument +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{} +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default +\color inherit +class and gets confused, so we have to obfuscate it slightly. +\end_layout + +\end_inset + +. + With the regular expression as it is, we can actually run +\noun on +noweb2lyx +\noun default + on itself and a produce a quite reasonable \SpecialChar LyX + file. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Parse for document class +\end_layout + +\end_inset + +open(INPUT, "<$relyx_file") || +\end_layout + +\begin_layout Plain Layout + + die "Cannot read $relyx_file: $! +\backslash +n"; +\end_layout + +\begin_layout Plain Layout + +$class = "article"; # default if none found +\end_layout + +\begin_layout Plain Layout + +parse: while() { +\end_layout + +\begin_layout Plain Layout + + if (/ +\backslash + +\backslash +docu[m]entclass{(.*)}/) { +\end_layout + +\begin_layout Plain Layout + + $class = $1; +\end_layout + +\begin_layout Plain Layout + + last parse; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +close(INPUT); +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Running re\SpecialChar LyX + with the corresponding literate document layout +\end_layout + +\begin_layout Standard +Now that we know what the document class ought to be, we do: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +$doc_class = "literate-" . + $class; +\end_layout + +\begin_layout Plain Layout + +die "reLyX returned non-zero: $! +\backslash +n" +\end_layout + +\begin_layout Plain Layout + + if (system("reLyX -c $doc_class $relyx_file")); +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +re\SpecialChar LyX + performs the main bulk of the translation work. + Note that if the ``literate- +\emph on +class +\emph default +'' document layout is not found, then re\SpecialChar LyX + will fail with an error. + In that case, you may need to modify your +\noun on +noweb +\noun default + input file to a supported document type. +\end_layout + +\begin_layout Section +Fixing the re\SpecialChar LyX + output +\end_layout + +\begin_layout Standard +We need to perform some post-processing of what re\SpecialChar LyX + produces in order to + have the best output for our literate document. + The outline of the post-processing steps are: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Fix up \SpecialChar LyX + file +\end_layout + +\end_inset + +<> +\end_layout + +\begin_layout Plain Layout + +line: while() +\end_layout + +\begin_layout Plain Layout + +{ +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + print OUTPUT; # default +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Note that in the perl code that is contained in the +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[while()]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +loop above, the perl construct +\color none + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[next line]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +is sufficient to restart the loop. + We can use this construct to do some relatively complex parsing of the + re\SpecialChar LyX + generated file. +\end_layout + +\begin_layout Subsection +File input and output for the post-processing +\end_layout + +\begin_layout Standard +Setting up the +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[INPUT]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +and +\color none + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[[OUTPUT]] +\end_layout + +\end_inset + + +\family default +\series default +\shape default +\size default +\emph default +\bar default +\noun default + +\color inherit +is taken care of by this code: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Setup INPUT and OUTPUT for the final output +\end_layout + +\end_inset + +if ($post_only) { +\end_layout + +\begin_layout Plain Layout + + &setup_files("$input_file", "$output_file"); +\end_layout + +\begin_layout Plain Layout + +} else { +\end_layout + +\begin_layout Plain Layout + + &setup_files("$relyx_file.lyx", "$output_file"); +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Making sure the code chunks are in the Chunk layout +\end_layout + +\begin_layout Standard +Now, as we outlined before, the final step is transforming the code-chunks + which have been put into a \SpecialChar LaTeX + layout by \SpecialChar LyX + into the Chunk layout. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Fix code chunks in latex layout +\end_layout + +\end_inset + +if (/ +\backslash + +\backslash +latex latex/) { # Beginning of some latex code +\end_layout + +\begin_layout Plain Layout + + if (($line = ) =~ /^ +\backslash +s*<> +\end_layout + +\begin_layout Plain Layout + + } else { +\end_layout + +\begin_layout Plain Layout + + # print the +\backslash +latex latex line + next line +\end_layout + +\begin_layout Plain Layout + + print OUTPUT "$_$line"; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + next line; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +When we are sure that we are in a code chunk, we must read in the rest of + the code chunk and output a chunk layout for it: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +$savedchunk = " +\backslash + +\backslash +layout Chunk +\backslash +n +\backslash +n$line"; +\end_layout + +\begin_layout Plain Layout + +codeline: while () { +\end_layout + +\begin_layout Plain Layout + + $savedchunk .= $_; +\end_layout + +\begin_layout Plain Layout + + last codeline if /^@ +\backslash +s+/; +\end_layout + +\begin_layout Plain Layout + +}; +\end_layout + +\begin_layout Plain Layout + +print OUTPUT $savedchunk; +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Okay, now we just need to eat the rest of the latex layout. + There should only be a few different types of lines for us to match: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Slurp up to the end of the latex layout +\end_layout + +\end_inset + +slurp: while () { +\end_layout + +\begin_layout Plain Layout + + last slurp if / +\backslash + +\backslash +latex /; +\end_layout + +\begin_layout Plain Layout + + next slurp if / +\backslash + +\backslash +newline/; +\end_layout + +\begin_layout Plain Layout + + next slurp if /^ +\backslash +s*$/; +\end_layout + +\begin_layout Plain Layout + + warn "confused by line: $_"; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Taking care of the +\noun on +noweb +\noun default + +\emph on +[[quoted code]] +\emph default + construct +\end_layout + +\begin_layout Standard + +\noun on +noweb +\noun default + allows the user to use a special code quoting mechanism in documentation + chunks. + Fixing this ``[[quoted-code]]'' +\noun on +noweb +\noun default + syntax means putting the ``[[quoted-code]]'' in a \SpecialChar LaTeX + layout in the \SpecialChar LyX + file. + Otherwise, \SpecialChar LyX + will backslash-quote the brackets, creating ugly output. + The quoted-code is transformed by +\noun on +noweb +\noun default + when it generates the final \SpecialChar LaTeX + code. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Fix [[var]] noweb construct +\end_layout + +\end_inset + +if (/ +\backslash +[ +\backslash +[.+ +\backslash +] +\backslash +]/) { # special code for [[var]] +\end_layout + +\begin_layout Plain Layout + + s/ +\backslash +[ +\backslash +[.+? +\backslash +]{2,}/ +\backslash +n +\backslash + +\backslash +latex latex +\backslash +n$& +\backslash +n +\backslash + +\backslash +latex default +\backslash +n/g; +\end_layout + +\begin_layout Plain Layout + + print OUTPUT; +\end_layout + +\begin_layout Plain Layout + + next line; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Cleaning up intermediate files +\end_layout + +\begin_layout Standard +The cleanup code is very simple: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Clean up +\end_layout + +\end_inset + +system("rm -f $relyx_file*") unless ($post_only || $pre_only); +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +User supplied arguments +\end_layout + +\begin_layout Standard +The +\noun on +noweb2lyx +\noun default + script understands two arguments, input-file and output-file. + It is also set up to be used internally by re\SpecialChar LyX + to pre-process or postprocess + files in the import pipeline. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +&usage() if ($#ARGV < 1); # zero or one argument +\end_layout + +\begin_layout Plain Layout + +if ($ARGV[0] eq "-pre") { +\end_layout + +\begin_layout Plain Layout + + &usage unless ($#ARGV == 2); +\end_layout + +\begin_layout Plain Layout + + $input_file = $ARGV[1]; $output_file = $ARGV[2]; $pre_only = 1; +\end_layout + +\begin_layout Plain Layout + +} elsif ($ARGV[0] eq "-post") { +\end_layout + +\begin_layout Plain Layout + + &usage unless ($#ARGV == 2); +\end_layout + +\begin_layout Plain Layout + + $input_file = $ARGV[1]; $output_file = $ARGV[2]; $post_only = 1; +\end_layout + +\begin_layout Plain Layout + +} else { +\end_layout + +\begin_layout Plain Layout + + &usage unless ($#ARGV == 1); +\end_layout + +\begin_layout Plain Layout + + $input_file = $ARGV[0]; $output_file = $ARGV[1]; +\end_layout + +\begin_layout Plain Layout + + $pre_only = 0; $post_only = 0; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +@ %def input_file output_file pre_only post_only +\end_layout + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +sub usage() { +\end_layout + +\begin_layout Plain Layout + + print "Usage: noweb2lyx [-pre | -post] input-file output-file +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +If -pre is specified, only pre-processes the input-file for reLyX. +\end_layout + +\begin_layout Plain Layout + +Similarly, in the case of -post, post-processes reLyX output. +\end_layout + +\begin_layout Plain Layout + +In case of bugs, Email Kayvan Sylvan . +\backslash +n"; +\end_layout + +\begin_layout Plain Layout + + exit; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + +@ %def usage +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Generating the +\noun on +noweb2lyx +\noun default + script +\end_layout + +\begin_layout Standard +The noweb2lyx script can be tangled from \SpecialChar LyX + if you set +\family typewriter + +\backslash +build_command +\family default + to call a generic script that always extracts a chunk named +\family typewriter +build-script +\family default + and executes it. + Here is an example of such a script: +\end_layout + +\begin_layout LyX-Code +#!/bin/sh +\begin_inset Newline newline +\end_inset + +notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +build-script +\end_layout + +\end_inset + +PREFIX=/usr +\end_layout + +\begin_layout Plain Layout + +notangle -Rnoweb2lyx.in noweb2lyx.nw > noweb2lyx.in +\end_layout + +\begin_layout Plain Layout + +sed -e "s=@PERL@=$PREFIX/bin/perl=" noweb2lyx.in > noweb2lyx +\end_layout + +\begin_layout Plain Layout + +chmod +x noweb2lyx +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\begin_layout Section* +Macros +\end_layout + +\begin_layout Standard + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +nowebchunks +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section* +Identifiers +\end_layout + +\begin_layout Standard + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +nowebindex +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Noweb_Listerrors.lyx b/lib/examples/Modules/Noweb_Listerrors.lyx new file mode 100644 index 0000000000..4399c9941c --- /dev/null +++ b/lib/examples/Modules/Noweb_Listerrors.lyx @@ -0,0 +1,1749 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +% +% ps2pdf stuff +% +\usepackage[ps2pdf,pdftitle={LyX listerrors re-implemented},urlcolor=blue,linktocpage,letterpaper,colorlinks=true]{hyperref} +\@savsf=1% This is to get around a hyperref+noweb interaction problem +\hyphenpenalty 10000 + +% +% This (from the noweb FAQ) relaxes the constraint that chunks are never broken across pages. +% +\def\nwendcode{\endtrivlist \endgroup \vfil\penalty10\vfilneg} +\let\nwdocspar=\smallbreak +\end_preamble +\use_default_options false +\begin_modules +noweb +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "times" "default" +\font_sans "helvet" "default" +\font_typewriter "courier" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +\SpecialChar LyX + listerrors: +\begin_inset Newline newline +\end_inset + +rewritten in Python +\end_layout + +\begin_layout Author +Kayvan A. + Sylvan +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +mailto:kayvan@sylvan.com +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Date +3/15/2002 +\end_layout + +\begin_layout Abstract +The listerrors program used to be compiled as a C program and installed + as +\emph on +BINDIR/listerrors +\emph default + along with \SpecialChar LyX + in order to perform some simple re-formatting of noweb and + GCC error messages. + This document describes and implements the Python version of the same program. +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +The motivation for this program was \SpecialChar LyX + bug 190 +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Visit +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://www.lyx.org/trac/ticket/190 +\end_layout + +\end_inset + + for the details. +\end_layout + +\end_inset + + dealing with the +\begin_inset Quotes eld +\end_inset + +listerrors +\begin_inset Quotes erd +\end_inset + + executable. +\end_layout + +\begin_layout Standard +What is +\begin_inset Quotes eld +\end_inset + +listerrors +\begin_inset Quotes erd +\end_inset + +? Usually, \SpecialChar LyX + has great support for parsing of error messages. + For each error in the log file, \SpecialChar LyX + pops up an error box at that location + in the \SpecialChar LyX + window. + The error scanning routines expect these errors to be in a certain format + (similar to \SpecialChar LaTeX + errors). + When dealing with Literate Programs, you have +\begin_inset Quotes eld +\end_inset + +noweb +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +See +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://www.cs.tufts.edu/~nr/noweb/ +\end_layout + +\end_inset + + for more information about noweb. +\end_layout + +\end_inset + + +\begin_inset Quotes erd +\end_inset + + as well as gcc error messages (and potentially others). + The listerrors program attempts to standardize these error messages to + a format that \SpecialChar LyX + can parse and react to. +\end_layout + +\begin_layout Standard +In a nutshell, the problems with the old implementation of listerrors that + bug 190 refers to were:: +\end_layout + +\begin_layout Enumerate +It was a C program and it was installed in the user path in the same directory + as \SpecialChar LyX +. + Having such a generically named binary in, for example, +\emph on +/usr/bin +\emph default +, was potentially confusing. +\end_layout + +\begin_layout Enumerate +It required that noweb be installed on the compiling machine (the source + was extracted by noweb from +\emph on +SRCDIR/examples/Literate.lyx +\emph default +, compiled and installed by +\begin_inset Quotes eld +\end_inset + +make install +\begin_inset Quotes erd +\end_inset + +). +\end_layout + +\begin_layout Standard +The new version deals with these problems in the following fashion: +\end_layout + +\begin_layout Enumerate +Both the example file (this document) and the program are to be added to + the \SpecialChar LyX + CVS repository. +\end_layout + +\begin_layout Enumerate +The program itself will be installed in +\emph on +SHAREDIR/lyx/scripts +\emph default +, along with other \SpecialChar LyX +-specific helper scripts. +\end_layout + +\begin_layout Standard +In the design and implementation of this new +\begin_inset Quotes eld +\end_inset + +listerrors +\begin_inset Quotes erd +\end_inset + +, the Python +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +See the Python home page ( +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.python.org +\end_layout + +\end_inset + +) for more information. +\end_layout + +\end_inset + + language was chosen since it is fully multi-platform and provides a very + uniform and easy to read syntax. + This re-write also simplifies the code for +\begin_inset Quotes eld +\end_inset + +listerrors +\begin_inset Quotes erd +\end_inset + + greatly. + Python is installed by default on all modern Linux systems and is freely + available for all other platforms. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +#!/usr/bin/python -tt +\end_layout + +\begin_layout Plain Layout + +"""reformat noweb and compiler errors for LyX. +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +Expects to read from stdin and output to stdout. +\end_layout + +\begin_layout Plain Layout + +""" +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +__author__ = "Kayvan A. + Sylvan " +\end_layout + +\begin_layout Plain Layout + +__date__ = "$Date: 2005/07/18 09:42:26 $" +\end_layout + +\begin_layout Plain Layout + +__version__ = "$Revision: 1.5 $" +\end_layout + +\begin_layout Plain Layout + +__credits__ = """Edmar Wienskoski Jr. + +\end_layout + +\begin_layout Plain Layout + + original Literate support for LyX. +\end_layout + +\begin_layout Plain Layout + +Bernard Michael Hurley +\end_layout + +\begin_layout Plain Layout + + modifications to original listerrors.""" +\end_layout + +\begin_layout Plain Layout + +__copyright__ = "Copyright 2002 - Kayvan Sylvan." +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +import sys, string +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +<> +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +if __name__ == "__main__": +\end_layout + +\begin_layout Plain Layout + + main() +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +\SpecialChar LaTeX + style error message +\end_layout + +\begin_layout Standard +The following function mimics the \SpecialChar TeX + error message format. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +def write_error(msg, tool = "noweb", line_number = 1): +\end_layout + +\begin_layout Plain Layout + + """Write out the given message in TeX error style. +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + called like: write_error(msg, tool, line_number).""" +\end_layout + +\begin_layout Plain Layout + + print "! Build Error: ==> %s ==> +\backslash +n" % (tool), +\end_layout + +\begin_layout Plain Layout + + print " ... +\backslash +n +\backslash +nl.%d ... +\backslash +n" % (line_number), +\end_layout + +\begin_layout Plain Layout + + if type(msg) == type("str"): # simple string +\end_layout + +\begin_layout Plain Layout + + print msg +\end_layout + +\begin_layout Plain Layout + + else: # some kind of list (sequence or tuple) +\end_layout + +\begin_layout Plain Layout + + for m in msg: +\end_layout + +\begin_layout Plain Layout + + if m != "": print m, +\end_layout + +\begin_layout Plain Layout + + print +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +@ %def write_error +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Filtering errors +\end_layout + +\begin_layout Standard +The only complication in our filtering code is that some parsers might need + to push back lines that are read in to be read again later. + We solve this problem by implementing a +\begin_inset Quotes eld +\end_inset + +getline +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +pushline +\begin_inset Quotes erd +\end_inset + + set of functions: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +__lines = [] # lines pushed back +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +def getline(file = sys.stdin): +\end_layout + +\begin_layout Plain Layout + + """read a line from internal stack or from file. +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + optional file argument defaults to sys.stdin.""" +\end_layout + +\begin_layout Plain Layout + + global __lines +\end_layout + +\begin_layout Plain Layout + + lines = __lines +\end_layout + +\begin_layout Plain Layout + + if lines: +\end_layout + +\begin_layout Plain Layout + + line = lines.pop() +\end_layout + +\begin_layout Plain Layout + + else: +\end_layout + +\begin_layout Plain Layout + + line = file.readline() +\end_layout + +\begin_layout Plain Layout + + return line +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +@ %def getline +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +And now for the corresponding pushline function: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +def pushline(line): +\end_layout + +\begin_layout Plain Layout + + "push a line onto the pushback stack." +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + global __lines +\end_layout + +\begin_layout Plain Layout + + lines = __lines +\end_layout + +\begin_layout Plain Layout + +lines.append(line) +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +@ %def pushline +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The main() entry point function is extremely simple. + Note that this version of +\begin_inset Quotes eld +\end_inset + +listerrors +\begin_inset Quotes erd +\end_inset + + takes no options and simply filters, attempting simply to match against + the known error message patterns. + The listerrors C program handled a single-character command-line argument + that the current code no longer needs. + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +def main(): +\end_layout + +\begin_layout Plain Layout + + """Entry point for listerrors. + Takes no options. +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + Reads stdin and writes to stdout. + Filter errors""" +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + while 1: +\end_layout + +\begin_layout Plain Layout + + line = getline() +\end_layout + +\begin_layout Plain Layout + + if line == "": break +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + +@ %def main +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +For each line read in, we need to find out if it matches any of our tools + (noweb, gcc, etc.) and act accordingly. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +try_patterns_dispatch = [ noweb_try, gcc_try, xlc_try ] +\end_layout + +\begin_layout Plain Layout + +for predicate in try_patterns_dispatch: +\end_layout + +\begin_layout Plain Layout + + if predicate(line): break +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Different Error Formats +\end_layout + +\begin_layout Standard +The following sections handle the various error message formats that we + recognize in this program. + +\end_layout + +\begin_layout Subsection +noweb errors +\end_layout + +\begin_layout Standard +Noweb errors are output on a single line, so examining just the current + line is enough. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +def noweb_try(line): +\end_layout + +\begin_layout Plain Layout + + """see if line is a noweb error. +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + Returns 1 on success, 0 otherwise. + Outputs on stdout.""" +\end_layout + +\begin_layout Plain Layout + + retval = 0 +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + return retval +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +@ %def noweb_try +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +First, we look for the +\begin_inset Quotes eld +\end_inset + +unescaped < < in documentation chunk +\begin_inset Quotes erd +\end_inset + + message. + This is the only message with an associated line number from noweb. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +if string.find(line, ": unescaped << in documentation chunk") != -1: +\end_layout + +\begin_layout Plain Layout + + line_parts = string.split(line, ':') +\end_layout + +\begin_layout Plain Layout + + num_str = line_parts[1] +\end_layout + +\begin_layout Plain Layout + + num_len = len(num_str) +\end_layout + +\begin_layout Plain Layout + + i = 0 +\end_layout + +\begin_layout Plain Layout + + while i < num_len and (num_str[i] in string.digits): i = i + 1 +\end_layout + +\begin_layout Plain Layout + + if i == num_len: +\end_layout + +\begin_layout Plain Layout + + write_error(":" + line_parts[2], "noweb", int(num_str)) +\end_layout + +\begin_layout Plain Layout + + retval = 1 +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Some noweb messages are simply about undefined chunks. + These can be seen by looking for matching double-angle-brackets. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +if (not retval): +\end_layout + +\begin_layout Plain Layout + + left = string.find(line, "<<") +\end_layout + +\begin_layout Plain Layout + + if (left != -1) and ((left + 2) < len(line)) and +\backslash + +\end_layout + +\begin_layout Plain Layout + + (string.find(line[left+2:], ">>") != -1): +\end_layout + +\begin_layout Plain Layout + + write_error(line, "noweb"); +\end_layout + +\begin_layout Plain Layout + + retval = 1; +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Finally, here is an additional list of explicit strings to check for. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +if (not retval): +\end_layout + +\begin_layout Plain Layout + + msgs_to_try = ("couldn't open file", +\end_layout + +\begin_layout Plain Layout + + "couldn't open temporary file", +\end_layout + +\begin_layout Plain Layout + + "error writing temporary file", +\end_layout + +\begin_layout Plain Layout + + "ill-formed option", +\end_layout + +\begin_layout Plain Layout + + "unknown option", +\end_layout + +\begin_layout Plain Layout + + "Bad format sequence", +\end_layout + +\begin_layout Plain Layout + + "Can't open output file", +\end_layout + +\begin_layout Plain Layout + + "Can't open temporary file", +\end_layout + +\begin_layout Plain Layout + + "Capacity exceeded:", +\end_layout + +\begin_layout Plain Layout + + "Ignoring unknown option -", +\end_layout + +\begin_layout Plain Layout + + "This can't happen:", +\end_layout + +\begin_layout Plain Layout + + "non-numeric line number in") +\end_layout + +\begin_layout Plain Layout + + for msg in msgs_to_try: +\end_layout + +\begin_layout Plain Layout + + if string.find(line, msg) != -1: +\end_layout + +\begin_layout Plain Layout + + write_error(line, "noweb") +\end_layout + +\begin_layout Plain Layout + + retval = 1 +\end_layout + +\begin_layout Plain Layout + + break +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +gcc errors +\end_layout + +\begin_layout Standard +The gcc errors can be multi-line, with the following format: +\end_layout + +\begin_layout LyX-Code +foo.c: In function `main': +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +foo.c:3: `bar' undeclared (first use in this function) +\end_layout + +\begin_layout Plain Layout + +foo.c:3: (Each undeclared identifier is reported only once +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +foo.c:3: for each function it appears in.) +\end_layout + +\begin_layout Plain Layout + +foo.c:3: parse error before `x' +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +In order to parse this, the gcc error handler has to look ahead and return + any and all lines that do not match the expected pattern. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +def gcc_try(line): +\end_layout + +\begin_layout Plain Layout + + """See if line is a gcc error. + Read ahead to handle all the lines. +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + Returns 1 on success, 0 otherwise. + Outputs on stdout.""" +\end_layout + +\begin_layout Plain Layout + + retval = 0 +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + return retval +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +@ %def gcc_try +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The error message starts with a gcc header (as above) without an associated + line number. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +first_space = string.find(line, ' ') +\end_layout + +\begin_layout Plain Layout + +if first_space > 1: # The smallest would be "X: " +\end_layout + +\begin_layout Plain Layout + + if line[first_space - 1] == ':': +\end_layout + +\begin_layout Plain Layout + + header_to_see = line[:first_space - 1] +\end_layout + +\begin_layout Plain Layout + + next_line = getline() +\end_layout + +\begin_layout Plain Layout + + if next_line and next_line[:first_space - 1] == header_to_see: +\end_layout + +\begin_layout Plain Layout + + num_end = first_space +\end_layout + +\begin_layout Plain Layout + + while next_line[num_end] in string.digits: num_end = num_end + 1 +\end_layout + +\begin_layout Plain Layout + + if num_end > first_space: # good! +\end_layout + +\begin_layout Plain Layout + + <> +\end_layout + +\begin_layout Plain Layout + + else: # oops! Not a gcc error. +\end_layout + +\begin_layout Plain Layout + + pushline(next_line) +\end_layout + +\begin_layout Plain Layout + + elif next_line: +\end_layout + +\begin_layout Plain Layout + + pushline(next_line) # return this line to input stream +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +At the point in the code that we know that we are in the middle of an error + message, we do the following: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +num_str = next_line[first_space:num_end] +\end_layout + +\begin_layout Plain Layout + +msgs = [line[first_space:]] +\end_layout + +\begin_layout Plain Layout + +msgs.append(next_line[num_end + 1:]) +\end_layout + +\begin_layout Plain Layout + +header_to_see = next_line[:num_end] +\end_layout + +\begin_layout Plain Layout + +next_line = getline() +\end_layout + +\begin_layout Plain Layout + +while next_line and next_line[:num_end] == header_to_see: +\end_layout + +\begin_layout Plain Layout + + msgs.append(next_line[num_end + 1:]) +\end_layout + +\begin_layout Plain Layout + + next_line = getline() +\end_layout + +\begin_layout Plain Layout + +if next_line: pushline(next_line) +\end_layout + +\begin_layout Plain Layout + +write_error(msgs, "gcc", int(num_str)) +\end_layout + +\begin_layout Plain Layout + +retval = 1 +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +xlc errors +\end_layout + +\begin_layout Standard +A xlc error message is easy to identify. + Every error message starts with a quoted string with no spaces, a comma, + a space, the word +\begin_inset Quotes eld +\end_inset + +line +\begin_inset Quotes erd +\end_inset + +, a space, and some variable text. + The following routine tests if a given buffer line matches this criteria + (this code would probably be simpler if I used the +\begin_inset Quotes eld +\end_inset + +re +\begin_inset Quotes erd +\end_inset + + regexp module, but we don't really need the full regular expression engine + here). + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +def xlc_try(line): +\end_layout + +\begin_layout Plain Layout + + """see if line is an xlc error. +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + Returns 1 on success, 0 otherwise. + Outputs on stdout.""" +\end_layout + +\begin_layout Plain Layout + + retval = 0 +\end_layout + +\begin_layout Plain Layout + + if line[0] == '"': # This is the first character of all xlc errors +\end_layout + +\begin_layout Plain Layout + + next_quote = string.find(line, '"', 1) +\end_layout + +\begin_layout Plain Layout + + first_space = string.find(line, ' ') +\end_layout + +\begin_layout Plain Layout + + if (next_quote != -1) and (first_space > next_quote): # no space inisde + quotes +\end_layout + +\begin_layout Plain Layout + + if line[first_space - 1:first_space + 6] == ", line ": +\end_layout + +\begin_layout Plain Layout + + num_start = num_end = first_space + 6 +\end_layout + +\begin_layout Plain Layout + + while line[num_end] in string.digits: num_end = num_end + 1 +\end_layout + +\begin_layout Plain Layout + + if num_end > num_start: +\end_layout + +\begin_layout Plain Layout + + write_error(line, "xlc", int(line[num_start : num_end])) +\end_layout + +\begin_layout Plain Layout + + retval = 1 +\end_layout + +\begin_layout Plain Layout + + return retval +\end_layout + +\begin_layout Plain Layout + + +\end_layout + +\begin_layout Plain Layout + +@ %def xlc_try +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Extracting the code +\end_layout + +\begin_layout Standard +This project can be tangled from \SpecialChar LyX + if you set your +\begin_inset Quotes eld +\end_inset + +Program +\begin_inset Quotes erd +\end_inset + + convertor to call a generic script that always extracts a chunk named +\family typewriter +build-script +\family default + and executes it. + Here is an example of such a generic script: +\end_layout + +\begin_layout LyX-Code +#!/bin/sh +\end_layout + +\begin_layout LyX-Code +notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh +\end_layout + +\begin_layout Standard +This section defines our build-script, which extracts the code. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +<>= +\end_layout + +\begin_layout Plain Layout + +#!/bin/sh +\end_layout + +\begin_layout Plain Layout + +if [ -z "$NOWEB_SOURCE" ]; then NOWEB_SOURCE=listerrors.nw; fi +\end_layout + +\begin_layout Plain Layout + +if [ -z "$NOWEB_OUTPUT_DIR" ]; then NOWEB_OUTPUT_DIR=.; fi +\end_layout + +\begin_layout Plain Layout + +notangle -Rlisterrors ${NOWEB_SOURCE} > ${NOWEB_OUTPUT_DIR}/listerrors +\end_layout + +\begin_layout Plain Layout + +chmod +x ${NOWEB_OUTPUT_DIR}/listerrors +\end_layout + +\begin_layout Plain Layout + +@ +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Indices +\end_layout + +\begin_layout Standard +This section provides cross-references into the rest of the program. +\end_layout + +\begin_layout Subsection +Macros +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +nowebchunks +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Identifiers +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +nowebindex +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/PDF_Comments.lyx b/lib/examples/Modules/PDF_Comments.lyx new file mode 100644 index 0000000000..858a304cf9 --- /dev/null +++ b/lib/examples/Modules/PDF_Comments.lyx @@ -0,0 +1,2234 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrartcl +\begin_preamble +% to be able to use all color settings of pdfcomment +\usepackage[svgnames,rgb]{xcolor} + +% if pdflatex is used +\usepackage{ifpdf} +\ifpdf + +% set fonts for nicer pdf view +\IfFileExists{lmodern.sty} + {\usepackage{lmodern}}{} + +\fi % end if pdflatex is used +\end_preamble +\options BCOR8mm,pagesize +\use_default_options false +\begin_modules +pdfcomment +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command bibtex +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "Description of the module PDF Comments" +\pdf_author "Uwe Stöhr" +\pdf_subject "PDF comments" +\pdf_keywords "LyX, PDF comments, pdfcomment" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 2 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks true +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" +\papersize a4paper +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 2 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Flex PDF-Comment-Setup +status open + +\begin_layout Plain Layout +color=yellow +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +This sets yellow as default color for new PDF comments, see sec. +\begin_inset space ~ +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:PDF-Comment-setup" + +\end_inset + + for the description. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +Description of the module PDF Comments +\end_layout + +\begin_layout Author +Uwe Stöhr +\end_layout + +\begin_layout Standard +The \SpecialChar LaTeX + package +\series bold +pdfcomment +\series default + provides full access for PDF comments. + You can add normal comments as well as margin comments, underlining etc.. + You can also define a special layout for a comment which you can use several + times in the document. + This document is only a excerpt of the documentation of +\series bold +pdfcomment +\series default +; see its documentation for all information: +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +https://ctan.org/tex-archive/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +The different comment types +\end_layout + +\begin_layout Standard +The different comment types are inserted using the menu +\family sans +Insert\SpecialChar menuseparator +Custom +\begin_inset space ~ +\end_inset + +Insets +\family default +. + You can select one of the following: +\end_layout + +\begin_layout Subsection +PDF-Annotation +\end_layout + +\begin_layout Standard +This is the standard PDF comment. + Here is an example: +\begin_inset Flex PDF-Annotation +status open + +\begin_layout Plain Layout +This is a simple PDF-Annotation. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Like for all PDF comment types you can add a lot of things to the option + of the inset. + To insert the options inset, set the cursor into the comment inset and + use the menu +\family sans +Insert\SpecialChar menuseparator +PDF Comment Options +\family default +. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + All braces and brackets in comment options must be inserted as \SpecialChar TeX + code! +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Standard +Here is an example PDF-Annotation where the author is set to +\begin_inset Quotes eld +\end_inset + +Daisy Duck +\begin_inset Quotes erd +\end_inset + +: +\begin_inset Flex PDF-Annotation +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout +author= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +Daisy Duck +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +,color= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +0.234 0.867 0.211 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +,voffset=8pt,opacity=0.5 +\end_layout + +\end_inset + +This is an annotation with a complex option. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To avoid to write the same options like the author again and again, you + can define a so-called +\begin_inset Quotes eld +\end_inset + +avatar +\begin_inset Quotes erd +\end_inset + + for every person and/or comment layout. + See +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Avatars" + +\end_inset + + for further information. +\end_layout + +\begin_layout Standard +For a full list of possible options, please look at the +\series bold +pdfcomment +\series default + documentation. +\end_layout + +\begin_layout Subsection +PDF-Circle +\end_layout + +\begin_layout Standard +This will typeset a comment in form of a circle or ellipse. + Here is an example without any options: +\begin_inset Flex PDF-Circle +status open + +\begin_layout Plain Layout +a simple circle comment +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +At the right side you see a large, elliptical comment as example of a PDF-Circle + with options. + +\begin_inset Flex PDF-Circle +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout +id=1,color=blue,height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=8cm,opacity=1.0,just +ification=right,icolor= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +yellow +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +,linewidth=12pt,borderstyle=dashed,dashstyle= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +10 5 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + +a circle comment in form of a large ellipse +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Subsection +PDF-Freetext +\end_layout + +\begin_layout Standard +This will typeset a comment in form of a freely positioned box. + By using the option +\series bold +type=callout +\series default + the box will have an additional so called callout line, to bind the box + to a certain element of the page. + With the option +\series bold +type=typewriter +\series default + you can write a comment everywhere on the page with a virtual ’typewriter’. + These PDF-Freetext annotations do have no frame and a transparent background + for ’overwriting’ arbitrary parts of the page. + Here is an example in form of a yellow rectangle: +\begin_inset Flex PDF-Freetext +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout +height=3cm,type=freetext,subject={freetext},width=4.5cm,voffset=-3.2cm,hoffset=-3.2 +cm,opacity=0.9,justification=right +\end_layout + +\end_inset + +This is also a comment, but it is a PDF-Freetext annotation. +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Subsection +PDF-Line +\end_layout + +\begin_layout Standard +This will typeset a comment in form of a line, polyline or polygon. + Here is an example without any options: +\begin_inset Flex PDF-Line +status open + +\begin_layout Plain Layout +a simple PDF-Line comment +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Standard +As you can see a PDF-Line comment without options is useless. +\end_layout + +\begin_layout Standard +The green arrow at the left side of this page is an example for a PDF-Line + comment with options. + +\begin_inset Flex PDF-Line +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout +type=line,opacity=1,line= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +50 480 50 180 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +,color=green,icolor=blue,caption=top,linebegin= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +/ROpenArrow +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +,lineend= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +/OpenArrow +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +,linewidth=2bp,captionhoffset=-5pt,captionvoffset=15pt +\end_layout + +\end_inset + +a PDF-Line comment with options +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +PDF-Margin +\end_layout + +\begin_layout Standard +This will typeset an annotation into the margin. + Right besides this text is an example without options: +\begin_inset Flex PDF-Margin +status open + +\begin_layout Plain Layout +a simple PDF-Margin comment +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The red margin note is an example for a PDF-Margin with options. + +\begin_inset Flex PDF-Margin +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout +icon=Note,color=red,open=true,hspace=100pt +\end_layout + +\end_inset + +a PDF-Margin comment with options +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +PDF-Markup +\end_layout + +\begin_layout Standard +This will typeset so called PDF text markup annotations over some text or + math. + Here is a markup without options: +\begin_inset Flex PDF-Markup +status open + +\begin_layout Plain Layout +simple PDF-Markup +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Possible types for the option +\series bold +markup +\series default + are: +\end_layout + +\begin_layout Description +Highlight The markup text will be highlighted: +\begin_inset Flex PDF-Markup +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +\begin_inset Note Note +status open + +\begin_layout Plain Layout +id=1, +\end_layout + +\end_inset + +markup=Highlight +\end_layout + +\end_inset + +Highlight PDF-Markup +\begin_inset Argument post:1 +status open + +\begin_layout Plain Layout +a comment +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +see the next section for the description of the option +\series bold +id=1 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Underline The markup text will be underlined: +\begin_inset Flex PDF-Markup +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +markup=Underline +\end_layout + +\end_inset + +Underlining PDF-Markup +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Squiggly The markup text will be underlined with a wave: +\begin_inset Flex PDF-Markup +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +markup=Squiggly +\end_layout + +\end_inset + +Underwave PDF-Markup +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +StrikeOut The markup text will be struck-out: +\begin_inset Flex PDF-Markup +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +markup=StrikeOut +\end_layout + +\end_inset + +Striked-out PDF-Markup +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +mathpopup Formula parts will be highlighted. + +\series bold + +\series default + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The PDF-Markup inset cannot be used for this option! +\end_layout + +\end_inset + + Instead the command +\series bold + +\backslash +pdfmarkupcomment +\series default + woll be used in a formula with this scheme: +\begin_inset Newline newline +\end_inset + +Command: +\begin_inset Newline newline +\end_inset + + +\series bold + +\backslash +pdfmarkupcomment[style=mathpopup] +\backslash +{formula part} +\begin_inset Formula $\to$ +\end_inset + + +\backslash +{ +\backslash +text +\begin_inset space \textvisiblespace{} +\end_inset + + +\begin_inset Newline newline +\end_inset + +optional comment} +\begin_inset Newline newline +\end_inset + + +\series default +Result: +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +\pdfmarkupcomment[style=mathpopup]{\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)}{\text{little Gauss}} +\] + +\end_inset + + +\end_layout + +\begin_layout Standard +The text for the comment is inserted with the inset option +\family sans +Comment +\family default +. +\end_layout + +\begin_layout Standard +PDF-Markup has some limitations: +\end_layout + +\begin_layout Itemize +the markup text must not be longer than one paragraph +\end_layout + +\begin_layout Itemize +the markup annotation must not be longer than one page, otherwise the recognitio +n of the page break will fail +\end_layout + +\begin_layout Itemize +when using Xe\SpecialChar TeX + you have to assure that the page dimensions are internally + output, e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +with the document class option +\series bold +pagesize +\series default + for the KOMA-Script classes, or the option +\series bold +pagesize +\series default + for the \SpecialChar LaTeX +-package +\series bold +typearea +\series default +. +\end_layout + +\begin_layout Subsection +PDF-Reply +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Attention: +\series default + Due to technical limitations PDF-Reply only works when using pdflatex. + On some \SpecialChar LaTeX + installations it won't even work in general. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +With a PDF-Reply you can compose replies to PDF comments. + The option +\series bold +replyto +\series default + provides a clear reference to the comment the reply refers to. +\end_layout + +\begin_layout Standard +As example see the reply to the Highlight PDF-Markup from the previous section. + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\begin_inset Flex PDF-Reply +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +id=2,replyto=1,date=D:20101211161247+01'00' +\end_layout + +\end_inset + +This is a reply. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + It appears in that PDF-Markup comment. + To be able to reference the PDF-Markup the option +\series bold +id=1 +\series default + was added to its options. + The PDF-Reply got the option +\series bold +replyto=1 +\series default +. +\end_layout + +\begin_layout Standard +You can also reply to replies by adding an +\series bold +id +\series default + option to the reply that should be replied to. + As example see the reply to the reply to the PDF-Markup. + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\begin_inset Flex PDF-Reply +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +replyto=2,date=D:20101212095321+01'00' +\end_layout + +\end_inset + +Of course, you can reply to a reply. +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +PDF-Reply has limitations: +\end_layout + +\begin_layout Itemize +It can not support page breaks. +\end_layout + +\begin_layout Itemize +The replies will only appear in the PDF annotations on the second page. + (Replies to comments without page break work smoothly.) +\end_layout + +\begin_layout Subsection +PDF-Sideline +\end_layout + +\begin_layout Standard +This will typeset a comment in form of identical markers on every side of + the page. + The yellow arrows besides this text are an example of a PDF-Sideline without + any options: +\begin_inset Flex PDF-Sideline +status open + +\begin_layout Plain Layout +a simple PDF-Sideline +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +As you can see a PDF-Sideline comment without options is quite useless. + PDF-Sideline is useful if you want to highlight complete parts of a page. + The inset options define the layout of the marker while the normal content + of the inset is the text surrounded by the markers. + The content of the inset option +\family sans +Comment +\family default + will be printed along both markers. + Here is an example: +\end_layout + +\begin_layout Standard +\begin_inset Flex PDF-Sideline +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout +opacity=0.33,color=magenta,icolor=cyan,caption=inline,linebegin= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +/Butt +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +,lineend= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +/Square +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +,linewidth=3bp,linesep=0.7cm +\end_layout + +\end_inset + +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. +\end_layout + +\begin_layout Plain Layout +At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Comment text +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +PDF-Sideline has some limitations: +\end_layout + +\begin_layout Itemize +the comment should not be longer than one page, otherwise the recognition + of the page could fail +\end_layout + +\begin_layout Itemize +when using Xe\SpecialChar TeX + you have to assure that the page dimensions are internally + output, e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +with the document class option +\series bold +pagesize +\series default + for the KOMA-Script classes, or the option +\series bold +pagesize +\series default + for the \SpecialChar LaTeX +-package +\series bold +typearea +\series default +. +\end_layout + +\begin_layout Subsection +PDF-Square +\end_layout + +\begin_layout Standard +This will typeset a rectangular box. + Here is an example without any options: +\begin_inset Flex PDF-Square +status open + +\begin_layout Plain Layout +a simple PDF-Square comment +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Below this text you see a rectangle comment with a curvy outline as example + of a PDF-Square with options. +\end_layout + +\begin_layout Standard +\begin_inset Flex PDF-Square +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout +height=2cm,width=4.8cm,voffset=-2cm,hoffset=1cm,opacity=1.0,justification=right,ic +olor=CornflowerBlue,bse=cloudy,bsei=2.5,linewidth=8pt +\end_layout + +\end_inset + +A fancy PDF-Square comment +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\end_layout + +\begin_layout Subsection +PDF-Tooltip +\end_layout + +\begin_layout Standard +With this you can annotate any object with a tooltip. +\begin_inset Foot +status open + +\begin_layout Plain Layout +All objects that can be set into a \SpecialChar TeX +-box to measure its size. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The PDF-Tooltip inset has a mandatory argument for the tooltip. + The object that should be annotated is set into the PDF-Tooltip inset, + the tooltip is written into the mandatory argument. + Here is as example of a word with a tooltip: +\begin_inset Flex PDF-Tooltip +status open + +\begin_layout Plain Layout +\begin_inset Argument post:1 +status open + +\begin_layout Plain Layout +This is a tooltip! +\end_layout + +\end_inset + + +\color red +word +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Since a tooltip can be used for almost any object, one can also use it for + chemical notations in math: +\begin_inset Flex PDF-Tooltip +status open + +\begin_layout Plain Layout +\begin_inset Argument post:1 +status open + +\begin_layout Plain Layout +Sulfuric acid +\end_layout + +\end_inset + + +\begin_inset Formula $\ce{H2SO4}$ +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The PDF-Tooltip inset has also an option that is used to correct the size + of the tooltip for math (if necessary) or to disable an annotation. + Here is an example with a mathstyle option: +\end_layout + +\begin_layout Standard +\begin_inset Flex PDF-Tooltip +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +mathstyle= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +displaystyle +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Argument post:1 +status open + +\begin_layout Plain Layout +little Gauß +\end_layout + +\end_inset + + +\begin_inset Formula $\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)$ +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Comment definitions +\end_layout + +\begin_layout Standard +The package +\series bold +pdfcomment +\series default + provides the following environments to define or change PDF comments: +\end_layout + +\begin_layout Subsection +PDF-Comment setup +\begin_inset CommandInset label +LatexCommand label +name "subsec:PDF-Comment-setup" + +\end_inset + + +\end_layout + +\begin_layout Standard +With this custom inset you can reset the global (document-wide) options + at any time. + For example the default color for new PDF comments is blue. + To get Adobe Reader's yellow colored notes for all comments in your document, + add the PDF comment setup inset to the beginning of your document and insert + there the option +\series bold +color=yellow +\series default +. + This was also done in this document. +\end_layout + +\begin_layout Standard +By using its optional option +\series bold +local +\series default + you can keep the reset local within a group enclosed by \SpecialChar TeX +-braces. + For example you want to reset the color only for two consecutive comments, + then enclose the PDF comment setup inset and the two comment insets in + \SpecialChar TeX +-braces. + Here is an example: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + + +\begin_inset Flex PDF-Comment-Setup +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +local +\end_layout + +\end_inset + +color=Orange +\end_layout + +\end_inset + + +\begin_inset Flex PDF-Markup +status collapsed + +\begin_layout Plain Layout +PDF-Markup in orange +\end_layout + +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset Flex PDF-Annotation +status collapsed + +\begin_layout Plain Layout +PDF-Annotation in orange +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\begin_inset Flex PDF-Margin +status collapsed + +\begin_layout Plain Layout +default PDF-Margin comment +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +PDF Comment style +\end_layout + +\begin_layout Standard +This environment allows you to define a style for a PDF comment that can + be used by several comments. + Assuming you write a Math tutorial and want to add popup explanations in + the PDF for several expressions, then insert a PDF Comment style environment + before your first formula. + Name it for example +\series bold +MathPopup +\series default +, set the color to white with +\series bold +color=white +\series default + and highlight the whole formula with +\series bold +markup=Highlight +\series default +. +\end_layout + +\begin_layout Define PDF-Comment Style +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +MathPopup +\end_layout + +\end_inset + +color=white,markup=Highlight +\end_layout + +\begin_layout Standard +In the comments use the option +\series bold +style=MathPopup +\series default + to use your style. + Here is an example: +\end_layout + +\begin_layout Standard +\begin_inset Flex PDF-Markup +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\strikeout off +\uuline off +\uwave off +\noun off +\color none +style= +\family default +\series default +\shape default +\size default +\emph default +\bar default +\strikeout default +\uuline default +\uwave default +\noun default +\color inherit +MathPopup +\end_layout + +\end_inset + + +\begin_inset Formula $P(E)$ +\end_inset + + +\begin_inset Argument post:1 +status open + +\begin_layout Plain Layout + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\strikeout off +\uuline off +\uwave off +\noun off +\color none +Probability of event E +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +\begin_inset CommandInset label +LatexCommand label +name "sec:Avatars" + +\end_inset + +Avatars +\end_layout + +\begin_layout Standard +If you are for example reviewing a document, you need to add your name to + every of your comments. + In case you use a special layout of your annotations, you would have to + do a lot of copy-paste work. + But this can be avoided if you define for every comment author a special + avatar. +\end_layout + +\begin_layout Standard +Assuming your name is +\begin_inset Quotes eld +\end_inset + +Oleg Testman +\begin_inset Quotes erd +\end_inset + + you can define an avatar for your name using the environment +\family sans +Define +\begin_inset space ~ +\end_inset + +Avatar +\family default +. + Its mandatory option is the name. + In your case, name it +\series bold +Oleg +\series default +. + Add behind the name of the avatar your name as author by writing +\series bold +author={Oleg Testman} +\series default +. +\begin_inset Newline newline +\end_inset + +You might use a special icon to see at the first look which comments were + made by you. + You therefore add behind the author-statement, separated by a comma, +\begin_inset Quotes eld +\end_inset + + +\series bold +icon=Check +\series default + +\begin_inset Quotes erd +\end_inset + + to get a checkmark. +\begin_inset Foot +status open + +\begin_layout Plain Layout +For all possible icons, see the +\series bold +pdfcomment +\series default + manual. +\end_layout + +\end_inset + + the checkmark should have a green color so that you add +\series bold +color=lime +\series default + to the avatar definition. + Your whole definition reads now +\begin_inset Newline newline +\end_inset + + +\series bold +author={Oleg Testman},icon=Check,color=lime +\end_layout + +\begin_layout Define Avatar +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Oleg +\end_layout + +\end_inset + +author={Oleg Testman},icon=Check,color=lime +\end_layout + +\begin_layout Standard +To use now your avatar for PDF comments you have two choices: +\end_layout + +\begin_layout Enumerate +You set up that all PDF comments in the document use your avatar. + This is done by inserting the custom inset +\family sans +PDF +\begin_inset space ~ +\end_inset + +Comment-Setup +\family default + before the first PDF comment in your document. + Insert to this inset +\series bold +avatar=Oleg +\series default +. +\end_layout + +\begin_layout Enumerate +You add +\series bold +avatar=Oleg +\series default + to the options of a particular PDF comment. + The avatar will then only be used for this comment. +\end_layout + +\begin_layout Standard +Here is an example for the +\family sans +PDF +\begin_inset space ~ +\end_inset + +Comment-Setup +\family default + method: +\begin_inset Flex PDF-Comment-Setup +status open + +\begin_layout Plain Layout +avatar=Oleg +\end_layout + +\end_inset + + +\begin_inset Flex PDF-Annotation +status open + +\begin_layout Plain Layout +Oleg said: Wow, that's nice! +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + +and here is another comment: +\begin_inset Flex PDF-Annotation +status open + +\begin_layout Plain Layout +Oleg also said: I hate to repeat myself. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Define Avatar +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +Dolittle +\end_layout + +\end_inset + +color=NavyBlue,opacity=0.5,open=false,icon=Circle,author={Dr. + Dolittle} +\end_layout + +\begin_layout Standard +Here is an example where another avatar +\begin_inset Quotes eld +\end_inset + +Dolittle +\begin_inset Quotes erd +\end_inset + + is only used for this comment: +\begin_inset Flex PDF-Margin +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +avatar=Dolittle +\end_layout + +\end_inset + +I am Dr. + Dolittle! Respect my authority! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +List of PDF comments +\end_layout + +\begin_layout Standard +You can insert a list with all PDF comments using the environment +\family sans +List of PDF comments +\family default +. + By specifying options for it you can determine what parts of the comments + should appear in the list. + Here is the list for this document where only the comments of a defined + author are printed: +\end_layout + +\begin_layout List of PDF Comments +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +liststyle= +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +AuthorComment +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + +, heading = +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + +List of PDF comments +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You can also define your own style using the environment +\begin_inset Newline newline +\end_inset + + +\family sans +Define +\begin_inset space ~ +\end_inset + +PDF +\begin_inset space ~ +\end_inset + +Comment +\begin_inset space ~ +\end_inset + +List +\begin_inset space ~ +\end_inset + +Style +\begin_inset Newline newline +\end_inset + + +\family default +if you know enough about the tricky \SpecialChar LaTeX + internals. + With the environment +\begin_inset Newline newline +\end_inset + + +\family sans +Set +\begin_inset space ~ +\end_inset + +PDF +\begin_inset space ~ +\end_inset + +Comment +\begin_inset space ~ +\end_inset + +List +\begin_inset space ~ +\end_inset + +Style +\begin_inset Newline newline +\end_inset + + +\family default +you can set a list style. +\end_layout + +\begin_layout Define PDF-Comment List Style +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +MyStyle +\end_layout + +\end_inset + + +\backslash +makeatletter +\backslash +pc@lopt@author +\backslash + - +\backslash +pc@lopt@subject +\backslash + ( +\backslash +pc@lopt@deadline) +\backslash +makeatother +\end_layout + +\begin_layout Set PDF-Comment List Style +AuthorCommentDeadline +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Only one list of comments can be printed in the PDF. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +General Hints +\end_layout + +\begin_layout Itemize +To be able to use all kinds of colors and color definitions you must load + the \SpecialChar LaTeX + package +\series bold +xcolor +\series default + in the document preamble this way: +\begin_inset Newline newline +\end_inset + + +\series bold + +\backslash +usepackage[svgnames,rgb]{xcolor} +\end_layout + +\begin_layout Itemize +If you have two consecutive PDF +\begin_inset space ~ +\end_inset + +comment insets, the will appear in the PDF one over each other: +\begin_inset Flex PDF-Comment-Setup +status open + +\begin_layout Plain Layout +avatar=Oleg +\end_layout + +\end_inset + + +\begin_inset Flex PDF-Annotation +status open + +\begin_layout Plain Layout +Oleg said: Wow, that's nice! +\end_layout + +\end_inset + + +\begin_inset Flex PDF-Annotation +status open + +\begin_layout Plain Layout +Oleg also said: I hate to repeat myself. +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + +To avoid that separate them with whitespace like protected space: +\begin_inset Flex PDF-Annotation +status open + +\begin_layout Plain Layout +Oleg said: Wow, that's nice! +\end_layout + +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset space ~ +\end_inset + + +\begin_inset Flex PDF-Annotation +status open + +\begin_layout Plain Layout +Oleg also said: I hate to repeat myself. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +You cannot use non-Latin characters in your comment or in the author name. + The reason is that PDFs use a special character encoding that is not compatible + with \SpecialChar LaTeX +. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/PDF_Form.lyx b/lib/examples/Modules/PDF_Form.lyx new file mode 100644 index 0000000000..5f83c33cd8 --- /dev/null +++ b/lib/examples/Modules/PDF_Form.lyx @@ -0,0 +1,3374 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrartcl +\begin_preamble +% used to check for needed LaTeX packages +\usepackage{ifthen} + +% check for package insdljs +% used for JavScript code +\newboolean{insdljs} +\IfFileExists{insdljs.sty} + {\usepackage[pdftex]{insdljs} + \setboolean{insdljs}{true} + \pdfcatalog{/AA \the\pdflastobj\space 0 R}} + {\setboolean{insdljs}{false}} + +\ifinsdljs % only execute if package insdljs is installed + + \begin{insDLJS}[exaaae]{exaaae}{JavaScript} + + function validateTime(){ + this.delay = true; + if((event.value == "u") || (event.value == "unlimited")) { + this.getField("from").display = display.hidden; + this.getField("until").display = display.hidden; + } else { + this.getField("from").display = display.visible; + this.getField("until").display = display.visible; + this.getField("from").setFocus(); + } + this.delay = false; + } + + function checkNumber() { + event.rc = true; + if (!Number(event.value)) + { + app.alert("Value must be a number!"); + event.value = ""; + } else { + event.target.textColor = color.green; + } + +} + + \end{insDLJS} + +\fi % end \ifinsdljs + +% if pdflatex is used +\usepackage{ifpdf} +\ifpdf + +% set fonts for nicer pdf view +\IfFileExists{lmodern.sty} + {\usepackage{lmodern}}{} + +\fi % end if pdflatex is used +\end_preamble +\options BCOR8mm,pagesize +\use_default_options false +\begin_modules +pdfform +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command bibtex +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref true +\pdf_title "Description of the module pdfcomment" +\pdf_author "Uwe Stöhr" +\pdf_subject "PDF form" +\pdf_keywords "LyX, PDF forms, hyperref" +\pdf_bookmarks true +\pdf_bookmarksnumbered true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 2 +\pdf_breaklinks false +\pdf_pdfborder false +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle false +\pdf_quoted_options "pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, urlbordercolor={1 0 0}" +\papersize a4paper +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 2 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Begin PDF Form +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +action=mailto:forms@lyx.test?subject=The submitted PDF form, method=post +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +Description of the module PDF Form +\end_layout + +\begin_layout Author +Uwe Stöhr +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +To export all parts of this document to PDF the \SpecialChar LaTeX +-package +\series bold +insdljs +\series default + must be installed. + If it is not installed you can export the document anyway but the example + in the section about dynamic form elements will not appear in the output. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +By loading the module PDF +\begin_inset space ~ +\end_inset + +Form the whole document or a part of it can be made a PDF form. + You can add all possible form elements like text fields buttons etc. + This document describes how this is done. +\end_layout + +\begin_layout Section +Preparation +\begin_inset CommandInset label +LatexCommand label +name "sec:Preparation" + +\end_inset + + +\end_layout + +\begin_layout Standard +At first load the module PDF +\begin_inset space ~ +\end_inset + +Form in the document settings of your file. + To make the whole document a form, insert the environment +\family sans + Begin +\begin_inset space ~ +\end_inset + +PDF +\begin_inset space ~ +\end_inset + +Form +\family default + from \SpecialChar LyX +'s dropdown menu at the beginning of the document. + If only a part of the document should be a form, add +\family sans +Begin +\begin_inset space ~ +\end_inset + +PDF +\begin_inset space ~ +\end_inset + +Form +\family default + at the position where the form should start. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + It is only possible to have one form in a PDF file! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +If the form data should be submitted to a server or the like, then you must + specify the URL as parameter of the +\family sans +Begin +\begin_inset space ~ +\end_inset + +PDF +\begin_inset space ~ +\end_inset + +Form +\family default + environment. + This is done by using the menu +\family sans +Insert\SpecialChar menuseparator +PDF +\begin_inset space ~ +\end_inset + +Form +\begin_inset space ~ +\end_inset + +Parameters +\family default +. + For example in this document the following was inserted to the parameter + inset: +\end_layout + +\begin_layout Standard + +\series bold +action=mailto:forms@lyx.test?subject=The submitted PDF form, +\begin_inset Newline newline +\end_inset + +method=post +\end_layout + +\begin_layout Standard +This sends the form data as email to +\emph on +forms@lyx.test +\emph default + when the user presses the submit button. + The email subject will be +\begin_inset Quotes eld +\end_inset + +The submitted PDF form +\begin_inset Quotes erd +\end_inset + + and the submit method is +\series bold +post +\series default +. + (The other possible method would be +\series bold +get +\series default +.) For more about submitting see sec. +\begin_inset space \thinspace{} +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "subsec:Submit-button" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\begin_layout Section +Form elements +\end_layout + +\begin_layout Standard +There are 6 +\begin_inset space ~ +\end_inset + +possible elements in a PDF form: +\end_layout + +\begin_layout Subsection +Text field +\end_layout + +\begin_layout Standard +A text field is added by inserting the custom inset +\family sans +TextField +\family default + using the menu +\family sans +Insert\SpecialChar menuseparator +Custom +\begin_inset space ~ +\end_inset + +Insets +\family default +. + Write inside the inset the label for the text field that will be printed + in the PDF output before the field. + Here is an example: +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex TextField +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=customer +\end_layout + +\end_inset + +Enter your name here: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You must also specify a name for text fields. + To do this set the cursor into its +\family sans +Params +\family default + inset and insert the parameter +\series bold +name=customer +\series default + (where +\series bold +customer +\series default + is the field name). +\end_layout + +\begin_layout Standard +Using the same name for several text fields results in an automatic duplication + of the inserted text. + This is for example useful if the user should input a date that should + appear at different places in the form. +\begin_inset Newline newline +\end_inset + +Here are 2 +\begin_inset space ~ +\end_inset + +fields as example: Fill one and see that the other one will be filled automatica +lly when you click outside of the field: +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex TextField +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=identic +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex TextField +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=identic +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + Special characters should be avoided in element names. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +All form fields can be customized by adding parameters. +\end_layout + +\begin_layout Standard +Here is a customized multiline text field with a width of 60 +\begin_inset space \thinspace{} +\end_inset + +% of the text width, 3 +\begin_inset space \thinspace{} +\end_inset + +cm height and a proposed content: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex TextField +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=customer2, multiline, width=0.6 +\backslash +textwidth, height=3cm, value={proposed text} +\end_layout + +\end_inset + +Enter your name here: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + It is highly recommended to use a uniform layout of all fields in a form. + See sec. +\begin_inset space \thinspace{} +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Form-element-customization" + +\end_inset + + how this is done. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Check box +\end_layout + +\begin_layout Standard +A check box is added by inserting the custom inset +\family sans +CheckBox +\family default +. + Write inside the inset the label for the box. + Here is an example: +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex CheckBox +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=age +\end_layout + +\end_inset + +Are you older than 18 years? +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You must specify also for check boxes a name. + Insert e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +the parameter +\series bold +name=age +\series default + (where +\series bold +age +\series default + is the name) into the +\family sans +Params +\family default + inset. +\end_layout + +\begin_layout Subsection +Choice menu +\end_layout + +\begin_layout Standard +A choice menu is added by inserting the custom inset +\family sans +ChoiceMenu +\family default +. + A label for the inset is added by using the menu +\family sans +Insert\SpecialChar menuseparator +Label +\family default +. + The different choices are inserted to the inset as comma-separated list. + There are 3 +\begin_inset space ~ +\end_inset + +choice menu types: +\end_layout + +\begin_layout Description +Radio Only one choice can be selected +\end_layout + +\begin_layout Description +Combo The choices are listed in a combo box (dropdown list) but the user + is allowed to input something that is not in the predefined list. +\end_layout + +\begin_layout Description +Popdown All choices are listed below each other. + If the menu is not high enough a scroll bar is automatically added. +\end_layout + +\begin_layout Standard +To determine the choice menu type one uses the parameter +\series bold +radio +\series default +, +\series bold +combo +\series default + or +\series bold +popdown +\series default +. +\end_layout + +\begin_layout Standard +Here is an example for the radio type: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex ChoiceMenu +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +radio, name=radio +\end_layout + +\end_inset + +male=m, female=f +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Sex: +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Here is an example for the combo type: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex ChoiceMenu +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +combo, name=combo +\end_layout + +\end_inset + +Albania=Al, Armenia=Ar, Azerbaidschan=Az +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Country: +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Here is an example for the popdown type: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex ChoiceMenu +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +popdown, name=country +\end_layout + +\end_inset + +Albania=Al, Armenia=Ar, Azerbaidschan=Az +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Country: +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You must also specify a name for choice menus. + Insert for example the parameter +\series bold +name=country +\series default + (where +\series bold +country +\series default + is the name) into the +\family sans +Params +\family default + inset. +\end_layout + +\begin_layout Standard +It is recommended to add a short name for every choice to be able to access + them and to know which one was chosen by the user. + This is done by adding +\series bold +=name +\series default + behind each choice (where +\series bold +name +\series default + is the choice name). + For example the radio type example contains this choice list: +\series bold + male=m, female=f +\series default +. + If the user chose +\begin_inset Quotes eld +\end_inset + +male +\begin_inset Quotes erd +\end_inset + + you know that he chose the choice +\begin_inset Quotes eld +\end_inset + +m +\begin_inset Quotes erd +\end_inset + +. + With the name you can also preset/propose e.g. +\begin_inset space \space{} +\end_inset + +the choice +\begin_inset Quotes eld +\end_inset + +male +\begin_inset Quotes erd +\end_inset + + by adding the parameter +\series bold +default=m +\series default +. + Here is an example: +\end_layout + +\begin_layout Standard +\begin_inset Flex ChoiceMenu +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +radio, name=sex, default=m +\end_layout + +\end_inset + +male=m, female=f +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Sex: +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Push button +\end_layout + +\begin_layout Standard +A push button is added by inserting the custom inset +\family sans +PushButton +\family default +. + Write inside the inset the label for the button. + Here is an example: +\end_layout + +\begin_layout Standard +\begin_inset Flex PushButton +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + +Don't click on this button or your fridge will be destroyed!!! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The action that is triggered by pressing the button is specified by JavaScript + code. + To do this, add the parameter +\series bold +onclick={} +\series default + and insert the JavaScript code between the braces. + For info about JavaScript, see its documentation, +\begin_inset CommandInset citation +LatexCommand cite +key "JavaScript" +literal "true" + +\end_inset + +. + In the following example this JavaScript code was used: +\begin_inset Newline newline +\end_inset + + +\series bold +app.alert( +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +" +\end_layout + +\end_inset + +What the hell? Now you destroyed your fridge. + +\begin_inset Quotes eld +\end_inset + +Congratulations. +\begin_inset Quotes erd +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +" +\end_layout + +\end_inset + +) +\end_layout + +\begin_layout Standard +\begin_inset Flex PushButton +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +onclick={app.alert( +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +" +\end_layout + +\end_inset + +What the hell? Now you destroyed your fridge. + +\begin_inset Quotes eld +\end_inset + +Congratulations. +\begin_inset Quotes erd +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +" +\end_layout + +\end_inset + +)} +\end_layout + +\end_inset + +Don't click on this button or your fridge will be destroyed!!! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The outer quotes are part of the JavaScript code and must therefore be + inserted as \SpecialChar TeX + code! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +A common usage for push buttons is to open a weblink. + Such a button is created by inserting a hyperlink as button text. + Here is an example: +\end_layout + +\begin_layout Standard +\begin_inset Flex PushButton +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset CommandInset href +LatexCommand href +name "Information how to fill out this form" +target "https://wiki.lyx.org" +literal "false" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To get rid of the predefined frame for weblinks add this to the additional + options in the document settings under +\family sans +PDF +\begin_inset space ~ +\end_inset + +properties +\family default +: +\end_layout + +\begin_layout Standard + +\series bold +urlbordercolor={1 0 0} +\end_layout + +\begin_layout Standard +if your push button border color is red (the default), otherwise use the + same color definition as for your push button border color. +\end_layout + +\begin_layout Subsection +Submit button +\begin_inset CommandInset label +LatexCommand label +name "subsec:Submit-button" + +\end_inset + + +\end_layout + +\begin_layout Standard +A submit button is used to submit the form data to a server. + It is added by inserting the custom inset +\family sans +SubmitButton +\family default +. + The label for the button is written into the inset. + Here is an example: +\end_layout + +\begin_layout Standard +\begin_inset Flex SubmitButton +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=submit1 +\end_layout + +\end_inset + +Send your data via email +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The submit button creates a forms data format (FDF) file (file extension + *.fdf) which is then submitted. + The FDF file contains only the form data. + They can later only be applied to a PDF form if all elements in the form + have a name. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + You can only use a submit button if you specified the submit method and + a target in the inset +\family sans +PDF +\begin_inset space ~ +\end_inset + +Form +\begin_inset space ~ +\end_inset + +Parameters +\family default +! See sec. +\begin_inset space \thinspace{} +\end_inset + + +\begin_inset CommandInset ref +LatexCommand ref +reference "sec:Preparation" + +\end_inset + + for the description. + If there are no specifications you will get \SpecialChar LaTeX + errors. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Reset button +\end_layout + +\begin_layout Standard +A reset button is used to reset all form elements to the initial state. + It is added by inserting the custom inset +\family sans +ResetButton +\family default +. + The label for the button is written into the inset. + Here is an example: +\end_layout + +\begin_layout Standard +\begin_inset Flex ResetButton +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=reset1 +\end_layout + +\end_inset + +Reset the form +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Form element customization +\begin_inset CommandInset label +LatexCommand label +name "sec:Form-element-customization" + +\end_inset + + +\end_layout + +\begin_layout Standard +Since all form elements should look uniform, one can determine their layout + using the following styles: +\end_layout + +\begin_layout Description +Text +\begin_inset space ~ +\end_inset + +Field +\begin_inset space ~ +\end_inset + +Style +\end_layout + +\begin_layout Description +Check +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +Style +\end_layout + +\begin_layout Description +List +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +Style affects all choice menu types +\end_layout + +\begin_layout Description +Combo +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +Style affects only the combo box style +\end_layout + +\begin_layout Description +Popdown +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +Style affects only the popdown box style +\end_layout + +\begin_layout Description +Radio +\begin_inset space ~ +\end_inset + +Box +\begin_inset space ~ +\end_inset + +Style affects only the radio box style +\end_layout + +\begin_layout Description +Push +\begin_inset space ~ +\end_inset + +Button +\begin_inset space ~ +\end_inset + +Style +\end_layout + +\begin_layout Description +Submit +\begin_inset space ~ +\end_inset + +Button +\begin_inset space ~ +\end_inset + +Style +\end_layout + +\begin_layout Description +Reset +\begin_inset space ~ +\end_inset + +Button +\begin_inset space ~ +\end_inset + +Style +\end_layout + +\begin_layout Standard +The content of the styles is a comma-separated list of parameters. + The possible parameters are listed in sec. +\begin_inset space \thinspace{} +\end_inset + +6.2 +\begin_inset Quotes eld +\end_inset + +Forms optional parameters +\begin_inset Quotes erd +\end_inset + + of the documentation of the \SpecialChar LaTeX + package +\series bold +hyperref +\series default +, +\begin_inset CommandInset citation +LatexCommand cite +key "hyperref" +literal "true" + +\end_inset + +. + It is important that the parameter +\emph on +print +\emph default + is always part of the definition. + Otherwise the elements will not appear in the PDF. + The defined style is applied to all elements following the definition. +\end_layout + +\begin_layout Subsubsection* +Here are some examples: +\end_layout + +\begin_layout Text Field Style +print, bordercolor=red, borderstyle=U, backgroundcolor=lightgray, color=lime, + maxlen=10, align=2, charsize=16pt +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The parameter +\series bold +borderstyle +\series default + can be +\series bold +U +\series default + (underlined), +\series bold +S +\series default + (solid), +\series bold +D +\series default + (dashed), +\series bold +B +\series default + (bevel) or +\series bold +I +\series default + (inverted bevel). +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Check Box Style +print, borderstyle=S, checkboxsymbol= +\backslash +ding{55} +\end_layout + +\begin_layout Combo Box Style +print, bordercolor={0.33 0.66 0.33}, borderstyle=D +\end_layout + +\begin_layout Popdown Box Style +print, menulength=2 +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +The parameter +\series bold + menulength +\series default + determines the number of displayed menu entries. + It does not work currently because of a bug in the \SpecialChar LaTeX + package +\series bold +hyperref +\series default +. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Radio Box Style +print, borderstyle=I, radiosymbol=3 +\end_layout + +\begin_layout Push Button Style +print, borderstyle=B, bordercolor=lime +\end_layout + +\begin_layout Submit Button Style +print, borderwidth=0, bordercolor=white +\end_layout + +\begin_layout Reset Button Style +print, bordercolor=lime +\end_layout + +\begin_layout Itemize +Text field with gray background, lime text color, a red border only below + the field, right alignment, 16 +\begin_inset space \thinspace{} +\end_inset + +pt font size and a limitation for maximal 10 +\begin_inset space ~ +\end_inset + +characters to insert: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex TextField +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + +Enter your name here: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + To see in +\emph on +Adobe Reader +\emph default + and +\emph on +Acrobat +\emph default + custom background colors you must disable in these programs the highlighting + of form fields. + (Option +\begin_inset Quotes eld +\end_inset + +Show border hover color for fields +\begin_inset Quotes erd +\end_inset + +) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +Check box with normal border and symbol +\backslash +ding{55}: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex CheckBox +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +\end_layout + +\end_inset + +Are you older than 18 years? +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The symbol is either specified as number or with the command +\begin_inset Newline newline +\end_inset + + +\series bold + +\backslash +ding{number} +\series default + +\begin_inset Newline newline +\end_inset + +where +\series bold +number +\series default + is one of the possible numbers listed in Table +\begin_inset space ~ +\end_inset + +2 of the documentation of the \SpecialChar LaTeX + package +\series bold +pifont +\series default +, +\begin_inset CommandInset citation +LatexCommand cite +key "pifont" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Itemize +Combo choice menu with dashed, colored border where the last entry is preselecte +d: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex ChoiceMenu +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +combo, name=combo2, default=Az +\end_layout + +\end_inset + +Albania=Al, Armenia=Ar, Azerbaidschan=Az +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Country: +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +Popdown choice menu where the second entry is preselected: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex ChoiceMenu +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +popdown, name=country2, default=Ar +\end_layout + +\end_inset + +Albania=Al, Armenia=Ar, Azerbaidschan=Az +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Country: +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default +The parameters +\series bold +borderstyle B +\series default + and +\series bold +I +\series default + and +\series bold +color +\series default + have no effect for popdown choice menus. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +Radio choice menu with inverted bevel border and symbol number +\begin_inset space ~ +\end_inset + +3 as checkmark: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex ChoiceMenu +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +radio, name=radio2 +\end_layout + +\end_inset + +male=m, female=f +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Sex: +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + The parameters +\series bold +backgroundcolor +\series default +, +\series bold +color +\series default +, +\series bold +height +\series default +and +\series bold +width +\series default + have no effect for push, submit and reset buttons. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +As workaround use a colored box and/or color the box text. +\end_layout + +\begin_layout Itemize +Push button with a bevel border and colored text: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex PushButton +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +onclick={app.alert( +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +" +\end_layout + +\end_inset + +Why do you click this? +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +" +\end_layout + +\end_inset + +)} +\end_layout + +\end_inset + + +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 1 +width "" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "lime" +status open + +\begin_layout Plain Layout + +\color red +Don't click on this button!!! +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Itemize +Submit button without border, with cyan background and increased height: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex SubmitButton +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=submit2 +\end_layout + +\end_inset + + +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 1 +width "6cm" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "cyan" +status open + +\begin_layout Plain Layout +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 1 +use_makebox 0 +width "4.5cm" +special "none" +height "4in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +Send your data via mail +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Itemize +Reset button with a width of 7 +\begin_inset space \thinspace{} +\end_inset + +cm: +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex ResetButton +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=reset2 +\end_layout + +\end_inset + + +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 1 +width "7cm" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +Reset the form +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\begin_layout Section +PDF action buttons +\end_layout + +\begin_layout Standard +One often needs basic actions to be done by the PDF viewer program, for + example to print the form. + Such PDF program-specific actions can be triggered by adding inserting + the custom inset +\family sans +PDFAction +\family default +. + The PDF viewers +\emph on +Acrobat +\emph default + and +\emph on +Adobe Reader +\emph default + can handle all possible actions while other PDF viewers might only support + some of them. + However, all PDF viewers support the basic things like printing, save +\begin_inset space ~ +\end_inset + +as, view in fullscreen etc.. +\end_layout + +\begin_layout Standard +To specify the action insert its name to the +\family sans +Action +\family default + inset. + A list with possible action names can be found in sec. +\begin_inset space \thinspace{} +\end_inset + +5 +\begin_inset Quotes eld +\end_inset + +Acrobat-specific behavior +\begin_inset Quotes erd +\end_inset + + of the documentation of the \SpecialChar LaTeX + package +\series bold +hyperref +\series default +, +\begin_inset CommandInset citation +LatexCommand cite +key "hyperref" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Standard +Here are some examples: +\end_layout + +\begin_layout Description +Printing: +\begin_inset Flex PDFAction +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +Print +\end_layout + +\end_inset + +Print the document +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +Save +\begin_inset space ~ +\end_inset + +as: +\begin_inset Flex PDFAction +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +SaveAs +\end_layout + +\end_inset + +Save document as +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +View +\begin_inset space ~ +\end_inset + +in +\begin_inset space ~ +\end_inset + +fullscreen: +\begin_inset Flex PDFAction +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +FullScreen +\end_layout + +\end_inset + +View the form in fullscreen +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Subsection +Action button customization +\begin_inset CommandInset label +LatexCommand label +name "subsec:Action-button-customization" + +\end_inset + + +\end_layout + +\begin_layout Standard +Customizing the action buttons requires the usage of boxes because things + like the width, height and border separation cannot be specified as button + parameters. +\end_layout + +\begin_layout Standard +The easiest way to customize the buttons is to fill it with a custom box. + For example the button should be 5 +\begin_inset space \thinspace{} +\end_inset + +cm wide and have the height of 2 +\begin_inset space ~ +\end_inset + +lines. + Then create this parbox: +\end_layout + +\begin_layout Standard +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 1 +use_makebox 0 +width "5cm" +special "none" +height "2in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\noindent +Save form as +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +inside a +\family sans +PDFAction +\family default + inset. + This is the result: +\end_layout + +\begin_layout Standard +\begin_inset Flex PDFAction +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +SaveAs +\end_layout + +\end_inset + + +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 1 +use_makebox 0 +width "5cm" +special "none" +height "2in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +Save form as +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout PDF Link Setup +pdfborder={0 0 0} +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Sets the thickness of the predefined link border to zero as described below. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To customize the border color, border thickness and the distance to the + border one changes the border settings of the box. + An example with a 4 +\begin_inset space \thinspace{} +\end_inset + +pt thick, teal border and 3 +\begin_inset space \thinspace{} +\end_inset + +pt border separation : +\begin_inset VSpace defskip +\end_inset + + +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex PDFAction +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +SaveAs +\end_layout + +\end_inset + + +\begin_inset Box Boxed +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 1 +use_makebox 0 +width "5cm" +special "none" +height "2in" +height_special "totalheight" +thickness "4pt" +separation "3pt" +shadowsize "4pt" +framecolor "teal" +backgroundcolor "white" +status open + +\begin_layout Plain Layout +\noindent +Save form as +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To customize the border thickness, add the command +\series bold +pdfborder={0 0 t} +\series default + to the additional options in the document settings under +\family sans +PDF +\begin_inset space ~ +\end_inset + +properties +\family default + and replace +\series bold +t +\series default + with a number that is the thickness in pixels. + If you want to change the border thickness only for certain buttons, use + the environment +\family sans +PDF +\begin_inset space ~ +\end_inset + +link +\begin_inset space ~ +\end_inset + +setup +\family default + before the button and insert there the command +\series bold +pdfborder +\series default +. + The default value of +\series bold +pdfborder +\series default + is +\series bold +{0 0 1} +\series default +. +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + +\series bold +pdfborder +\series default + affects all link types, not only the action links. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout PDF Link Setup +pdfborder={0 0 4} +\end_layout + +\begin_layout Standard +An example with a 4 +\begin_inset space ~ +\end_inset + +pixel thick border: +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex PDFAction +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +SaveAs +\end_layout + +\end_inset + + +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 1 +use_makebox 0 +width "5cm" +special "none" +height "2in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\noindent +Save form as +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To change the border color use the command +\series bold +menubordercolor={r g b} +\series default + where +\series bold +r +\series default +, +\series bold +g +\series default + and +\series bold +b +\series default + are numbers between 0 and 1 for the colors red, green and blue. + The default value of +\series bold +menubordercolor +\series default + is +\series bold +{1 0 0} +\series default +. +\end_layout + +\begin_layout PDF Link Setup +pdfborder={0 0 1}, menubordercolor={0.1 0.9 0.5} +\end_layout + +\begin_layout Standard +An example with +\series bold +menubordercolor={0.1 0.9 0.5} +\series default +: +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex PDFAction +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +SaveAs +\end_layout + +\end_inset + + +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 1 +use_makebox 0 +width "5cm" +special "none" +height "2in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\noindent +Save form as +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To change the background color use a colored box. +\end_layout + +\begin_layout PDF Link Setup +pdfborder={0 0 0} +\end_layout + +\begin_layout Standard +An example without a border and with lime background color: +\begin_inset Newline newline +\end_inset + + +\begin_inset Flex PDFAction +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +SaveAs +\end_layout + +\end_inset + + +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 1 +use_makebox 0 +width "5cm" +special "none" +height "2in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "lime" +status open + +\begin_layout Plain Layout +\noindent +Save form as +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout PDF Link Setup +pdfborder={0 0 1}, menubordercolor={1 0 0} +\end_layout + +\begin_layout Section +Dynamic form elements +\end_layout + +\begin_layout Standard +It is also possible to have dynamic form elements. + This means that depending on the actions of the user elements can (dis)appear + or change their appearance. + To use this feature, add these lines to your LaTeX preamble: +\end_layout + +\begin_layout Standard + +\series bold + +\backslash +usepackage[pdftex]{insdljs} +\begin_inset Newline newline +\end_inset + + +\backslash +pdfcatalog{/AA +\backslash +the +\backslash +pdflastobj +\backslash +space 0 R} +\end_layout + +\begin_layout Standard +Then add the necessary JavaScript code to your document LaTeX preamble or + as \SpecialChar TeX + code to your document. + For info about JavaScript, see its documentation, +\begin_inset CommandInset citation +LatexCommand cite +key "JavaScript" +literal "true" + +\end_inset + +. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +ifinsdljs +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following section will only be displayed when the \SpecialChar LaTeX + package +\series bold +insdljs +\series default + is installed. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +For the following choice menu this JavaScript code was used: +\end_layout + +\begin_layout Standard +\begin_inset listings +lstparams "language=TeX" +inline false +status open + +\begin_layout Plain Layout + + +\backslash +begin{insDLJS}[exaaae]{exaaae}{JavaScript} +\end_layout + +\begin_layout Plain Layout + + function validateTime(){ +\end_layout + +\begin_layout Plain Layout + + this.delay = true; +\end_layout + +\begin_layout Plain Layout + + if((event.value == "u") || (event.value == "unlimited")) { +\end_layout + +\begin_layout Plain Layout + + this.getField("from").display = display.hidden; +\end_layout + +\begin_layout Plain Layout + + this.getField("until").display = display.hidden; +\end_layout + +\begin_layout Plain Layout + + } else { +\end_layout + +\begin_layout Plain Layout + + this.getField("from").display = display.visible; +\end_layout + +\begin_layout Plain Layout + + this.getField("until").display = display.visible; +\end_layout + +\begin_layout Plain Layout + + this.getField("from").setFocus(); +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + this.delay = false; +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{insDLJS} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Greyedout +status open + +\begin_layout Plain Layout + +\series bold +Note: +\series default + +\emph on +All +\emph default + JavaScript functions must be inserted into the same +\family sans +insDLJS +\family default + environment. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The +\family sans +Parameters +\family default + of the following choice menu are +\begin_inset Newline newline +\end_inset + + +\series bold +name=contract,radio,default=tl,validate={validateTime();} +\end_layout + +\begin_layout Standard +\begin_inset Flex ChoiceMenu +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=contract,radio,default=tl,validate={validateTime();} +\end_layout + +\end_inset + +term-limited=tl, unlimited=u +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Job contract: +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +From: +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Flex TextField +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=from,width=10em +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset VSpace -1.5mm +\end_inset + + +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Until: +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +\begin_inset Flex TextField +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=until,width=10em +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +To check and assure that the user only enters a number to a text field you + can for example use this JavaScript code: +\end_layout + +\begin_layout Standard +\begin_inset listings +lstparams "language=TeX" +inline false +status open + +\begin_layout Plain Layout + +function checkNumber() { +\end_layout + +\begin_layout Plain Layout + + event.rc = true; +\end_layout + +\begin_layout Plain Layout + + if (!Number(event.value)) { +\end_layout + +\begin_layout Plain Layout + + app.alert("Value must be a number!"); +\end_layout + +\begin_layout Plain Layout + + event.value = ""; +\end_layout + +\begin_layout Plain Layout + + } else { +\end_layout + +\begin_layout Plain Layout + + event.target.textColor = color.green; +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +An example text field: +\begin_inset Flex TextField +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +name=onlyNumbers, align=1, validate={checkNumber();} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +else +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The following will be displayed when the \SpecialChar LaTeX + package +\series bold +insdljs +\series default + is not installed: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You need to install the package +\series bold +insdljs +\series default + to see the content of this section in the output. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +fi +\end_layout + +\end_inset + + +\end_layout + +\begin_layout End PDF Form +\begin_inset Note Note +status open + +\begin_layout Plain Layout +keep this empty +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +General notes +\end_layout + +\begin_layout Itemize +Submitting and applying data requires that all form elements have a name. +\end_layout + +\begin_layout Itemize +Creating a PDF form requires pdf\SpecialChar TeX + or Lua\SpecialChar TeX +. + Use therefore either the \SpecialChar LyX + export formats +\family sans +PDF (pdflatex) +\family default + or +\family sans +PDF (LuaTeX) +\family default +. +\end_layout + +\begin_layout Itemize +To see in +\emph on +Adobe Reader +\emph default + and +\emph on +Acrobat +\emph default + custom background colors you must disable in these programs the highlighting + of form fields. + (Option +\begin_inset Quotes eld +\end_inset + +Show border hover color for fields +\begin_inset Quotes erd +\end_inset + +) +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "JavaScript" +literal "true" + +\end_inset + + +\begin_inset CommandInset href +LatexCommand href +name "JavaScript reference" +target "https://developer.mozilla.org/en/docs/Web/JavaScript/Reference" +literal "false" + +\end_inset + + +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "hyperref" +literal "true" + +\end_inset + + +\begin_inset CommandInset href +LatexCommand href +name "Documentation" +target "https://ctan.org/tex-archive/macros/latex/contrib/hyperref/doc/manual.pdf" +literal "false" + +\end_inset + + of the \SpecialChar LaTeX + package +\series bold +hyperref +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "pifont" +literal "true" + +\end_inset + + +\begin_inset CommandInset href +LatexCommand href +name "Documentation" +target "https://ctan.org/tex-archive/macros/latex/required/psnfss/psnfss2e.pdf" +literal "false" + +\end_inset + + of the \SpecialChar LaTeX + package +\series bold +pifont +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Paragraph_Lists_(paralist).lyx b/lib/examples/Modules/Paragraph_Lists_(paralist).lyx new file mode 100644 index 0000000000..39676ea345 --- /dev/null +++ b/lib/examples/Modules/Paragraph_Lists_(paralist).lyx @@ -0,0 +1,284 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +\date{} +\end_preamble +\use_default_options true +\begin_modules +paralist +logicalmkup +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +The +\begin_inset Flex Noun +status open + +\begin_layout Plain Layout +paralist +\end_layout + +\end_inset + + Package +\end_layout + +\begin_layout Author +The \SpecialChar LyX + Team +\end_layout + +\begin_layout Standard +The +\begin_inset Flex Noun +status open + +\begin_layout Plain Layout +paralist +\end_layout + +\end_inset + + package introduces a number of new types of lists. + Perhaps the most widely used are +\begin_inset Quotes eld +\end_inset + +inline +\begin_inset Quotes erd +\end_inset + + lists, which have several features: +\end_layout + +\begin_layout InParagraphEnum +They are set inline within a paragraph; +\end_layout + +\begin_layout InParagraphEnum +\begin_inset CommandInset label +LatexCommand label +name "enu:Inline2" + +\end_inset + +But an inline enumeration is still numbered automatically, as a normal enumerati +on would be; +\end_layout + +\begin_layout InParagraphEnum +And yet, the individual items can still be referenced. +\end_layout + +\begin_layout Standard +For example, the second item in that list was numbered +\begin_inset CommandInset ref +LatexCommand ref +reference "enu:Inline2" + +\end_inset + +. + You can also do inline itemize lists and inline descriptions. + These are created using the +\begin_inset Flex Noun +status open + +\begin_layout Plain Layout +InParagraphItem +\end_layout + +\end_inset + +, +\begin_inset Flex Noun +status open + +\begin_layout Plain Layout +InParagraphEnum +\end_layout + +\end_inset + +, and +\begin_inset Flex Noun +status open + +\begin_layout Plain Layout +InParagraphDescr +\end_layout + +\end_inset + + styles. +\end_layout + +\begin_layout Standard +Another new style of list is the paragraph list. + Items in these lists are set as ordinary paragraphs. +\end_layout + +\begin_layout AsParagraphItem +This is the first item. + See how it is set as an ordinary paragraph, without any special indentation. +\end_layout + +\begin_layout AsParagraphItem +This is the second item. + It is also set as an ordinary paragraph, and there is no special indentation + with it, either. + But you do still have a bullet. +\end_layout + +\begin_layout AsParagraphItem +This is the third item. +\end_layout + +\begin_layout Standard +Those items were set with the +\begin_inset Flex Noun +status open + +\begin_layout Plain Layout +AsParagraphItem +\end_layout + +\end_inset + + style. + Of course, it does not make sense to reference them. + But you can do the same thing with enumerations and descriptions. +\end_layout + +\begin_layout Standard +There are also +\begin_inset Quotes eld +\end_inset + +compact +\begin_inset Quotes erd +\end_inset + + versions of the three standard list styles. + +\end_layout + +\begin_layout CompactDescr +One This is the first description item. +\end_layout + +\begin_layout CompactDescr +Two This is the second description item. +\end_layout + +\begin_layout Standard +This one was set with the CompactDescr style. + It is just an ordinary description list that has no extra spacing. + +\end_layout + +\begin_layout Standard +The +\begin_inset Flex Noun +status open + +\begin_layout Plain Layout +paralist +\end_layout + +\end_inset + + package also provides an optional argument for list items that allows you + to control how the labels are formatted. + For information on this, and many other features of the package, please + see +\begin_inset CommandInset href +LatexCommand href +name "its documentation on CTAN" +target "http://dante.ctan.org/CTAN/macros/latex/contrib/paralist/paralist.pdf" +literal "false" + +\end_inset + +. + You might also want to read the warnings about nesting the new list types. + It can be done, but it does not always work as you might expect. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Rnw_(knitr).lyx b/lib/examples/Modules/Rnw_(knitr).lyx new file mode 100644 index 0000000000..49cc262014 --- /dev/null +++ b/lib/examples/Modules/Rnw_(knitr).lyx @@ -0,0 +1,288 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\use_default_options true +\begin_modules +knitr +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "palatino" "default" +\font_sans "lmss" "default" +\font_typewriter "lmtt" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\leftmargin 2.5cm +\topmargin 2.5cm +\rightmargin 2.5cm +\bottommargin 2.5cm +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Using knitr with \SpecialChar LyX + +\end_layout + +\begin_layout Author +Yihui Xie +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Department of Statistics, Iowa State University. + Email: +\begin_inset CommandInset href +LatexCommand href +name "xie@yihui.name" +target "xie@yihui.name" +type "mailto:" +literal "false" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The R ( +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.r-project.org +\end_layout + +\end_inset + +) package +\series bold +knitr +\series default + is an alternative tool to Sweave based on a different design with more + features. + \SpecialChar LyX + has native support to Sweave since version 2.0.0, and the support to +\series bold +knitr +\series default + was also added since 2.0.3. + The usage is basically the same as the +\family sans +Sweave +\family default + module +\begin_inset Foot +status open + +\begin_layout Plain Layout +read the \SpecialChar LyX +/Sweave manual from +\family sans +Help\SpecialChar menuseparator +Specific Manuals +\end_layout + +\end_inset + +: +\end_layout + +\begin_layout Enumerate +Open a new \SpecialChar LyX + document; +\end_layout + +\begin_layout Enumerate +Go to +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Modules +\family default + and insert the module named +\family sans +Rnw (knitr) +\family default +; +\end_layout + +\begin_layout Enumerate +Then insert R code in the document with either +\family sans +Insert\SpecialChar menuseparator +\SpecialChar TeX + Code +\family default + or the +\family sans +Chunk +\family default + environment; +\end_layout + +\begin_layout Standard +The package website +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://yihui.name/knitr +\end_layout + +\end_inset + + has full documentation and demos of +\series bold +knitr +\series default +; many of the examples have links to the \SpecialChar LyX + source documents. +\end_layout + +\begin_layout Standard +Since \SpecialChar LyX + 2.3, it is necessary to enable the use of +\emph on +needauth +\emph default + converters in +\family sans + Preferences\SpecialChar menuseparator +File Handling\SpecialChar menuseparator +Converters +\family default + in order to compile with +\series bold +knitr +\series default +. +\end_layout + +\begin_layout Standard +Note the +\series bold +knitr +\series default + package requires R >= 2.14.1, so you need to update R if you are using an + old version of R. + Here we show one chunk as a simple example: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +show-off +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +rnorm(5) +\end_layout + +\begin_layout Plain Layout + +df=data.frame(y=rnorm(100), x=1:100) +\end_layout + +\begin_layout Plain Layout + +summary(lm(y~x, data=df)) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Please contact the package author in case of any problems. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Sweave.lyx b/lib/examples/Modules/Sweave.lyx new file mode 100644 index 0000000000..e11bcf9fef --- /dev/null +++ b/lib/examples/Modules/Sweave.lyx @@ -0,0 +1,1767 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass article +\begin_preamble +%% maxwidth is the original width if it's less than linewidth +%% otherwise use linewidth (to make sure the graphics do not exceed the margin) +\def\maxwidth{% +\ifdim\Gin@nat@width>\linewidth +\linewidth +\else +\Gin@nat@width +\fi +} +\end_preamble +\options nogin +\use_default_options true +\begin_modules +sweave +\end_modules +\maintain_unincluded_children false +\language english +\language_package auto +\inputencoding default +\fontencoding global +\font_roman "palatino" "default" +\font_sans "lmss" "default" +\font_typewriter "lmtt" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\leftmargin 3cm +\topmargin 3cm +\rightmargin 3cm +\bottommargin 3cm +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +\begin_inset Flex Sweave Options +status open + +\begin_layout Plain Layout + +prefix=TRUE,prefix.string=sweave-prefix,keep.source=FALSE +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +%% +\backslash +maxwidth was defined in the preamble; see document settings +\end_layout + +\begin_layout Plain Layout + + +\backslash +setkeys{Gin}{width= +\backslash +maxwidth} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +Using Sweave with \SpecialChar LyX + +\end_layout + +\begin_layout Author +Yihui Xie +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +Department of Statistics, Iowa State University. + Email: +\begin_inset CommandInset href +LatexCommand href +name "xie@yihui.name" +target "xie@yihui.name" +type "mailto:" +literal "false" + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +and +\end_layout + +\end_inset + + Gregor Gorjanc +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +and +\end_layout + +\end_inset + + Jean-Marc Lasgouttes +\end_layout + +\begin_layout Standard +Sweave is a tool in the R language ( +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://www.r-project.org +\end_layout + +\end_inset + +) for dynamic report generation using the ideas of literate programming. + R code can be mixed into a \SpecialChar LaTeX + document, and will be executed in R when the + document is compiled; the results are written into the \SpecialChar TeX + output. +\end_layout + +\begin_layout Standard +Since \SpecialChar LyX + 2.0, Sweave can be used out of the box with any document class using + the +\family sans +Sweave +\family default + module. + We can add the +\family sans +Sweave +\family default + module to a \SpecialChar LyX + document from +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +Modules +\family default +. + In this manual, we demonstrate some common features of Sweave and explain + how the module works. + A PDF version of this manual can be found at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://github.com/downloads/yihui/lyx/sweave.pdf +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Standard +Since \SpecialChar LyX + 2.3, it is necessary to enable the use of +\emph on +needauth +\emph default + converters in +\family sans + Preferences\SpecialChar menuseparator +File Handling\SpecialChar menuseparator +Converters +\family default + in order to compile with Sweave. +\end_layout + +\begin_layout Section +System Requirements +\end_layout + +\begin_layout Standard +The +\family sans +Sweave +\family default + module depends on the executable +\family typewriter +Rscript +\family default +, so it has to be in the +\family sans +PATH +\family default + variable of the system. + It is usually not a problem for Linux and Mac OS users, but may be confusing + to Windows users; if you do not understand what is +\family sans +PATH +\family default + under Windows, you may either use the R script +\family sans +add-R-path-win.R +\family default + in the repository +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://github.com/yihui/lyx +\end_layout + +\end_inset + + to change it automatically (not recommended; you should learn +\family sans +PATH +\family default + anyway), or go to +\family sans +Tools\SpecialChar menuseparator +Preferences\SpecialChar menuseparator +Paths\SpecialChar menuseparator +PATH prefix +\family default + to add the bin path of R (recommended), which is often like +\family sans +C: +\backslash +Program Files +\backslash +R +\backslash +R-x.x.x +\backslash +bin +\family default + and you can find it in R: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +where-is-R-bin,eval=FALSE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +R.home('bin') +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +After you have done these changes, you need to reconfigure \SpecialChar LyX + by +\family sans +Tools\SpecialChar menuseparator +Reconfigure +\family default +. + If +\family typewriter +Rscript +\family default + is not present in +\family sans +PATH +\family default +, the +\family sans +Sweave +\family default + module will be unavailable. + It is recommended to use the latest version of R, since Sweave is still + being updated. + Another dependency is introduced by the \SpecialChar LaTeX + style file +\family sans +Sweave.sty +\family default + which is shipped with R under this path (it is not on CTAN): +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +sweave-sty,eval=FALSE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +file.path(R.home('share'), 'texmf', 'tex', 'latex') +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Mik\SpecialChar TeX + users may add the texmf directory to the list of root directories in + Mik\SpecialChar TeX + through Mik\SpecialChar TeX + settings. + Further note that +\family sans +Sweave.sty +\family default + depends on the +\series bold +fancyvrb +\series default + package and +\emph on +may +\emph default + depend on +\series bold +ae +\series default +. + If \SpecialChar LyX + cannot find +\family sans +Sweave.sty +\family default +, it will directly copy from R, so the Sweave module works even if you do + not know where is this style file. +\end_layout + +\begin_layout Section +Sweave Examples +\end_layout + +\begin_layout Standard +Before we write an Sweave document, we can set some Sweave options; the + command is +\family typewriter + +\backslash +SweaveOpts{} +\family default + in Sweave and it can be inserted in a \SpecialChar LyX + document by +\family sans +Insert\SpecialChar menuseparator +Custom Insets\SpecialChar menuseparator +Sweave Options +\family default +, or just use \SpecialChar TeX + code to write it ( +\family sans +Insert\SpecialChar menuseparator +\SpecialChar TeX + Code +\family default +). + For example, we can set a global option +\family typewriter +echo=FALSE +\family default + in the beginning of a document to suppress all R code (by default, both + R code and its output will show up in the \SpecialChar LaTeX + document). + +\end_layout + +\begin_layout Standard +To write R code in \SpecialChar LyX +, you can first insert +\family typewriter +Chunk +\family default + insets from +\family sans +Insert\SpecialChar menuseparator +Custom Insets\SpecialChar menuseparator +Chunk +\family default +, or you can simply open a \SpecialChar TeX + code environment and write Sweave code chunks + in it. + However, \SpecialChar LyX + provides a summary of all the +\family typewriter +Chunk +\family default + insets in the document in the +\family sans +Navigate\SpecialChar menuseparator +Literate Programming +\family default + and +\family sans +View\SpecialChar menuseparator +Outline Pane +\family default + menus. +\end_layout + +\begin_layout Standard +Some R options can be useful to the Sweave output as well, e.g. + +\family typewriter +width +\family default + and +\family typewriter +useFancyQuotes +\family default +. + The former option can adjust the width of the output, and the latter can + avoid a common problem with quotes. + Users are encouraged to read the Sweave manual in R for more details. +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +setup, keep.source=TRUE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +## the option 'digits' can set the (approximate) number of digits +\end_layout + +\begin_layout Plain Layout + +options(width = 70, useFancyQuotes = FALSE, digits = 4) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +sweave-manual, eval=FALSE, keep.source=TRUE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +## view the Sweave vignette (requires R >= 2.13.0) +\end_layout + +\begin_layout Plain Layout + +vignette("Sweave", package = "utils") +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +A simple example that will run in any S engine: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +print-integers, keep.source=TRUE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +## the integers from 1 to 10 are +\end_layout + +\begin_layout Plain Layout + +1:10 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +hide-results, results=hide +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +## intentionally hide the output by setting results=hide +\end_layout + +\begin_layout Plain Layout + +print(1:20) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +We can also emulate a simple calculator: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +calculator +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +1 + pi +\end_layout + +\begin_layout Plain Layout + +sin(pi/6) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Now we look at some Gaussian data: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +rnorm +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +set.seed(123) # for reproducibility +\end_layout + +\begin_layout Plain Layout + +x <- rnorm(20) +\end_layout + +\begin_layout Plain Layout + +print(x) +\end_layout + +\begin_layout Plain Layout + +t1 <- t.test(x) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Note that we can easily integrate some numbers into standard text; this + is done with the command +\family typewriter + +\backslash +Sexpr{} +\family default +, and the corresponding \SpecialChar LyX + menu is +\family sans +Insert\SpecialChar menuseparator +Custom Insets\SpecialChar menuseparator +S/R expression +\family default +, or alternatively just use \SpecialChar TeX + code. + For example, the third element of the vector +\family typewriter +x +\family default + is +\begin_inset Flex S/R expression +status collapsed + +\begin_layout Plain Layout + +x[3] +\end_layout + +\end_inset + + (i.e. + +\family typewriter +x[3] +\family default +) and the +\begin_inset Formula $p$ +\end_inset + +-value of the test is +\begin_inset Flex S/R expression +status collapsed + +\begin_layout Plain Layout + +format.pval(t1$p.value) +\end_layout + +\end_inset + +. + You can round these numbers using functions like +\emph on +round() +\emph default + in R. + +\end_layout + +\begin_layout Standard + +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none +Now we look at a summary of the +\family typewriter +\series default +\shape default +\size default +\emph default +\bar default +\noun default +\color inherit +iris +\family roman +\series medium +\shape up +\size normal +\emph off +\bar no +\noun off +\color none + dataset: +\end_layout + +\begin_layout Standard +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +iris-summary +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +summary(iris[,-5]) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float table +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Quantiles of the first four variables in the +\family typewriter +iris +\family default + data. +\begin_inset CommandInset label +LatexCommand label +name "tab:xtable-demo" + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +xtable-demo,results=tex,echo=FALSE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +if (require('xtable')) { +\end_layout + +\begin_layout Plain Layout + +print(xtable(sapply(iris[,-5], quantile)), floating=FALSE) +\end_layout + +\begin_layout Plain Layout + +} else cat('the xtable package is not available! please install.packages("xtable" +)') +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +Usually people do not like such +\begin_inset Quotes eld +\end_inset + +raw +\begin_inset Quotes erd +\end_inset + + output, and we can polish these messy numbers with the +\series bold +xtable +\series default + package. + Table +\begin_inset CommandInset ref +LatexCommand ref +reference "tab:xtable-demo" + +\end_inset + + is an example demonstrating how to use the +\series bold +xtable +\series default + package with Sweave; note the chunk option +\family typewriter +results=tex +\family default + makes sure that the R output is written out as raw \SpecialChar LaTeX + code instead of being + wrapped in a special environment ( +\family typewriter +Soutput +\family default +). +\end_layout + +\begin_layout Standard +Figure +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:iris-pairs" + +\end_inset + + and +\begin_inset CommandInset ref +LatexCommand ref +reference "fig:iris-boxplots" + +\end_inset + + are two simple examples of producing graphics output with Sweave. +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Both eps and pdf are set to true so that both latex and pdflatex work. + In practice, you would probably just choose one. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +iris-pairs,fig=TRUE,width=4.5,height=4.5,eps=TRUE,pdf=TRUE +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +pairs(iris, col = iris$Species) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Scatter plot matrix of the +\family typewriter +iris +\family default + data. +\begin_inset CommandInset label +LatexCommand label +name "fig:iris-pairs" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center +\begin_inset Flex Chunk +status open + +\begin_layout Plain Layout + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +iris-boxplots,fig=TRUE,width=7,height=2,keep.source=F,eps=T,pdf=T +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout + +par(mar=c(4,5,.1,.3), las=1) +\end_layout + +\begin_layout Plain Layout + +boxplot(Sepal.Length~Species,data=iris,horizontal=TRUE,xlab='Sepal.Length') +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Boxplots of sepal length grouped by species. +\begin_inset CommandInset label +LatexCommand label +name "fig:iris-boxplots" + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +We can also export all the R code in an Sweave document as a single R script + ( +\family sans +File\SpecialChar menuseparator +Export\SpecialChar menuseparator +R/S code +\family default +), which is done via +\family typewriter +R CMD Stangle +\family default +. +\end_layout + +\begin_layout Section +The +\family sans +Sweave +\family default + Module +\end_layout + +\begin_layout Standard +The +\family sans +Sweave +\family default + module declares that a \SpecialChar LyX + document contains literate programming components + with R, so that \SpecialChar LyX + will handle such documents according to the specific converter +s (see the Customization manual). + The +\family sans +Sweave +\family default + module uses the +\family sans +sweave +\family default + converter, which essentially consists of an R script +\family sans +lyxsweave.R +\family default + under the +\family sans +scripts +\family default + directory of \SpecialChar LyX +. + This script takes an +\family sans +Rnw +\family default + document from \SpecialChar LyX + and call Sweave to process it to a \SpecialChar TeX + document, then \SpecialChar LyX + takes + care of the rest of work. +\end_layout + +\begin_layout Standard +The converter from the +\family sans +sweave +\family default + format to \SpecialChar LaTeX + is a call to R via the command line as: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +begin{verbatim} +\end_layout + +\begin_layout Plain Layout + +Rscript --no-save --no-restore $$s/scripts/lyxsweave.R $$p$$i $$p$$o $$e + $$r +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{verbatim} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The \SpecialChar LyX + library directory +\family typewriter +$$s +\family default + can be found from the menu +\family sans +Help\SpecialChar menuseparator +About \SpecialChar LyX + +\family default +. + All the rest of options passed to R are explained in the R script, and + the \SpecialChar LyX + Customization manual also has detailed explanations about +\family typewriter +$$i +\family default +, +\family typewriter +$$o +\family default +, +\family typewriter +$$e +\family default + and +\family typewriter +$$r +\family default +. + General users do not need to know clearly what they mean, but here we need + to explain a few issues in the R code: +\end_layout + +\begin_layout Enumerate +the encoding string of the \SpecialChar LyX + document is passed to R as an command line option; + possible values are +\family typewriter +ISO-8859-15 +\family default + and +\family typewriter +UTF-8 +\family default +, etc. + The encoding is used for R to read the +\family sans +Rnw +\family default + document correctly. +\end_layout + +\begin_layout Enumerate +the R code chunks in the Sweave document are executed under the directory + of the \SpecialChar LyX + document (if you are not sure, put +\family typewriter +getwd() +\family default + in a code chunk to see what is the current working directory). + In this case, you can put data files under the same directory and use relative + paths in R to guarantee reproducibility, i.e. + we do not need to write hard-coded paths which may not exist in other systems. +\end_layout + +\begin_layout Enumerate +if \SpecialChar LaTeX + cannot find +\family sans +Sweave.sty +\family default +, this R script will copy it to the temporary directory automatically where + the \SpecialChar LaTeX + compilation takes place. +\end_layout + +\begin_layout Enumerate +Sweave will use the filename of the Rnw file as the prefix string for the + graphics output by default; one known issue ( +\begin_inset CommandInset href +LatexCommand href +name "#7551" +target "https://www.lyx.org/trac/ticket/7551" +literal "false" + +\end_inset + +) is that if the filename (without extension) contains dots, \SpecialChar LaTeX + can fail to + deal with such files in +\family typewriter + +\backslash +includegraphics{} +\family default +. + Therefore, we have set the default value of the prefix to be the filename + with all the dots being replaced by +\begin_inset Quotes eld +\end_inset + +- +\begin_inset Quotes erd +\end_inset + +. + We can also solve this problem in Sweave directly: set the Sweave option + +\family typewriter +prefix.string +\family default + to be a character string without dots, and this option will override the + default value. +\end_layout + +\begin_layout Standard +We have pre-specified an option +\family typewriter +noae +\family default + for the Sweave package. + This option stops Sweave from loading these two packages: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +begin{verbatim} +\end_layout + +\begin_layout Plain Layout + + +\backslash +RequirePackage[T1]{fontenc} +\end_layout + +\begin_layout Plain Layout + + +\backslash +RequirePackage{ae} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{verbatim} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\SpecialChar LyX + can deal with the font encoding by default, so there is no need to ask + Sweave to do this (furthermore, this may bring clashes of package options); + besides, the users can load the +\series bold +ae +\series default + package by themselves in the preamble if needed. +\end_layout + +\begin_layout Section +Trouble Shooting +\end_layout + +\begin_layout Standard +Since \SpecialChar LyX + 2.0, we can see the detailed information during compilation via +\family sans +View\SpecialChar menuseparator +View Messages +\family default +. + This is extremely helpful for trouble shooting – the process of R will + be shown in the message panel, and we will be able to know which chunk + goes wrong in cases of errors. + For example, when you compile this document, you can see messages like + below: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +begin{verbatim} +\end_layout + +\begin_layout Plain Layout + +17:58:47.868: Processing code chunks with options ... +\end_layout + +\begin_layout Plain Layout + +17:58:47.885: 1 : echo keep.source term verbatim (label=setup) +\end_layout + +\begin_layout Plain Layout + +17:58:47.889: 2 : echo keep.source (label=sweave-manual) +\end_layout + +\begin_layout Plain Layout + +17:58:47.908: 3 : echo keep.source term verbatim (label=print-integers) +\end_layout + +\begin_layout Plain Layout + +.... +\end_layout + +\begin_layout Plain Layout + +17:58:47.941: Loading required package: xtable +\end_layout + +\begin_layout Plain Layout + +17:58:47.976: 9 : echo term verbatim pdf (label=iris-pairs) +\end_layout + +\begin_layout Plain Layout + +.... +\end_layout + +\begin_layout Plain Layout + +17:58:48.116: You can now run (pdf)latex on 'sweave.tex' +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{verbatim} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +The string after +\family typewriter +label= +\family default + is the chunk label. + If any chunk causes an error in R, you will see the error message here + immediately. +\end_layout + +\begin_layout Standard +Another issue with the \SpecialChar TeX + code environment is the Sweave code chunk may fail + when we change the alignment of the chunk paragraph in \SpecialChar LyX + (using +\family sans +Paragraph settings +\family default +), because \SpecialChar LyX + may add a macro like +\family typewriter + +\backslash +centering{} +\family default + before the code chunk without adding a new line, which will lead to a code + chunk like this: +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +begin{verbatim} +\end_layout + +\begin_layout Plain Layout + + +\backslash +centering{}<>= +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{verbatim} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +This is not a legitimate Sweave code chunk, since +\family typewriter +<<>>= +\family default + must start in a new line with nothing before it. + This does not happen when using the Chunk inset instead of the \SpecialChar TeX + code environmen +t. + +\end_layout + +\begin_layout Section +Resources +\end_layout + +\begin_layout Standard +The user manual of Sweave is at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://stat.ethz.ch/R-manual/R-devel/library/utils/doc/Sweave.pdf +\end_layout + +\end_inset + +. + The CRAN task view on +\begin_inset Quotes eld +\end_inset + +Reproducible Research +\begin_inset Quotes erd +\end_inset + + has a list of Sweave-related packages which can be potentially useful; + see +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://cran.r-project.org/web/views/ReproducibleResearch.html +\end_layout + +\end_inset + +. + Questions about \SpecialChar LyX + and Sweave can be posted to the \SpecialChar LyX + mailing list ( +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://www.lyx.org/MailingLists +\end_layout + +\end_inset + +). + More \SpecialChar LyX + examples are provided at +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://github.com/yihui/lyx +\end_layout + +\end_inset + +. +\end_layout + +\begin_layout Section +FAQ +\end_layout + +\begin_layout Subsection +How to use Sweave with beamer? +\end_layout + +\begin_layout Standard +You will end up with \SpecialChar LaTeX + errors if you use Sweave in normal beamer slides in + \SpecialChar LyX +; the reason is the beamer frame that contains verbatim R code. + The solution is to use a +\emph on +FragileFrame +\emph default + instead of a normal +\emph on +Frame +\emph default +, or to pass the option +\family typewriter +fragile +\family default + to the frame title via +\family sans +Insert\SpecialChar menuseparator +Frame Options +\family default +. +\end_layout + +\begin_layout Subsection +Can I define my own R script to compile the Rnw document? +\end_layout + +\begin_layout Standard +Yes, of course. + First you need to understand how the R script +\family typewriter +$$s +\family sans +/scripts/lyxsweave.R +\family default + works, which was introduced previously, and we recommend you to read the + R source code as well (on how R takes the paths and uses +\emph on +Sweave() +\emph default + to handle the Rnw document). + Then you put your customized +\family sans +lyxsweave.R +\family default + under the +\family sans +scripts +\family default + directory of your +\emph on +user directory +\emph default + (again, see +\family sans +Help\SpecialChar menuseparator +About \SpecialChar LyX + +\family default +). + Note \SpecialChar LyX + will check the +\emph on +user directory +\emph default + before going to its own +\emph on +library directory +\emph default +; if an R script +\family sans +lyxsweave.R +\family default + is found in the user directory, it will be used. + It is not recommended to hack the script under the \SpecialChar LyX + library directory directly, + since updating \SpecialChar LyX + will override you modified script (the user directory will + not be affected). +\end_layout + +\begin_layout Standard +Beside the support for the official Sweave in R, the +\series bold +knitr +\series default + package is also supported, which is an alternative tool to Sweave; the + corresponding module is named +\family sans +Rnw (knitr) +\family default +. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Modules/Variable-width_Minipages.lyx b/lib/examples/Modules/Variable-width_Minipages.lyx new file mode 100644 index 0000000000..c9f2013959 --- /dev/null +++ b/lib/examples/Modules/Variable-width_Minipages.lyx @@ -0,0 +1,974 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass scrartcl +\options tablecaptionabove +\use_default_options true +\begin_modules +varwidth +\end_modules +\maintain_unincluded_children false +\language british +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 12 +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date true +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Floats Side-by-Side using the Module +\emph on +Variable-width Minipages +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +To view this file you need to have the \SpecialChar LaTeX + package +\family sans +varwidth +\family default + installed. + To compare with standard solution (Minipage Box) see Embedded Objects Manual. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Graphics side-by-side +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement H +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Minipage (Var. Width) +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +t +\end_layout + +\end_inset + + +\begin_inset Graphics + filename ../doc/clipart/3D-structure-distort.pdf + lyxscale 66 + width 4cm + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +3D-structure-distort.pdf +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Minipage (Var. Width) +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +t +\end_layout + +\end_inset + + +\begin_inset Graphics + filename ../doc/clipart/Star-structure.pdf + width 4cm + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +Star-structure.pdf +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Tables side-by-side +\end_layout + +\begin_layout Standard +\begin_inset Float table +placement H +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Minipage (Var. Width) +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +t +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +Addition +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +7 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Minipage (Var. Width) +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +t +\end_layout + +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +Multiplication +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +6 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +9 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +12 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +8 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +12 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +16 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +5 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +10 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +15 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +20 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Text side-by-side +\end_layout + +\begin_layout Standard +\begin_inset Float figure +placement H +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Minipage (Var. Width) +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\begin_inset Formula $\begin{aligned}M\Coloneqq x\mid\lambda xM\mid MN\end{aligned} +$ +\end_inset + + +\begin_inset Newline newline +\end_inset + +(Subject to +\emph on + +\begin_inset Formula $\alpha$ +\end_inset + +-equivalence +\emph default +) +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +Terms +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Flex Minipage (Var. Width) +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +b +\end_layout + +\end_inset + + +\begin_inset Formula $\begin{aligned}(\lambda xM)N & \rightarrow M[N/x]\\ +\lambda x(Mx) & \rightarrow M +\end{aligned} +$ +\end_inset + + +\begin_inset Caption Standard + +\begin_layout Plain Layout +Reduction +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/lib/examples/MultilingualCaptions.lyx b/lib/examples/MultilingualCaptions.lyx deleted file mode 100644 index 124ce287d6..0000000000 --- a/lib/examples/MultilingualCaptions.lyx +++ /dev/null @@ -1,1913 +0,0 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 544 -\begin_document -\begin_header -\save_transient_properties true -\origin /systemlyxdir/examples/ -\textclass scrartcl -\begin_preamble -% if pdflatex is used -\usepackage{ifpdf} -\ifpdf - -% set fonts for nicer pdf view -\IfFileExists{lmodern.sty} - {\usepackage{lmodern}}{} - -\fi % end if pdflatex is used - -% use this when you only need the document language captions in the list of figures/tables -%\PassOptionsToPackage{list=off}{bicaption} - -% all this is only necessary if you want to have a different list of floats for each language -\usepackage{newfloat} -% Define a new floating environment type "figureGer" -\DeclareFloatingEnvironment[fileext=lof2]{figureGer} -[Abbildung][Abbildungsverzeichnis] -% Define the new floating environment type "tableEng" -\DeclareFloatingEnvironment[fileext=lot2]{tableGer} -[Tabelle][Tabellenverzeichnis] -% inform bicaption about the new float types -\PassOptionsToPackage{listtype+=Ger}{bicaption} -\end_preamble -\options liststotoc -\use_default_options true -\begin_modules -bicaption -\end_modules -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding auto -\fontencoding global -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures false -\graphics default -\default_output_format default -\output_sync 0 -\bibtex_command default -\index_command default -\float_placement h -\paperfontsize 12 -\spacing single -\use_hyperref true -\pdf_bookmarks true -\pdf_bookmarksnumbered false -\pdf_bookmarksopen false -\pdf_bookmarksopenlevel 1 -\pdf_breaklinks false -\pdf_pdfborder false -\pdf_colorlinks true -\pdf_backref false -\pdf_pdfusetitle true -\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" -\papersize default -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\cite_engine basic -\cite_engine_type default -\biblio_style plain -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date true -\justification true -\use_refstyle 1 -\use_minted 0 -\notefontcolor #0000ff -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation skip -\defskip medskip -\is_math_indent 0 -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Title -Typesetting Multilingual Captions -\end_layout - -\begin_layout Author -Uwe Stöhr -\end_layout - -\begin_layout Standard -\begin_inset FloatList figure - -\end_inset - - -\end_layout - -\begin_layout Section -Introduction -\end_layout - -\begin_layout Standard -The module -\family sans -Multilingual -\begin_inset space ~ -\end_inset - -captions -\family default - allows to typeset captions in two languages. - It requires the \SpecialChar LaTeX - package -\series bold -bicaption -\series default - which is part of the \SpecialChar LaTeX - package -\series bold -caption -\series default -. - So if -\series bold -caption -\series default - is installed, -\series bold -bicaption -\series default - should be installed too. -\end_layout - -\begin_layout Standard -The first language is the document language, the second one has to be specified - using the style -\family sans -Caption -\begin_inset space ~ -\end_inset - -setup -\family default -. - This style has an optional argument to define to which language the setup - should apply. - To change the setup of all captions in the first language, use -\series bold -bi-first -\series default - as optional argument, for the second language use -\series bold -bi-second -\series default -, for both languages use -\series bold -bi-both -\series default -. -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note -\series default -: If no optional argument is used for -\family sans -Caption setup -\family default -, the setup will affect all captions in the document, not only the multilingual - ones. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -This document is in English. - To set German as the second language one uses the command -\end_layout - -\begin_layout Standard - -\series bold -lang=ngerman -\end_layout - -\begin_layout Standard -in a -\family sans -Caption setup -\family default - style. - For other languages, replace -\series bold -ngerman -\series default - by the babel name of the language. - The list of babel names is given in Table -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "tab:List-of-babel" - -\end_inset - -. - The caption labels are automatically translated. -\end_layout - -\begin_layout Standard -To add a multilingual caption to a float, press the right mouse button on - the caption that is automatically added when inserting a new float and - select -\family sans -Caption -\begin_inset space ~ -\end_inset - -(Bicaption -\family default -) from the context menu. - If no caption is inserted, you can insert the multilingual caption via - -\family sans -Insert\SpecialChar menuseparator -Caption\SpecialChar menuseparator -Bicaption -\family default -. - The caption text in the document language must be inserted in the inset - which is inserted in the caption via -\family sans -Insert\SpecialChar menuseparator -Main Language Text -\family default -. - The caption text in the second language is inserted as normal text in the - caption. -\end_layout - -\begin_layout Standard -Short Titles for both languages (for the List of Tables\SpecialChar breakableslash -Figures) can be inserted - via -\family sans -Insert\SpecialChar menuseparator -Main Language Short Title -\family default - and -\family sans -Insert\SpecialChar menuseparator -Second Language Short Title. -\end_layout - -\begin_layout Standard -Figure -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:example-figure" - -\end_inset - - is an example of a figure float with a multilingual caption. -\end_layout - -\begin_layout Caption setup -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -bi-second -\end_layout - -\end_inset - -lang=ngerman -\begin_inset Note Note -status collapsed - -\begin_layout Plain Layout -specify the second language -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Float figure -wide false -sideways false -status open - -\begin_layout Plain Layout -\noindent -\align center -\begin_inset Box Boxed -position "t" -hor_pos "c" -has_inner_box 0 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "50col%" -special "none" -height "1in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "none" -status open - -\begin_layout Plain Layout -A figure. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Plain Layout -\begin_inset Caption Bicaption - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -English short title -\end_layout - -\end_inset - - -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -English Title -\end_layout - -\end_inset - - -\begin_inset Argument 3 -status open - -\begin_layout Plain Layout -German short title -\end_layout - -\end_inset - -German Title -\begin_inset CommandInset label -LatexCommand label -name "fig:example-figure" - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note -\series default -: Multilingual captions cannot be used for longtables. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Caption Customization -\end_layout - -\begin_layout Standard -The layout of the captions can also be changed using the -\family sans -Caption setup -\family default - style. - For example to typeset the caption text sans-serif italic, use the command -\end_layout - -\begin_layout Standard - -\series bold -textfont={sf,it} -\end_layout - -\begin_layout Standard -to make the label bold use -\end_layout - -\begin_layout Standard - -\series bold -labelfont=bf -\end_layout - -\begin_layout Standard -To set the font for the text and the label use the command -\series bold -font= -\series default -. - For more information about possible customizations, see the documentation - of the \SpecialChar LaTeX - package -\series bold -caption -\series default -, -\begin_inset CommandInset citation -LatexCommand cite -key "caption" -literal "true" - -\end_inset - -, because the customization options of the package -\series bold -bicaption -\series default - are the same as for -\series bold -caption -\series default -. -\end_layout - -\begin_layout Standard -Figure -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "fig:example-figure-custom" - -\end_inset - - is an example of a figure float with a customized multilingual caption. -\end_layout - -\begin_layout Caption setup -\begin_inset Note Note -status open - -\begin_layout Plain Layout - -\series bold -Note -\series default -: This setup does not have an effect in this file as described in the note - of section -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Float-List-Customization" - -\end_inset - -. -\end_layout - -\end_inset - - -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -bi-both -\end_layout - -\end_inset - -labelfont=bf, labelsep=newline -\begin_inset Note Note -status collapsed - -\begin_layout Plain Layout -The label font should be bold, the label separator is a line break instead - of a colon. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Caption setup -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -bi-first -\end_layout - -\end_inset - -labelfont=bf, labelsep=newline -\begin_inset Note Note -status collapsed - -\begin_layout Plain Layout -The first language label font should be bold. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Caption setup -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -bi-second -\end_layout - -\end_inset - -labelfont=bf, textfont={sf,it}, labelsep=newline -\begin_inset Note Note -status collapsed - -\begin_layout Plain Layout -The second language caption text should be sans-serif, italic. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Float figure -wide false -sideways false -status open - -\begin_layout Plain Layout -\noindent -\align center -\begin_inset Box Boxed -position "t" -hor_pos "c" -has_inner_box 0 -inner_pos "t" -use_parbox 0 -use_makebox 0 -width "50col%" -special "none" -height "1in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "none" -status open - -\begin_layout Plain Layout -A figure. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Plain Layout -\begin_inset Caption Bicaption - -\begin_layout Plain Layout -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -Customized caption format -\end_layout - -\end_inset - - -\lang ngerman -Angepasstes Beschriftungsformat -\lang english - -\begin_inset CommandInset label -LatexCommand label -name "fig:example-figure-custom" - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -\begin_inset CommandInset label -LatexCommand label -name "sec:Float-List-Customization" - -\end_inset - -Float List Customization -\end_layout - -\begin_layout Standard -By default the list of figures/tables contain both languages. - You can turn off the second language by adding this line to the document - preamble: -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -PassOptionsToPackage{list=off}{bicaption} -\end_layout - -\begin_layout Standard -It is also possible to have two different lists, one for the document language, - one for the second language. - This is the case in this file. - To split the list one needs to add these lines to the \SpecialChar LaTeX - preamble: -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -usepackage{newfloat} -\begin_inset Newline newline -\end_inset - - -\backslash -DeclareFloatingEnvironment[fileext=lof2]{figureGer} -\begin_inset Newline newline -\end_inset - -[Abbildung][Abbildungsverzeichnis] -\begin_inset Newline newline -\end_inset - - -\backslash -DeclareFloatingEnvironment[fileext=lot2]{tableGer} -\begin_inset Newline newline -\end_inset - -[Tabelle][Tabellenverzeichnis] -\begin_inset Newline newline -\end_inset - - -\backslash -PassOptionsToPackage{listtype+=Ger}{bicaption} -\end_layout - -\begin_layout Standard -This defines two new float type named -\emph on -figureGer -\emph default - and -\emph on -tableGer -\emph default -. - A list for -\emph on -figureGer -\emph default - can be inserted by using the command -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -listoffigureGeres -\end_layout - -\begin_layout Standard -as \SpecialChar TeX - code. - Here is the German list of figures: -\end_layout - -\begin_layout Standard -\begin_inset ERT -status open - -\begin_layout Plain Layout - - -\backslash -listoffigureGeres -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note -\series default -: If you are using this feature, the -\family sans -Caption setup -\family default - style option -\series bold -bi-both -\series default - does no longer have any effect. - You then need to define everything explicitly for each language using the - options -\series bold -bi-first -\series default - and -\series bold -bi-second -\series default -. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -For more information what can be done with the \SpecialChar LaTeX - package -\series bold -bicaption -\series default -, have a look at its documentation, -\begin_inset CommandInset citation -LatexCommand cite -key "bicaption" -literal "true" - -\end_inset - -. -\end_layout - -\begin_layout Standard -\begin_inset Newpage newpage -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Caption Standard - -\begin_layout Plain Layout -\begin_inset CommandInset label -LatexCommand label -name "tab:List-of-babel" - -\end_inset - -List of babel names -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -language -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -babel name(s) -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -language -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -babel name(s) -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout - -\family sans -\size small -continued on next page -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Afrikaans -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -afrikaans -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Basque -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -basque -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Breton -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -breton -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Bulgarian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -bulgarian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Catalan -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -catalan -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Croatian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -croatian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Czech -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -czech -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Danish -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -danish -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Dutch -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -dutch -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -English -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -english, american, australian, british, canadian, newzealand -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Esperanto -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -esperanto -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Estonian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -estonian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Finnish -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -finnish -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -French -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -french, canadien, acadian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Galician -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -galician -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Georgian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -georgian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -German -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -ngerman, naustrian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Greek -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -greek, polutonikogreek -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Hebrew -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -hebrew -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Hungarian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -magyar, hungarian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Icelandic -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -icelandic -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Indonesian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -bahasa -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Interlingua -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -interlingua -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Irish Gaelic -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -irish -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Italian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -italian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Latin -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -latin -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Lower Sorbian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -lowersorbian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Malay -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -bahasam -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -North Sami -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -samin -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Norwegian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -norsk, nynorsk -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Polish -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -polish -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Portuguese -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -portuguese, brazilian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Romanian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -romanian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Russian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -russian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Scottish Gaelic -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -scottish -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Serbian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -serbian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Slovakian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -slovak -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Slovenian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -slovene -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Spanish -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -spanish -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Swedish -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -swedish -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Turkish -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -turkish -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Ukrainian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -ukrainian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Upper Sorbian -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -uppersorbian -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Welsh -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -welsh -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Bibliography -\begin_inset CommandInset bibitem -LatexCommand bibitem -key "bicaption" -literal "true" - -\end_inset - -Documentation of the \SpecialChar LaTeX - package -\series bold - -\begin_inset CommandInset href -LatexCommand href -name "bicaption" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/bicaption.pdf" -literal "false" - -\end_inset - - -\end_layout - -\begin_layout Bibliography -\begin_inset CommandInset bibitem -LatexCommand bibitem -key "caption" -literal "true" - -\end_inset - -Documentation of the \SpecialChar LaTeX - package -\series bold - -\begin_inset CommandInset href -LatexCommand href -name "caption" -target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption-eng.pdf" -literal "false" - -\end_inset - - -\end_layout - -\end_body -\end_document diff --git a/lib/examples/PDF-comment.lyx b/lib/examples/PDF-comment.lyx deleted file mode 100644 index 858a304cf9..0000000000 --- a/lib/examples/PDF-comment.lyx +++ /dev/null @@ -1,2234 +0,0 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 544 -\begin_document -\begin_header -\save_transient_properties true -\origin /systemlyxdir/examples/ -\textclass scrartcl -\begin_preamble -% to be able to use all color settings of pdfcomment -\usepackage[svgnames,rgb]{xcolor} - -% if pdflatex is used -\usepackage{ifpdf} -\ifpdf - -% set fonts for nicer pdf view -\IfFileExists{lmodern.sty} - {\usepackage{lmodern}}{} - -\fi % end if pdflatex is used -\end_preamble -\options BCOR8mm,pagesize -\use_default_options false -\begin_modules -pdfcomment -\end_modules -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding auto -\fontencoding global -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures false -\graphics default -\default_output_format pdf2 -\output_sync 0 -\bibtex_command bibtex -\index_command default -\paperfontsize 12 -\spacing single -\use_hyperref true -\pdf_title "Description of the module PDF Comments" -\pdf_author "Uwe Stöhr" -\pdf_subject "PDF comments" -\pdf_keywords "LyX, PDF comments, pdfcomment" -\pdf_bookmarks true -\pdf_bookmarksnumbered true -\pdf_bookmarksopen true -\pdf_bookmarksopenlevel 2 -\pdf_breaklinks false -\pdf_pdfborder false -\pdf_colorlinks true -\pdf_backref false -\pdf_pdfusetitle false -\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false" -\papersize a4paper -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\cite_engine basic -\cite_engine_type default -\biblio_style plain -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date true -\justification true -\use_refstyle 0 -\use_minted 0 -\notefontcolor #0000ff -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 2 -\paragraph_separation skip -\defskip medskip -\is_math_indent 0 -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Standard -\begin_inset Flex PDF-Comment-Setup -status open - -\begin_layout Plain Layout -color=yellow -\end_layout - -\end_inset - - -\begin_inset Note Note -status collapsed - -\begin_layout Plain Layout -This sets yellow as default color for new PDF comments, see sec. -\begin_inset space ~ -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "subsec:PDF-Comment-setup" - -\end_inset - - for the description. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Title -Description of the module PDF Comments -\end_layout - -\begin_layout Author -Uwe Stöhr -\end_layout - -\begin_layout Standard -The \SpecialChar LaTeX - package -\series bold -pdfcomment -\series default - provides full access for PDF comments. - You can add normal comments as well as margin comments, underlining etc.. - You can also define a special layout for a comment which you can use several - times in the document. - This document is only a excerpt of the documentation of -\series bold -pdfcomment -\series default -; see its documentation for all information: -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex URL -status open - -\begin_layout Plain Layout - -https://ctan.org/tex-archive/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -The different comment types -\end_layout - -\begin_layout Standard -The different comment types are inserted using the menu -\family sans -Insert\SpecialChar menuseparator -Custom -\begin_inset space ~ -\end_inset - -Insets -\family default -. - You can select one of the following: -\end_layout - -\begin_layout Subsection -PDF-Annotation -\end_layout - -\begin_layout Standard -This is the standard PDF comment. - Here is an example: -\begin_inset Flex PDF-Annotation -status open - -\begin_layout Plain Layout -This is a simple PDF-Annotation. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Like for all PDF comment types you can add a lot of things to the option - of the inset. - To insert the options inset, set the cursor into the comment inset and - use the menu -\family sans -Insert\SpecialChar menuseparator -PDF Comment Options -\family default -. -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - All braces and brackets in comment options must be inserted as \SpecialChar TeX - code! -\end_layout - -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\end_layout - -\begin_layout Standard -Here is an example PDF-Annotation where the author is set to -\begin_inset Quotes eld -\end_inset - -Daisy Duck -\begin_inset Quotes erd -\end_inset - -: -\begin_inset Flex PDF-Annotation -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status collapsed - -\begin_layout Plain Layout -author= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -Daisy Duck -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - -,color= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -0.234 0.867 0.211 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - -,voffset=8pt,opacity=0.5 -\end_layout - -\end_inset - -This is an annotation with a complex option. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -To avoid to write the same options like the author again and again, you - can define a so-called -\begin_inset Quotes eld -\end_inset - -avatar -\begin_inset Quotes erd -\end_inset - - for every person and/or comment layout. - See -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Avatars" - -\end_inset - - for further information. -\end_layout - -\begin_layout Standard -For a full list of possible options, please look at the -\series bold -pdfcomment -\series default - documentation. -\end_layout - -\begin_layout Subsection -PDF-Circle -\end_layout - -\begin_layout Standard -This will typeset a comment in form of a circle or ellipse. - Here is an example without any options: -\begin_inset Flex PDF-Circle -status open - -\begin_layout Plain Layout -a simple circle comment -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -At the right side you see a large, elliptical comment as example of a PDF-Circle - with options. - -\begin_inset Flex PDF-Circle -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status collapsed - -\begin_layout Plain Layout -id=1,color=blue,height=2.5cm,width=5.8cm,voffset=-2.8cm,hoffset=8cm,opacity=1.0,just -ification=right,icolor= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -yellow -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - -,linewidth=12pt,borderstyle=dashed,dashstyle= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -10 5 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - -a circle comment in form of a large ellipse -\end_layout - -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\end_layout - -\begin_layout Subsection -PDF-Freetext -\end_layout - -\begin_layout Standard -This will typeset a comment in form of a freely positioned box. - By using the option -\series bold -type=callout -\series default - the box will have an additional so called callout line, to bind the box - to a certain element of the page. - With the option -\series bold -type=typewriter -\series default - you can write a comment everywhere on the page with a virtual ’typewriter’. - These PDF-Freetext annotations do have no frame and a transparent background - for ’overwriting’ arbitrary parts of the page. - Here is an example in form of a yellow rectangle: -\begin_inset Flex PDF-Freetext -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status collapsed - -\begin_layout Plain Layout -height=3cm,type=freetext,subject={freetext},width=4.5cm,voffset=-3.2cm,hoffset=-3.2 -cm,opacity=0.9,justification=right -\end_layout - -\end_inset - -This is also a comment, but it is a PDF-Freetext annotation. -\end_layout - -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\end_layout - -\begin_layout Subsection -PDF-Line -\end_layout - -\begin_layout Standard -This will typeset a comment in form of a line, polyline or polygon. - Here is an example without any options: -\begin_inset Flex PDF-Line -status open - -\begin_layout Plain Layout -a simple PDF-Line comment -\end_layout - -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\end_layout - -\begin_layout Standard -As you can see a PDF-Line comment without options is useless. -\end_layout - -\begin_layout Standard -The green arrow at the left side of this page is an example for a PDF-Line - comment with options. - -\begin_inset Flex PDF-Line -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status collapsed - -\begin_layout Plain Layout -type=line,opacity=1,line= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -50 480 50 180 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - -,color=green,icolor=blue,caption=top,linebegin= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -/ROpenArrow -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - -,lineend= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -/OpenArrow -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - -,linewidth=2bp,captionhoffset=-5pt,captionvoffset=15pt -\end_layout - -\end_inset - -a PDF-Line comment with options -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -PDF-Margin -\end_layout - -\begin_layout Standard -This will typeset an annotation into the margin. - Right besides this text is an example without options: -\begin_inset Flex PDF-Margin -status open - -\begin_layout Plain Layout -a simple PDF-Margin comment -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The red margin note is an example for a PDF-Margin with options. - -\begin_inset Flex PDF-Margin -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status collapsed - -\begin_layout Plain Layout -icon=Note,color=red,open=true,hspace=100pt -\end_layout - -\end_inset - -a PDF-Margin comment with options -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -PDF-Markup -\end_layout - -\begin_layout Standard -This will typeset so called PDF text markup annotations over some text or - math. - Here is a markup without options: -\begin_inset Flex PDF-Markup -status open - -\begin_layout Plain Layout -simple PDF-Markup -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Possible types for the option -\series bold -markup -\series default - are: -\end_layout - -\begin_layout Description -Highlight The markup text will be highlighted: -\begin_inset Flex PDF-Markup -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -\begin_inset Note Note -status open - -\begin_layout Plain Layout -id=1, -\end_layout - -\end_inset - -markup=Highlight -\end_layout - -\end_inset - -Highlight PDF-Markup -\begin_inset Argument post:1 -status open - -\begin_layout Plain Layout -a comment -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Note Note -status collapsed - -\begin_layout Plain Layout -see the next section for the description of the option -\series bold -id=1 -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Description -Underline The markup text will be underlined: -\begin_inset Flex PDF-Markup -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -markup=Underline -\end_layout - -\end_inset - -Underlining PDF-Markup -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Description -Squiggly The markup text will be underlined with a wave: -\begin_inset Flex PDF-Markup -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -markup=Squiggly -\end_layout - -\end_inset - -Underwave PDF-Markup -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Description -StrikeOut The markup text will be struck-out: -\begin_inset Flex PDF-Markup -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -markup=StrikeOut -\end_layout - -\end_inset - -Striked-out PDF-Markup -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Description -mathpopup Formula parts will be highlighted. - -\series bold - -\series default - -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - The PDF-Markup inset cannot be used for this option! -\end_layout - -\end_inset - - Instead the command -\series bold - -\backslash -pdfmarkupcomment -\series default - woll be used in a formula with this scheme: -\begin_inset Newline newline -\end_inset - -Command: -\begin_inset Newline newline -\end_inset - - -\series bold - -\backslash -pdfmarkupcomment[style=mathpopup] -\backslash -{formula part} -\begin_inset Formula $\to$ -\end_inset - - -\backslash -{ -\backslash -text -\begin_inset space \textvisiblespace{} -\end_inset - - -\begin_inset Newline newline -\end_inset - -optional comment} -\begin_inset Newline newline -\end_inset - - -\series default -Result: -\end_layout - -\begin_layout Standard -\begin_inset Formula -\[ -\pdfmarkupcomment[style=mathpopup]{\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)}{\text{little Gauss}} -\] - -\end_inset - - -\end_layout - -\begin_layout Standard -The text for the comment is inserted with the inset option -\family sans -Comment -\family default -. -\end_layout - -\begin_layout Standard -PDF-Markup has some limitations: -\end_layout - -\begin_layout Itemize -the markup text must not be longer than one paragraph -\end_layout - -\begin_layout Itemize -the markup annotation must not be longer than one page, otherwise the recognitio -n of the page break will fail -\end_layout - -\begin_layout Itemize -when using Xe\SpecialChar TeX - you have to assure that the page dimensions are internally - output, e. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} -\end_inset - -with the document class option -\series bold -pagesize -\series default - for the KOMA-Script classes, or the option -\series bold -pagesize -\series default - for the \SpecialChar LaTeX --package -\series bold -typearea -\series default -. -\end_layout - -\begin_layout Subsection -PDF-Reply -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Attention: -\series default - Due to technical limitations PDF-Reply only works when using pdflatex. - On some \SpecialChar LaTeX - installations it won't even work in general. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -With a PDF-Reply you can compose replies to PDF comments. - The option -\series bold -replyto -\series default - provides a clear reference to the comment the reply refers to. -\end_layout - -\begin_layout Standard -As example see the reply to the Highlight PDF-Markup from the previous section. - -\begin_inset Note Note -status open - -\begin_layout Plain Layout -\begin_inset Flex PDF-Reply -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -id=2,replyto=1,date=D:20101211161247+01'00' -\end_layout - -\end_inset - -This is a reply. -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - It appears in that PDF-Markup comment. - To be able to reference the PDF-Markup the option -\series bold -id=1 -\series default - was added to its options. - The PDF-Reply got the option -\series bold -replyto=1 -\series default -. -\end_layout - -\begin_layout Standard -You can also reply to replies by adding an -\series bold -id -\series default - option to the reply that should be replied to. - As example see the reply to the reply to the PDF-Markup. - -\begin_inset Note Note -status open - -\begin_layout Plain Layout -\begin_inset Flex PDF-Reply -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -replyto=2,date=D:20101212095321+01'00' -\end_layout - -\end_inset - -Of course, you can reply to a reply. -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -PDF-Reply has limitations: -\end_layout - -\begin_layout Itemize -It can not support page breaks. -\end_layout - -\begin_layout Itemize -The replies will only appear in the PDF annotations on the second page. - (Replies to comments without page break work smoothly.) -\end_layout - -\begin_layout Subsection -PDF-Sideline -\end_layout - -\begin_layout Standard -This will typeset a comment in form of identical markers on every side of - the page. - The yellow arrows besides this text are an example of a PDF-Sideline without - any options: -\begin_inset Flex PDF-Sideline -status open - -\begin_layout Plain Layout -a simple PDF-Sideline -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -As you can see a PDF-Sideline comment without options is quite useless. - PDF-Sideline is useful if you want to highlight complete parts of a page. - The inset options define the layout of the marker while the normal content - of the inset is the text surrounded by the markers. - The content of the inset option -\family sans -Comment -\family default - will be printed along both markers. - Here is an example: -\end_layout - -\begin_layout Standard -\begin_inset Flex PDF-Sideline -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status collapsed - -\begin_layout Plain Layout -opacity=0.33,color=magenta,icolor=cyan,caption=inline,linebegin= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -/Butt -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - -,lineend= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -/Square -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - -,linewidth=3bp,linesep=0.7cm -\end_layout - -\end_inset - -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy - eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam - voluptua. - At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor - sit amet. - Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy - eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam - voluptua. -\end_layout - -\begin_layout Plain Layout -At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor - sit amet. - Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy - eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam - voluptua. - At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor - sit amet. -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -Comment text -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -PDF-Sideline has some limitations: -\end_layout - -\begin_layout Itemize -the comment should not be longer than one page, otherwise the recognition - of the page could fail -\end_layout - -\begin_layout Itemize -when using Xe\SpecialChar TeX - you have to assure that the page dimensions are internally - output, e. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} -\end_inset - -with the document class option -\series bold -pagesize -\series default - for the KOMA-Script classes, or the option -\series bold -pagesize -\series default - for the \SpecialChar LaTeX --package -\series bold -typearea -\series default -. -\end_layout - -\begin_layout Subsection -PDF-Square -\end_layout - -\begin_layout Standard -This will typeset a rectangular box. - Here is an example without any options: -\begin_inset Flex PDF-Square -status open - -\begin_layout Plain Layout -a simple PDF-Square comment -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Below this text you see a rectangle comment with a curvy outline as example - of a PDF-Square with options. -\end_layout - -\begin_layout Standard -\begin_inset Flex PDF-Square -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status collapsed - -\begin_layout Plain Layout -height=2cm,width=4.8cm,voffset=-2cm,hoffset=1cm,opacity=1.0,justification=right,ic -olor=CornflowerBlue,bse=cloudy,bsei=2.5,linewidth=8pt -\end_layout - -\end_inset - -A fancy PDF-Square comment -\end_layout - -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\end_layout - -\begin_layout Subsection -PDF-Tooltip -\end_layout - -\begin_layout Standard -With this you can annotate any object with a tooltip. -\begin_inset Foot -status open - -\begin_layout Plain Layout -All objects that can be set into a \SpecialChar TeX --box to measure its size. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The PDF-Tooltip inset has a mandatory argument for the tooltip. - The object that should be annotated is set into the PDF-Tooltip inset, - the tooltip is written into the mandatory argument. - Here is as example of a word with a tooltip: -\begin_inset Flex PDF-Tooltip -status open - -\begin_layout Plain Layout -\begin_inset Argument post:1 -status open - -\begin_layout Plain Layout -This is a tooltip! -\end_layout - -\end_inset - - -\color red -word -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Since a tooltip can be used for almost any object, one can also use it for - chemical notations in math: -\begin_inset Flex PDF-Tooltip -status open - -\begin_layout Plain Layout -\begin_inset Argument post:1 -status open - -\begin_layout Plain Layout -Sulfuric acid -\end_layout - -\end_inset - - -\begin_inset Formula $\ce{H2SO4}$ -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The PDF-Tooltip inset has also an option that is used to correct the size - of the tooltip for math (if necessary) or to disable an annotation. - Here is an example with a mathstyle option: -\end_layout - -\begin_layout Standard -\begin_inset Flex PDF-Tooltip -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -mathstyle= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -displaystyle -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Argument post:1 -status open - -\begin_layout Plain Layout -little Gauß -\end_layout - -\end_inset - - -\begin_inset Formula $\sum_{i=1}^{n}i=\frac{1}{2}n\cdot(n+1)$ -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Comment definitions -\end_layout - -\begin_layout Standard -The package -\series bold -pdfcomment -\series default - provides the following environments to define or change PDF comments: -\end_layout - -\begin_layout Subsection -PDF-Comment setup -\begin_inset CommandInset label -LatexCommand label -name "subsec:PDF-Comment-setup" - -\end_inset - - -\end_layout - -\begin_layout Standard -With this custom inset you can reset the global (document-wide) options - at any time. - For example the default color for new PDF comments is blue. - To get Adobe Reader's yellow colored notes for all comments in your document, - add the PDF comment setup inset to the beginning of your document and insert - there the option -\series bold -color=yellow -\series default -. - This was also done in this document. -\end_layout - -\begin_layout Standard -By using its optional option -\series bold -local -\series default - you can keep the reset local within a group enclosed by \SpecialChar TeX --braces. - For example you want to reset the color only for two consecutive comments, - then enclose the PDF comment setup inset and the two comment insets in - \SpecialChar TeX --braces. - Here is an example: -\end_layout - -\begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - - -\begin_inset Flex PDF-Comment-Setup -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -local -\end_layout - -\end_inset - -color=Orange -\end_layout - -\end_inset - - -\begin_inset Flex PDF-Markup -status collapsed - -\begin_layout Plain Layout -PDF-Markup in orange -\end_layout - -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset Flex PDF-Annotation -status collapsed - -\begin_layout Plain Layout -PDF-Annotation in orange -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\begin_inset Flex PDF-Margin -status collapsed - -\begin_layout Plain Layout -default PDF-Margin comment -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -PDF Comment style -\end_layout - -\begin_layout Standard -This environment allows you to define a style for a PDF comment that can - be used by several comments. - Assuming you write a Math tutorial and want to add popup explanations in - the PDF for several expressions, then insert a PDF Comment style environment - before your first formula. - Name it for example -\series bold -MathPopup -\series default -, set the color to white with -\series bold -color=white -\series default - and highlight the whole formula with -\series bold -markup=Highlight -\series default -. -\end_layout - -\begin_layout Define PDF-Comment Style -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -MathPopup -\end_layout - -\end_inset - -color=white,markup=Highlight -\end_layout - -\begin_layout Standard -In the comments use the option -\series bold -style=MathPopup -\series default - to use your style. - Here is an example: -\end_layout - -\begin_layout Standard -\begin_inset Flex PDF-Markup -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\strikeout off -\uuline off -\uwave off -\noun off -\color none -style= -\family default -\series default -\shape default -\size default -\emph default -\bar default -\strikeout default -\uuline default -\uwave default -\noun default -\color inherit -MathPopup -\end_layout - -\end_inset - - -\begin_inset Formula $P(E)$ -\end_inset - - -\begin_inset Argument post:1 -status open - -\begin_layout Plain Layout - -\family roman -\series medium -\shape up -\size normal -\emph off -\bar no -\strikeout off -\uuline off -\uwave off -\noun off -\color none -Probability of event E -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -\begin_inset CommandInset label -LatexCommand label -name "sec:Avatars" - -\end_inset - -Avatars -\end_layout - -\begin_layout Standard -If you are for example reviewing a document, you need to add your name to - every of your comments. - In case you use a special layout of your annotations, you would have to - do a lot of copy-paste work. - But this can be avoided if you define for every comment author a special - avatar. -\end_layout - -\begin_layout Standard -Assuming your name is -\begin_inset Quotes eld -\end_inset - -Oleg Testman -\begin_inset Quotes erd -\end_inset - - you can define an avatar for your name using the environment -\family sans -Define -\begin_inset space ~ -\end_inset - -Avatar -\family default -. - Its mandatory option is the name. - In your case, name it -\series bold -Oleg -\series default -. - Add behind the name of the avatar your name as author by writing -\series bold -author={Oleg Testman} -\series default -. -\begin_inset Newline newline -\end_inset - -You might use a special icon to see at the first look which comments were - made by you. - You therefore add behind the author-statement, separated by a comma, -\begin_inset Quotes eld -\end_inset - - -\series bold -icon=Check -\series default - -\begin_inset Quotes erd -\end_inset - - to get a checkmark. -\begin_inset Foot -status open - -\begin_layout Plain Layout -For all possible icons, see the -\series bold -pdfcomment -\series default - manual. -\end_layout - -\end_inset - - the checkmark should have a green color so that you add -\series bold -color=lime -\series default - to the avatar definition. - Your whole definition reads now -\begin_inset Newline newline -\end_inset - - -\series bold -author={Oleg Testman},icon=Check,color=lime -\end_layout - -\begin_layout Define Avatar -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Oleg -\end_layout - -\end_inset - -author={Oleg Testman},icon=Check,color=lime -\end_layout - -\begin_layout Standard -To use now your avatar for PDF comments you have two choices: -\end_layout - -\begin_layout Enumerate -You set up that all PDF comments in the document use your avatar. - This is done by inserting the custom inset -\family sans -PDF -\begin_inset space ~ -\end_inset - -Comment-Setup -\family default - before the first PDF comment in your document. - Insert to this inset -\series bold -avatar=Oleg -\series default -. -\end_layout - -\begin_layout Enumerate -You add -\series bold -avatar=Oleg -\series default - to the options of a particular PDF comment. - The avatar will then only be used for this comment. -\end_layout - -\begin_layout Standard -Here is an example for the -\family sans -PDF -\begin_inset space ~ -\end_inset - -Comment-Setup -\family default - method: -\begin_inset Flex PDF-Comment-Setup -status open - -\begin_layout Plain Layout -avatar=Oleg -\end_layout - -\end_inset - - -\begin_inset Flex PDF-Annotation -status open - -\begin_layout Plain Layout -Oleg said: Wow, that's nice! -\end_layout - -\end_inset - - -\begin_inset Newline newline -\end_inset - -and here is another comment: -\begin_inset Flex PDF-Annotation -status open - -\begin_layout Plain Layout -Oleg also said: I hate to repeat myself. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Define Avatar -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -Dolittle -\end_layout - -\end_inset - -color=NavyBlue,opacity=0.5,open=false,icon=Circle,author={Dr. - Dolittle} -\end_layout - -\begin_layout Standard -Here is an example where another avatar -\begin_inset Quotes eld -\end_inset - -Dolittle -\begin_inset Quotes erd -\end_inset - - is only used for this comment: -\begin_inset Flex PDF-Margin -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -avatar=Dolittle -\end_layout - -\end_inset - -I am Dr. - Dolittle! Respect my authority! -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -List of PDF comments -\end_layout - -\begin_layout Standard -You can insert a list with all PDF comments using the environment -\family sans -List of PDF comments -\family default -. - By specifying options for it you can determine what parts of the comments - should appear in the list. - Here is the list for this document where only the comments of a defined - author are printed: -\end_layout - -\begin_layout List of PDF Comments -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -liststyle= -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -AuthorComment -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - -, heading = -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -List of PDF comments -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -You can also define your own style using the environment -\begin_inset Newline newline -\end_inset - - -\family sans -Define -\begin_inset space ~ -\end_inset - -PDF -\begin_inset space ~ -\end_inset - -Comment -\begin_inset space ~ -\end_inset - -List -\begin_inset space ~ -\end_inset - -Style -\begin_inset Newline newline -\end_inset - - -\family default -if you know enough about the tricky \SpecialChar LaTeX - internals. - With the environment -\begin_inset Newline newline -\end_inset - - -\family sans -Set -\begin_inset space ~ -\end_inset - -PDF -\begin_inset space ~ -\end_inset - -Comment -\begin_inset space ~ -\end_inset - -List -\begin_inset space ~ -\end_inset - -Style -\begin_inset Newline newline -\end_inset - - -\family default -you can set a list style. -\end_layout - -\begin_layout Define PDF-Comment List Style -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -MyStyle -\end_layout - -\end_inset - - -\backslash -makeatletter -\backslash -pc@lopt@author -\backslash - - -\backslash -pc@lopt@subject -\backslash - ( -\backslash -pc@lopt@deadline) -\backslash -makeatother -\end_layout - -\begin_layout Set PDF-Comment List Style -AuthorCommentDeadline -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - Only one list of comments can be printed in the PDF. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -General Hints -\end_layout - -\begin_layout Itemize -To be able to use all kinds of colors and color definitions you must load - the \SpecialChar LaTeX - package -\series bold -xcolor -\series default - in the document preamble this way: -\begin_inset Newline newline -\end_inset - - -\series bold - -\backslash -usepackage[svgnames,rgb]{xcolor} -\end_layout - -\begin_layout Itemize -If you have two consecutive PDF -\begin_inset space ~ -\end_inset - -comment insets, the will appear in the PDF one over each other: -\begin_inset Flex PDF-Comment-Setup -status open - -\begin_layout Plain Layout -avatar=Oleg -\end_layout - -\end_inset - - -\begin_inset Flex PDF-Annotation -status open - -\begin_layout Plain Layout -Oleg said: Wow, that's nice! -\end_layout - -\end_inset - - -\begin_inset Flex PDF-Annotation -status open - -\begin_layout Plain Layout -Oleg also said: I hate to repeat myself. -\end_layout - -\end_inset - - -\begin_inset Newline newline -\end_inset - -To avoid that separate them with whitespace like protected space: -\begin_inset Flex PDF-Annotation -status open - -\begin_layout Plain Layout -Oleg said: Wow, that's nice! -\end_layout - -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset space ~ -\end_inset - - -\begin_inset Flex PDF-Annotation -status open - -\begin_layout Plain Layout -Oleg also said: I hate to repeat myself. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Itemize -You cannot use non-Latin characters in your comment or in the author name. - The reason is that PDFs use a special character encoding that is not compatible - with \SpecialChar LaTeX -. -\end_layout - -\end_body -\end_document diff --git a/lib/examples/PDF-form.lyx b/lib/examples/PDF-form.lyx deleted file mode 100644 index 5f83c33cd8..0000000000 --- a/lib/examples/PDF-form.lyx +++ /dev/null @@ -1,3374 +0,0 @@ -#LyX 2.3 created this file. For more info see http://www.lyx.org/ -\lyxformat 544 -\begin_document -\begin_header -\save_transient_properties true -\origin /systemlyxdir/examples/ -\textclass scrartcl -\begin_preamble -% used to check for needed LaTeX packages -\usepackage{ifthen} - -% check for package insdljs -% used for JavScript code -\newboolean{insdljs} -\IfFileExists{insdljs.sty} - {\usepackage[pdftex]{insdljs} - \setboolean{insdljs}{true} - \pdfcatalog{/AA \the\pdflastobj\space 0 R}} - {\setboolean{insdljs}{false}} - -\ifinsdljs % only execute if package insdljs is installed - - \begin{insDLJS}[exaaae]{exaaae}{JavaScript} - - function validateTime(){ - this.delay = true; - if((event.value == "u") || (event.value == "unlimited")) { - this.getField("from").display = display.hidden; - this.getField("until").display = display.hidden; - } else { - this.getField("from").display = display.visible; - this.getField("until").display = display.visible; - this.getField("from").setFocus(); - } - this.delay = false; - } - - function checkNumber() { - event.rc = true; - if (!Number(event.value)) - { - app.alert("Value must be a number!"); - event.value = ""; - } else { - event.target.textColor = color.green; - } - -} - - \end{insDLJS} - -\fi % end \ifinsdljs - -% if pdflatex is used -\usepackage{ifpdf} -\ifpdf - -% set fonts for nicer pdf view -\IfFileExists{lmodern.sty} - {\usepackage{lmodern}}{} - -\fi % end if pdflatex is used -\end_preamble -\options BCOR8mm,pagesize -\use_default_options false -\begin_modules -pdfform -\end_modules -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding auto -\fontencoding global -\font_roman "default" "default" -\font_sans "default" "default" -\font_typewriter "default" "default" -\font_math "auto" "auto" -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 100 -\font_tt_scale 100 100 -\use_microtype false -\use_dash_ligatures false -\graphics default -\default_output_format pdf2 -\output_sync 0 -\bibtex_command bibtex -\index_command default -\paperfontsize 12 -\spacing single -\use_hyperref true -\pdf_title "Description of the module pdfcomment" -\pdf_author "Uwe Stöhr" -\pdf_subject "PDF form" -\pdf_keywords "LyX, PDF forms, hyperref" -\pdf_bookmarks true -\pdf_bookmarksnumbered true -\pdf_bookmarksopen true -\pdf_bookmarksopenlevel 2 -\pdf_breaklinks false -\pdf_pdfborder false -\pdf_colorlinks false -\pdf_backref false -\pdf_pdfusetitle false -\pdf_quoted_options "pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, urlbordercolor={1 0 0}" -\papersize a4paper -\use_geometry false -\use_package amsmath 1 -\use_package amssymb 1 -\use_package cancel 1 -\use_package esint 1 -\use_package mathdots 1 -\use_package mathtools 1 -\use_package mhchem 1 -\use_package stackrel 1 -\use_package stmaryrd 1 -\use_package undertilde 1 -\cite_engine basic -\cite_engine_type default -\biblio_style plain -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date true -\justification true -\use_refstyle 0 -\use_minted 0 -\notefontcolor #0000ff -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 2 -\paragraph_separation skip -\defskip medskip -\is_math_indent 0 -\math_numbering_side default -\quotes_style english -\dynamic_quotes 0 -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Begin PDF Form -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -action=mailto:forms@lyx.test?subject=The submitted PDF form, method=post -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Title -Description of the module PDF Form -\end_layout - -\begin_layout Author -Uwe Stöhr -\end_layout - -\begin_layout Standard -\begin_inset Note Note -status open - -\begin_layout Plain Layout -To export all parts of this document to PDF the \SpecialChar LaTeX --package -\series bold -insdljs -\series default - must be installed. - If it is not installed you can export the document anyway but the example - in the section about dynamic form elements will not appear in the output. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -By loading the module PDF -\begin_inset space ~ -\end_inset - -Form the whole document or a part of it can be made a PDF form. - You can add all possible form elements like text fields buttons etc. - This document describes how this is done. -\end_layout - -\begin_layout Section -Preparation -\begin_inset CommandInset label -LatexCommand label -name "sec:Preparation" - -\end_inset - - -\end_layout - -\begin_layout Standard -At first load the module PDF -\begin_inset space ~ -\end_inset - -Form in the document settings of your file. - To make the whole document a form, insert the environment -\family sans - Begin -\begin_inset space ~ -\end_inset - -PDF -\begin_inset space ~ -\end_inset - -Form -\family default - from \SpecialChar LyX -'s dropdown menu at the beginning of the document. - If only a part of the document should be a form, add -\family sans -Begin -\begin_inset space ~ -\end_inset - -PDF -\begin_inset space ~ -\end_inset - -Form -\family default - at the position where the form should start. -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - It is only possible to have one form in a PDF file! -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -If the form data should be submitted to a server or the like, then you must - specify the URL as parameter of the -\family sans -Begin -\begin_inset space ~ -\end_inset - -PDF -\begin_inset space ~ -\end_inset - -Form -\family default - environment. - This is done by using the menu -\family sans -Insert\SpecialChar menuseparator -PDF -\begin_inset space ~ -\end_inset - -Form -\begin_inset space ~ -\end_inset - -Parameters -\family default -. - For example in this document the following was inserted to the parameter - inset: -\end_layout - -\begin_layout Standard - -\series bold -action=mailto:forms@lyx.test?subject=The submitted PDF form, -\begin_inset Newline newline -\end_inset - -method=post -\end_layout - -\begin_layout Standard -This sends the form data as email to -\emph on -forms@lyx.test -\emph default - when the user presses the submit button. - The email subject will be -\begin_inset Quotes eld -\end_inset - -The submitted PDF form -\begin_inset Quotes erd -\end_inset - - and the submit method is -\series bold -post -\series default -. - (The other possible method would be -\series bold -get -\series default -.) For more about submitting see sec. -\begin_inset space \thinspace{} -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "subsec:Submit-button" - -\end_inset - -. -\end_layout - -\begin_layout Standard -\begin_inset Newpage newpage -\end_inset - - -\end_layout - -\begin_layout Section -Form elements -\end_layout - -\begin_layout Standard -There are 6 -\begin_inset space ~ -\end_inset - -possible elements in a PDF form: -\end_layout - -\begin_layout Subsection -Text field -\end_layout - -\begin_layout Standard -A text field is added by inserting the custom inset -\family sans -TextField -\family default - using the menu -\family sans -Insert\SpecialChar menuseparator -Custom -\begin_inset space ~ -\end_inset - -Insets -\family default -. - Write inside the inset the label for the text field that will be printed - in the PDF output before the field. - Here is an example: -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex TextField -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=customer -\end_layout - -\end_inset - -Enter your name here: -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -You must also specify a name for text fields. - To do this set the cursor into its -\family sans -Params -\family default - inset and insert the parameter -\series bold -name=customer -\series default - (where -\series bold -customer -\series default - is the field name). -\end_layout - -\begin_layout Standard -Using the same name for several text fields results in an automatic duplication - of the inserted text. - This is for example useful if the user should input a date that should - appear at different places in the form. -\begin_inset Newline newline -\end_inset - -Here are 2 -\begin_inset space ~ -\end_inset - -fields as example: Fill one and see that the other one will be filled automatica -lly when you click outside of the field: -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex TextField -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=identic -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex TextField -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=identic -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - Special characters should be avoided in element names. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -All form fields can be customized by adding parameters. -\end_layout - -\begin_layout Standard -Here is a customized multiline text field with a width of 60 -\begin_inset space \thinspace{} -\end_inset - -% of the text width, 3 -\begin_inset space \thinspace{} -\end_inset - -cm height and a proposed content: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex TextField -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=customer2, multiline, width=0.6 -\backslash -textwidth, height=3cm, value={proposed text} -\end_layout - -\end_inset - -Enter your name here: -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - It is highly recommended to use a uniform layout of all fields in a form. - See sec. -\begin_inset space \thinspace{} -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Form-element-customization" - -\end_inset - - how this is done. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Check box -\end_layout - -\begin_layout Standard -A check box is added by inserting the custom inset -\family sans -CheckBox -\family default -. - Write inside the inset the label for the box. - Here is an example: -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex CheckBox -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=age -\end_layout - -\end_inset - -Are you older than 18 years? -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -You must specify also for check boxes a name. - Insert e. -\begin_inset space \thinspace{} -\end_inset - -g. -\begin_inset space \space{} -\end_inset - -the parameter -\series bold -name=age -\series default - (where -\series bold -age -\series default - is the name) into the -\family sans -Params -\family default - inset. -\end_layout - -\begin_layout Subsection -Choice menu -\end_layout - -\begin_layout Standard -A choice menu is added by inserting the custom inset -\family sans -ChoiceMenu -\family default -. - A label for the inset is added by using the menu -\family sans -Insert\SpecialChar menuseparator -Label -\family default -. - The different choices are inserted to the inset as comma-separated list. - There are 3 -\begin_inset space ~ -\end_inset - -choice menu types: -\end_layout - -\begin_layout Description -Radio Only one choice can be selected -\end_layout - -\begin_layout Description -Combo The choices are listed in a combo box (dropdown list) but the user - is allowed to input something that is not in the predefined list. -\end_layout - -\begin_layout Description -Popdown All choices are listed below each other. - If the menu is not high enough a scroll bar is automatically added. -\end_layout - -\begin_layout Standard -To determine the choice menu type one uses the parameter -\series bold -radio -\series default -, -\series bold -combo -\series default - or -\series bold -popdown -\series default -. -\end_layout - -\begin_layout Standard -Here is an example for the radio type: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex ChoiceMenu -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -radio, name=radio -\end_layout - -\end_inset - -male=m, female=f -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -Sex: -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Here is an example for the combo type: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex ChoiceMenu -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -combo, name=combo -\end_layout - -\end_inset - -Albania=Al, Armenia=Ar, Azerbaidschan=Az -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -Country: -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Here is an example for the popdown type: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex ChoiceMenu -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -popdown, name=country -\end_layout - -\end_inset - -Albania=Al, Armenia=Ar, Azerbaidschan=Az -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -Country: -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -You must also specify a name for choice menus. - Insert for example the parameter -\series bold -name=country -\series default - (where -\series bold -country -\series default - is the name) into the -\family sans -Params -\family default - inset. -\end_layout - -\begin_layout Standard -It is recommended to add a short name for every choice to be able to access - them and to know which one was chosen by the user. - This is done by adding -\series bold -=name -\series default - behind each choice (where -\series bold -name -\series default - is the choice name). - For example the radio type example contains this choice list: -\series bold - male=m, female=f -\series default -. - If the user chose -\begin_inset Quotes eld -\end_inset - -male -\begin_inset Quotes erd -\end_inset - - you know that he chose the choice -\begin_inset Quotes eld -\end_inset - -m -\begin_inset Quotes erd -\end_inset - -. - With the name you can also preset/propose e.g. -\begin_inset space \space{} -\end_inset - -the choice -\begin_inset Quotes eld -\end_inset - -male -\begin_inset Quotes erd -\end_inset - - by adding the parameter -\series bold -default=m -\series default -. - Here is an example: -\end_layout - -\begin_layout Standard -\begin_inset Flex ChoiceMenu -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -radio, name=sex, default=m -\end_layout - -\end_inset - -male=m, female=f -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -Sex: -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Push button -\end_layout - -\begin_layout Standard -A push button is added by inserting the custom inset -\family sans -PushButton -\family default -. - Write inside the inset the label for the button. - Here is an example: -\end_layout - -\begin_layout Standard -\begin_inset Flex PushButton -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - -Don't click on this button or your fridge will be destroyed!!! -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The action that is triggered by pressing the button is specified by JavaScript - code. - To do this, add the parameter -\series bold -onclick={} -\series default - and insert the JavaScript code between the braces. - For info about JavaScript, see its documentation, -\begin_inset CommandInset citation -LatexCommand cite -key "JavaScript" -literal "true" - -\end_inset - -. - In the following example this JavaScript code was used: -\begin_inset Newline newline -\end_inset - - -\series bold -app.alert( -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -" -\end_layout - -\end_inset - -What the hell? Now you destroyed your fridge. - -\begin_inset Quotes eld -\end_inset - -Congratulations. -\begin_inset Quotes erd -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -" -\end_layout - -\end_inset - -) -\end_layout - -\begin_layout Standard -\begin_inset Flex PushButton -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -onclick={app.alert( -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -" -\end_layout - -\end_inset - -What the hell? Now you destroyed your fridge. - -\begin_inset Quotes eld -\end_inset - -Congratulations. -\begin_inset Quotes erd -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -" -\end_layout - -\end_inset - -)} -\end_layout - -\end_inset - -Don't click on this button or your fridge will be destroyed!!! -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - The outer quotes are part of the JavaScript code and must therefore be - inserted as \SpecialChar TeX - code! -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -A common usage for push buttons is to open a weblink. - Such a button is created by inserting a hyperlink as button text. - Here is an example: -\end_layout - -\begin_layout Standard -\begin_inset Flex PushButton -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset CommandInset href -LatexCommand href -name "Information how to fill out this form" -target "https://wiki.lyx.org" -literal "false" - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -To get rid of the predefined frame for weblinks add this to the additional - options in the document settings under -\family sans -PDF -\begin_inset space ~ -\end_inset - -properties -\family default -: -\end_layout - -\begin_layout Standard - -\series bold -urlbordercolor={1 0 0} -\end_layout - -\begin_layout Standard -if your push button border color is red (the default), otherwise use the - same color definition as for your push button border color. -\end_layout - -\begin_layout Subsection -Submit button -\begin_inset CommandInset label -LatexCommand label -name "subsec:Submit-button" - -\end_inset - - -\end_layout - -\begin_layout Standard -A submit button is used to submit the form data to a server. - It is added by inserting the custom inset -\family sans -SubmitButton -\family default -. - The label for the button is written into the inset. - Here is an example: -\end_layout - -\begin_layout Standard -\begin_inset Flex SubmitButton -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=submit1 -\end_layout - -\end_inset - -Send your data via email -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The submit button creates a forms data format (FDF) file (file extension - *.fdf) which is then submitted. - The FDF file contains only the form data. - They can later only be applied to a PDF form if all elements in the form - have a name. -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - You can only use a submit button if you specified the submit method and - a target in the inset -\family sans -PDF -\begin_inset space ~ -\end_inset - -Form -\begin_inset space ~ -\end_inset - -Parameters -\family default -! See sec. -\begin_inset space \thinspace{} -\end_inset - - -\begin_inset CommandInset ref -LatexCommand ref -reference "sec:Preparation" - -\end_inset - - for the description. - If there are no specifications you will get \SpecialChar LaTeX - errors. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Reset button -\end_layout - -\begin_layout Standard -A reset button is used to reset all form elements to the initial state. - It is added by inserting the custom inset -\family sans -ResetButton -\family default -. - The label for the button is written into the inset. - Here is an example: -\end_layout - -\begin_layout Standard -\begin_inset Flex ResetButton -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=reset1 -\end_layout - -\end_inset - -Reset the form -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Form element customization -\begin_inset CommandInset label -LatexCommand label -name "sec:Form-element-customization" - -\end_inset - - -\end_layout - -\begin_layout Standard -Since all form elements should look uniform, one can determine their layout - using the following styles: -\end_layout - -\begin_layout Description -Text -\begin_inset space ~ -\end_inset - -Field -\begin_inset space ~ -\end_inset - -Style -\end_layout - -\begin_layout Description -Check -\begin_inset space ~ -\end_inset - -Box -\begin_inset space ~ -\end_inset - -Style -\end_layout - -\begin_layout Description -List -\begin_inset space ~ -\end_inset - -Box -\begin_inset space ~ -\end_inset - -Style affects all choice menu types -\end_layout - -\begin_layout Description -Combo -\begin_inset space ~ -\end_inset - -Box -\begin_inset space ~ -\end_inset - -Style affects only the combo box style -\end_layout - -\begin_layout Description -Popdown -\begin_inset space ~ -\end_inset - -Box -\begin_inset space ~ -\end_inset - -Style affects only the popdown box style -\end_layout - -\begin_layout Description -Radio -\begin_inset space ~ -\end_inset - -Box -\begin_inset space ~ -\end_inset - -Style affects only the radio box style -\end_layout - -\begin_layout Description -Push -\begin_inset space ~ -\end_inset - -Button -\begin_inset space ~ -\end_inset - -Style -\end_layout - -\begin_layout Description -Submit -\begin_inset space ~ -\end_inset - -Button -\begin_inset space ~ -\end_inset - -Style -\end_layout - -\begin_layout Description -Reset -\begin_inset space ~ -\end_inset - -Button -\begin_inset space ~ -\end_inset - -Style -\end_layout - -\begin_layout Standard -The content of the styles is a comma-separated list of parameters. - The possible parameters are listed in sec. -\begin_inset space \thinspace{} -\end_inset - -6.2 -\begin_inset Quotes eld -\end_inset - -Forms optional parameters -\begin_inset Quotes erd -\end_inset - - of the documentation of the \SpecialChar LaTeX - package -\series bold -hyperref -\series default -, -\begin_inset CommandInset citation -LatexCommand cite -key "hyperref" -literal "true" - -\end_inset - -. - It is important that the parameter -\emph on -print -\emph default - is always part of the definition. - Otherwise the elements will not appear in the PDF. - The defined style is applied to all elements following the definition. -\end_layout - -\begin_layout Subsubsection* -Here are some examples: -\end_layout - -\begin_layout Text Field Style -print, bordercolor=red, borderstyle=U, backgroundcolor=lightgray, color=lime, - maxlen=10, align=2, charsize=16pt -\begin_inset Note Note -status open - -\begin_layout Plain Layout -The parameter -\series bold -borderstyle -\series default - can be -\series bold -U -\series default - (underlined), -\series bold -S -\series default - (solid), -\series bold -D -\series default - (dashed), -\series bold -B -\series default - (bevel) or -\series bold -I -\series default - (inverted bevel). -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Check Box Style -print, borderstyle=S, checkboxsymbol= -\backslash -ding{55} -\end_layout - -\begin_layout Combo Box Style -print, bordercolor={0.33 0.66 0.33}, borderstyle=D -\end_layout - -\begin_layout Popdown Box Style -print, menulength=2 -\begin_inset Note Note -status collapsed - -\begin_layout Plain Layout -The parameter -\series bold - menulength -\series default - determines the number of displayed menu entries. - It does not work currently because of a bug in the \SpecialChar LaTeX - package -\series bold -hyperref -\series default -. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Radio Box Style -print, borderstyle=I, radiosymbol=3 -\end_layout - -\begin_layout Push Button Style -print, borderstyle=B, bordercolor=lime -\end_layout - -\begin_layout Submit Button Style -print, borderwidth=0, bordercolor=white -\end_layout - -\begin_layout Reset Button Style -print, bordercolor=lime -\end_layout - -\begin_layout Itemize -Text field with gray background, lime text color, a red border only below - the field, right alignment, 16 -\begin_inset space \thinspace{} -\end_inset - -pt font size and a limitation for maximal 10 -\begin_inset space ~ -\end_inset - -characters to insert: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex TextField -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - -Enter your name here: -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - To see in -\emph on -Adobe Reader -\emph default - and -\emph on -Acrobat -\emph default - custom background colors you must disable in these programs the highlighting - of form fields. - (Option -\begin_inset Quotes eld -\end_inset - -Show border hover color for fields -\begin_inset Quotes erd -\end_inset - -) -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Itemize -Check box with normal border and symbol -\backslash -ding{55}: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex CheckBox -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout - -\end_layout - -\end_inset - -Are you older than 18 years? -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The symbol is either specified as number or with the command -\begin_inset Newline newline -\end_inset - - -\series bold - -\backslash -ding{number} -\series default - -\begin_inset Newline newline -\end_inset - -where -\series bold -number -\series default - is one of the possible numbers listed in Table -\begin_inset space ~ -\end_inset - -2 of the documentation of the \SpecialChar LaTeX - package -\series bold -pifont -\series default -, -\begin_inset CommandInset citation -LatexCommand cite -key "pifont" -literal "true" - -\end_inset - -. -\end_layout - -\begin_layout Itemize -Combo choice menu with dashed, colored border where the last entry is preselecte -d: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex ChoiceMenu -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -combo, name=combo2, default=Az -\end_layout - -\end_inset - -Albania=Al, Armenia=Ar, Azerbaidschan=Az -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -Country: -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Itemize -Popdown choice menu where the second entry is preselected: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex ChoiceMenu -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -popdown, name=country2, default=Ar -\end_layout - -\end_inset - -Albania=Al, Armenia=Ar, Azerbaidschan=Az -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -Country: -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default -The parameters -\series bold -borderstyle B -\series default - and -\series bold -I -\series default - and -\series bold -color -\series default - have no effect for popdown choice menus. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Itemize -Radio choice menu with inverted bevel border and symbol number -\begin_inset space ~ -\end_inset - -3 as checkmark: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex ChoiceMenu -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -radio, name=radio2 -\end_layout - -\end_inset - -male=m, female=f -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -Sex: -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - The parameters -\series bold -backgroundcolor -\series default -, -\series bold -color -\series default -, -\series bold -height -\series default -and -\series bold -width -\series default - have no effect for push, submit and reset buttons. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -As workaround use a colored box and/or color the box text. -\end_layout - -\begin_layout Itemize -Push button with a bevel border and colored text: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex PushButton -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -onclick={app.alert( -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -" -\end_layout - -\end_inset - -Why do you click this? -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -" -\end_layout - -\end_inset - -)} -\end_layout - -\end_inset - - -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 1 -width "" -special "none" -height "1in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "lime" -status open - -\begin_layout Plain Layout - -\color red -Don't click on this button!!! -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset VSpace bigskip -\end_inset - - -\end_layout - -\begin_layout Itemize -Submit button without border, with cyan background and increased height: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex SubmitButton -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=submit2 -\end_layout - -\end_inset - - -\begin_inset Box Frameless -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 0 -use_makebox 1 -width "6cm" -special "none" -height "1in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "cyan" -status open - -\begin_layout Plain Layout -\begin_inset Box Frameless -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 1 -use_makebox 0 -width "4.5cm" -special "none" -height "4in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "none" -status open - -\begin_layout Plain Layout -Send your data via mail -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset VSpace bigskip -\end_inset - - -\end_layout - -\begin_layout Itemize -Reset button with a width of 7 -\begin_inset space \thinspace{} -\end_inset - -cm: -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex ResetButton -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=reset2 -\end_layout - -\end_inset - - -\begin_inset Box Frameless -position "t" -hor_pos "c" -has_inner_box 1 -inner_pos "t" -use_parbox 0 -use_makebox 1 -width "7cm" -special "none" -height "1in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "none" -status open - -\begin_layout Plain Layout -Reset the form -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Newpage newpage -\end_inset - - -\end_layout - -\begin_layout Section -PDF action buttons -\end_layout - -\begin_layout Standard -One often needs basic actions to be done by the PDF viewer program, for - example to print the form. - Such PDF program-specific actions can be triggered by adding inserting - the custom inset -\family sans -PDFAction -\family default -. - The PDF viewers -\emph on -Acrobat -\emph default - and -\emph on -Adobe Reader -\emph default - can handle all possible actions while other PDF viewers might only support - some of them. - However, all PDF viewers support the basic things like printing, save -\begin_inset space ~ -\end_inset - -as, view in fullscreen etc.. -\end_layout - -\begin_layout Standard -To specify the action insert its name to the -\family sans -Action -\family default - inset. - A list with possible action names can be found in sec. -\begin_inset space \thinspace{} -\end_inset - -5 -\begin_inset Quotes eld -\end_inset - -Acrobat-specific behavior -\begin_inset Quotes erd -\end_inset - - of the documentation of the \SpecialChar LaTeX - package -\series bold -hyperref -\series default -, -\begin_inset CommandInset citation -LatexCommand cite -key "hyperref" -literal "true" - -\end_inset - -. -\end_layout - -\begin_layout Standard -Here are some examples: -\end_layout - -\begin_layout Description -Printing: -\begin_inset Flex PDFAction -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -Print -\end_layout - -\end_inset - -Print the document -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Description -Save -\begin_inset space ~ -\end_inset - -as: -\begin_inset Flex PDFAction -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -SaveAs -\end_layout - -\end_inset - -Save document as -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Description -View -\begin_inset space ~ -\end_inset - -in -\begin_inset space ~ -\end_inset - -fullscreen: -\begin_inset Flex PDFAction -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -FullScreen -\end_layout - -\end_inset - -View the form in fullscreen -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Action button customization -\begin_inset CommandInset label -LatexCommand label -name "subsec:Action-button-customization" - -\end_inset - - -\end_layout - -\begin_layout Standard -Customizing the action buttons requires the usage of boxes because things - like the width, height and border separation cannot be specified as button - parameters. -\end_layout - -\begin_layout Standard -The easiest way to customize the buttons is to fill it with a custom box. - For example the button should be 5 -\begin_inset space \thinspace{} -\end_inset - -cm wide and have the height of 2 -\begin_inset space ~ -\end_inset - -lines. - Then create this parbox: -\end_layout - -\begin_layout Standard -\begin_inset Box Frameless -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 1 -use_makebox 0 -width "5cm" -special "none" -height "2in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "none" -status open - -\begin_layout Plain Layout -\noindent -Save form as -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -inside a -\family sans -PDFAction -\family default - inset. - This is the result: -\end_layout - -\begin_layout Standard -\begin_inset Flex PDFAction -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -SaveAs -\end_layout - -\end_inset - - -\begin_inset Box Frameless -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 1 -use_makebox 0 -width "5cm" -special "none" -height "2in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "none" -status open - -\begin_layout Plain Layout -Save form as -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout PDF Link Setup -pdfborder={0 0 0} -\begin_inset Note Note -status open - -\begin_layout Plain Layout -Sets the thickness of the predefined link border to zero as described below. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -To customize the border color, border thickness and the distance to the - border one changes the border settings of the box. - An example with a 4 -\begin_inset space \thinspace{} -\end_inset - -pt thick, teal border and 3 -\begin_inset space \thinspace{} -\end_inset - -pt border separation : -\begin_inset VSpace defskip -\end_inset - - -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex PDFAction -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -SaveAs -\end_layout - -\end_inset - - -\begin_inset Box Boxed -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 1 -use_makebox 0 -width "5cm" -special "none" -height "2in" -height_special "totalheight" -thickness "4pt" -separation "3pt" -shadowsize "4pt" -framecolor "teal" -backgroundcolor "white" -status open - -\begin_layout Plain Layout -\noindent -Save form as -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -To customize the border thickness, add the command -\series bold -pdfborder={0 0 t} -\series default - to the additional options in the document settings under -\family sans -PDF -\begin_inset space ~ -\end_inset - -properties -\family default - and replace -\series bold -t -\series default - with a number that is the thickness in pixels. - If you want to change the border thickness only for certain buttons, use - the environment -\family sans -PDF -\begin_inset space ~ -\end_inset - -link -\begin_inset space ~ -\end_inset - -setup -\family default - before the button and insert there the command -\series bold -pdfborder -\series default -. - The default value of -\series bold -pdfborder -\series default - is -\series bold -{0 0 1} -\series default -. -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - -\series bold -pdfborder -\series default - affects all link types, not only the action links. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout PDF Link Setup -pdfborder={0 0 4} -\end_layout - -\begin_layout Standard -An example with a 4 -\begin_inset space ~ -\end_inset - -pixel thick border: -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex PDFAction -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -SaveAs -\end_layout - -\end_inset - - -\begin_inset Box Frameless -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 1 -use_makebox 0 -width "5cm" -special "none" -height "2in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "none" -status open - -\begin_layout Plain Layout -\noindent -Save form as -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -To change the border color use the command -\series bold -menubordercolor={r g b} -\series default - where -\series bold -r -\series default -, -\series bold -g -\series default - and -\series bold -b -\series default - are numbers between 0 and 1 for the colors red, green and blue. - The default value of -\series bold -menubordercolor -\series default - is -\series bold -{1 0 0} -\series default -. -\end_layout - -\begin_layout PDF Link Setup -pdfborder={0 0 1}, menubordercolor={0.1 0.9 0.5} -\end_layout - -\begin_layout Standard -An example with -\series bold -menubordercolor={0.1 0.9 0.5} -\series default -: -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex PDFAction -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -SaveAs -\end_layout - -\end_inset - - -\begin_inset Box Frameless -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 1 -use_makebox 0 -width "5cm" -special "none" -height "2in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "none" -status open - -\begin_layout Plain Layout -\noindent -Save form as -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -To change the background color use a colored box. -\end_layout - -\begin_layout PDF Link Setup -pdfborder={0 0 0} -\end_layout - -\begin_layout Standard -An example without a border and with lime background color: -\begin_inset Newline newline -\end_inset - - -\begin_inset Flex PDFAction -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -SaveAs -\end_layout - -\end_inset - - -\begin_inset Box Frameless -position "c" -hor_pos "c" -has_inner_box 1 -inner_pos "c" -use_parbox 1 -use_makebox 0 -width "5cm" -special "none" -height "2in" -height_special "totalheight" -thickness "0.4pt" -separation "3pt" -shadowsize "4pt" -framecolor "black" -backgroundcolor "lime" -status open - -\begin_layout Plain Layout -\noindent -Save form as -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout PDF Link Setup -pdfborder={0 0 1}, menubordercolor={1 0 0} -\end_layout - -\begin_layout Section -Dynamic form elements -\end_layout - -\begin_layout Standard -It is also possible to have dynamic form elements. - This means that depending on the actions of the user elements can (dis)appear - or change their appearance. - To use this feature, add these lines to your LaTeX preamble: -\end_layout - -\begin_layout Standard - -\series bold - -\backslash -usepackage[pdftex]{insdljs} -\begin_inset Newline newline -\end_inset - - -\backslash -pdfcatalog{/AA -\backslash -the -\backslash -pdflastobj -\backslash -space 0 R} -\end_layout - -\begin_layout Standard -Then add the necessary JavaScript code to your document LaTeX preamble or - as \SpecialChar TeX - code to your document. - For info about JavaScript, see its documentation, -\begin_inset CommandInset citation -LatexCommand cite -key "JavaScript" -literal "true" - -\end_inset - -. -\end_layout - -\begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -ifinsdljs -\end_layout - -\end_inset - - -\begin_inset Note Note -status open - -\begin_layout Plain Layout -The following section will only be displayed when the \SpecialChar LaTeX - package -\series bold -insdljs -\series default - is installed. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -For the following choice menu this JavaScript code was used: -\end_layout - -\begin_layout Standard -\begin_inset listings -lstparams "language=TeX" -inline false -status open - -\begin_layout Plain Layout - - -\backslash -begin{insDLJS}[exaaae]{exaaae}{JavaScript} -\end_layout - -\begin_layout Plain Layout - - function validateTime(){ -\end_layout - -\begin_layout Plain Layout - - this.delay = true; -\end_layout - -\begin_layout Plain Layout - - if((event.value == "u") || (event.value == "unlimited")) { -\end_layout - -\begin_layout Plain Layout - - this.getField("from").display = display.hidden; -\end_layout - -\begin_layout Plain Layout - - this.getField("until").display = display.hidden; -\end_layout - -\begin_layout Plain Layout - - } else { -\end_layout - -\begin_layout Plain Layout - - this.getField("from").display = display.visible; -\end_layout - -\begin_layout Plain Layout - - this.getField("until").display = display.visible; -\end_layout - -\begin_layout Plain Layout - - this.getField("from").setFocus(); -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - this.delay = false; -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - - -\backslash -end{insDLJS} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Note Greyedout -status open - -\begin_layout Plain Layout - -\series bold -Note: -\series default - -\emph on -All -\emph default - JavaScript functions must be inserted into the same -\family sans -insDLJS -\family default - environment. -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -The -\family sans -Parameters -\family default - of the following choice menu are -\begin_inset Newline newline -\end_inset - - -\series bold -name=contract,radio,default=tl,validate={validateTime();} -\end_layout - -\begin_layout Standard -\begin_inset Flex ChoiceMenu -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=contract,radio,default=tl,validate={validateTime();} -\end_layout - -\end_inset - -term-limited=tl, unlimited=u -\begin_inset Argument 2 -status open - -\begin_layout Plain Layout -Job contract: -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\begin_inset VSpace defskip -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Plain Layout -From: -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Flex TextField -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=from,width=10em -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset VSpace -1.5mm -\end_inset - - -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Plain Layout -Until: -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Plain Layout -\begin_inset Flex TextField -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=until,width=10em -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset VSpace bigskip -\end_inset - - -\end_layout - -\begin_layout Standard -To check and assure that the user only enters a number to a text field you - can for example use this JavaScript code: -\end_layout - -\begin_layout Standard -\begin_inset listings -lstparams "language=TeX" -inline false -status open - -\begin_layout Plain Layout - -function checkNumber() { -\end_layout - -\begin_layout Plain Layout - - event.rc = true; -\end_layout - -\begin_layout Plain Layout - - if (!Number(event.value)) { -\end_layout - -\begin_layout Plain Layout - - app.alert("Value must be a number!"); -\end_layout - -\begin_layout Plain Layout - - event.value = ""; -\end_layout - -\begin_layout Plain Layout - - } else { -\end_layout - -\begin_layout Plain Layout - - event.target.textColor = color.green; -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -An example text field: -\begin_inset Flex TextField -status open - -\begin_layout Plain Layout -\begin_inset Argument 1 -status open - -\begin_layout Plain Layout -name=onlyNumbers, align=1, validate={checkNumber();} -\end_layout - -\end_inset - - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -else -\end_layout - -\end_inset - - -\begin_inset Note Note -status open - -\begin_layout Plain Layout -The following will be displayed when the \SpecialChar LaTeX - package -\series bold -insdljs -\series default - is not installed: -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -You need to install the package -\series bold -insdljs -\series default - to see the content of this section in the output. -\end_layout - -\begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -fi -\end_layout - -\end_inset - - -\end_layout - -\begin_layout End PDF Form -\begin_inset Note Note -status open - -\begin_layout Plain Layout -keep this empty -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -General notes -\end_layout - -\begin_layout Itemize -Submitting and applying data requires that all form elements have a name. -\end_layout - -\begin_layout Itemize -Creating a PDF form requires pdf\SpecialChar TeX - or Lua\SpecialChar TeX -. - Use therefore either the \SpecialChar LyX - export formats -\family sans -PDF (pdflatex) -\family default - or -\family sans -PDF (LuaTeX) -\family default -. -\end_layout - -\begin_layout Itemize -To see in -\emph on -Adobe Reader -\emph default - and -\emph on -Acrobat -\emph default - custom background colors you must disable in these programs the highlighting - of form fields. - (Option -\begin_inset Quotes eld -\end_inset - -Show border hover color for fields -\begin_inset Quotes erd -\end_inset - -) -\end_layout - -\begin_layout Bibliography -\begin_inset CommandInset bibitem -LatexCommand bibitem -key "JavaScript" -literal "true" - -\end_inset - - -\begin_inset CommandInset href -LatexCommand href -name "JavaScript reference" -target "https://developer.mozilla.org/en/docs/Web/JavaScript/Reference" -literal "false" - -\end_inset - - -\end_layout - -\begin_layout Bibliography -\begin_inset CommandInset bibitem -LatexCommand bibitem -key "hyperref" -literal "true" - -\end_inset - - -\begin_inset CommandInset href -LatexCommand href -name "Documentation" -target "https://ctan.org/tex-archive/macros/latex/contrib/hyperref/doc/manual.pdf" -literal "false" - -\end_inset - - of the \SpecialChar LaTeX - package -\series bold -hyperref -\end_layout - -\begin_layout Bibliography -\begin_inset CommandInset bibitem -LatexCommand bibitem -key "pifont" -literal "true" - -\end_inset - - -\begin_inset CommandInset href -LatexCommand href -name "Documentation" -target "https://ctan.org/tex-archive/macros/latex/required/psnfss/psnfss2e.pdf" -literal "false" - -\end_inset - - of the \SpecialChar LaTeX - package -\series bold -pifont -\end_layout - -\end_body -\end_document diff --git a/lib/examples/Posters/Beamerposter.lyx b/lib/examples/Posters/Beamerposter.lyx new file mode 100644 index 0000000000..55e874194f --- /dev/null +++ b/lib/examples/Posters/Beamerposter.lyx @@ -0,0 +1,926 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass beamer +\begin_preamble +% This example has been adapted from the example given by the +% beamerposter authors, see +% https://ctan.org/tex-archive/macros/latex/contrib/beamerposter/example.tex +% + +% You can select your theme here. Any beamer theme without a sidebar should work: +\usetheme{Berlin} +% Note, however, that only dedicated beamerposter themes also generate +% a suitable poster title automatically (we do this manually, see the TeX code +% at the beginning of this document). +% Dedicated beamerposter themes are available at +% http://www-i6.informatik.rwth-aachen.de/~dreuw/latexbeamerposter.php + +% Load the beamerposter package +\usepackage[% + orientation=portrait, % comment out for landscape posters +% orientation=landscape,% uncomment for landscape posters + size=a0,% possible: a0b, a0, a1, a2, a3, a4, custom (with width=,height=) + scale=1.4,% scaling of fonts + debug% enable debug mode + ]{beamerposter} + +% Setting up the titling. See the note at the beginning of the document. +\title[Conference Posters]{Making Fancy Conference Posters with \LaTeX} +\author[LyX Team]{The LyX Team} +\institute[University of Nowhere]{% + Institute for Poster Generation, University of Nowhere} +\date{\today} + + + +\end_preamble +\options final +\use_default_options false +\begin_modules +multicol +\end_modules +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "lmodern" "default" +\font_sans "lmss" "default" +\font_typewriter "lmtt" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The whole poster is a single (huge) beamer frame! +\end_layout + +\begin_layout Plain Layout +You can use any beamer element, especially the use of blocks is advisable. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Below we set up a title line manually with \SpecialChar TeX + mode. + If you use a dedicated beamerposter theme, the title will be generated + automatically from the information given in the preamble. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +{ +\backslash +VERYHuge +\backslash +textbf{ +\backslash +inserttitle}} +\end_layout + +\end_inset + + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +{ +\backslash +veryHuge +\backslash +insertauthor +\backslash + $ +\backslash +cdot$ +\backslash +insertdate} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace vfill +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Fontsizes: From tiny to very huge! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block + +\size tiny +tiny +\end_layout + +\begin_layout Block + +\size scriptsize +scriptsize +\end_layout + +\begin_layout Block + +\size footnotesize +footnotesize +\end_layout + +\begin_layout Block + +\size normal +normalsize +\end_layout + +\begin_layout Block + +\size large +large +\end_layout + +\begin_layout Block + +\size larger +Large +\end_layout + +\begin_layout Block + +\size largest +LARGE +\end_layout + +\begin_layout Block +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +veryHuge +\end_layout + +\end_inset + + veryHuge +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +VeryHuge +\end_layout + +\end_inset + + VeryHuge +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +{ +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +VERYHuge +\end_layout + +\end_inset + + VERYHuge +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Frame +\begin_inset VSpace vfill +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Block +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Use beamer blocks! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +setlength{ +\backslash +columnsep}{2.2cm} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset Flex Multiple Columns +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +4 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +To set text in columns in this wide block, we use the +\begin_inset Quotes eld +\end_inset + +Multiple Columns +\begin_inset Quotes erd +\end_inset + + module. + It provides the +\begin_inset Quotes eld +\end_inset + +Columns +\begin_inset Quotes erd +\end_inset + + inset this text is written in. + We have set the space between the columns via the \SpecialChar LaTeX + code +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout + +\backslash +setlength{ +\backslash +columnsep} +\end_layout + +\end_inset + + that can be seen above in the \SpecialChar LyX + work area, and we went for four columns + to get a reasonable line length. + The +\begin_inset Quotes eld +\end_inset + +Multiple Columns +\begin_inset Quotes erd +\end_inset + + module is documented in +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Help\SpecialChar menuseparator +Additional Features +\end_layout + +\end_inset + +. +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Plain Layout +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. + Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. + At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet. +\end_layout + +\begin_layout Plain Layout +Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie + consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et + accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit + augue duis dolore te feugait nulla facilisi. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy + nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. +\end_layout + +\begin_layout Plain Layout +Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit + lobortis nisl ut aliquip ex ea commodo consequat. + Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie + consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et + accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit + augue duis dolore te feugait nulla facilisi. +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Frame +\begin_inset VSpace vfill +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Columns +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout +t +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Column +.48 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +linewidth +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Enumerated Lists +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Enumerate +some items +\end_layout + +\begin_layout Enumerate +some items +\end_layout + +\begin_layout Enumerate +some items +\end_layout + +\begin_layout Enumerate +some items +\end_layout + +\end_deeper +\begin_layout AlertBlock +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +An alert block to highlight things +\end_layout + +\end_inset + + +\end_layout + +\begin_layout AlertBlock +\begin_inset Graphics + filename beamer-knight1.png + width 30col% + +\end_inset + + +\end_layout + +\begin_layout ExampleBlock +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Contact +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "20col%" +special "none" +height "6cm" +height_special "none" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\begin_inset VSpace -36pt* +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Graphics + filename CV-image.png + scale 220 + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Box Frameless +position "t" +hor_pos "c" +has_inner_box 1 +inner_pos "t" +use_parbox 0 +use_makebox 0 +width "60col%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +John Doe +\end_layout + +\begin_layout Plain Layout +University of Nowhere +\end_layout + +\begin_layout Plain Layout +0000 Nowhere +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +doe@uon.edu +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset Flex URL +status open + +\begin_layout Plain Layout + +http://www.uon.edu/doe +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Column +.48 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +linewidth +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Some items and some math +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +some items and +\begin_inset Formula $\alpha=\gamma,\sum_{i}$ +\end_inset + + +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\begin_layout Standard +\begin_inset Formula +\[ +\alpha=\gamma,\sum_{i} +\] + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +More items \SpecialChar ldots + +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +some items +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +\SpecialChar ldots + and yet more! +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +some items and +\begin_inset Formula $\alpha=\gamma,\sum_{i}$ +\end_inset + + +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\begin_layout Itemize +some items +\end_layout + +\end_deeper +\begin_layout Block +\begin_inset Formula +\[ +\alpha=\gamma,\sum_{i} +\] + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Columns + +\end_layout + +\end_deeper +\end_body +\end_document diff --git a/lib/examples/Presentations/Beamer.lyx b/lib/examples/Presentations/Beamer.lyx new file mode 100644 index 0000000000..dd8cbda7c2 --- /dev/null +++ b/lib/examples/Presentations/Beamer.lyx @@ -0,0 +1,4572 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass beamer +\begin_preamble +% We use the "Berkeley" theme with a 3.45em-wide side bar on the left +\usetheme[left,width=3.45em]{Berkeley} +\end_preamble +\use_default_options true +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "lmodern" "default" +\font_sans "lmss" "default" +\font_typewriter "lmtt" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf2 +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 1 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +Presentations with Beamer and \SpecialChar LyX + +\end_layout + +\begin_layout Subtitle +An Introduction to the Basics +\end_layout + +\begin_layout Author +The \SpecialChar LyX + Team +\end_layout + +\begin_layout Date +Version +\begin_inset space ~ +\end_inset + +2.3 +\end_layout + +\begin_layout TitleGraphic +\begin_inset Graphics + filename ../doc/clipart/3D-structure-distort.pdf + lyxscale 30 + scale 10 + +\end_inset + + +\end_layout + +\begin_layout Frame + +\end_layout + +\begin_deeper +\begin_layout FrameTitle +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +presentation +\end_layout + +\end_inset + +Contents +\end_layout + +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Section +Purposes +\end_layout + +\begin_layout Frame +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout + ++- +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Purpose of the Beamer class +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +With the +\begin_inset Flex Structure +status open + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + class, you can produce presentation slides, which +\end_layout + +\begin_deeper +\begin_layout Itemize +are visually highly customizable +\end_layout + +\begin_layout Itemize +can be very well structured +\end_layout + +\begin_layout Itemize +can be constructed step-by-step ( +\begin_inset Quotes eld +\end_inset + +overlay +\begin_inset Quotes erd +\end_inset + + concept) +\end_layout + +\begin_layout Itemize +may contain different navigation paths (note that the slides contain all + sorts of hyperlinks) +\end_layout + +\begin_layout Itemize +use \SpecialChar LaTeX +'s superb output quality +\end_layout + +\begin_layout Itemize +might embed multimedia content (audio, video) +\end_layout + +\begin_layout Itemize +can easily be transformed to accompanying material (such as an article-like + handout) +\end_layout + +\begin_layout Itemize +and much more \SpecialChar ldots + +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Purpose of this presentation +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +This presentation +\end_layout + +\begin_deeper +\begin_layout Itemize +describes some basic features of +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +especially how they can be used with \SpecialChar LyX + +\end_layout + +\end_deeper +\begin_layout Frame +For more general and comprehensive information on +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + itself, please refer to the extensive class manual +\begin_inset CommandInset citation +LatexCommand cite +key "beamer-ug" +literal "true" + +\end_inset + + +\end_layout + +\begin_layout Section +Segments of a presentation +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +The global structure +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +A presentation usually consists of +\end_layout + +\begin_deeper +\begin_layout Itemize +a title page +\end_layout + +\begin_layout Itemize +slides that might be grouped to sections/parts +\end_layout + +\begin_layout Itemize +an appendix with additional information, such as a bibliography +\end_layout + +\end_deeper +\begin_layout Frame +We describe these global segments in what follows. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +The title page +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Within \SpecialChar LyX +, a title page is constructed by the layouts +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Title +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Subtitle +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Author +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Institute +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Date +\end_layout + +\end_inset + + and +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +TitleGraphic +\end_layout + +\end_inset + +. + +\end_layout + +\begin_deeper +\begin_layout Itemize +None of these elements is mandatory, but at least one must be given +\end_layout + +\begin_layout Itemize +The order of insertion does not matter (the real order is defined in the + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + theme) +\end_layout + +\begin_layout Itemize +For +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Title +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Subtitle +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Author +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Institute +\end_layout + +\end_inset + + and +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Date +\end_layout + +\end_inset + +, you can define +\begin_inset Quotes eld +\end_inset + +short +\begin_inset Quotes erd +\end_inset + + forms via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Short Title\SpecialChar breakableslash +Date\SpecialChar breakableslash +\SpecialChar ldots + +\end_layout + +\end_inset + + These are used in the sidebar\SpecialChar breakableslash +heading (given the theme actually provides + a sidebar\SpecialChar breakableslash +heading) +\end_layout + +\begin_layout Itemize +If you select +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Title (Plain Frame) +\end_layout + +\end_inset + + instead of +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Title +\end_layout + +\end_inset + +, the title page will have no sidebar or heading +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Slides/Frames +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Slides are called +\begin_inset Quotes eld +\end_inset + +frames +\begin_inset Quotes erd +\end_inset + + in +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + +. + Everything inside a frame is put on one slide (which itself might consist + of sub-slides). +\end_layout + +\begin_deeper +\begin_layout Itemize +Select the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Frame +\end_layout + +\end_inset + + style to start a frame +\end_layout + +\begin_layout Itemize +The frame title is to be inserted in the +\begin_inset Quotes eld +\end_inset + +Frame title +\begin_inset Quotes erd +\end_inset + + inset, which is automatically inserted for new frames or can be manually + inserted via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Frame Title +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +Alternatively, you can also use the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +FrameTitle +\end_layout + +\end_inset + + layout, which additionally offers a (rarely used) short frame title option, + and, more importantly, overlay options +\end_layout + +\begin_layout Itemize +A subtitle can be added via the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +FrameSubtitle +\end_layout + +\end_inset + + layout +\end_layout + +\begin_layout Itemize +Frame options (see +\begin_inset CommandInset citation +LatexCommand cite +key "beamer-ug" +literal "true" + +\end_inset + + for the diverse options) are inserted via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Frame Options +\end_layout + +\end_inset + +, overlay options via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Overlay Specifications +\end_layout + +\end_inset + + and +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Default Overlay Specifications +\end_layout + +\end_inset + + (we explain later what this is) +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +1-2 +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout +label=myframe +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Frames can be repeated +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Frames can be repeated fully or only in terms of selected sub-slides, multiple + times at any later point of the presentation. +\end_layout + +\begin_layout Frame +You just need to give the respective frame a label name via the frame option + +\begin_inset Quotes eld +\end_inset + +label +\begin_inset Quotes erd +\end_inset + + (as done here). +\end_layout + +\begin_deeper +\begin_layout Pause + +\end_layout + +\end_deeper +\begin_layout Frame +Then you can repeat this frame by means of the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +AgainFrame +\end_layout + +\end_inset + + layout later in the presentation. + Just enter the label name in the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +AgainFrame +\end_layout + +\end_inset + + layout and specify, if required, which sub-slides you want to be repeated + via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Overlay Specifications +\end_layout + +\end_inset + + (again, see below for the concept of +\begin_inset Quotes eld +\end_inset + +overlays +\begin_inset Quotes erd +\end_inset + +). +\end_layout + +\begin_deeper +\begin_layout Proof +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +3 +\end_layout + +\end_inset + + +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Here's the proof! +\end_layout + +\end_inset + + (This text is only shown on sub-slide 3 which is itself only shown when + this frame is repeated later on) +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Keeping frames together +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout FrameSubtitle +Use nesting! +\end_layout + +\begin_layout Itemize +Note that all frame content, if the style is not +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Frame +\end_layout + +\end_inset + +, must be nested to the frame environment (via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Edit\SpecialChar menuseparator +Increase List Depth +\end_layout + +\end_inset + + or +\begin_inset Info +type "shortcut" +arg "depth-increment" +\end_inset + +). + This is done automatically if you insert new frame paragraphs. +\end_layout + +\begin_layout Itemize +Nested content is marked by a red bar in the margin of the \SpecialChar LyX + workarea +\end_layout + +\end_deeper +\begin_layout Itemize +Non-nested content (such as this) will also be displayed in the presentation + (on a separate slide), but not properly aligned +\end_layout + +\begin_layout Itemize +So please avoid this +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Separating frames +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\noindent +Consecutive frames have to be separated from each other. + This is done by means of the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +\noindent +Separator +\end_layout + +\end_inset + + inset, which can be produced by hitting return in an empty Standard paragraph + right below the frame (see UserGuide, sec. +\begin_inset space ~ +\end_inset + +3.4.6). +\end_layout + +\begin_deeper +\begin_layout Block +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Tip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +There is a simple and much more convenient way to start a new frame: Issue + +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Separated Frame Below +\end_layout + +\end_inset + + ( +\begin_inset Info +type "shortcut" +arg "environment-split" +\end_inset + + if you are in a non-nested +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Frame +\end_layout + +\end_inset + + paragraph, or +\begin_inset Info +type "shortcut" +arg "environment-split outer" +\end_inset + +, respectively, if you are in a nested paragraph within the frame). + If you are in the frame heading, +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Separated Frame Above +\end_layout + +\end_inset + + inserts a new, properly separated frame above the current one! +\end_layout + +\end_deeper +\begin_layout AgainFrame +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +3 +\end_layout + +\end_inset + +myframe +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout PlainFrame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Special frame types +\end_layout + +\end_inset + + +\end_layout + +\begin_layout PlainFrame +\SpecialChar LyX + provides two special frame types: +\end_layout + +\begin_deeper +\begin_layout Enumerate +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Frame (plain) +\end_layout + +\end_inset + + is a frame without a sidebar/header (such as this one). + This is useful for slides with much content\SpecialChar breakableslash +wide tables +\end_layout + +\begin_layout Enumerate +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Frame (fragile) +\end_layout + +\end_inset + + is to be used if the frame consists of +\begin_inset Quotes eld +\end_inset + +fragile +\begin_inset Quotes erd +\end_inset + + content, especially verbatim stuff such as program listings +\end_layout + +\end_deeper +\begin_layout PlainFrame +If you want a fragile plain frame, pass the option +\begin_inset Quotes eld +\end_inset + +plain +\begin_inset Quotes erd +\end_inset + + to a fragile frame or the option +\begin_inset Quotes eld +\end_inset + +fragile +\begin_inset Quotes erd +\end_inset + + to a plain frame. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Sectioning a presentation +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +To group frames, you can use the usual sectioning commands ( +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Section +\end_layout + +\end_inset + +, +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Subsection +\end_layout + +\end_inset + + etc.) +\end_layout + +\begin_layout Itemize +These are shown in the table of contents, the sidebar\SpecialChar breakableslash +header (depending on + the theme) and the article output (for +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + + see below, the section on +\begin_inset Quotes eld +\end_inset + +modes +\begin_inset Quotes erd +\end_inset + +) +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Parts have special meaning +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +You can also divide your presentation into +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Parts +\end_layout + +\end_inset + +. + Note, however, that parts behave differently in +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + than in other document classes: a part is considered to be +\begin_inset Quotes eld +\end_inset + +a little +\begin_inset Quotes els +\end_inset + +talk of its own +\begin_inset Quotes ers +\end_inset + + with its own table of contents, its own navigation bars, and so on. +\begin_inset Quotes erd +\end_inset + + +\begin_inset CommandInset citation +LatexCommand cite +after "sec.~10.3" +key "beamer-ug" +literal "true" + +\end_inset + + +\end_layout + +\begin_layout Itemize +This means, for instance, that if you use parts, the table of contents will + only list the sections and subsections of the part that contains this table + of contents, and the sidebar\SpecialChar breakableslash +header will also only show the sections of + the current part. +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Re-arranging frames +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Block +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Tip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +Did you know that you can easily move and re-arrange whole frames via the + outliner ( +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +View\SpecialChar menuseparator +Outline Pane +\end_layout + +\end_inset + +)? +\end_layout + +\begin_layout Block +Also, you can navigate to a specific frame via the +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Navigate +\end_layout + +\end_inset + + menu! +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +The appendix +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +Appendices might be useful for additional\SpecialChar breakableslash +reserve material. + The appendix is part of the presentation, but not shown in the table of + contents\SpecialChar breakableslash +sidebar\SpecialChar breakableslash +header +\end_layout + +\begin_layout Itemize +An appendix is inserted as usual in \SpecialChar LyX +: +\end_layout + +\begin_deeper +\begin_layout Itemize +Use +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Document\SpecialChar menuseparator +Start Appendix Here +\end_layout + +\end_inset + + at the position where the appendix should begin +\end_layout + +\end_deeper +\begin_layout Itemize +Typical content of the appendix is the bibliography +\end_layout + +\begin_deeper +\begin_layout Itemize +You insert it as in all other \SpecialChar LyX + classes, via the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Bibliography +\end_layout + +\end_inset + + style (see the bibliography at the end of this presentation as an example) +\end_layout + +\begin_layout Itemize +Note that you can also use Bib\SpecialChar TeX +, although not all Bib\SpecialChar TeX + styles are prepared + to work with +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\end_deeper +\begin_layout Section +The overlay concept +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +What are overlays? +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Basically, the overlay concept allows to change the slide content dynamically. + You can uncover things/text piecewise, fade out content, highlight things, + replace text, images etc. +\end_layout + +\begin_deeper +\begin_layout Pause + +\end_layout + +\begin_layout Itemize +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + ++- +\end_layout + +\end_inset + +Overlays are useful to build up slides as you speak +\end_layout + +\begin_layout Itemize +They help you to shift your audience's focus on specific things +\end_layout + +\begin_layout Itemize +And they help your audience to follow you +\end_layout + +\begin_layout Itemize +So use overlays! +\begin_inset Flex Alert +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +6 +\end_layout + +\end_inset + +Really, use them! +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Overlay types +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + provides many different overlay types. + The most important ones are: +\end_layout + +\begin_deeper +\begin_layout Description +Hidden +\begin_inset space ~ +\end_inset + +content: Stuff that is completely invisible up to a point +\end_layout + +\begin_layout Description +Covered +\begin_inset space ~ +\end_inset + +content: Stuff that is faded out (not completely invisible) +\end_layout + +\begin_layout Description +Highlighted +\begin_inset space ~ +\end_inset + +content: Stuff that is somehow emphasized at a certain point +\end_layout + +\end_deeper +\begin_layout Frame +We give examples for these types in what follows, but begin with some general + remarks on overlay possibilities +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +General overlay/action possibilities +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Many +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + elements provide overlay settings. + Basically, you can define on which sub-slide(s) a given content appears + ( +\begin_inset Quotes eld +\end_inset + +2 +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +2-4 +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +3- +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +1,3 +\begin_inset Quotes erd +\end_inset + + etc.), or in which output mode ( +\begin_inset Quotes eld +\end_inset + +presentation +\begin_inset Quotes erd +\end_inset + +, +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + + etc.) +\end_layout + +\begin_deeper +\begin_layout Itemize +In \SpecialChar LyX +, these settings are generally accessible via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Overlay Specifications +\end_layout + +\end_inset + + or +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Action Specifications +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Overprint +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +2 +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Definition +\begin_inset Quotes eld +\end_inset + +Action +\begin_inset Quotes erd +\end_inset + + is a more general concept, which does not only include what we have called + +\begin_inset Quotes eld +\end_inset + +overlays +\begin_inset Quotes erd +\end_inset + + ( +\begin_inset Quotes eld +\end_inset + +on which sub-slide[s] is this to be shown\SpecialChar breakableslash +hidden\SpecialChar breakableslash +highlighted +\begin_inset Quotes erd +\end_inset + +), but also tasks such as +\begin_inset Quotes eld +\end_inset + +only show this in the presentation, not on the handout +\begin_inset Quotes erd +\end_inset + + or +\begin_inset Quotes eld +\end_inset + +show this on the second screen only +\begin_inset Quotes erd +\end_inset + + (so-called +\begin_inset Quotes eld +\end_inset + +modes +\begin_inset Quotes erd +\end_inset + +). +\end_layout + +\end_deeper +\begin_layout Overprint +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +3 +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout AlertBlock +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Note to the \SpecialChar LaTeX + aficionados +\end_layout + +\end_inset + + +\end_layout + +\begin_layout AlertBlock +The mentioned overlay/action settings conform to those command/environment + options embraced by +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +\begin_inset space \space{} +\end_inset + +<\SpecialChar ldots +> +\end_layout + +\end_inset + + and +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +[<\SpecialChar ldots +>] +\end_layout + +\end_inset + + in the \SpecialChar LaTeX + output. +\end_layout + +\begin_layout AlertBlock +Note that \SpecialChar LyX + adds those braces on export, so you must not enter them yourself. + In other words, enter +\begin_inset Quotes eld +\end_inset + +1 +\begin_inset Quotes erd +\end_inset + + or +\begin_inset Quotes eld +\end_inset + ++- +\begin_inset Quotes erd +\end_inset + + to the overlay/action insets, not +\begin_inset Quotes eld +\end_inset + +<1> +\begin_inset Quotes erd +\end_inset + + or +\begin_inset Quotes eld +\end_inset + +[<+->] +\begin_inset Quotes erd +\end_inset + +! +\end_layout + +\end_deeper +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +An example +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Take for example a quote. + In a +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Quote +\end_layout + +\end_inset + + environment, you can specify the overlay settings via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Overlay Specifications +\end_layout + +\end_inset + +. + If you do this and enter +\begin_inset Quotes eld +\end_inset + +2 +\begin_inset Quotes erd +\end_inset + +, the quote will only appear on (sub-)slide 2: +\end_layout + +\begin_deeper +\begin_layout Quote +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +2 +\end_layout + +\end_inset + +Fear no more the heat o’ the sun +\end_layout + +\begin_layout Quote +Nor the furious winter’s rages +\end_layout + +\begin_layout Quote +Thou thy worldly task hast done +\end_layout + +\begin_layout Quote +Home art gone, and ta’en thy wages +\end_layout + +\end_deeper +\begin_layout Frame +This is how the concept works, basically. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Covering vs. + hiding +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +The difference between +\begin_inset Quotes eld +\end_inset + +covering +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +hiding +\begin_inset Quotes erd +\end_inset + + is that hidden content is treated as if it isn't there, while covered content + is just covered (and the space is reserved). + If we would have hidden the quote on the last slide and not covered, it + would only have taken space on appearance: +\end_layout + +\begin_deeper +\begin_layout Quote +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +only@2 +\end_layout + +\end_inset + +Fear no more the heat o’ the sun +\end_layout + +\begin_layout Quote +Nor the furious winter’s rages +\end_layout + +\begin_layout Quote +Thou thy worldly task hast done +\end_layout + +\begin_layout Quote +Home art gone, and ta’en thy wages +\end_layout + +\end_deeper +\begin_layout Frame + +\end_layout + +\begin_layout Frame +You can see how this text moves when the quote is un-hidden. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Coverage degrees +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +setbeamercovered{transparent} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + offers several degrees of +\begin_inset Quotes eld +\end_inset + +coverage +\begin_inset Quotes erd +\end_inset + +, which can be set via the command +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout + +\backslash +setbeamercovered +\end_layout + +\end_inset + + either globally (for the whole presentation) or locally (e. +\begin_inset space \thinspace{} +\end_inset + +g. + for a single frame, as here). + By default, content is completely covered. + In +\begin_inset Quotes eld +\end_inset + +transparent +\begin_inset Quotes erd +\end_inset + + mode, you can see covered text greyed-out: +\end_layout + +\begin_deeper +\begin_layout Quote +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +2 +\end_layout + +\end_inset + +Fear no more the heat o’ the sun +\end_layout + +\begin_layout Quote +Nor the furious winter’s rages +\end_layout + +\begin_layout Quote +Thou thy worldly task hast done +\end_layout + +\begin_layout Quote +Home art gone, and ta’en thy wages +\end_layout + +\end_deeper +\begin_layout Frame +Check the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + manual for more possibilities. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Default overlay/action specifications vs. +\begin_inset Newline newline +\end_inset + +(normal) overlay/action specifications +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +For some environments (such as lists and also frames), you can set +\begin_inset Quotes eld +\end_inset + +default specifications +\begin_inset Quotes erd +\end_inset + + additionally to normal overlay/action specifications (or in the case of + lists: +\begin_inset Quotes eld +\end_inset + +overlay specifications +\begin_inset Quotes erd +\end_inset + + for the whole list and +\begin_inset Quotes eld +\end_inset + +item overlay specifications +\begin_inset Quotes erd +\end_inset + + for singular items) +\end_layout + +\begin_layout Itemize +Default specifications apply to all content of the given environment, if + not individually specified otherwise +\end_layout + +\begin_layout Itemize +They use a placeholder syntax. + E. +\begin_inset space \thinspace{} +\end_inset + +g., +\begin_inset Quotes eld +\end_inset + ++(1)- +\begin_inset Quotes erd +\end_inset + + will uncover all items in a list step by step (with a start offset of 1) + if they have no individual item specification: +\end_layout + +\begin_deeper +\begin_layout Itemize +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + ++(1)- +\end_layout + +\end_inset + +One +\end_layout + +\begin_layout Itemize +Two +\end_layout + +\begin_layout Itemize +Three +\end_layout + +\begin_layout Itemize +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +1- +\end_layout + +\end_inset + +Always +\end_layout + +\end_deeper +\end_deeper +\begin_layout Frame +Please consult the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + manual for details on this syntax. +\end_layout + +\begin_layout Frame + +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout + ++- +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Default overlay/action specifications vs. +\begin_inset Newline newline +\end_inset + +(normal) overlay/action specifications +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\noindent +This frame uses a specific default overlay specification +\end_layout + +\begin_layout Frame +which causes each overlay-aware paragraph \SpecialChar ldots + +\end_layout + +\begin_deeper +\begin_layout Itemize +\SpecialChar ldots + or list item \SpecialChar ldots + +\end_layout + +\begin_layout Itemize +\SpecialChar ldots + to appear \SpecialChar ldots + +\end_layout + +\begin_layout Itemize +\SpecialChar ldots + on a subsequent sub-slide \SpecialChar ldots + +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +A block +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +\SpecialChar ldots + one after the other +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout + +alert@+ +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Default overlay/action specifications vs. +\begin_inset Newline newline +\end_inset + +(normal) overlay/action specifications +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\noindent +And this frame uses a specific default overlay specification \SpecialChar ldots + +\end_layout + +\begin_deeper +\begin_layout Itemize +\SpecialChar ldots + which causes each overlay-aware list item \SpecialChar ldots + +\end_layout + +\begin_layout Itemize +\SpecialChar ldots + to be highlighted \SpecialChar ldots + +\end_layout + +\begin_layout Itemize +\SpecialChar ldots + on respective sub-slides +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Pause +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +The +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Pause +\end_layout + +\end_inset + + layout lets you mark a point where all following content will be covered + (by default for one slide, with regard to the content preceding the pause): +\end_layout + +\begin_deeper +\begin_layout Pause + +\end_layout + +\begin_layout Standard +After first pause +\end_layout + +\begin_layout Pause + +\end_layout + +\begin_layout Standard +After second pause +\end_layout + +\begin_layout Pause +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Frame +By default, consecutive pauses also end consecutively. + +\end_layout + +\begin_layout Frame +Via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Pause Number +\end_layout + +\end_inset + +, however, you can specify a specific sub-slide at which the given pause + ends, independent from the number of pauses inserted before this one. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Paragraph-wide overlays +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + and \SpecialChar LyX + provide you with paragraph layouts whose purpose it is to show/hide + whole paragraphs or sequences of paragraphs on specific slides. + These are particularly: +\end_layout + +\begin_deeper +\begin_layout Uncover +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +2- +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Uncover +The +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Uncovered +\end_layout + +\end_inset + + layout which uncovers all content on the specified slides \SpecialChar ldots + +\end_layout + +\begin_deeper +\begin_layout Itemize +\SpecialChar ldots + including nested paragraphs of other layout. +\end_layout + +\end_deeper +\begin_layout Only +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +3- +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Only +The +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Only +\end_layout + +\end_inset + + layout which un-hides content (note again how the surrounding text +\begin_inset Quotes eld +\end_inset + +moves +\begin_inset Quotes erd +\end_inset + + when this gets visible). +\end_layout + +\begin_layout Overprint +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +4 +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +And the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Overprint +\end_layout + +\end_inset + + environment which lets you enter \SpecialChar ldots + +\end_layout + +\end_deeper +\begin_layout Overprint +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +5 +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\SpecialChar ldots + alternative text taking a specific space on specified slides. +\end_layout + +\end_deeper +\end_deeper +\begin_layout Frame +as demonstrated here. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Inline overlays +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +To demonstrate uncover/visible difference: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setbeamercovered{transparent} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + also supports inline overlays for text parts (as opposed to whole paragraphs), + which are accessible via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Edit\SpecialChar menuseparator +Text Style +\end_layout + +\end_inset + + in \SpecialChar LyX +: +\end_layout + +\begin_deeper +\begin_layout Itemize +You can +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +uncover +\end_layout + +\end_inset + + +\begin_inset Flex Uncover +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +2- +\end_layout + +\end_inset + +text +\end_layout + +\end_inset + + on specific slides +\end_layout + +\begin_layout Itemize +You can make +\begin_inset Flex Visible +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +3- +\end_layout + +\end_inset + +text +\end_layout + +\end_inset + + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +visible +\end_layout + +\end_inset + + (which makes a difference to +\begin_inset Quotes eld +\end_inset + +uncover +\begin_inset Quotes erd +\end_inset + + only with +\begin_inset Quotes eld +\end_inset + +transparent +\begin_inset Quotes erd +\end_inset + + coverage setting, as used locally on this slide) +\end_layout + +\begin_layout Itemize +You can show +\begin_inset Flex Only +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +4- +\end_layout + +\end_inset + +text +\end_layout + +\end_inset + + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +only +\end_layout + +\end_inset + + on specific slides +\end_layout + +\begin_layout Itemize +You can make +\begin_inset Flex Invisible +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +5- +\end_layout + +\end_inset + +text +\end_layout + +\end_inset + + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +invisible +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +And you can show +\begin_inset Flex Alternative +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +6- +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +different +\end_layout + +\end_inset + + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +alternative +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + text +\end_layout + +\end_deeper +\begin_layout Frame +As for the paragraph layouts, the overlay settings can be accessed via the + +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert +\end_layout + +\end_inset + + menu. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Overlay-aware commands +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Many +\begin_inset Quotes eld +\end_inset + +inline +\begin_inset Quotes erd +\end_inset + + commands (also to be found at +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Edit\SpecialChar menuseparator +Text Style +\end_layout + +\end_inset + +) are overlay-aware. + +\end_layout + +\begin_deeper +\begin_layout Itemize +Thus, you can make for instance text on specific slides +\begin_inset Flex Emphasize +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +2 +\end_layout + +\end_inset + +emphasized +\end_layout + +\end_inset + +, +\begin_inset Flex Bold +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +3 +\end_layout + +\end_inset + +bold +\end_layout + +\end_inset + +, shown in +\begin_inset Flex Alert +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +4 +\end_layout + +\end_inset + +alert +\end_layout + +\end_inset + + or +\begin_inset Flex Structure +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +5 +\end_layout + +\end_inset + +structure +\end_layout + +\end_inset + + color. +\end_layout + +\begin_layout Block +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +6 +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Tip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +Use these Emphasize and Bold insets (instead of the usual respective font + settings) also if you do not need overlay specifications. + Due to the way emphasized and bold is defined in +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + +, normal emphasizing and boldface can lead to \SpecialChar LaTeX + errors, e. +\begin_inset space \thinspace{} +\end_inset + +g. + when used in section headings. +\end_layout + +\end_deeper +\begin_layout Section +Specific environments +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Specific environments +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Specific environments, particularly suited for presentations are: +\end_layout + +\begin_deeper +\begin_layout Itemize +Diverse +\begin_inset Quotes eld +\end_inset + +blocks +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout Itemize +Theorem-style environments +\end_layout + +\begin_layout Itemize +Columns +\end_layout + +\end_deeper +\begin_layout Frame +We sketch them briefly in what follows. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Blocks +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Blocks can contain all sorts of information. + We used them here for +\begin_inset Quotes eld +\end_inset + +tips +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +hints +\begin_inset Quotes erd +\end_inset + +. + The class provides 3 pre-defined blocks with different look: +\end_layout + +\begin_deeper +\begin_layout Block +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +2- +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Block +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +A general-purpose block +\end_layout + +\begin_layout ExampleBlock +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +3- +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Example Block +\end_layout + +\end_inset + + +\end_layout + +\begin_layout ExampleBlock +A block for +\begin_inset Quotes eld +\end_inset + +examples +\begin_inset Quotes erd +\end_inset + + +\end_layout + +\begin_layout AlertBlock +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +4- +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Alert Block +\end_layout + +\end_inset + + +\end_layout + +\begin_layout AlertBlock +And an +\begin_inset Quotes eld +\end_inset + +alert +\begin_inset Quotes erd +\end_inset + + block for important remarks. +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Handling Blocks +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +In \SpecialChar LyX +, blocks have a similar user interface to frames, which means that +\end_layout + +\begin_deeper +\begin_layout Itemize +Content inside blocks needs to be nested (if the paragraph layout is not + +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Block +\end_layout + +\end_inset + +) +\end_layout + +\begin_layout Itemize +Consecutive blocks of the same type must be separated by the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Separator +\end_layout + +\end_inset + + paragraph style +\end_layout + +\begin_deeper +\begin_layout Block +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +only@2 +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Tip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +Use +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Edit\SpecialChar menuseparator +Start New Environment +\end_layout + +\end_inset + + ( +\begin_inset Info +type "shortcut" +arg "environment-split" +\end_inset + +) to quickly start a new block from within a previous block! +\end_layout + +\end_deeper +\end_deeper +\begin_layout Itemize +Blocks are overlay-aware +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Theorem-style environments +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout FrameSubtitle +(Theorem, Corollary, Definition, Definitions, Example, Examples, Fact, Proof) +\end_layout + +\end_deeper +\begin_layout Frame +Theorems look similar to blocks in the output, but they have a fixed title + (depending on the type). + +\end_layout + +\begin_deeper +\begin_layout Theorem +This is a theorem! +\end_layout + +\begin_layout Fact +This is a fact! +\end_layout + +\begin_layout Pause + +\end_layout + +\end_deeper +\begin_layout Frame +Via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Additional Theorem Text +\end_layout + +\end_inset + +, you can add some extra text to this fixed title +\end_layout + +\begin_deeper +\begin_layout Example +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +a bad one! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Example +An example with additional text (brackets added automatically) +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Columns +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Sometimes it is useful to divide a presentation into columns +\end_layout + +\begin_deeper +\begin_layout ColumnsTopAligned + +\end_layout + +\begin_deeper +\begin_layout Column +\begin_inset ERT +status open + +\begin_layout Plain Layout + +.4 +\backslash +textwidth +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +To do this, first select +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Columns +\end_layout + +\end_inset + + (note the plural) to start the columns +\end_layout + +\begin_layout Pause + +\end_layout + +\begin_layout Column +\begin_inset ERT +status open + +\begin_layout Plain Layout + +.4 +\backslash +textwidth +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +And then, in the following paragraph, select +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Column +\end_layout + +\end_inset + + (singular) to start a specific column +\end_layout + +\end_deeper +\begin_layout Pause + +\end_layout + +\end_deeper +\begin_layout Frame +\begin_inset VSpace defskip +\end_inset + + +\end_layout + +\begin_layout Frame +Note: +\end_layout + +\begin_deeper +\begin_layout Itemize +In the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Column +\end_layout + +\end_inset + + (singular) environment, you need to specify the width using \SpecialChar LaTeX + syntax (but + also something like +\begin_inset Quotes eld +\end_inset + +3.5cm +\begin_inset Quotes erd +\end_inset + + will work) +\end_layout + +\begin_layout Itemize +Any (singular) +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Column +\end_layout + +\end_inset + + must be nested to the (plural) +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Columns +\end_layout + +\end_inset + +. + Likewise, column content can be any paragraph style that is nested to a + singular +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Column +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Section +Short remarks on modes +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Modes +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +In +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + terms, a +\begin_inset Quotes eld +\end_inset + +mode +\begin_inset Quotes erd +\end_inset + + is a specific output route. + There are several modes for different purposes. + We just want to highlight three: +\end_layout + +\begin_deeper +\begin_layout Enumerate +The +\begin_inset Quotes eld +\end_inset + +beamer +\begin_inset Quotes erd +\end_inset + + mode +\end_layout + +\begin_layout Enumerate +The +\begin_inset Quotes eld +\end_inset + +presentation +\begin_inset Quotes erd +\end_inset + + mode +\end_layout + +\begin_layout Enumerate +The +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + + mode +\end_layout + +\end_deeper +\begin_layout Frame +The beamer mode is the default. + Unless explicitly specified otherwise, your +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + document is in +\begin_inset Quotes eld +\end_inset + +beamer +\begin_inset Quotes erd +\end_inset + + mode. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +presentation +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Switching Modes +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +However, you can switch document parts, frames, headings and all +\begin_inset Quotes eld +\end_inset + +action +\begin_inset Quotes erd +\end_inset + +-aware environments to a different mode. + For instance, we have switched this frame to +\begin_inset Quotes eld +\end_inset + +presentation +\begin_inset Quotes erd +\end_inset + + mode. +\end_layout + +\begin_deeper +\begin_layout Itemize +What does this mean? +\end_layout + +\begin_deeper +\begin_layout Itemize +It means that this frame will only be visible in the presentation, not in + the accompanying +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + +, if you produce such an article (we will elaborate on this a bit below) +\end_layout + +\end_deeper +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +article +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Switching Modes +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +This frame will not be visible in the presentation, but only in the article, + since it is in +\begin_inset Quotes eld +\end_inset + +article +\begin_inset Quotes erd +\end_inset + + mode. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +So what? +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +This is actually pretty useful! You can set up a single document and produce + both a presentation and – using the article mode – a handout. + +\end_layout + +\begin_deeper +\begin_layout Itemize +And we mean a +\begin_inset Flex Emphasize +status collapsed + +\begin_layout Plain Layout +real +\end_layout + +\end_inset + +, useful handout, not one of those scaled slide printouts that are so common + nowadays (but if you insist, you can produce one of those as well) +\end_layout + +\begin_layout Itemize +Modes allow you to add extra text to the handout or hide parts from it +\end_layout + +\begin_layout Itemize +You can use for instance different graphics for the presentation and the + handout +\end_layout + +\begin_layout Itemize +and so on \SpecialChar ldots + +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Examples +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +As said, many elements are mode-aware. + +\end_layout + +\begin_deeper +\begin_layout Itemize +\noindent +You can show particular text +\begin_inset Flex Only +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +presentation +\end_layout + +\end_inset + +only in the presentation +\end_layout + +\end_inset + + +\begin_inset Flex Only +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +article +\end_layout + +\end_inset + +only in the article +\end_layout + +\end_inset + + via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +\noindent +Edit\SpecialChar menuseparator +Text Style\SpecialChar menuseparator +Only +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Frame +\begin_inset Flex ArticleMode +status open + +\begin_layout Itemize +Or put all sorts of complex contents via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Custom Insets\SpecialChar menuseparator +ArticleMode +\end_layout + +\end_inset + + in an inset that will only be output in article mode +\end_layout + +\end_inset + + +\begin_inset Flex PresentationMode +status open + +\begin_layout Itemize +Or put all sorts of complex contents via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +Custom Insets\SpecialChar menuseparator +PresentationMode +\end_layout + +\end_inset + + in an inset that will only be output in presentation mode +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +Or you can define that an +\begin_inset Flex Emphasize +status collapsed + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +presentation +\end_layout + +\end_inset + +emphasizing +\end_layout + +\end_inset + + should only apply to the presentation, +\begin_inset Flex Bold +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +article +\end_layout + +\end_inset + +a bold face +\end_layout + +\end_inset + + only to article +\end_layout + +\begin_layout Itemize +You can also show section headings or frame titles\SpecialChar breakableslash +subtitles only in the + presentation\SpecialChar breakableslash +article (like we do for the +\begin_inset Quotes eld +\end_inset + +Contents +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +References +\begin_inset Quotes erd +\end_inset + + frame titles in this presentation) +\end_layout + +\begin_layout Itemize +And much more of this sort \SpecialChar ldots + +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Setting up an article +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Setting up a beamer article with \SpecialChar LyX + is easy. +\end_layout + +\begin_deeper +\begin_layout Itemize +\noindent +Just create a new document with the class +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +\noindent +Beamer Article (Standard Class) +\end_layout + +\end_inset + + or +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +\noindent +Beamer Article (KOMA-Script) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +Then add the presentation to this document as a child (via +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Insert\SpecialChar menuseparator +File\SpecialChar menuseparator +Child Document\SpecialChar ldots + +\end_layout + +\end_inset + +) +\end_layout + +\begin_layout Itemize +And that's it. + Now you can produce the handout and the presentation by compiling one of + these two documents, while you only need to edit one, namely the presentation +\end_layout + +\end_deeper +\begin_layout Frame +Check out the accompanying beamer-article example document for this presentation. + You can find it in the same folder as this document. +\end_layout + +\begin_layout Section +Changing the look +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Themes +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + presentations are themeable. + Themes determine the colors used, the macro structure (use of sidebars, + headlines etc.), the fonts, the look of list items, blocks and in general + the whole look and feel of a presentation +\end_layout + +\begin_layout Itemize +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + itself ships a number of different-looking themes to chose from (we use + the +\begin_inset Quotes eld +\end_inset + +Berkeley +\begin_inset Quotes erd +\end_inset + + theme in this presentation; see +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator +LaTeX +\begin_inset space ~ +\end_inset + +Preamble +\end_layout + +\end_inset + + for how we activated and slightly tweaked the theme) +\end_layout + +\begin_layout Itemize +In addition to this standard set, you can get more themes from +\begin_inset CommandInset href +LatexCommand href +name "CTAN" +target "http://www.ctan.org" +literal "false" + +\end_inset + + and other places at the Internet +\end_layout + +\begin_layout Itemize +If you still are not satisified or if you need a theme matching to your + University's or company's corporate design, the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + manual +\begin_inset CommandInset citation +LatexCommand cite +key "beamer-ug" +literal "true" + +\end_inset + + explains how you can setup your own theme +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Themes can be modified +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +But you do not need to write a theme from scratch if you want to alter the + look. +\end_layout + +\begin_deeper +\begin_layout Itemize +Existing themes can be modified both in details and in major areas (such + as the coloring) +\end_layout + +\begin_layout Itemize +Consult the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + manual +\begin_inset CommandInset citation +LatexCommand cite +key "beamer-ug" +literal "true" + +\end_inset + + for details +\end_layout + +\end_deeper +\begin_layout Section +And more \SpecialChar ldots + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +\SpecialChar ldots + much more! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +Note that +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + can do much more than we have described here. + The +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + manual +\begin_inset CommandInset citation +LatexCommand cite +key "beamer-ug" +literal "true" + +\end_inset + + provides a comprehensive documentation. +\end_layout + +\begin_layout Frame +Also, have a look at the +\begin_inset Flex Structure +status collapsed + +\begin_layout Plain Layout +Beamer +\end_layout + +\end_inset + + examples and templates shipped with \SpecialChar LyX +! +\end_layout + +\begin_layout Section +\start_of_appendix +Appendix +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +We use a FrameTitle layout (and not the Frame Title inset) below in order + to exclude the redundant title from the article. + Also note the +\begin_inset Flex Alert +status collapsed + +\begin_layout Plain Layout + +\backslash +newblock +\end_layout + +\end_inset + + in the bibliography. + It is needed for proper entry rendering (note the different coloring of + the author in the PDF output). +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame + +\end_layout + +\begin_deeper +\begin_layout FrameTitle +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +presentation +\end_layout + +\end_inset + +References +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "beamer-ug" +literal "true" + +\end_inset + +Tantau, Till et al.: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +newblock +\end_layout + +\end_inset + + The beamer class. + +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +https://ctan.org/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf +\end_layout + +\end_inset + +. +\end_layout + +\end_deeper +\end_body +\end_document diff --git a/lib/examples/Presentations/Beamer_(Complex).lyx b/lib/examples/Presentations/Beamer_(Complex).lyx new file mode 100644 index 0000000000..922cee1048 --- /dev/null +++ b/lib/examples/Presentations/Beamer_(Complex).lyx @@ -0,0 +1,6154 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass beamer +\begin_preamble +\beamertemplateshadingbackground{red!5}{structure!5} + +\usepackage{beamerthemeshadow} +\usepackage{pgfnodes,pgfarrows,pgfheaps} + +\beamertemplatetransparentcovereddynamicmedium + + +\pgfdeclareimage[width=0.6cm]{icsi-logo}{beamer-icsi-logo} +\logo{\pgfuseimage{icsi-logo}} + + + + +\newcommand{\Class}[1]{\operatorname{\mathchoice + {\text{\small #1}} + {\text{\small #1}} + {\text{#1}} + {\text{#1}}}} + +\newcommand{\Lang}[1]{\operatorname{\text{\textsc{#1}}}} + +% This gets defined by beamerbasecolor.sty, but only at the beginning of +% the document +\colorlet{averagebackgroundcolor}{normal text.bg} + +\newcommand{\tape}[3]{% + \color{structure!30!averagebackgroundcolor} + \pgfmoveto{\pgfxy(-0.5,0)} + \pgflineto{\pgfxy(-0.6,0.1)} + \pgflineto{\pgfxy(-0.4,0.2)} + \pgflineto{\pgfxy(-0.6,0.3)} + \pgflineto{\pgfxy(-0.4,0.4)} + \pgflineto{\pgfxy(-0.5,0.5)} + \pgflineto{\pgfxy(4,0.5)} + \pgflineto{\pgfxy(4.1,0.4)} + \pgflineto{\pgfxy(3.9,0.3)} + \pgflineto{\pgfxy(4.1,0.2)} + \pgflineto{\pgfxy(3.9,0.1)} + \pgflineto{\pgfxy(4,0)} + \pgfclosepath + \pgffill + + \color{structure} + \pgfputat{\pgfxy(0,0.7)}{\pgfbox[left,base]{#1}} + \pgfputat{\pgfxy(0,-0.1)}{\pgfbox[left,top]{#2}} + + \color{black} + \pgfputat{\pgfxy(-.1,0.25)}{\pgfbox[left,center]{\texttt{#3}}}% +} + +\newcommand{\shorttape}[3]{% + \color{structure!30!averagebackgroundcolor} + \pgfmoveto{\pgfxy(-0.5,0)} + \pgflineto{\pgfxy(-0.6,0.1)} + \pgflineto{\pgfxy(-0.4,0.2)} + \pgflineto{\pgfxy(-0.6,0.3)} + \pgflineto{\pgfxy(-0.4,0.4)} + \pgflineto{\pgfxy(-0.5,0.5)} + \pgflineto{\pgfxy(1,0.5)} + \pgflineto{\pgfxy(1.1,0.4)} + \pgflineto{\pgfxy(0.9,0.3)} + \pgflineto{\pgfxy(1.1,0.2)} + \pgflineto{\pgfxy(0.9,0.1)} + \pgflineto{\pgfxy(1,0)} + \pgfclosepath + \pgffill + + \color{structure} + \pgfputat{\pgfxy(0.25,0.7)}{\pgfbox[center,base]{#1}} + \pgfputat{\pgfxy(0.25,-0.1)}{\pgfbox[center,top]{#2}} + + \color{black} + \pgfputat{\pgfxy(-.1,0.25)}{\pgfbox[left,center]{\texttt{#3}}}% +} + +\pgfdeclareverticalshading{heap1}{\the\paperwidth}% + {color(0pt)=(black); color(1cm)=(structure!65!white)} +\pgfdeclareverticalshading{heap2}{\the\paperwidth}% + {color(0pt)=(black); color(1cm)=(structure!55!white)} +\pgfdeclareverticalshading{heap3}{\the\paperwidth}% + {color(0pt)=(black); color(1cm)=(structure!45!white)} +\pgfdeclareverticalshading{heap4}{\the\paperwidth}% + {color(0pt)=(black); color(1cm)=(structure!35!white)} +\pgfdeclareverticalshading{heap5}{\the\paperwidth}% + {color(0pt)=(black); color(1cm)=(structure!25!white)} +\pgfdeclareverticalshading{heap6}{\the\paperwidth}% + {color(0pt)=(black); color(1cm)=(red!35!white)} + +\newcommand{\heap}[5]{% + \begin{pgfscope} + \color{#4} + \pgfheappath{\pgfxy(0,#1)}{\pgfxy(-#2,0)}{\pgfxy(#2,0)} + \pgfclip + \begin{pgfmagnify}{1}{#1} + \pgfputat{\pgfpoint{-.5\paperwidth}{0pt}}{\pgfbox[left,base]{\pgfuseshading{heap#5}}} + \end{pgfmagnify} + \end{pgfscope} + %\pgffill + + \color{#4} + \pgfheappath{\pgfxy(0,#1)}{\pgfxy(-#2,0)}{\pgfxy(#2,0)} + \pgfstroke + + \color{white} + \pgfheaplabel{\pgfxy(0,#1)}{#3}% +} + + +\newcommand{\langat}[2]{% + \color{black!30!beamerexample} + \pgfsetlinewidth{0.6pt} + \pgfsetendarrow{\pgfarrowdot} + \pgfline{\pgfxy(-3.5,#1)}{\pgfxy(0.05,#1)} + \color{beamerexample} + \pgfputat{\pgfxy(-3.6,#1)}{\pgfbox[right,center]{#2}}% +} + +\newcommand{\langatother}[2]{% + \color{black!30!beamerexample} + \pgfsetlinewidth{0.6pt} + \pgfsetendarrow{\pgfarrowdot} + \pgfline{\pgfxy(3.5,#1)}{\pgfxy(-0.05,#1)} + \color{beamerexample} + \pgfputat{\pgfxy(3.6,#1)}{\pgfbox[left,center]{#2}}% +} + + +\pgfdeclaremask{knight1-mask}{beamer-knight1-mask} \pgfdeclareimage[height=2cm,mask=knight1-mask]{knight1}{beamer-knight1} \pgfdeclaremask{knight2-mask}{beamer-knight2-mask} \pgfdeclareimage[height=2cm,mask=knight2-mask]{knight2}{beamer-knight2} \pgfdeclaremask{knight3-mask}{beamer-knight3-mask} \pgfdeclareimage[height=2cm,mask=knight3-mask,interpolate=true]{knight3}{beamer-knight3} \pgfdeclaremask{knight4-mask}{beamer-knight4-mask} \pgfdeclareimage[height=2cm,mask=knight4-mask,interpolate=true]{knight4}{beamer-knight4} + + +\pgfdeclareradialshading{graphnode} + {\pgfpoint{-3pt}{3.6pt}}% + {color(0cm)=(beamerexample!15); + color(2.63pt)=(beamerexample!75); + color(5.26pt)=(beamerexample!70!black); + color(7.6pt)=(beamerexample!50!black); + color(8pt)=(beamerexample!10!averagebackgroundcolor)} + +\newcommand{\graphnode}[2]{ + \pgfnodecircle{#1}[virtual]{#2}{8pt} + \pgfputat{#2}{\pgfbox[center,center]{\pgfuseshading{graphnode}}} +} +\end_preamble +\options notes=show +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "lmodern" "default" +\font_sans "lmss" "default" +\font_typewriter "lmtt" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry true +\use_package amsmath 2 +\use_package amssymb 2 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 2 +\tocdepth 2 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Title +The Complexity of +\begin_inset Newline newline +\end_inset + +Finding Paths in Tournaments +\end_layout + +\begin_layout Author +Till Tantau +\end_layout + +\begin_layout Institute +International Computer Science Institute +\begin_inset Newline newline +\end_inset + +Berkeley, California +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout +ICSI +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Date +January 30th, 2004 +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Outline +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset CommandInset toc +LatexCommand tableofcontents + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +[pausesections] +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset ERT +status open + +\begin_layout Plain Layout + +% Show the table of contents at the beginning +\end_layout + +\begin_layout Plain Layout + +% of every subsection. +\end_layout + +\begin_layout Plain Layout + + +\backslash +AtBeginSubsection[]{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +frame{ +\end_layout + +\begin_layout Plain Layout + + +\backslash +frametitle{Outline} +\end_layout + +\begin_layout Plain Layout + + +\backslash +tableofcontents[current,currentsubsection] +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Subsection +What are Tournaments? +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Tournaments Consist of Jousts Between Knights +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Columns + +\end_layout + +\begin_deeper +\begin_layout Column +5.75cm +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{pgfpicture}{1.25cm}{-1cm}{7cm}{4cm} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodebox{A}[virtual]{ +\backslash +pgfxy(2,1)}{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfuseimage{knight1}}{2pt}{2pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodebox{B}[virtual]{ +\backslash +pgfxy(6,1)}{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfuseimage{knight2}}{2pt}{2pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodebox{C}[virtual]{ +\backslash +pgfxy(4,-1)}{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfuseimage{knight3}}{2pt}{2pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodebox{D}[virtual]{ +\backslash +pgfxy(4,3)}{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfuseimage{knight4}}{2pt}{2pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<3->{ +\backslash +pgfsetendarrow{ +\backslash +pgfarrowto}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<2->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetlinewidth{0.6pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A}{B} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A}{C} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D}{A} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C}{B} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B}{D} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C}{D} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pgfpicture} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Column +6cm +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +What is a Tournament? +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +1- +\end_layout + +\end_inset + +A group of knights. +\end_layout + +\begin_layout Itemize +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +2- +\end_layout + +\end_inset + +Every pair has a joust. +\end_layout + +\begin_layout Itemize +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +3- +\end_layout + +\end_inset + +In every joust one knight wins. +\end_layout + +\end_deeper +\end_deeper +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Tournaments are Complete Directed Graphs +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Columns + +\end_layout + +\begin_deeper +\begin_layout Column +5cm +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{pgfpicture}{1.5cm}{-1cm}{6.5cm}{4cm} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetlinewidth{0.6pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{A}{ +\backslash +pgfxy(2.5,1)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{B}{ +\backslash +pgfxy(5.5,1)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{C}{ +\backslash +pgfxy(4,-0.5)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{D}{ +\backslash +pgfxy(4,2.5)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{white} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{A}}{ +\backslash +pgfbox[center,center]{$v_2$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{B}}{ +\backslash +pgfbox[center,center]{$v_3$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{C}}{ +\backslash +pgfbox[center,center]{$v_4$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{D}}{ +\backslash +pgfbox[center,center]{$v_1$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetendarrow{ +\backslash +pgfarrowto} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodesetsepstart{2pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodesetsepend{4pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A}{B} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A}{C} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D}{A} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C}{B} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B}{D} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D}{C} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pgfpicture} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Column +6cm +\end_layout + +\begin_layout Definition +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout + +2- +\end_layout + +\end_inset + +A +\color none + +\color red +tournament +\color none + +\color inherit +is a +\end_layout + +\begin_deeper +\begin_layout Enumerate +directed graphs, +\end_layout + +\begin_layout Enumerate +with exactly one edge between +\begin_inset Newline newline +\end_inset + +any two different vertices. +\end_layout + +\end_deeper +\end_deeper +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout + ++ +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Tournaments Arise Naturally in Different Situations +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout ExampleBlock +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Applications in Ordering Theory +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +Elements in a set need to be sorted. + +\begin_inset Newline newline +\end_inset + +The comparison relation may be cyclic, however. +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout ExampleBlock +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Applications in Sociology +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +Several candidates apply for a position. +\begin_inset Newline newline +\end_inset + +Reviewers decide for any two candidates whom they prefer. + +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout ExampleBlock +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Applications in Structural Complexity Theory +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +A language +\begin_inset Formula $L$ +\end_inset + + is given and a selector function +\begin_inset Formula $f$ +\end_inset + +. +\begin_inset Newline newline +\end_inset + +It chooses from any two words the one more likely to be in +\begin_inset Formula $f$ +\end_inset + +. +\end_layout + +\end_deeper +\end_deeper +\begin_layout Subsection +What Does ``Finding Paths'' Mean? +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +``Finding Paths'' is Ambiguous +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Block +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Input for +\begin_inset Flex Only +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +1 +\end_layout + +\end_inset + +Path Finding Problems +\end_layout + +\end_inset + + +\begin_inset Flex Only +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +2-3 +\end_layout + +\end_inset + + +\begin_inset Formula $\Lang{reach}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Flex Only +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +4-5 +\end_layout + +\end_inset + +the Construction Problem +\end_layout + +\end_inset + + +\begin_inset Flex Only +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +6-7 +\end_layout + +\end_inset + +the Optimization Problem +\end_layout + +\end_inset + + +\begin_inset Flex Only +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +8-9 +\end_layout + +\end_inset + + +\begin_inset Formula $\Lang{distance}$ +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Flex Only +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +10- +\end_layout + +\end_inset + +the Approximation Problem +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +A +\color none + +\color red +graph +\color none + +\color inherit + +\begin_inset Formula $G=(V,E)$ +\end_inset + +, a +\color none + +\color red +source +\color none + +\color inherit + +\begin_inset Formula $s\in V$ +\end_inset + + and a +\color none + +\color red +target +\color none + +\color inherit + +\begin_inset Formula $t\in V$ +\end_inset + +. +\end_layout + +\begin_layout Itemize +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +only@-9| visible@8- +\end_layout + +\end_inset + +A +\color none + +\color red +maximum distance +\color inherit + +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $d$ +\end_inset + +. +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +phantom{p} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Itemize +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +only@10- +\end_layout + +\end_inset + +An +\color none + +\color red +approximation ratio +\color none + +\color inherit + +\begin_inset Formula $r>1$ +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +nointerlineskip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Overprint +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +1,3,5,7,9,11-12 +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Columns +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +t,onlytextwidth +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset Flex Alternative +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +1-2 +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +column{ +\backslash +textwidth} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +column{5cm} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout ExampleBlock +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Example Input +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{pgfpicture}{2.5cm}{-0.6cm}{7.5cm}{2.6cm} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetlinewidth{0.6pt} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{A}{ +\backslash +pgfxy(3,1)} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{B}{ +\backslash +pgfxy(5,1)} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{C}{ +\backslash +pgfxy(4,0)} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{D}{ +\backslash +pgfxy(4,2)} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{white} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{B}}{ +\backslash +pgfbox[center,center]{$t$}} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{D}}{ +\backslash +pgfbox[center,center]{$s$}} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetendarrow{ +\backslash +pgfarrowto} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodesetsepstart{2pt} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodesetsepend{4pt} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A}{B} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A}{C} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D}{A} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C}{B} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B}{D} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D}{C} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<9> { +\backslash +pgfputat{ +\backslash +pgfxy(5.3,1)}{ +\backslash +pgfbox[left,center]{, $d=2$}}} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<11>{ +\backslash +pgfputat{ +\backslash +pgfxy(5.3,1)}{ +\backslash +pgfbox[left,center]{, $r=1.5$}}} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<12>{ +\backslash +pgfputat{ +\backslash +pgfxy(5.3,1)}{ +\backslash +pgfbox[left,center]{, $r=1.25$}}} +\end_layout + +\begin_layout Plain Layout + +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pgfpicture} +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Flex Only +status open + +\begin_layout Plain Layout +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +3- +\end_layout + +\end_inset + + +\begin_inset ERT +status open + +\begin_layout Plain Layout + + +\backslash +column{5cm} +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout ExampleBlock +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout + +only@3- +\end_layout + +\end_inset + + +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Example Output +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{pgfpicture}{2.5cm}{-0.6cm}{7.5cm}{2.6cm} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<5-8,10->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetlinewidth{0.6pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{A}{ +\backslash +pgfxy(3,1)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{B}{ +\backslash +pgfxy(5,1)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{C}{ +\backslash +pgfxy(4,0)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{D}{ +\backslash +pgfxy(4,2)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{white} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{B}}{ +\backslash +pgfbox[center,center]{$t$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{D}}{ +\backslash +pgfbox[center,center]{$s$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetendarrow{ +\backslash +pgfarrowto} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodesetsepstart{2pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodesetsepend{4pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<7,12>{ +\backslash +pgfnodeconnline{A}{B}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<5,11>{ +\backslash +pgfnodeconnline{A}{C}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<5,7,11-12>{ +\backslash +pgfnodeconnline{D}{A}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<5,11>{ +\backslash +pgfnodeconnline{C}{B}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B}{D} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D}{C} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<3,9>{ +\backslash +pgfputat{ +\backslash +pgfxy(2.75,1)}{ +\backslash +pgfbox[left,center]{ +\backslash +alert{``Yes''}}}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pgfpicture} +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\end_deeper +\end_deeper +\begin_layout Overprint +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +2,4,6,8,10 +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Block +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Variants of Path Finding Problems +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Description +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +2- +\end_layout + +\end_inset + +Reachability +\begin_inset space ~ +\end_inset + +Problem: Is there a path from +\begin_inset Formula $s$ +\end_inset + + to +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $t$ +\end_inset + +? +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Approximation Problem: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Description +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +4- +\end_layout + +\end_inset + +Construction +\begin_inset space ~ +\end_inset + +Problem: Construct a path from +\begin_inset Formula $s$ +\end_inset + + to +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $t$ +\end_inset + +? +\end_layout + +\begin_layout Description +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +6- +\end_layout + +\end_inset + +Optimization +\begin_inset space ~ +\end_inset + +Problem: Construct a shortest path from +\begin_inset Formula $s$ +\end_inset + + to +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $t$ +\end_inset + +. +\end_layout + +\begin_layout Description +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +8- +\end_layout + +\end_inset + +Distance +\begin_inset space ~ +\end_inset + +Problem: Is the distance of +\begin_inset Formula $s$ +\end_inset + + and +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $t$ +\end_inset + + at most +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $d$ +\end_inset + +? +\end_layout + +\begin_layout Description +\begin_inset Argument item:1 +status open + +\begin_layout Plain Layout + +10- +\end_layout + +\end_inset + +Approximation +\begin_inset space ~ +\end_inset + +Problem: Construct a path from +\begin_inset Formula $s$ +\end_inset + + to +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $t$ +\end_inset + + of length +\begin_inset Newline newline +\end_inset + +approximately their distance. +\end_layout + +\end_deeper +\end_deeper +\end_deeper +\begin_layout Section +Review +\end_layout + +\begin_layout Subsection +Standard Complexity Classes +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +pgfdeclaremask{computer-mask}{beamer-g4-mask} +\backslash +pgfdeclareimage[height=2cm,mask=computer-mask,interpolate=true]{computer}{beamer +-g4} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +The Classes L and NL are Defined via +\begin_inset Newline newline +\end_inset + +Logspace Turing Machines +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{pgfpicture}{-0.5cm}{0cm}{8cm}{5cm} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfxy(0,4)}{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +tape{input tape (read only), $n$ symbols}{}{3401234*3143223=}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +uncover<2->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfxy(0,0.5)}{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +tape{}{output tape (write only)}{10690836937182}} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +uncover<3->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfxy(7,2)}{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +shorttape{work tape (read/write), $O( +\backslash +log n)$ symbols}{}{42}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfxy(1.75,2.5)}{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfbox[center,center]{ +\backslash +pgfuseimage{computer}}} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetlinewidth{0.6pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{structure} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetendarrow{ +\backslash +pgfarrowto} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfxycurve(1.75,3.5)(1.75,3.75)(0,3.5)(0,3.85) +\end_layout + +\begin_layout Plain Layout + + +\backslash +uncover<2->{ +\backslash +pgfxycurve(1.75,1.5)(1.75,1)(0,1.5)(0,1.05)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +uncover<3->{ +\backslash +pgfxycurve(2.65,2.5)(3.75,2.5)(7,1)(7,1.9)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pgfpicture} +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Logspace Turing Machines Are Quite Powerful +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Block +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Deterministic logspace machines can compute +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +addition, multiplication, and even division +\end_layout + +\begin_layout Itemize +reductions used in completeness proofs, +\end_layout + +\begin_layout Itemize +reachability in forests. +\end_layout + +\end_deeper +\begin_layout Pause + +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Non-deterministic logspace machines can compute +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +reachability in graphs, +\end_layout + +\begin_layout Itemize +non-reachability in graphs, +\end_layout + +\begin_layout Itemize +satisfiability with two literals per clause. +\end_layout + +\end_deeper +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout + +1 +\end_layout + +\end_inset + + +\begin_inset Argument 3 +status collapsed + +\begin_layout Plain Layout +label=hierarchy +\end_layout + +\end_inset + + +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +The Complexity Class Hierarchy +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{5.5cm} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetlinewidth{0.8pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +heap{5.5}{3.5}{$ +\backslash +Class P$}{black}{1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetdash{{2pt}}{0pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<2->{ +\backslash +heap{4.5}{3}{$ +\backslash +Class{NC}^2$}{black!50!structure}{2}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +heap{3.5}{2.5}{$ +\backslash +Class{NL}$}{black!50!structure}{3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +heap{2.5}{2}{$ +\backslash +Class{L}$}{black!50!structure}{4} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<2->{ +\backslash +heap{1.75}{1.5}{$ +\backslash +vphantom{A}% +\end_layout + +\begin_layout Plain Layout + + +\backslash +smash{ +\backslash +Class{NC}^1}$}{black!50!structure}{5} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetdash{}{0pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<2->{ +\backslash +heap{1.1}{1}{$ +\backslash +vphantom{A}% +\end_layout + +\begin_layout Plain Layout + + +\backslash +smash{ +\backslash +Class{AC}^0}$}{black}{6} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetlinewidth{1.0pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{black} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfxyline(-5,0)(5,0) +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<1-2>{ +\backslash +langat{3.375}{$ +\backslash +Lang{reach}$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<1-2>{ +\backslash +langat{2.375}{$ +\backslash +Lang{reach}_{ +\backslash +operatorname{forest}}$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<2>{ +\backslash +langat{0.975}{$ +\backslash +Lang{addition}$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<2>{ +\backslash +langatother{1.6}{ +\backslash +vbox{ +\backslash +hbox{$ +\backslash +Lang{division}$,} +\backslash +hbox{$ +\backslash +Lang{parity}$}}}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<3-5>{ +\backslash +langat{3.375}{ +\backslash +vbox{ +\backslash +hbox{$ +\backslash +Lang{distance}$,} +\backslash +hbox{$ +\backslash +Lang{reach}$}}}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<4->{ +\backslash +langatother{2.375}{ +\backslash +vbox{ +\backslash +ignorespaces +\end_layout + +\begin_layout Plain Layout + + +\backslash +hbox{$ +\backslash +Lang{distance}_{ +\backslash +operatorname{forest}}$,} +\backslash +ignorespaces +\end_layout + +\begin_layout Plain Layout + + +\backslash +hbox{$ +\backslash +Lang{reach}_{ +\backslash +operatorname{forest}}$,} +\backslash +ignorespaces +\end_layout + +\begin_layout Plain Layout + + +\backslash +hbox{$ +\backslash +Lang{distance}_{ +\backslash +operatorname{path}}$,} +\backslash +ignorespaces +\end_layout + +\begin_layout Plain Layout + + +\backslash +hbox{$ +\backslash +Lang{reach}_{ +\backslash +operatorname{path}}$}}} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<5->{ +\backslash +langat{0.975}{$ +\backslash +Lang{reach}_{ +\backslash +operatorname{tourn}}$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<6->{ +\backslash +langat{3.375}{ +\backslash +vbox{ +\backslash +ignorespaces +\end_layout + +\begin_layout Plain Layout + + +\backslash +hbox{$ +\backslash +Lang{distance}_{ +\backslash +operatorname{tourn}}$,} +\backslash +ignorespaces +\end_layout + +\begin_layout Plain Layout + + +\backslash +hbox{$ +\backslash +Lang{distance}$,} +\backslash +ignorespaces +\end_layout + +\begin_layout Plain Layout + + +\backslash +hbox{$ +\backslash +Lang{reach}$}}} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<7->{ +\backslash +pgfsetdash{{1pt}}{0pt}% +\end_layout + +\begin_layout Plain Layout + + +\backslash +langat{2.375}{``$ +\backslash +Lang{approx}_{ +\backslash +operatorname{tourn}}$''} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pgfpicture} +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +The Circuit Complexity Classes AC +\begin_inset Formula $^{0}$ +\end_inset + +, NC +\begin_inset Formula $^{1}$ +\end_inset + +, and NC +\begin_inset Formula $^{2}$ +\end_inset + + +\begin_inset Newline newline +\end_inset + +Limit the Circuit Depth +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength +\backslash +leftmargini{1em} +\end_layout + +\begin_layout Plain Layout + + +\backslash +nointerlineskip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Columns +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +t +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Column +3.6cm +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Circuit Class +\begin_inset Formula $\Class{AC}^{0}$ +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +\begin_inset Formula $O(1)$ +\end_inset + + depth +\end_layout + +\begin_layout Itemize +unbounded fan-in +\end_layout + +\end_deeper +\begin_layout Examples + +\end_layout + +\begin_deeper +\begin_layout Itemize +\begin_inset Formula $\Lang{addition}\in\Class{AC}^{0}$ +\end_inset + +. +\end_layout + +\begin_layout Itemize +\begin_inset Formula $\Lang{parity}\notin\Class{AC}^{0}$ +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Pause + +\end_layout + +\begin_layout Column +3.6cm +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Circuit Class +\begin_inset Formula $\Class{NC}^{1}$ +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +\begin_inset Formula $O(\log n)$ +\end_inset + + depth +\end_layout + +\begin_layout Itemize +bounded fan-in +\end_layout + +\end_deeper +\begin_layout Examples + +\end_layout + +\begin_deeper +\begin_layout Itemize +\begin_inset Formula $\Lang{parity}\in\Class{NC}^{1}$ +\end_inset + +. +\end_layout + +\begin_layout Itemize +\begin_inset Formula $\Lang{mutiply}\in\Class{NC}^{1}$ +\end_inset + +. +\end_layout + +\begin_layout Itemize +\begin_inset Formula $\Lang{divide}\in\Class{NC}^{1}$ +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Pause + +\end_layout + +\begin_layout Column +3.6cm +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Circuit Class +\begin_inset Formula $\Class{NC}^{2}$ +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +\begin_inset Formula $O(\log^{2}n)$ +\end_inset + + depth +\end_layout + +\begin_layout Itemize +bounded fan-in +\end_layout + +\end_deeper +\begin_layout Examples + +\end_layout + +\begin_deeper +\begin_layout Itemize +\begin_inset Formula $\Class{NL}\subseteq\Class{NC}^{2}$ +\end_inset + +. +\end_layout + +\end_deeper +\end_deeper +\end_deeper +\begin_layout AgainFrame +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout + +2 +\end_layout + +\end_inset + +hierarchy +\end_layout + +\begin_layout Subsection +Standard Complexity Results on Finding Paths +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +All Variants of Finding Paths in Directed Graphs +\begin_inset Newline newline +\end_inset + +Are Equally Difficult +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Fact +\begin_inset Formula $\Lang{reach}$ +\end_inset + + and +\begin_inset Formula $\Lang{distance}$ +\end_inset + + are +\begin_inset Formula $\Class{NL}$ +\end_inset + +-complete. + +\end_layout + +\begin_layout Pause + +\end_layout + +\begin_layout Corollary +For directed graphs, we can solve +\end_layout + +\begin_deeper +\begin_layout Itemize +the reachability problem in logspace iff +\begin_inset Formula $\Class{L}=\Class{NL}$ +\end_inset + +. +\end_layout + +\begin_layout Itemize +the construction problem in logspace iff +\begin_inset Formula $\Class{L}=\Class{NL}$ +\end_inset + +. +\end_layout + +\begin_layout Itemize +the optimization problem in logspace iff +\begin_inset Formula $\Class{L}=\Class{NL}$ +\end_inset + +. +\end_layout + +\begin_layout Itemize +the approximation problem in logspace iff +\begin_inset Formula $\Class{L}=\Class{NL}$ +\end_inset + +. +\end_layout + +\end_deeper +\end_deeper +\begin_layout AgainFrame +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout + +3 +\end_layout + +\end_inset + +hierarchy +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Finding Paths in Forests and Directed Paths is Easy, +\begin_inset Newline newline +\end_inset + +But Not Trivial +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Fact +\begin_inset Formula $\Lang{reach}_{\operatorname{forest}}$ +\end_inset + + and +\begin_inset Formula $\Lang{distance}_{\operatorname{forest}}$ +\end_inset + + are +\begin_inset Formula $\Class{L}$ +\end_inset + +-complete. +\end_layout + +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Fact +\begin_inset Formula $\Lang{reach}_{\operatorname{path}}$ +\end_inset + + and +\begin_inset Formula $\Lang{distance}_{\operatorname{path}}$ +\end_inset + + are +\begin_inset Formula $\Class{L}$ +\end_inset + +-complete. +\end_layout + +\end_deeper +\begin_layout AgainFrame +\begin_inset Argument 1 +status collapsed + +\begin_layout Plain Layout + +4 +\end_layout + +\end_inset + +hierarchy +\end_layout + +\begin_layout Section +Finding Paths in Tournaments +\end_layout + +\begin_layout Subsection +Complexity of: Does a Path Exist? +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Definition of the Tournament Reachability Problem +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Definition +Let +\color none + +\color red + +\begin_inset Formula $\Lang{reach}_{\operatorname{tourn}}$ +\end_inset + + +\color none + +\color inherit +contain all triples +\begin_inset Formula $(T,s,t)$ +\end_inset + + such that +\end_layout + +\begin_deeper +\begin_layout Enumerate +\begin_inset Formula $T=(V,E)$ +\end_inset + + is a tournament and +\end_layout + +\begin_layout Enumerate +there exists a path from +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $s$ +\end_inset + + to +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $t$ +\end_inset + +. +\end_layout + +\end_deeper +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +The Tournament Reachability Problem is Very Easy +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Theorem +\begin_inset Formula $\Lang{reach}_{\operatorname{tourn}}\in\Class{AC}^{0}$ +\end_inset + +. +\end_layout + +\begin_layout Pause + +\end_layout + +\begin_layout AlertBlock +\begin_inset Argument 2 +status collapsed + +\begin_layout Plain Layout +Implications +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Itemize +The problem is +\begin_inset Quotes eld +\end_inset + +easier +\begin_inset Quotes erd +\end_inset + + than +\begin_inset Formula $\Lang{reach}$ +\end_inset + + and even +\begin_inset Formula $\Lang{reach}_{\operatorname{path}}$ +\end_inset + +. +\end_layout + +\begin_layout Itemize +\begin_inset Formula $\Lang{reach}\not\le_{\operatorname{m}}^{\Class{AC}^{0}}\Lang{reach}_{\operatorname{tourn}}$ +\end_inset + +. +\end_layout + +\end_deeper +\end_deeper +\begin_layout AgainFrame +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +5 +\end_layout + +\end_inset + +hierarchy +\end_layout + +\begin_layout Subsection +Complexity of: Construct a Shortest Path +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Finding a Shortest Path Is as Difficult as +\begin_inset Newline newline +\end_inset + +the Distance Problem +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Definition +Let +\color none + +\color red + +\begin_inset Formula $\Lang{distance}_{\operatorname{tourn}}$ +\end_inset + + +\color none + +\color inherit +contain all tuples +\begin_inset Formula $(T,s,t,d)$ +\end_inset + + such that +\end_layout + +\begin_deeper +\begin_layout Enumerate +\begin_inset Formula $T=(V,E)$ +\end_inset + + is a tournament in which +\end_layout + +\begin_layout Enumerate +the distance of +\begin_inset Formula $s$ +\end_inset + + and +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $t$ +\end_inset + + is at most +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $d$ +\end_inset + +. +\end_layout + +\end_deeper +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +The Tournament Distance Problem is Hard +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Theorem +\begin_inset Formula $\Lang{distance}_{\operatorname{tourn}}$ +\end_inset + + is +\begin_inset Formula $\Class{NL}$ +\end_inset + +-complete. +\end_layout + +\begin_layout Standard +\begin_inset space \hfill{} +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +hyperlink{hierarchy<6>}{ +\backslash +beamerskipbutton{Skip Proof}} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Pause + +\end_layout + +\begin_layout Corollary +Shortest path in tournaments can be constructed +\begin_inset Newline newline +\end_inset + +in logarithmic space, iff +\begin_inset Formula $\Class{L}=\Class{NL}$ +\end_inset + +. +\end_layout + +\begin_layout Pause + +\end_layout + +\begin_layout Corollary +\begin_inset Formula $\Lang{distance}\le_{\operatorname{m}}^{\Class{AC}^{0}}\Lang{distance}_{\operatorname{tourn}}$ +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Proof That +\begin_inset Formula $\Lang{distance}_{\operatorname{tourn}}$ +\end_inset + + is NL-complete +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +nointerlineskip +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Columns +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout +t,onlytextwidth +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Column +5.7cm +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +setlength +\backslash +leftmargini{1.5em} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Reduce +\begin_inset Formula $\Lang{reach}$ +\end_inset + + to +\begin_inset Formula $\Lang{distance}_{\operatorname{tourn}}$ +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Enumerate +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +alert@1 +\end_layout + +\end_inset + +Is input +\begin_inset Formula $(G,s,t)$ +\end_inset + + in +\begin_inset Formula $\Lang{reach}$ +\end_inset + +? +\end_layout + +\begin_layout Enumerate +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +2-| alert@2-8 +\end_layout + +\end_inset + +Map +\begin_inset Formula $G$ +\end_inset + + to +\begin_inset Formula $G'$ +\end_inset + +. +\end_layout + +\begin_layout Enumerate +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +9-| alert@9 +\end_layout + +\end_inset + +Query: +\begin_inset Newline newline +\end_inset + + +\begin_inset Formula $(G',s',t',3)\in\Lang{distance}_{\operatorname{tourn}}$ +\end_inset + +? +\end_layout + +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Block +\begin_inset Argument 2 +status open + +\begin_layout Plain Layout +Correctness +\end_layout + +\end_inset + + +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +10- +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Enumerate +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +10-| alert@10-11 +\end_layout + +\end_inset + +A path in +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $G$ +\end_inset + + induces +\begin_inset Newline newline +\end_inset + +a length-3 path in +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $G'$ +\end_inset + +. +\end_layout + +\begin_layout Enumerate +\begin_inset Argument item:2 +status open + +\begin_layout Plain Layout + +12-| alert@12-13 +\end_layout + +\end_inset + +A length-3 path in +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $G'$ +\end_inset + + induces +\begin_inset Newline newline +\end_inset + +a path in +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $G'$ +\end_inset + +. +\end_layout + +\end_deeper +\begin_layout Column +4.5cm +\end_layout + +\begin_layout Example +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{pgfpicture}{0cm}{-1.25cm}{4.5cm}{3.75cm} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetlinewidth{0.6pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{A}{ +\backslash +pgfxy(1,3.3)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{B}{ +\backslash +pgfxy(2,3.3)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{C}{ +\backslash +pgfxy(3,3.3)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{D}{ +\backslash +pgfxy(4,3.3)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{white} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{A}}{ +\backslash +pgfbox[center,center]{$s$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{D}}{ +\backslash +pgfbox[center,center]{$t$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetendarrow{ +\backslash +pgfarrowto} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodesetsepstart{2pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodesetsepend{2pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<3>{ +\backslash +pgfnodeconnline{B}{A}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<4>{ +\backslash +pgfnodeconnline{B}{C}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<5,10-11,13>{ +\backslash +pgfnodeconnline{C}{D}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<6,10-11,13>{ +\backslash +pgfnodeconncurve{A}{C}{45}{135}{15pt}{15pt}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfxy(0,3.3)}{ +\backslash +pgfbox[left,center]{$G +\backslash +colon$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<2->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfxy(0,2.25)}{ +\backslash +pgfbox[left,center]{$G' +\backslash +colon$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{A1}{ +\backslash +pgfxy(1,2.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{B1}{ +\backslash +pgfxy(2,2.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{C1}{ +\backslash +pgfxy(3,2.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{D1}{ +\backslash +pgfxy(4,2.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{A2}{ +\backslash +pgfxy(1,1.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{B2}{ +\backslash +pgfxy(2,1.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{C2}{ +\backslash +pgfxy(3,1.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{D2}{ +\backslash +pgfxy(4,1.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{A3}{ +\backslash +pgfxy(1,0.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{B3}{ +\backslash +pgfxy(2,0.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{C3}{ +\backslash +pgfxy(3,0.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{D3}{ +\backslash +pgfxy(4,0.25)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{A4}{ +\backslash +pgfxy(1,-.75)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{B4}{ +\backslash +pgfxy(2,-.75)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{C4}{ +\backslash +pgfxy(3,-.75)} +\end_layout + +\begin_layout Plain Layout + + +\backslash +graphnode{D4}{ +\backslash +pgfxy(4,-.75)} +\end_layout + +\begin_layout Plain Layout + + { +\backslash +color{white} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{A1}}{ +\backslash +pgfbox[center,center]{$s'$}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfputat{ +\backslash +pgfnodecenter{D4}}{ +\backslash +pgfbox[center,center]{$t'$}} +\end_layout + +\begin_layout Plain Layout + + } +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<8->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetlinewidth{0.4pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample!25!averagebackgroundcolor} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A2}{C1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A2}{D1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B2}{A1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B2}{C1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B2}{D1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C2}{D1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D2}{A1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D2}{B1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A3}{C2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A3}{D2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B3}{A2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B3}{C2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B3}{D2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C3}{D2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D3}{A2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D3}{B2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A4}{C3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A4}{D3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B4}{A3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B4}{C3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B4}{D3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C4}{D3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D4}{A3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D4}{B3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetstartarrow{ +\backslash +pgfarrowto} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A1}{B1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B1}{C1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C1}{D1} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A2}{B2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B2}{C2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C2}{D2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A3}{B3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B3}{C3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C3}{D3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A4}{B4} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B4}{C4} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C4}{D4} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfclearstartarrow +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{A3}{A1}{135}{-135}{10pt}{10pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{A4}{A2}{135}{-135}{10pt}{10pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{A4}{A1}{135}{-135}{15pt}{15pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{B3}{B1}{135}{-135}{10pt}{10pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{B4}{B2}{135}{-135}{10pt}{10pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{B4}{B1}{135}{-135}{15pt}{15pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{C3}{C1}{135}{-135}{10pt}{10pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{C4}{C2}{135}{-135}{10pt}{10pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{C4}{C1}{135}{-135}{15pt}{15pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{D3}{D1}{135}{-135}{10pt}{10pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{D4}{D2}{135}{-135}{10pt}{10pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconncurve{D4}{D1}{135}{-135}{15pt}{15pt} +\end_layout + +\begin_layout Plain Layout + + +\backslash +color{beamerexample} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfsetlinewidth{0.6pt} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<3->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +color<3>{red} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B1}{A2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B2}{A3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B3}{A4} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<4->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +color<4>{red} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B1}{C2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B2}{C3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B3}{C4} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<5->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +color<5>{red} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C1}{D2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<11>{ +\backslash +pgfnodeconnline{C2}{D3}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<12-13>{ +\backslash +pgfnodeconnline{C3}{D4}} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<6->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +color<6>{red} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<11>{ +\backslash +pgfnodeconnline{A1}{C2}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<12-13>{ +\backslash +pgfnodeconnline{A2}{C3}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A3}{C4} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +only<7->{% +\end_layout + +\begin_layout Plain Layout + + +\backslash +color<7>{red} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<12-13>{ +\backslash +pgfnodeconnline{A1}{A2}} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A2}{A3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{A3}{A4} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B1}{B2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B2}{B3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{B3}{B4} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C1}{C2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C2}{C3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{C3}{C4} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D1}{D2} +\end_layout + +\begin_layout Plain Layout + + +\backslash +pgfnodeconnline{D2}{D3} +\end_layout + +\begin_layout Plain Layout + + +\backslash +alert<11>{ +\backslash +pgfnodeconnline{D3}{D4}} +\end_layout + +\begin_layout Plain Layout + +} +\end_layout + +\begin_layout Plain Layout + + +\backslash +end{pgfpicture} +\end_layout + +\end_inset + + +\end_layout + +\end_deeper +\end_deeper +\begin_layout AgainFrame +\begin_inset Argument 1 +status open + +\begin_layout Plain Layout + +6 +\end_layout + +\end_inset + +hierarchy +\end_layout + +\begin_layout Subsection +Complexity of: Approximating the Shortest Path +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +Approximators Compute Paths that Are Nearly As Short As a Shortest Path +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Definition +An +\color none + +\color red +approximation scheme for +\begin_inset Formula $\Lang{tournament-shortest-path}$ +\end_inset + + +\color none + +\color inherit +gets as input +\end_layout + +\begin_deeper +\begin_layout Enumerate +a tuple +\begin_inset Formula $(T,s,t)\in\Lang{reach}_{\operatorname{tourn}}$ +\end_inset + + and +\end_layout + +\begin_layout Enumerate +a number +\begin_inset Formula $r>1$ +\end_inset + +. +\end_layout + +\begin_layout Standard +It outputs +\end_layout + +\begin_layout Itemize +a path from +\begin_inset Formula $s$ +\end_inset + + to +\begin_inset space ~ +\end_inset + + +\begin_inset Formula $t$ +\end_inset + + of length at most +\begin_inset Formula $r\operatorname{d_{T}}(s,t)$ +\end_inset + +. +\end_layout + +\end_deeper +\end_deeper +\begin_layout Standard +\begin_inset Separator plain +\end_inset + + +\end_layout + +\begin_layout Frame +\begin_inset Argument 4 +status open + +\begin_layout Plain Layout +There Exists a Logspace Approximation Scheme for +\begin_inset Newline newline +\end_inset + +the Tournament Shortest Path Problem +\end_layout + +\end_inset + + +\end_layout + +\begin_deeper +\begin_layout Theorem +There exists an approximation scheme for +\begin_inset Formula $\Lang{tournament-shortest-path}$ +\end_inset + + that for +\begin_inset Formula $1 + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Column1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Column2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Column3 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +A +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\emph on +simple +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +table +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\bar under +example +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +with +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +foils +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Standard +Both tables and figures are supported in Foils however floats don't float + instead they appear exactly where they appear in the text. + Any placement parameters you set will be ignored. +\begin_inset Float table +placement htbp +wide false +sideways false +status open + +\begin_layout Plain Layout +\begin_inset Caption Standard + +\begin_layout Plain Layout +This is a non-floating +\begin_inset Quotes eld +\end_inset + +float +\begin_inset Quotes erd +\end_inset + + table +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Row1 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\emph on +Another +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +simple +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Row2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\bar under +table +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +example +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Row3 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +with +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +foils +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout ShortFoilhead +Headers and Footers +\end_layout + +\begin_layout Standard +\begin_inset CommandInset line +LatexCommand rule +offset "0ex" +width "100col%" +height "3pt" + +\end_inset + + +\end_layout + +\begin_layout Standard +Foil\SpecialChar TeX + provides some powerful header and footer capabilities +\begin_inset Foot +status collapsed + +\begin_layout Plain Layout +You can also use the standard footnotes like this one. +\end_layout + +\end_inset + + that are best set in the preamble although they may be set at any point + in a document. + If you want to change these settings in the document the best place to + do so is at the very top of a foil ie. + straight after the foilhead. +\end_layout + +\begin_layout Standard +The left-footer is controlled by two commands: +\family typewriter + +\backslash +MyLogo{} +\family default + and +\family typewriter + +\backslash +Restriction{} +\family default +. + The first is meant to allow you to include a graphic logo on your foils + and defaults to +\begin_inset Quotes eld +\end_inset + +-Typeset by Foil\SpecialChar TeX +- +\begin_inset Quotes erd +\end_inset + +. + While the second is meant to provide a classification for the audience + e. +\begin_inset space \thinspace{} +\end_inset + +g. +\begin_inset space \space{} +\end_inset + +Confidential. +\end_layout + +\begin_layout Standard +The remaining corners are controlled by: +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +rightfooter{} +\family default + – which defaults to page numbers +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +rightheader{} +\end_layout + +\begin_layout Standard + +\family typewriter + +\backslash +leftheader{} +\end_layout + +\begin_layout Foilhead +Further Reading +\end_layout + +\begin_layout Standard +\begin_inset CommandInset line +LatexCommand rule +offset "0ex" +width "100col%" +height "3pt" + +\end_inset + + +\end_layout + +\begin_layout Standard +Your \SpecialChar LaTeX + distribution should include some documentation on Foil\SpecialChar TeX +. + There are many more features in Foil\SpecialChar TeX + than those described here. + For example, Foil\SpecialChar TeX + can automatically place a horizontal rule between the + headers and all foilheads, and between the body and the footers. +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "2" +literal "true" + +\end_inset + +Jim Hafner, +\begin_inset Quotes eld +\end_inset + +The Foil\SpecialChar TeX + Class Package +\begin_inset Quotes erd +\end_inset + +, +\family typewriter +.../texmf/texmf/doc/latex/foiltex/foiltex.dvi +\end_layout + +\begin_layout Bibliography +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "2" +literal "true" + +\end_inset + +\SpecialChar LyX + Documentation Team, +\begin_inset Quotes eld +\end_inset + +Advanced Editing Tools +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Presentations/Foils_Landslide.lyx b/lib/examples/Presentations/Foils_Landslide.lyx new file mode 100644 index 0000000000..d76b4e8f9d --- /dev/null +++ b/lib/examples/Presentations/Foils_Landslide.lyx @@ -0,0 +1,289 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass foils +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding default +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation landscape +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 0 +\tocdepth -1 +\paragraph_separation skip +\defskip medskip +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle foilheadings +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +MyLogo{HUT/ECDL Kimmo Koli +\backslash +today} +\end_layout + +\end_inset + + +\end_layout + +\begin_layout ShortFoilhead +Landscape slide example with a figure +\end_layout + +\begin_layout Standard +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "48page%" +special "none" +height "1in" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +It is possible to place text beside a figure (clipart platypus in this example) + using the minipage enviroment +\end_layout + +\begin_layout Itemize +The text can contain also item lists +\end_layout + +\begin_layout TickList +Also other lists like tick lists +\end_layout + +\begin_layout CrossList +and cross lists can be entered +\end_layout + +\end_inset + + +\begin_inset space \hfill{} +\end_inset + + +\begin_inset Box Frameless +position "c" +hor_pos "c" +has_inner_box 1 +inner_pos "c" +use_parbox 0 +use_makebox 0 +width "45page%" +special "none" +height "1pt" +height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" +status open + +\begin_layout Plain Layout +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Graphics + filename ../doc/clipart/platypus.eps + width 9cm + rotateOrigin center + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\begin_inset VSpace 0.3cm +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +You can also add more text below below the minipages as you may have guessed. +\end_layout + +\begin_layout ShortFoilhead +How it was done +\end_layout + +\begin_layout Standard +\noindent +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\end_layout + +\begin_layout Itemize + +\family roman +Just select with the mouse the text paragraphs you want to mark as minipages + and then select +\family default + Layout\SpecialChar menuseparator +Paragraph:ExtraOpt +\family roman +and press the +\family default + Minipage +\family roman +button and add a minipage width. + +\end_layout + +\begin_layout Itemize + +\family roman +Then put cursor to the paragraph containing the figure and mark it also + a minipage, but add also the +\family default + HFill between the Minipage paragraphs +\family roman +and +\family default + Start a new Minipage +\family roman +options +\end_layout + +\begin_layout Itemize + +\family roman +You can also change the alignment in this +\family default + Extra options +\family roman +menu to middle for all minipage paragraphs for a better result. +\end_layout + +\begin_layout Itemize + +\family roman +Somehow (correct this if you know how) the figure size set by the +\family default + % of the page +\family roman +doesn't scale the picture right but still the +\family default + cm +\family roman +and +\family default + inches +\family roman +entries will work. +\end_layout + +\end_body +\end_document diff --git a/lib/examples/Presentations/Powerdot.lyx b/lib/examples/Presentations/Powerdot.lyx new file mode 100644 index 0000000000..bccf7e964f --- /dev/null +++ b/lib/examples/Presentations/Powerdot.lyx @@ -0,0 +1,1458 @@ +#LyX 2.3 created this file. For more info see http://www.lyx.org/ +\lyxformat 544 +\begin_document +\begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ +\textclass powerdot +\begin_preamble +\pdsetup{% + lf=left footer, + rf=right footer +} +\end_preamble +\options style=fyma,display=slidesnotes +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures false +\graphics default +\default_output_format pdf +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize size=10 +\spacing single +\use_hyperref false +\papersize letterpaper +\use_geometry true +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation landscape +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +\size larger +General Notes +\end_layout + +\begin_layout Enumerate + +\series bold +Output Format: +\series default + +\emph on +Powerdot +\emph default + heavily draws on +\begin_inset Quotes eld +\end_inset + +postscript code +\begin_inset Quotes erd +\end_inset + +. + Thus, it does +\series bold +not work with PDF +\begin_inset space ~ +\end_inset + +(pdflatex) +\series default +. + The +\begin_inset Quotes eld +\end_inset + +View +\begin_inset Quotes erd +\end_inset + + button uses +\emph on +ps2pdf +\emph default + to generate a PDF, which is the recommended method (for your own documents, + you can set this via +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar ldots +\SpecialChar menuseparator +Output\SpecialChar menuseparator +Default Output Format +\family default +). + Via the menus or the +\begin_inset Quotes eld +\end_inset + +View other formats +\begin_inset Quotes erd +\end_inset + + button, you can use other output formats. + However, the only sensible alternative is +\emph on +Postscript +\emph default + itself. + +\emph on +PDF +\begin_inset space ~ +\end_inset + +(dvipdfm) +\emph default + compiles, but most likely does not produce correct output. + The same applies to +\emph on +DVI +\emph default +. +\end_layout + +\begin_layout Enumerate + +\series bold +Options: +\series default + Depending on your \SpecialChar LaTeX + system you might have to add the option +\begin_inset Quotes eld +\end_inset + +dvips +\begin_inset Quotes erd +\end_inset + + to the document class options ( +\family sans +Document\SpecialChar menuseparator +Settings\SpecialChar ldots +\SpecialChar menuseparator +Document Class\SpecialChar menuseparator +Class Options\SpecialChar menuseparator +Custom +\family default +) to get proper output. +\end_layout + +\begin_layout Enumerate + +\series bold +Appearance: +\series default + You can customize the look of the presentation with the class options +\emph on +style=