« first day (3273 days earlier)      last day (29 days later) » 

12:07 AM
Hello guys! I am wondering if there is a question that ask for how to enclose a part of a tikz diagram using a contoured rectangle. I have this MWE:



\node (1) at (0,0) {$1$};
\node (2) at (-1,1) {$2$};
\node (3) at (1,1) {$3$};
\node (4) at (-2,2) {$4$};
\node (5) at (-1,2) {$5$};
\node (6) at (1,2) {$6$};
\node (7) at (2,2) {$7$};
\node (8) at (-4,3) {$8$};
\node (9) at (-3,3) {$9$};
\node (10) at (-2,3) {$10$};
\node (11) at (-1,3) {$11$};
\node (12) at (1,3) {$12$};
\node (13) at (2,3) {$13$};
\node (14) at (3,3) {$14$};
\node (15) at (4,3) {$15$};
\node (a) at (-4,4) {$\vdots$};
I want this:
If someone knows a question regarding this please tag me and let me know. Thank you!
5 hours later…
4:59 AM
@manooooh With fit and some manual \draw tex.stackexchange.com/questions/230091/…
3 hours later…
7:56 AM
Jul 23 at 12:12, by David Carlisle
@PauloCereda dinner
@DavidCarlisle oh no
@DavidCarlisle morning. :)
8:15 AM
@Skillmon hi mr. rabbit!
Top of the morning!
@DavidCarlisle according to this serious research, @JosephWright is naughty twentytwowords.com/most-common-names-of-bad-kids
@HaraldHanche-Olsen oh no
9:14 AM
14 hours ago, by David Carlisle
I found out what happened to @marmot
@HaraldHanche-Olsen or in that case, not living dangerously, it seems.
@DavidCarlisle Oh. (I haven't managed to keep up with chat. Real life is just too … real.)
@HaraldHanche-Olsen actually it is not the first time that the same subject has come up more than once in chat:-)
@DavidCarlisle ah yes, the déjà vu principle
@PauloCereda Hi, Mr. Duck!
@Skillmon (")>/
9:29 AM
@PauloCereda /lucky rabbit sounds, because it saw ASCII-Art/
@Skillmon ducksay can help <3
@DavidCarlisle quack
9:45 AM
2 hours ago, by David Carlisle
Jul 23 at 12:12, by David Carlisle
@PauloCereda dinner
1 hour ago, by Paulo Cereda
@HaraldHanche-Olsen oh no
wait that's a wrong oh no
@DavidCarlisle duckpizza.com
@CarLaTeX I am... confused... Is that a duck with a surfboard? o.O
@PauloCereda @DavidCarlisle … and please note the address!
It is an actual US city
10:00 AM
@PauloCereda Yes, IT IS!
@CarLaTeX shame it could have been an actual pizza topping
@DavidCarlisle oh no
10:16 AM
12 mins ago, by Paulo Cereda
@DavidCarlisle oh no
@PauloCereda There are several towns of Kačerov in Czechia, and this name is also used for Duckburg from The Ducktales.
(actually a metro stop close to where I live is also Kačerov)
10:34 AM
user image
@PauloCereda ^^^
10:49 AM
Does someone know how to upload an image from the phone in the new mobile chat?
@CarLaTeX thank you Carla! I will read the link and try myself. I miss you 😭
And how to see starred comments and the history of last starred comments?
11:18 AM
@manooooh I'm very busy lately :'(
@DavidCarlisle I'm wondering why you didn't think of it before
@DavidCarlisle I'd like to use shellesc in imakeidx, but this doesn't really solve some problems. You should protect the quotes to be other characters:
@DavidCarlisle The reason is that polyglossia activates shorthand characters in the preamble and if shellesc is loaded after languages are set (bad programming, but users do whatever) the quotes would be active…
@DavidCarlisle The same might happen with babel if the shorthands are activated in the preamble (as it's possible to do).
@egreg hmm OK, I just looked, there are dozens of " should be OK to set the catcode to 12 at the start of the package and restore at the end?
@DavidCarlisle Probably the best solution.
@egreg naturally:-) OK I'll set that up..
@egreg the one in texlive hasn't so many " but the one on github has a lot more because of the logging strings which are all "-quoted.
11:44 AM
@egreg Use the expl3 version?
@JosephWright That's for imakeidx3 due when LaTeX3 is released.
@egreg :)
@JosephWright he'd rather go to a trusted source.
@JosephWright did you add (or already have) lua logging in the expl3 version?
@DavidCarlisle No, I suppose I should
@JosephWright until I used @MarcelKrüger's suggestion to trap multiple returns from os.execute I hadn't realised that luatex does actually log whether or not it was running the shell escape, just dumped the message in the second return that wasn't being used.
12:10 PM
@CarLaTeX ohh that is good!
12:33 PM
@DavidCarlisle Just done: as we have Lua functions as a set, I've added it there
12:51 PM
@manooooh Not so good if you prefer procrastinating in TeX.SE instead of working
1:10 PM
@CarLaTeX lol
btw, I completely forgot to say hello to everyone!
1:42 PM
@egreg I did " and _
2:36 PM
@yo' hello to you, kind red pattern.
3:06 PM
@Skillmon is this true? (the first bit is true, not so sure about the rest:-)
that is vim, not my favourite editor but it is available on windows, I don't think there is anything there linux specific. — David Carlisle 47 secs ago
@yo' ooh :)
@Skillmon yay
@DavidCarlisle ooh
@DavidCarlisle GVim is available on Windows and has its own scripting language, so nothing OS dependent so far, you might have OS dependent plugins, though.
@DavidCarlisle And I'm pretty sure that VIM is your favourite editor, so the second of four is definitely wrong.
IIRC there's vim (terminal) for Windows as well.
@PauloCereda might be true, I'm not using Windows for work, so have no idea.
@PauloCereda or ubuntu vim in wsl :-)
3:15 PM
@Skillmon neither am I thankfully. :)
@DavidCarlisle oh
@PauloCereda standard microsoft windows distribution:
@PauloCereda but I guess once I'm no student anymore I'll have to :(
@PauloCereda next problem having started the above demo:
Apr 12 '13 at 16:40, by David Carlisle
user image
@DavidCarlisle ooh bantham
@yo' Interesting news: there will be a conference in... Prague!
@Rmano hi mr squirrel!
3:49 PM
@PauloCereda Hi!
@Rmano 'ello :)
@PauloCereda but, why?
@Skillmon look at dat shark. :)
4:10 PM
So, I'm using TikZ to write on a PDF. I'm using code like:
\node [font=\fontsize{14}{14}\bfseries, align=left] at (9.7, -14.7){FOO};
I was wondering if there were better way to typeset, say, a paragraph.
I know I throw in some \\ to split over multiple lines.
Should I use a box, perhaps?
@FaheemMitha Try minipages. :)
@PauloCereda Ok.
@FaheemMitha if you specify a width of a tikz node then it's a minipage so will linebreak, (but don't try linebreaking with \fontsize{14}{14} of course.
@PauloCereda tikz nodes are minipages
@DavidCarlisle Why "of course"?
And I can specify the width of a node?
@FaheemMitha width=3in
4:16 PM
@DavidCarlisle I'll try it. Thank you.
@FaheemMitha because you can't normally fit a 14pt font in lines spaced 14pt apart, it depends on the font but typically you want the baseline spacing to be around 10% to 20% bigger than the fontsize.
@DavidCarlisle Oh. But wouldn't that apply to all font sizes?
@FaheemMitha why the low level size command rather than \Large (which is 14pt on 18pt)
@FaheemMitha yes
@DavidCarlisle Is that a question? If so, I have a hard time remembering those commands.
And they aren't available for every size, anyway.
If I understand correctly, you're saying that the vertical line spacing isn't necessarily correct in this usage case?
@FaheemMitha I would say "almost certainly completely wrong" rather than "not necessarily correct" but yes.
4:21 PM
@DavidCarlisle So the solution is to use \Large and friends?
@FaheemMitha it is surely better to use a provided list of sensible combinations. Not all size are provided because most combinations make no sense.
@FaheemMitha also of course \Large reacts to a [12pt] document size option, (becoming 17pt on 22pt) but the 14 on 14 text you had would stay the same size when all the normal document text becomes larger.
@DavidCarlisle I see.
4:41 PM
@DavidCarlisle :)
4:59 PM
@DavidCarlisle text width worked for me, but not width.
Perhaps I'm doing something wrong.
@FaheemMitha minimum width IIRC
Perhaps I should read the manual.
5:30 PM
Is there a way to accept multiple answers to a question?
@Bob No
That is too bad
6:07 PM
@FaheemMitha oh probably I just gave the wrong key name
6:21 PM
@Bob (provided all have the same code quality) choose the one which helped you the most. If multiple are tied, choose the one which is the clearest. If multiple are tied, choose the one which has the best formatted code. If multiple are tied, choose the fastest one.
1 hour later…
7:23 PM
@CarLaTeX and @PauloCereda -- Yes, Duck, North Carolina, is a real town, and a very pretty one. It's right at the beach on the Atlantic Ocean, and the houses are all on stilts, so that in high tides and storms the seawater just washes under the houses. (Of course, if a car is parked there, it could be washed away.) It's to the north of Nag's Head, where we used to go to the Restaurant By George, and where there was a pond frequented by ducks that once attacked me looking for a handout.
@barbarabeeton oh no, duck attack
@barbarabeeton duck are dangerous
@CarLaTeX -- I hope that includes working on your thesis.
@CarLaTeX oi
@PauloCereda -- I didn't hold it against them, but it was pretty scary for a few minutes.
7:25 PM
@barbarabeeton Yes, it does! Slowly but constantly :)
@barbarabeeton I can relate, a goose once chased me!
@PauloCereda -- If you really want to be intimidated, go near a nest with a sitting swan. I was once attacked by one of those, and was awfully glad I was on a bicycle and could escape. Never mess with swans!
@barbarabeeton oh my! Thankfully swans are rare around here.
@egreg I was in the Apple Store this evening ... looked at the 15-inch MacBook Pros ...
@JosephWright Will you send me one? :)
7:33 PM
@PauloCereda I wish ...
@JosephWright :)
Do they have 17"?
@PauloCereda Del XPS i5 for me
@PauloCereda No, just 13/15
@JosephWright Yay for XPS (I wish I had one, mines are Inspiron and Vostro... I cannot even afford a Latitude)
@JosephWright bah, too small. :)
@PauloCereda I'm happy with a 13-inch, other than it means no graphics card
@PauloCereda Yes, I like ti
@JosephWright I will write to Bruno and tell him to use GPU processing in the next L3 kernel. :)
7:36 PM
@PauloCereda 17" were discontinued some years ago
@egreg it would be amazing, I guess.
@PauloCereda :)
@PauloCereda A colleague of mine had one. Really big.
@JosephWright -- Well, my rather old 15-inch MacBook Pro looks nice, but it did a nasty job when I dropped it on my toe. (It was in its soft-cornered case, or the damage -- to my toe -- would have been much worse. As it is, I will have to go to the podiatrist in a week or two to get the toenail taken care of. No damage to laptop.)
@egreg I think I just saw one once. Apple hardware is quite expensive, so only a few people have it.
@barbarabeeton oh no
7:39 PM
@PauloCereda -- Sometimes I think I'm a bit disaster prone.
@barbarabeeton I can wholeheartedly relate. :)
8:14 PM
I can't suppress the indentation of a new paragraph following a description if I use a custom environment using LaTeX's \@afterindentfalse\@afterheading.


  \item[First item] this is an item

New paragraph
\usepackage{etoolbox}\AfterEndEnvironment{mylist}{\@afterindentfalse\@afterheading} doesn't work as well.
@PauloCereda You could try looking in your area for a used macbook pro. If we are talking about a typing machine, the last 3 years or so are basically all the same. I found one with a small amount of cosmetic damage and got it for a very reasonable price.
@Skillmon The environment is executed inside a group, and the assignment in \@afterindentfalse is local, so I'd say you need some \aftergroups here...
@PhelypeOleinik thought that \AfterEndEnvironment should fix this. Does \NewDocumentEnvironment use another group around itself that isn't covered by etoolbox?
@Skillmon Hm... No. Wait a minute
@Skillmon Ah, you also need \@endpefalse (inside the environment group) to avoid the \end code redefining \everypar
@PhelypeOleinik is that one after the \AfterEndEnvironment hook? That seems strange.
8:29 PM
@Skillmon Sorry, I didn't understand your question




\item[First item] this is an item

New paragraph

@PhelypeOleinik \@endpefalse would remove \@doendpe, but the \AfterEndEnvironment hook is executed after \@doendpe anyway, so I don't understand how it should hinder the hook to trigger the \@afterindentfalse\@afterheading.
@PhelypeOleinik oh, because \@dendpe defines \par to insert set \everypar, that one's evil!
@PhelypeOleinik thank you for pointing the \@endpefalse out.
@Skillmon Dang, you were faster ;-) I was just trying to figure this one out. But yes, timing here is... tight :-)
@Skillmon You're welcome!
@Skillmon Just don't leave a blank line after \end{mylist}. This is the standard way of doing it.
8:47 PM
@yannis Got a moment?

« first day (3273 days earlier)      last day (29 days later) »