Document preparation systems - School of Computing

Download Report

Transcript Document preparation systems - School of Computing

Document preparation systems
Miktex and Texmaker
Based on LaTeX
Lecturer: Patrick Browne
http://www.comp.dit.ie/pbrowne/
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/downlo
ad.html#windows
• texmakerwin32_install.exe (Qt5 - 52.1 Mo)
• Textmaker 4.1.1
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}
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.
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.
Compile title.tex with 1
View PDF with 2
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
A more elaborate example
• Download thesis1.zip. from the ISRP
web page:
•
http://www.comp.dit.ie/pbrowne/Information%20Systems%20Research%20Practice/DT249Information%20Systems%20Research%20Practice-2013-14.htm
• Unzip the files to the same folder.
• Start Texmaker and open thesis.tex.
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
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.
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
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’.
More Information
• See glossary.zip and glossary1.zip on the
ISRP web page.
• Plenty of stuff on the Web, just type
Texmaker into Youtube:
Semantic Web
•
•
•
•
•
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-semanticweb/introduction.html
• http://en.wikiquote.org/wiki/Tim_Berners-Lee
• http://en.wikipedia.org/wiki/Tim_Berners-Lee
RDF Triple
• "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".