Вставка документов HTML в документы LibreOffice с нумерацией контуров - не работает?

682
Raphael

Я пытаюсь импортировать HTML в LibreOffice Writer. По-видимому, это не очень хорошо с нумерацией контуров.

После настройки схемы нумерации в новом документе (в меню «Инструменты»> «Структура нумерации») я использую «Вставка»> «Документ ...» и выбираю файл HTML со следующим содержимым:

<h1>Summary</h1> <ol> <li>numbered</li> <li>items.</li> </ol> <h1>Stuff</h1> <h1>Stuff2</h1> 

Результат таков:

enter image description here

Видимо, нумерованный список немного смущает импортера.

Я делаю что-то не так или это ошибка? Могу ли я обойти это?

0

1 ответ на вопрос

0
Raphael

Я понятия не имею, что вызывает это, но добавление пустого раздела к подсчету разделов «пополнение счета», кажется, помогает:

<h1>Summary</h1> <ol> <li>numbered</li> <li>items.</li> </ol><h1></h1> <h1>Stuff</h1> <h1>Stuff2</h1> 

enter image description here

Примечание: эта пустая <h1>ячейка не нарушает нумерацию подразделов. То есть, если "Stuff" - это, <h2>он получает правильное число 1.1.

I tested your HTML with both Firefox and Chrome. In neither case does it number the main headings. In Writer 5.1.4.2 insertion I got no numbers on the main headings, but `Stuff` was indented; the dummy heading made no difference. Was your master document ODT or HTML (though I didn't see a difference)? AFH 7 лет назад 0
@AFH Я просто открыл новый документ в LibreOffice и настроил Инструменты> Структура нумерации. Затем после вставки HTML-кода заголовки автоматически нумеруются. ToCs также могут быть созданы. Точнее, чем я предполагал! Raphael 7 лет назад 0
Intriguing. I have now reproduced your findings, and it seems not to matter whether outline numbering is applied before or after inserting, but I noticed another oddity/bug: the first heading has the correct font size and bold enhancement for the heading, but retains the default document font. If I start by opening the HTML document in Writer, rather than inserting it, the same font is used throughout, but I see the same quirk when I apply numbering. AFH 7 лет назад 1
I didn't even notice the font issue. Oh dear. X-) Raphael 7 лет назад 0