$\mbox{\LaTeX{}}$ is a document markup language and document preparation system for the TeX typesetting program. It is wide used on cientific publications and should be easier than MS Word. In fact is necessary some time to get the things working, but at the end the results are fabulous.
To start is necessary a compiler and an editor.
In Windows you need:
- Compiler MikTex, download the "Basic MiKTeX". It will give more flexibility, but you must have internet access because the missing packages are downloaded on demand. Otherwise take the full one version.
- Pdf viewer Foxit. Unfortunately the version 2.2 works better with TeXniCCenter than the version 3.0. The Acrobat reader can also be used, it requires more computer resources and therefore is slower to start than Foxit.
- Ps package Ghost, download and install Ghostview and Ghostscript.
- Editor TeXniCCenter. An excelent $\mbox{\LaTeX{}}$ Editor. Install it at the end to make possible the application connection with the programs above.
For Linux (Latex in Ubuntu) :
- Compiler "TeX-Live". I recomend package texlive-full for large $\mbox{\LaTeX{}}$ work to avoid extra work installing missing styles. It already includes pdflatex and bibtex.
- dvi viewer Kdvi, package kdvi. For ubuntu users see kdvi or use the program okular.
- Editor Kile, package kile.
- Image Magick to work with figures, package imagemagick.
- Optional: Compiler to Web files, package latex2html. Acrobat reader can also be installed to view pdf files, have a look at Medibuntu for installation instructions.
For debian based systems use sudo apt-get install <package> to install a package.
For $\mbox{\LaTeX{}}$ users and also for people that refuse to use it, I strong recomend to install JabRef. It is a simple program that helps to archive your collection of digital books, papers and so on. It offers a good overview of all your literature with a link to your digital library. It is Java based, it means that it works in all platforms that support Java. And the best, it generates BibTex files.
If you are not convinced about $\mbox{\LaTeX{}}$ and want to use MS-Office or OpenOffice, I can cite two ways to insert presentable equations in your work. First of all, the equations are treated as pictures, so you can generate a script to do the work for you, (see script), or add plug-ins in your favorite Editor, (see plug-ins).
Basics:
documentclass - LaTeX document class options.
Beamer - A documentclass for Presentations.
Beamer preambel - A preambel using Beamer.
Table and Figure - Floats, position of figures and tables.
Extra tips:
BibTex-Style - Inserting and changing the bibliography style.
Comment - Comment a text block.
Special characters - ä á à …
overpic - Put LaTeX on top of included graphics.
subfig - sort subfigures within one figure.
picture - drawing with TeX.
mbox - wirite text inside equations.
thispagestyle - suppress the page number on the current page.
Administration:
mktexlsr - Tex-Live, installing new style files.
TeXniCCenter with Acrobat - Viewing pdf with Acrobat.
TeXniCCenter with Foxit - Viewing pdf with Foxit.
script - Shell script to generate Images based on a LaTeX document.
plug-ins - Add a LaTeX equation editor in MS-Office or OpenOffice editor.
kdvi - Installing Kdvi in Ubuntu.
Basics:
documentclass |
|
LaTeX document class options.
The most used LaTeX document styles are book, article and report. The class options are in the Table below presented. In bold the default options.
|
article |
book |
report |
scrbook |
Body text point size |
10 pt, 11 pt, 12 pt |
12 pt, 14 pt |
Paper size |
8.5x11, a4, a5, b5, Legal size, Executive size |
Orientation |
Portrait, Landscape |
Print side |
One side, Both sides |
One side, Both sides |
One side, Both sides |
|
Quality |
Final, Draft |
Title page |
No, yes |
No, yes |
No, yes |
|
Columns |
One, Two |
Equation numbering |
On right, On left |
Displayed equations |
Centered, Flush left |
Bibliography style |
Compressed, Open |
Start chapter on left |
Not applied |
No, Yes |
|
Example of use:
\documentclass[ 14pt, a4paper ]{scrbook}
\input{Packages_Commands/Preamble}
\begin{document}
\input{./en/cover}
\input{./en/introduction}
\end{document}
The tag
\input add an external file at the command position.
An useful documentclass is the minimal. I use it to generate pictures or equations to import later in OpenOffice or MS-Office. For example:
\documentclass{minimal}
\begin{document}
\begin{displaymath}
A = U - T \cdot S
\end{displaymath}
\end{document}
Beamer |
|
A documentclass for Presentations.
Beamer is a documentclass to create presentations in LaTeX.
A good tutorial I found in internet from Ki-Joo Kim, Guide and PsTricks.
For a more complete description about changing the master page I found on the work from Matthias Pospiech at Beamer (Vortrag).
Beamer preambel |
|
A preambel using Beamer.
The file presentation.tex
\documentclass[
final,
11pt, % Standardschriftgröße
compress, % Die Navigation in der Kopfzeile wird komprimiert dargestellt
t, % Place text of slides at the (vertical) top of the slides
xcolor={table,dvipsnames}, % Optionen für xcolor übergeben
show notes, % enables Notes
]{beamer}[2007/03/11] % Minimum necessary version due to severe bugs in version 3.06 !!!
\input{preambel/Beamer-Fonts}
\input{preambel/Beamer-LaTeX-Settings}
\input{preambel/Beamer-Settings}
\input{preambel/Beamer-LaTeX-newcommands}
\begin{document}
\input{content/Promotion}
\end{document}
preambel/Beamer-Fonts
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Fonts Fonts Fonts
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\usepackage[T1]{fontenc} % T1 Schrift Encoding
\usepackage{textcomp} % additional symbols (Text Companion font extension)
\usepackage{pifont}% additional symbols (\ding{number})
\usepackage{mathptmx} %% --- Times mit Matheschriften
\usepackage[scaled=.90]{helvet} %% --- Helvetica (Arial)
\usepackage{courier} %% --- Courier
preambel/Beamer-LaTeX-Settings
% an error appear after include the package movie15
% "No room for a new \dimen"
% the package etex fix it.
\usepackage{etex}
%make possible include vector images (u3d) in a pdf with
%CAD functions to interate with
\usepackage[3D]{movie15}
% *** Sprache *****************************
\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
%------------------------------------------
%%% Doc: ftp://tug.ctan.org/pub/tex-archive/macros/latex/required/graphics/grfguide.pdf
% Bilder
\usepackage[]{graphicx}
\usepackage{tabularx} % Erweiterte Tabellen Optionen
\usepackage{booktabs}
\usepackage{multicol}
% # Bilder
\usepackage{graphicx} % zum Einbinden von Grafiken
\graphicspath{{../figures/}} % Pfad zu den Bildern setzen
\DeclareGraphicsExtensions{.png,.jpg,.pdf}
\usepackage{pgf,pgfarrows,pgfnodes}
\usepackage{pstricks}
\usepackage[abs]{overpic} % Use LaTex on top of included graphics.
preambel/Beamer-Settings
preambel/Beamer-LaTeX-newcommands
% >>> Itemize Bullets
% -------------------------------
\useinnertheme{default} % Zahlen
\useoutertheme[%
footline=empty, % suppressed the footline (default).
]{miniframes}
\usecolortheme{default}
% *****************************************
% Detailierte Veraenderungen der Farben
\setbeamercolor*{author in head/foot}{fg=black,bg=white!70!black}
\setbeamercolor*{date in head/foot}{fg=white,bg=white!70!black}
\setbeamercolor*{section in head/foot}{fg=white,bg=black} %tertiary
\setbeamercolor*{middle separation line head}{bg=black}
\setbeamercolor*{lower separation line head}{bg=white!70!black}
\setbeamercolor*{institute in head/foot}{fg=white,bg=white!70!black}
\setbeamercolor*{title}{fg=black}
\setbeamercolor*{subtitle}{fg=black}
% *****************************************
% Transparenz Effekte
\setbeamercovered{invisible} % is the default and causes covered text to 'completely disappear.
% *****************************************
% >>>> Veraendern der Schrifteinstellung definierter Elemente
\setbeamerfont*{title}{size=\LARGE}
\setbeamerfont*{subtitle}{size=\normalsize,family=\rmfamily}
\setbeamerfont*{author}{size=\Large}
\setbeamerfont*{institute}{size=\normalsize}
\setbeamerfont*{date}{size=\small}
\setbeamerfont*{institute in head/foot}{size=\tiny}
\setbeamerfont*{subsection in head/foot}{size=\large,shape=\upshape}
\setbeamerfont*{frametitle}{size=\large}
% *****************************************
% >>>> 15.3.2 Using Beamer's Templates
\setbeamertemplate{headline}%{infolines theme}
{
\begin{beamercolorbox}{section in head/foot}
\vskip2pt\insertnavigation{\paperwidth}\vskip2pt
\end{beamercolorbox}
\begin{beamercolorbox}[ht=4.6ex,dp=1.5ex,leftskip=.2cm,rightskip=.2cm plus1fil]{default}%
\leavevmode{\usebeamerfont{subsection in head/foot}\ifnum\thesection>0 \thesection. \insertsection\fi}
\hfill
{\includegraphics[height=4.5ex]{ift_4C}}
\end{beamercolorbox}
\begin{beamercolorbox}[colsep=0.3pt]{lower separation line head}
\end{beamercolorbox}
}
\setbeamertemplate{footline}%{infolines theme}
{
\hbox{%
\begin{beamercolorbox}[wd=.45\paperwidth,ht=5.5ex,dp=0.25ex,sep=1.5ex,left]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=5.5ex,dp=0.25ex,sep=1.5ex,center]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertframenumber{} / \inserttotalframenumber
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.40\paperwidth,ht=5.5ex,dp=0.25ex,sep=1.5ex,right]{institute in head/foot}%
\usebeamerfont{institute in head/foot}{Technische Universit\"at Braunschweig}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.05\paperwidth,ht=5.5ex,dp=0.25ex,left]{institute in head/foot}%
\includegraphics[width=0.45cm]{tubs_logo3}
\end{beamercolorbox}}%
\vskip0pt%
}
%%% 7.2.2 The Sidebars
\setbeamertemplate{mini frames}[box] % shows small rectangles as mini frames.
%%% 7.2.4 The Navigation Symbols
%%% Beamer-Template/-Color/-Font navigation symbols
\setbeamertemplate{navigation symbols}{} % suppresses all navigation symbols:
%%% 7.3 Margin Sizes
\setbeamersize{text margin left=2em,text margin right=2em}
%%% Parent Beamer-Template sections/subsections in toc
\setbeamertemplate{sections/subsections in toc}[sections numbered]
%%% 9.6 Adding a Bibliography
\setbeamertemplate{bibliography item}[default] % little article icon as the reference
%%% 11.1 Itemizations, Enumerations, and Descriptions
\setbeamertemplate{itemize items}[ball]
\setbeamertemplate{enumerate items}[default] % Numbered
%%% 11.3 Block Environments
\setbeamertemplate{blocks}[rounded][shadow=true]
%%% Specifying Which Notes and Frames Are Shown
\AtBeginSection[]
{
\begin{frame}<beamer>
\frametitle{Inhalt}
\tableofcontents[
currentsection, % causes all sections but the current to be shown in a semi-transparent way.
hideallsubsections, % causes all subsections to be hidden.
]
\end{frame}
}
content/Promotion
% --------------------------------------- Presentation data --
\title{Investigation of network coupling methods \\ for thermal system simulations}
\subtitle{``Untersuchung von Netzwerk-Kopplungsmethoden \\ f\"ur die Simulation thermischer Systeme''}
\author{Clauden\^e Correia}
\institute[IfT -- TU Braunschweig]{
\textbf{Institut f\"ur Thermodynamik} \\
Technischen Universit\"at Carolo-Wilhelmina zu Braunschweig \\[2ex]
\textit{Promotionsvortrag}}
\date[25.05.09]{29. Oktober 2009}
%\logo{\includegraphics[width=1.5cm]{tubs_logo}}
\subject{Promotionsvortrag}
\keywords{Network, Thermodynamic, Socket, Vehicle Simulation}
%\logo{\includegraphics[height=0.5cm]{ift_4C}}
% --------------------------------------------------- Slide --
\usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{background50}}
\begin{frame}[plain]
\titlepage
\end{frame}
\usebackgroundtemplate{}
% --------------------------------------------------- Slide --
\begin{frame}
\setbeamercovered{transparent} %Um halbtransparente Overlays auf seinen Folien zu haben
\frametitle{Inhalt}
\tableofcontents[
hideallsubsections, % causes all subsections to be hidden.
pausesections, % causes a \pause command to be issued before each section. This is useful if you
% causes a \pause command to be issued before each subsection.
]
\end{frame}
% ------------------------------------------------- Section --
\section{Einleitung}
% ---------------------------------------------- Subsection --
\subsection{Motivation, Stand der Technik und Ziel der Arbeit}
% --------------------------------------------------- Slide --
\begin{frame}
\begin{itemize}
\item Motivation
\begin{itemize}
\item Simulation komplexer mobiler thermischer Gesamtsysteme
\begin{itemize}
\item Abbildung und Verkn\"upfung verschiedener Systeme wie z.B. Verbrennungsmotor, Abgas,...
\end{itemize}
\item Gro\ss es Potential durch Nutzung der Netzwerktechnologie f\"ur die effiziente Simulation durch Verkn\"upfung von Modellen und verteiltes Rechnen
\end{itemize}
\item Stand der Technik
\begin{itemize}
\item Bisher keine Publikationen \"uber Simulationen von komplexen mobilen thermischen Systemen
\item Keine allgemeing\"ultige 3D-1D Einbindung
\end{itemize}
\end{itemize}
\end{frame}
% ------------------------------------------------- Section --
\section[Grund. der Kopplung]{Grundlagen der Kopplung}
% ---------------------------------------------- Subsection --
\subsection{Netzwerk Theorie}
% --------------------------------------------------- Slide --
\begin{frame}
\begin{itemize}
\item Client-Server
\item Paket \\ \hspace{1cm} \includegraphics[width=.5\textwidth]{packet}
\item Protokoll (TCP/IP, UDP/IP, RTP, DARTS...)
\item QoS: z.B. Sicherheit und Zeitverzug
\item Middleware (Socket, MPI)
\end{itemize}
\end{frame}
% --------------------------------------------------- Slide --
\part{Danke sagen}
% --------------------------------------------------- Slide --
\usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{background}}
\begin{frame}[plain,c]
\begin{center}\begin{huge}
Vielen Dank !
\end{huge}\end{center}
\end{frame}
\usebackgroundtemplate{}
Floats, position of figures and tables. |
|
Define figure and table position.
Specifier |
Permission |
h |
Place the float here, i.e., approximately at the same point it occurs in the source text (however, not exactly at the spot) |
t |
Position at the top of the page. |
b |
Position at the bottom of the page. |
p |
Put on a special page for floats only. |
! |
Override internal parameters Latex uses for determining "good" float positions. |
H |
Places the float at precisely the location in the LaTeX code. Requires the float package,[1] e.g., \usepackage{float}. This is somewhat equivalent to h!. |
\begin{figure}[tbh!]
\centering
\includegraphics[width=1\textwidth]{fanGenTrust}
\caption[Simulation results]{\em Simulation results maximization of the cooling module heat flux.} \label{fig:fanGenTrust}
\end{figure}
Extra tips:
BibTex-Style |
|
Inserting and changing the bibliography style.
Take a look at the program JabRef, it can be helpful.
Using BibTex to generate the bibliography index. The different bib-styles can be viewed online at
http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html
and
http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html
from Ken Turner.
document.tex
%
\documentclass[12pt]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage[german]{babel}
\usepackage[colorlinks=true]{hyperref}
\usepackage{natbib} %%to use bibtex-style dinat
\begin{document}
\section*{bibtex style}
Ich suche einen bibtex-Style, der den Name des Buches,Artikels, \dots weglässt,
also nur Autor, Verlag, Jahr, \dots
\LaTeX{} ist ein Textsatzsystem für Dokumente, das \textsc{Leslie Lamport} 1985
\cite{lamport85} entworfen hatte, was auf der Textsatzsprache\TeX{} aufbaut, die
\textsc{Donald Knuth} 1984 \cite{knuth84} entwickelt hatte.
% standard bibtex-styles:
% abbrv, acm, alpha, ieeetr, plain, siam, unsrt
% extra bibtex-styles are available at
% http://www.ctan.org/tex-archive/biblio/bibtex/contrib/
% dinat and elsevier are recomended. For dinat, the package 'natbib' is required.
\bibliographystyle{dinat}
\bibliography{literatur}
\end{document}
literatur.bib
@article{knuth84,
author = "Knuth",
title = "Thermodynamic",
publisher = "Addison-Wesley",
year = "1984"
}
@Book{lamport85,
author = "Leslie Lamport",
title = "Mechanical Engineering",
publisher = "Addison-Wesley",
year = "1994"
}
You can also try to use the bib-style
plainnat that also belongs to natbib package. It offers different forms to create the bibliography reference as shown below (original text from
Andrew Roberts):
Citation command |
Natbib output |
\citet{goossens93} |
Goossens et al. (1993) |
\citep{goossens93} |
(Goossens et al., 1993) |
\citet*{goossens93} |
Goossens, Mittlebach, and Samarin (1993) |
\citep*{goossens93} |
(Goossens, Mittlebach, and Samarin, 1993) |
Comment |
|
Comment a text block.
If you want to comment a text block the only possibility is to include the comment character '%' at the begining of each line or using the package comment.
\usepackage{comment}
...
\begin{comment}
...
\end{comment}
But a very elegant way that makes unnecessary to add an extra package, is to write a new command that ignore the text inside the brackets:
\newcommand{\commentOut}[1]{}
...
\commentOut{
...
}
Special characters |
|
ä á à …
Accents and special characters
accent |
result |
in text |
in math mode |
diaeresis / umlaut¨ |
Ä ä |
\"{A} \"{a} |
|
Hungarian umlaut |
ő |
\H{o} |
|
circumflex ^ |
 â |
\^{A} \^{a} |
\hat{a} and \widehat{wide} |
grave ‘ |
À à |
\`{A} \`{a} |
\grave{o} |
acute ´ |
Á á |
\’{A} \'{a} |
\acute{o} |
tilde ~ |
à ã |
\~{A} \~{a} |
\tilde{o} and \widetilde{oo} |
cedilla ¸ |
Ç ş |
\c{C} \c{s} |
|
ogonek |
ą |
\k{a} |
|
macron ¯ |
ā |
\={a} |
\bar{a} |
underline _ |
ḵ |
\b{k} |
|
dot |
ė |
\.{e} |
\dot{e} |
dot |
ṃ |
\d{m} |
|
double dot |
|
|
\ddot{o} |
|
ă |
\u{a} |
\breve{a} |
|
å |
\r{a} |
|
|
č |
\v{c} |
\check{c} |
|
"tie" (inverted u) over the two letters |
\t{oo} |
|
arrow |
vector over the letter |
|
\vec{o} |
degree |
° |
\textdegree |
{^\circ} |
Inside a tabbing environment
- \a' for an acute accent
- \a` for a grave accent
- \a= for a macron accent
other special characters
To be used only in paragraph or LR mode.
result |
tex |
|
result |
tex |
|
result |
tex |
ø |
\o |
|
Ø |
\O |
|
ß |
\ss |
|
?‘ |
|
|
!` |
|
ł |
\l |
Ł |
\L |
|
å |
\aa |
|
Å |
\AA |
æ |
\ae |
|
Æ |
\AE |
|
œ |
\oe |
Œ |
\OE |
|
\hbar |
\hbar |
|
|
|
- |
- |
|
– |
— |
|
— |
—- |
… |
\ldots |
|
’ |
’ |
|
|
|
reserved characters
result |
tex |
_ |
\_ , \underline |
\ |
\backslash (\setminus im Mathemodus) |
\ |
\textbackslash |
[ |
\lbrack |
] |
\rbrack |
< |
\langle |
> |
\rangle |
$ |
\$ |
& |
\& |
# |
\# |
{ … } |
\{ … \} |
% |
\% |
~ |
\textasciitilde |
overpic |
|
Put LaTeX on top of included graphics.
Put any LaTeX output above the graphic on defined positions is possible with the package overpic. By defining an overpic environment, a combination between a picture environment and an includegraphics command (defined in graphicx) will be created. The resulting picture environment has the same dimension as the included eps graphic. A grid to aid is also possible.
Example using overpic with absolute coordinate:
\documentclass[10pt,a4paper]{article}
\usepackage{graphicx} % use of Graphics
\graphicspath{{./figures/}} % Path to the picture files
\DeclareGraphicsExtensions{.png,.jpg,.pdf,.eps} % file extensions
\usepackage[abs]{overpic} % latex on top of a picture
...
\begin{document}
\begin{figure}[htbp]
\centering
%using a grid
%\begin{overpic}[width=0.7\textwidth,grid,tics=10]{pathlinesback}
%without a grid
\begin{overpic}[width=0.7\textwidth]{pathlinesback}
%write some text
\put(200,30){\huge \LaTeX}
%include other graphics in small scale
\put(0,160){\includegraphics[width=0.2\textwidth]{panel}}
\end{overpic}
\caption[pathlines]{\em Pathlines after 100 time-steps.}
\label{fig:pathlinesback}
\end{figure}
...
\end{document}
There are two examples distributed with overpic: opic-rel.tex and opic-abs.tex. opic-rel.tex shows how to use overpic with relative coordinates.
subfig |
|
Sort subfigures within one figure.
The subfig package creates subfloats within a single float. Sort subfigures within figures, or subtables within table floats. Subfloats have their own caption, and an optional global caption.
Example taken from http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions :
\documentclass[10pt,a4paper]{article}
\usepackage{graphicx} % use of Graphics
\graphicspath{{./figures/}} % Path to the picture files
\DeclareGraphicsExtensions{.png,.jpg,.pdf,.eps} % file extensions
\usepackage[abs]{subfig} % subfigures
...
\begin{document}
\begin{figure}
\centering
% \subfloat[sub caption]{ ... figure or table ... }
\subfloat[A gull]{\label{fig:gull}\includegraphics[width=0.3\textwidth]{gull}}
\subfloat[A tiger]{\label{fig:tiger}\includegraphics[width=0.3\textwidth]{tiger}}
\subfloat[A mouse]{\label{fig:mouse}\includegraphics[width=0.3\textwidth]{mouse}}
\caption{Pictures of animals}
\label{fig:animals}
\end{figure}
...
\end{document}
picture |
|
Drawing with TeX.
Using picture as in the example below:
\begin{picture}(30,30)
\put(0,0){S~~U~~v}
\put(0,14){H~~~~~F,A}
\put(0,28){p~~G~~T}
\put(10,10){\vector(1,1){12}}
\put(10,22){\vector(1,-1){12}}
\end{picture}
Other features available in the
picture environment are:
circle |
dashbox |
figure |
framebox |
line |
linethickness |
makebox |
multiput |
oval |
put |
thicklines |
thinlines |
unitlength |
vector |
|
Another powerful environment can be created with pspicture. I also found in Internet a java based program (in other words, win and linux) that make possible drawing in a GUI and export the TeX code. It calls LaTeXDraw.
mbox |
|
Wirite text inside equations.
The command mbox make it possible, for example:
\begin{eqnarray} \label{eq:buffersize}
\mbox{buffer size} &=& \mbox{bandwidth} \cdot RTT \\
\nonumber
&=& 2 \cdot \mbox{bandwidth} \cdot \mbox{delay}
\end{eqnarray}
thispagestyle |
|
Suppress the page number on the current page.
Administration:
mktexlsr |
|
Tex-Live, installing new style files.
If you need to install a new package the following steps are necessary:
- Most packages are available at CTAN, you can download from there.
- If you are lucky you have an installer, otherwise you need to generate the style file with the command line below, but a file (README, INSTALL,…) is always available with installation instructions.
$ latex file.ins
Working on Linux:
- If you need to copy the files by vour self, you will find the latex styles path at '/usr/share/texmf-texlive/tex/latex'
- after coping the style files to the latex directory, you must run the command line below to update the latex reference table:
$ sudo mktexlsr
Working on Windows:
(miktex search automaticaly missing packages, but if you need a not pubished package, so go ahead!!)
- If you need to copy the files by vour self, you will find the latex styles path at 'c:\Program Files\miktex\tex\latex'
- update the miktex data base by running the program Start -> All programs -> Miktex -> Settings. Push the buttons Refresh FNDB and Update Formats.
TexnicCenter with Acrobat |
|
Viewing pdf with Acrobat.
Profiles
Viewer
Pfad der Anwendung:
C:\Programme\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe
Projektausgabe betrachten
DDE-Kommando
Kommando: [DocOpen("%bm.pdf")][DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Server: acroview
Thema: control
Suche in Ausgabe
DDE-Kommando
Kommando: [DocOpen("%bm.pdf")][DocOpen("%bm.pdf")][DocOpen("%bm.pdf")]
Server: acroview
Thema: control
vor Compilierung Ausgabe schliessen
DDE-Kommando
Kommando: [DocOpen("%bm.pdf")][DocClose("%bm.pdf")]
Server: acroview
Thema: control
TeXniCCenter with Foxit |
|
Viewing pdf with Foxit.
Create a batch file that closes Foxit and open it again. The batch file below saved as foxit_restart.bat works with WinXP Prof.
TASKKILL /FI "WINDOWTITLE eq %2.pdf*"
START "C:\Programme\Foxit Software\Foxit Reader\Foxit Reader.exe" %1
Profiles
Viewer
Pfad der Anwendung, the "" must be used because of space character in the Path:
"C:\Programme\Foxit Software\Foxit Reader\foxit_restart.bat"
Keep a space character at the begin of the command "%bm.pdf" %tm.
Projektausgabe betrachten
Command line
Command: "%bm.pdf" %tm
Suche in Ausgabe
Command line
Command:
vor Compilierung Ausgabe schliessen
Not close
script |
|
Shell script to generate Images based on a LaTeX document.
For Linux users only.
I have a Makefile with instructions to compile the TeX file generate an image and remove unnecessary files. The Makefile and a TeX example can be taken here.
I use the program mogrify to convert EPS in PNG or GIF. You must change the Makefile if you use a different image converter.
%.svg:
@echo "== running latex to create a .dvi file =="
latex $*
@echo "== running divps to create a .eps file =="
dvips -q -f -E -D 600 -y 5000 -o $*.eps $*.dvi
@echo "== clear temporary files =="
rm $*.log $*.aux $*.dvi
%.png: %.svg
@echo "== running mogrify to convert .eps in .png =="
mogrify -format png $*.eps
@echo "== clear temporary files =="
rm $*.eps
%.gif: %.svg
@echo "== running mogrify to convert .eps in .png =="
mogrify -format gif $*.eps
@echo "== clear temporary files =="
rm $*.eps
first:
@echo "Usage: make <fileName>.<extension>"
@echo " fileName : TeX file name without the extension"
@echo " extension : Output picture format. Available are PNG and GIF."
@echo
@echo "This Makefile calls the programs latex, divps and mogrify."
@echo
@echo "Example: "
@echo " To create a PNG file from the LaTeX source myequation.tex"
@echo " the command line below must be used:
@echo " make myequation.png"
@echo
@echo "by Claudene Correia 11.03.2009"
@echo
An TeX equation example can be made with the first law of Thermodynamics, see below:
\documentclass{minimal}
\begin{document}
\begin{eqnarray*}
\frac{d}{dt}\left[ U+m\left( \frac{c^2}{2}+gz \right) \right]_{System}
&=&
\sum_{j} \left[ \dot{m_j} \left(h+\frac{c^2}{2}+gz \right)_j \right]_{through~boundary} +
\\ & &
\sum_{l} \left( \dot{Q}_l \right)_{through~boundary} +
\sum_{i} \left( \dot{W}_i \right)_{through~boundary}-
\left( p \frac{dV}{dt} \right)_{boundary}
\end{eqnarray*}
\end{document}
The result is
plug-ins |
|
Add a LaTeX equation editor in MS-Office or OpenOffice editor.
MS-Office:
I could not find a freeware Latex equation editor for MS-Office. Aurora is an example, I didn't test it.
OpenOffice:
I consider that you have already in your system LaTeX (see what you need on the top of this page) and obviously OpenOffice.
You need:
OOoLatex. Just follow the download link. I chose the file OOoLatex-4.0.0-beta-2-windows.oxt.
For Windows users an extra application called MSIS is necessary. See after the OOoLatex install tips below more information about this extra program. You will come back later :).
OOoLatex install tips:
- Start OpenOffice.org Writer and select the menu items Tools->Extension Manager… to add the new plug-in.
- The configuration window will be displayed. The picture below shows my used configuration.
- I will suggest to restart the application. Now you can insert an equation using the button Equation in the OOoLatex toolbox.
The Windows users must start with the installation of MSIS. Just go through the topics Installing MSYS and Recommended updates for MSYS. The topic Using MSYS with MinGW I also did, but I believe is not necessary.
Tips:
- I have installed firstly MinGW in C:\msys\1.0\mingw\.
- Than MSYS in c:\msys\1.0\. Following by MSYS DTK 1.0 and MSYS Core 1.0.11. Both in c:\msys\1.0\. The MSYS Core has no installer, it must be decompressed and the files copied to c:\msys\1.0\.
- Vista users must update the coreutils-MSYS 1.0.10 to 1.0.11, (coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2), to get over the "Permission denied" error caused when updating or installing packages on MSYS. I have also included the files install.exe.manifest and install-info.exe.manifest in the /bin/ directory (c:\msys\1.0\bin). These files override Vista's heuristics and tell it that the corresponding executables actually don't need Administrative privileges, (see explanations in MinGW Tracker: Bugs ID: 1711379). Get the files hier.
- Now you can go back and install the OOoLatex.
kdvi |
|
Installing Kdvi in Ubuntu.
You can download the Kdvi program from Ubuntu. The other option is to update your sources.list as described below and use the apt-get command to do the installation.
As root edit your sources.list file. It is recommended to backup it before you start doing changes, this file is vital for your system updates. I did it below with the copy command cp.
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
$ sudo vi /etc/apt/sources.list
Include at the end of this file the following line:
deb http://cz.archive.ubuntu.com/ubuntu intrepid main universe
Now is possible to install the Kdvi package using apt-get and keep it updated during the regular system update:
$ sudo apt-get update
$ sudo apt-get install kdvi