Comments (8)
If it's easy to fix, then I want to do it myself (with a hint at the problem place).
from typst.
This is working as intended. Fields are only present if explicitly set, so that they can still be affected by set rules otherwise. It's the same for all other elements. In a show rule, the field will also be populated since the style context is known by then.
from typst.
Maybe we can have a hint for this specific case (the field normally exists but was omitted by the constructor, so it's not yet known)?
from typst.
Sure
from typst.
In a show rule, the field will also be populated since the style context is known by then.
I don't know what you mean, since this is not true:
from typst.
elem
doesn't seem to be the subject of the show rule in that case (Laurenz was referring specifically to the case where the raw
comes from it
in #show raw: it => ...
instead of from #let myraw = raw(...)
).
from typst.
Maybe we can have a hint for this specific case (the field normally exists but was omitted by the constructor, so it's not yet known)?
Maybe something like field {} in content is not set at this point
?
from typst.
Laurenz was referring specifically to the case where the
raw
comes fromit
in#show raw: it => ...
.
Mmm, yeah, I have a general document show rule instead.
from typst.
Related Issues (20)
- Label elements only if they are referenced HOT 6
- `text.stylistic-set` should take an array of values
- pdf support as a vector graphic format (like LaTeX) HOT 1
- Missing "note" Field in Bibliography Entries Description HOT 1
- `#show bibliography: set heading(level: 2)` does not change the heading level of the bibliography
- Fractionally sized space used in `layout` pushes out footnote to the next page
- Gradient offset on stroke when relative to parent
- Enable more wrapping options for `grid`
- Stroke causes artifacts with REM font HOT 6
- text in svg with embedded fonts rendered as raster image HOT 2
- Stepping a `(0,)` counter at a deep level also steps previous levels HOT 2
- Better error message for circular dependencies on import/include
- Add a breakable option to the `v` and `h` spacing functions HOT 1
- Wrong equation numbering position if page width is set to auto HOT 4
- Single equal sign on a line is not parsed the same as equal sign directly followed by comment
- `show figure: fig => fig.body` doesn't work anymore HOT 3
- Keys and string values in JSON listings are not highlighted differently
- Allow to query the language set for a raw block HOT 3
- Page references for citations should be auto-formatted according to CSL
- SVGs rendered incorrectly, placements, scaling, and markers HOT 2
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 typst.