« first day (5186 days earlier)      last day (44 days later) » 

cis
cis
06:28
@egreg Ah, that helps me a lot with my current project!
Thanks!

(I would like to automate and visualize Soroban computing processes.)
 
2 hours later…
cis
cis
08:31
@egreg / @DavidCarlisle
Does "expl3" contain functions like

\pgfmathtruncatemacro\DimM{floor(log10(\M))+1}

?

If yes, I could imagine that I should do my calcs with "expl3", because "Dimensions are often to large".
\documentclass{article}
\usepackage{tikz}
\def\M{279}
\def\N{653}
\pgfmathtruncatemacro\DimM{floor(log10(\M))+1}
\begin{document}
M={\M} and  Dim(M) = \DimM

% Dim too large...
%\pgfmathparse{\N*\M}\pgfmathresult
\end{document}
09:22
@cis yes (with far more acurate arithmetic)
\documentclass{article}

\begin{document}
\def\M{279}
\def\N{653}
\fpeval{logb(\M)+1}
\end{document}
@cis ^^ "logb Determines the exponent of the ⟨fp expr ⟩, namely the floor of the base-10 logarithm of its absolute value."
cis
cis
@DavidCarlisle Oh... I did not know, that fpeval is standard too (without package).
@cis yes even when it needed a package for \fpeval that was just a single line to avoid neededing \fp_eval:n syntax, the expl3 version has been in expl3 for many years
cis
cis
Would be nice, if pgfmath would use that.
So we could get rid of that "Dimensions too large"
@cis isn't there an option to switch in at least pgf's fp library and I thought you could use l3fp fairly easily as well but I haven't looked for a while
@cis oh the pgfmath-xfp package makes pgf use l3fp blame @Skillmon
@DavidCarlisle Is it still a problem with luatex?
09:37
@mickep yes
@DavidCarlisle Is that some new feature that you need to save files?
@cis it still fails on the multiplication
@mickep well me ignoring a feature. I could have let emacs run tex on the buffer, but I like to run it myself on the commandline....
@DavidCarlisle As you are new to emacs, you are excused.
cis
cis
@DavidCarlisle Ah. Yes, I see the following does not work:
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfmath-xfp}
\def\M{279}
\def\N{653}
\begin{document}
% DOES STILL NOT WORK
\pgfmathparse{\N*\M}\pgfmathresult
\end{document}
@DavidCarlisle So the example that Hans suggested, that shows the bars, is not relevant?
09:43
@mickep I'm confused now.
@DavidCarlisle You are not alone...
@cis yes as I say you can blame @Skillmon (but what I think is happening is thet the individual functions are using l3fp but to fit in to pgf as a whole the ``\pgfmathparse` still needs to pass the result through a dimen and so hits that limit)
@DavidCarlisle Running the example from Hans I get the result in the picture below, with cmex10 and cmsy10 used.
@mickep Luigi said on the dev-luatex list that he would look at it, so my plan was not to look
@DavidCarlisle Oh, I only received your mail, not his.
09:47
@mickep yes, that's what I was seeing but
@mickep ah yes he replied off list said, in total "ok, I will check it."
cis
cis
@Skillmon is this coorect that way?
---> https://chat.stackexchange.com/transcript/message/66982496#66982496
@DavidCarlisle Oh, OK
@mickep but the example is producing a version of \| not \Arrowvert compare this in pdftex and luatex
\nopagenumbers
\tracingonline1
\showboxdepth100


$\Arrowvert \Big\Arrowvert \Bigg\Arrowvert \big\Arrowvert \bigg\Arrowvert \showlists $

\delcode`\|="26A30C % default

$\| \Big\| \Bigg\| \big\| \bigg\| \showlists $

\delcode`\| = "26B33D

$\| \Big\| \Bigg\| \big\| \bigg\| \showlists $

\end
@mickep so the version from Hans (the last one) looks OK but it looks like \Vert not like \Arrowvert
@DavidCarlisle Oh, I probably do not get what \Arrowvert is for. But running with luatex from the context distribution, I do not get the funny brace pieces at least. I get the screenshot below:
So, Arrowvert is supposed to only use the middle piece, and use it as an extensible?
(But even for pdftex, the first \Arrowvert has rounded corners...)
@mickep well that's the odd thing it doesn't use the middle piece (which is the brace part) and only uses the extension, but without reading the tfm specs again which I didn't do last night I couldn't see why it does that, it just does:-)
@mickep yes the "special delimiters" described in the texbook really only work for the extension font as they are explicitly made by mis-using extension pieces in various ways, so the first version without a forced size is what it is
10:02
@DavidCarlisle Weird. I now wonder where/how this \Arrowvert is actually used.
@DavidCarlisle now an answer by wipet, claiming luatex does the right thing. :))
@mickep essentially it is never used anywhere, DEK was just playing with tfm possibilities and stuck it in a hidden \danger paragraph in the texbook, just because he could.
@mickep which was my prediction for what Hans would say:-) let me check what @wipet says...
@DavidCarlisle His example does not render the same width or glyphs as the pdftex \Arrowvert either...
cis
cis
Is this a correct useage to create macros with fpeval-calculations?

\def\DimM{\fpeval{logb(\M)+1}}
@mickep I just wrote same in a comment
\nopagenumbers
\tracingonline1
\showboxdepth100


$\Arrowvert \Big\Arrowvert \Bigg\Arrowvert \big\Arrowvert \bigg\Arrowvert \showlists $


\def\Arrowvert{\delimiter"26B30D }% wipet

$\Arrowvert \Big\Arrowvert \Bigg\Arrowvert \big\Arrowvert \bigg\Arrowvert \showlists $

\delcode`\|="26A30C % default

$\| \Big\| \Bigg\| \big\| \bigg\| \showlists $

\delcode`\| = "26B33D

$\| \Big\| \Bigg\| \big\| \bigg\| \showlists $

\end
@mickep that answer now corrected...
10:21
@DavidCarlisle oh, great
 
2 hours later…
12:27
@cis You're not really using pgfmath-xfp there. The basic functionality is like @DavidCarlisle guessed, we only nest ourselves into the pgfmath environment so results of calculations have to fit into the current context of pgfmath (the maximum number depends on whether pgf's FPU is active or not). That said pgfmath-xfp does not change any functionality of existing pgfmath functions or parsing rules. It only provides an interface to define functions that internally use l3fp.
@mickep oh a fish
@Skillmon blub blub
@cis what you can do is \pgfmxfpdeclarefunction{mult}{2}{(#1)*(#2)} to define a multiplication that works on l3fp-precision, but the result still has to fit into whatever datatype pgfmath uses outside of that function. All of that is explained on the first page! The exact structure of \pgfmxfpdeclarefunction is explained on the second page. The documentation is 3 pages long, you'll need to read the first two pages. Please do so if you're interested in using it.
@Skillmon "All of that is explained on the first page" that's a page further than I read
@DavidCarlisle to be fair, the constrain is not as clearly stated as I did here in chat, it's more that this logically follows from the explanation there. Maybe I should add a paragraph explicitly explaining that.
(because then I can really say to users: It's stated there; obviously they'd still not read it)
@DavidCarlisle oh, a group of fish
@Skillmon which luatex sticks a { bow through :(
cis
cis
12:39
@Skillmon I think the best is, to learn how to calc with expl3 / fpeval etc. instead of using a package, maybe.
@DavidCarlisle Isn't it a bit ironic that OP actually was happy with egreg's redefinition, pointing to the usual double bars? :)
@cis if just doing arithmetic, certainly, but if you want internal tikz/pgf calculations (or pgfplots etc) to use the l3fp arithmetic then you need something like @Skillmon's package
@cis well, it was meant to aid in pgfplots really, because there you don't have control over the format of input (you'll get it in pgfmath's internal FPU representation), and you can't feed that directly to l3fp. Obviously outside of a TikZ context you should simply directly use whichever solution satisfies your needs.
@mickep my head still hurts from banging it against the wall
3
@cis First paragraph of pgfmath-xfp's documentation:
> This package serves as a stopgap to allow the usage of xfp in pgfmath functions. It is only meant as a temporary fix to allow single functions using the expl3 fpu until a more sophisticated solution to allow broader support for it in pgf is available.
13:05
New documentation with a paragraph on the constraints included on the way to CTAN. So starting tomorrow I can fullheartedly say: I told you so.
13:31
@DavidCarlisle Oh, I hope you get well soon. Because soon wipet will steal your tick, and then you will bang it again, I guess.
13:55
I know this is not on topic, but tex.stackexchange.com/a/726629/319072 inspired me to learn POV-Ray. So I checked out the installations, but it seems to be only for windows and I want to use it on a Mac. Can someone recommend a good Ray-Tracing software which would be capable of making complicated mathematical animations on a Mac? Or am I just not finding the Mac version of POV-Ray? I saw a legacy version, but that seems non modern.
POV-Ray also hasn't been updated in over a decade, according to the post. The wikipedia list of Ray-Tracing softwares is huge, and I want a good pick for making math animations. Especially point-at-infinity stuff. Sorry for asking this, as it is somewhat off topic. I am just really curious and want to do it right.
@Jasper there appears to be something on homebrew: formulae.brew.sh/formula/povray
Interesting, thank you for showing me home-brew. (I'm new to Mac). Do you think that it is sufficient for making good math content in this day and age? Or is there a better suited software? Sorry for my lack of insight.
@Jasper according to povray.org there is a release planned for Q1 2025.
@Skillmon It's been a long time since there last one - I hope so!
If it's being updated soon, will that update be available for Mac?
14:08
@Jasper well, I didn't use a Mac for 18 years, so don't ask me :P Otherwise: CAD software is able to render these as well (but I have no idea how good the free CAD softwares are, last time I used a 3D-modelling CAD is also a few years ago, something like 8 or so years I'd guess)
@Jasper might take some additional time, but I'd guess so. But you could also compile it yourself.
I didn't know you could do that! I'll have to try it out (assuming I'm capable of figuring that out)
Thank you for your time @Skillmon, sorry for any lack of insight in my questions
14:27
@mickep bingo
@DavidCarlisle What did you do?
@DavidCarlisle Ah nice, so you work to keep the tick! :)
@DavidCarlisle Where can one read the tfm spec? It would be interesting to see if the 3D, having only a rep part means one shall not look at the base character.
@JosephWright do you use it?
@mickep metafont book which I don't have to hand but I thought one of the tfm to something tools had it too but I can't find anything useful.
14:38
@DavidCarlisle I have the metafont book 5 m away... Will have a look.
@DavidCarlisle Did not find it inthere.
@mickep ah I was just looking.. grr
@DavidCarlisle Weird, in the TeX book he points a bit to the MetaFont manual.
or system documentation for tfm files. (See p 442)
@mickep I think the (barely documented) bit missing is that (unlike the Opentype delimiters) the choice to use an extension recipe is already made by the time the extension font is used (ie its using the lower part of the delimiter code) so the actual character is never used at all and you should jump straight to the extension recipe, but luatex is doing the size check again when it gets to the extension font
@mickep I suppose the ultimate doc is tex.web where it's reading this, we could look there....
@DavidCarlisle That is indeed what is happening, but it would be nice to see that explained/speced somewhere.
15:03
@mickep yes, although people looking for clear documentation for tex behaviour have historically often been disapointed
@DavidCarlisle Yes, maybe that is where one will end up :(
@mickep we can always blame @UlrikeFischer to cheer ourselves up
What is the parameter that pushes the subscripts down in opentype math?
@mickep how did you create that image in the recent comment?
i tried \Umathsubshiftdrop, but it didn't seem to work
@mickep the documentation says it's interesting it just doesn't really say what the heck the code is doing `@ The |var_delimiter| function, which finds or constructs a sufficiently
large delimiter, is the most interesting of the auxiliary functions that currently concern us`
15:20
@ApoorvPotnis This was with and without the lua goodie file in ConTeXt.
@DavidCarlisle haha!
@mickep has anyone ever mentioned you should fix the fonts rather than adding patches via Lua (who would use Lua to patch fonts....)
@ApoorvPotnis Do you add \displaystyle or so as well after it?
@DavidCarlisle Some vague memory, but nothing clear.
@DavidCarlisle MF book, page 317 and 318 gives an example: "charlist oct 000: oct 020: oct 022: oct 040: oct 060" and "extensible oct 060: oct 060, 0, oct 100, oct 102:. The charlist is example of left paretnesis chain and the last item here is no whole parenthesis, but only its to part. It means, that if a code is declared as "extensible", it is not used directly but it have to be composed from declared parts. These character can be used directly only as a part of extensible character.
@Skillmon Yes - presentation/poster versions of X-ray structure
The case of 3D character is declared only as extensible, in is'nt in charlist.
15:31
@wipet ah "is'nt in charlist." that's the thing, thanks.
@mickep and texdoc gftodvi was the tool with a fairly complete tfm spec that I had half remembered
@DavidCarlisle I only get a 2 page pdf file that looks like a man page. Is that what you mean?
@DavidCarlisle and I always thought you blame me to cheer me up ;-(. While you had fun with tfm I opened a ghostscript issue to repair a 900 page document and resolve a four year old hyperref issue ... bugs.ghostscript.com/show_bug.cgi?id=708246
@ApoorvPotnis I might try downloading those fonts later but I just lost half a day with tfm fonts fixing @mickep's bugs so I might not. If you stick all the tfm and pk in teh same directory as the document, it should work, I think.
\documentclass{article}

\usepackage[newcmbb]{fontsetup}
\Umathsubshiftdrop\displaystyle=-10pt

\begin{document}
\[
\sigma_p x_i
\]
\(\sigma_p x_i\)
\end{document}

I tried this. I get the same result, with the umath line commented.
@mickep
@DavidCarlisle Thanks. I shall try again
@mickep er that's -changes.pdf with 29 pages, I was looking at ctan.math.washington.edu/tex-archive/info/knuth-pdf/mfware/… which has 90 pages, so I guess it's not quite the same although title and toc are the same (I don't think it clarifies todays issue but is what I read before, I think)
Does anyone know if Micropress is still up and running? Their site seems to be down. I think there was a type1 version of cmbright math as well
@ApoorvPotnis I don't think so
@DavidCarlisle sad
15:47
@ApoorvPotnis Here I had to set it inside math.
(and down, not drop)
it seems that free sans and mathematica sans have some math glyphs, but no math table
@ApoorvPotnis "micropress-inc.com expired on 12/21/2024 and is pending renewal or deletion."
@ApoorvPotnis "free sans" ?
@DavidCarlisle The GNU Free Sans font gnu.org/software/freefont
@mickep I'm currently reading that cont-enp.pdf link you sent me. Is there a newer version of that manual? I'm pretty sure that latest ConTeXt doesn't use pdfTeX anymore... :P
@mickep the subscript went up for reason 😂
I was wondering if this was really desired by the Latin Modern font developers. The old latex output looks better for subscripts, in my humble opinion.
15:53
@Skillmon Not that I am aware of, no. Hraban is writing something newer. There are also something on the wiki, but I have not really read them trhough. The basics should be in the doc I pointed you to. (Except fonts and a few other stuff that is now different)
@mickep Probably this is not possible, but is it possible to just use the context goodie files in lualatex/xelatex? they contain useful fixes, as far as i can tell.
@ApoorvPotnis I do not think so. But if you know some font designer, you can convince them to update the font parameters ;)
@ApoorvPotnis ah you did mean than one, OK.
            SubscriptShiftDown                   = 150, -- 247 in font (multiplied to be consistent with cm)
            SubscriptShiftDownWithSuperscript    = 247, -- relates to the previous one (see math-act)
            SuperscriptBaselineDropMax           = 0.6*431, -- 250 in font (multiplied by 4.6333/2.99 (values in cm/values in lm))
            SubscriptBaselineDropMin             = 0.1*431, -- 200 in font

         -- SuperscriptBottomMin                 = 108, -- 108 in font .25 exheight
@ApoorvPotnis This is what is used for latin modern, perhaps ncm could do with something similar.
Nov 21, 2024 at 16:57, by David Carlisle
2 days ago, by David Carlisle
@JosephWright the fonts are open source, we should really lean on @mickep to fix them rather than patching them in context-specific Lua code. It could be a secret plan to just keep mentioning issues until he thinks of fixing the fonts without us having to say anything.
@ApoorvPotnis do you approve of this plan ^^ ?
15:59
so i've mailed quite a few times to Prof. Antonis Tsolomitis and he is quite receptive to changes. I think Daniel Flipo is very active as well. Khaled Hosny was contributing to Noto Sans. I am not aware about other font designers.
@DavidCarlisle Indeed. I would be very gratuitous if @mickep decides to fix the fonts themselves. The TeX Gyre fonts are dead and could receive some updates, I think.
@mickep I see. I shall try to understand these parameters. This honestly look quite complicated stuff to me.
@ApoorvPotnis It is not too complicated, but it is also not something you want to think about every day...
@DavidCarlisle I have MFbook, extensible characters are described mentioned at pages 317,318. If you have not MFbook, then the MFbook source is here ctan.org/pkg/mfbook and look at lines 17198--17244 of the mfbook,tex file.
also, since the font spacing issue is being discussed, does anybody have a solution to tex.stackexchange.com/questions/734370/…?
@ApoorvPotnis I asked @mickep the same a few days ago chat.stackexchange.com/transcript/message/66969418#66969418
Hi everyone! 👋🏻
Is there a way to sort the questions by the number of views?
16:12
@EmanueleNardi I don't think so for the entire life of the site - you can look at 'currently frequent'
@EmanueleNardi might be possible with the data browser, but don't ask me how, I never use that myself
@wipet yes I'd actually read that bit of source earlier today, but clearly I needed you to read it to me:-)
@EmanueleNardi you can see all my questions ordered by number of views here: tex.stackexchange.com/users/1090/david-carlisle?tab=questions
@DavidCarlisle I'm dead 😂
@DavidCarlisle and @wipet: Hans now has a luatex binary that seems to work like the traditional tex.
\def\Crap#1{$
       #1
\big  #1
\Big  #1
\bigg #1
\Bigg #1
\left #1 \vrule height 1cm depth 8mm\right.
$}

\Crap\bracevert\quad
\Crap\{        \quad
\Crap\Arrowvert\quad
\Crap\Vert     \quad
\Crap[         \quad
\end
Needs testing, because maybe it breaks the delimiters that actually are used. @DavidCarlisle I assume you will test it before the TL freeze...
@UlrikeFischer oh, hope a lualatex/xelatex solution emerges.
16:26
@mickep I can test, although I'm not sure I have a full build enviornment on this machine, I'll see. I can certainly test as part of the tl pretest. I assume from the macro name that someone was also delighted to lose an afternoon on delimiters no one uses:-)
@DavidCarlisle Yes, this delayed the ongoing page builder project. :(
@mickep Apologise to Hans for me. It's not my fault:-)
@DavidCarlisle Done :)
@mickep ??
@DavidCarlisle :)
@JosephWright We have fun with the page builder. Several mvls, page breaks can be decided in a similar way as for paragraphs, so it considers several pages and optimizes. And updated columnsets that uses this.
16:41
@mickep Ah, I wonder if it's at all similar to Frank's 'Alice' approach (though that is done with a standard LuaTeX)
@JosephWright I doubt. What exactly does he do?
17:06
@JosephWright a query about your name in the "convert to plain text" question :-)
17:16
@JosephWright Can one read about that somewhere?
17:27
@DavidCarlisle @JosephWright should we correct setspace to allow decimal \@ptsize tex.stackexchange.com/q/734794 ?
@DavidCarlisle After all, a search for Arrowvert on arxiv actually gives 10 hits.
 
1 hour later…
18:45
@mickep yes arXiv is big enough it has examples of everything taht could go wrong.
@mickep meanwhile it turns out that it's all Frank's fault.
@HolgerI.Meinhardt well the side effect in this case was that I then Hans lost an afternoon, and there will be an update to luatex in texlive 2025, but Frank may not have mentioned that in 1994:-) — David Carlisle 2 mins ago
@UlrikeFischer I wondered about that. I was going to suggest that we merge the other package but the setspaceenanced doc saying In other words: Package setspaceenhanced uses a completely different definition of \onehalfspacing and \doublespacing. doesn't encourage a merge. We could at least avoid the error on extended values though I guess.
@UlrikeFischer but what would you do, special case 0,1,2 then take a multiple of 1+\@ptsize for the rest?
@UlrikeFischer hmm scrextend extends things by making \@ptsize ten less than the pointsize, but a wider set of values. extsizes makes it the actual ptsize.
possibly special case ptsize=0,1,2 otherwise use \baselineskip ? @UlrikeFischer
\documentclass{article}\usepackage[fontsize=10.5pt]{scrextend}% 0.5 10.5, 12.59996

%\documentclass{article}\usepackage[fontsize=14.5pt]{scrextend}% 4.5, 14.5, 17.39995

%\documentclass[14pt]{extarticle} % 14, 14.4, 17
%\documentclass[12pt]{extarticle} % 12, 12, 14.5

\makeatletter
\show\@ptsize
\show\f@size
\showthe\baselineskip
19:07
@DavidCarlisle for a start I would simply round the value to the next integer so that one doesn't get a stray text.
@UlrikeFischer yes but then you get no error but get values you might want to change later if we did support numbers, I'll open a gh issue so we don't forget
%! TeX program = lualatex
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\usepackage{newpx} % Palatino

\begin{document}
Blob
\end{document}
! LaTeX Error: Command `\arrowvert' already defined.
! LaTeX Error: Command `\Arrowvert' already defined.
Suspiciously similar to things discussed here?
@Rmano go away I have had more than enough arrowvert issues today:-)
@UlrikeFischer oh not many watchers here github.com/LaTeX-Package-Repositories/setspace/watchers
19:23
@DavidCarlisle 😂
@Rmano oh good grief, what do you get for:
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
%\usepackage{newpx} % Palatino

\begin{document}

Blob $\Big\Arrowvert$
\end{document}
@Rmano oh I guess it's a feature (although the implemenation could be better)
> \Arrowvert=\protected\long macro:
->\__um_error:nx {legacy-char-not-supported}{\token_to_str:N \Arrowvert }.
l.8 \show\Arrowvert
! Missing delimiter (. inserted).
<to be read again>
\cs_set_nopar:Npx
l.9 Blob $\Big\Arrowvert
                      $
?

! Package unicode-math Error: Command `\Arrowvert` is a legacy maths symbol
(unicode-math)                that is not supported by unicode-math.

Type <return> to continue.
 ...

l.9 Blob $\Big\Arrowvert
                      $
?
yes I always hit x on an errror, never think to look at the help text
So I suspect I have to report that to newpx...
@Rmano yes although even if you avoid the error it doesn't work, so allowing unicode-math's non definition to survive would be best:
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\let\arrowvert\undefined
\let\Arrowvert\undefined
\usepackage{newpx} % Palatino

\begin{document}


Blob $\left\Arrowvert \rule{1pt}{1cm}\right.$
\end{document}
19:35
Yep, noticed. I have a nice = in the PDF...
Hmm. It seems that with unicode-math it is supposed to be \usepackage[otfmath]{newpx}, so maybe it's just user error...
@Rmano hmm the package could have spotted unicode-math itself and implied that option:-)
20:30
I was once tipped off that there is almost always a package for a very particular use case, and I was wondering if something like this existed as a package for making custom arrows which could be used both in text mode and math mode (inline math and display math)? Ideally with modern syntax, but if only deprecated alternatives are available, I'm still curious to check them out
20:43
@DavidCarlisle Hahaha!
@Atex If you don't need the special arrow head, just use \xrightarrow etc. from amsmath
20:55
@DavidCarlisle Really? :)
21:19
@Atex See also Table 288 and following in "The Comprehensive LaTeX Symbol List" for an overview of a lot of packages which provides such arrows in all kinds of shapes.
21:32
@mickep so it's commited and millions of users will be spared spurious brace bits in texlive 2025
@DavidCarlisle Or suffer some newly introduced bug. :)
21:54
@mickep you have so little faith in Hans.
@DavidCarlisle Well, we reran all our documents with Arrowvert, and none failed, so I guess it should be fine, but you never know.

« first day (5186 days earlier)      last day (44 days later) »