diff --git a/docs/config.typ b/docs/config.typ index 2046f8c..d3c3ed0 100644 --- a/docs/config.typ +++ b/docs/config.typ @@ -25,6 +25,7 @@ /// - height (float): TODO -> remove /// - full-page (bool): If true, the page will be resized to fit the diagram and take the background color /// - all-bit-i (bool): If true, all bit indices will be rendered, otherwise, only the ends of each range will be displayed +/// - ltr-bits (bool): If true, bits are placed with the LSB on the left instead of the right /// -> dictionary #let config( default-font-family: "Ubuntu Mono", @@ -51,7 +52,8 @@ width: 1200, height: 800, full-page: false, - all-bit-i: true + all-bit-i: true, + ltr-bits: false ) = {} /// Dark theme config diff --git a/gallery/example1.pdf b/gallery/example1.pdf index ca2330e..a7422f5 100644 Binary files a/gallery/example1.pdf and b/gallery/example1.pdf differ diff --git a/gallery/example2.pdf b/gallery/example2.pdf index 20678da..25e87fe 100644 Binary files a/gallery/example2.pdf and b/gallery/example2.pdf differ diff --git a/gallery/example3.pdf b/gallery/example3.pdf index d5156f4..349db38 100644 Binary files a/gallery/example3.pdf and b/gallery/example3.pdf differ diff --git a/gallery/example3.png b/gallery/example3.png index d2d70e8..6fd2e20 100644 Binary files a/gallery/example3.png and b/gallery/example3.png differ diff --git a/gallery/riscv/riscv.pdf b/gallery/riscv/riscv.pdf index ca9bca8..6716397 100644 Binary files a/gallery/riscv/riscv.pdf and b/gallery/riscv/riscv.pdf differ diff --git a/gallery/test.pdf b/gallery/test.pdf index aa076ba..b321250 100644 Binary files a/gallery/test.pdf and b/gallery/test.pdf differ diff --git a/manual.pdf b/manual.pdf index 8597825..b99f8db 100644 Binary files a/manual.pdf and b/manual.pdf differ diff --git a/manual.typ b/manual.typ index a97b449..5faedb7 100644 --- a/manual.typ +++ b/manual.typ @@ -1,6 +1,6 @@ -#import "@preview/tidy:0.4.1" -#import "@preview/codly:1.2.0": codly-init, codly -#import "@preview/codly-languages:0.1.7": codly-languages +#import "@preview/tidy:0.4.2" +#import "@preview/codly:1.3.0": codly-init, codly +#import "@preview/codly-languages:0.1.8": codly-languages #import "@preview/showybox:2.0.4": showybox #import "src/lib.typ" #import "src/schema.typ" @@ -126,7 +126,7 @@ It can also optionnaly contain a "colors" dictionary. More details about this in A structure has a given number of bits and one or multiple ranges. Each range of bits can have a name, a description and / or values with special meaning (see #link()[Range]). A range's structure can also depend on another range's value (see #link()[Dependencies]). -The range name (or key) defines the left- and rightmost bits (e.g. `7-4` goes from bit 7 down to bit 4). Bits are displayed in big-endian, i.e. the leftmost bit has the highest value. +The range name (or key) defines the left- and rightmost bits (e.g. `7-4` goes from bit 7 down to bit 4). The order in which you write the range is not important, meaning `7-4` is equivalent to `4-7`. Bits are displayed in big-endian, i.e. the leftmost bit has the highest value, except if you enable the `ltr-bits` #doc-ref("config.config") option. ```json "main": {