-----------------------
+2010-11-28 Jürgen Spitzmüller <spitz@lyx.org>
+ * Format incremented to 409:
+ Rename buffer param \use_xetex to \use_non_tex_fonts.
+
+
2010-11-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* Format incremented to 408 (r36424)
New inset for sub/superscripts:
add_to_preamble(document, ['\\usepackage{subscript}'])
+def convert_use_xetex(document):
+ " convert \\use_xetex to \\use_non_tex_fonts "
+ i = 0
+ i = find_token(document.header, "\\use_xetex", 0)
+ if i == -1:
+ document.warning("Malformed document. No \\use_xetex param!")
+ else:
+ val = get_value(document.header, "\\use_xetex", 0)
+ document.header[i] = "\\use_non_tex_fonts " + val
+
+
+def revert_use_xetex(document):
+ " revert \\use_non_tex_fonts to \\use_xetex "
+ i = 0
+ i = find_token(document.header, "\\use_non_tex_fonts", 0)
+ if i == -1:
+ document.warning("Malformed document. No \\use_non_tex_fonts param!")
+ else:
+ val = get_value(document.header, "\\use_non_tex_fonts", 0)
+ document.header[i] = "\\use_xetex " + val
+
+
##
# Conversion hub
#
[405, []],
[406, [convert_passthru]],
[407, []],
- [408, []]
+ [408, []],
+ [409, [convert_use_xetex]]
]
-revert = [[407, [revert_script]],
+revert = [[408, [revert_use_xetex]],
+ [407, [revert_script]],
[406, [revert_multirowOffset]],
[405, [revert_passthru]],
[404, []],
// Do not remove the comment below, so we get merge conflict in
// independent branches. Instead add your own.
-int const LYX_FORMAT = 408; // gb add script inset
+int const LYX_FORMAT = 409; // spitz use_xetex -> use_non_tex_fonts
typedef map<string, bool> DepClean;
typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;
{
OutputParams runparams(¶ms().encoding());
runparams.nice = true;
- runparams.flavor = params().useXetex ?
+ runparams.flavor = params().useNonTeXFonts ?
OutputParams::XETEX : OutputParams::LATEX;
runparams.linelen = lyxrc.plaintext_linelen;
// No side effect of file copying and image conversion
{
string format = params().documentClass().outputFormat();
if (format == "latex") {
- if (params().useXetex)
+ if (params().useNonTeXFonts)
return "xetex";
if (params().encoding().package() == Encoding::japanese)
return "platex";
Formats formats = exportableFormats(true);
if (isDocBook()
|| isLiterate()
- || params().useXetex
+ || params().useNonTeXFonts
|| params().encoding().package() == Encoding::japanese) {
if (formats.empty())
return string();
fontsSans = "default";
fontsTypewriter = "default";
fontsDefaultFamily = "default";
- useXetex = false;
+ useNonTeXFonts = false;
fontsSC = false;
fontsOSF = false;
fontsSansScale = 100;
fontsTypewriter = lex.getString();
} else if (token == "\\font_default_family") {
lex >> fontsDefaultFamily;
- } else if (token == "\\use_xetex") {
- lex >> useXetex;
+ } else if (token == "\\use_non_tex_fonts") {
+ lex >> useNonTeXFonts;
} else if (token == "\\font_sc") {
lex >> fontsSC;
} else if (token == "\\font_osf") {
<< "\n\\font_sans " << fontsSans
<< "\n\\font_typewriter " << fontsTypewriter
<< "\n\\font_default_family " << fontsDefaultFamily
- << "\n\\use_xetex " << convert<string>(useXetex)
+ << "\n\\use_non_tex_fonts " << convert<string>(useNonTeXFonts)
<< "\n\\font_sc " << convert<string>(fontsSC)
<< "\n\\font_osf " << convert<string>(fontsOSF)
<< "\n\\font_sf_scale " << fontsSansScale
texrow.newline();
// end of \documentclass defs
- if (useXetex) {
+ if (useNonTeXFonts) {
os << "\\usepackage{fontspec}\n";
texrow.newline();
}
string const fonts =
loadFonts(fontsRoman, fontsSans,
fontsTypewriter, fontsSC, fontsOSF,
- fontsSansScale, fontsTypewriterScale, useXetex);
+ fontsSansScale, fontsTypewriterScale, useNonTeXFonts);
if (!fonts.empty()) {
os << from_ascii(fonts);
texrow.newline();
string const & sf, string const & tt,
bool const & sc, bool const & osf,
int const & sfscale, int const & ttscale,
- bool const & xetex) const
+ bool const & use_systemfonts) const
{
/* The LaTeX font world is in a flux. In the PSNFSS font interface,
several packages have been replaced by others, that might not
ostringstream os;
- if (xetex) {
+ if (use_systemfonts) {
if (rm != "default") {
os << "\\setmainfont[Mapping=tex-text";
if (osf)
Encoding const & BufferParams::encoding() const
{
- if (useXetex)
+ // FIXME: actually, we should check for the flavor
+ // or runparams.isFullyUnicode() here.
+ // useNonTeXFonts happens to match the flavors, but
+ // this may well likely change!
+ if (useNonTeXFonts)
return *(encodings.fromLaTeXName("utf8-plain"));
if (inputenc == "auto" || inputenc == "default")
return *language->encoding();
std::string fontsTypewriter;
/// the default family (rm, sf, tt)
std::string fontsDefaultFamily;
- /// use the XeTeX processor
- bool useXetex;
+ /// use the fonts of the OS (OpenType, True Type) directly
+ bool useNonTeXFonts;
/// use expert Small Caps
bool fontsSC;
/// use Old Style Figures
std::string const & sf, std::string const & tt,
bool const & sc, bool const & osf,
int const & sfscale, int const & ttscale,
- bool const & xetex) const;
+ bool const & use_nonlatexfonts) const;
/// get the appropriate cite engine (natbib handling)
CiteEngine citeEngine() const;
// output
outputModule = new UiWidget<Ui::OutputUi>;
- connect(outputModule->xetexCB, SIGNAL(clicked()),
- this, SLOT(change_adaptor()));
- connect(outputModule->xetexCB, SIGNAL(toggled(bool)),
- this, SLOT(xetexChanged(bool)));
connect(outputModule->defaultFormatCO, SIGNAL(activated(int)),
this, SLOT(change_adaptor()));
connect(outputModule->mathimgSB, SIGNAL(valueChanged(double)),
// fonts
fontModule = new UiWidget<Ui::FontUi>;
+ connect(fontModule->osFontsCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
+ connect(fontModule->osFontsCB, SIGNAL(toggled(bool)),
+ this, SLOT(osFontsChanged(bool)));
connect(fontModule->fontsRomanCO, SIGNAL(activated(int)),
this, SLOT(change_adaptor()));
connect(fontModule->fontsRomanCO, SIGNAL(activated(int)),
}
-void GuiDocument::xetexChanged(bool xetex)
+void GuiDocument::osFontsChanged(bool nontexfonts)
{
+ bool const tex_fonts = !nontexfonts;
updateFontlist();
updateDefaultFormat();
- langModule->encodingCO->setEnabled(!xetex &&
+ langModule->encodingCO->setEnabled(tex_fonts &&
!langModule->defaultencodingRB->isChecked());
- langModule->defaultencodingRB->setEnabled(!xetex);
- langModule->otherencodingRB->setEnabled(!xetex);
+ langModule->defaultencodingRB->setEnabled(tex_fonts);
+ langModule->otherencodingRB->setEnabled(tex_fonts);
- fontModule->fontsDefaultCO->setEnabled(!xetex);
- fontModule->fontsDefaultLA->setEnabled(!xetex);
- fontModule->cjkFontLE->setEnabled(!xetex);
- fontModule->cjkFontLA->setEnabled(!xetex);
+ fontModule->fontsDefaultCO->setEnabled(tex_fonts);
+ fontModule->fontsDefaultLA->setEnabled(tex_fonts);
+ fontModule->cjkFontLE->setEnabled(tex_fonts);
+ fontModule->cjkFontLA->setEnabled(tex_fonts);
string font;
- if (!xetex)
+ if (tex_fonts)
font = tex_fonts_sans[fontModule->fontsSansCO->currentIndex()];
bool scaleable = providesScale(font);
fontModule->scaleSansSB->setEnabled(scaleable);
fontModule->scaleSansLA->setEnabled(scaleable);
- if (!xetex)
+ if (tex_fonts)
font = tex_fonts_monospaced[fontModule->fontsTypewriterCO->currentIndex()];
scaleable = providesScale(font);
fontModule->scaleTypewriterSB->setEnabled(scaleable);
fontModule->scaleTypewriterLA->setEnabled(scaleable);
- if (!xetex)
+ if (tex_fonts)
font = tex_fonts_roman[fontModule->fontsRomanCO->currentIndex()];
fontModule->fontScCB->setEnabled(providesSC(font));
fontModule->fontOsfCB->setEnabled(providesOSF(font));
- fontModule->fontencLA->setEnabled(!xetex);
- fontModule->fontencCO->setEnabled(!xetex);
- if (xetex)
+ fontModule->fontencLA->setEnabled(tex_fonts);
+ fontModule->fontencCO->setEnabled(tex_fonts);
+ if (!tex_fonts)
fontModule->fontencLE->setEnabled(false);
else
fontencChanged(fontModule->fontencCO->currentIndex());
fontModule->fontsTypewriterCO->clear();
// With XeTeX, we have access to all system fonts, but not the LaTeX fonts
- if (outputModule->xetexCB->isChecked()) {
+ if (fontModule->osFontsCB->isChecked()) {
fontModule->fontsRomanCO->addItem(qt_("Default"));
fontModule->fontsSansCO->addItem(qt_("Default"));
fontModule->fontsTypewriterCO->addItem(qt_("Default"));
void GuiDocument::romanChanged(int item)
{
- if (outputModule->xetexCB->isChecked())
+ if (fontModule->osFontsCB->isChecked())
return;
string const font = tex_fonts_roman[item];
fontModule->fontScCB->setEnabled(providesSC(font));
void GuiDocument::sansChanged(int item)
{
- if (outputModule->xetexCB->isChecked())
+ if (fontModule->osFontsCB->isChecked())
return;
string const font = tex_fonts_sans[item];
bool scaleable = providesScale(font);
void GuiDocument::ttChanged(int item)
{
- if (outputModule->xetexCB->isChecked())
+ if (fontModule->osFontsCB->isChecked())
return;
string const font = tex_fonts_monospaced[item];
bool scaleable = providesScale(font);
return;
// make a copy in order to consider unapplied changes
Buffer * tmpbuf = buffer().clone();
- tmpbuf->params().useXetex = outputModule->xetexCB->isChecked();
+ tmpbuf->params().useNonTeXFonts =
+ fontModule->osFontsCB->isChecked();
int idx = latexModule->classCO->currentIndex();
if (idx >= 0) {
string const classname = classes_model_.getIDString(idx);
bp_.defaultOutputFormat = fromqstr(outputModule->defaultFormatCO->itemData(
outputModule->defaultFormatCO->currentIndex()).toString());
- bool const xetex = outputModule->xetexCB->isChecked();
- bp_.useXetex = xetex;
+ bool const nontexfonts = fontModule->osFontsCB->isChecked();
+ bp_.useNonTeXFonts = nontexfonts;
bp_.output_sync = outputModule->outputsyncCB->isChecked();
bp_.output_sync_macro = fromqstr(outputModule->synccustomCB->currentText());
bp_.html_math_img_scale = outputModule->mathimgSB->value();
// fonts
- if (xetex) {
+ if (nontexfonts) {
if (fontModule->fontsRomanCO->currentIndex() == 0)
bp_.fontsRoman = "default";
else
bp_.fontsOSF = fontModule->fontOsfCB->isChecked();
- if (xetex)
+ if (nontexfonts)
bp_.fontsDefaultFamily = "default";
else
bp_.fontsDefaultFamily = GuiDocument::fontfamilies[
if (index == -1)
index = 0;
outputModule->defaultFormatCO->setCurrentIndex(index);
- outputModule->xetexCB->setEnabled(bp_.baseClass()->outputType() == lyx::LATEX);
- outputModule->xetexCB->setChecked(
- bp_.baseClass()->outputType() == lyx::LATEX && bp_.useXetex);
+ fontModule->osFontsCB->setEnabled(bp_.baseClass()->outputType() == lyx::LATEX);
+ fontModule->osFontsCB->setChecked(
+ bp_.baseClass()->outputType() == lyx::LATEX && bp_.useNonTeXFonts);
outputModule->outputsyncCB->setChecked(bp_.output_sync);
outputModule->synccustomCB->setEditText(toqstr(bp_.output_sync_macro));
updateFontsize(documentClass().opt_fontsize(),
bp_.fontsize);
- if (bp_.useXetex) {
+ if (bp_.useNonTeXFonts) {
fontModule->fontencLA->setEnabled(false);
fontModule->fontencCO->setEnabled(false);
fontModule->fontencLE->setEnabled(false);
bool GuiDocument::providesOSF(string const & font) const
{
- if (outputModule->xetexCB->isChecked())
+ if (fontModule->osFontsCB->isChecked())
// FIXME: we should check if the fonts really
// have OSF support. But how?
return true;
bool GuiDocument::providesSC(string const & font) const
{
- if (outputModule->xetexCB->isChecked())
+ if (fontModule->osFontsCB->isChecked())
return false;
if (font == "palatino")
return isFontAvailable("mathpazo");
bool GuiDocument::providesScale(string const & font) const
{
- if (outputModule->xetexCB->isChecked())
+ if (fontModule->osFontsCB->isChecked())
return true;
return font == "helvet" || font == "luximono"
|| font == "berasans" || font == "beramono";
void deleteNoteFontColor();
void changeBoxBackgroundColor();
void deleteBoxBackgroundColor();
- void xetexChanged(bool);
+ void osFontsChanged(bool);
void branchesRename(docstring const &, docstring const &);
private:
/// validate listings parameters and return an error message, if any
<rect>
<x>0</x>
<y>0</y>
- <width>404</width>
- <height>256</height>
+ <width>407</width>
+ <height>285</height>
</rect>
</property>
<property name="windowTitle">
<string>FontUi</string>
</property>
<layout class="QGridLayout" name="gridLayout">
- <item row="0" column="0">
+ <item row="0" column="0" colspan="2">
+ <widget class="QCheckBox" name="osFontsCB">
+ <property name="toolTip">
+ <string>Use OpenType- and TrueType fonts directly (requires XeTeX or LuaTeX)</string>
+ </property>
+ <property name="text">
+ <string>&Use non-TeX fonts (via XeTeX/LuaTeX)</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="2" colspan="2">
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>59</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="1" column="0">
<widget class="QLabel" name="fontsDefaultLA">
<property name="text">
<string>&Default Family:</string>
</property>
</widget>
</item>
- <item row="0" column="1">
+ <item row="1" column="1">
<widget class="QComboBox" name="fontsDefaultCO">
<property name="toolTip">
<string>Select the default family for the document</string>
</property>
</widget>
</item>
- <item row="0" column="2">
+ <item row="1" column="3">
<widget class="QLabel" name="BaseSizeLA">
<property name="text">
<string>&Base Size:</string>
</property>
</widget>
</item>
- <item row="0" column="3">
+ <item row="1" column="4">
<widget class="QComboBox" name="fontsizeCO">
<property name="toolTip">
<string/>
</property>
</widget>
</item>
- <item row="1" column="0">
+ <item row="2" column="0">
<widget class="QLabel" name="fontencLA">
<property name="text">
<string>LaTe&X font encoding:</string>
</property>
</widget>
</item>
- <item row="1" column="1">
+ <item row="2" column="1">
<widget class="QComboBox" name="fontencCO"/>
</item>
- <item row="1" column="2" colspan="2">
+ <item row="2" column="3" colspan="2">
<widget class="QLineEdit" name="fontencLE">
<property name="toolTip">
<string>Specify the font encoding (e.g., T1).</string>
</property>
</widget>
</item>
- <item row="2" column="0">
+ <item row="3" column="0">
<widget class="QLabel" name="fontsRomanLA">
<property name="text">
<string>&Roman:</string>
</property>
</widget>
</item>
- <item row="2" column="1">
+ <item row="3" column="1">
<widget class="QComboBox" name="fontsRomanCO">
<property name="toolTip">
<string>Select the roman (serif) typeface</string>
</property>
</widget>
</item>
- <item row="3" column="0">
+ <item row="4" column="0">
<widget class="QLabel" name="fontsSansLA">
<property name="text">
<string>&Sans Serif:</string>
</property>
</widget>
</item>
- <item row="3" column="1">
+ <item row="4" column="1">
<widget class="QComboBox" name="fontsSansCO">
<property name="toolTip">
<string>Select the Sans Serif (grotesque) typeface</string>
</property>
</widget>
</item>
- <item row="3" column="2">
+ <item row="4" column="3">
<widget class="QLabel" name="scaleSansLA">
<property name="text">
<string>S&cale (%):</string>
</property>
</widget>
</item>
- <item row="3" column="3">
+ <item row="4" column="4">
<widget class="QSpinBox" name="scaleSansSB">
<property name="toolTip">
<string>Scale the Sans Serif font to match the base font's dimensions</string>
</property>
</widget>
</item>
- <item row="4" column="0">
+ <item row="5" column="0">
<widget class="QLabel" name="fontsTypewriterLA">
<property name="text">
<string>&Typewriter:</string>
</property>
</widget>
</item>
- <item row="4" column="1">
+ <item row="5" column="1">
<widget class="QComboBox" name="fontsTypewriterCO">
<property name="toolTip">
<string>Select the typewriter (monospaced) typeface</string>
</property>
</widget>
</item>
- <item row="4" column="2">
+ <item row="5" column="3">
<widget class="QLabel" name="scaleTypewriterLA">
<property name="text">
<string>Sc&ale (%):</string>
</property>
</widget>
</item>
- <item row="4" column="3">
+ <item row="5" column="4">
<widget class="QSpinBox" name="scaleTypewriterSB">
<property name="toolTip">
<string>Scale the Typewriter font to match the base font's dimensions</string>
</property>
</widget>
</item>
- <item row="5" column="0">
+ <item row="6" column="0">
<widget class="QLabel" name="cjkFontLA">
<property name="text">
<string>C&JK:</string>
</property>
</widget>
</item>
- <item row="5" column="1">
+ <item row="6" column="1">
<widget class="QLineEdit" name="cjkFontLE">
<property name="toolTip">
<string>Input the font to be used for Chinese, Japanese or Korean (CJK) script</string>
</property>
</widget>
</item>
- <item row="6" column="1">
+ <item row="7" column="1" colspan="2">
<widget class="QCheckBox" name="fontScCB">
<property name="toolTip">
<string>Use a real small caps shape, if the font provides one</string>
</property>
</widget>
</item>
- <item row="7" column="1">
+ <item row="8" column="1" colspan="2">
<widget class="QCheckBox" name="fontOsfCB">
<property name="toolTip">
<string>Use old style instead of lining figures</string>
</property>
</widget>
</item>
- <item row="8" column="1">
+ <item row="9" column="1" colspan="2">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
-<ui version="4.0" >
+<ui version="4.0">
<class>OutputUi</class>
- <widget class="QWidget" name="OutputUi" >
- <property name="geometry" >
+ <widget class="QWidget" name="OutputUi">
+ <property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<height>334</height>
</rect>
</property>
- <property name="windowTitle" >
+ <property name="windowTitle">
<string>Form</string>
</property>
- <layout class="QVBoxLayout" name="verticalLayout" >
- <item>
- <widget class="QGroupBox" name="outputFormatGB" >
- <property name="title" >
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <widget class="QGroupBox" name="outputFormatGB">
+ <property name="title">
<string>Output Format</string>
</property>
- <property name="flat" >
+ <property name="flat">
<bool>true</bool>
</property>
- <layout class="QGridLayout" >
- <property name="margin" >
+ <layout class="QGridLayout">
+ <property name="margin">
<number>9</number>
</property>
- <property name="spacing" >
+ <property name="spacing">
<number>6</number>
</property>
- <item row="1" column="0" >
- <layout class="QHBoxLayout" >
- <property name="spacing" >
+ <item row="0" column="0">
+ <layout class="QHBoxLayout">
+ <property name="spacing">
<number>6</number>
</property>
- <property name="margin" >
+ <property name="margin">
<number>0</number>
</property>
<item>
- <widget class="QLabel" name="defaultFormatLA" >
- <property name="toolTip" >
+ <widget class="QLabel" name="defaultFormatLA">
+ <property name="toolTip">
<string>Specify the default output format (for view/update)</string>
</property>
- <property name="text" >
+ <property name="text">
<string>De&fault Output Format:</string>
</property>
- <property name="buddy" >
+ <property name="buddy">
<cstring>defaultFormatCO</cstring>
</property>
</widget>
</item>
<item>
- <widget class="QComboBox" name="defaultFormatCO" >
- <property name="toolTip" >
+ <widget class="QComboBox" name="defaultFormatCO">
+ <property name="toolTip">
<string>Specify the default output format (for view/update)</string>
</property>
</widget>
</item>
</layout>
</item>
- <item row="0" column="0" >
- <widget class="QCheckBox" name="xetexCB" >
- <property name="toolTip" >
- <string>Use the XeTeX processing engine</string>
- </property>
- <property name="text" >
- <string>Use &XeTeX</string>
- </property>
- </widget>
- </item>
</layout>
</widget>
</item>
- <item>
- <widget class="QGroupBox" name="outputsyncCB" >
- <property name="toolTip" >
+ <item row="1" column="0">
+ <widget class="QGroupBox" name="outputsyncCB">
+ <property name="toolTip">
<string>Enable forward/reverse search between editor and output (e.g., SyncTeX)</string>
</property>
- <property name="title" >
+ <property name="title">
<string>S&ynchronize with Output</string>
</property>
- <property name="flat" >
+ <property name="flat">
<bool>true</bool>
</property>
- <property name="checkable" >
+ <property name="checkable">
<bool>true</bool>
</property>
- <property name="checked" >
+ <property name="checked">
<bool>false</bool>
</property>
- <layout class="QVBoxLayout" name="verticalLayout_2" >
+ <layout class="QVBoxLayout" name="verticalLayout_2">
<item>
- <layout class="QHBoxLayout" name="horizontalLayout" >
+ <layout class="QHBoxLayout" name="horizontalLayout">
<item>
- <widget class="QLabel" name="label" >
- <property name="text" >
+ <widget class="QLabel" name="label">
+ <property name="text">
<string>C&ustom Macro:</string>
</property>
- <property name="buddy" >
+ <property name="buddy">
<cstring>synccustomCB</cstring>
</property>
</widget>
</item>
<item>
- <widget class="QComboBox" name="synccustomCB" >
- <property name="toolTip" >
+ <widget class="QComboBox" name="synccustomCB">
+ <property name="toolTip">
<string>Custom LaTeX preamble macro</string>
</property>
- <property name="editable" >
+ <property name="editable">
<bool>true</bool>
</property>
</widget>
</layout>
</widget>
</item>
- <item>
- <widget class="QGroupBox" name="xhtmlGB" >
- <property name="title" >
+ <item row="2" column="0">
+ <widget class="QGroupBox" name="xhtmlGB">
+ <property name="title">
<string>XHTML Output Options</string>
</property>
- <property name="flat" >
+ <property name="flat">
<bool>true</bool>
</property>
- <layout class="QGridLayout" name="outGridLayout" >
- <item row="0" column="0" colspan="2" >
- <widget class="QCheckBox" name="strictCB" >
- <property name="toolTip" >
+ <layout class="QGridLayout" name="outGridLayout">
+ <item row="0" column="0" colspan="2">
+ <widget class="QCheckBox" name="strictCB">
+ <property name="toolTip">
<string>Whether to comply strictly with XHTML 1.1.</string>
</property>
- <property name="text" >
+ <property name="text">
<string>&Strict XHTML 1.1</string>
</property>
</widget>
</item>
- <item row="1" column="0" >
- <widget class="QLabel" name="mathoutLA" >
- <property name="font" >
+ <item row="1" column="0">
+ <widget class="QLabel" name="mathoutLA">
+ <property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
- <property name="text" >
+ <property name="text">
<string>&Math Output:</string>
</property>
- <property name="buddy" >
- <cstring>mathoutCB</cstring>
+ <property name="buddy">
+ <cstring>mathoutCB</cstring>
</property>
</widget>
</item>
- <item row="1" column="1" >
- <widget class="QComboBox" name="mathoutCB" >
- <property name="font" >
+ <item row="1" column="1">
+ <widget class="QComboBox" name="mathoutCB">
+ <property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
- <property name="toolTip" >
+ <property name="toolTip">
<string>Format to use for math output.</string>
</property>
<item>
- <property name="text" >
+ <property name="text">
<string>MathML</string>
</property>
</item>
<item>
- <property name="text" >
+ <property name="text">
<string>HTML</string>
</property>
</item>
<item>
- <property name="text" >
+ <property name="text">
<string>Images</string>
</property>
</item>
<item>
- <property name="text" >
+ <property name="text">
<string>LaTeX</string>
</property>
</item>
</widget>
</item>
- <item row="2" column="0" >
- <widget class="QLabel" name="mathimgLA" >
- <property name="font" >
+ <item row="2" column="0">
+ <widget class="QLabel" name="mathimgLA">
+ <property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
- <property name="text" >
+ <property name="text">
<string>Math &Image Scaling:</string>
</property>
- <property name="buddy" >
- <cstring>mathimgSB</cstring>
- </property>
+ <property name="buddy">
+ <cstring>mathimgSB</cstring>
+ </property>
</widget>
</item>
- <item row="2" column="1" >
- <widget class="QDoubleSpinBox" name="mathimgSB" >
- <property name="font" >
+ <item row="2" column="1">
+ <widget class="QDoubleSpinBox" name="mathimgSB">
+ <property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
- <property name="toolTip" >
+ <property name="toolTip">
<string>Scaling factor for images used for math output.</string>
</property>
- <property name="minimum" >
+ <property name="minimum">
<double>0.100000000000000</double>
</property>
- <property name="maximum" >
+ <property name="maximum">
<double>10.000000000000000</double>
</property>
- <property name="singleStep" >
+ <property name="singleStep">
<double>0.100000000000000</double>
</property>
- <property name="value" >
+ <property name="value">
<double>1.000000000000000</double>
</property>
</widget>
</layout>
</widget>
</item>
- <item>
- <spacer name="verticalSpacer" >
- <property name="orientation" >
+ <item row="3" column="0">
+ <spacer name="verticalSpacer">
+ <property name="orientation">
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</layout>
</widget>
<includes>
- <include location="local" >qt_i18n.h</include>
+ <include location="local">qt_i18n.h</include>
</includes>
<resources/>
<connections/>