Giter Site home page Giter Site logo

Installation problem about docx2tex HOT 9 CLOSED

transpect avatar transpect commented on May 22, 2024
Installation problem

from docx2tex.

Comments (9)

hackman2112 avatar hackman2112 commented on May 22, 2024

Also if I try to run it here's what goes in the log:

ERROR: docx2hub/xpl/single-tree.xpl:49:79:err:XS0052:Cannot import: http://transpect.io/calabash-extensions/transpect-lib.xpl
ERROR: cause: I/O error reported by XML parser processing http://transpect.io/calabash-extensions/transpect-lib.xpl: http://www.le-tex.de/en/transpect.htmlcalabash-extensions/transpect-lib.xpl
ERROR: It is a static error if the URI of a p:import cannot be retrieved or if, once retrieved, it does not point to a p:library, p:declare-step, or p:pipeline.
ERROR: Underlying exception: I/O error reported by XML parser processing http://transpect.io/calabash-extensions/transpect-lib.xpl: http://www.le-tex.de/en/transpect.htmlcalabash-extensions/transpect-lib.xpl

from docx2tex.

gimsieke avatar gimsieke commented on May 22, 2024

Hi Greg, the first issue that you are reporting is probably due to https://github.com/transpect/docx2tex/blob/master/.gitmodules#L24 – the submodule is attached via ssh instead of HTTP, like the other submodules. This only works for someone who has stored their ssh key with their github account. We’ll fix this, it will also be an HTTP URL.

The second issue is an indication that the XML catalog is not being used. In your checked-out copy, is there a file calabash-frontend/xmlcatalog/catalog.xml? How did you exactly invoke d2t, i.e., from which directory, using which command line?

We don’t use Macs too often, but we’ll be able to investigate further on a Mac tomorrow if it seems to be an issue related to our lack of properly supporting the Mac…

from docx2tex.

gimsieke avatar gimsieke commented on May 22, 2024

Ok, I updated the submodule URL. I don’t know exactly how you can update this so that your copy reflects this change. The numerous git incantations and which to select for which occasion is a thing that is still quite arcane to me. git submodules tend to make matters even more complicated.
First, do a

git pull

so that your .gitmodules file gets updated. Then you can try

git submodule foreach --recursive git checkout master

and/or

git submodule foreach git pull origin master

If that doesn’t help, then maybe

git submodule sync
git submodule update --init --recursive

or checking out a fresh copy altogether, as per https://xkcd.com/1597/

from docx2tex.

hackman2112 avatar hackman2112 commented on May 22, 2024

Hi Gerrit, thank you for your quick response. I'll try the new repository right away.

Yes, catalog.xml exists right where you said it should.

I invoked d2t right from the command line, in the directory that d2t actually exists, and the invocation was really simple:

./d2t -o a.tex a.docx

from docx2tex.

gimsieke avatar gimsieke commented on May 22, 2024

In the meantime, I checked out a fresh version and I was able to reproduce your 2nd issue (that is related to the XML catalog). Will fix it soon.

from docx2tex.

gimsieke avatar gimsieke commented on May 22, 2024

(btw, nice avatar…)

from docx2tex.

gimsieke avatar gimsieke commented on May 22, 2024

Ok, should be fixed now. Sorry that it didn’t run ok right from the start. I blame git submodules.

from docx2tex.

hackman2112 avatar hackman2112 commented on May 22, 2024

Installs perfectly now!

This type of code is such an important and useful tool for those of us who want to write serious scientific documents. I've starred it and intend to tell everyone I know about it.

Thanks!

from docx2tex.

gimsieke avatar gimsieke commented on May 22, 2024

Please don’t hesitate to report further errors, in particular incorrect mappings to LaTeX, since there will still be some for sure…

from docx2tex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.