mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 05:40:59 +00:00
Make Japanese Biblatex-aware
Biblatex can be used with Japanese, but then, biber (not pbibtex) should be used as processor. I this context, bring the jbibtex UI in line with bibtex, allowing for a selection of alternatives.
This commit is contained in:
parent
5b0de8c373
commit
34943a4e5f
@ -1177,11 +1177,12 @@ def checkOtherEntries():
|
||||
rc_entry = [ r'\chktex_command "%%"' ])
|
||||
checkProgAlternatives('BibTeX or alternative programs',
|
||||
['bibtex', 'bibtex8', 'biber'],
|
||||
rc_entry = [ r'\bibtex_command "%%"' ],
|
||||
rc_entry = [ r'\bibtex_command "automatic"' ],
|
||||
alt_rc_entry = [ r'\bibtex_alternatives "%%"' ])
|
||||
checkProg('a specific Japanese BibTeX variant',
|
||||
['pbibtex', 'jbibtex', 'bibtex'],
|
||||
rc_entry = [ r'\jbibtex_command "%%"' ])
|
||||
checkProgAlternatives('a specific Japanese BibTeX variant',
|
||||
['pbibtex', 'upbibtex', 'jbibtex', 'bibtex', 'biber'],
|
||||
rc_entry = [ r'\jbibtex_command "automatic"' ],
|
||||
alt_rc_entry = [ r'\jbibtex_alternatives "%%"' ])
|
||||
checkProgAlternatives('available index processors',
|
||||
['texindy', 'makeindex -c -q', 'xindy'],
|
||||
rc_entry = [ r'\index_command "%%"' ],
|
||||
@ -1711,7 +1712,7 @@ if __name__ == '__main__':
|
||||
lyx_check_config = True
|
||||
lyx_kpsewhich = True
|
||||
outfile = 'lyxrc.defaults'
|
||||
lyxrc_fileformat = 20
|
||||
lyxrc_fileformat = 21
|
||||
rc_entries = ''
|
||||
lyx_keep_temps = False
|
||||
version_suffix = ''
|
||||
|
@ -84,6 +84,11 @@
|
||||
# Add options to forbid/ignore 'needauth' option
|
||||
# No conversion necessary.
|
||||
|
||||
# Incremented to format 21, by spitz
|
||||
# Add jbibtex_alternatives, allow "automatic" value
|
||||
# of bibtex_command and jbibtex_command (actually the
|
||||
# default now)
|
||||
|
||||
# NOTE: The format should also be updated in LYXRC.cpp and
|
||||
# in configure.py.
|
||||
|
||||
@ -380,5 +385,6 @@ conversions = [
|
||||
[ 17, [remove_rtl]],
|
||||
[ 18, []],
|
||||
[ 19, [remove_print_support]],
|
||||
[ 20, []]
|
||||
[ 20, []],
|
||||
[ 21, []]
|
||||
]
|
||||
|
@ -3360,15 +3360,31 @@ string const BufferParams::bibtexCommand() const
|
||||
// Return document-specific setting if available
|
||||
if (bibtex_command != "default")
|
||||
return bibtex_command;
|
||||
// For Japanese, return the specific program
|
||||
else if (encoding().package() == Encoding::japanese)
|
||||
return lyxrc.jbibtex_command;
|
||||
// Else return the processor set in prefs
|
||||
|
||||
// If we have "default" in document settings, consult the prefs
|
||||
// 1. Japanese (uses a specific processor)
|
||||
if (encoding().package() == Encoding::japanese) {
|
||||
if (lyxrc.jbibtex_command != "automatic")
|
||||
// Return the specified program, if "automatic" is not set
|
||||
return lyxrc.jbibtex_command;
|
||||
else if (!useBiblatex()) {
|
||||
// With classic BibTeX, return pbibtex, jbibtex, bibtex
|
||||
if (lyxrc.jbibtex_alternatives.find("pbibtex") != lyxrc.jbibtex_alternatives.end())
|
||||
return "pbibtex";
|
||||
if (lyxrc.jbibtex_alternatives.find("jbibtex") != lyxrc.jbibtex_alternatives.end())
|
||||
return "jbibtex";
|
||||
return "bibtex";
|
||||
}
|
||||
}
|
||||
// 2. All other languages
|
||||
else if (lyxrc.bibtex_command != "automatic")
|
||||
// Return the specified program, if "automatic" is not set
|
||||
return lyxrc.bibtex_command;
|
||||
// Automatic means: find the most suitable for the current cite framework
|
||||
|
||||
// 3. Automatic: find the most suitable for the current cite framework
|
||||
if (useBiblatex()) {
|
||||
// For biblatex, we prefer biber and fall back to bibtex8 and, as last resort, bibtex
|
||||
// For Biblatex, we prefer biber (also for Japanese)
|
||||
// and fall back to bibtex8 and, as last resort, bibtex
|
||||
if (lyxrc.bibtex_alternatives.find("biber") != lyxrc.bibtex_alternatives.end())
|
||||
return "biber";
|
||||
else if (lyxrc.bibtex_alternatives.find("bibtex8") != lyxrc.bibtex_alternatives.end())
|
||||
|
@ -59,7 +59,7 @@ namespace {
|
||||
|
||||
// The format should also be updated in configure.py, and conversion code
|
||||
// should be added to prefs2prefs_prefs.py.
|
||||
static unsigned int const LYXRC_FILEFORMAT = 20; // tommaso: 'needauth' options
|
||||
static unsigned int const LYXRC_FILEFORMAT = 21; // spitz: jbibtex_alternatives
|
||||
|
||||
// when adding something to this array keep it sorted!
|
||||
LexerKeyword lyxrcTags[] = {
|
||||
@ -124,6 +124,7 @@ LexerKeyword lyxrcTags[] = {
|
||||
{ "\\index_alternatives", LyXRC::RC_INDEX_ALTERNATIVES },
|
||||
{ "\\index_command", LyXRC::RC_INDEX_COMMAND },
|
||||
{ "\\input", LyXRC::RC_INPUT },
|
||||
{ "\\jbibtex_alternatives", LyXRC::RC_JBIBTEX_ALTERNATIVES },
|
||||
{ "\\jbibtex_command", LyXRC::RC_JBIBTEX_COMMAND },
|
||||
{ "\\jindex_command", LyXRC::RC_JINDEX_COMMAND },
|
||||
{ "\\kbmap", LyXRC::RC_KBMAP },
|
||||
@ -573,6 +574,12 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format)
|
||||
}
|
||||
break;
|
||||
|
||||
case RC_JBIBTEX_ALTERNATIVES:
|
||||
if (lexrc.next(true)) {
|
||||
jbibtex_alternatives.insert(lexrc.getString());
|
||||
}
|
||||
break;
|
||||
|
||||
case RC_INDEX_ALTERNATIVES:
|
||||
if (lexrc.next(true)) {
|
||||
index_alternatives.insert(lexrc.getString());
|
||||
@ -1441,6 +1448,18 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
|
||||
}
|
||||
if (tag != RC_LAST)
|
||||
break;
|
||||
case RC_JBIBTEX_ALTERNATIVES: {
|
||||
CommandSet::const_iterator it = jbibtex_alternatives.begin();
|
||||
CommandSet::const_iterator end = jbibtex_alternatives.end();
|
||||
for ( ; it != end; ++it) {
|
||||
if (ignore_system_lyxrc
|
||||
|| !system_lyxrc.jbibtex_alternatives.count(*it))
|
||||
os << "\\jbibtex_alternatives \""
|
||||
<< *it << "\"\n";
|
||||
}
|
||||
if (tag != RC_LAST)
|
||||
break;
|
||||
}
|
||||
case RC_INDEX_ALTERNATIVES: {
|
||||
CommandSet::const_iterator it = index_alternatives.begin();
|
||||
CommandSet::const_iterator end = index_alternatives.end();
|
||||
@ -2786,6 +2805,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
|
||||
case LyXRC::RC_INDEX_ALTERNATIVES:
|
||||
case LyXRC::RC_INDEX_COMMAND:
|
||||
case LyXRC::RC_JBIBTEX_COMMAND:
|
||||
case LyXRC::RC_JBIBTEX_ALTERNATIVES:
|
||||
case LyXRC::RC_JINDEX_COMMAND:
|
||||
case LyXRC::RC_NOMENCL_COMMAND:
|
||||
case LyXRC::RC_INPUT:
|
||||
|
@ -98,6 +98,7 @@ public:
|
||||
RC_INDEX_ALTERNATIVES,
|
||||
RC_INDEX_COMMAND,
|
||||
RC_INPUT,
|
||||
RC_JBIBTEX_ALTERNATIVES,
|
||||
RC_JBIBTEX_COMMAND,
|
||||
RC_JINDEX_COMMAND,
|
||||
RC_KBMAP,
|
||||
@ -240,6 +241,8 @@ public:
|
||||
std::string bibtex_command;
|
||||
/// command to run japanese bibtex incl. options
|
||||
std::string jbibtex_command;
|
||||
/// all available commands to run japanese bibtex incl. options
|
||||
CommandSet jbibtex_alternatives;
|
||||
/// all available index commands incl. options
|
||||
CommandSet index_alternatives;
|
||||
/// command to run makeindex incl. options or other index programs
|
||||
|
@ -743,6 +743,8 @@ PrefLatex::PrefLatex(GuiPreferences * form)
|
||||
this, SIGNAL(changed()));
|
||||
connect(latexBibtexED, SIGNAL(textChanged(QString)),
|
||||
this, SIGNAL(changed()));
|
||||
connect(latexJBibtexCO, SIGNAL(activated(int)),
|
||||
this, SIGNAL(changed()));
|
||||
connect(latexJBibtexED, SIGNAL(textChanged(QString)),
|
||||
this, SIGNAL(changed()));
|
||||
connect(latexIndexCO, SIGNAL(activated(int)),
|
||||
@ -779,7 +781,7 @@ void PrefLatex::on_latexBibtexCO_activated(int n)
|
||||
QString const bibtex = latexBibtexCO->itemData(n).toString();
|
||||
if (bibtex.isEmpty()) {
|
||||
latexBibtexED->clear();
|
||||
latexBibtexOptionsLA->setText(qt_("Co&mmand:"));
|
||||
latexBibtexOptionsLA->setText(qt_("C&ommand:"));
|
||||
return;
|
||||
}
|
||||
for (LyXRC::CommandSet::const_iterator it = bibtex_alternatives.begin();
|
||||
@ -799,6 +801,31 @@ void PrefLatex::on_latexBibtexCO_activated(int n)
|
||||
}
|
||||
|
||||
|
||||
void PrefLatex::on_latexJBibtexCO_activated(int n)
|
||||
{
|
||||
QString const jbibtex = latexJBibtexCO->itemData(n).toString();
|
||||
if (jbibtex.isEmpty()) {
|
||||
latexJBibtexED->clear();
|
||||
latexJBibtexOptionsLA->setText(qt_("Co&mmand:"));
|
||||
return;
|
||||
}
|
||||
for (LyXRC::CommandSet::const_iterator it = jbibtex_alternatives.begin();
|
||||
it != jbibtex_alternatives.end(); ++it) {
|
||||
QString const bib = toqstr(*it);
|
||||
int ind = bib.indexOf(" ");
|
||||
QString sel_command = bib.left(ind);
|
||||
QString sel_options = ind < 0 ? QString() : bib.mid(ind + 1);
|
||||
if (jbibtex == sel_command) {
|
||||
if (ind < 0)
|
||||
latexJBibtexED->clear();
|
||||
else
|
||||
latexJBibtexED->setText(sel_options.trimmed());
|
||||
}
|
||||
}
|
||||
latexJBibtexOptionsLA->setText(qt_("Opt&ions:"));
|
||||
}
|
||||
|
||||
|
||||
void PrefLatex::on_latexIndexCO_activated(int n)
|
||||
{
|
||||
QString const index = latexIndexCO->itemData(n).toString();
|
||||
@ -838,6 +865,18 @@ void PrefLatex::applyRC(LyXRC & rc) const
|
||||
else
|
||||
rc.bibtex_command = fromqstr(bibtex) + " " + fromqstr(bibopt);
|
||||
|
||||
// If jbibtex is not empty, jbibopt contains the options, otherwise
|
||||
// it is a customized bibtex command with options.
|
||||
QString const jbibtex = latexJBibtexCO->itemData(
|
||||
latexJBibtexCO->currentIndex()).toString();
|
||||
QString const jbibopt = latexJBibtexED->text();
|
||||
if (jbibtex.isEmpty())
|
||||
rc.jbibtex_command = fromqstr(jbibopt);
|
||||
else if (jbibopt.isEmpty())
|
||||
rc.jbibtex_command = fromqstr(jbibtex);
|
||||
else
|
||||
rc.jbibtex_command = fromqstr(jbibtex) + " " + fromqstr(jbibopt);
|
||||
|
||||
// If index is not empty, idxopt contains the options, otherwise
|
||||
// it is a customized index command with options.
|
||||
QString const index = latexIndexCO->itemData(
|
||||
@ -855,7 +894,6 @@ void PrefLatex::applyRC(LyXRC & rc) const
|
||||
else
|
||||
rc.fontenc = "default";
|
||||
rc.chktex_command = fromqstr(latexChecktexED->text());
|
||||
rc.jbibtex_command = fromqstr(latexJBibtexED->text());
|
||||
rc.jindex_command = fromqstr(latexJIndexED->text());
|
||||
rc.nomencl_command = fromqstr(latexNomenclED->text());
|
||||
rc.auto_reset_options = latexAutoresetCB->isChecked();
|
||||
@ -893,7 +931,35 @@ void PrefLatex::updateRC(LyXRC const & rc)
|
||||
} else {
|
||||
latexBibtexED->setText(toqstr(rc.bibtex_command));
|
||||
latexBibtexCO->setCurrentIndex(0);
|
||||
latexBibtexOptionsLA->setText(qt_("Co&mmand:"));
|
||||
latexBibtexOptionsLA->setText(qt_("C&ommand:"));
|
||||
}
|
||||
|
||||
latexJBibtexCO->clear();
|
||||
|
||||
latexJBibtexCO->addItem(qt_("Automatic"), "automatic");
|
||||
latexJBibtexCO->addItem(qt_("Custom"), QString());
|
||||
for (LyXRC::CommandSet::const_iterator it = rc.jbibtex_alternatives.begin();
|
||||
it != rc.jbibtex_alternatives.end(); ++it) {
|
||||
QString const command = toqstr(*it).left(toqstr(*it).indexOf(" "));
|
||||
latexJBibtexCO->addItem(command, command);
|
||||
}
|
||||
|
||||
jbibtex_alternatives = rc.jbibtex_alternatives;
|
||||
|
||||
QString const jbib = toqstr(rc.jbibtex_command);
|
||||
ind = jbib.indexOf(" ");
|
||||
sel_command = jbib.left(ind);
|
||||
sel_options = ind < 0 ? QString() : jbib.mid(ind + 1);
|
||||
|
||||
pos = latexJBibtexCO->findData(sel_command);
|
||||
if (pos != -1) {
|
||||
latexJBibtexCO->setCurrentIndex(pos);
|
||||
latexJBibtexED->setText(sel_options.trimmed());
|
||||
latexJBibtexOptionsLA->setText(qt_("Opt&ions:"));
|
||||
} else {
|
||||
latexJBibtexED->setText(toqstr(rc.bibtex_command));
|
||||
latexJBibtexCO->setCurrentIndex(0);
|
||||
latexJBibtexOptionsLA->setText(qt_("Co&mmand:"));
|
||||
}
|
||||
|
||||
latexIndexCO->clear();
|
||||
@ -932,7 +998,6 @@ void PrefLatex::updateRC(LyXRC const & rc)
|
||||
latexEncodingED->setText(toqstr(rc.fontenc));
|
||||
}
|
||||
latexChecktexED->setText(toqstr(rc.chktex_command));
|
||||
latexJBibtexED->setText(toqstr(rc.jbibtex_command));
|
||||
latexJIndexED->setText(toqstr(rc.jindex_command));
|
||||
latexNomenclED->setText(toqstr(rc.nomencl_command));
|
||||
latexAutoresetCB->setChecked(rc.auto_reset_options);
|
||||
|
@ -216,12 +216,15 @@ public:
|
||||
private Q_SLOTS:
|
||||
void on_latexEncodingCB_stateChanged(int state);
|
||||
void on_latexBibtexCO_activated(int n);
|
||||
void on_latexJBibtexCO_activated(int n);
|
||||
void on_latexIndexCO_activated(int n);
|
||||
|
||||
private:
|
||||
///
|
||||
std::set<std::string> bibtex_alternatives;
|
||||
///
|
||||
std::set<std::string> jbibtex_alternatives;
|
||||
///
|
||||
std::set<std::string> index_alternatives;
|
||||
};
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>PrefLatexUi</class>
|
||||
<widget class="QWidget" name="PrefLatexUi">
|
||||
@ -5,17 +6,26 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>393</width>
|
||||
<height>431</height>
|
||||
<width>425</width>
|
||||
<height>620</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string/>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_5">
|
||||
<layout class="QGridLayout" name="gridLayout_8">
|
||||
<item row="0" column="0">
|
||||
<layout class="QGridLayout" name="gridLayout_4">
|
||||
<property name="margin">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
@ -67,6 +77,19 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>1</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="bibtexGB">
|
||||
<property name="title">
|
||||
@ -75,41 +98,72 @@
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="margin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="latexBibtexLA">
|
||||
<property name="text">
|
||||
<string>&Processor:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexBibtexCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QGridLayout" name="gridLayout_7">
|
||||
<item row="0" column="0" rowspan="2">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="latexBibtexLA">
|
||||
<property name="text">
|
||||
<string>P&rocessor:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexBibtexCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="latexBibtexCO"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="latexBibtexOptionsLA">
|
||||
<property name="text">
|
||||
<string>Op&tions:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexBibtexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="latexBibtexED">
|
||||
<property name="toolTip">
|
||||
<string>BibTeX command and options</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="latexJBibtexLA">
|
||||
<property name="text">
|
||||
<string>Processor for &Japanese:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexJBibtexCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QComboBox" name="latexJBibtexCO"/>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="latexJBibtexOptionsLA">
|
||||
<property name="text">
|
||||
<string>Options:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexJBibtexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QLineEdit" name="latexJBibtexED">
|
||||
<property name="toolTip">
|
||||
<string>Specific BibTeX command and options for pLaTeX (Japanese)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="latexBibtexCO"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="latexBibtexOptionsLA">
|
||||
<property name="text">
|
||||
<string>&Options:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexBibtexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="latexBibtexED">
|
||||
<property name="toolTip">
|
||||
<string>BibTeX command and options</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
@ -122,20 +176,168 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="latexJBibtexLA">
|
||||
<property name="text">
|
||||
<string>Processor for &Japanese:</string>
|
||||
<item row="1" column="1">
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexJBibtexED</cstring>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>49</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="indexGB">
|
||||
<property name="title">
|
||||
<string>Index Generation</string>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_5">
|
||||
<item row="0" column="0">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="latexIndexLA">
|
||||
<property name="text">
|
||||
<string>&Processor:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexIndexCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="latexIndexCO"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="latexIndexOptionsLA">
|
||||
<property name="text">
|
||||
<string>Op&tions:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexIndexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="latexIndexED">
|
||||
<property name="toolTip">
|
||||
<string>Index command and options (makeindex, xindy)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="latexJIndexLA">
|
||||
<property name="text">
|
||||
<string>Processor for &Japanese:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexJIndexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="latexJIndexED">
|
||||
<property name="toolTip">
|
||||
<string>Specific index command and options for pLaTeX (Japanese)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>52</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_6">
|
||||
<item row="0" column="0">
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="latexNomenclED">
|
||||
<property name="toolTip">
|
||||
<string>Command and options for nomencl (usually makeindex)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="latexChecktexED">
|
||||
<property name="toolTip">
|
||||
<string>CheckTeX start options and flags</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="latexChecktexLA">
|
||||
<property name="text">
|
||||
<string>&CheckTeX command:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexChecktexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="latexNomenclLA">
|
||||
<property name="text">
|
||||
<string>&Nomenclature command:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexNomenclED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QCheckBox" name="pathCB">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Select whether LyX should output Windows or Cygwin style paths to LaTeX files. Change the default only if the TeX engine was not correctly detected at configure time. Warning: Your changes here will not be saved.</string>
|
||||
</property>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::LeftToRight</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Use Windows-style paths in LaTeX files</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="latexJBibtexED">
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="latexAutoresetCB">
|
||||
<property name="toolTip">
|
||||
<string>Specific BibTeX command and options for pLaTeX (Japanese)</string>
|
||||
<string>Set class options to default on class change</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>R&eset class options when document class changes</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -155,169 +357,6 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="indexGB">
|
||||
<property name="title">
|
||||
<string>Index Generation</string>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<property name="margin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="latexIndexLA">
|
||||
<property name="text">
|
||||
<string>Pr&ocessor:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexIndexCO</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="latexIndexCO"/>
|
||||
</item>
|
||||
<item row="0" column="2" rowspan="2">
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>52</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="latexIndexOptionsLA">
|
||||
<property name="text">
|
||||
<string>Op&tions:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexIndexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="latexIndexED">
|
||||
<property name="toolTip">
|
||||
<string>Index command and options (makeindex, xindy)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="latexJIndexLA">
|
||||
<property name="text">
|
||||
<string>Processor for &Japanese:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexJIndexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="latexJIndexED">
|
||||
<property name="toolTip">
|
||||
<string>Specific index command and options for pLaTeX (Japanese)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<property name="margin">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="latexNomenclLA">
|
||||
<property name="text">
|
||||
<string>&Nomenclature command:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexNomenclED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="latexNomenclED">
|
||||
<property name="toolTip">
|
||||
<string>Command and options for nomencl (usually makeindex)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="latexChecktexLA">
|
||||
<property name="text">
|
||||
<string>Chec&kTeX command:</string>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>latexChecktexED</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="latexChecktexED">
|
||||
<property name="toolTip">
|
||||
<string>CheckTeX start options and flags</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2">
|
||||
<widget class="QCheckBox" name="pathCB">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Select whether LyX should output Windows or Cygwin style paths to LaTeX files. Change the default only if the TeX engine was not correctly detected at configure time. Warning: Your changes here will not be saved.</string>
|
||||
</property>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::LeftToRight</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Use Windows-style paths in LaTeX files</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="latexAutoresetCB">
|
||||
<property name="toolTip">
|
||||
<string>Set class options to default on class change</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>R&eset class options when document class changes</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<includes>
|
||||
|
Loading…
Reference in New Issue
Block a user