All Projects → transpect → Docx2tex

transpect / Docx2tex

Licence: bsd-2-clause
Converts Microsoft Word docx to LaTeX

Projects that are alternatives of or similar to Docx2tex

Docx
Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
Stars: ✭ 1,288 (+375.28%)
Mutual labels:  office, docx
Documentserver
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
Stars: ✭ 2,335 (+761.62%)
Mutual labels:  office, docx
Officeproducer
Produce doc/docx/pdf format from doc/docx template
Stars: ✭ 95 (-64.94%)
Mutual labels:  office, docx
redmine preview office
Plugin for Redmine. Preview Microsoft Office Documents in Redmine's preview pane
Stars: ✭ 27 (-90.04%)
Mutual labels:  office, docx
Foliant
Comprehensive markdown-based documentation toolkit
Stars: ✭ 74 (-72.69%)
Mutual labels:  latex, docx
Quip Export
Export all folders and documents from Quip
Stars: ✭ 28 (-89.67%)
Mutual labels:  office, docx
Phpstamp
The XSL-way templating library for MS Office Word DOCX documents.
Stars: ✭ 150 (-44.65%)
Mutual labels:  office, docx
Docx
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
Stars: ✭ 2,150 (+693.36%)
Mutual labels:  office, docx
Fiduswriter
Fidus Writer is an online collaborative editor for academics.
Stars: ✭ 405 (+49.45%)
Mutual labels:  latex, docx
Open Xml Sdk
Open XML SDK by Microsoft
Stars: ✭ 3,005 (+1008.86%)
Mutual labels:  office, docx
Phpword
A pure PHP library for reading and writing word processing documents
Stars: ✭ 6,017 (+2120.3%)
Mutual labels:  office, docx
JThumbnail
Java thumbnail generator for Office,PDF,HTML,Text,MP3,MPEG and Image documents
Stars: ✭ 24 (-91.14%)
Mutual labels:  office, docx
Zettlr
A Markdown Editor for the 21st century.
Stars: ✭ 6,099 (+2150.55%)
Mutual labels:  office, docx
Desktopeditors
An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
Stars: ✭ 1,008 (+271.96%)
Mutual labels:  office, docx
Duckx
C++ library for creating and updating Microsoft Word (.docx) files.
Stars: ✭ 214 (-21.03%)
Mutual labels:  office, docx
eoffice
Export and import graphics and tables to MicroSoft office
Stars: ✭ 19 (-92.99%)
Mutual labels:  office, docx
modern-office-git-diff
An experiment in tracking and diffing versions of modern Microsoft Office files in Git.
Stars: ✭ 51 (-81.18%)
Mutual labels:  office, docx
Num-Plus-Plus
A scientific & intutive calculator written in Flutter.
Stars: ✭ 62 (-77.12%)
Mutual labels:  latex
GemBox.Document.Examples
Read, write, convert and print document files (DOCX, DOC, PDF, HTML, XPS, RTF, and TXT) in a simple and efficient way.
Stars: ✭ 53 (-80.44%)
Mutual labels:  docx
wizpen
A font based on the Pigpen cipher, originally used to help liberate Wraxnia from the Fangs in a D&D campaign. Works in LaTeX.
Stars: ✭ 15 (-94.46%)
Mutual labels:  latex

Current Release Github All Releases Downloads

docx2tex

Converts Microsoft Word's DOCX to LaTeX. Developed by le-tex and based on the transpect framework.

get docx2tex

download the latest release

Download the latest docx2tex release

…or get source via Git. Please note that you have to add the --recursive option in order to clone docx2hub with submodules.

git clone https://github.com/transpect/docx2tex --recursive

requirements

  • Java 1.7 up to 1.14 (more recent versions not yet tested)
  • works on Windows, Linux and Mac OS X

run docx2tex

You can run docx2tex with a bash script (Linux, Mac OSX, Cygwin) or the calabash shell (Windows) script

Linux/MacOSX

./d2t [options ...] myfile.docx
Option Description
-o path to custom output directory
-c path to custom docx2tex configuration file
-m choose MathType source (ole|wmf|ole+wmf)
-f path to custom fontmaps directory
-p generate PDF with pdflatex
-t draw table grid lines
-x custom XSLT stylesheet for Hub processing
-d debug mode

Windows

d2t.bat myfile.docx

via XML Calabash

Linux/Mac OSX

calabash/calabash.sh -o result=myfile.tex -o hub=myfile.xml xpl/docx2tex.xpl docx=myfile.docx conf=conf/conf.xml

Windows

calabash\calabash.bat -o result=myfile.tex -o hub=myfile.xml xpl/docx2tex.xpl docx=myfile.docx conf=conf/conf.xml

configure

You can specify a custom configuration file for docx2tex. There are two different formats to write a configuration.

  • The CSV-based configuration format permits a simple way to map from MS Word styles to LaTeX commands.
  • The xml2tex configuration format is recommended for a deeper level of configuration but requires basic knowledge of XML and XPath.

CSV

For each MS Word style name, create a line with three semicolon separated values.

  • MS Word style name
  • LaTeX start statement
  • LaTeX end statement

Just follow this example:

Heading 1   ; \chapter{     ; }
Heading 2   ; \section{     ; }
Heading 3   ; \subsection{  ; }
Quote       ; \begin{quote} ; end{quote}

You can edit CSV files either with a simple text editor or with a spreadsheet application.

xml2tex

docx2tex can also be configured by means of an xml2tex configuration file. docx2tex will apply the configuration to the intermediate Hub XML file and generates the LaTeX output.

The configuration in conf/conf.xml is used by default and works with the styles defined in Microsoft Word's normal.dot. If you want to configure docx2tex for other styles, you can edit this file or pass a custom configuration file with the conf option.

Learn how to edit this file here.

fontmaps

The docx conversion supports individual fontmaps for mapping non-unicode characters to unicode. Please note that this is just needed for fonts that are not unicode-compatible. If you want to map characters from Unicode to LaTeX, please use the character map in the xml2tex configuration instead.

Please find further documentation on how to create a fontmap here.

After you created your fontmap, store it in a directory and pass the path of the directory to docx2tex with the -f option.

If you invoke the docx2tex XProc pipeline (xpl/docx2tex.xpl), you can specify the fontmap directory with the option custom-font-maps-dir.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].