Git Product home page Git Product logo

pandoc-include's People

Contributors

steindani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pandoc-include's Issues

Nested includes don't work

Includes nested in an included file are treated like literals instead of being resolved to the included files. The README suggests nesting works only for two levels, but this experience indicates that no nested includes are supported.

I'm using the version 0.0.1 installed via Cabal.

Doesn’t work with pandoc-citeproc

Ignoring the metadata from included files means the references aren’t included in the final document.

Inserting references

This is the case both for

  • Explicit references
  • A reference to a bibliography

See the manual for instructions on pandoc-citeproc.

Inserting bibliography

Inserting a bibliography is a separate concern. There are two options,

  1. Single combined bibliography
  2. Per-include bibliographies

There are difficulties, especially if the individual included files are to work on their own, too.

  • pandoc-include needs to handle the reference-section-title field somehow. Likewise, if the last part of a document is a section header (which pandoc-citeproc will treat as a
  • If an header element is present with an id of refs the corresponding section will be used for the bibliography; multiple bibliographies are unlikely to work in this case.

Recommendations

Introduce a class input for including a file and merging displayed bibliographies

c.f. \input vs \include in LaTex.

This will remove any headers in the document with label refs, or the final header if it is the last entry in the file.

With include. run pandoc-citeproc on each included file first

Process the included files recursively with pandoc-citeproc, before including their outputs into the parent document.

(Note that pandoc-crossref must be called before pandoc-citeproc.)

Include only certain line numbers

Pandoc-include doesn't currently allow us to include only a range of line numbers, does it? For example, if I have a complete poem or program in a file (e.g., poem.md or program.xq), but my text I only want to include lines 6-12 and later lines 13-18. If pandoc-include doesn't support this, is it planned, or if not, are you aware of any projects that support this? Thanks.

Does this still work?

I have a fully updated Arch install, but the homepage example doesn't work. Should it?

The only output for ```include ...``` it generates is \begin{verbatim} ... \end{verbatim}.

Pandoc 2 Support Issues

Hi

How would one go about using this with pandoc 2?
I notice that it renders the included files with pandoc 1.19 which does not include the newer syntax formats...

Encoding problems when include cyrillic files

Steps to reproduce:

  1. create two files

test.md

# Тест

* один
* два
* три

```include
include.md
```

include.md

* четыре
* пять
* шесть
  1. run
pandoc --filter pandoc-include -o result.html test.md

And result will be:

<h1 id="тест">Тест</h1>
<ul>
<li>один</li>
<li>два</li>
<li>три</li>
</ul>
<ul>
<li>╤З╨╡╤В╤Л╤А╨╡</li>
<li>╨┐╤П╤В╤М</li>
<li>╤И╨╡╤Б╤В╤М</li>
</ul>

Couldn't match type ‘[Char]’ with ‘Data.Text.Internal.Text’

Can anyone help?
cabal install pandoc-include failed with the above error.
Above mentined cabal installation provided pandoc2.06. Piping IncludeFilter.hs (as described in the README) within my pandoc call leeds to the same error message.

Any help is highly appreciated.

Problem with package csquotes

I use pandoc-include with csquotes for showing German quotation marks, XeLaTeX-Engine. Works fine, when "quoted word" not in an included document. If it is part of an included document, csquotes has no effect at all.

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.