Fonts & Character Setsswitching between fonts

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

switching between fonts

Post by bazman »

Hi there,

I am using Latex to produce a document that is quite math heavy.

As part of this I want to be able to use the calligra font shown here:

http://www.tug.dk/FontCatalogue/calligr ... fonts.html

However looking at the documentation here you can onnly turn it on and off for sections of the document.

http://www.tug.org/pracjourn/2006-1/schmidt/schmidt.pdf

I simply want to be able to use calligra one letter at a time using a syntax similar to mathcal{} is this possible

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

switching between fonts

Post by localghost »

I have taken a look at the package file itself and found out that using this font is easier than expected. The package defines two new commands which appear very familiar.

Code: Select all

\calligra            % Enable the font generally
\textcalligra{text}  % For certain parts of text
With regard to what you want to do, the second command is exactly what you need. Consider the following example.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{calligra}
\usepackage{blindtext}

\begin{document}
  \blindtext

  \bigskip
  \textcalligra{blindtext}

  \bigskip
  \blindtext

  \bigskip
  \calligra
  \blindtext
\end{document}
In the Font Catalogue you can click on the font name to see a sample together with the according code [1]. But unfortunately the second command is not introduced.

Be aware of the fact that when using this command for a single character you will have to do a kind of italic correction because letters in this font are very italicized.

[1] The LaTeX Font Catalogue - Calligra



Best regards
Thorsten
Post Reply