docx2tex

Converts Microsoft Word docx to LaTeX

Repository
Git URLhttps://github.com/transpect/docx2tex.git
SVN URLhttps://github.com/transpect/docx2tex
Base URIhttp://transpect.io/docx2tex/

Source ⬇

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: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="refs" required="false" select="'yes'"/>
  <p:option name="preprocessing" required="false" select="'yes'"/>
  <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="custom-xsl" required="false" select="''"/>
  <p:option name="custom-font-maps-dir" required="false"/>
  <p:option name="conf-template" required="false" 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="preprocessing" select="'yes'"/>
</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="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>

GitHub sync date: 2017-10-16+02:00