mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
fc07b06851
This PR aims to handle a common run field instruction (fieldInstr) from docx format : REF, specifically those with the "link" switch \h. In word software, you can create REF field instruction with the Cross-reference button. You can create cross-reference to many things such as Equation, Table, Title...
146 lines
3.7 KiB
Plaintext
146 lines
3.7 KiB
Plaintext
[ Para
|
|
[ Str "See"
|
|
, Space
|
|
, Link
|
|
( "" , [] , [] )
|
|
[ Str "Table" , Space , Str "1" ]
|
|
( "#_Ref71265628" , "" )
|
|
, Str "."
|
|
]
|
|
, Table
|
|
( "" , [] , [] )
|
|
(Caption
|
|
Nothing
|
|
[ Para
|
|
[ Span ( "_Ref71265628" , [ "anchor" ] , [] ) []
|
|
, Str "Table"
|
|
, Space
|
|
, Str "1"
|
|
]
|
|
])
|
|
[ ( AlignDefault , ColWidth 0.7605739372523824 )
|
|
, ( AlignDefault , ColWidth 0.11971303137380876 )
|
|
, ( AlignDefault , ColWidth 0.11971303137380876 )
|
|
]
|
|
(TableHead
|
|
( "" , [] , [] )
|
|
[ Row
|
|
( "" , [] , [] )
|
|
[ Cell
|
|
( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) []
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "Count" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "%" ] ]
|
|
]
|
|
])
|
|
[ TableBody
|
|
( "" , [] , [] )
|
|
(RowHeadColumns 0)
|
|
[]
|
|
[ Row
|
|
( "" , [] , [] )
|
|
[ Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "First" , Space , Str "option" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "242" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "45" ] ]
|
|
]
|
|
, Row
|
|
( "" , [] , [] )
|
|
[ Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "Second" , Space , Str "option" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "99" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "18" ] ]
|
|
]
|
|
]
|
|
]
|
|
(TableFoot ( "" , [] , [] ) [])
|
|
, Header 2 ( "section" , [] , [] ) []
|
|
, Table
|
|
( "" , [] , [] )
|
|
(Caption
|
|
Nothing
|
|
[ Para
|
|
[ Span ( "_Ref71265695" , [ "anchor" ] , [] ) []
|
|
, Str "Table"
|
|
, Space
|
|
, Str "2"
|
|
]
|
|
])
|
|
[ ( AlignDefault , ColWidth 0.33329636202307006 )
|
|
, ( AlignDefault , ColWidth 0.33329636202307006 )
|
|
, ( AlignDefault , ColWidth 0.33340727595385977 )
|
|
]
|
|
(TableHead
|
|
( "" , [] , [] )
|
|
[ Row
|
|
( "" , [] , [] )
|
|
[ Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "One" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "Two" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "Three" ] ]
|
|
]
|
|
])
|
|
[ TableBody ( "" , [] , [] ) (RowHeadColumns 0) [] [] ]
|
|
(TableFoot ( "" , [] , [] ) [])
|
|
, Para
|
|
[ Str "See"
|
|
, Space
|
|
, Link
|
|
( "" , [] , [] )
|
|
[ Str "Table" , Space , Str "2" ]
|
|
( "#_Ref71265695" , "" )
|
|
, Str "."
|
|
]
|
|
]
|