aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)Author
2018-03-17ConTeXt template: pdfa variable to generate PDF/A (#4294)Henri Menke
The resulting PDF can be verified using the Apache PDFBox preflight app. ``` $ java -jar preflight-app-2.0.8.jar test.pdf The file test.pdf is a valid PDF/A-1b file ``` Instructions on how to install the ICC profiles on ConTeXt standalone can be found in the wiki: <http://wiki.contextgarden.net/PDFX#ICC_profiles>. If the ICC profiles are not available the log will contain messages like these ``` backend > profiles > profile specification 'sRGB.icc' loaded from '/usr/local/texlive/2017/texmf-dist/tex/context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'srgb.icc' backend > profiles > no default profile 'srgb.icc' for colorspace 'rgb' backend > profiles > profile specification 'sRGB IEC61966-2.1' loaded from '/usr/local/texlive/2017/texmf-dist/tex/context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'srgb.icc' backend > profiles > invalid output intent 'sRGB IEC61966-2.1' ``` and the resulting PDF will not be valid PDF/A: ``` $ java -jar preflight-app-2.0.8.jar test.pdf The file test.pdf is not a valid PDF/A-1b file, error(s) : 2.4.3 : Invalid Color space, The operator "g" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "G" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "g" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "G" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 ``` However, the PDF will still be generated and the "errors" shown in the log do not break anything.
2018-03-17Provide `bidi` package's option using `\PassOptionsToPackage` (#4357).Václav Haisman
* Provide `bidi` package's option using `\PassOptionsToPackage`. This avoid clash when `polyglossia` loads it first and then it is loaded again for XeLaTeX when `latex-dir-rtl` defined. * Adjust test suite for LaTeX template change.
2018-02-18Powerpoint writer: Move notes slides into data tree.Jesse Rosenthal
2018-02-08rst template: remove definition of 'math' role as raw.John MacFarlane
This used to be needed prior to v 0.8 of docutils, but now math support is built-in.
2018-01-19hlint code improvements.John MacFarlane
2018-01-19Merge pull request #4221 from phikal/masterJohn MacFarlane
Ms writer: Added papersize variable
2018-01-15ConTeXt writer: Use xtables instead of Tables (#4223)Henri Menke
- Default to xtables for context output. - Added `ntb` extension (affecting context writer only) to use Natural Tables instead. - Added `Ext_ntb` constructor to `Extension` (API change).
2018-01-13data/pandoc.lua: add attr, listAttributes accessorsAlbert Krewinkel
Elements with attributes got an additional `attr` accessor. Attributes were accessible only via the `identifier`, `classes`, and `attributes`, which was in conflict with the documentation, which indirectly states that such elements have the an `attr` property.
2018-01-13data/pandoc.lua: accept single block as singleton listAlbert Krewinkel
Every constructor which accepts a list of blocks now also accepts a single block element for convenience. Furthermore, strings are accepted as shorthand for `{pandoc.Str "text"}` in constructors.
2018-01-13data/pandoc.lua: accept singleton inline as a listAlbert Krewinkel
Every constructor which accepts a list of inlines now also accepts a single inline element for convenience.
2018-01-13data/pandoc.lua: drop _VERSIONAlbert Krewinkel
Having a _VERSION became superfluous, as this module is closely tied to the pandoc version, which is available via PANDOC_VERSION.
2018-01-09data/pandoc.lua: fix access to Attr componentsAlbert Krewinkel
Accessing an Attr value (e.g., ` Attr().classes`) was broken; the more common case of accessing it via an Inline or Block element was unaffected by this.
2018-01-09data/pandoc.lua: slightly de-complicate accessor codeAlbert Krewinkel
Change: minor
2018-01-08data/pandoc.lua: cleanup code, remove cruftAlbert Krewinkel
2018-01-07data/pandoc.lua: fix docstringsAlbert Krewinkel
Change: minor
2018-01-07data/pandoc.lua: make Attr an AstElementAlbert Krewinkel
Attr is an AST element, which is now reflected in the type hierarchy.
2018-01-07data/pandoc.lua: drop 'pandoc-api-version' from Pandoc objectsAlbert Krewinkel
This attribute was out-of-sync with the actual version as is mostly irrelevant in the context Lua filters and custom writers. Use the global `PANDOC_API_VERSION` instead.
2018-01-07data/pandoc.lua: make all types subtypes of AstElementAlbert Krewinkel
*Pandoc*, *Meta*, and *Citation* were just plain functions and did not set a metatable on the returned value, which made it difficult to amend objects of these types with new behavior. They are now subtypes of AstElement, meaning that all their objects can gain new features when a method is added to the behavior object (e.g., `pandoc.Pandoc.behavior`).
2018-01-06data/pandoc.lua: split type and behavior tablesAlbert Krewinkel
Clearly distinguish between a type and the behavioral properties of an instance of that type. The behavior of a type (and all its subtypes) can now be amended by adding methods to that types `behavior` object, without exposing the type objects internals. E.g.: pandoc.Inline.behavior.frob = function () print'42' end local str = pandoc.Str'hello' str.frob() -- outputs '42'
2018-01-06data/pandoc.lua: rename Element to AstElementAlbert Krewinkel
This avoids confusion with the Element type from Text.Pandoc.Shared. Change: minor
2018-01-06data/pandoc.lua: remove dead codeAlbert Krewinkel
A `Element:new` method was a left-over was never called. Change: minor
2018-01-06data/pandoc.lua: fix Element inheritanceAlbert Krewinkel
Extending all elements of a given type (e.g., all inline elements) was difficult, as the table used to lookup unknown methods would be reset every time a new element of that type was created, preventing recursive property lookup. This is was changed in that all methods and attributes of supertypes are now available to their subtypes.
2018-01-05Update copyright notices to include 2018Albert Krewinkel
2018-01-05data/pandoc.lua: fix attribute names of CitationAlbert Krewinkel
The fields were named like the Haskell fields, not like the documented, shorter version. The names are changed to match the documentation and Citations are given a shared metatable to enable simple extensibility. Fixes: #4222
2018-01-03Ms writer: Added papersize variablePhilip K
2017-12-29data/pandoc.lua: drop function pandoc.global_filterAlbert Krewinkel
The function `global_filter` was used internally to get the implicitly defined global filter. It was of little value to end-users, but caused unnecessary code duplication in pandoc. The function has hence been dropped. Internally, the global filter is now received by interpreting the global table as lua filter. This is a Lua API change.
2017-12-29data/pandoc.lua: fix documentation for global_filterAlbert Krewinkel
2017-12-28Fixed some doc comments in data/pandoc.lua.John MacFarlane
2017-12-27data/sample.lua: use `next` instead of for loopAlbert Krewinkel
Each definition list item contains just a single key and the associated value. Using `next` to get the key/value pair is more idiomatic than iterating over the single-element table.
2017-12-27Removed extra comment.John MacFarlane
2017-12-27Revert "data/sample.lua: Fixed problem with definition lists."John MacFarlane
This reverts commit 0e3736422ee97a5cfedc255705f566a319f954f9 in favor of @tarleb's fix.
2017-12-27data/sample.lua: fixed problem with tables.John MacFarlane
Closes #4202.
2017-12-27data/sample.lua: Fixed problem with definition lists.John MacFarlane
2017-12-26Updated reference.docx.John MacFarlane
Instead of just "Hello, world", the document now contains exemplars of most of the styles that have an effect on pandoc documents. This makes it easier to see the effect of style changes. Closes #4175.
2017-12-26HTML writer: Use br elements in line blocks...John MacFarlane
instead of relying on CSS. Closes #4162. HTML-based templates have had the custom CSS for div.line-block removed. Those maintaining custom templates will want to remove this too. We still enclose line blocks in a div with class line-block.
2017-12-23data/init.lua: load pandoc.utils by defaultAlbert Krewinkel
2017-12-21Lua modules: added pandoc.utils moduleAlbert Krewinkel
A new module `pandoc.utils` has been created. It holds utility functions like `sha1`, which was moved from the main `pandoc` module.
2017-12-21Removed default.theme data file.John MacFarlane
It is no longer needed now that we have `--print-highlight-style`. See #4096.
2017-12-20Lua modules: turn pipe, read into full Haskell functionsAlbert Krewinkel
The `pipe` and `read` utility functions are converted from hybrid lua/haskell functions into full Haskell functions. This avoids the need for intermediate `_pipe`/`_read` helper functions, which have dropped.
2017-12-19pandoc.lua: re-add missing MetaMap functionAlbert Krewinkel
This was a bug introduced in version 2.0.4 (commit 3f1f9536d4817bbdd797c01050a887fe4cdf347c).
2017-12-13Update latex template to work with recent versions of beamer.John MacFarlane
The old template produced numbered sections with some recent versions of beamer. Thanks to Thomas Hodgson.
2017-12-11Added support for LaTeX pagestyle variable (#4135)Thomas Hodgson
* Add pagestyle support * Add pagestyle option to MANUAL.txt * Moved mention of pagestyle to the section on variables
2017-12-11Add default pptx data for Powerpoint writer.Jesse Rosenthal
2017-12-06Lua filters: use script to initialize the interpreterAlbert Krewinkel
The file `init.lua` is used to initialize the Lua interpreter which is used in Lua filters. This gives users the option to require libraries which they want to use in all of their filters, and to extend default modules.
2017-12-02Lua filters: refactor lua module handlingAlbert Krewinkel
The integration with Lua's package/module system is improved: A pandoc-specific package searcher is prepended to the searchers in `package.searchers`. The modules `pandoc` and `pandoc.mediabag` can now be loaded via `require`.
2017-12-04reveal.js template: add title-slide identifier to title slide.John MacFarlane
This allows it to be styled more easily. Closes #4120.
2017-12-03Include default CSS for 'underline' class in HTML-based templates.John MacFarlane
2017-12-01revealjs template: added a necessary escape.John MacFarlane
2017-12-01reveal.js template: include tex2jax configuration.John MacFarlane
This ensures that we don't use $..$ delimiters, which gives bad results when $ is used as a currency sign. This depends on the current dev version of reveal.js.
2017-12-01pandoc.lua: set metatable on List MetaValuesAlbert Krewinkel
The `List` metatable is assigned to the tables which get passed to the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This enables the use of the resulting objects as lists. This is part of the changes discussed in #4081.