transpect / xml2tex Goto Github PK
View Code? Open in Web Editor NEWConverts XML to LaTeX
License: BSD 2-Clause "Simplified" License
Converts XML to LaTeX
License: BSD 2-Clause "Simplified" License
施超杰@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
Why do calabash fails when there is a space in its directory path where it resides? It throws 'Could not find or load main class' and ClassNotFoundException.
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.
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)
It would be useful, to avoid later errors pdf2latex compiling, being able to avoid to enclose a math symbol between a pair of $ when inside a math environment.
This is the reason I opened the previous issue.
__peppo
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.)
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
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?
施超杰@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
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
regards
__peppo
There are xmlcatalog subfolder in almost every folder, Under which folder will we add the catalog file?
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
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.