2023-05-24 14:17:50 by pin | Files touched by this commit (6) |  |
Log message:
textproc/typst: update to 0.4.0
Footnotes
- Implemented support for footnotes
- The footnote function inserts a footnote
- The footnote.entry function can be used to customize the footnote listing
- The "chicago-notes" citation style is now available
Documentation
- Added a Guide for LaTeX users
- Now shows default values for optional arguments
- Added richer outlines in "On this Page"
- Added initial support for search keywords: "Table of Contents" will \
now find
the outline function. Suggestions for more keywords are welcome!
- Fixed issue with search result ranking
- Fixed many more small issues
Math
- Breaking change: Alignment points (&) in equations now alternate between
left and right alignment
- Added support for writing roots with Unicode: For example, $root(x+y)$ can
now also be written as $√(x+y)$
- Fixed uneven vertical attachment alignment
- Fixed spacing on decorated elements (e.g., spacing around a canceled
operator)
- Fixed styling for stretchable symbols
- Added tack.r.double, tack.l.double, dotless.i and dotless.j symbols
- Fixed show rules on symbols (e.g. {show sym.tack: set text(blue)})
- Fixed missing rename from ast.op to ast that should have been in the previous
release
Scripting
- Added function scopes: A function can now hold related definitions in its own
scope, similar to a module. The new assert.eq function, for instance, is part
of the assert function's scope. Note that function scopes are currently only
available for built-in functions.
- Added assert.eq and assert.ne functions for simpler equality and inequality
assertions with more helpful error messages
- Exposed list, enum, and term list items in their respective functions' scope
- The at methods on strings, arrays, dictionaries, and content now support
specifying a default value
- Added support for passing a function to replace that is called with each
match.
- Fixed replacement strings: They are now inserted completely verbatim instead
of supporting the previous (unintended) magic dollar syntax for capture
groups
- Fixed bug with trailing placeholders in destructuring patterns
- Fixed bug with underscore in parameter destructuring
- Fixed crash with nested patterns and when hovering over an invalid pattern
- Better error messages when casting to an integer or float fails
Text and Layout
- Implemented sophisticated CJK punctuation adjustment
- Disabled overhang for CJK punctuation
- Added basic translations for Traditional Chinese
- Fixed alignment of text inside raw blocks (centering a raw block, e.g.
through a figure, will now keep the text itself left-aligned)
- Added support for passing a array instead of a function to configure table
cell alignment and fill per column
- Fixed automatic figure kind detection
- Made alignment of enum numbers configurable, defaulting to end
- Figures can now be made breakable with a show-set rule for blocks in figure
- Initial fix for smart quotes in RTL languages
Export
- Fixed ligatures in PDF export: They are now copyable and searchable
- Exported PDFs now embed ICC profiles for images that have them
- Fixed export of strokes with zero thickness
Web app
- Projects can now contain folders
- Added upload by drag-and-drop into the file panel
- Files from the file panel can now be dragged into the editor to insert them
into a Typst file
- You can now copy-paste images and other files from your computer directly
into the editor
- Added a button to resend confirmation email
- Added an option to invert preview colors in dark mode
- Added tips to the loading screen and the Help menu. Feel free to propose
more!
- Added syntax highlighting for YAML files
- Allowed middle mouse button click on many buttons to navigate into a new tab
- Allowed more project names
- Fixed overridden Vim mode keybindings
- Fixed many bugs regarding file upload and more
Miscellaneous Improvements
- Improved performance of counters, state, and queries
- Improved incremental parsing for more efficient recompilations
- Added support for .yaml extension in addition to .yml for bibliographies
- The CLI now emits escape codes only if the output is a TTY
- For users of the typst crate: The Document is now Sync again and the World
doesn't have to be 'static anymore
|
2023-04-27 14:26:35 by Thomas Klausner | Files touched by this commit (4) |  |
Log message:
typst: update to 0.3.0.
Breaking changes:
Renamed a few symbols: What was previous dot.op is now just dot and the \
basic dot is dot.basic. The same applies to ast and tilde.
Renamed mod to rem to more accurately reflect the behaviour. It will remain \
available as mod until the next update as a grace period.
A lone underscore is not a valid identifier anymore, it can now only be used \
in patterns
Removed before and after arguments from query. This is now handled through \
flexible selectors combinator methods
Added support for attachments (sub-, superscripts) that precede the base \
symbol. The top and bottom arguments have been renamed to t and b.
New features
Added support for more complex strokes (configurable caps, joins, and dash \
patterns)
Added cancel function for equations
Added support for destructuring in argument lists and assignments
Added alt text argument to image function
Added toml function for loading data from a TOML file
Added zip, sum, and product methods for arrays
Added fact, perm, binom, gcd, lcm, atan2, quo, trunc, and fract calculation
Improvements
Text in SVGs now displays properly
Typst now generates a PDF heading outline
References now provides the referenced element as a field in show rules
Refined linebreak algorithm for better Chinese justification
Locations are now a valid kind of selector
Added a few symbols for algebra
Added Spanish smart quote support
Added selector function to turn a selector-like value into a selector on \
which combinator methods can be called
Improved some error messages
The outline and bibliography headings can now be styled with show-set rules
Operations on numbers now produce an error instead of overflowing
Bug fixes
Fixed wrong linebreak before punctuation that follows inline equations, \
citations, and other elements
Fixed a bug with argument sinks
Fixed strokes with thickness zero
Fixed hiding and show rules in math
Fixed alignment in matrices
Fixed some alignment bugs in equations
Fixed grid cell alignment
Fixed alignment of list marker and enum markers in presence of global \
alignment settings
Fixed path closing
Fixed compiler crash with figure references
A single trailing line breaks is now ignored in math, just like in text
Command line interface
Font path and compilation root can now be set with the environment variables \
TYPST_FONT_PATHS and TYPST_ROOT
The output of typst fonts now includes the embedded fonts
Development
Added instrumentation for debugging and optimization
Added --update flag and UPDATE_EXPECT environment variable to update \
reference images for tests
You can now run a specific subset with --subtest
Tests now run on multiple threads
|
2023-04-23 22:14:35 by Thomas Klausner | Files touched by this commit (3) |  |
Log message:
typst: update to 0.2.0.
Breaking changes:
Removed support for iterating over index and value in for loops. This is now \
handled via unpacking and enumerating. Same goes for the map() method.
Dictionaries now iterate in insertion order instead of alphabetical order.
New features
Added unpacking syntax for let bindings, which allows things like let (1, 2) \
= array
Added enumerate() method
Added path function for drawing Bézier paths
Added layout function to access the size of the surrounding page or container
Added key parameter to sorted() method
Command line interface
Fixed --open flag blocking the program
New Computer Modern font is now embedded into the binary
Shell completions and man pages can now be generated by setting the \
GEN_ARTIFACTS environment variable to a target directory and then building Typst
Miscellaneous improvements
Fixed page numbering in outline
Added basic i18n for a few more languages (AR, NB, CS, NN, PL, SL, ES, UA, VI)
Added a few numbering patterns (Ihora, Chinese)
Added sinc operator
Fixed bug where math could not be hidden with hide
Fixed sizing issues with box, block, and shapes
Fixed some translations
Fixed inversion of "R" in cal and frak styles
Fixed some styling issues in math
Fixed supplements of references to headings
Fixed syntax highlighting of identifiers in certain scenarios
Ratios can now be multiplied with more types and be converted to floats with \
the float function
|
2023-04-06 01:12:59 by Nikita | Files touched by this commit (7) |
Log message:
typst: Import textproc/typst as typst version 0.1.0
Typst is a new markup-based typsetting system that is designed to be as
powerful as LaTeX while being much easier to learn and use. Typst has:
Built-in markup for the most common formatting tasks
Flexible functions for everything else
A tightly integrated scripting system
Math typesetting, bibliography management, and more
Fast compile times thanks to incremental compilation
Friendly error messages in case something goes wrong
|