* Allow manual setting of bibliography indendation

that overrides bibitemWidest (bug 5960).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29840 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-05-25 08:13:56 +00:00
parent e38ca152a4
commit 322eb96219
3 changed files with 10 additions and 4 deletions

View File

@ -3144,7 +3144,8 @@ static void setLabel(Buffer const & buf, ParIterator & it)
// Compute the item depth of the paragraph
par.itemdepth = getItemDepth(it);
if (layout.margintype == MARGIN_MANUAL) {
if (layout.margintype == MARGIN_MANUAL
|| layout.latextype == LATEX_BIB_ENVIRONMENT) {
if (par.params().labelWidthString().empty())
par.params().labelWidthString(par.translateIfPossible(layout.labelstring(), bp));
} else {

View File

@ -1589,7 +1589,8 @@ docstring const & Paragraph::labelString() const
// the next two functions are for the manual labels
docstring const Paragraph::getLabelWidthString() const
{
if (d->layout_->margintype == MARGIN_MANUAL)
if (d->layout_->margintype == MARGIN_MANUAL
|| d->layout_->latextype == LATEX_BIB_ENVIRONMENT)
return d->params_.labelWidthString();
else
return _("Senseless with this layout!");

View File

@ -169,8 +169,12 @@ TeXEnvironment(Buffer const & buf,
<< pit->params().labelWidthString()
<< "}\n";
} else if (style.labeltype == LABEL_BIBLIO) {
// ale970405
if (pit->params().labelWidthString().empty())
os << '{' << bibitemWidest(buf) << "}\n";
else
os << '{'
<< pit->params().labelWidthString()
<< "}\n";
} else
os << from_ascii(style.latexparam()) << '\n';
texrow.newline();