Sunday, November 14, 2010

Nola sartu PDF bat kin "wrapfig"

\documentclass[a4paper,12pt]{article}

\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{wrapfig}

\begin{document}

\section*{Wrapfig test}

% text from en.wikipedia.org/wiki/Gull

Gulls are birds in the family Laridae. They are most closely
related to the terns (family Sternidae), auks and skimmers,
and more distantly to the waders. Most gulls belong to the
large genus Larus.

\begin{center}
\includegraphics[width=0.88\textwidth]{box2.pdf}
\end{center}

\newpage

Gulls are birds in the family Laridae. They are most closely
related to the terns (family Sternidae), auks and skimmers,
and more distantly to the waders. Most gulls belong to the
large genus Larus.

\begin{wrapfigure}{l}{0.5\textwidth}
\vspace{-20pt}
\begin{center}
\includegraphics[width=0.48\textwidth]{box2.pdf}
\end{center}
\vspace{-20pt}
\caption{A gull}
%\vspace{-10pt}
\end{wrapfigure}

They are in general medium to large birds, typically grey or white,
often with black markings on the head or wings. They have stout,
longish bills and webbed feet.

Most gulls, particularly Larus species, are ground nesting carnivores,
which will take live food or scavenge opportunistically. The live food
often includes crabs and small fish. Apart from the kittiwakes, gulls
are typically coastal or inland species, rarely venturing far out to sea.
The large species take up to four years to attain full adult plumage,
but two years is typical for small gulls.

Gulls — the larger species in particular — are resourceful and
highly-intelligent birds, demonstrating complex methods of communication
and a highly-developed social structure. Certain species (e.g. the
Herring Gull) have exhibited tool use behaviour. Many species of gull
have learned to co-exist successfully with man and have thrived in
human habitats. Others rely on kleptoparasitism to get their food.

\newpage

\begin{wrapfigure}{l}{0.7\textwidth}
\vspace{-20pt}
\begin{center}
\includegraphics[width=0.68\textwidth]{box2.pdf}
\end{center}
\vspace{-20pt}
\caption{A gull}
\vspace{-10pt}
\end{wrapfigure}

They are in general medium to large birds, typically grey or white,
often with black markings on the head or wings. They have stout,
longish bills and webbed feet.

Most gulls, particularly Larus species, are ground nesting carnivores,
which will take live food or scavenge opportunistically. The live food
often includes crabs and small fish. Apart from the kittiwakes, gulls
are typically coastal or inland species, rarely venturing far out to sea.
The large species take up to four years to attain full adult plumage,
but two years is typical for small gulls.

Gulls — the larger species in particular — are resourceful and
highly-intelligent birds, demonstrating complex methods of communication
and a highly-developed social structure. Certain species (e.g. the
Herring Gull) have exhibited tool use behaviour. Many species of gull
have learned to co-exist successfully with man and have thrived in
human habitats. Others rely on kleptoparasitism to get their food.

\end{document}

Wednesday, November 10, 2010

RefreshFNDB

RefreshFNDB da an:

C:\Archivos de programa\MiKTeX 2.7\miktex\bin -> mo

edo bestela an bide hau:

Inicio -> Todos los programas -> MiKTeX2.7 -> Settings

MiKTeX package manager

MiKTeX package manager da an:

C:\Archivos de programa\MiKTeX 2.7\miktex\bin -> mpm_mfc

edo bestela an bide hau:

Inicio -> Todos los programas -> MiKTeX2.7 -> Browse Packages

`fncychap' paketea

`fncychap' da pakete bat hon LaTeX zeinekin ahal dira sortu titulu bereziak ara kapituluak.

Aitzin erabili, beharko dugu kargatu paketea tik `The Tex Catalogue on Line' a gure ordenagailua (karpeta osoa), hain zuzen an honako leku hau:

C:\Archivos de programa\MiKTeX 2.7\tex\latex

non diran aurkitzen, adibidez, `graphics' edo/ta `xcolor' paketeak.

Gero, beharko dugu `refreshatu' memoria hon makina:

Inicio\Todos los programas\MiKTeX 2.7\Settings\Refresh FNDB [Klikatu gain azken hau]

Gero deitu behar zaio i paketea an burua hon gure dokumentu-iturria:

\usepackage[style]{fncychap}

non `style' horren lekuan dugu jarriko zein estilo konkretu nahi dugun, adibidez: `Lenny' estiloa.

Hemen doa adibide simple bat:

\documentclass{report}
\usepackage[Lenny]{fncychap}
\begin{document}
\chapter{Hemen doa titulua}
Hemen doa testua hon kapitulua ...
\end{document}