mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
* 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:
parent
e38ca152a4
commit
322eb96219
@ -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 {
|
||||
|
@ -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!");
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user