The question Are there visual illustrations on the struggle of Word on formatting in comparing with LaTeX? is closed for being opinion-based. How is it be different to the rest of big-list questions?
See also: Do we follow StackExchange rules?
@DavidCarlisle you confused something, the hypothetical question was about editors, not operating systems. The answer would then be VIM of course. And since emacs lacks a good editor, even for operating systems one can't really recommend it.
@DavidCarlisle is "Because colour support isn't really built into TeX but added by using \special which outputs a whatsit that might have side effects if used in the wrong place, the \leavevmode reduces the risk of strange things." ok as an explanation to tex.stackexchange.com/questions/712075/… or do you want to comment?
Can somebody explain to me how tuples are implemented in the l3fp package? I tried to make sense of the code, but it is a bit too complicated for me. As far as I understand, tuples are not stored in a special way, rather the existence of a comma in an expression makes it a tuple. In math operations involving tuples, these are then just split up at the commas and the operations are then done with these pars of the tuples via loops. Is this correct?
So, other than using loops, there might not be an efficient way to select a certain item from such a tuple (which is the reason why I ask)?
@JasperHabicht there's not really another way than a loop I'm afraid, unless you have a hard coded number of elements in your tuple and those are no more than 9.
2
@JasperHabicht one could think of a data format that would give better performance for really large lists of items, at the cost of roughly 10 * ceil(log10(nmax)) additional control sequences I'd have a plan, but that's a rather unlikely to really be needed.
@JasperHabicht for instance, the following would be accessible in (almost) constant time: \mark1{<element1>}\mark2{<element2>}...\mark9{<element9>}\mark10\mark0{<element10>}\mark1{<element11>}...\mark20\mark0{<element20>}\mark1{<element21>}.... You could then access element 956 by using \use_none_delimit_by_mark:nnw{900}{\use_none_delimit_by_mark:nnw{50}{\use_none_delimit_by_mark:nnw{6}{\check_exists_and_use:n}}}<list>\mark900\mark50\mark6{<non-existent-marker>}.
with \use_none_delimit_by_mark:nnw being defined as \cs_new:Npn \use_none_delimit_by_mark:nnw #1 { \use:c { __use_none_delimit_by_mark_ #1 _aux:nw } } (of course \mark<num> should be a single token)
Right, but I doubt that l3fp should be rewritten in order to support this? I am (as you might have guessed) just thinking about a proper solution to the ”get me the x value of point p” problem :)
@JasperHabicht Well of course there we do know the number of elements we need to allow for, and can arrange to throw away any excess - so we don't need a loop
@JosephWright Well, if we say that accessing coordinate parts from points should be done via l3fp, we will eventually still need to use a loop because l3fp should of course implement a more general way to access items from tuples.
But it wouldn’t matter much, since a loop with max 2 steps is still quite quick.
@JasperHabicht As I said before, if there are good use cases, there's no problem adding to l3draw: it's that I wanted to start small and see what real use cases come up, as there are key differences to pgf
@JosephWright Debian might be relevant because the only two differences between the old, correct PDF/PS file and the newly generated PDF/PS file is half a year of updates or upgrades of TeX Live, both as Debian stock packages and in the current online repository of TeX Live 2023. Unfortunately, I don't know which of the two I used on July 20, 2023. Probably, the Debian stock packages, too. Stock TeX Live in Debian was happy with SymbolMT in the same EPS file for one and a half decades.
@JosephWright One more thing changed: I uninstalled the Debian package ttf-mscorefonts-installer and linked the native Windows fonts from my Windows partition instead. So, hypothetically, the change might also be not mainly related to Debian.
@Minsky If you show your presentation with the presentation mode of your pdf viewer, it should show the whole slide regardless of the aspect ration (will add empty space around it). How to make sure your images fit in the slide will depend on how you include them.
@Minsky no. If you know the aspect ration of the venue in advance, you can use it to tailor the layout of your slides to it. However if your slides aren't the correct aspect ration, then the pdf viewer should still show the completely in presentation mode.
seems to have improved a lot thanks @samcarter, i just adjusted the images from the includegraphics command. I wonder if I should have some if/else condition that creates a multiplier for the include graphics width based on the aspect ratio.
@JosephWright Alright. I already found one, will add more if I encounter them to the issue at GitHub. I‘ll try to carefully evaluate whether this really can’t be solved in a feasible way using tuples. =)
You are totally right! This is what discussions are for
@JosephWright of course not. Also, it'd be hard as where to draw the line... For sequences this could be defined dynamically at a very low overhead, but tuples aren't assigned but have to be built expandably and retrieved expandably, so would need a hard decision on which is the highest number of elements supported. With pdfTeX and XeTeX this could be rather easily decided (there is a hard maximum, at least for default memory settings), but LuaTeX with dynamic allocation proves to be difficult :)
@JasperHabicht the loop has <n>/8 steps, I'd estimate (or at least the one I'd code would've)
@JosephWright I likely had a font advertising itself as SymbolMT in July 2023, and I have such a font now: ttf-mscorefonts-installer was very likely installed then and is installed now. Meanwhile, I updated some Debian TeX-Live packages from Trixie into stable (to get unrelated bugs fixed); SymbolMT might have disappeared in the process. Another possibility is that apparmor or the Gnome font manager don't like the symbolic link to /my_Windows_partition/Windows/Fonts/. Both are related to the OS.