2 hours later…
10:13 AM
@Canageek well it wasn't hidden so didn't take much finding:-)

10:30 AM
My husband forces me to remind the world that it is Saint Crispin's Day today vimeo.com/295353434. He also challenges everybody to refrain from joking about „crispy“ creatures. He considers this bad taste.
2

@UlrikeFischer ooh a celebration

@UlrikeFischer from there to brexit in two easy steps :(

@DavidCarlisle Nope! Agincourt was part of England‘s quest to remain (and keep) part of Europe.

@UlrikeFischer that's an optimistic way of looking at it:-)

10:44 AM
@DavidCarlisle I have an historian in the family ...

@DavidCarlisle quack <3

@PauloCereda breakfast

@DavidCarlisle oh no

2 hours later…
1:00 PM
@PauloCereda Did you see his 10 cursed inventions? I actually like the phone scrolling tool.
@PauloCereda Really useful to autoscroll an "endless" feed, to unhide lots of texts for later reading. (that's what I often do right before a flight, so I have stuff to read when offline in flight mode)

1:27 PM
@StefanKottwitz ooh

1:57 PM
@PauloCereda quora feeds are entertaining easy reading stuff

2:19 PM
@PauloCereda -- Wow! The post office would probably reject those nowadays, since the automatic sorting machines couldn't handle them.

@barbarabeeton Indeed!

2:31 PM
@UlrikeFischer -- I thought I recognized "Hank Cinq". Interesting to compare Sir Kenneth with Sir Laurence. (The opening of the Olivier flick was magnificent!)

2:42 PM
@PauloCereda Did you play Among Us?

@barbarabeeton When we did the video last year (with the help of Sam Carter and Paulo C) my husband did indeed waver between Sir Laurence‘s rendering of the speech and Kenneth Brannagh‘s.

@StefanKottwitz no, but I watch some gameplays and probably want to try it sometime.

@StefanKottwitz LOL
@StefanKottwitz very nice!

@PauloCereda ctan.org/pkg/tikz-among-us , from the manual

2:46 PM
@StefanKottwitz cool

@ pgfmath

Why does pgfmath has a FOREACH, but not a WHILEDO?

@cis Probably because TeX loops are simple enough for while but for each with all the little features of pgffor is not that trivial to do with plain TeX. But I cannot guess the original intentions…

@StefanKottwitz finally a new good LaTeX package!

@Skillmon And it comes from Brazil!
2

There is a TikZ-impostor Among us. Background After learning about some amazing TikZ packages such as tikzducks, tikzpeople and tikzsymbols, which I let some examples below, I harvested some inspiration to starting learning skills in order to be able to create my own set of flexible TikZ drawing...

@TeXnician Aha... so I do not know how to create a Collatz ( \pgfmathsetmacro\NewC{mod(\C,2)==0 ? \C/2 : 3*\C+1} )

3:02 PM
@cis Well, what are you trying to do? Looping over \C?
\newcount\C
\C=10

\loop
\unless\ifnum \C=0
\repeat
should probably give you a starter (untested and in the hope I remember TeX syntax well enough).

@TeXnician Yes, I do not know how long I should lopp. Normally the loop has to stop, if the result is 1 (or 4 if you want).
\documentclass[border=2mm, varwidth]{standalone}
\usepackage{tikz}
\begin{document}
Test:
\def\N{24}
\def\C{\N}
\pgfmathsetmacro\Cp{\C-1}
\foreach[count=\No] \n in {\N,...,3}{
\pgfmathsetmacro\newC{mod(\C,2)==0 ? \C/2 : 3*\C+1}
\xdef\C{\newC}
% Try
% \ifnum\newC>1 \C \fi  % He does not do that!!! :(
% Output:
\n, \No:~ \C  \\
}
\end{document}
But {\N,...,3} is because I do not know the length. I do not know, whether this is correct. I do not think so.

@cis Well, then you should simply test for the result being 1 as the final condition. But your approach with a fixed length seems a bit strange for this problem (you wouldn't use a for loop on a range if you implemented this in another programming language, would you). Ah and \ifnum compares numbers not the floating point results of \pgfmathsetmacro so your comment about somebody not doing something looks a bit odd as well.

@cis are you sure that will always stop :-)

3:21 PM
@DavidCarlisle I do not care about. Because pgfmath makes at best small examples, for an article or similar. Maybe for the starting number = 123, and then it's over anyway.

@JosephWright I noticed (after a conversation with @UlrikeFischer about use of primitives in code), that expl3 is missing an interface to use \scantokens so that \verb will work in the rescaned contents.

3:36 PM
@Skillmon hi mr. rabbit

@PauloCereda Hi, Mr. Duck!

@Skillmon <3

@PauloCereda nom nom /I love carrots

@Skillmon ooh carrots

Interesting side effect of the clock change: every message was posted 1 hour ago -)

3:45 PM
@Skillmon
2

@StefanKottwitz Is that a TeX beginners guide catered for rabbits?

@Skillmon It's for luring rabbits into TeX.

What time is it now in Europe?

@PauloCereda Which part of Europe?

3:49 PM
@TeXnician ooh this sounds complicated :)
Germany. :)

@PauloCereda Well, 4:50 pm…
@PauloCereda Technically, this is Europe as well ;)

I have a wristwatch with the German time. I refuse to change that time because it has to remind me that I will go someday to Germany and eat chocolate.
@TeXnician oh it's +4, no more +5.
This is too complicated.

@cis the fixed point calculations of pgfmath aren't really helping:
\documentclass{article}
\def\gobblefour#1#2#3#4{}
\def\C#1{%
\number\numexpr#1\relax
\ifnum#1>1, \else\expandafter\gobblefour\fi
\expandafter\C\expandafter{\the\numexpr\ifodd\numexpr#1\relax3*(#1)+1\else #1/2\fi\relax}}
\begin{document}

\C{4}

\C{5}

\C{123}

\end{document}

@PauloCereda In terms of time, it's winter from today on :D

@PauloCereda 15:51 in the important bits. (that are back on the one true timezone)

3:53 PM
@DavidCarlisle ooh pre-Brexit time?
@TeXnician ooh is there snow?
@DavidCarlisle wait, is UK +4?! Well, now +3?!
/quacks in despair
Timezone woes

@PauloCereda Depends on the height you are climbing to ;)

@PauloCereda don't worry it will soon be dinner time

@PauloCereda nice that you ask -- now I know why my clock is out of sync, my laptop hasn't switched the time and is one hour later ;-)

@TeXnician ooh a Berg
@DavidCarlisle oh no
@UlrikeFischer oh no :)

@UlrikeFischer didn't you configure a time server?

3:58 PM
@Skillmon yes, but some reason it only works if I trigger it manually (and then it wants my admin password).

@UlrikeFischer strange, but if it works... :)

@PauloCereda Yep, we've had time shift in Europe. Causes troubles at work, as US is a week later -- due to Halloween.

@yo' oh my

@Skillmon Yeah, one of the reasons Pablo and I used it in that scontents package he wrote. \tl_rescan:nn doesn't cope with catcode changes.

@PhelypeOleinik same reason I'm still using it in ducksay.

4:14 PM
@DavidCarlisle Ahh, that's intersting!

@DavidCarlisle if one use e.g. \"u in the preamble section of an .ins file, it errors if one use latex to unpack. Do you know if this is new? Try e.g.
\input docstrip

\preamble
(c) J\"urgen
\endpreamble

I finally got kvoptions working so now my package properly handles options at load time and has a setup command. The latter is restricted to working with \AtBeginDocument{...}.
The power of \NewDocumentCommand and e type arguments means far fewer commands need to be defined.
I'm a bit concerned about having such a mixture of \NewDocumentCommand and \newcommand in one package.
Oh, and one letter macros are gone! I hope @UlrikeFischer is proud! :)

4:31 PM
@UlrikeFischer yes I think that came up when we did the utf8 default, you can use rawinputencode or not use accents or ... (docstrip probably ought to guard against that though)

@DavidCarlisle Rolf asked about it, one of his ins failed because of this, he will change it to ü etc.

@UlrikeFischer oh even with \" that seems wrong.

4:52 PM
@LaTeXereXeTaL why does it only work with \AtBeginDocument? This seems to reduce versatility, does that mean I couldn't change a simple formatting locally in my document?

@Skillmon I wish I knew the answer to that! I posted a question about it day before yesterday. In this case the option is one better given at load time, but in all the documentation I read (pretty much every package by Heiko that uses kvoptions) I didn't see anything explicitly about using it throughout the document.
@Skillmon I want to figure out how to do that though for learning's sake.

@DavidCarlisle But the problem is, I do not understand this 'gooblefour'

@LaTeXereXeTaL You could use: \let\mytestlvert\lvert\let\mytestrvert\rvert, define the \magvec macro as \newcommand{\magvec}[1]{\left\mytestlvert#1\right\mytestrvert} instead of checking the boolean in the package code, and set the key to not be a boolean key, but instead to do \let\mytestlvert\lVert\let\mytestrvert\rVert if doublemagbars=true is used and \let\mytestlvert\lvert\let\mytestrvert\rvert if doublemagbars=false is used (I have not much experience with kvoptions [...]
@LaTeXereXeTaL [...] so I don't know the optimal approach with it to define such a key -- I'd know in pgfkeys, l3keys, or expkv-def).

@Skillmon I want to learn l3keys too.

\keys_define:nn { test-pkg }
{
doublemagbars .choice:
,doublemagbars / true .code:n =
\cs_set_eq:NN \__testpkg_lvert: \lVert
\cs_set_eq:NN \__testpkg_rvert: \rVert
,doublemagbars / false .code:n =
\cs_set_eq:NN \__testpkg_lvert: \lvert
\cs_set_eq:NN \__testpkg_rvert: \rvert
}
@LaTeXereXeTaL I'd use something like this^^^ in l3keys for this key.

5:08 PM
@Skillmon Let me study that...

@LaTeXereXeTaL With the \magvec macro defined as:
\NewDocumentCommand \magvec { m }
{
\left \__testpkg_lvert: #1 \right \__testpkg_rvert:
}
or similar.
@LaTeXereXeTaL you could also add a default value for doublemagbars, such that the user doesn't have to specify true if he intends to use true with \keys_define:nn { test-pkg } { doublemagbars .default:n = true }.

5:56 PM
@DavidCarlisle the problem is that \cf@encoding is empty, perhaps docstrip should define it as OT1?

6:13 PM
@cis it is just defined on the first line, takes four arguments and discards them all (to stop the loop)

@Skillmon Very elegant!

@UlrikeFischer can't do any harm, can it?

6:40 PM
@DavidCarlisle And why 4 arguments?

7:00 PM
@DavidCarlisle Anyway. I would like to know how to do this with pgfmath. I think the pgf syntax is easier to understand; I can then expand these more easily in order to tackle the actual problems.

1 hour later…
8:01 PM
@cis there are 4 groups to do the next iteration \expandafter, \C, \expandafter and {\the\numexpr\ifodd\numexpr#1\relax3*(#1)+1\else #1/2\fi\relax} and you need to eat them to stop the loop.
@cis pgfmath is really the wrong thing it is supporting decimal numbers so its integer range is much less.

@DavidCarlisle I don't think so, probably even latex could (pre)define it instead of setting it to empty.

@UlrikeFischer team list?

@DavidCarlisle I saw you used the sword to cut mylatex out ;-)
@DavidCarlisle or simply an issue?

@UlrikeFischer not yet (only at ctan, left git as it was for now)

@DavidCarlisle small cut with a scalpell?