docx2tex
Converts Microsoft Word docx to LaTeX
Git URL | https://github.com/transpect/docx2tex.git |
SVN URL | https://github.com/transpect/docx2tex |
Base URI | http://transpect.io/docx2tex/ |
docx2tex:main
docx2tex:main generates a LaTeX text document from a DOCX file. The step can be used standalone or as library in other XProc pipelines.
Import
<p:import href="http://transpect.io/docx2tex/xpl/docx2tex.xpl"/>
Dependencies
Synopsis
<docx2tex:main xmlns:docx2tex="http://transpect.io/docx2tex">
<p:input port="custom-evolve-hub-driver"/>
<p:output port="result" primary="true"/>
<p:output port="hub" primary="false"/>
<p:option name="conf" select="'../conf/conf.csv'"/>
<p:option name="debug" select="'yes'"/>
<p:option name="debug-dir-uri" select="'debug'"/>
<p:option name="status-dir-uri" select="concat($debug-dir-uri, '/status')"/>
<p:option name="mtef-source" select="'ole'"/>
<p:option name="refs" required="false" select="'yes'"/>
<p:option name="preprocessing" required="false" select="'yes'"/>
<p:option name="list-mode" required="false" select="''"/>
<p:option name="table-model" required="false" select="'tabularx'"/>
<p:option name="table-grid" required="false" select="'yes'"/>
<p:option name="fail-on-error" select="'yes'"/>
<p:option name="docx" required="true"/>
<p:option name="mml-space-handling" select="'xml-space'"/>
<p:option name="custom-xsl" required="false" select="''"/>
<p:option name="custom-font-maps-dir" required="false"/>
<p:option name="image-output-dir" required="false" select="''"/>
<p:option name="conf-template" required="false" select="replace($docx, '\.docx$', '.csv')"/>
<p:option name="use-filename-from-http-response" required="false" select="'no'"/>
<p:option name="extract-dir" select="''"/>
</docx2tex:main>
docx2tex:evolve-hub
This evolve-hub customization automatically applies list styles, normalize whitespace and applies a preprocessing for xml2tex.
Import
<p:import href="http://transpect.io/docx2tex/xpl/evolve-hub.xpl"/>
Dependencies
Synopsis
<docx2tex:evolve-hub xmlns:docx2tex="http://transpect.io/docx2tex">
<p:input port="source" primary="true"/>
<p:input port="config" primary="false"/>
<p:input port="stylesheet"/>
<p:input port="parameters" primary="true"/>
<p:input port="models"/>
<p:output port="result"/>
<p:option name="debug" required="false" select="'no'"/>
<p:option name="debug-dir-uri" required="false" select="'debug'"/>
<p:option name="status-dir-uri" select="'status'"/>
<p:option name="fail-on-error" select="'yes'"/>
<p:option name="refs" select="'yes'"/>
<p:option name="list-mode" select="''"/>
<p:option name="preprocessing" select="'yes'"/>
<p:option name="strip-lang-variant" select="'no'"/>
<p:option name="table-model" select="'tabularx'"/>
</docx2tex:evolve-hub>
docx2tex:generate-conf-template
This step generates a CSV configuration template which includes all styles used in the current document.
Import
<p:import href="http://transpect.io/docx2tex/xpl/generate-conf-template.xpl"/>
Dependencies
Synopsis
<docx2tex:generate-conf-template xmlns:docx2tex="http://transpect.io/docx2tex">
<p:input port="source"/>
<p:output port="result"/>
<p:option name="conf-template" select="''"/>
<p:option name="debug" select="'yes'"/>
<p:option name="debug-dir-uri" select="'debug'"/>
</docx2tex:generate-conf-template>
docx2tex:load-config
Loads either a XML-based or CSV-based configuration file for docx2tex.
Import
<p:import href="http://transpect.io/docx2tex/xpl/load-config.xpl"/>
Dependencies
Synopsis
<docx2tex:load-config xmlns:docx2tex="http://transpect.io/docx2tex">
<p:output port="result"/>
<p:option name="conf" required="true"/>
<p:option name="fail-on-error" select="'no'"/>
<p:option name="collect-all-xsl" select="'no'"/>
<p:option name="debug" select="'no'"/>
<p:option name="debug-dir-uri" select="'debug'"/>
<p:option name="status-dir-uri" select="'status'"/>
</docx2tex:load-config>
docx2tex:remove-indents
Remove indent and margin-left attributes from headline styles in order to avoid that evolve-hub applies list styles later.
Import
<p:import href="http://transpect.io/docx2tex/xpl/remove-indents.xpl"/>
Dependencies
Synopsis
<docx2tex:remove-indents xmlns:docx2tex="http://transpect.io/docx2tex">
<p:input port="source" primary="true"/>
<p:input port="config" primary="false"/>
<p:output port="result"/>
<p:option name="debug" select="'no'"/>
<p:option name="debug-dir-uri" select="'debug'"/>
</docx2tex:remove-indents>
docx2tex:rename-and-copy-files
Import
<p:import href="http://transpect.io/docx2tex/xpl/rename-and-copy-files.xpl"/>
Synopsis
<docx2tex:rename-and-copy-files xmlns:docx2tex="http://transpect.io/docx2tex">
<p:input port="source"/>
<p:output port="result"/>
<p:option name="debug" select="'no'"/>
<p:option name="debug-dir-uri" select="'debug'"/>
<p:option name="image-output-dir" required="false" select="''"/>
</docx2tex:rename-and-copy-files>
GitHub sync date: 2024-04-23+02:00