LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-15-2017, 01:52 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Good method to convert a DOCX to Latex (TeX) with images?


Hello,

I would like to convert a DOCX to Latex (TeX) with images.

There is a way which is pdftohtml and then pandoc to bring it to tex. It works not really since the text if full of ~ ... and xml.

Another way is to libreoffice document.docx, and then to "save as" to html. The next step is to use pandoc from html to TeX/Latex.
Well, it works better but the includegraphics is corrupted.

Would you have any better solutions/ideas?
 
Old 05-16-2017, 07:26 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Not sure. But a docx file is really a zip file. Inside there are lots of XML files, and also the the original images as files. So you can unzip it and look for PNG and JPG files. If you get the text correct, you can probably just replace the corrupted images with the originals.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best method to convert a DOCX file to TeX file? (word to latex) Xeratul Linux - General 3 07-18-2017 08:19 AM
A good tex/latex editor in slackware 14.1? stf92 Slackware 18 02-03-2017 12:58 PM
Convert a PDF or DOC to TeX / Latex ? patrick295767 Linux - Software 1 02-22-2016 09:28 AM
Help with TeX - LaTeX simsam Ubuntu 7 09-24-2014 01:32 PM
vim file.tex !latex file.tex & pdfdvi file.dvi & xpdf -remote sname -reload Mol_Bolom Linux - General 0 07-09-2009 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration