document preparation systems miktex and texmaker based on latex lecturer: patrick browne

16
Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne http://www.comp.dit.ie/pbrowne/

Upload: antonia-lewis

Post on 11-Jan-2016

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

Document preparation systems

Miktex and TexmakerBased on LaTeX

Lecturer: Patrick Brownehttp://www.comp.dit.ie/pbrowne/

Page 2: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

Downloads for Windows

• Miktex: Select the following or later

• http://www.miktex.org/download

• basic-miktex-2.9.5105

• Texmaker: Select the following or later

• http://www.xm1math.net/texmaker/download.html#windows

• texmakerwin32_install.exe (Qt5 - 52.1 Mo)

• Textmaker 4.1.1

Page 3: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

Set up imports for TexMaker\documentclass{book}

\usepackage{verbatim}

\usepackage{listings}

\usepackage{color}

\usepackage{titlepic}

\usepackage{natbib}

\usepackage[english] {babel}

\lstset{language=C}

\definecolor{dkgreen}{rgb}{0,0.6,0}

\definecolor{gray}{rgb}{0.5,0.5,0.5}

\definecolor{mauve}{rgb}{0.58,0,0.82}

\usepackage{graphicx}

\DeclareGraphicsExtensions{.jpg}

Page 4: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

Make a title page in Texmaker\begin{document}

\begin{titlepage}

\titlepic{\includegraphics{DIT}}

\title{An Algebraic Approach to Ontology Representation}

\author{Pat Browne\\ School of Computing\\ Dublin Institute of Technology \\Kevin Street, Dublin 8}

\end{titlepage}

\maketitle

The DIT graphic is a DIT.JPG file which must be the same folder as your document.

Open the file title.tex with TexMaker.

Page 5: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

The DIT graphic is a DIT.JPG file which must be the same folder as your document called title.tex.

Open the file title.tex with Texmaker.

Page 6: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

Compile title.tex with 1

Page 7: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

View PDF with 2

Page 8: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

A more elaborate example

• The document thesis.tex contains most of the features that you will need to write your report.

• It contains many additional imports.

• If the package is not present on your machine it will be downloaded from the Web. You will be asked to pick or confirm the download source, see:

• http://en.wikibooks.org/wiki/LaTeX/Package_Reference

Page 9: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

A more elaborate example

• Download thesis1.zip. from the ISRP web page:

• http://www.comp.dit.ie/pbrowne/Information%20Systems%20Research%20Practice/DT249-Information%20Systems%20Research%20Practice-2013-14.htm

• Unzip the files to the same folder.

• Start Texmaker and open thesis.tex.

Page 10: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

Compile thesis1

• Compile thesis1.tex with thesis1.bib

• Use the sequence– PDFLaTex (detects a citation)– BibTex (formats the citation)– PDFLaTex (makes the link)– PDFLaTex (you are done)

• If you make changes to .bib• You should run BibTex again

Page 11: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

Create your own bibliography

• Make a .bib file. In this example we use thesis.bib, which is best kept in the same folder as thesis.tex.

• \bibliography{thesis} should be in thesis.tex.

Page 12: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

Create a bibliography

• Compile thesis.bib with the sequence– PDFLaTex (detects a citation)– BibTex (formats the citation)– PDFLaTex (makes the link)– PDFLaTex (you are done)

• If you make changes to .bib• You should run BibTex again.• Make a PDF

Page 13: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

To use a glossary requires Perl

• Active Perl works with Texmaker• http://www.activestate.com/activeperl/downloads

• ActivePerl-5.16.3.1603-MSWin32-x86-296746.msi• The Windows PATH variable should include c:\perl\bin• A command should be added to Texmaker in the user commands in

Main Menu | User | User Commands• Add ’makeglossaries’ in the upper box and ’makeglossaries %’

in the lower box.

• When you add a new word to the glossary you must run ’makeglossaries’.

Page 14: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

More Information

• See glossary.zip and glossary1.zip on the ISRP web page.

• Plenty of stuff on the Web, just type Texmaker into Youtube:

Page 15: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

• W3C: http://www.w3.org/standards/semanticweb/• Wikipedia: http://en.wikipedia.org/wiki/Semantic_Web_Stack• http://en.wikipedia.org/wiki/Semantic_Web• http://en.wikipedia.org/wiki/Intelligent_agent• Others:

http://www.obitko.com/tutorials/ontologies-semantic-web/introduction.html

• http://en.wikiquote.org/wiki/Tim_Berners-Lee• http://en.wikipedia.org/wiki/Tim_Berners-Lee

Semantic Web

Page 16: Document preparation systems Miktex and Texmaker Based on LaTeX Lecturer: Patrick Browne

• "The sky has the colour blue" in RDF is as the triple:– a subject denoting "the sky", – a predicate denoting "has", and – an object denoting "the colour blue".

RDF Triple