2017-03-27 21:20:27 +02:00
|
|
|
```
|
|
|
|
% pandoc -f latex -t native
|
|
|
|
\subfile{command/sub-file-chapter-1}
|
|
|
|
\subfile{command/sub-file-chapter-2}
|
|
|
|
^D
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Header
|
|
|
|
1
|
|
|
|
( "chapter-1" , [] , [] )
|
|
|
|
[ Str "Chapter" , Space , Str "1" ]
|
2021-09-19 21:09:51 +02:00
|
|
|
, Para
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Str "This"
|
|
|
|
, Space
|
|
|
|
, Str "is"
|
|
|
|
, Space
|
|
|
|
, Str "Chapter"
|
|
|
|
, Space
|
|
|
|
, Str "1,"
|
|
|
|
, Space
|
|
|
|
, Str "provided"
|
|
|
|
, Space
|
|
|
|
, Str "in"
|
|
|
|
, Space
|
|
|
|
, Str "a"
|
|
|
|
, Space
|
|
|
|
, Str "sub"
|
|
|
|
, Space
|
|
|
|
, Str "file."
|
|
|
|
]
|
|
|
|
, Header
|
|
|
|
1
|
|
|
|
( "chapter-2" , [] , [] )
|
|
|
|
[ Str "Chapter" , Space , Str "2" ]
|
2021-09-19 21:09:51 +02:00
|
|
|
, Para
|
2021-09-29 06:17:53 +02:00
|
|
|
[ Str "This"
|
|
|
|
, Space
|
|
|
|
, Str "is"
|
|
|
|
, Space
|
|
|
|
, Str "Chapter"
|
|
|
|
, Space
|
|
|
|
, Str "2,"
|
|
|
|
, Space
|
|
|
|
, Str "provided"
|
|
|
|
, Space
|
|
|
|
, Str "in"
|
|
|
|
, Space
|
|
|
|
, Str "a"
|
|
|
|
, Space
|
|
|
|
, Str "second"
|
|
|
|
, Space
|
|
|
|
, Str "sub"
|
|
|
|
, Space
|
|
|
|
, Str "file."
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-03-27 21:20:27 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -flatex+raw_tex -t native
|
|
|
|
\subfile{command/sub-file-chapter-1}
|
|
|
|
\subfile{command/sub-file-chapter-2}
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ RawBlock
|
2021-09-29 06:17:53 +02:00
|
|
|
(Format "latex") "\\subfile{command/sub-file-chapter-1}"
|
2021-09-19 21:09:51 +02:00
|
|
|
, RawBlock
|
2021-09-29 06:17:53 +02:00
|
|
|
(Format "latex") "\\subfile{command/sub-file-chapter-2}"
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-03-27 21:20:27 +02:00
|
|
|
```
|