Comments (10)
The problem of broken PDF can be fixed by initializing two internal token variables (in l3backend-opacity.dtx
or as a workaround after backend driver is loaded).
\tl_set:Nn \l__opacity_backend_fill_tl { 1 }
\tl_set:Nn \l__opacity_backend_stroke_tl { 1 }
from latex3.
@josephwright Currently m3opacity001.tlg
is partially broken since a \DocumentMetadata{}
is missing in m3opacity001.lvt
.
latex3/l3experimental/l3opacity/testfiles/m3opacity001.tlg
Lines 17 to 19 in b492b56
Have a word about \DocumentMetadata{}
in l3opacity
's doc?
from latex3.
@muzimuzhi Was just working on something else, but I had a feeling where was a missing init step - you want to fix?
from latex3.
\tl_set:Nn \l__opacity_backend_fill_tl { 1 } \tl_set:Nn \l__opacity_backend_stroke_tl { 1 }
Nice, that indeed solves the problem of the broken PDF. But in MWE B the stroke is still not transparent, if I am not mistaken.
from latex3.
But in MWE B the stroke is still not transparent, if I am not mistaken.
No, some use case is still not working. I'm digging.
from latex3.
Looking back, I'm wondering why I use a tl
here - I'll probably change ;)
from latex3.
Ah ha, a typo:
--- a/l3backend/l3backend-opacity.dtx
+++ b/l3backend/l3backend-opacity.dtx
@@ -237,7 +237,7 @@
{ opacity.fill #1 }
{ << /ca ~ #1 >> }
\pdfmanagement_add:nnn { Page / Resources / ExtGState }
- { opacity.stroke #1 }
+ { opacity.stroke #2 }
{ << /CA ~ #2 >> }
%<*dvipdfmx|xetex>
\__kernel_backend_literal_pdf:n
from latex3.
@muzimuzhi You want to fix in a PR or should I just do it directly?
from latex3.
Looking back, I'm wondering why I use a
tl
here - I'll probably change ;)
Because str
functions are slower? (I didn't check l3color
.) Or perhaps you want to use fp
instead.
@muzimuzhi You want to fix in a PR or should I just do it directly?
Considering the possible re-typing, you can do it directly.
from latex3.
Looking back, I'm wondering why I use a
tl
here - I'll probably change ;)Because
str
functions are slower? (I didn't checkl3color
.) Or perhaps you want to usefp
instead.
Should really be an fp
, yes - but as we don't do maths, I see why I did it this way now. I'll fix shortly.
from latex3.
Related Issues (20)
- `l3backend`: `dvips` driver for `draw` does not properly handle scoped boxes/coffins HOT 8
- l3keys: properties `.cs_set...:N` in addition to `.cs_set...:Np` ones? HOT 3
- `\cctab_const:Nn` raises "Inconsistent local/global assignment" errors HOT 1
- `\prop_put_if_new:Nnn` vs `\prop_put_if_not_in:Nnn` HOT 2
- Symmetry/Consistency among fparray and intarray functions HOT 3
- \IfInstanceExistTF undefined with -dev formats HOT 2
- \iow_shell_open:Nn can't work
- Loading `expl3-generic.tex` in LuaMetaTeX fails with `expl3.lua:421: table index is nil` since TeX Live 2024 HOT 6
- l3pdf feature request: providing variants for pdf-object-related functions that expand their object name argument HOT 9
- visible spaces in l3sys-query results HOT 6
- Can't define a new fp function based on fact() HOT 1
- New iow function that respects `\showstream`
- support of CMYK colors in dvisvgm backend HOT 9
- peek_analysis_map_inline does not work for active space HOT 7
- char_generate:nn creates new text input level now? HOT 10
- (Not a bug) \tl_gset:Nx is no longer directly mapped to \xdef? HOT 5
- Inconsistent behavior for "c"-type ...item functions HOT 11
- peek_analysis_map_inline does not unwind input level for some reason HOT 1
- Tag 2024-05-08 not merged into main branch HOT 3
- l3backend-dvips.pro not found by kpsewhich despite being present HOT 4
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 latex3.