ReScience-submission icon indicating copy to clipboard operation
ReScience-submission copied to clipboard

pandoc + xelatex chocking on the \tightlist tex command.

Open antoine-lizee opened this issue 10 years ago • 10 comments

I get a

! Undefined control sequence.
l.227 \tightlist

which apparently comes from a "new" feature of pandoc that has not been integrated in the template. I will propose a PR modifying the template, but it asks the bigger question of maybe forking the default latex template to integrate the changes these guys make along the way.

antoine-lizee avatar Sep 16 '15 21:09 antoine-lizee

The current latex template in ReScience could certainly be improved. I removed a lot of if/then/else statements mostly because I was discovering the pandoc tool and I may have break future compatibility.

What do you mean exactly by forking the latex template ? If you have a long-term solution in mind, that would be great.

rougier avatar Sep 17 '15 05:09 rougier

The pandoc default templates repo could be forked to make the basis of the template we're working on. We modify it in the forms of branches for instances, and then integrate the changes they make along the way.

antoine-lizee avatar Sep 17 '15 15:09 antoine-lizee

But how do we link the ReScience-submission template to this branch then ?

rougier avatar Sep 17 '15 17:09 rougier

Not sure. We could use a submodule, or just have a different repo for the template itself, that we replace in the submission repo when it get changed.

antoine-lizee avatar Sep 17 '15 19:09 antoine-lizee

Fork it off the Pandoc templates repo under the ReScience account and then link that repo into the submission repo using git subtree?

ThomasA avatar Sep 17 '15 19:09 ThomasA

Yep, I'd go the route of a separate repo for the template alone - just not convinced about the submodule thing, which tends to break/be slightly complicated to maintain. Copy-paste-commit could be a good start.

antoine-lizee avatar Sep 17 '15 21:09 antoine-lizee

And we have also the rmarkdown alternative proposal. Maybe we should start some experiments in a dedicated repository.

rougier avatar Sep 18 '15 05:09 rougier

+1 A branch might be enough though? That's what I did in my fork.

antoine-lizee avatar Sep 18 '15 22:09 antoine-lizee

Where is the rmarkdown proposal? I looked but failed to find it.

eddelbuettel avatar Sep 18 '15 22:09 eddelbuettel

cf https://github.com/ReScience/ReScience/issues/16

antoine-lizee avatar Sep 18 '15 23:09 antoine-lizee