Commit Graph

367 Commits

Author SHA1 Message Date
Laurenz 6ab7760822 Split up `model` module 2023-03-01 16:33:28 +01:00
Laurenz ab841188e3 Bump `ecow` 2023-03-01 11:27:10 +01:00
Laurenz aa8a5bf42f Documentation fixes 2023-02-26 23:07:50 +01:00
Laurenz 7597b99789 New default style 2023-02-25 20:04:30 +01:00
Laurenz 87991b81d6 Better font autocompletion 2023-02-24 16:03:58 +01:00
Laurenz 448844d66c Allow multiple authors 2023-02-24 14:09:38 +01:00
Laurenz affb353453 Merge main back 2023-02-23 14:38:45 +01:00
Laurenz 457ce95436 More EcoVec usage
Frame unfortunately can't use it because splice is missing.
2023-02-23 14:36:40 +01:00
Laurenz a1d47695a2 Switch to ecow 2023-02-23 12:20:47 +01:00
Laurenz 6e65ebf236 Panic function 2023-02-19 21:08:01 +01:00
Laurenz 1e681b35c7 Fix typos 2023-02-18 20:18:15 +01:00
Laurenz 028632a3a1 Fix error handling after hashtag 2023-02-17 16:32:48 +01:00
Laurenz 67b4540397 Dissolve utility category 2023-02-16 14:43:38 +01:00
Laurenz f60d344621 Fix tutorial previews 2023-02-15 23:32:13 +01:00
Laurenz 942fa6636d Fix raw block highlighting 2023-02-15 09:52:08 +01:00
Laurenz b9c0fd87d3 Fix grid sizing 2023-02-14 12:34:16 +01:00
Laurenz cc9b52ddd4 Better table lines 2023-02-14 12:08:05 +01:00
Laurenz 17e9805b34 Let `eval` take code instead of markup 2023-02-13 17:45:08 +01:00
Laurenz 5233b1c50a Better examples for spacing functions 2023-02-13 17:25:36 +01:00
Laurenz 28b5c55cd5 Configurable markers for nested lists 2023-02-13 17:15:20 +01:00
Laurenz 05c8c6045c Configurable numbering for nested enums 2023-02-13 16:54:05 +01:00
Laurenz b1b4e52af9 Block sizing 2023-02-13 16:04:25 +01:00
Laurenz 72b60dfde7 Fill and stroke properties for containers 2023-02-13 12:18:34 +01:00
Laurenz db49b628f7 Remove dumb `field` functions 2023-02-13 11:00:11 +01:00
Laurenz dca478182b Update changelog 2023-02-12 23:12:22 +01:00
Laurenz a8f2e85f96 Add delimiter setting for `cases` 2023-02-12 22:43:37 +01:00
Laurenz 10b17a04bc Fix docs 2023-02-12 22:39:20 +01:00
Laurenz fd90736fb6 Support fractional width for `box` 2023-02-12 22:04:27 +01:00
Laurenz d99359dede Add `baseline` argument to `box` 2023-02-12 21:14:21 +01:00
Laurenz d689d706ea Vertically center non-math content in math by default 2023-02-12 21:14:12 +01:00
Laurenz e70fbf5372 Support `auto` as sizing for box 2023-02-12 21:00:23 +01:00
Laurenz b6ee82c7e8 Remove block around outline 2023-02-12 20:31:13 +01:00
Laurenz 78072c99eb Add `tg` and `ctg` operators 2023-02-12 20:28:17 +01:00
Laurenz 3ffa7393f0 Make all nodes block-level 2023-02-12 19:57:28 +01:00
Laurenz f4856c18b9 Remove base width 2023-02-12 17:28:17 +01:00
Laurenz 697ae1f925 Extract regions into separate module 2023-02-12 16:40:00 +01:00
Laurenz ebbee6274c Fix square base 2023-02-12 16:38:18 +01:00
Laurenz 6260878245 Let line have an extent 2023-02-12 15:01:40 +01:00
Laurenz 2b26e08128 Fix set document bug 2023-02-12 13:23:48 +01:00
Laurenz 8cbc2ac483 Fix place base 2023-02-12 13:23:40 +01:00
Laurenz fea238921f Fast path for gutter-less grid 2023-02-12 13:04:46 +01:00
Laurenz 01a62a690b Make grid RTL aware 2023-02-12 12:57:40 +01:00
Laurenz 8951b1923a Skip grid region if one cell is empty 2023-02-12 12:57:35 +01:00
Laurenz e873468ea7 Change grid base for auto columns 2023-02-12 11:38:42 +01:00
Laurenz ebe919220d Fix flow bugs 2023-02-11 13:30:55 +01:00
Laurenz 924a27bc37 Move `Fragment` into library 2023-02-09 14:11:00 +01:00
Laurenz 1d5bf56e58 Remove basics section 2023-02-07 12:10:52 +01:00
Laurenz a0674990d3 Don't hyphenate link 2023-02-07 12:01:31 +01:00
Laurenz ef44c3848a Add missing `.op` modifiers 2023-02-06 17:55:06 +01:00
Laurenz 7d28e6499e Set Typst versions to `0.0.0` 2023-02-06 11:53:49 +01:00
Laurenz ea8edfa821 Make Rust happier about the inline documentation 2023-02-06 11:52:09 +01:00
Laurenz 93138e2d4b Fix font switch in math 2023-02-03 17:47:05 +01:00
Laurenz fd7b629f67 Keep font directly in `GlyphFragment` 2023-02-03 17:46:30 +01:00
Laurenz 15bc932ec1 Rename infinity symbol 2023-02-02 22:34:53 +01:00
Laurenz 255044e04e Ignore accent when positioning superscript 2023-02-02 21:21:04 +01:00
Laurenz 3f85d005bb Fix root index placement again 2023-02-02 19:50:14 +01:00
Laurenz 10675cd6d5 Merge text and math symbols 2023-02-02 19:50:06 +01:00
Laurenz e9ff2d6463 More robust automatic math spacing 2023-02-02 16:47:10 +01:00
Laurenz e6400861ab Matrix baseline alignment 2023-02-02 14:40:34 +01:00
Laurenz 5f5c659279 Math tests 2023-02-02 14:13:56 +01:00
Laurenz 21dd99926a Allow arbitrary math directly in content 2023-02-02 14:13:05 +01:00
Laurenz aa0f03fe04 Treat italics correction differently 2023-02-01 15:43:23 +01:00
Laurenz 8377159e21 Fix root index placement 2023-02-01 15:04:20 +01:00
Laurenz 6ca6f43703 Fix sub- and superscript ascent/descent 2023-02-01 14:57:52 +01:00
Laurenz 137d2ab317 Always apply math italics corrections 2023-02-01 13:32:46 +01:00
Laurenz 2315b5d3cc Math char style exceptions 2023-02-01 13:32:29 +01:00
Laurenz afa344f33d Fix raw show rule 2023-02-01 13:32:05 +01:00
Laurenz c2bd114914 Symbol improvements 2023-01-31 13:00:20 +01:00
Laurenz 69985e59bc Make lowercase greek italic 2023-01-31 02:05:53 +01:00
Laurenz 60ef41cef4 Fix calc doc comments 2023-01-31 00:20:53 +01:00
Laurenz 0ef1b02ee0 Add calc constants 2023-01-30 21:29:03 +01:00
Laurenz 53844b5a87 Simplify `calc` functions 2023-01-30 21:19:01 +01:00
Martin Haug 0287b98ef3 Add calc module 2023-01-30 21:04:34 +01:00
Laurenz 1ea0a93325 User-defined symbols 2023-01-30 19:45:10 +01:00
Laurenz 3a4c5ae4b9 Highlighting and docs fixes 2023-01-30 18:29:09 +01:00
Laurenz 1d86f41831 Remove more blocks 2023-01-29 23:41:54 +01:00
Martin Haug c3b3bbb9f2 Update remaining examples 2023-01-29 23:26:31 +01:00
Laurenz 196d9594fb Math documentation improvements 2023-01-29 23:15:00 +01:00
Laurenz d9d2c021d6 Fix inline math bounding box 2023-01-29 20:44:33 +01:00
Laurenz 9d715fd11c Respect alignment in math formulas 2023-01-29 19:42:30 +01:00
Laurenz f7458f9533 Matrices 2023-01-29 19:11:44 +01:00
Laurenz e4e888b9ce Fix `lr` with already matched body 2023-01-29 17:53:25 +01:00
Laurenz 17f8939f86 Fix math alignment points 2023-01-29 17:44:58 +01:00
Laurenz 60dfe8f893 Fix math styling 2023-01-29 17:44:50 +01:00
Martin Haug 8fbfa594e0 Update docs so that the reference builds again 2023-01-29 12:43:44 +01:00
Laurenz 76048a8ef4 Overline, Underline, Overbracket, Underbracket 2023-01-28 23:15:03 +01:00
Laurenz 2d56e3c5e2 Fix typos 2023-01-28 16:56:28 +01:00
Laurenz 4809e685a2 More capable math calls 2023-01-28 15:36:32 +01:00
Laurenz 28c554ec21 Rework math attachments and accents 2023-01-28 12:14:03 +01:00
Laurenz 23238d4d44 Assertions with custom message 2023-01-27 19:53:04 +01:00
Laurenz 33013af37a Error message when font doesn't support math 2023-01-27 19:27:32 +01:00
Laurenz 2e039cb052 Fix math spacing bugs 2023-01-27 15:32:05 +01:00
Laurenz 9d962c5c40 More `track_caller` annotations 2023-01-27 12:16:54 +01:00
Laurenz 43ef60c09c Tracing-based expression tooltips 2023-01-27 12:05:12 +01:00
Laurenz 1de53730bc Symbol values and modules 2023-01-27 12:04:36 +01:00
Laurenz 13efa128c8 Macro for math operators 2023-01-27 11:57:00 +01:00
Laurenz a8fd64f928 Hashtags everywhere! 2023-01-27 11:54:30 +01:00
Laurenz 33585d9a3f Small fixes 2023-01-27 11:38:04 +01:00
Laurenz 4653ffebb4 Math module 2023-01-23 15:23:52 +01:00
Laurenz 7e295d84b5 Math delimiter grouping 2023-01-22 13:32:58 +01:00
Laurenz 953bdc1859 Vector and case layout 2023-01-22 13:32:44 +01:00
Laurenz a0146b5b9b Math operator functions 2023-01-22 13:32:32 +01:00
Laurenz c5ef350cce Under- and overbraces 2023-01-22 13:31:44 +01:00
Laurenz bcf20610fc Math accent handling 2023-01-22 13:31:28 +01:00
Laurenz 2c48c8d7a1 Multi-line alignment with `&` 2023-01-22 13:31:16 +01:00
Laurenz 203d5779f8 Fraction layout 2023-01-22 13:30:59 +01:00
Laurenz 57a636b370 Math styles 2023-01-22 13:30:45 +01:00
Laurenz 13cc16b3cc Class-based math spacing 2023-01-22 13:30:20 +01:00
Laurenz cfca115804 Math sub-, superscript and limit layout 2023-01-22 13:29:55 +01:00
Laurenz f7b3b30ca1 Math root layout 2023-01-22 13:28:24 +01:00
Laurenz ea378e89b4 Better math atoms 2023-01-22 13:27:49 +01:00
Laurenz a50cb58823 Glyph stretching 2023-01-22 13:27:20 +01:00
Laurenz 83b6858146 Math framework 2023-01-22 13:26:42 +01:00
Laurenz 760936af49 Remove ReX 2023-01-22 13:19:48 +01:00
Laurenz 79d851cd0b Fix fr handling for horizontal auto page 2023-01-22 13:18:58 +01:00
Laurenz 815ee3254c Formatting fixes 2023-01-22 13:18:30 +01:00
Laurenz eabbbf7eae Name handling for New Computer Modern Math 2023-01-22 13:16:03 +01:00
Laurenz e460da1ce7 Split up math library 2023-01-03 12:40:14 +01:00
Laurenz 40561e57fb Remove most fields from `SyntaxKind` enum 2023-01-15 12:40:27 +01:00
Laurenz 29b31c4a5a New import syntax 2023-01-03 12:32:17 +01:00
Laurenz 7c683db367 Merge `MarkupNode` and `MathNode` into `Expr` 2022-12-31 09:52:14 +01:00
Laurenz a6d90c1bf1 Numbering functions 2022-12-30 20:00:50 +01:00
Martin Haug a12bc3a797 Correct plain text docs 2022-12-29 19:00:28 +01:00
Martin Haug 4119e46a6e Change read display name, update symmie 2022-12-29 18:46:05 +01:00
Martin Haug bc535f7b71 `read` function 2022-12-29 11:49:01 +01:00
Laurenz 94b90761eb Bugfixes 2022-12-27 16:07:26 +01:00
Laurenz e362dc67c4 Typo fix 2022-12-26 12:00:21 +01:00
Laurenz 046cd4f5c7 Fix autocomplete 2022-12-25 17:20:12 +01:00
Laurenz fdf5f864fa Fix broken links 2022-12-23 02:11:05 +01:00
Laurenz 1a9bcaccec Fix typos 2022-12-23 00:34:17 +01:00
Laurenz fd787317a8 Hide margin auto setting 2022-12-22 21:11:27 +01:00
Laurenz c9dcf8fd83 Expand math syntax section 2022-12-22 19:13:38 +01:00
Laurenz 8527517258 Rename `desc` to `terms` 2022-12-22 18:25:29 +01:00
Martin Haug 947522b71a Symbol table 2022-12-22 01:33:09 +01:00
Laurenz c06d45002a Document individual directions 2022-12-22 00:52:42 +01:00
Laurenz 990224c0f8 Annotate return values 2022-12-22 00:34:03 +01:00
Laurenz 4c92ab4ace Rename the `create` category to `construct` 2022-12-21 23:51:15 +01:00
Laurenz 038f9b015e Document `line` function 2022-12-21 16:32:14 +01:00
Laurenz 31f904a2c4 Split up and document shapes 2022-12-21 16:19:46 +01:00
Martin Haug 4af7b9118c Image docs 2022-12-21 15:34:29 +01:00
Martin Haug be83b3d687 Table alignment and docs 2022-12-21 14:24:22 +01:00
Martin Haug c06be66990 Finish the layout docs 2022-12-21 13:16:59 +01:00
Laurenz ba294e2670 Split up list type into three separate types and document them 2022-12-21 12:50:33 +01:00
Martin Haug 959df6da3b Page function docs and more 2022-12-21 12:01:28 +01:00
Laurenz 633d0b62c3 Document math category 2022-12-21 01:35:37 +01:00
Laurenz dd718bb60b Link directly to parameters 2022-12-21 00:31:50 +01:00
Laurenz ee732468c7 Document text category 2022-12-21 00:26:20 +01:00
Martin Haug 15cd273c82 Document spacing and breaks 2022-12-20 23:39:27 +01:00
Martin Haug 554a0c966a Some layout documentation 2022-12-20 23:05:45 +01:00
Martin Haug 5e19991b6c Document Utility funcs, some layout funcs 2022-12-20 18:31:47 +01:00
Laurenz 38a0404050 Document underline, strikethrough, and overline 2022-12-20 18:20:19 +01:00
Laurenz 08daade59f Document text sub- and superscripts 2022-12-20 17:14:46 +01:00
Laurenz 13807ce020 Document foundations 2022-12-20 16:33:01 +01:00
Laurenz f5f7df7247 Documentation 2022-12-20 16:11:37 +01:00
Martin Haug b8ffd3ad3d Document meta and data loading categories 2022-12-20 15:55:15 +01:00
Laurenz b4b022940b Syntax and example sections 2022-12-19 01:16:35 +01:00
Laurenz 35b16e545b Document parameters in comment 2022-12-17 16:24:29 +01:00
Laurenz b6202b646a Reflection for castables 2022-12-15 23:11:20 +01:00
Laurenz 9ba4d2c134 New macro setup 2022-12-14 10:09:44 +01:00
Laurenz 4c73456fc1 Move highlighting into new IDE module 2022-12-14 10:02:19 +01:00
Laurenz c38d55614a A few math fixes 2022-12-09 21:22:23 +01:00
Laurenz cd089b6194 Align set rule 2022-12-09 10:21:11 +01:00
Laurenz 495b525694 Naming consistency 2022-12-08 19:46:06 +01:00
Laurenz e6857f810e Copyable regions 2022-12-08 19:03:23 +01:00
Laurenz 11c7ceb29e Extend math library 2022-12-07 14:01:20 +01:00
Laurenz 5a0053c729 Vectors and cases 2022-12-07 11:30:17 +01:00
Laurenz 3ecb0c754b More math syntax 2022-12-06 12:37:08 +01:00
Laurenz c2e458a133 Symbol notation 2022-12-05 12:25:37 +01:00
Laurenz 1d324235bd Make show rule fallible again 2022-12-05 12:21:10 +01:00
Laurenz 1bb05677fa Small improvements 2022-12-05 10:59:00 +01:00
Laurenz f57ce86431 Heading numbering and outline 2022-12-02 15:53:01 +01:00
Laurenz 56923ee472 Multi-part numbering patterns 2022-12-02 15:47:25 +01:00
Laurenz 9bc90c371f Introspection 2022-12-02 15:45:18 +01:00
Laurenz 5110a41de1 Introduce virtual typesetter 2022-12-02 13:21:36 +01:00
Laurenz bdf06c9c61 Fix auto column shrinking behaviour 2022-11-30 14:49:55 +01:00
Laurenz 579dac3c91 Strong delta 2022-11-29 14:57:05 +01:00
Laurenz 0efe669278 Reorganize library and tests 2022-11-29 14:18:13 +01:00
Laurenz 836692e73c Widow and orphan prevention 2022-11-28 17:57:16 +01:00
Laurenz 989d170dc7 Fragments 2022-11-28 12:40:16 +01:00
Laurenz 7caf98fe42 Switch `StrResult` to `EcoString` 2022-11-27 01:00:57 +01:00
Laurenz 6bafc63910 Document metadata 2022-11-26 23:52:01 +01:00
Laurenz 0579fd4409 Reorganize library base 2022-11-26 17:13:31 +01:00
Laurenz 36490f7f7b Make text and space nodes unselectable 2022-11-26 15:09:03 +01:00
Laurenz 7af46fc025 Dynamic labels 2022-11-26 13:41:27 +01:00
Laurenz 3cdd8bfa40 Extract numbering pattern from list node 2022-11-26 12:51:15 +01:00
Laurenz bf5edbbbbb Tidy up 2022-11-25 12:16:13 +01:00
Laurenz 8d3c68a1de Protect Vm 2022-11-24 17:41:41 +01:00
Laurenz 5ae81971f2 Introduce `Library` 2022-11-23 16:07:54 +01:00
Laurenz b2a3d3f235 More general evaluation interface 2022-11-23 12:00:06 +01:00
Laurenz 65aa27014d Bring building a bit closer to realize 2022-11-23 10:13:26 +01:00
Laurenz c2749f7615 More sensible `LayoutRoot` 2022-11-22 21:09:20 +01:00
Laurenz 5992f11b4c Reorganize content type 2022-11-22 20:12:37 +01:00
Laurenz c28d2130dd Don't display functions 2022-11-21 17:11:40 +01:00
Laurenz 1d7e082d1d Labels 2022-11-21 16:12:24 +01:00
Laurenz fd7b9d9e1e Move destination property from text to link 2022-11-21 14:09:30 +01:00
Laurenz 36ea0b05c9 Refactor proc macros 2022-11-21 14:00:37 +01:00
Laurenz 72361106bc Add flag for model printing 2022-11-20 21:39:19 +01:00
Laurenz f69c3fb1e5 Refactor building 2022-11-20 20:44:59 +01:00
Laurenz 8eeb4ad8f6 Rename `margins` to `margin` 2022-11-19 23:33:33 +01:00
Laurenz 565b1977ae Rename `RawKind` to `RawFields` 2022-11-19 23:12:23 +01:00