@JosephWright I published expkv v1.0 yesterday in which I rewrote the key-splitting part completely. I try to create a pull-request this evening or tomorrow which ports this over to \keys_parse:NNn. The new code is a bit more complicated and based even more on TeX's delimited argument rules to split and branch in a single step, removing the need to test for equal signs prior to splitting.
Which reminds me, I still have to install TL20
I guess now I can wait the two days for the official release, saves me from changing the mirror in the pretest :)
SOMETHING TERRIBLE HAS HAPPENED! I needed to restore my FF to defaults. Now TeX.SX looks terrible again. I have a strong summer 2018 flashback.
@JosephWright yes I could move that javascript to the real site? (I have the code that @StefanKottwitz used to link to overleaf as well, but it's not working for me, not sure why, so the overleaf code is stubbed out currently, but it might be worth adding this already)
@DavidCarlisle In the end it might be a good idea to add some javascript checks, just for the suspicious people out there who does not enable javascript to be run from everywhere.
And if the page is wide enough mode the latexonline.cc next to the source code.
@DavidCarlisle Firefox' noscript addon lets to specifically specify which external sites to run javascript from. It wasn't untill I clicked the latexonline.cc button that that site was even seen
That is presumably because it only runs inside the iframe.
@daleif happy to take code suggestions but if you have enabled such an addon presumably getting javascript blocked on unknown sites isn't an expected behaviour, and not something that the site should guard against?
@JosephWright thinking about it, this proves to be a bit more complicated than I thought. I can't guarantee that big of a performance leap. Your strange design choice to throw errors on multiple equal signs overcomplicates the splitting part. The pull request will take a bit longer, I have to try things...
@JosephWright :) Well, my design choice for expkv was to always grab lazily, so the first equal sign (of cat 12 or 13) is separating the key from the value and every additional equal sign belongs to the value.
@UlrikeFischer @JosephWright some free docker host (but the whole setup is on github with instructions on how to self-host if needed) it also has parameters that allow it to run bibtex (and use xetex or luatex instead of pdftex) but currently I haven't set up any javascript that allows you to set them within the page, so the bibtex example lesson fails,
@JosephWright yes all lessons should have it now, so long as the code block has \documentclass the buttons should appear
@JosephWright no we can have fragments but as for bibtex comment above it's not done yet. it's already got javascript doing a text search todecide what to do if it can recognise a fragment that could be made into a document with a standard preamble, (eg a magic comment, or all of te rest depending) that is easy to add
@JosephWright I thought Frank, since he's the "boss" :) But we can ask @DavidCarlisle as well.
@DavidCarlisle there is a big issue with the current latexonline.cc solution. Have you ever tested it with an external pdf viewer configured in your browser?
@Skillmonlikestopanswers.xyz Ideally, everything would be done in JavaScript as for other languages: we are aiming at beginners, which means 'standard' set ups ...
@Skillmonlikestopanswers.xyz Er, well yes he is, but it's quite a flexible set up
@Skillmonlikestopanswers.xyz There's a reason I think we do want Overleaf set up; longer-term, that's a solution learners might be able to stick with
@Skillmonlikestopanswers.xyz I said to Karl that there is regrettibly no 'perfect' solution
@Skillmonlikestopanswers.xyz I'm happy to talk details, but the key is to have something that works for the majority of our target audience. I'm thinking people on locked-down PCs at work or university, with little-to-know IT 'experience'
@JosephWright yes, and I admit that my setup is non-standard in many (read: almost all) aspects. But that's why I spot such bugs. Currently creating an issue on their github.
@PauloCereda Before that I used Communicator, and before that Navigator
@Skillmonlikestopanswers.xyz Indeed: report and get them to fix it, perhaps I might even be able to sponsor them (hopefully my cash-raising efforts are working)
@JosephWright yes currently it gets the string for the code block tests if it has \documentclass and if so sets up the buttons. There is no else branch but there could be one. If it was every code block then you couldn't sensibly have really small fragments like a single definition but we could use a magic comment or ```tex instead of ```latex to suppress the buttons or ....
@Skillmonlikestopanswers.xyz no just a single REST call to latexonline.cc with the url-encoded docuemnt in a ?text=... URI
@yo' yes although here (currently) you can edit on site before going to overleaf, so pushing the document might be better (or we could refactor it to only allow in site editing in the latexonline case)
@yo' that's exactly the form im using "Post a Snippet by URI (URL)" at that URL
@yo' yes but these files are not on the internet, you may have just written it in your browser (try the edit button, and change the text before hitting the overleaf button)
@UlrikeFischer yes (one reason for having the aternatives available. It won't ask if you have a login cached in the cookies in your browser, it doesn't ask me)
@yo' use learnlatex.github.io/en/lesson-03 the one in my account is a lot more experimental, I just use it so as not to leave the more or less public one in the learnlatex account broken while I teach myself more javascript
@UlrikeFischer I log in to overleaf with my google account so it may just be enough to have that cached (I'm not sure) and I'm pretty much always logged in to that. Anyway @JosephWright is going to write a lesson-0 how to use the site that explains all this, once it's stable:-)
@yo' @UlrikeFischer would be proud of me if I said that having the doc rather than reverse engineering the texnique.fr code might help there:-) so thanks for that link....
@DavidCarlisle hahaha that one is useful, but it's not really easy to find I think...
@DavidCarlisle btw I think that if you log out of Overleaf, you'll be logged out. Just if next time you click Login with Google, you won't be asked any permissions.
@DavidCarlisle I logged in now. I can edit in learnlatex and then open in overleaf, but when I go back to learnlatex, my carefully inserted "blub" and "grüße" are gone again ;-(
@UlrikeFischer yes I think that's a temporary feature. I was having problems getting it to work at all so I stripped back the form to the bare minimum which means currently it replaces the current document (so you lose your edits) I should be able to add a target back so it opens in a new window or tab so you keep your edits in the existing window) or potentially could run overleaf in an iframe in the same window, like the latex online button but that might be a bit fragile (or blocked)
New disk in the computer -> Word is still crashing. For the local administrator account it doesn't crash. As soon as I log in with my network account it does. So I think we start to narrow the problem down.
@JosephWright getting there slowly, main thing not working is that the syntax highlighting interferes with edits. (try adding a newline) not sure yet whether to make the edit button remove highlighting or try to bind the return key to force a newline in the current markup, either is possible but the latter might have some OS/browser issues as it's keyboard remapping essentially.
@DavidCarlisle ;-). When I start to edit everything is underlined in red, is that my browser or you doing the spell checking? (I think it is my browser, I need to find out how to disable this).
@PauloCereda -- sadly, the antiquity of my laptop doesn't permit twitter action to be shown, and the sound is also unretrievable. (But I found another source for the action, and it's delightful!)
@DavidCarlisle well it will depend on the final layout, but imho it is quite good to have everything in one window. You can more easily compare the code and the output. But the button to "recompile" should be above the iframe.
@JosephWright sure there are still many things to do. Regarding the examples: I would make them "complete" with \documentclass etc. It adds only 3 lines but avoids to have to explain that they compile because of some hidden preamble/javascript/whatever.
@yo' It does seem to be very sensitive to what shows up in your feed. A friend posted a picture from the Tropicana Diner, and I started immediately getting ads for Tropicana orange juice. And my feed is filled with Covid-19 stuff as I'm part of a group where current research papers are being summarized.
I use TeXstudio 2.11.2, and I want to know if there is a way to disable spell checking through magic comments. Something like this:
% !TeX spellcheck = disable