« first day (5223 days earlier)      last day (4 days later) » 

cfr
cfr
06:41
@JasperHabicht it does.
@Rmano works for me. I used the -o option because I wasn't sure what it would do. but the output looks fine. (so far as I can tell - I don't know what it is meant to contain. but it has font tables and things and no obvious control chars or anything.)
question: I understand that a page has to be shipped out for anything to get logged, but why are the settings active at shipout applied to the whole page when this doesn't seem true of other things, unless they are inherently page-ish?
 
2 hours later…
08:35
@cfr like most pdf thingks (links etc) tags are not really interleaved within the text as they are in html, they are a separate tree of annotations that work per-page and overlay and reference the content stream
08:52
@cfr which settings do you mean?
@UlrikeFischer yes I wondered that as well:-)
 
1 hour later…
10:20
@cfr texdef at ctan.org/incoming You got a response from Martin? Oh yes I see the PR merged.
2
@DavidCarlisle Oooh
@JosephWright have you got a fixed collcell to hand? maybe it's a good time to make a PR :-)
@DavidCarlisle I have the code, yes
10:35
@DavidCarlisle I'll sort one at lunch time
 
1 hour later…
 
3 hours later…
cfr
cfr
15:11
@UlrikeFischer something which changes how much is written to the log file. if \showX is active for part of a page, it doesn't seem to do anything unless it is still active at shipout?
@DavidCarlisle :-)
I was wondering. Is there a good way to define _case_compare stacks? With an interface like
\int_case_compare:nn {input}
{
{<}{2}{less than two}
{=}{2}{equal to two}
{>}{2}{more than two}
}
In my case I need it for decimal numbers, but that could not matter. It was just to avoid a large nested if then tree to setup some setting if an average is less than, 2, some other if less than 3 etc.
Naw, forget it will just use nested ifs
@daleif There was a feature discussion that would've provided that, but it got rejected, iirc.
@daleif this comes up from time to time, e.g. github.com/latex3/latex3/issues/1589#issuecomment-2332718240
@daleif can you run tests with memoir with a current dev?
@UlrikeFischer you were faster than me in posting the ticket link (just had it and then you already posted it :))
@daleif you could also use \bool_case:nnF { { \int_compare_p:nNn { input } < 2 } { less than two } { \int_compare_p:nNn { input } = 2 } { equal to two } } { more than two }
cfr
cfr
15:36
@DavidCarlisle though it is not actually there?
16:38
@UlrikeFischer I'll add it to my todo list. I don't have any pretest installations at the moment or are you referring to the official dev?
@Skillmon that might look nicer. And since it is generation tikz images it is slow already
16:58
@daleif yes, the official one. We will release one this week and it would be good if it is really tested (the previous one broke memoir as textcase no longer worked and nobody complained ...).
 
1 hour later…
cfr
cfr
18:02
@DavidCarlisle ah, yes. good! no announcement, I guess. thanks.
the version has also been bumped.
18:18
Does the code in \AtBeginEnvironment take effect inside the environment or just before it?
@AlanMunn legacy name for \AddToHook{env/foo/begin} so inside, you can use \newcommand\BeforeBeginEnvironment[2][.]{\AddToHook{env/#2/before}[#1]} for before. But I would use \AddToHook not the legacy package names
@JosephWright Would it be reasonable to provide a way to refer to the position of a point in another draw environment in the l3draw package? Or do you think that this would be out-of-scope? I wonder: doesn't the package via its backend save positions on the page anyways? But maybe I am wrong in this regard.
@cfr they wait a day for mirrors to catch up before sending announcements
18:43
@DavidCarlisle Thanks. I didn't get the memo. :) Can I nest \AddToHook, i.e. make a local change within an environment inside an environment?
Here's an example which behaves unexpectedly (to me at least):
\documentclass{article}
\newcounter{mytot}
\newcounter{mytotal}
\usepackage{etoolbox}
\newenvironment{mylist}
{\begin{enumerate}
\pretocmd{\item}{\stepcounter{mytotal}}{}{}}
{\end{enumerate}}
\AddToHook{env/mylist/begin}{
\AddToHook{env/enumerate/begin}{\pretocmd{\item}{\stepcounter{mytot}}{}{\fail}}
}

\begin{document}
\themytot
\begin{mylist}
\item Foo
\item Bar
\end{mylist}
\themytot

\begin{enumerate}
\item Foo
\item Bar
\end{enumerate}
\themytot

\begin{mylist}
\item Foo
\item Bar
\end{mylist}
cfr
cfr
@DavidCarlisle ah. I didn't realise that. ta.
@AlanMunn aren't hooks always global? \hook_gput_code:nnn? so you need to remove the code, too, or use a reverse hook? (but I don't understand reverse hooks.)
@cfr That's my suspicion given this code, although even at that I'm unclear why the count is 8 and not 6 of the one in the hook code.
19:01
@JasperHabicht Isn't that more at the TikZ-like level? l3draw is basically a re-implementation of pgf but with various things tightened up, and using l3fp for calculations
@JosephWright Yes, maybe it is ... I'm just wondering. At least it would be interesting to provide an L3 interface for saving a position on the page, but maybe again this is too high-level ... I am unsure
@JasperHabicht Position-on-page is handled outside of l3draw - it's a more general thing
@JosephWright But is there an L3 interface for this?
@JasperHabicht See ltproperties
% \begin{variable}{xpos,ypos}
%   (shipout)  This stores the $x$~and $y$ coordinates of a point previously
%   stored with \cs{pdfsavepos}/\cs{savepos}.
%   E.g.~(if bidi is used it can be necessary to save the position
%   before and after the label):
%   \begin{verbatim}
%     \tex_savepos:D
%     \property_record:nn{myposition}{xpos,ypos}
%     \tex_savepos:D
%   \end{verbatim}
% \end{variable}
% \end{documentation}
(There is an open issue about the savepos business)
@JosephWright Ah, interesting!
Yeah, well then it should probably not be a part of l3draw
Thanks!
Hm, I have the feeling that the manual is missing an example =D But, okay, I think I roughly get it
Cool, I did not know that such thing exists
20:13
Oh, another easybook
(sorry, but changes were actually there and an episode of AllTheDiff would've taken some time, and my wife wants me to join her in the kitchen, so just a quick "it's there" must suffice today)
Actual changes in easybook - wow!
20:33
@DavidCarlisle Oh, perl
@mickep all the best code is written in perl
20:46
@DavidCarlisle Oh, well :)
21:42
@DavidCarlisle indentfirst is also valid Perl?
@Skillmon quite possibly, most strings are.
@DavidCarlisle :*
22:27
user image
4
22:40
@CarLaTeX you are missing a 4 before the comma:-)
23:20
@DavidCarlisle Or a comma after the 4
cfr
cfr
23:55
@AlanMunn you are prepending the code each time you start an enumerate:
\documentclass{article}
\newcounter{mytot}
\newcounter{mytotal}
\usepackage{etoolbox}
\newenvironment{mylist}
{\begin{enumerate}
  \pretocmd{\item}{\stepcounter{mytotal}}{}{}}
{\end{enumerate}}
\AddToHook{env/mylist/begin}{
  \AddToHook{env/enumerate/begin}{\pretocmd{\item}{\stepcounter{mytot}}{}{\fail}}
}

\begin{document}
\themytot
\begin{mylist}    % adds code to start of enumerate; starts enumerate; code executed
  \item Foo       % mytot -> 1
  \item Bar       % mytot -> 2
\end{mylist}
\themytot
@AlanMunn you never remove the code, so it just accumulates.
-> The generic hook 'env/enumerate/begin':
> Code chunks:
>     ---
> Document-level (top-level) code (executed last):
>     -> \pretocmd {\item }{\stepcounter {mytot}}{}{\fail }\pretocmd {\item }{\
stepcounter {mytot}}{}{\fail }
> Extra code for next invocation:
>     ---
> Rules:
>     ---
> Execution order:
>     ---.
<recently read> }

l.36 \ShowHook{env/enumerate/begin}

?
@AlanMunn ^^ add right before \end{document}.

« first day (5223 days earlier)      last day (4 days later) »