- EmbeddedObjects.lyx: new chapter about objects surrounded by text

- Additional.lyx: remove obsolete section
- initials.module: add style that actually works

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39341 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2011-07-18 21:55:00 +00:00
parent f49cdf3420
commit f679b658d8
11 changed files with 8650 additions and 2187 deletions

View File

@ -22695,8 +22695,11 @@ end{multicols}
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
You can have more than 3 columns if you want to, but that might not be very You can have more than 3
pleasant for the eye. \begin_inset space ~
\end_inset
columns if you want to, but that might not be very pleasant for the eye.
\end_layout \end_layout
\begin_layout Subsection \begin_layout Subsection
@ -22832,176 +22835,6 @@ multicol.lyx
separator lines, and more. separator lines, and more.
\end_layout \end_layout
\begin_layout Section
Dropped Capitals
\end_layout
\begin_layout Standard
\noindent
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
newfont{
\backslash
tmpfont}{cmr17 scaled 2500}{
\backslash
tmpfont T}
\backslash
vspace*{-8.4ex}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\noindent
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
hangindent=3.3em
\backslash
hangafter=-3
\end_layout
\end_inset
hose of you who like the style of old books probably also like
\begin_inset Quotes eld
\end_inset
dropped capitals
\begin_inset Quotes erd
\end_inset
—those large capital letters which begin each new chapter or section.
Implementing them with plain LyX/LaTeX is straightforward (assuming you
know some plain TeX!) but does require a lot of work and many iterations,
as you can see by all the ugly TeX-mode stuff at the beginning of this
paragraph.
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
verb+
\backslash
bigdrop{-1em}{3}{ptmri}{T}+
\end_layout
\end_inset
here is a much easier way of doing this, of course.
The
\family typewriter
dropcaps
\family default
(or the newer
\family typewriter
dropping
\family default
) package from CTAN allows a simple way to add such letters to your documents.
Since this package is not a standard part of TeXLive, I can't demonstrate
it within this document, but if you copy this paragraph to a new document,
delete the
\begin_inset Quotes eld
\end_inset
\family typewriter
\backslash
verb
\family default
\begin_inset Quotes erd
\end_inset
and the pluses from the TeX code at the beginning of the paragraph, and
add
\family typewriter
\backslash
usepackage{dropcaps}
\family default
to your LaTeX preamble, you will get a nice Times Roman Italic
\begin_inset Quotes eld
\end_inset
T
\begin_inset Quotes erd
\end_inset
, whose height is three lines of text and which protrudes 1 em into the
margin.
(Make certain you have copied
\begin_inset Quotes eld
\end_inset
\family typewriter
dropcaps.sty
\family default
\begin_inset Quotes erd
\end_inset
into a directory where TeX can see it.) The first argument is the amount
of indentation; in this case the negative sign moves it into the margin.
The second argument is the height of the letter in number of lines of text.
The third argument is the font name: virtually anything which has a tfm
file should work (wade through the
\family typewriter
.../texmf/fonts/tfm
\family default
directory for possibilities).
My personal favorite is
\begin_inset Quotes eld
\end_inset
\family typewriter
yinit
\family default
\begin_inset Quotes erd
\end_inset
, a fancy German font specifically designed for dropped capitals.
The fourth argument is the letter (or letters) to be dropped.
The
\family typewriter
dropping
\family default
package also offers the
\family typewriter
\backslash
bigdrop
\family default
command, as well as a slightly simplified
\family typewriter
\backslash
dropping
\family default
command.
\end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset Newpage newpage \begin_inset Newpage newpage
\end_inset \end_inset

File diff suppressed because it is too large Load Diff

View File

@ -22741,8 +22741,11 @@ end{multicols}
\begin_layout Standard \begin_layout Standard
\lang english \lang english
You can have more than 3 columns if you want to, but that might not be very You can have more than 3
pleasant for the eye. \begin_inset space ~
\end_inset
columns if you want to, but that might not be very pleasant for the eye.
\end_layout \end_layout
\begin_layout Subsection \begin_layout Subsection
@ -22885,324 +22888,6 @@ multicol.lyx
separator lines, and more. separator lines, and more.
\end_layout \end_layout
\begin_layout Section
Initialen
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Initialen
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Initialen oder abgesetzte Großbuchstaben
\begin_inset Index idx
status collapsed
\begin_layout Plain Layout
Abgesetzte Großbuchstaben
\end_layout
\end_inset
sind ein oder mehrere Buchstaben am Anfang eines Absatzes, die größer und
über mehrere Zeilen hinweg gedruckt werden.
Es gibt mehrere LaTeX-Pakete, die das ermöglichen:
\family typewriter
dropcaps
\family default
,
\family typewriter
dropping
\family default
und
\family typewriter
lettrine
\family default
.
\end_layout
\begin_layout Standard
Am besten dafür geeignet ist wohl
\family typewriter
lettrine
\family default
, das es zum Beispiel in
\family typewriter
texlive-latex- extra
\family default
gibt.
Es bietet umfangreiche Möglichkeiten zur Gestaltung von Initialen, die
in der Dokumentation von
\family typewriter
lettrine
\family default
mit vielen Beispielen beschrieben sind.
\end_layout
\begin_layout Standard
\family typewriter
dropping
\family default
gibt es in
\family typewriter
texlive
\family default
nicht mehr, kann aber natürlich nachinstalliert werden.
\end_layout
\begin_layout Standard
Das Paket
\family typewriter
dropcaps
\family default
vom CTAN bietet einen schnellen Weg, solche Großbuchstaben in Ihren Text
einzubinden.
Da dieses Paket aber nicht zum Standardumfang von teTeX gehört, können
wir das hier nicht vorführen.
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
Der LaTeX-Befehl wäre
\family typewriter
\backslash
verb+
\backslash
bigdrop{-1em}{3}{ptmri}{E}+
\family default
.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Falls Sie
\family typewriter
dropcaps
\family default
auf Ihrem System installiert haben, gehen Sie folgendermaßen vor: Speichern
Sie diesen Text als neues Dokument ab (damit Sie ihn ändern können).
Entfernen Sie am Beginn des Absatzes das
\family typewriter
\backslash
verb
\family default
sowie die beiden
\begin_inset Quotes gld
\end_inset
+
\begin_inset Quotes grd
\end_inset
und fügen im LaTeX-Vorspann die Zeile
\family typewriter
\backslash
usepackage{dropcaps}
\family default
ein.
Sie bekommen dann am Textanfang ein schönes
\begin_inset Quotes gld
\end_inset
E
\begin_inset Quotes grd
\end_inset
im Zeichensatz Times Roman Italic, das drei Zeilen hoch ist und 1
\begin_inset Formula $\,$
\end_inset
em in den Randbereich hineinragt.
\end_layout
\begin_layout Standard
Der erste Parameter im LaTeX-Befehl ist die Breite der Einrückung.
Im Beispiel ist diese negativ, damit ragt der Buchstabe in den Randbereich
hinein.
\end_layout
\begin_layout Standard
Der zweite Parameter ist die Höhe des Buchstaben, gemessen in Zeilen.
\end_layout
\begin_layout Standard
Der dritte Parameter gibt den zu verwendenden Zeichensatz an: Hier kann
praktisch jeder Zeichensatz verwendet werden, zu dem es eine
\family typewriter
tfm
\family default
-Datei gibt (schauen Sie sich ruhig einmal im Verzeichnis \SpecialChar \ldots{}
\family typewriter
/texmf/fonts/tfm
\family default
um).
\end_layout
\begin_layout Standard
Sehr schön ist zum Beispiel
\family typewriter
yinit
\family default
, ein altdeutscher Zeichensatz, der speziell für derartige Initialen gemacht
wurde.
Der vierte und letzte Parameter ist schließlich der Buchstabe (es können
auch mehrere sein), den Sie abgesetzt haben wollen.
Das neuere Paket
\family typewriter
dropping
\family default
unterstützt über den Befehl
\family typewriter
\backslash
bigdrop
\family default
hinaus auch noch das leicht abgeänderte
\family typewriter
\backslash
dropping
\family default
.
\end_layout
\begin_layout Standard
Allen drei Paketen ist gemeinsam, dass sie unter
\family typewriter
texlive
\family default
zu kleine Initialen liefern.
Sie reichen nach oben
\emph on
nur
\emph default
bis zur Oberkante eines Buchstaben wie
\begin_inset Quotes gld
\end_inset
a
\begin_inset Quotes grd
\end_inset
, sollten aber bis zur Oberkante eines Buchstaben wie
\begin_inset Quotes gld
\end_inset
b
\begin_inset Quotes grd
\end_inset
reichen.
Mit lettrine lässt sich das noch am einfachsten korrigieren.
\end_layout
\begin_layout Standard
\begin_inset VSpace bigskip
\end_inset
\end_layout
\begin_layout Standard
\noindent
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
newfont{
\backslash
tmpfont}{cmr17 scaled 3000}{
\backslash
tmpfont D}
\backslash
vspace*{-8.4ex}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\noindent
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
hangindent=3.3em
\backslash
hangafter=-3
\end_layout
\end_inset
ieses Beispiel von
\noun on
Mike Ressler
\noun default
kann als Vorlage dienen, wenn man ohne die oben genannten Pakete arbeiten
will, weil es sie nicht benötigt.
Mit etwas Kenntnis von LaTeX ist dies durchaus möglich allerdings etwas
aufwendig, wie das Beispiel am Anfang dieses Absatzes zeigt.
\begin_inset Foot
status open
\begin_layout Plain Layout
Für diejenigen, die den Text nur in gedruckter Form vorliegen haben: Die
Befehlssequenz, um das große
\begin_inset Quotes gld
\end_inset
D
\begin_inset Quotes grd
\end_inset
zu erzeugen, lautet
\family typewriter
\backslash
newfont{
\backslash
tmpfont}{cmr17 scaled 2500}{
\backslash
tmpfont D}
\backslash
vspace*{-8.2ex}
\backslash
hangindent=3.3em
\backslash
hangafter=-3
\family default
.
\end_layout
\end_inset
Außerdem muss man vor den Absatz mit dem Großbuchstaben noch einen großen
vertikalen Abstand einfügen.
\end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset Newpage newpage \begin_inset Newpage newpage
\end_inset \end_inset

File diff suppressed because it is too large Load Diff

View File

@ -24447,186 +24447,6 @@ example file
de separación, y más. de separación, y más.
\end_layout \end_layout
\begin_layout Section
Mayúsculas capitulares
\end_layout
\begin_layout Standard
\noindent
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
newfont{
\backslash
tmpfont}{cmr17 scaled 2500}{
\backslash
tmpfont A}
\backslash
vspace*{-8.4ex}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\noindent
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
hangindent=3.3em
\backslash
hangafter=-3
\end_layout
\end_inset
quellos a quienes les gusta el estilo de los libros antiguos querrán, probablem
ente, emplear
\begin_inset Quotes fld
\end_inset
mayúsculas capitulares
\begin_inset Quotes frd
\end_inset
, las letras de mayor tamaño que inician un capítulo o sección.
Es muy fácil escribirlas con TeX/LaTeX puro (¡suponiendo que sabes algo
de TeX!) pero requiere trabajo y muchas iteraciones, como puedes comprobar
mirando el engorroso código TeX al comienzo de este párrafo.
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
verb+
\backslash
bigdrop{-1em}{3}{ptmri}{H}+
\end_layout
\end_inset
ay una forma mucho más sencilla
\family typewriter
de
\family default
hacerlo.
El paquete
\family typewriter
dropcaps
\family default
(o el más nuevo
\family typewriter
dropping
\family default
) de CTAN provee una forma sencilla de escribir esta letras.
Como dicho paquete no es estándar de teTeX, no puedo hacer una demostración
en este documento, pero si copias este párrafo a otro documento, borras
\begin_inset Quotes fld
\end_inset
\family typewriter
\backslash
verb
\family default
\begin_inset Quotes frd
\end_inset
\family typewriter
\family default
y los signos + del código LaTeX anterior, y añades
\family typewriter
\backslash
usepackage{dropcaps}
\family default
al preámbulo LaTeX del nuevo documento, obtendrás una preciosa
\begin_inset Quotes fld
\end_inset
H
\begin_inset Quotes frd
\end_inset
Times Roman Itálica, cuya altura es tres líneas de texto y penetra 1
\begin_inset space \thinspace{}
\end_inset
em en el margen.
(Asegúrate que
\begin_inset Quotes fld
\end_inset
\family typewriter
dropcaps.sty
\family default
\begin_inset Quotes frd
\end_inset
está instalado).
El primer argumento es el espacio de sangrado; en este caso el signo menos
roba espacio al margen.
El segundo argumento es la altura de la letra en líneas de texto.
El tercer argumento es el nombre de la tipografía: virtualmente cualquiera
que tenga archivo tfm debería funcionar (bucea por el directorio
\family typewriter
.../texmf/fonts/tfm
\family default
para ver las posibilidades).
Mi favorita es
\begin_inset Quotes fld
\end_inset
\family typewriter
yinit
\family default
\begin_inset Quotes frd
\end_inset
, una tipografía alemana de fantasía específicamente diseñada para letras
capitulares.
El cuarto argumento es la letra (o letras) capitulares.
El paquete
\family typewriter
dropping
\family default
también ofrece el comando
\family typewriter
\backslash
bigdrop
\family default
, así como el comando ligeramente simplificado
\family typewriter
\backslash
dropping.
\end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset Newpage newpage \begin_inset Newpage newpage
\end_inset \end_inset

File diff suppressed because it is too large Load Diff

View File

@ -24759,8 +24759,11 @@ end{multicols}
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
Vous pouvez sans problème avoir plus de 3 colonnes, si vous le voulez, mais Vous pouvez sans problème avoir plus de 3
ce n'est plus très agréable à lire. \begin_inset space ~
\end_inset
colonnes, si vous le voulez, mais ce n'est plus très agréable à lire.
\end_layout \end_layout
\begin_layout Subsection \begin_layout Subsection
@ -24899,177 +24902,6 @@ example file
, les lignes de séparation verticale, et plus encore. , les lignes de séparation verticale, et plus encore.
\end_layout \end_layout
\begin_layout Section
Lettrines
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
newfont{
\backslash
tmpfont}{cmr17 scaled 2500}{
\backslash
tmpfont C}
\backslash
vspace*{-8.4ex}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\noindent
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
hangindent=4.5em
\backslash
hangafter=-3
\end_layout
\end_inset
eux d'entre vous qui aiment les vieux écrits aiment aussi certainement
les lettrines, ces grandes lettres majuscules qui ouvrent un nouveau chapitre.
L'implémentation de celles-ci se fait assez bien, à condition que vous
connaissiez un peu le TeX pur et dur, mais demande un peu de travail, comme
vous pouvez le voir à l'abominable code TeX qui entame ce paragraphe.
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
verb+(
\backslash
bigdrop{-1em}{3}{ptmri}{I})+
\end_layout
\end_inset
l existe bien entendu une manière plus facile de s'en servir.
Le paquetage
\family typewriter
dropcaps
\family default
(ou le plus récent
\family typewriter
dropping
\family default
) du CTAN en est un exemple.
Ce paquetage n'étant pas dans la distribution standard de teTeX, je ne
peux pas en faire la démonstration dans ce document, mais si vous copiez
ce paragraphe dans un nouveau document, enlevez le
\family typewriter
\begin_inset Quotes fld
\end_inset
\backslash
verb
\begin_inset Quotes frd
\end_inset
\family default
et les caractères
\family typewriter
\begin_inset Quotes fld
\end_inset
+
\begin_inset Quotes frd
\end_inset
\family default
du code TeX et ajoutez
\family typewriter
\backslash
usepackage{dropcaps}
\family default
à votre préambule LaTeX, vous obtiendrez un magnifique
\begin_inset Quotes fld
\end_inset
I
\begin_inset Quotes frd
\end_inset
en Times Romain italique, dont la hauteur sera trois fois celle d'une ligne
de texte et qui dépasse de 1
\begin_inset space ~
\end_inset
em dans la marge.
(Il faut donc avoir copié
\family typewriter
dropcaps.sty
\family default
dans un répertoire ou TeX pourra le trouver.) Le premier paramètre indique
le retrait par rapport à la marge.
Dans le cas d'un nombre négatif, la lettrine dépassera dans celle-ci.
Le deuxième paramètre donne la hauteur de la lettrine en nombre de lignes
de texte.
Le troisième est le nom de la police à utiliser.
Normalement, un quelconque fichier tfm peut convenir (voyez le répertoire
\family typewriter
.../texmf/fonts/tfm
\family default
pour en avoir la liste).
Ma préférence personnelle va à
\family typewriter
\begin_inset Quotes fld
\end_inset
yinit
\begin_inset Quotes frd
\end_inset
\family default
, une police gothique spécialement créée pour les lettrines.
Le quatrième et dernier paramètre est la (les) lettre(s) à mettre en lettrine.
Le paquetage
\family typewriter
dropping
\family default
offre aussi la commande
\family typewriter
\backslash
bigdrop
\family default
ainsi qu'une commande
\family typewriter
\backslash
dropping
\family default
légèrement plus simple.
\end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset Newpage newpage \begin_inset Newpage newpage
\end_inset \end_inset

File diff suppressed because it is too large Load Diff

View File

@ -20688,135 +20688,6 @@ multicol.lyx
を読んでください。 を読んでください。
\end_layout \end_layout
\begin_layout Section
Dropped Capitals
\end_layout
\begin_layout Standard
\noindent
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
newfont{
\backslash
tmpfont}{cmr17 scaled 2500}{
\backslash
tmpfont T}
\backslash
vspace*{-8.4ex}
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\noindent
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
hangindent=3.3em
\backslash
hangafter=-3
\end_layout
\end_inset
hose of you who like the style of old books probably also like
\begin_inset Quotes eld
\end_inset
dropped capitals
\begin_inset Quotes erd
\end_inset
---those large capital letters which begin each new chapter or section.
\end_layout
\begin_layout Standard
昔の本のスタイルが好きならこの例のように、dropped capitalsも多分好きでしょう。これは新しい章、または節が大きな大文字で始まるものです。これをLy
X/LaTeXで実現するのは少しはplain TeXを知る必要はありますが簡単ですが、この節の初めのTeXモードを見てもらうと分かるように多くの仕事と繰り返
しが必要になります。
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
verb+
\backslash
bigdrop{-1em}{3}{ptmri}{T}+
\end_layout
\end_inset
こちらの方が簡単でしょう。CTANにある
\family typewriter
dropcaps
\family default
(またはより新しい
\family typewriter
dropping
\family default
)パッケージを使えば簡単にこのような文字をあなたの文章に入れることができます。このパッケージは teTeXに含まれていないのでこの文章の中でお見せできませんが、
この段落を新しい文章にコピーして、先頭の
\family typewriter
\backslash
verb
\family default
と+を取り除き、プリアンブルに
\family typewriter
\backslash
usepackage{dropcaps}
\family default
を加えると、Times Roman ItalicのTが3行文の高さで余白に1emでた形で印刷されますTeXが探せるディレクトリに
\family typewriter
dropcaps.sty
\family default
があることを確認してください。最初の引数は字下げの量です。この例では負ですから余白に突き出します。2番目の引数は行数で表した文字の高さです。3番目の引数はフォ
ント名です。tfmファイルも持つ物なら何でも動きます
\family typewriter
.../texmf/fonts/tfm
\family default
ディレクトリで色々探してみてください)。私が気に入っているは
\family typewriter
yinit
\family default
で、これはdropped capital用に特にデザインされたドイツ文字のフォントです。4番目の引数が使う文字です。
\family typewriter
dropping
\family default
パッケージは
\family typewriter
\backslash
bigdrop
\family default
コマンド以外にも少し簡単な
\family typewriter
\backslash
dropping
\family default
コマンドも持っています。
\end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset Newpage newpage \begin_inset Newpage newpage
\end_inset \end_inset

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,7 @@
#Hint: try to use math and its artistic font styles like Fractur or the Calligraphic one. #Hint: try to use math and its artistic font styles like Fractur or the Calligraphic one.
#DescriptionEnd #DescriptionEnd
#Category: charstyles #Category: charstyles
# Author: Pavel Sanda and Uwe Stöhr
Format 35 Format 35
@ -21,3 +22,28 @@ InsetLayout Flex:Initial
EndPreamble EndPreamble
End End
Style Initial
Category MainText
LatexType command
LatexName lettrine
Margin First_Dynamic
LabelType static
LabelString Initial
OptionalArgs 1
RequiredArgs 1
LabelSep x
ParIndent MMM
ParSkip 0.4
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Left
AlignPossible Left
LabelFont
Series Bold
EndFont
Preamble
\usepackage{lettrine}
EndPreamble
End