-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
277 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
libs/processors/docx-to-tex/src/test/fixtures/image/index.tex
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,3 @@ | ||
\documentclass{article} | ||
\usepackage[style=apa]{biblatex} | ||
\addbibresource{bibliography.bib}\usepackage{graphicx}\usepackage{hyperref} |
15 changes: 15 additions & 0 deletions
15
libs/processors/docx-to-tex/src/test/fixtures/image/result.tex
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,15 @@ | ||
\documentclass{article} | ||
\usepackage[style=apa]{biblatex} | ||
\addbibresource{bibliography.bib}\usepackage{graphicx}\usepackage{hyperref} | ||
|
||
|
||
|
||
\begin{document} | ||
|
||
|
||
|
||
Figure 1: A pretty pic | ||
|
||
|
||
|
||
\end{document} |
92 changes: 92 additions & 0 deletions
92
libs/processors/docx-to-tex/src/test/fixtures/image/test.jats.json
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,92 @@ | ||
{ | ||
"type": "root", | ||
"attributes": {}, | ||
"children": [ | ||
{ | ||
"type": "instruction", | ||
"name": "xml", | ||
"value": "version=\"1.0\" encoding=\"utf-8\"" | ||
}, | ||
{ | ||
"type": "doctype", | ||
"name": "article", | ||
"public": "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN", | ||
"system": "https://jats.nlm.nih.gov/publishing/1.2/JATS-journalpublishing1.dtd" | ||
}, | ||
{ | ||
"type": "text", | ||
"value": " " | ||
}, | ||
{ | ||
"type": "element", | ||
"name": "article", | ||
"attributes": {}, | ||
"children": [ | ||
{ | ||
"type": "element", | ||
"name": "front", | ||
"attributes": {}, | ||
"children": [] | ||
}, | ||
{ | ||
"type": "element", | ||
"name": "body", | ||
"attributes": {}, | ||
"children": [ | ||
{ | ||
"type": "element", | ||
"name": "p", | ||
"attributes": {}, | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "element", | ||
"name": "p", | ||
"attributes": { | ||
"style": "Caption" | ||
}, | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "Figure " | ||
}, | ||
{ | ||
"type": "text", | ||
"value": "1" | ||
}, | ||
{ | ||
"type": "text", | ||
"value": ": A pretty pic" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "element", | ||
"name": "back", | ||
"attributes": {}, | ||
"children": [ | ||
{ | ||
"type": "element", | ||
"name": "refList", | ||
"attributes": {}, | ||
"children": [] | ||
}, | ||
{ | ||
"type": "element", | ||
"name": "fnGroup", | ||
"attributes": {}, | ||
"children": [] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
153 changes: 153 additions & 0 deletions
153
libs/processors/docx-to-tex/src/test/fixtures/image/test.tex.json
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,153 @@ | ||
{ | ||
"type": "root", | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": " " | ||
}, | ||
{ | ||
"type": "root", | ||
"children": [ | ||
{ | ||
"type": "preamble", | ||
"children": [ | ||
{ | ||
"type": "paragraph", | ||
"children": [ | ||
{ | ||
"type": "command", | ||
"name": "documentclass", | ||
"children": [ | ||
{ | ||
"type": "commandArg", | ||
"optional": false, | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "article" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "text", | ||
"value": "\n" | ||
}, | ||
{ | ||
"type": "command", | ||
"name": "usepackage", | ||
"children": [ | ||
{ | ||
"type": "commandArg", | ||
"optional": true, | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "style=apa" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "commandArg", | ||
"optional": false, | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "biblatex" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "text", | ||
"value": "\n" | ||
}, | ||
{ | ||
"type": "command", | ||
"name": "addbibresource", | ||
"children": [ | ||
{ | ||
"type": "commandArg", | ||
"optional": false, | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "bibliography.bib" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "command", | ||
"name": "usepackage", | ||
"children": [ | ||
{ | ||
"type": "commandArg", | ||
"optional": false, | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "graphicx" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "command", | ||
"name": "usepackage", | ||
"children": [ | ||
{ | ||
"type": "commandArg", | ||
"optional": false, | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "hyperref" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "text", | ||
"value": "\n" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "environment", | ||
"name": "document", | ||
"children": [ | ||
{ | ||
"type": "paragraph", | ||
"children": [] | ||
}, | ||
{ | ||
"type": "paragraph", | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"value": "Figure " | ||
}, | ||
{ | ||
"type": "text", | ||
"value": "1" | ||
}, | ||
{ | ||
"type": "text", | ||
"value": ": A pretty pic" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Binary file not shown.
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