« first day (5081 days earlier)      last day (150 days later) » 

06:56
Question, say I have \homepage{foo.bar/horse#pony}, I'd like to store that URL in a prop list and either typeset it via (something similar to) \href{https://\c_colon_str#1}{#1} and \url{#1} (here #1 will be a macro containing the value from the prop, so some \exp_args:xx are expected). I would like to not have to escape # if possible.
Is there a good approach to this?
Using an expanded \tl_to_str:n { #1 } before sending the data to the prop, stores the data as au.dk/foo##bar in the prop (as log to the console), and typesets correctly when given to \url. But \href really does not like it.
If I use \homepage{foo.bar/horse\#pony} then I'm having issues that some combination of \url/href (hyperref on/off) displays the \# part.
07:30
If we require that # is escaped in URLs, then we need something like this for `\url`:
\str_set_eq:NN \l_tmpa_str #1
\exp_args:NNV \str_replace_all:Nnn \l_tmpa_str { \c_backslash_str } {}
\exp_args:Ne \url{ \l_tmpa_str }
07:45
BTW the doc for l3doc says the env variable behaves just like function, it very much does not, more like the macro env, which I do not really like the formatting of, so I'll just use function to mark variables as well as it reads nicer.
08:21
@daleif I think I'd expect the str version to work with hyperref, what goes wrong?
@DavidCarlisle first step to 888888 ...
@UlrikeFischer naturally I expect to get some "lucky" downvotes to get on an 8-3 cycle before long
It is something like this
documentclass[a4paper]{article}

\usepackage{url}
%\usepackage[colorlinks]{hyperref}

\makeatletter
\ExplSyntaxOn
\msg_redirect_class:nn { log } { term }
\prop_new:N \l_foobar_prop

\NewDocumentCommand\homepage{m}{
% \prop_put:Nnn \l_foobar_prop { homepage } { #1 }
\prop_put:Nne \l_foobar_prop { homepage } { \tl_to_str:n { #1 } }
}

\AtEndDocument{
\prop_log:N \l_foobar_prop
}

\cs_new_protected:Npn \foobar_url_formatter:N #1
{
\@ifpackageloaded{hyperref}
{
\exp_args:Nee \href{https://\c_colon_str/#1}{#1}
@DavidCarlisle I sadly missed 55555.
09:23
@daleif read the argument verbatim: \NewDocumentCommand\homepage{v}{
@UlrikeFischer That macro should be allowed to be set inside the body of another macro, so I'd say v is out of the question. Probably better to ask users to use \# and then remove the \ in the \url case.
BTW the MWE should use
\quark_if_no_value:NT \l_tmpa_tl
{ \typeout{bad user} \tl_clear:N\l_tmpa_tl }
@daleif you could \detokenize (tl_to_st) then it doesn't matter if you are within a macro argument.. (oh that's what you did, let me try your code:-)
I'm not sure it is worth looking into, the macro needs to be able to be used within
\DefineProfile{foobar}{
\homepage{....}
}
and so might be dangerous to do special things to it. Might be better to just promote users to escape the \# if they ever use it, and programme the data for \url around it.
Interesting error msg:
! LaTeX cmd Error: Verbatim-like command '\mathcolor' illegal in argument.
when I haven't even used `\mathcolor`. Comming from saving a verb var inside a macro. So not going to do that.
 
1 hour later…
11:01
A question to vim-users: are you using plain vim or neovim? @PauloCereda @Skillmon --- I am thinking to switch due to github.com/vim/vim/issues/12671
11:12
These unit questions are a bit weird. Somebody seems to be giving a LaTeX course, and they are about to typeset units, but apparently does not know about siunitx. Instead they found many bad ways...
@mickep Yes, there is a period of the year when a lot of (often repeated) questions seem to come from a LaTeX course. It used to be after Christmas, maybe they changed semester?
@Rmano Yes maybe. Interesting pedagogy. Showing six bad things to do, with a bit of luck one of them will stick...
11:33
@Rmano I am currently using vim (terminal). I think I've never used gvim. :) I thought of migrating to neovim at some point, but I am still in the planning phase. IIRC @MarcelKrüger is our neovim expert. :)
@PauloCereda you could use emacs instead, it's obviously much better.
@DavidCarlisle oh no
@PauloCereda also secret coded skype message
@DavidCarlisle ooh hold on
 
2 hours later…
13:21
You are trusting ducks with secrets?
@samcarter More then the ones without. :)
@mickep ... but the ones without might actually have secrets and are so good with them that they don't even say that they have them?
@samcarter That is a risk one has to take :)
 
2 hours later…
cfr
cfr
15:56
does anybody know what ctan mean by 'a while'?
16:07
@cfr where do they say that?
cfr
cfr
@UlrikeFischer sorry. actually, they say 'some time'.
@cfr ah, they are currently moving the server. So it could be over the weekend.
cfr
cfr
@UlrikeFischer thanks. @JosephWright told me why, but I just wanted some idea how long.
@JosephWright is a middle-of-ctan hook a possibility, please?
@cfr I have really no idea, I only know that it a major operation.
cfr
cfr
@UlrikeFischer I cannot really imagine, but I would suppose so.
 
1 hour later…
cfr
cfr
17:35
@JosephWright please ignore my question.
 
2 hours later…
19:14
@Rmano I'm using NeoVim for a few years now, was using VIM earlier. The transition was very smooth for me, basically my old .vimrc is running in NeoVim with close to no adaptations. I also added alias realvim=vim; alias vim=nvim to my shell startup to force me using NeoVim.
Evil @egreg stealing ticks with basically the same code, just with slower expl3 versions of it. :P
@Skillmon do you use any GUI for neovim?
Or just running in terminal emulators?
@Rmano On the dayjob I use neovim-qt and the terminal version concurrently (depends on what I start where, using Windows forces one to compromise). On my own laptop the terminal version almost exclusively (I have a weird setup with my browser running on a different user account, and that one will spawn a GUI NeoVim (again neovim-qt), but my main user exclusively runs it in a terminal).
20:09
@Skillmon But no additional package… ;-)
 
1 hour later…
21:14
@UlrikeFischer @DavidCarlisle \usepackage[colorlinks]{hyperref} => NO-tagPDF
\DocumentMetadata{lang=en-US, pdfversion=2.0, testphase={phase-III,math,table,title,firstaid}, uncompress }% pdfstandard=ua-2,
\documentclass{article}
\usepackage[colorlinks]{hyperref}
\pagestyle{empty}
\begin{document}
\begin{enumerate}
  \item A
  \item \begin{enumerate} \item B \end{enumerate}
  \item \begin{enumerate} \item C \end{enumerate}
\end{enumerate}
\end{document}
Package tagpdf Warning: Parent-Child 'LI/pdf2' --> 'text-unit/latex'.
(tagpdf)                Relation is not allowed (struct 22, /LI --> struct 25)
(tagpdf)                on line 9


Package tagpdf Warning: Parent-Child 'LI/pdf2' --> 'enumerate/latex'.
(tagpdf)                Relation is not allowed (struct 25, /text-unit -->
(tagpdf)                struct 26) on line 9


[1{/usr/local/texlive/2024/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./test-list-foro.aux)

! Package tagpdf Error: The number of automatic begin (6) and end (7)
lualatex-dev (TL24 update)
@PabloGonzálezL hm. Interesting.
21:34
@PabloGonzálezL <insert standard response>
21:45
@DavidCarlisle well you can adapt color and I do xcolor? Both need to adapt to the new doendpe code from Frank: \def\color@endgroup{\endgraf\@endpefalse\endgroup}. Or perhaps latex should do it at begin document?
@UlrikeFischer oh I didn't look at the issue:-) So we can do that always, not conditional on tagging, assuming (x)color isn't used with an older format?
@DavidCarlisle in older formats \@endpefalse is a simple switch isn't it? So before an \endgroup it shouldn't harm?
@UlrikeFischer why begin document, couldn't it just change the original definition in ltboxes.dtx?
@DavidCarlisle it is changed there. But color overwrites it again. Perhaps color should simply drop the definition as the kernel does it now?
@UlrikeFischer yes, that. (I'd have to worry (again) about the graphics-pln version but ...
21:58
@DavidCarlisle Frank actually handled color.sty already, I need to check xcolor and the patch in the pdfresources. But you should perhaps check if this affects plain.
@UlrikeFischer at some point I think the tagging code (and assuming expl3 is loaded) is going to break graphics-pln completely at which point I suspect I'll just modify it not to load color.sty but some color-old-fixed-version-before-ulrike-broke-it.sty and similarly for graphics so it's independent of latex updates
22:28
@DavidCarlisle I added the change in xcolor to the open PR and will merge both and make a release tomorrow.
@UlrikeFischer thanks
@UlrikeFischer I'll check the plain support tomorrow as well, hopefully I can just add a "classic" @endpe switch to miniltx and it'll all work out OK
@DavidCarlisle Jejeje :D
@UlrikeFischer @DavidCarlisle Ohh...too fast to keep up...Will there be any new latex-dev releases before November?
@PabloGonzálezL well in this case it is not latex-dev but xcolor and pdfresources and I will sent them to ctan tomorrow (if ctan is not down).
@UlrikeFischer Great, I'm asking about latex-dev anyway, it followed the updates to tagpdf-code and moved me to \tag_suspend|resume ..I'd just like to try it out :D
@PabloGonzálezL well yes, I think there will be a latex-dev - but at least on PR waits on @DavidCarlisle ;-)
22:39
@UlrikeFischer Thanks, by the way, the tagpdf-code page 6 looks pretty ugly :D
@PabloGonzálezL I try to avoid to look at the code documentation ... I only look at the code itself.
@UlrikeFischer And perhaps you should remove from the tagpdf-code "General tagging commands" documentation the mentions of \tag_start: and \tag_stop:
@UlrikeFischer Getting the point across, it saves a lot of time trying to figure out what all looks good when the code is OK, but it's a bit confusing for newbies :d
@PabloGonzálezL I see the problem, I only meant that I almost never check this, so unless someone tells me that something did go wrong ...
But ctan is down currently so uploads have to wait ...
@UlrikeFischer I am one of those who likes to read the documentation, especially the implementation documentation (it helps a lot)
@UlrikeFischer Great, last question, I have (when this is fixed), a list environment package that works almost identical to enumitem, how can I do the tests for tagpdf from Windows? (on Linux I use ngpdf), I would like to know what your test suite is for this.
@PabloGonzálezL öh, I use acrobat or ngpdf too. Why shouldn't that work on windows?
22:58
@UlrikeFischer As far as I understand, it should also work with screen readers...that's where I don't have the slightest idea :(
@UlrikeFischer By default this is all done in English, but my language is Spanish (Chilean to be precise :D)
@PabloGonzálezL the free pdf-xchange viewer can show tagging as well works on windows
@DavidCarlisle Great, added to the list, I have Acrobat DC pro (not the latest version) at work so I can do some comparisons.
@UlrikeFischer empty line 120 in your las update :D
cfr
cfr
23:51
@DavidCarlisle I think the b was because of something I said about a previous version of the question you answered tex.stackexchange.com/q/727546 where the \ifs were arranged differently.

« first day (5081 days earlier)      last day (150 days later) »