pandoc-3.1.13: Conversion between markup formats

Copyright | Copyright (C) 2012-2023 John MacFarlane
License | GNU GPL, version 2 or above
Maintainer | John MacFarlane <jgm@berkeley.edu>
Stability | alpha
Portability | portable
Safe Haskell | None
Language | Haskell2010

Text.Pandoc.Writers.OOXML

Description

Functions common to OOXML writers (Docx and Powerpoint)

Synopsis

- mknode :: Node t => Text -> [(Text, Text)] -> t -> Element
- mktnode :: Text -> [(Text, Text)] -> Text -> Element
- nodename :: Text -> QName
- toLazy :: ByteString -> ByteString
- renderXml :: Element -> ByteString
- parseXml :: PandocMonad m => Archive -> Archive -> String -> m Element
- elemToNameSpaces :: Element -> NameSpaces
- elemName :: NameSpaces -> Text -> Text -> QName
- isElem :: NameSpaces -> Text -> Text -> Element -> Bool
- type NameSpaces = [(Text, Text)]
- fitToPage :: (Double, Double) -> Integer -> (Integer, Integer)

# Documentation

mknode :: Node t => Text -> [(Text, Text)] -> t -> Element #

mktnode :: Text -> [(Text, Text)] -> Text -> Element #

nodename :: Text -> QName #

toLazy :: ByteString -> ByteString #

renderXml :: Element -> ByteString #

parseXml :: PandocMonad m => Archive -> Archive -> String -> m Element #

elemToNameSpaces :: Element -> NameSpaces #

elemName :: NameSpaces -> Text -> Text -> QName #

isElem :: NameSpaces -> Text -> Text -> Element -> Bool #

type NameSpaces = [(Text, Text)] #

fitToPage :: (Double, Double) -> Integer -> (Integer, Integer) #

Scales the image to fit the page sizes are passed in emu