villaroyal.blogg.se

Manuscripts
Manuscripts








Bibliography metadata is stored in the CSL-JSON format, with a limited set of application-specific additional keys specified in the Manuscripts schema. Citations can be inserted into the document via search and import from an in-app internal reference library, as well as directly from external sources such as Crossref or DataCite (with additional sources under development), and bibliography formatting is performed using CiteProc (citeproc-js). The output of a node as HTML is also defined, and this is used both when rendering a node in the editor (when a custom node view hasn’t been defined) and when a node is copied to the clipboard.Ī sample ProseMirror node spec, describing the attributes, content and HTML representation of a “section” node.Ĭontent: 'section_title (paragraph | element)* section*',Ĭlass: ? 'title-suppressed' : '',Įquations are inserted and edited as LaTeX, using CodeMirror for linting and syntax highlighting, then rendered to SVG using MathJax. The schema of the document is described using ProseMirror’s “node spec” definitions: like a DTD, these define a node type’s attributes, the types and allowed order of a node’s children and various other properties of a node type that are relevant when editing. For example a figure wrapper can contain a caption and multiple figure panels, each with their own caption. These element types correspond to the model of JATS and HTML5 (with markup and metadata schema chosen to allow also for reasonable degree of DOCX and LaTeX interoperability).

manuscripts

#Manuscripts code#

Each section contains one or more of the fundamental Manuscripts “elements”: currently paragraph, list, figure, table, equation or code listing. The document follows a structure corresponding to the model of JATS and HTML5: multiple sections, each with headings and subsections. The Manuscripts.io editing environment, featuring a) the toolbar, containing actions for changing the type of the current element, formatting the selection and inserting new elements, b) the project outline view, showcasing the ability to edit multiple manuscripts housed inside a project (in this case, the main JATS-Con article being written, as well as authors’ own notes) and c) the structured document editor view.








Manuscripts