[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-users
Subject: Re: defining custom font size and indentation
From: Jürgen Spitzmüller <spitz () lyx ! org>
Date: 2009-07-01 18:28:36
Message-ID: h2g9so$37p$1 () ger ! gmane ! org
[Download RAW message or body]
Markus Büchele wrote:
> 1st problem: font size
> =============
> If I use "\begin{small}", I will only get font size 11. With {tiny} I will
> get 6. How can I get to size 10?
\footnotesize gives you 10pt at 12pt base size.
> 2nd problem: indentation
> ===============
> How can I define a custom format with size 10 and indentation of 0.7cm
> from line 2 on?
With LyX 1.6: Document>Modules>Hanging. This gives you a Hanging paragraph
style. Add this to your preamble to adjust the hanging value:
\IfFileExists{hanging.sty}{
\renewenvironment{hangparagraphs}
{%
\ifthenelse{\lengthtest{\parindent > 0pt}}%
{\setlength{\lyxhang}{\parindent}}%
{\setlength{\lyxhang}{0.7cm}}%
\par\begin{hangparas}{\lyxhang}{1}%
}
{\end{hangparas}}
}{%else
\renewenvironment{hangparagraphs}
{%
\ifthenelse{\lengthtest{\parindent > 0pt}}%
{\setlength{\lyxhang}{\parindent}}%
{\setlength{\lyxhang}{0.7cm}}%
\begin{hangparas}%
}
{\end{hangparas}}
\renewcommand{\hangpara}{\hangindent \lyxhang \hangafter 1 \noindent}
\renewenvironment{hangparas}{\setlength{\parindent}{\z@}
\everypar={\hangpara}}{\par}
}
HTH,
Jürgen
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic