Difference between revisions of "LyX"

From Blue-IT.org Wiki

(LyX 1.5.4 - Debian Repositories)
(Lyx Versions)
Line 15: Line 15:
  
  
= Lyx Versions =
 
  
  

Revision as of 19:59, 24 May 2009

Introduction

LyX is a WHYSIWYM (what you see is what you mean) Texteditor. This article not for introducing this superb wordprocessor for the LaTeX programming language, but for documententation of common solutions around running on linux operting system (mainly ubuntu).

Trouble Shooting

German UserGuide fails with pdflatex

There are [problems with the lack of the package lmodern (latin modern) in ubuntu, causing to fail pdflatex with teh error:

! Package textcomp Error: Symbol \textcurrency not provided by

See

Solution for ubuntu:

sudo apt-get install lmodern



Docbook

Docbook, Lyx and Ubuntu / Debian

To be able to use the default templates provides by lyx it is necessary to install the package sgmlutils-lite.

To be able to view and produce DVI / Postscript output you need the docbook-utils package.

sudo apt-get install sgmlutils-lite docbook-utils

So I was able to use the lyx-template docbook_article that brings very limited support for editing documents.

LaTeX Specials

Hanging initials

Thanks to Initials with yinit - GER.

The yinit fonts are fine granular fonts (old style).

\usepackage{lettrine}

\lettrine[lines=3]{H}{}auptaugenmerk bei der Softwareentwicklung ist eindeutig

eine fehlerfreie Implementierung zu erzielen. Ein Programm soll keine Fehler produzieren und stabil laufen.

\usepackage{dropping}

Does NOT work with pdflatex !

% mit latex übersetzen
\documentclass{article} 
  \usepackage [german] {babel}
  \usepackage{dropping}
  \usepackage[latin1]{inputenc}
\setlength{\parindent}{0pt}
  \setlength{\parskip}{0.25cm}
\newcommand{\yinit}{\usefont{U}{yinit}{m}{n}}
\begin{document}
\dropping[1pt]{4}{\yinit{} E\hspace{3pt}}s war einmal ein Müller, der 
hatte drei Söhne, seine Mühle, einen Esel und einen Kater; die Söhne
mußten mahlen, der Esel Getreide holen und Mehl forttragen, die Katze
dagegen die Mäuse wegfangen. Als der Müller starb, teilten sich die
drei Söhne in die Erbschaft: der älteste bekam die Mühle, der
zweite den Esel, der dritte den Kater; weiter blieb nichts für ihn übrig.
\end{document} 

Manual (buggy)

One can also use the cmr17 fonts.

\newfont{\tmpfont}{cmr17 scaled 3000}{\tmpfont O}
\vspace*{-8ex}
\hangindent=3em \hangafter=-3
nce upon a time ...