Skip to content

include-files: add a "inline" options #229

Description

@loicreynier

The include-files creates a new paragraph for each included file. This is great when including files such as documents parts but one may need to includes files without creating a new paragraph.

I personaly use mainly the filter to include equations in LaTeX document, which should not be written in a new paragraph to prevent an indent after the equation. I would like to produce

... in the following equation

f(x) = sin(x)

where x is ...

instead of

... in the following equation

f(x) = sin(x)

____ where x is ...

using

... in the following equation
```{.include}
equations.tex
```
where x is ...

It is a matter of taste but I think an option like {.include inline=1} could be usefull in other cases. I don't know enough about the API to know if such a feature could be implemented without making too many changes to the filter code/behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions