« first day (2671 days earlier)      last day (2256 days later) » 

12:02 AM
@JosephWright What do you think about \bool_case:nTF? Something like
  \bool_case:nF
   {
    { \int_compare_p:n { \l_tmpa_int < 9 } } { -1 }
    { \int_compare_p:n { 9 <= \l_tmpa_int < 13 } } { 0 }
    { \int_compare_p:n { 13 <= \l_tmpa_int < 16 } } { 1 }
   }
   { 2 }
 }
At the first hit, the recursion stops.
 
cfr
12:55 AM
@DavidCarlisle Yes, well, that's because you're expert and I'm useless ;).
 
 
2 hours later…
2:53 AM
would anybody help me.
-2
Q: How to show algorithm in beamer slide?

alhelal I want to show above algorithm in slide. My MWE is here - \documentclass{beamer} \usetheme{Madrid} \usepackage{algpseudocode} %this code is from: https://tex.stackexchange.com/a/353165/101651 \algnewcommand\algorithmicinput{\textbf{Input:}} \algnewcommand\algorithmicoutput{\textbf{Output:}} ...

 
 
2 hours later…
5:09 AM
@alhelal Nobody can answer your question, because it was closed as too broad. You should edit it and ask a more specific problem (only one per question).
 
 
1 hour later…
6:29 AM
@LoopSpace Ah
@LoopSpace The way pgf returns values is as you've found one of the things I'm not so keen on. With an expandable approach it makes much more sense to simply generate the co-ordinate. That also avoids a global variable approach to something 'hidden'.
@LoopSpace I'll add something to the dev version today, probably just for the basic operations
 
7:07 AM
@DavidCarlisle You got TeX sources on tape when you were a lad? How modern! I thought clay tablets were the medium of information exchange in those days.
 
7:43 AM
@HaraldHanche-Olsen you are confusing me with @egreg. I'm not that old.
 
8:06 AM
@LoopSpace github.com/latex3/latex3/commit/…;: I'm not 100% sure yet about the naming or whether these 'low level' functions should require the co-ordinates separated out. For the present I've stayed consistent with the 'higher level'.
 
8:47 AM
Morning all
 
@JosephWright probably not for @WillRobertson:-)
 
@DavidCarlisle :)
@DavidCarlisle Feature requests already coming in for l3draw :)
 
9:04 AM
My talk was accepted. :)
 
@PauloCereda fixed committee obviously.
@JosephWright I could show you how to park them in gnats.
 
@DavidCarlisle oi
 
@HaraldHanche-Olsen Have you ever tried carving stones?
 
9:29 AM
@egreg No, but I hear Italians are good at it.
 
@DavidCarlisle: surely you will love my abstract: tug.org/tug2018/abstracts/cereda.txt
 
10:29 AM
@PauloCereda you forgot the important bit "version 4 is finally implemented in emacs lisp to provide a more modern and convenient environment than relying on quirks of the jvm)"
 
@PauloCereda speaking of programming languages..
 
@DavidCarlisle WOW
@DavidCarlisle That's it, you are going to make the Lua speech in TUG 2018.
The authors will be there, I am sure they will be pleased. :)
 
11:14 AM
@PauloCereda Seen on comp.lang.lisp years and years ago: “Lisssp! Lotss and lotss of sstupid parentheseses! We hates it!”
 
@PauloCereda @HaraldHanche-Olsen markmail.org/message/hnnabyoxpe6td5yd
 
11:49 AM
@HaraldHanche-Olsen If Scarlett Johansson says that to me (reference to her voice for Kaa in Jungle Book), I wouldn't mind at all!
@DavidCarlisle Oh no
 
@PauloCereda Well, the implied voice is Gollum's, no?
 
@HaraldHanche-Olsen oh
 
 
1 hour later…
1:07 PM
@JosephWright @DavidCarlisle — I told you `build init` could be a useful thing :)
https://tex.stackexchange.com/questions/416592/how-to-create-a-boilerplate-dtx-file-for-a-package-using-latex3-similar-to-dtxg
 
@WillRobertson :)
@WillRobertson I'm happy to go for a 'binary': we just have to agree and make the change
 
1:23 PM
@WillRobertson You don't think people should learn to love the excitement of a new empty emacs buffer into which they can start typing?
5
 
@JosephWright Sure but no rush — I’m swamped right now and you’re having more fun with drawing :-)
 
2:04 PM
@WillRobertson WHY NO SEE YOUR NAME IN TUG THINGY
Please register. <3
@WillRobertson I am tempted to stop my thesis writing and write a lot of things, but then it's bad for me. :)
Then @DavidCarlisle mentions that an empty emacs buffer has more text than my thesis.
 
user image
2
@PauloCereda one of your emacs sessions....
 
@DavidCarlisle it's accurate oi
I like the vim touch. :)
@DavidCarlisle: where's malta? :)
 
@PauloCereda it died
 
@DavidCarlisle oh no
 
@PauloCereda actually dying laptops is a good plan unfortunate as it means you jump the queue to get a new one
 
2:17 PM
@DavidCarlisle ^^ stupid patronizing emacs session
@DavidCarlisle ooh malta 2.0
 
@PauloCereda seems legit for a typical Cambridge tutorial session
 
@DavidCarlisle LOL
 
yo'
2:38 PM
btw, any news about TUG18 bursary?
 
@yo' I will poke the committee right away!
 
yo'
And I wonder how to organize some room-sharing to cut the expenses... Because R$351 is about €90, which is quite a lot for me...
 
3:00 PM
@yo' it's a lot for me too.
@yo' I heard that are hotels nearby that are cheaper, but I don't know much about Rio...
 
yo'
3:18 PM
@PauloCereda there seem to be an apartment @ 3km walk from there for about half the price, for up to 4 people; however, no breakfasts
 
@yo' hm
Food is not a problem, we ducks are good at finding them. :)
 
yo'
nothing quite fancy though. There is a cheap and fancy place, but without free cancellation, which sucks
in general, nothing that would really interest me, so I think I'll simply look for someone to share room with me
 
@yo' poke. :)
I mean, GTalk poke. :)
 
3:46 PM
What happens when 3in of rain meets 1 ft of snow.
 
yo'
@AlanMunn ouch!
 
@AlanMunn could you ask/say that using units?
 
@AlanMunn -- well, no more good skating ponds, i guess.
@Skillmon -- 7.6 cm of rain on top of .3 m of snow.
 
@Skillmon 8cm of liquid precipitation meets 30cm of solid precipitation
5
 
@AlanMunn Thank you very much :)
 
3:52 PM
@Skillmon Canadians use a mixture of units, some metric, some Imperial. All in one happy mess. :)
@Skillmon It's just like our spelling.
 
@AlanMunn Could you say me how many cubic inch are in one gallon?
 
@Skillmon :) Lucky for the quick edit. But gallons contain quarts/pints/oz not inches (cubic or not).
@Skillmon Our units are strongly typed.
 
@AlanMunn but how many would it be? And how many oz are in one gallon?
 
Some unit trivia: acre = furlong · chain.
 
@AlanMunn I mean, we were all stupid once, but while the majority evolved into using reasonable units, some of us stay with those retarded units...
 
3:57 PM
@Skillmon There are 160 oz in an Imperial gallon. = 277.419 cu in.
@Skillmon And there are 128 US oz in an US gallon. = 231 cu in.
 
@AlanMunn did you know that or look it up?
 
@Skillmon The oz ones I know, the cu in I looked up.
@Skillmon Although since I live in the US, I'm now more familiar with the US values than the Imperial ones actually. And in Canada we use litres and mL for liquid measures more I think. And C not F, and km not miles....
But ft and in more than metres for human sized measurements.
 
@AlanMunn good to know. I thought Canadians use the Imperial system only.
 
@Skillmon No, the country is officially metric, and most things are metric, but there's still a lot of Imperial used informally.
@Skillmon Also, because of the proximity and huge amount of trade with the US, there's a lot of familiarity with non-metric units.
 
@AlanMunn one does learn something new every day.
 
4:04 PM
@Skillmon The same is true for the UK, actually, but it's a lot less metric I think, in practice.
 
@AlanMunn didn't encounter that during my stays on the islands. Only Imperial.
 
@Skillmon Certainly the UK uses C not F. But I guess it hasn't made the switch for e.g. speed limits and road signs (whereas those are completely metric in Canada).
 
@AlanMunn Never took a look for the temperature. Street signs and stuff were all Imperial. Volumes of beer as well :)
 
@AlanMunn @Skillmon If they tried to serve beer in half litre glasses I think there would be a revolution.
 
4:21 PM
Ducks are safe!
 
4:32 PM
6
A: How to insert mathcal symbol in lstlisting environment in beamer?

Phelype OleinikThe problem is that it is a verbatim environment, so everything is verbatim. To make it not verbatim you have to use the option escapeinside: \lstset{escapeinside={@(}{)@}} so that any code between @(...)@ is escaped back to LaTeX. Best practice is to use more than one character for escaping ...

Did I understand it correctly?
 
 
1 hour later…
6:02 PM
@Skillmon we have a brilliant system. Schools have only taught the metric system (for about 50 years) and people only use the imperial units in practice, so no one understands anything or could answer any questions about how many x are in a y
@PauloCereda until they are cooked
 
@DavidCarlisle now I'm hungry.
@DavidCarlisle then why is it impossible to get 0.5 l of beer in a pub?
 
@PhelypeOleinik I think so but I suspect @CarLaTeX's answer of not using listings at all might be better.
 
@DavidCarlisle He was talking about the the font. He wanted the font of u_1 to be the same.
 
@Skillmon it is illegal to sell most things in imperial units but beer and milk get a special exception. Milk comes in litres if you buy it in a shop but in pints if the milkman brings bottles to your door:-) Petrol for example is sold in litres but all cars show the fuel tank in gallons and fuel consumption in miles per gallon. It all makes as much sense as brexit
 
@DavidCarlisle I agree U_U
 
6:23 PM
@DavidCarlisle This is much crazier than Canada by a long shot. Of course we buy our milk in 3x 1 L bags. (But apparently you buy it in 2pt bags converted to litres...) goo.gl/rPnBGw
 
@AlanMunn Not for much longer ...
@AlanMunn Speak for yourself: at home we still get milk delivered, so it's accurate in pints :)
@AlanMunn Bags? Plastic bottles surely?
 
@JosephWright Oh really, so along with the return of the blue passports will also come the full return of the imperial system?
 
@AlanMunn I'm not about to make any predictions
 
@JosephWright Nope. Bags. With a reusable holder that you keep in the fridge, which holds one bag and has a handle.
 
@AlanMunn My mum has contacts online who really did think we'd leave the day after the vote ...
 
6:26 PM
@JosephWright Sad, but unfortunately too believable. And the sun will return to never setting I suppose, too.
@DavidCarlisle @JosephWright Actually it's sold in 3 x 1.33333 L bags (so 4L = ~7 pints). I thought they were just a litre. Very sensible. :)
 
@DavidCarlisle @PhelypeOleinik The OP also asked this: tex.stackexchange.com/questions/416471/… afterwards...
 
@CarLaTeX I bet you a pizza that the OP will soon enter the chatroom and ask the same thing here.
 
@CarLaTeX oh it will happen again. :)
 
@PauloCereda It's very likely :):):)
 
6:41 PM
@CarLaTeX I wouldn't take any pizza bets from @PauloCereda. If you think pineapple pizza is bad, Brazil has some truly monstrous pizza creations, some of which our friendly duck here is on record as liking.
 
@AlanMunn aw <3
@AlanMunn: Nutella pizza is good.
 
@PauloCereda I rest my case. :)
 
Chocolate pizza is good.
@AlanMunn Give your slice, then! :D
@AlanMunn: will you pass a picanha pizza? :)
 
@PauloCereda What about fejoada pizza? I'm sure someone's done it.
 
@AlanMunn one for TUG 2018. :)
@AlanMunn: I know "feijoada" ice cream. A friend of mine sells it. Will try to take photos for you...
 
6:43 PM
@PauloCereda Yikes.
 
@AlanMunn It's not really feijoada, but the components look like it.
It's sweet.
 
@AlanMunn I know! @PauloCereda: Nutella pizza is not a pizza!!!
 
@CarLaTeX Strawberry pizza is good.
 
@PauloCereda OMG!!!!
 
yo'
@PauloCereda Oh nutella pizza with strawberries :-)
 
6:45 PM
@yo' YES
@CarLaTeX ^^ Tom knows it
 
@PauloCereda OMG! OMG! OMG!
 
@CarLaTeX <3
@AlanMunn: Pizza baiana is good.
 
@CarLaTeX See, and you think @DavidCarlisle and I are bad. :)
@PauloCereda Is pizza baiana the one the fails to be delivered? :)
 
@AlanMunn I don't even know the names of things I eat, let alone the history and how to make the food herectic. :)
 
@AlanMunn You're right! And he also is half Italian!
 
6:48 PM
@AlanMunn No, that might be pizza câmara dos deputados. Only promises!
 
yo'
@PauloCereda but it seems that in @CarLaTeX 's eyes you know how to make food heretic :) (oh wait, was it a typo from you?...)
 
@yo' ooh a typo sorry
Oh no I cannot fix it
 
yo'
@PauloCereda ok, that means I got lost in myself :-)
 
@PauloCereda @CarLaTeX youtu.be/NhX-u9hWlko?t=1m15s
 
@CarLaTeX: I think I should add a pizza warning in my GuIT post. :)
@AlanMunn Oh no Jimmy Carr noooo
:)
 
6:54 PM
@PauloCereda You only need to explain that pizza in portuguese is only spelt "pizza" but pronounced "Throatwobbler Mangrove" and is something completly different.
 
@UlrikeFischer ooh :D
@AlanMunn: it's like the explanation on American beer done by Canadians. :)
MP joke, but we cannot tell it here. :)
 
@PauloCereda If you tell something about your pizza tastes in Italy, they'll revoke your second citizenship
 
@CarLaTeX ooh cannot wait for GuITmeeting next year! :)
 
@PauloCereda Not a fan? But this show is great, because of Sean Lock and (usually) Jon Richardson, here replaced by Lee Mack who I also like.
 
@AlanMunn Oh I like Sean, Jon and Lee, they are fantastic (specially Sean)! I just think Carr has a bit of a darker humour (he often crosses the line).
 
7:04 PM
@PauloCereda Yeah, he's a bit of an a-hole for sure.
@PauloCereda It's always a very mean spirited humour.
 
@AlanMunn I also like Johnny Vegas, Rob Brydon, Rich Hall, Ronni Ancona, David Mitchell...
Oh and Bill Bailey!
@AlanMunn it depends of the show, of couse. In QI, he's more well-behaved.
 
@PauloCereda Johnny Vegas, really? I can't stand him. I don't know Rich Hall. But I also like Sara Pascoe and Sarah Millican.
 
@AlanMunn I think Vegas has ups and downs, but I like him (when he's not drunk, which is very rare, sadly). Rich Hall is American, he has some sort of caustic humour. Sarah Millican is amazing!
@AlanMunn: I love this bit from Rich Hall: youtube.com/watch?v=vSz-Y8aRQt0
The man is richer than gravity, ladies and gentlemen.
@AlanMunn: ooh I forgot Sue Perkins!
 
@CarLaTeX I saw... But I opted to ignore it because he too ignored what I said him in the comments...
 
7:53 PM
@PhelypeOleinik right :):):)
 
 
1 hour later…
9:09 PM
@JosephWright I'm not sure which commit you're referring to as the link doesn't work. Is it the transformation shortcuts? That looks great. Were you thinking that I'd put a \draw_transform_reset: before feeding the coordinates from hobby back into the draw commands? Is the transformation local to the current group? How do the draw commands and the current group interact?
@PauloCereda I went to school with David Mitchell ...
 
@LoopSpace Did you know him socially, or just that you were there at the same time? (Hi, btw)
 
@LoopSpace Currently, the transformation matrix is local: I should document that ...
 
@AlanMunn He was in the year above me, but I used to get a lift home from school with him.
@JosephWright Ah, that one. Yes, that looks great.
 
@LoopSpace I think the Hobby algorithm would be good to have in the core (as @WillRobertson says)
@LoopSpace I'll mail you about that ^^^
 
9:15 PM
@JosephWright That probably means my code will need severe cleaning ...
 
@LoopSpace Not asking you to do it ;)
@LoopSpace I have a plan: I'll explain by email
(In a minute: writing abstracts for TUG2018)
 
@JosephWright Ah, but you know what it's like with code. It's like children - you're never prepared to let go of it.
 
@JosephWright you broke my code ;-(. The first time that I used key names with spaces and now key with space .code:n={blub} no longer works`. But the good thing is that nobody complained yet so I can correct it silently ;-).
 
@LoopSpace Sure
@UlrikeFischer Yeah, sorry about that: was more-or-less imposed by external requirements (blame @WillRobertson!)
@LoopSpace That's where Frank et al. went wrong when they asked me to join the team: I'm good at rewriting other people's code ;)
 
@JosephWright Meanwhile, I'm still thinking that \hobby_lthree_ is a horrible prefix. Any suggestions for a better one?
 
9:22 PM
@LoopSpace \hobby_draw perhaps?
 
@JosephWright Looks good to me.
@JosephWright Can I put a more complicated argument specification in a key? I'm looking at how the parts of hobby pass points back and forth, and I use keys to go between pgf and l3, but that seems overkill to go between l3 and l3draw. But could I do something where I pass something like 2,3 to a key and it sets two fps? Or would I have to pass it on to a separate command?
@JosephWright BTW, I'm not sure which email is currently registered with StackExchange. Use the one that has my SE "name" in it.
 
@LoopSpace Arbitrary parsing is possible using .code:n ... if a move to the core does come off, I guess I'd expect this to be done slightly differently (at the pure code level, keys are not the usual way)
@LoopSpace I was going to check the .dtx for hobby (I can only look them up here for StackExchange-related tasks)
 
9:37 PM
@JosephWright Just checked ... it's correct in there.
 
@LoopSpace Phew
 
@JosephWright Yes, I can imagine. I decided to use key-value as a way to pass information between PGF and L3, but within L3 it does seem wrong.
@JosephWright But if I remove the keys from l3draw <-> hobby, then I think it's still right for pgf <-> hobby, so I need to lift the key part up a level and provide a non-key-based interface. At the moment, I specify coordinates as x = ..., y = ... which is all set up for passing to a key parser, but I want change that to just a pair of numbers. But sometimes I'll need to pass that through a key parser.
 
 
2 hours later…
11:35 PM
@DavidCarlisle You can do better than suggesting to load float. ;-)
 
@egreg LOL
 
@egreg i just did:-)
 
@DavidCarlisle There are two documents in your answer there .-.
 
@PhelypeOleinik depends how you define "document" :-) everything after the first end{document} is a comment:)
 
@DavidCarlisle Indeed :P
 
11:52 PM
@egreg you could have mentioned that someone has kindly fixed the latex format sources so the issue should go even without the packages being updated.
 
@DavidCarlisle Let's blame Leslie
 
@egreg I blame that bloke who implemented \csname
 

« first day (2671 days earlier)      last day (2256 days later) »