Presentation is loading. Please wait.

Presentation is loading. Please wait.

Latex & Bibtex Uroš Lotrič & Pa3cio Bulić. Introduction  Dilemma:  WYSIWYG and everything else  My chronological experience Word, LaTeX  Questionnaire.

Similar presentations


Presentation on theme: "Latex & Bibtex Uroš Lotrič & Pa3cio Bulić. Introduction  Dilemma:  WYSIWYG and everything else  My chronological experience Word, LaTeX  Questionnaire."— Presentation transcript:

1 Latex & Bibtex Uroš Lotrič & Pa3cio Bulić

2 Introduction  Dilemma:  WYSIWYG and everything else  My chronological experience Word, LaTeX  Questionnaire  MS Word and LaTeX  Styles  Figure and table captions  Automatically generated table of context, figures, tables, …  Cross-referencing of figures and tables  Cross-referencing of equations  Bibliography  Diploma and doctoral thesis

3 Word processors MS Word LaTeX  Perfect for short documents  Very intuitive  Suitable for short, nicely designed letters, invitations  Too much focus on design  Perfect for longer documents  Experiences count!  Suitable for writing scientific papers and technical reports  Content is in the first plan, design in the second

4 Word processors - scoring MS WordLaTeX Short documents Short documents are prepared quickly, WYSIWYG is a great advantage Slower preparation, the results are not seen immediately, more time- consuming correction Large docuemnts with graphic elements Word becomes slow, automatic saving is necessary but annoying Contents and commands are written in a dull text document, the environment is actually forcing us to do the job. (frequency of compilation should be low) Simplicity Basic things are very intuitive, learning needed to master advanced functions You need to know some basic commands, at the beginning it goes slowly, with your knowledge the speed increases considerably Compatibility Their own format, MS does not care about others. Common output formats are PS and PDF. Very limited editing functionality.

5 Word processors - scoring MS WordLaTeX Apperance of printed documents Satisfactory but not proffessional (books). Necessary usage of advanced functions. Professional look without any pains, many books are designed in LaTeX, possible use of additional packages Science Problems with cross-referencing and citing, (inconvenient tools for equation editing), very basic bibliography tools Cross-referencing and citing are standard function, simple equation editing, possible integration of additional tools (BibTeX) Pricing and availability Purchase of tex editor and (bibliography editor), Plug and Play For free, opened scheme, integration of many tools: compiler, editor, viewer, spell checker, thesaurus, … TOTAL vir: openwetware.org/wiki/Word_vs._LaTeX

6 LaTeX  TeX, 1977 – 1990 (D. Knuth)  LaTeX, 1980  (Leslie Lamport)  Literature:  books  Lamport: LaTeX: A Documentation Preparation System User's Guide and Reference Manual, Adison Wesley, 1994.  Goosens et al.: The LaTeX Companion, Adison Wesley, 1994.  Goosens et al.: The LaTeX Graphics Companion, Adison Wesley, 2007.

7 LaTeX  Literature  web links (English)  tobi.oetiker.ch/lshort/lshort.pdf tobi.oetiker.ch/lshort/lshort.pdf  en.wikibooks.org/wiki/LaTeX en.wikibooks.org/wiki/LaTeX  Web links (Slovene)  www.tex.ac.uk/tex-archive/info/lshort/slovenian/lshort-slovenian.pdf www.tex.ac.uk/tex-archive/info/lshort/slovenian/lshort-slovenian.pdf  zaversnik.fmf.uni-lj.si/gradiva/LaTeX/latex1.pdf... zaversnik.fmf.uni-lj.si/gradiva/LaTeX/latex4.pdf zaversnik.fmf.uni-lj.si/gradiva/LaTeX/latex1.pdf zaversnik.fmf.uni-lj.si/gradiva/LaTeX/latex4.pdf

8 LaTeX  Many different distributions  What we need?  Compiler with accompanying tools,  IDE with text editor,  Viewer: dvi, ps, pdf, and  maybe something else.  Document creation  First writing,  Then compiling  beginnings: latex: tex  dvi  today: pdftex: tex  pdf

9 LaTeX  Repository: ftp://ftp.dante.deftp://ftp.dante.de  LaTeX  Windows: MikTeX (www.miktex.org/)www.miktex.org/  Linux: TeXLive (www.tug.org/texlive/)www.tug.org/texlive/  Max: MaxTeX 2010 (TeXLive wrapper)  Viewers  GhostScript in GS View (pages.cs.wisc.edu/~ghost/)pages.cs.wisc.edu/~ghost/  Adobe PDF (www.adobe.com)www.adobe.com  evince (projects.gnome.org/evince/),projects.gnome.org/evince/  okular (okular.kde.org/),okular.kde.org/  Integrated…

10 LaTeX  Text editor and IDE  IDE with many important tools  Concept WYSIWYM (What You See Is What You Mean)  LyX

11 LaTeX

12  WinEdt (www.winedt.com)www.winedt.com  shareware!  A lot of functions  Slovenian language spell-checker  Own dictionary  Very good integration with MikTeX  Windows only

13 LaTeX  TeXnicCenter(www.texniccenter.org/)www.texniccenter.org/  Freeware  Complex  Own dictionary  Windows only

14 LaTeX  Kile (kile.sourceforge.net/)kile.sourceforge.net/  Linux only

15 LaTeX  Texmaker (www.xm1math.net/texmaker/)www.xm1math.net/texmaker/  Freeware  Linux, MacOS, Windows  Slovenian language spell-checker  Clean and modern interface  Just enough functions  Integrated viewer  Two way search

16 LaTeX  Editor properties  Special icons to help you entering mathematical symbols  Templates of many TeX constructs  Support for multi-document projects  Suggestions for cross-references and citation during typing  Location of syntactical errors in documents  Link to viewer  Forward search  Viewer opens the document at the editing position  Inverse search  By clicking on a paragraph in the viewer the cursor in the editor changes to that position  Dictionaries

17 LaTeX  Slovenian letters  TeX file in ASCII format  From the very beginning: č: \v{c}, š: \v{s}, ž: \v{z}  Solutions  WinEdt:  Letter č can be displayed and typed, but it is saved as \v{c}  Options | Settings | Translations: | Table: Tex_Read in Tex_Write  Babel  \usepackage[slovene]{babel}  "c  č, "s  š, "z  ž, "C  Č, "S  Š, "Z  Ž,  "  «… », "` … "'  „ … ”  Explicit hyphenation "-

18 LaTeX  Slovenian letters  Solutions  CatCode: we can change the behaviour of symbols  \catcode `č=13 \def č{\v c} \catcode `š=13 \def š{\v s} \catcode `ž=13 \def ž{\v z} \catcode `ć=13 \def ć{\'c} \catcode `đ=13 \def đ{\dj} \catcode `Č=13 \def Č{\v C} \catcode `Š=13 \def Š{\v S} \catcode `Ž=13 \def Ž{\v Z} \catcode `Ć=13 \def Ć{\'C} \catcode `Đ=13 \def Đ{\DJ}  Portability issues

19 LaTeX  Slovenian letters  Solutions  Bable+InputEnc  \usepackage[slovene]{babel} \usepackage[cp1250]{inputenc}  DOS: cp852  Windows: cp1250  Linux: latin2 or utf8x  Slovenian letters are typed directly  Portability issues  Fontenc + appropriate font  \usepackage[T1]{fontenc} \usepackage{lmodern}  Better results, correct hyphenation  TeX generates letters, not lines – in pdf documents we can search for words with Slovenian letters

20 LaTeX  Styles  \documentclass[a4paper, 12pt, twoside, slovene]{paper}  letter, article, paper, report, book  Publishers of scientific journals, books, and conference proceedings, as well as some universities prepare their own styles with many new features as well as instructions  Packages  \usepackage{babel}  \usepackage{amssymb}  \usepackage{graphicx}  \usepackage{makeidx}

21 LaTeX  Fonts  \textrm, \textbf, \textsl, \textit, \texttt, …  \tiny, …, \Huge  \usepackage{...} ... = mathpazo, helvet, avant, bookman, newcent, charter, mathptmx, lmodern  www.tug.dk/FontCatalogue/ www.tug.dk/FontCatalogue/

22 LaTeX  Logical text editing  \author  \title  \date  \begin{document} … \end{document}  Sections  \part  \chapter{A CHAPTER}  \section{Some section}  \subsection{Subsection of a section}  \subsubsection{A sub-subsection}  \paragraph{Small unnumbered section}  \subparagraph{Even smaller section}

23 LaTeX  Enumeration  \begin{enumerate} … \end{enumerate}  \begin{itemize} … \end{itemize}  Each item is starts with \item  Page numbering  \pagenumbering{roman, arabic}  \pagestyle{empty, plain, headings, myheadings}  Paragraph  Separation of two paragraphs: \\ or \par or empty line  indentation: \noindent in \indent

24 LaTeX  Equations  Command typing  Environments:  $...$, $$...$$,  \begin{equation}…\end{equation}  \begin{eqnarray}…\end{eqnarray}  \label{some label} for cross-referencing purposes  Tables  \begin{table}[!hbt]…\end{table}  !hbt – positioning of a table in a finally document: here, bottom, top  \caption{table caption}  \label{some label} for cross-referencing purposes  \tabular – environment used for tables

25 LaTeX  Figures  \begin{figure}[!hbt]…\end{figure}  \caption{Figure caption}  \label{some label}  \includegraphics{file_name.eps} from graphicx package  When compiling with  LaTeX to DVI: only EPS format is supported  PdfTeX to PDF: supports PNG, PDF, and JPG. EPS format can be automatically converted during compilation if epstopdf package is used \usepackage{epstopdf}  Cross-referencing  \ref{some label}

26 LaTeX  Hyphenation  automatic and quite often wrong  Correct hyphenation can be written before \begin{document} \hyphenation{un-ex-cep-tion-al}  or directly in the document, if a word appears rarely  un\-ex\-cep\-tion\-al  Hyphenation can be suppressed by putting box around a word  \mbox{text}

27 LaTeX  Babel and Slovenian orthography  Numbering of sections 2.3. and not 2.3  \renewcommand \thesection{\arabic{section}.} \renewcommand \thesubsection{\thesection \arabic{subsection}.} …  Decimal separator is a comma, not a period  1. 000. 000 and 3,14, and not 1, 000, 000 and 3.14  \mathchardef\CommaOrdinary="013B \mathchardef\CommaPunct ="613B \mathcode`,="8000 {\catcode`\,=\active \gdef,{\obeyspaces\futurelet\next\CommaCheck}} \def\CommaCheck{\if\space\next\CommaPunct\else\CommaOrdinary\fi}

28 LaTeX  Bibliography editing  Basic work with bibliographical data  \begin{thebibliography}{99}…\end{thebibliography}  \bibitem{Foster2003} Foster, I., Kesselman, C. (eds.): The Grid: Blueprint for a New Computing Infrastructure, Morgan Kaufmann (2003)  \cite{Foster2003}  Many references appear in all our papers. Do we have to re- format them for every journal?

29 LaTeX  Bibliography editing  Advanced tool - BibTeX  Database in form of a Plain-text BIB file  When compiling, records from BIB file which were cited in our work are appropriately formatted and written in a BST file  Source TEX files and BST file are used to produce the final output  A record in BIB database @BOOK{LaTeX, author = "L. Lamport", title = "\latex/ -- A Document Preparation System", publisher = "Addison-Wesley", edition = "first", year = 1985, note = "Describes \latex/ 2.09“, }  Citation of above record: \cite{LaTeX}

30 LaTeX  Bibliography editing  Advanced tool – BibTeX  Many types of records can be used  @ARTICLE, @BOOK, @INPROCEEEDINGS, @INBOOK, …  Different attributes to describe publications  Final appearance depends on the style used  \bibliographystyle{…}  plain, unsrt, alpha, abbrv, acm, apalike, …  \bibliography{BST file without extension}

31 LaTeX  Tables of …  contents: \tableofcontents  figures: \listoffigures  tables: \listoftables  Index  additional tool makeindex  \usepackage{makeidx}  \makeindex  \index{term!detail}  \printindex

32 LaTeX  Defining new commands  \def\btheta{{\mbox{\boldmath $\theta$}}}  TeXify tool  Takes care of correct compiling sequence of LaTeX, BibTeX, and MakeIndex  Preparing new style  files STY in CLS,  Redefinition of command  Trial and error - a lot of experimenting and fun? or studying of documentation  Tools for group work?  File comparison utilities like WinMerge

33 Vocabulary  Wordweb  wordweb.info/free/ wordweb.info/free/  web application:  thesaurus.reference.com/ thesaurus.reference.com/

34 Tex on-line  https://www.overleaf.com/  Real time collaboration,  Online compiling and real-time preview  Sharing  Versioning

35 Conversion tools  Word2Tex and Tex2Word  www.word2tex.com/ www.word2tex.com/  Word-To-Latex and Latex-To-Word  www.grindeq.com www.grindeq.com

36 Bibliography managers Nejc Ilc

37

38 Bibliography managers  Building a private database of references  Record tracking: when and where something was found  Annotating the records  Linking of records with (PDF) documents  Effective searching local and online databases  Collaborating with other researchers  Discovering related papers

39 Bibliography managers  Software tools comparison  31 managers, 8 features en.wikipedia.org/wiki/Comparison_of_reference_ management_software en.wikipedia.org/wiki/Comparison_of_reference_ management_software  5 managers, 35 features www.library.wisc.edu/citation-managers/comparison.html www.library.wisc.edu/citation-managers/comparison.html  LaTeX / BibTeX reference en.wikibooks.org/wiki/LaTeX/Bibliography_Management en.wikibooks.org/wiki/LaTeX/Bibliography_Management

40 Bibliography managers  Comparison of several managers JabRef cost 185 €, Basic for free 59 €free (GPL)freefree (AGPL) developer Thomson Reuters Mekentosj (Springer) JabRef peopleElsevier Roy Rosenzweig Center for History and New Media homepageendnote.compapersapp.com jabref. sourceforge.net mendeley.comzotero.org type stand-alone, web (Basic) stand-alone stand-alone, Firefox plug-in cloud storage5 GB integration with Dropbox 2 GB300 MB supported OS Windows, Mac OS X Windows, Mac OS X, Linux all (Firefox plug-in)

41 Bibliography managers JabRef Android app (3 rd party) RefMaster (3 rd party) Scholarley, Referey, … (3 rd party) Zandy, … iPhone / iPad appPapers 3 (3 rd party) PocketBib Mendeley (3 rd party) BibUp, … link to PDFs and files Yes PDF annotations, highlighting, notes Yes full-text PDF search Yes add user notesYes Yes (BibTeX field) Yes BibTeX (import / export) Yes

42 Bibliography managers JabRef IEEE citation styleYes no style formatting Yes word processor integration MS Word OpenOffice MS Word OpenOffice MS Word (Bibtex4Word) OpenOffice MS Word OpenOffice MS Word OpenOffice collaborationprivate groups social network Livfe public & private groups, social network online databases search WoS, PubMed, … IEEE Xplore, WoS, Google Scholar, PubMed, … IEEE Xplore, Google Scholar, … Mendeley's paper catalog nice features spell-checker, Firefox extension efficient UI, Lifve service integrates with LaTeX editors related articles search, open articles database timeline

43

44 Access to the publications  From university computers you have access to many databases and papers for free  From outside the faculty  VPN connection  Proxy settings of the web browser  TODO ASAP  Ask mentor

45 Homework: Word Processors and bibliography Managers Uroš Lotrič

46 Homework  Prepare a paper in the format of your favourite journal (e.g. Springer LNCS, IEEE, Elsevier)  Choose a journal and look for the Latex template at the journal’s website  follow the instructions  up to 5 pages long  two authors (from different institutions)  at least two sections and subsections  two figures, two tables, program code, and two equations (one multirow equation)  at least three cited references (use BibTeX and bibliography tools like Mendeley)  use automatic referencing to sections, figures, tables, code, and equations  Topic: arbitrary (fun)

47 Homework  Tool: use Overleaf and share your project with me! (patricio.bulic@gmail.com)  Submission  Deadline: 21. 10. 2015, 16:00  Submit PDF and source files (tex, bib, eps, pdf), compressed to a single ZIP file (up to 50 MB)!!!  https://ucilnica.fri.uni-lj.si/vzd1


Download ppt "Latex & Bibtex Uroš Lotrič & Pa3cio Bulić. Introduction  Dilemma:  WYSIWYG and everything else  My chronological experience Word, LaTeX  Questionnaire."

Similar presentations


Ads by Google