David Mackay on Latex

David MacKay has been interviewed by TUG (Tex Users Group), in interview dated to February 2009. Check it out if you are a fan of David or LaTeX.

David Says;

LaTeX is the typesetting program to use in scientific publishing.

David MacKay’s website has some LaTeX stuff.

Looks like David MacKay FRS also has a blog, and another blog.

Advertisements

Latex Poster/ Modelling Thermal Conductivity

Norman Gray and Graeme Stewart at Glasgow have provided useful examples to make posters using Latex.

I used these to make a tex file, which produced a poster using pdflatex. Should also be possible using latex command if you include graphics as eps rather than pdf. Make sure if you convert graphics to pdf or ps that you have a bounding box (use pstoeps command for example), otherwise your poster will break horribly. It was important to convert from eps to pdf using the epstopdf command rather that ps2pdf.

This saved me time by allowing me to use the equations from latex directly, and allowed me to include my graphs at high resolution – it doesn’t make sense to convert to jpg or other bit map to include in a powerpoint presentation file.

You can find the poster here: Poster (best viewed with xpdf)
and the latex file to make it here: Poster source file

Thanks to the people who showed an interest in the poster. I wish I had taken picture at the conference to make this post more dynamic!

You can also see this poster on my website http://mathewpeet.org/publications/posters/

Error Opening Tex file on Debian.

Trying to open tex file by Debian gnome nautlius interface…

The filename “file.tex” indicates that this file is of type “tex document”. The contents of the file indicate that the file is of type “TeX document”. If you open this file, the file might present a security risk to your system.

Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for “TeX document”, then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file.

Very fussy computer.

… changing the extension doesn’t help.

The filename “file.TeX” indicates that this file is of type “tex document”. The contents of the file indicate that the file is of type “TeX document”. If you open this file, the file might present a security risk to your system.

Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for “TeX document”, then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file.

Beamer Example

Below is a short example of how to make a presentation using the Beamer Class for LaTeX. I’ve been using this for about 2 years and only just became competent, but if you are less likely to leave things to the last minute than me – which you most likely are – you can probably have success much sooner.


\documentclass{beamer}
\mode
{
\usetheme{Pittsburgh}
\setbeamercovered{transparent}
}

\title[Short Title]{Longer Title}
\author[Another]{A. N. Other}
\institute[University of Somewhere] % (optional, but mostly needed)
{
Department of This and That\\
University of Somewhere
}

\subject{Example Presentation using Latex Beamer Class}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{Contents}
\tableofcontents
% You might wish to add the option [pausesections]
\end{frame}

\section{Example Section}

\subsection{Example subsection}
\begin{frame}
\frametitle{Another page title}
Some unstructured content
\end{frame}

\end{document}

For a longer example, including examples of inclusion of images, download this gzipped tape archive file. I like quite a simple layout for presentations, either some text of an image which takes most of the screen up.

Writing micrometer in LaTeX

Simply using math mode in latex to generate the SI micro- prefix isn’t correct since this will produce an italic symbol.

One way to properly write micrometer is by using the SIunits package, this may well be included as a package with the latex on your computer. An example latex document to achieve this is demonstrated here:


\documentclass{article}
\usepackage[mediumspace,mediumqspace,Grey,squaren]{SIunits}

\begin{document}
\unit{100}{\micro\meter}
\end{document}

There are many options specified for the package SIunits in the example above, the first two can be used to control the use of white space, Grey and squaren can be specified to avoid conflicts with other packages you may be using.

Writing Widmanstaetten

Professor Bhadeshia has some details about how to write Widmanstaetten on a webpage here.

In html the a umlaut character can be produced as below, you can find tables to look up various characters, such as this one, the ultimate authority on this being the w3c or whatever happens to work in your browser depending on your perspective.

ä — in html & # 2 2 8 ;

I’m naively hoping that is valid html, it seems to work in my browser and be allowed by wordpress. I did notice that the embedded videos from youtube are not standard html, at least not xml 1.0 compliant.

Anyway, it’s also fairly easy to produce this character in latex, it doesn’t even need the inclusion of any special packages, this simple example seems to work fine.

Example latex document using the a umlaut.

\documentclass[]{article}
\begin{document}
Widmanst\"atten
\end{document}