multicol.lyx: fix a description (bug #7953)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40529 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2011-12-20 00:23:18 +00:00
parent 5bb2e4c54d
commit d6da309609
2 changed files with 73 additions and 31 deletions

View File

@ -78,15 +78,15 @@ Purpose
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
The aim for this chapter is to show how the LaTeX package The aim for this chapter is to show how the LaTeX-package
\family typewriter \series bold
multicol multicol
\family default \series default
can be used in a LyX document. can be used in a LyX document.
As LyX doesn't support the As LyX doesn't support the
\family typewriter \series bold
multicol multicol
\family default \series default
package natively yet, we have to use some small hacks. package natively yet, we have to use some small hacks.
By reading this section it should be obvious how to do this. By reading this section it should be obvious how to do this.
\end_layout \end_layout
@ -97,9 +97,9 @@ Limitations
\begin_layout Standard \begin_layout Standard
The The
\family typewriter \series bold
multicol multicol
\family default \series default
package allows switching between one and multicolumn format on the same package allows switching between one and multicolumn format on the same
page. page.
Footnotes are handled correctly (for the most part), but will be placed Footnotes are handled correctly (for the most part), but will be placed
@ -114,6 +114,22 @@ ion.
Examples Examples
\end_layout \end_layout
\begin_layout Standard
To get multiple columns, you have to load
\series bold
multicol
\series default
in the LaTeX preamble of your document with this line:
\begin_inset Newline newline
\end_inset
\series bold
\backslash
usepackage{multicol}
\end_layout
\begin_layout Subsubsection \begin_layout Subsubsection
Two columns Two columns
\end_layout \end_layout
@ -121,17 +137,17 @@ Two columns
\begin_layout Standard \begin_layout Standard
If you want to have two columns in your text, you have use LaTeX mode to If you want to have two columns in your text, you have use LaTeX mode to
insert insert
\family typewriter \series bold
\backslash \backslash
begin{multicols}{2} begin{multicols}{2}
\family default \series default
at the point where you want the two column layout to start, and then at the point where you want the two column layout to start, and then
\family typewriter \series bold
\backslash \backslash
end{multicols} end{multicols}
\family default \series default
where you want it to end. where you want it to end.
Like this: Like this:
\end_layout \end_layout
@ -223,8 +239,11 @@ Multiple columns
\begin_layout Standard \begin_layout Standard
The same pattern is used when you want more than two columns. The same pattern is used when you want more than two columns.
(You can have more than 3 columns if you want , 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 , but that might not be very pleasant for the eye.)
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
@ -434,9 +453,9 @@ Advanced Examples
\begin_layout Standard \begin_layout Standard
As you probably know As you probably know
\family typewriter \series bold
multicol multicol
\family default \series default
has several customizing variables. has several customizing variables.
The following examples shows how these can be used from LyX. The following examples shows how these can be used from LyX.
\end_layout \end_layout
@ -615,26 +634,29 @@ Free Space
\begin_layout Standard \begin_layout Standard
The The
\family typewriter \series bold
multicol multicol
\family default \series default
package demands that a certain amount of space is available before and package demands that a certain amount of space is available before and
after a multicolumn section. after a multicolumn section.
In addition In addition
\family typewriter \series bold
multicol multicol
\family default \series default
inserts a given space in front of and after the multicol section. inserts a given space in front of and after the multicol section.
The commands to change the default settings for this must be given just The commands to change the default settings for this must be given just
before the before the
\family typewriter \series bold
\backslash \backslash
begin{multicols} begin{multicols}
\family default \series default
. .
This example puts a space of 3 cm in front of and after the multicolumn This example puts a space of 3
text: \begin_inset space \thinspace{}
\end_inset
cm in front of and after the multicolumn text:
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
@ -709,11 +731,11 @@ Note:
\begin_layout Standard \begin_layout Standard
The values you set with The values you set with
\family typewriter \series bold
\backslash \backslash
setlength setlength
\family default \series default
must be reset to default after use, or you will get the modified value must be reset to default after use, or you will get the modified value
in the rest of your document. in the rest of your document.
\end_layout \end_layout
@ -747,7 +769,11 @@ multicols
\family default \family default
environment is automatically calculated, but you can modify the space between environment is automatically calculated, but you can modify the space between
two columns explicitly. two columns explicitly.
The space between the following two columns is 3 cm wide: The space between the following two columns is 3
\begin_inset space \thinspace{}
\end_inset
cm wide:
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
@ -774,7 +800,10 @@ begin{multicols}{2}
\size small \size small
My observations of No. My observations of No.
427 Park Lane did little to clear up the problem in which I was interested. \begin_inset space ~
\end_inset
427 Park Lane did little to clear up the problem in which I was interested.
The house was separated from the street by a low wall and railing, the The house was separated from the street by a low wall and railing, the
whole not more than five feet high. whole not more than five feet high.
It was perfectly easy, therefore, for anyone to get into the garden, but It was perfectly easy, therefore, for anyone to get into the garden, but
@ -833,14 +862,22 @@ Vertical Lines
\begin_layout Standard \begin_layout Standard
Between every two columns, a rule of width Between every two columns, a rule of width
\family typewriter \series bold
\backslash \backslash
columnseprule columnseprule
\family default \series default
is placed. is placed.
If this rule is set to 0 pt, the rule is suppressed. If this rule is set to 0
In the following example, the line separating the two columns is 2 pt wide. \begin_inset space \thinspace{}
\end_inset
pt, the rule is suppressed.
In the following example, the line separating the two columns is 2
\begin_inset space \thinspace{}
\end_inset
pt wide.
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard

View File

@ -135,6 +135,11 @@ What's new
(bug 7909). (bug 7909).
* DOCUMENTATION AND LOCALIZATION
- Fixed description in the example file multicol.lyx (bug 7953).
* ADVANCED FIND AND REPLACE * ADVANCED FIND AND REPLACE