-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LaTeX reader: add support for LaTeX subfiles package.
Closes #3530.
- Loading branch information
1 parent
e3472f0
commit 49d7244
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
``` | ||
% pandoc -f latex -t native | ||
\subfile{command/sub-file-chapter-1} | ||
\subfile{command/sub-file-chapter-2} | ||
^D | ||
[Header 1 ("chapter-1",[],[]) [Str "Chapter",Space,Str "1"] | ||
,Para [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"] | ||
,Para [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."]] | ||
``` | ||
|
||
``` | ||
% pandoc -flatex+raw_tex -t native | ||
\subfile{command/sub-file-chapter-1} | ||
\subfile{command/sub-file-chapter-2} | ||
^D | ||
[Header 1 ("chapter-1",[],[]) [Str "Chapter",Space,Str "1"] | ||
,Para [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"] | ||
,Para [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."]] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass[main.tex]{subfiles} | ||
\begin{document} | ||
|
||
\section{Chapter 1} | ||
|
||
This is Chapter 1, provided in a sub file. | ||
|
||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
\documentclass[main.tex]{subfiles} | ||
\begin{document} | ||
|
||
\section{Chapter 2} | ||
|
||
This is Chapter 2, provided in a second sub file. | ||
|
||
\end{document} |