Comments (12)
Oh I think this is a glitch coming from the pandoc
LaTeX generation and the packages it expects to render code blocks. Let me look but I think we need to add a package in the preamble.
from catala.
I remember trying to quickly work around it some time ago without success, but I don't have your skillz with LaTeX ;)
from catala.
From https://pandoc.org/MANUAL.html :
When using LaTeX, the following packages need to be available (they are included with all recent versions of TeX Live): amsfonts, amsmath, lm, unicode-math, iftex, listings (if the --listings option is used), fancyvrb, longtable, booktabs, graphicx (if the document contains images), hyperref, xcolor, soul, geometry (with the geometry variable set), setspace (with linestretch), and babel (with lang). If CJKmainfont is set, xeCJK is needed. The use of xelatex or lualatex as the PDF engine requires fontspec. lualatex uses selnolig. xelatex uses bidi (with the dir variable set). If the mathspec variable is set, xelatex will use mathspec instead of unicode-math. The upquote and microtype packages are used if available, and csquotes will be used for typography if the csquotes variable or metadata field is set to a true value. The natbib, biblatex, bibtex, and biber packages can optionally be used for citation rendering. The following packages will be used to improve output quality if present, but pandoc does not require them to be present: upquote (for straight quotes in verbatim environments), microtype (for better spacing adjustments), parskip (for better inter-paragraph spaces), xurl (for better line breaks in URLs), bookmark (for better PDF bookmarks), and footnotehyper or footnote (to allow footnotes in tables).
from catala.
Adding the relevant packages mentionned above here : https://github.com/CatalaLang/catala/blob/master/compiler/literate/latex.ml#L64 should do the trick
from catala.
@AltGr this package provides the shaded
environment : https://www.ctan.org/pkg/framed
from catala.
Related Issues (20)
- Module support (tracking issue) HOT 2
- clerk should collect tests in included files HOT 1
- CI is taking a huge amount of time... apparently because of npm ?? HOT 2
- broken link in the documentation HOT 2
- Remove and clean catala_legifrance
- Catala features (documentation/landing) HOT 2
- The first example in README.md appears wrong HOT 1
- Dcalc interpreter is very slow HOT 1
- Test and monitor performance regressions HOT 2
- Move examples out of the repo (professionalize once 1.0 is out) HOT 4
- Add a construct to distribute a total over of collection of coefficients HOT 12
- Renaming "collection" as "list"
- Build(assets): need to run 2 times the `website-assets` makefile command HOT 1
- Add support for output subscopes HOT 1
- Some cases of the interpreter may be simplifiable
- Test needed: date rounding specs through module calls
- Syntax question: deconstructing tuples HOT 1
- UserFacing printer forgets minus sign for decimals in (-1, 0)
- UserFacing printer forgets minus sign for money in (-1, 0)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from catala.