一千萬個為什麽

搜索

在編號列表中阻止不會中斷編號的引號



我正在編寫一本書,其中有一長段列表,其編號列於編號列表中。在幾個段落中有blockquotes,特別是有一個blockquote,後面跟著一個恢復段落(即沒有縮進,在引用後恢復)。

When such breaks in paragraphs in the list occur, the numbering for my list starts over at 1. I should note that I am using ScribeNet to convert our books from marked up InDesign or Word documents, so you can't just put

tags around things. Instead, what Scribe wants is for each paragraph to have a paragraph class specified in the CSS such as

where nl is shorthand for numbered list and points to .nl in my CSS file.

我大概可以通過使用標準的HTML列表約定來克服這個問題,但我不確定這是否被認為是電子書社區中的“最佳實踐”。有沒有辦法使用Scribe的格式來做到這一點?

轉載註明原文: 在編號列表中阻止不會中斷編號的引號

一共有 1 個回答:

我找到了我的答案。有幾件事情做錯了。

First, ScribeNet's conversion process likes to close non-linking anchor tags with a /> instead of . E-books read this with no problem, but the basic HTML gets squirrely and starts thinking there has been an interruption in the numbering of the list. Thus, any page breaks that occurred in my original print book and that were marked up in my HTML needed to be closed properly with .

From there it was just a simple matter of setting

(or nl or nll where nlf represents "numbered list first", nl is "numbered list", and nll is "numbered list last") to have the appropriate margins and text indents in CSS (which you can sort out for yourself based on what format you'd like). But the clincher was to use:

display: list-item; list-style: decimal in my CSS for these 3 class elements. What this does is display a paragraph as if it were a list element, and then look to the list-style to determine how the list is marked, which is in this case with cardinal numbers followed by a period/full-stop.

您可以使用各種列表樣式,如 discdecimallower-roman'等。但是也有兩個修飾符,裏面<�代碼>和</代碼> outside`。你可以這樣稱呼他們:

list-style:低於拉丁語的

這將做的是按列表順序從列表中按照基本順序遍歷列表中的每個後續段落,然後而不是在後面的句點/句號之間插入一個大的空白(相當於一個“標簽”)。拉丁文字母和段落內容的開頭,它會縮進列表標記並將其縮小到更接近文本的位置。如果你在一本教科書的章節/單元末尾編制了多項選擇題,這很好。非常便利!