Typography with TeX and LaTeX

## Kile 2.1beta2 released

August 30th, 2009 by Stefan Kottwitz

The second beta version of the LaTeX editor Kile has been released on August 23rd. It’s intended for testing but it’s not recommended for production.

It brings some fixes to 2.1beta1:

• utf8 related default encoding settings fixed,
• the ALT+p shortcut has been made unique,
• for unchanged documents section jumping is faster now,
• %M support in user tags fixed,
• biblatex file suffixes have been added

and some more, including KDE related improvements.

Among the new features are the support for Evince as viewer and a nicer “Open File” widget.

The version 2.1beta1 already contains many new features compared to 2.0. The source code archive, available in the download area, contains a ChangeLog file listing the fixes and features of current and older versions. The latest available stable version for KDE3 is 2.0.3.

This text is available in German. Dieser Text ist auch in Deutsch verfügbar.

Category: IDEs and Editors | No Comments »

## LyX 1.6.4 released

August 29th, 2009 by Stefan Kottwitz

The maintenance release 1.6.4 of LyX has been published on August 24th. Beside minor improvements it fixes some problems by

• a workaround to avoid crashes with recent Qt versions,
• fixes to bugs that could result in data loss,
• stability improvements,
• fixes to the LaTeX importer tex2lyx and the conversion program lyx2lyx.

The LyX team strongly recommends to upgrade to this version.

This text is available in German. Dieser Text ist auch in Deutsch verfügbar.

Category: News, IDEs and Editors | No Comments »

## Fancy tables with TikZ

August 26th, 2009 by Stefan Kottwitz

Today I wanted to create a table for a presentation and I remembered a suggestion made by Kjell Magne Fauske in comp.text.tex in August 2008, to use TikZ to create tables with rounded corners. I’ve investigated this idea further to achieve a colorful table layout in a shape that’s unusual for LaTeX. Here’s the result, displaying a ranking of Linux distributions produced by DistroWatch.com:

Click on the image to see it bigger, for a complete view open the pdf presentation.

The table has been put into a TikZ node, both at the top and at the bottom of the table I’ve used rectangles with rounded corners and some shading. A third rectangle is used to overlay parts of the other two rectangles.

The complete source code:

\documentclass{beamer}
\usetheme{default}
\usepackage{amsmath}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{colortbl}
\usepackage{tikz}
\usetikzlibrary{calc}
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground}
[top=blue!1,bottom=blue!30]
\newcommand*\up{\textcolor{green}{%
\ensuremath{\blacktriangle}}}
\newcommand*\down{\textcolor{red}{%
\ensuremath{\blacktriangledown}}}
\newcommand*\const{\textcolor{darkgray}%
{\textbf{--}}}
\begin{document}
\begin{frame}[bg=lightgray]
\textbf{\Large Linux distribution ranking,
26th August 2009}
\begin{center}
\begin{tikzpicture}
\node (tbl) {
\begin{tabularx}{.6\textwidth}{cXrcc}
\arrayrulecolor{purple}
\textbf{Rank} & \textbf{Distribution} &
\textbf{Hits} & \\
1 & Ubuntu\rule{0pt}{2.5ex}  &  2114 & \down \\
\midrule
2 & Fedora & 1451 & \up \\
\midrule
3 & Mint & 1297 & \const \\
\midrule
4 & OpenSUSE & 1228 & \up \\
\midrule
5 & Debian & 910 & \down \\
\midrule
6 & Mandriva & 907 & \up \\
\midrule
7 & PCLinuxOS & 764 & \up \\
\midrule
8 & Puppy & 738 & \up \\
\midrule
9 & Sabayon & 671 & \up \\
\midrule
10 & Arch & 625 & \down \\[0.5ex]
\end{tabularx}};
\begin{pgfonlayer}{background}
\draw[rounded corners,top color=red,bottom color=black,
draw=white] ($(tbl.north west)+(0.14,0)$)
rectangle ($(tbl.north east)-(0.13,0.9)$);
\draw[rounded corners,top color=white,bottom color=black,
middle color=red,draw=blue!20] ($(tbl.south west) +(0.12,0.5)$) rectangle ($(tbl.south east)-(0.12,0)$);
\draw[top color=blue!1,bottom color=blue!20,draw=white]
($(tbl.north east)-(0.13,0.6)$)
rectangle ($(tbl.south west)+(0.13,0.2)$);
\end{pgfonlayer}
\end{tikzpicture}
\end{center}
\small
Data by DistroWatch.com, spanning over the last 6 months,
hits per day.
\end{frame}
\end{document}

It’s just a draft, some lengths have been adjusted to fit in order to demonstrate using TikZ with tables in a quick way.

Category: pgf/TikZ, Figures and Tables, Graphics | 20 Comments »