LyX file-format changes
-----------------------
+2007-09-09 Helge Hafting
+ * Format incremented to 284: LyX now implements wrapped figures
+ using wrapfig.sty instead of floatflt.sty. The latter
+ is rather buggy, the former also has more options.
+ No conversion as the .lyx doesn't change.
+ The .tex export is slightly different, necessitating the
+ format increase.
+
2007-09-08 Martin Vermeer
* format incremented to 283: CharStyle insets are now
\end_inset
+
\TestPackage{esint}
\TestPackage{fancybox}
\TestPackage{fancyhdr}
-\TestPackage{floatflt}
+\TestPackage{wrapfig}
\TestPackage{framed}
\TestPackage{geometry}
\TestPackage{jurabib}
-#LyX 1.5.0rc1 created this file. For more info see http://www.lyx.org/
-\lyxformat 271
+#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
+\lyxformat 284
\begin_document
\begin_header
\textclass article
\paperpagestyle plain
\tracking_changes false
\output_changes false
-\author "Jürgen Spitzmüller"
-\author "usti"
-\author "Jean-Marc Lasgouttes"
+\author ""
+\author ""
\end_header
\begin_body
It provides alternate headers and footers to your pages.
\end_layout
-\begin_layout Subsection
-floatflt
-\end_layout
-
-\begin_layout Description
-Found: @chk_floatflt@
-\end_layout
-
-\begin_layout Description
-CTAN:
-\family typewriter
-macros/latex/contrib/floatflt/
-\end_layout
-
-\begin_layout Description
-Notes: The package
-\family sans
-floatflt
-\family default
- (an extension of
-\family sans
-floatfig
-\family default
-) is used by LyX if you select the ``floatflt'' type in
-\family sans
-Layout->Paragraph->ExtraOpt
-\family default
- in the paragraph of a figure float.
- It allows you to create a figure float which is narrower than the full
- page and wrap the text around it.
-\end_layout
-
\begin_layout Subsection
jurabib
\end_layout
is needed by LyX to be able to output url's corrently.
\end_layout
+\begin_layout Subsection
+wrapfig
+\end_layout
+
+\begin_layout Description
+Found: @chk_wrapfig@
+\end_layout
+
+\begin_layout Description
+CTAN:
+\family typewriter
+macros/latex/contrib/wrapfig/
+\end_layout
+
+\begin_layout Description
+Notes: The package
+\family typewriter
+wrapfig
+\family default
+ is used by LyX if you insert text wrap floats (menu
+\family sans
+Insert\SpecialChar \menuseparator
+Float)
+\family default
+.
+ It allows you to create a figure float which is narrower than the full
+ page and wrap the text around it.
+\end_layout
+
\begin_layout Subsection
xcolor
\end_layout
("1_3", [221], generate_minor_versions("1.3" , 7)),
("1_4", range(222,246), generate_minor_versions("1.4" , 5)),
("1_5", range(246,277), generate_minor_versions("1.5" , 1)),
- ("1_6", range(277,284), generate_minor_versions("1.6" , 0))]
+ ("1_6", range(277,285), generate_minor_versions("1.6" , 0))]
def formats_list():
[280, [axe_show_label]],
[281, []],
[282, []],
- [283, [convert_flex]]
+ [283, [convert_flex]],
+ [284, []]
]
revert = [
+ [283, []],
[282, [revert_flex]],
[281, []],
[280, [revert_begin_modules]],
namespace {
-int const LYX_FORMAT = 283;
+int const LYX_FORMAT = 284;
} // namespace anon
"latexsym",
"pifont",
"subfigure",
- "floatflt",
+ "wrapfig",
"varioref",
"prettyref",
"float",
string const argument = to_utf8(cmd.argument());
if (argument == "figure")
return new InsetWrap(params, argument);
- lyxerr << "Non-existent floatflt type: " << argument << endl;
+ lyxerr << "Non-existent wrapfig type: " << argument << endl;
return 0;
}
: GuiDialog(lv, "wrap")
{
setupUi(this);
- setViewTitle(_("Text Wrap Settings"));
+ setViewTitle(_("Wrap Float Settings"));
setController(new ControlWrap(*this));
connect(restorePB, SIGNAL(clicked()), this, SLOT(slotRestore()));
switch (valignCO->currentIndex()) {
case 0:
- params.placement.erase();
+ params.placement = "o";
break;
case 1:
- params.placement = "l";
+ params.placement = "i";
break;
case 2:
- params.placement = "r";
+ params.placement = "l";
break;
case 3:
- params.placement = "p";
+ params.placement = "r";
break;
}
}
static string const numtostr(double val)
{
string a = convert<string>(val);
- // FIXME: Will this test ever trigger? (Lgb)
- if (a == "0")
- a.erase();
return a;
+ //0pt is a legal width now, it yields a
+ //wrapfloat just wide enough for the contents.
}
unitsLC->setCurrentItem(len.unit());
int item = 0;
- if (params.placement == "l")
+ if (params.placement == "i")
item = 1;
- else if (params.placement == "r")
+ else if (params.placement == "l")
item = 2;
- else if (params.placement == "p")
+ else if (params.placement == "r")
item = 3;
valignCO->setCurrentIndex(item);
</property>
<item>
<property name="text" >
- <string>Default (outer)</string>
+ <string>Outer (default)</string>
</property>
</item>
<item>
<property name="text" >
- <string>Left</string>
+ <string>Inner</string>
</property>
</item>
<item>
<property name="text" >
- <string>Right</string>
+ <string>Left</string>
</property>
</item>
<item>
<property name="text" >
- <string>Outer</string>
+ <string>Right</string>
</property>
</item>
</widget>
</widget>
</item>
<item row="1" column="1" >
- <widget class="LengthCombo" name="unitsLC" >
+ <widget class="LengthCombo" native="1" name="unitsLC" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>3</hsizetype>
</item>
</layout>
</widget>
- <pixmapfunction></pixmapfunction>
- <includes>
- <include location="local" >qt_helpers.h</include>
- </includes>
<customwidgets>
<customwidget>
<class>LengthCombo</class>
- <extends></extends>
+ <extends>QWidget</extends>
<header>LengthCombo.h</header>
- <container>0</container>
- <pixmap></pixmap>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>applyPB</tabstop>
<tabstop>closePB</tabstop>
</tabstops>
+ <includes>
+ <include location="local" >qt_helpers.h</include>
+ </includes>
<resources/>
<connections/>
</ui>
void InsetWrap::validate(LaTeXFeatures & features) const
{
- features.require("floatflt");
+ features.require("wrapfig");
InsetCollapsable::validate(features);
}
int InsetWrap::latex(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
{
- os << "\\begin{floating" << from_ascii(params_.type) << '}';
+ os << "\\begin{wrap" << from_ascii(params_.type) << '}';
if (!params_.placement.empty())
- os << '[' << from_ascii(params_.placement) << ']';
+ os << '{' << from_ascii(params_.placement) << '}';
+ else os << "{o}"; //Outer is default in the current UI
os << '{' << from_ascii(params_.width.asLatexString()) << "}%\n";
int const i = InsetText::latex(buf, os, runparams);
- os << "\\end{floating" << from_ascii(params_.type) << "}%\n";
+ os << "\\end{wrap" << from_ascii(params_.type) << "}%\n";
return i + 2;
}