Monthly Archives: July 2007

\newcommand and italic quotes in latex

If you want an italicised quote environment (and let’s face it who wouldn’t want a slinky little number like that) try this:

\newenvironment{italicquotes}
{\begin{quote}\itshape}
{\end{quote}}

To use this you then need to put \begin{italicquotes} ... \end{italicquotes} into your document. From Stephan Hochhau on a mailing list somewhere – thanks Stephan. Thanks also to commentator Soren who made the example much clearer.

A full document with the new environment is given below:

\documentclass{article}

\newenvironment{italicquotes}
{\begin{quote}\itshape}
{\end{quote}}

\begin{document}

\begin{quote}
Most large scale cascade experiments and the corresponding
computational fluid dynamics are conducted on geometries without
fillet radii, that is with sharp edges. Despite that the fact that
all real machines have a fillet radii there has not so far been a
detailed examination of the influence of fillet radii on the
secondary flow structures in turbines.
\end{quote}

\begin{italicquotes}
This paper presents detailed measurements on a large scale, low
speed cascade with significant secondary flows. A series of
detailed traverses inside the blade row were obtained allowing the
influence of fillet radii on the formation of secondary flows to be
examined. The experimental campaign is backed up by RANS
computations.
\end{italicquotes}

The fillets were found to increase loss by around 10\% compared to
the base case. This loss could not be accounted for by a simple
model of boundary layer behaviour and an accounting of the complex
secondary flow interactions is required to explain the observed
changes in performance. The secondary flow interactions include a
larger radial migration of secondary flows from the endwall and the
elimination of the corner vortex. The potential to improve
performance by varying the fillet radii around the blade was
identified.

\end{document}

You can see the output I got here: test.pdf

Advertisements

pdftk – an awesome program

Dear Reader,

If for some reason you need to combine two pdf files together (or do almost anything else you can image with a PDF file except read it…) then the pdftk software is for you!

Just install it and then to merge two pdf files together, something like:
pdftk track.pdf case.pdf cat output out1.pdf will turn case.pdf and track.pdf into out1.pdf

Awesome! (o.k. maybe it’s not that exciting but when you are really stuck merging two PDFs together it makes me really happy….)