Coder Social home page Coder Social logo

xml2tex's Issues

Error: Could not find or load main class com.xmlcalabash.drivers.Main

施超杰@LAPTOP-Q773LLAB MINGW64 /f/graduate/Sheffield/essay project/xml2tex
$ calabash/calabash.sh -i source=xml2tex/example/example.xml -i conf=xml2tex/example/conf-hubcssa.xml xml2tex/xpl/xml2tex.xpl
calabash/calabash.sh: line 48: [: /f/graduate/Sheffield/essay: binary operator expected
calabash/calabash.sh: line 100: [: /f/graduate/Sheffield/essay: binary operator expected
calabash/calabash.sh: line 102: [: /f/graduate/Sheffield/essay: binary operator expected
Error: Could not find or load main class com.xmlcalabash.drivers.Main

Verbatim texts in converted XML

Is there a tag to enclose texts and symbols exactly the way it should be. Example: <plain>\clearpage</plain> should just write \clearpage in tex file without any conversion i.e., \ is not being written as \textbackslash. This is important when I want to do some TikZ drawings in XML, just to leave the code the way it is.

Errror on sample run: not a pipeline or library

Hi,
Following the install instructions I get this error:

 bkelly  ~  calabash/calabash.sh -i source=xml2tex/example/example.xml -i conf=xml2tex/example/conf-hubcssa.xml xml2tex/xpl/xml2tex.xpl
ERROR: http://transpect.github.io/../index.html:1:107:Not a pipeline or library: html
ERROR: http://transpect.github.io/../index.html:1:107:Not a pipeline or library: html
ERROR: err:XS0044:Unexpected step name: tr:load
ERROR: It is a static error if any element in the XProc namespace or any step has element children other than those specified for it by this specification. In particular, the presence of atomic steps for which there is no visible declaration may raise this error.
 bkelly  ~  Documents  Lexique  java -version
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment 18.9 (build 11.0.6+10)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10, mixed mode, sharing)

Switching between tabular and tabularx

How do I switch between tabular and tabularx environment when I try to define a table in input xml? My sample table looks something like this:

<table>
  <tgroup>
    <colspec colnum="1" colwidth="0.5cm"/>
    <colspec colnum="2" colwidth="0.5cm"/>
    <row>
    Data1<entry/>Data2</row></tgroup>
</table>

And I get an output as:

\begin{table}
\begin{tabularx}{\textwidth}{|
p{\dimexpr 0.5\linewidth-2\tabcolsep}|
p{\dimexpr 0.5\linewidth-2\tabcolsep}|} \hline 

Data1 & Data2 \\\hline 
\end{tabularx}
\end{table}

What I am trying to achieve is a table without any borders or grids and I prefer tabular since I only want very simple table, and it should not float (How do I pass option to an environment?). I saw a file calstable2tabular under xml2tex/xsl/ directory and I assume the stylesheet for tables apply from there. I tried to change default parameter values of table-model and table-grid but nothing solved (I know it is bad practice to mess up library files, I was just curious though.)

Error during calabash installation

Hello,
I get this error when i run:
sudo calabash-frontend/calabash.sh -i source=xml2tex/example/example.xml -i conf=xml2tex/example/conf-hubcssa.xml xml2tex/xpl/xml2tex.xpl

ERROR: http://transpect.github.io/../index.html:1:107:Not a pipeline or library: html
ERROR: http://transpect.github.io/../index.html:1:107:Not a pipeline or library: html
ERROR: err:XS0044:Unexpected step name: tr:load
ERROR: It is a static error if any element in the XProc namespace or any step has element children other than those specified for it by this specification. In particular, the presence of atomic steps for which there is no visible declaration may raise this error.

How do i resolve this? Thank you

java Exception for running the example

Hi,
After following the setup steps I ran
calabash/calabash.bat -i source=xml2tex/example/example.xml -i conf=xml2tex/example/conf-hubcssa.xml xml2tex/xpl/xml2tex.xpl

(or in cygwin
calabash/calabash.sh -i source=xml2tex/example/example.xml -i conf=xml2tex/example/conf-hubcssa.xml xml2tex/xpl/xml2tex.xpl)

and got the following message:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSource
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
at java.base/java.lang.Class.getMethodsRecursive(Class.java:3307)
at java.base/java.lang.Class.getMethod0(Class.java:3293)
at java.base/java.lang.Class.getMethod(Class.java:2106)
at com.xmlcalabash.core.XProcRuntime.initializeSteps(XProcRuntime.java:341)
at com.xmlcalabash.core.XProcRuntime.(XProcRuntime.java:290)
at com.xmlcalabash.drivers.Main.run(Main.java:100)
at com.xmlcalabash.drivers.Main.main(Main.java:83)
Caused by: java.lang.ClassNotFoundException: javax.activation.DataSource
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 9 more

(I thought I might have made a mistake during the setup and therefore cloned docx2tex recursively, but got the same error when I tried to run the example command )

Could you please let me know what I should do?

Error: Could not find or load main class com.xmlcalabash.drivers.Main

施超杰@LAPTOP-Q773LLAB MINGW64 /f/graduate/Sheffield/essay project/xml2tex
$ calabash/calabash.sh -i source=xml2tex/example/example.xml -i conf=xml2tex/example/conf-hubcssa.xml xml2tex/xpl/xml2tex.xpl
calabash/calabash.sh: line 48: [: /f/graduate/Sheffield/essay: binary operator expected
calabash/calabash.sh: line 100: [: /f/graduate/Sheffield/essay: binary operator expected
calabash/calabash.sh: line 102: [: /f/graduate/Sheffield/essay: binary operator expected
Error: Could not find or load main class com.xmlcalabash.drivers.Main

context not honored in xml2tex-conf//charmap/char

Whit this example conf
<char character="¯" string="${\thickspace\cup\thickspace}$" context="dbk:phrase[@css:font-familyzzzzzzzzzzzzzzz = 'MathematicalPi_4']"/>

I get in the latex output the ${\thickspace\cup\thickspace}$ string and it should not, as the css:font-familyzzzzzzzzzzzzzzz attribute clearly does not exist in my source xml

regards
__peppo

Always escape % in \href

Please escape all % in \href with \ (backslash) – not only in the second argument, but also in the first argument.

Reason: There occurs a fatal TeX error when compiling un-escaped % in \href in a \footnote.

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.