beijaflor-io / jats2tex Goto Github PK
View Code? Open in Web Editor NEWThis project forked from scielo-edo/jats2tex
jats2tex - JATS-XML / TeX Conversion
Home Page: https://jats2tex.beijaflor.io/
License: Other
This project forked from scielo-edo/jats2tex
jats2tex - JATS-XML / TeX Conversion
Home Page: https://jats2tex.beijaflor.io/
License: Other
E.g.
The following should work:
abstract: "@@children"
title: "\\title{@@children}"
abstract/title: ""
<title>Stuff</title>
<abstract>
Stuff
<title>Hidden</title>
</abstract>
\title{Stuff}
Stuff
This requires changes to HXT XPath implementation, high cost change
One-off conversion currently spends 30% of the time allocating and GCing memory. So increasing the initial pre-allocated Heap size should give a 30% performance improvement.
Currently there's no error-handling on the frontend, so if the back-end has errors, the application will break. Instead it should show an error message and a prompt to retry.
See:
Possibly implement @@xlst()@@
blocks that accept XLST and use the (hopefully complete) XLST executor from HXT.
There's currently no database model or API for templates. Only for the combination of templates/XML/LaTeX.
Separating this would be nice and improve the tool significantly.
Instead of editing YAML, the web version should use a structural editor.
Perfectly possible to implement atm, just needs to be treated, pretty simple map from attribute in tds to latex commands.
Simplify this
JATS2TEX_DEBUG=1 jats2tex -w 0 example.xml -t template.yaml
I've just tried to run this example unsuccessfully. The LaTeX output is not that exactly. Please have a look
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>Application Error</title>
<style media="screen">
html,body,iframe {
margin: 0;
padding: 0;
}
html,body {
height: 100%;
overflow: hidden;
}
iframe {
width: 100%;
height: 100%;
border: 0;
}
</style>
</head>
<body>
<iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
</body>
It´s interesting to list tags lika a "gist" in order to refer to it in the docs.
And saving manually should be easier (no tab-switching)
At some point these modules were separate and there was better separation of concerns, need to move in that direction again.
TemplateWrapper
typeTemplateWrapper
instead of Template
when reading templates, then merging all extended templates onto oneMerging the tables
branch makes everything very slow; I think there's a lot of copying going on from re-generating subtrees after a template match.
This ticket's task is to benchmark and optimize the code.
Currently the parser breaks, since -/ is not a valid URL
Currently lua code needs to be inlined. It'd be nice if in the templates version 2
, we could load lua files containing logic.
read attributes from images and compile to figures
Escanear diretórios /etc/jats2tex/templates
(ou diretório de configuração no windows) por templates YAML que possam ser referenciados por nome.
Ao ser instalado, plantar o template default.yaml
no path de configuração /etc
ou equivalente no Windows.
when output file isn't provided, writing to the same directory makes more sense so images don't have to fix their paths
/One/Two/Three/Four
yaml
//Example:
One//Example:
One/Two/Example:
One/Two/Example[@example]:
One/Two/Example[@example="example"]:
Also include instructions to set-up the database.
Onde os mostrar e assim por diante @jorgesallum
I would like to identify XML tags in LaTeX code in jats2tex-web.
No momento estamos compilando em Docker apenas
@aline-cristina o problema que encontrou será solucionado por esse ticket
sec: |
@@lua(return find("/p"))@@
<sec>
<p>Something</p>
<other><p>Hidden</p></other>
</sec>
Something
Empty
in tables
, needs optimization
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.