Louis Gesbert
647ab22c04
Literate output: adjust catala-metadata margins
...
to make sure that 80 characters fit in the line
2024-06-26 12:09:15 +02:00
Louis Gesbert
98fc97a241
Rewriting message calls to use the new intf
2024-04-10 19:26:23 +02:00
Louis Gesbert
4cec981f62
Move global options of Cli to their own module
...
This resolves a dependency cycle that would forbid `Cli` from using the modue
`File`, which was annoying.
2024-03-19 15:18:35 +01:00
Louis Gesbert
26c28bbd35
Fix line overflow message, and line offset errors
2024-03-08 17:36:00 +01:00
Louis Gesbert
4ee4992b54
Tweak multi-module LaTeX output
2024-02-16 16:36:15 +01:00
Louis Gesbert
f09edf443e
Fix typo
2024-02-16 16:12:35 +01:00
Louis Gesbert
18ec4b3dd3
LaTeX backend: fix module name escaping
2024-02-15 20:54:14 +01:00
Louis Gesbert
eb4ba114d2
Add test for literate LaTeX output
2024-02-15 14:53:26 +01:00
Louis Gesbert
a2d82d01f5
pandoc: disable highlight of custom fenced blocks for now
2024-02-15 13:54:44 +01:00
Louis Gesbert
23287ef817
Literate output: add info about modules
2024-02-15 13:54:44 +01:00
Denis Merigoux
628cbc4fec
Fix #543
2023-12-06 16:58:38 +01:00
Louis Gesbert
9aed2c7479
support for parsing Module directives
2023-09-27 13:08:11 +02:00
Denis Merigoux
38782fa546
Correct fix
2023-09-22 18:02:44 +02:00
Denis Merigoux
5eba0b6562
Trying
2023-09-21 13:57:54 +02:00
Denis Merigoux
7971cb7651
Break lines in code Latex output
2023-09-21 13:30:30 +02:00
Louis Gesbert
4910158aea
Reformat
2023-09-01 16:24:27 +02:00
Denis Merigoux
385e19b9e1
Formatting
2023-06-15 10:51:31 +02:00
Aminata-Dev
10d147a8b1
Messages renamed to Message (lighter syntax)
2023-06-13 11:50:56 +02:00
Louis Gesbert
16c93fbb0c
Reformat
2023-06-08 12:14:11 +02:00
Louis Gesbert
deaf40761e
Use ocolor instead of ANSITerminal
2023-06-08 12:11:55 +02:00
Denis Merigoux
79801292e9
Fix most doc errors
2023-06-02 17:17:45 +02:00
Denis Merigoux
4e6efe08da
All renamings done, on with actual refactor
2023-06-02 10:50:33 +02:00
Denis Merigoux
0faa97b8fc
Abstract messages interface
2023-06-02 10:50:29 +02:00
Denis Merigoux
94999dcc25
Correctly generate latex, nowrap option not working anymore?
2023-05-30 12:03:50 +02:00
Louis Gesbert
fc531777c0
Rework and normalise the Marked
interface
...
The module is renamed to `Mark`, and functions renamed to avoid redundancy:
`Marked.mark` is now `Mark.add`
`Marked.unmark` is now `Mark.remove`
`Marked.map_under_mark` is now simply `Mark.map`
etc.
`Marked.same_mark_as` is replaced by `Mark.copy`, but with the arguments
swapped (which seemed more convenient throughout)
Since a type `Mark.t` would indicate a mark, and to avoid confusion, the type
`Marked.t` is renamed to `Mark.ed` as a shorthand for `Mark.marked` ; this part
can easily be removed if that's too much quirkiness.
2023-05-17 17:37:00 +02:00
Denis Merigoux
3122dd7821
Update assets
2023-03-21 16:10:00 +01:00
Denis Merigoux
1a7982d225
Better printing
2023-03-21 11:24:19 +01:00
Louis Gesbert
abc5a00c2f
Compile LaTeX code using minted without the Python venv
...
This is a hack, but not a dirty one: a new command `catala pygmentize` is added,
which is just a wrapper around `pygmentize` that calls it with the proper lexers
defined.
The point is that this needs no installation, just a stock `pygmentize`
installation and the `catala` binary.
2023-03-14 17:35:22 +01:00
Louis Gesbert
f1e44619e0
LaTeX literate output: handle pygments coloration from within Catala
...
This leverages the embedded lexer already used for HTML output, and uses the
LaTeX pygments backend to colorise code directly, without the need for `minted`.
2023-03-13 22:33:48 +01:00
Louis Gesbert
5282aec400
LaTeX output: start refactor
2023-03-13 14:44:34 +01:00
Louis Gesbert
508992de33
Embed the Pygments Catala lexer
...
This enables the HTML output to work without a custom Pygments installation (or
the proper venv activated)
2023-03-13 14:41:24 +01:00
Louis Gesbert
e1fe37ad09
Fix coloration in HTML output
2023-03-09 15:46:00 +01:00
Denis Merigoux
f4c92530c6
Update aides_logement and fix bugs to produce an updated working simulator ( #377 )
2023-01-13 12:05:32 +01:00
Louis Gesbert
41eb25e9e0
Fix code in LaTeX literate output
...
pfffff
2023-01-10 12:06:48 +01:00
Denis Merigoux
c31ebdf3f8
Add tabularx as a latex dependency
2023-01-10 10:49:03 +01:00
Denis Merigoux
d2ce111fc2
Better legifrance inclusion
2023-01-04 16:30:14 +01:00
Louis Gesbert
e3b98b4f50
Literate: more explicit dune dependency
2023-01-04 12:18:46 +01:00
Louis Gesbert
af2f5dbe19
Tweak error message location printing
2022-11-28 16:38:09 +01:00
Louis Gesbert
9fc4c0c10c
Define Catala_utils.String as an overlay to stdlib string
2022-11-28 16:38:09 +01:00
Louis Gesbert
660e5775de
Rename utils to catala_utils
2022-11-28 16:38:09 +01:00
Denis Merigoux
d7b9396e87
Correct lines
2022-11-24 15:17:00 +01:00
Denis Merigoux
1c3d5b9a75
Fix all lines too long problems & update assets
2022-08-29 15:46:06 +02:00
Denis Merigoux
e41e0f9dcc
Fix line length and display lines of code
2022-08-26 12:05:22 +02:00
Denis Merigoux
2c40802c57
Fix again line numbers in HTML
2022-08-16 11:46:20 +02:00
Denis Merigoux
c6e448a9b7
Correctly escape character in HTML weaving
2022-08-12 09:51:43 +02:00
Denis Merigoux
da06bedaca
Fix HTML line numbers
2022-08-11 16:15:52 +02:00
Denis Merigoux
3a3c08ba7c
Fix LegiFrance link generation
2022-08-10 10:52:46 +02:00
Denis Merigoux
228b6c830a
Fix line numbers in LaTeX and HTML with leading comments in code
2022-08-10 10:45:49 +02:00
Denis Merigoux
d03d82a0e7
Correctly count columns
2022-08-08 17:25:08 +02:00
Emile Rolley
f30dc376fd
doc(compiler): add information about the html generation logic + complete the doc of the Utils module
2022-08-05 19:03:59 +02:00