Docx writer: set paragraph to FirstPara after display math
We treat display math like block quotes, and apply FirstParagraph style to paragraphs that follow them. These can be styled as the user wishes. (But, when the user is using indentation, this allows for paragraphs to continue after display math without indentation.)
This commit is contained in:
parent
2c62f0e122
commit
b103f829f0
1 changed files with 1 additions and 0 deletions
|
@ -1045,6 +1045,7 @@ inlineToOpenXML opts (Math mathType str) = do
|
|||
let displayType = if mathType == DisplayMath
|
||||
then DisplayBlock
|
||||
else DisplayInline
|
||||
when (displayType == DisplayBlock) setFirstPara
|
||||
case writeOMML displayType <$> readTeX str of
|
||||
Right r -> return [r]
|
||||
Left _ -> inlinesToOpenXML opts (texMathToInlines mathType str)
|
||||
|
|
Loading…
Add table
Reference in a new issue