« first day (3812 days earlier)      last day (1122 days later) » 

7:31 AM
Another day, another silly question for the Uber-LaTeXers... referred to tex.stackexchange.com/a/591930/38080
\begin{wrapfigure}{r}{0.50\textwidth}
    \hfill\begin{minipage}{0.95\linewidth}
    \includegraphics[width=\linewidth]{example-image-a}
    \caption{A long caption that spans more than one row}
\end{minipage}
\end{wrapfigure}
Why I can get away without % at the end of the three internal (most indented) lines?
And by the why, good morning everyone!
 
@DavidCarlisle make4ht seems to try to prevent fontspec to use open type fonts (as the binary can't handle them, tex.stackexchange.com/a/122585/2388). Its patches in usepackage-fontspec.4ht contains \cs_set:Nn \fontspec_set_family:Nnn{\def#1{\relax}}, and this then fails when unicode-math tries to setup a font by using the family name stored in #1. (there could be more problematic \relax around)
 
8:02 AM
@UlrikeFischer yes I think I got that far, I tried to disable unicode-math completely but didn't get the timing right. meanwhile on xskak before I gave up last night I ran make4ht here and aand at texlive.net both with fuly up to date tl2021 and only get teh offset at texlive.net possibly a difference in one of the external tools used?
@Rmano because spaces are ignored in vertical mode
 
@DavidCarlisle what is the make4ht call for the xskak example? And where can I find your configuration?
 
@DavidCarlisle so nor includegraphics nor caption start a paragraph?
 
@Rmano oh sorry includegraphics does, so that one is because one skip is removed at the end of the paragraph by tex's line breaker so you don't have to add % at the end of every paragraph in the document
@UlrikeFischer a bit later, need to do some work stuff, was getting late last night and I have too many unchecked in changes, I'll make a reproducible example in a bit
 
@DavidCarlisle no hurry. I probably can't do much today anyway.
 
8:18 AM
> IBM Creates a COBOL Compiler For Linux On x86
 
@UlrikeFischer but this works for me, with an empty directory out to take the result and running make4ht -d out test-xskak.tex learnlatex4ht,2,mathjax,svg in a directory with these github.com/davidcarlisle/latexcgi/tree/main/make4ht
 
@DavidCarlisle Ah, thanks! So that worked by chance (seems that caption is invisible in this case). Better use a % here anyway...
 
@Rmano only if you always put a % after every includegraphics, I'm sure most people don't
 
@DavidCarlisle ah, I never fixed unicode-math, as nobody ever requested that :)
 
@michal.h21 :-) please:-) meanwhile have you any idea about the offset (of ~10pt) for the black square and the blue crosses in teh chess exanple if I look at teh generated document3.svg the width is different then all the main board svg is identical then the crosses have an offset in the coordinates in the first M segment of <path d='M68.328 462.2891L51.219 479.3945' stroke='#00f' fill='none' stroke-width='1.99266' stroke-miterlimit='10' stroke-linecap='round'/>
at texlive.net I get <path d='M78.289 462.2891L61.184 479.3945' stroke='#00f' fill='none' stroke-width='1.99266' stroke-miterlimit='10' stroke-linecap='round'/> with 78.29 instead of 68.328 everything else is the same
 
8:37 AM
quack
 
<em>breakfast</em>
 
@DavidCarlisle oh no
 
@DavidCarlisle the example from your page looks the same with the alternative tikz driver and this xskak.4ht:
\NewConfigure{chessboard}{2}

% this should put configurable hooks around \newchessgame
% contents printed by this command should be printed to image
% \newcommand\:tempaboard[1][]{\a:chessboard\o:newchessgame:[#1]\b:chessboard}
\newcommand\Save:TikzPict{\let\old:a:tikzpicture\a:tikzpicture\let\old:b:tikzpicture\b:tikzpicture\let\a:tikzpicture\relax\let\b:tikzpicture\relax}
\newcommand\Restore:TikzPict{\let\a:tikzpicture\old:a:tikzpicture\let\b:tikzpicture\old:b:tikzpicture}
\newcommand\:tempaboard[1][]{\a:chessboard\o:chessboard:[#1]\b:chessboard}
 
8:55 AM
@michal.h21 I'm not using tikzpicture but pgfpicture (I didn't dare to load the whole tikz at the time), so I wonder why you need the tikzpicture patches.
 
@michal.h21 hmm the main board works here with your suggested xskak.4ht but \mainline does not but at texlive.net some stage is returning 1 as result status so the website just shows the log, can't debug now.
 
@UlrikeFischer I think the TikZ comes from chesboard.sty in fact. So the xskak.4ht should be probably renamed to chessboard.4ht and it still produces the same result.
@DavidCarlisle I think that there may be some issues with SkakNew.htf, because it contains less characters than the original tfm files
 
@michal.h21 yes I know that I'm loading tikz now in chessboard. But I'm not using \begin{tikzpicture} but \begin{pgfpicture}.
 
@michal.h21 yes I get some warnings about the font but they didn't affect the return result (and $? reports 0 when I run it here, so I'm not sure why I'm getting 1 on the server)
 
9:10 AM
@DavidCarlisle echo 1 :)
 
@UlrikeFischer ah, it is OK, because the TikZ driver works with PGF too. It is only necessary that no nested \Picture+{} commands are used. They are used by \a:tikzpicture, which is executed even in PGF environments. This is ther reason for \relaxing of \a:tikzpicture in xskak.4ht
@DavidCarlisle it would be best if you could run make4ht -a debug on the server and get the full output, not just the log file.
 
@michal.h21 yes but also as the server is a bit paranoid it deletes everything the moment the run finishes so I'll set up a version that does not do that. but can't do that now....
 
9:26 AM
@DavidCarlisle maybe try to add skakNew.htf from this answer to your samples dir. it could help if the issue was the font. but I don't think this could cause a fatal error in the first place :)
 
@michal.h21 I tried that but apart from comments isn't it the same as the one in tl2021?
SkakNew  32 121         %
'' ''           32      % SkakNew.htf 2020-05-27-14:14
'!' ''          33      % Copyright 2017 TeX Users Group
'&#x201D;' ''   34      % Released under LPPL 1.3c+.
'#' ''          35      % See tex4ht-cpright.tex for license text.
@michal.h21 this one ^^
@PauloCereda thank you for your useful contribution. Perhaps you could also contribute to the important events of today
 
@DavidCarlisle ooh
 
9:48 AM
@DavidCarlisle yes, it looks that it is the same file. so it probably isn't caused by that. full make4ht -a debug is necessary then :(
 
10:19 AM
@PhelypeOleinik thanks for fixing all @PauloCereda's errors:-)
 
@DavidCarlisle oi
 
@PauloCereda ?
 
@DavidCarlisle "errors" /sob
 
@PauloCereda I'm not mean but:
2 days ago, by Phelype Oleinik
@DavidCarlisle And now I can blame @PauloCereda that duck for any other typo in the translation
 
@DavidCarlisle oh
 
10:35 AM
@DavidCarlisle It was about time I updated :)
 
 
2 hours later…
12:52 PM
I'm glad to hear TUG2021 will be virtual like last year. Otherwise I realistically couldn't participate.
 
@LaTeXereXeTaL There are already two confirmed ducks. :)
 
@PauloCereda I'm sure there will be more. They travel in flocks.
 
@LaTeXereXeTaL or British Airways. :)
 
@PauloCereda The ONLY way to fly...
 
@LaTeXereXeTaL ooh
 
1:31 PM
@PauloCereda conference dinner
 
@DavidCarlisle oh no
@DavidCarlisle besides, you will have to step in again to answer questions
 
@PauloCereda because ducks are so unreliable
 
@DavidCarlisle oh
 
1:55 PM
It sometimes pay off to check examples in ISO standards:
stream
/H1 <</MCID 1>> BDC
BT T* (Abzählreim) Tj ET EMC
/Sub <</MCID 2>> BDC
BT (Ene mene miste) Tj ET EMC
/Sub <</MCID 3>> /BDC
BT (Es rappelt in der Kiste) Tj ET EMC
/Sub <</MCID 4>> BDC
BT T* (Ene mene muh) Tj ET EMC
/Sub <</MCID 5>> BDC
BT (Und raus bist Du!) Tj ET EMC
endstream
4
 
@UlrikeFischer ???
Question: how useful is \num[quotient-mode = fraction]{1/2}? I'm thinking of dropping it, or at least going to a new approach (\fp_eval:n to a decimal, allowing formatting of decimals-to-fractions again using the FPU)
 
@JosephWright you need to read the text: Ene mene miste, es rappelt in der Kiste ... youtube.com/watch?v=A4G27Hw8FnE
@JosephWright you mean the input should be 0.5 and then you calculate that this is 1/2?
 
2:18 PM
@JosephWright breaking change?
 
@UlrikeFischer Something like that, yes: fractions don't come up in real measurements, only in calculations, and they don't fit various things
@PauloCereda Yes: v3 has a number, I will document and provide continued support for degrading to v2 (it's not in yet but I'm going to use the kernel mechanisms)
 
@JosephWright what do then do with 1/3?
 
@UlrikeFischer The same :)
 
@JosephWright I will keep it and leave the responsibility to the user and save internal calcs. :)
 
@JosephWright but with which input? 0.33, 0.333, 0.3333?
 
2:20 PM
@UlrikeFischer \num[evaluate-expression]{1/3}
 
@UlrikeFischer \num[definitely-not-blame-ulrike]{0.33}
 
@PauloCereda Take a look at GitHub: you'll see there is a lot of work to have proper internals with an API defining relationships between different part
 
@JosephWright cool, will do
 
@UlrikeFischer I likely have to think about how to reverse these calcs - I might run out of places
 
@JosephWright how do you get a fraction back out of a decimal? eg 355/113 ? who does "real measurements" ?
<!DOCTYPE html><html>
<head>
<title>An Example Document</title>
<!--Generated on Thu Apr  8 14:13:01 2021 by LaTeXML (version 0.8.5) dlmf
.nist.gov/LaTeXML/.-->
<!--Document created on January 21, 1994.-->

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="LaTeXML.css" type="text/css">
<link rel="stylesheet" href="ltx-article.css" type="text/css">
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" type="
text/javascript"></script>
 
2:25 PM
@DavidCarlisle GCD on the decimal part
@DavidCarlisle Might need 'big' integers ...
 
@DavidCarlisle ?
 
@JosephWright sure that will give you a fraction but not necesarily the one you started with
@UlrikeFischer comment on line 4 the main interesting bit
 
@DavidCarlisle Well true
@DavidCarlisle There's always parse-numbers = false, but that won't turn 355/133 into \frac{335}{133}
@DavidCarlisle, @UlrikeFischer, @PauloCereda I guess I'll have to see what feedback I get
 
In physics and chemistry, the law of conservation of energy states that the total energy of an isolated system remains constant; it is said to be conserved over time. This law, first proposed and tested by Émilie du Châtelet, means that energy can neither be created nor destroyed; rather, it can only be transformed or transferred from one form to another. For instance, chemical energy is converted to kinetic energy when a stick of dynamite explodes. If one adds up all forms of energy that were released in the explosion, such as the kinetic energy and potential energy of the pieces, as well as heat...
 
@JosephWright if you start with 22/7 you want 22/7 not 314285714/10000000
@JosephWright but ignore me I never used units at all when I was doing mathematics for a living
 
2:30 PM
@DavidCarlisle yes, but who run it? you? and where?
 
@UlrikeFischer me at texlive.net
 
@DavidCarlisle Also true: my feeling is that this is less likely - I know people would like \num[some-option]{0.5} to give \frac{1}{2}
 
when I was at school circles always had radius a multiple of (22/7)cm so the calculations worked out and that would rather be lost if approximated by a decimal, but calculators probably mean that pi gets used anyway these days (or for the last few decades)
 
@DavidCarlisle :)
 
@DavidCarlisle and what is the magic comment? % !TeX LaTeXML gave me only a pdf.
 
2:35 PM
@UlrikeFischer magic comment currently is "install private ssh key on the server, then ssh to texlive.net set path to include ~david/zz and then use latexml on the commandline)
 
@DavidCarlisle ooh
@DavidCarlisle new bantham
 
@PauloCereda bantham is no more
 
@DavidCarlisle oh no
 
3:04 PM
@DavidCarlisle You cracked it?
 
3:39 PM
@JosephWright late to the game, but --- my 2 ¢: I would like not to have automatic conversion like that (they are a rabbit hole). If there is a unit, 0.5~cm is much better than $\frac{1}{2}$~cm. I know there is quite a big usage of fractions in the Imperial system, but my vote would be to produce the fraction only if explicitly inputted like \num{1/2}
3
 
@Rmano Oh indeed: it's about how I provide interfaces for existing functionality when re-writing - with hindsight, there are a few things that were not a good idea concpetually
 
@Rmano I absolutely agree :D depending on the context you must enter the unit of measure and pi (in school terms) is still used as "22/7" even, in school terms, mixed numbers 3½ are still used (like recipes for cooking a duck).
 
4:12 PM
@PabloGonzálezL oh no
 
4:27 PM
@JosephWright @UlrikeFischer vvv
Now I may need Bruce to help me configure it:-)
 
Feature request: siunitx should throw an error whenever used in a recipe for cooking a duck
6
 
@samcarter_looks_forward_TUG'21 certainly: a proper feast requires at least two.
 
@DavidCarlisle Main site?
 
@JosephWright yes
@JosephWright %! TeX latexml also works
 
@DavidCarlisle oi
 
4:41 PM
6 hours ago, by David Carlisle
@PauloCereda ?
 
Mar 4 at 15:48, by Paulo Cereda
@DavidCarlisle you are mean
 
Jun 17 '18 at 15:39, by Alan Munn
@PauloCereda You are mean.
 
May 22 '19 at 18:04, by Paulo Cereda
@PauloCereda you are not mean :)
ooh
 
5:07 PM
@DavidCarlisle hm it works at learnlatex but not at texlive.net?
 
@UlrikeFischer oh I haven't commited the js at latexcgi github give me a sec..
@UlrikeFischer should work once the gh-pages site updates
 
@DavidCarlisle it worked now ;-)
I got around 50 new binaries today -- large update for the small error that nul wasn't found ;-)
 
@UlrikeFischer Windows was the root of all evil. :)
 
5:49 PM
@PauloCereda s/Windows/Ulrike/
 
@DavidCarlisle oh
 
@PauloCereda that should have been "oh no" ;-(
 
@DavidCarlisle oh no
@UlrikeFischer ^^ <3
 
 
1 hour later…
7:17 PM
@UlrikeFischer @michal.h21 I see where make4ht is erroring, actually I saw similar the other day there is a hidden picture in \mainline that makes no output and you get
Entering document.tmp

[INFO]    mkutils: Parse LG
[INFO]    make4ht-lib: parse_lg process file: document.html
[INFO]    make4ht-lib: parse_lg process file: document.html
[INFO]    make4ht: outdir: outdir/
[INFO]    mkutils: Copy: cp "document.html" "outdir"
[INFO]    make4ht-lib: parse_lg process file: document.css
[INFO]    make4ht: outdir: outdir/
[INFO]    mkutils: Copy: cp "document.css" "outdir"
[INFO]    make4ht-lib: parse_lg process file: document.tmp
 
@DavidCarlisle ooh bad
 
I need to get a better interface to saving the logs but I'll put my xskak back for now which makes mainline make an omage (and locally restores \chessboard not to do so)
 
7:35 PM
@DavidCarlisle do you have the files used here? And the make4ht call? Then I would try locally.
 
7:45 PM
@DavidCarlisle I can see why it happens, it tries to copy nil instead of a filename to the output dir, but I don't understand how is that possible :o
 
@MarcelKrüger do you know how luatex handles links in rtl context?
 
8:05 PM
@UlrikeFischer the call is make4ht -d out test-xskak.tex learnlatex4ht.cfg,2,mathjax,svg with the files in the make4ht directory in the latexcgi github, but I don't get the offset crosses here nor the error. either with the xskak.4ht that's checked in or the version Michal put in chat last night
 
@UlrikeFischer They should work the same as in other contexts. Do you have a specific issue?
 
@michal.h21 actually the chess error might be a mis configuration at my end, but if you have a suggestion for unicode-math that eould be good, as ulrike says it isn't happy that fontspec is blocked from loading, the learnlatex example is
% !TeX make4ht
% !TEX lualatex
\documentclass[a4paper]{article}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Pagella}
\setmathfont{TeX Gyre Pagella Math}

\begin{document}

One two three
\[
\log \alpha + \log \beta = \log(\alpha\beta)
\]

Unicode Math Alphanumerics
\[A + \symfrak{A}+\symbf{A}+ \symcal{A} + \symscr{A}+ \symbb{A}\]

\end{document}
 
@MarcelKrüger there is a question on the main site, the link area goes in the wrong direction:
\documentclass[12pt]{article}

\begin{document}
\pardir TRT \textdir TRT \linedir TRT

X
\pdfextension startlink
attr {/Border[0 0 1]}
user{
/Subtype/Link%
/A<<%
/Type/Action%
/S/URI%
/URI(blub)%
>>%
} Linktext
\pdfextension endlink
y

\end{document}
 
@michal.h21 processed with "mathjax,svg`
 
@MarcelKrüger actually with texlive 2020 the link area is right. So perhaps the correction they made for the rlap case broke this here?
 
8:21 PM
@PauloCereda -- Was? You mean that's changed? (And Windows *not*= @Ulrike. She's merely a (presumably willing) victim.) (Explication for Ulrike: Last week, the entire Windows-attached network at Brown had to be shut down on account of an intrusion.. Not sure how long it took to get everything patched up, or how much was lost, but there sure was a lot interrupted, and I think that included some research projects that weren't easily restarted.)
 
@UlrikeFischer Probably the non matrix case hasn't been adapted. Simple workaround: Add \pdfextension setmatrix{1 0 0 1} somewhere before the link...
 
@MarcelKrüger that works. Needs it be to be grouped somehow or reset later? (I'm very bad with directions, I always say right when I mean left ...)
 
@UlrikeFischer You don't have to reset it, it just scales by a factor of 1 and therefore doesn't really do anything. It's just used to trigger the codepath which can deal with more complicated coordinates.
 
@DavidCarlisle I would just block unicode-math from loading and define alternative versions of the user commands.
 
@MarcelKrüger seems to work fine. Do you want to answer tex.stackexchange.com/q/592022/2388?
 
8:34 PM
@DavidCarlisle this is the most basic version: gist.github.com/michal-h21/f1ad02d2ee63b2571e32fb4363f4ce8e
 
@UlrikeFischer Yes, I'll write an answer.
 
8:56 PM
@DavidCarlisle has something changed with the magic commands? I had to use the learnlatex settings to start make4ht?
@DavidCarlisle the make4ht call at texlive.net seems to find another driver file:
/usr/local/texlive/2021/texmf-dist/tex/latex/webquiz/pgfsys-dvisvgm4ht
 
9:11 PM
@UlrikeFischer hmmm
@UlrikeFischer not unless @PauloCereda broke something, let me check...
 
@DavidCarlisle hm, it seems to work again.
 
@UlrikeFischer your blue crosses are on the squares. Good call on the def file I gzipped the webquiz one so it isn't found
@michal.h21 thanks
 
@DavidCarlisle but I will report this, it is not ok that there are two def file around.
 
9:27 PM
@UlrikeFischer well yes but there's only one on ctan:-)
 
@DavidCarlisle I have two in texlive:
c:/texlive/2021/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-dvisvgm4ht.def
c:/texlive/2021/texmf-dist/tex/latex/webquiz/pgfsys-dvisvgm4ht.def
 
@michal.h21 ^^^ unicode-math working! I added mathjax definitions for \symbb alias them to \mathbb etc plus your code from the gist
@UlrikeFischer ah OK so that makes three, the one I have locally and the webquiz ones are variants of the one from Michal's github (well mine is exactly that)
 
@DavidCarlisle well a local version for tests is fine, but a foreign package shouldn't distribute pgfsys-drivers under the same name -- that's bad for my crosses ;-) Why didn't texlive.net find your version. Because it was in tex/generic like the original from pgf?
 
@UlrikeFischer yes it's in texmf-local/tex/generic/tex4ht
@JosephWright ^^^ another failed example knocked off the list
 
@DavidCarlisle Yay
 
Bob
9:52 PM
Im looking for a document class appropriate for writing picture heavy instruction manual. Maybe something where the pictures could go in a column/margin next to their accompanying text. Can anyone recommend something?
 
@DavidCarlisle is anything still open?
 
@UlrikeFischer yes the mathtools one but there are open issues on adding mathtools support to mathjax so that may just fix itself. then non ascii characters being dropped in xetex, that's a bit of a pain, If I understand it right fontspec gets blocked so the characters are not in the font used in the dvi but with luatex they get put in the html anyway and so appear in teh final pdf, but with xetex they get dropped from the dvi so they are gone. compare lesson-14 with xelatex and lualatex
@UlrikeFischer then there are ones with \directlua in math that probably are not fixable unless we configure math4ht to handle the math rather than passing it vverbatim to mathjax
 
10:15 PM
@DavidCarlisle hm the xetex case is clearly because of the missing chars, but I suspect that there is no way to trick it.
 
@UlrikeFischer one way would be to use luatex, I'm not forced to use -x just because it says !tex xelatex ...
 
@DavidCarlisle cunning plan ;-)
 
@UlrikeFischer given that fontspec is more or less disabled anyway I don't think there are many xetex commands that we couldn't make no-op or alias to luatex near enough equivalents for the make4ht setup
 
@DavidCarlisle there would be a problem if someone tries to use a xetex only package. But if tex4ht doesn't support it it would probably fall anyway.
 
10:32 PM
@UlrikeFischer well that's what I mean if it can get away with disabling fontspec it can probably get away with disabling XeTex specific features. But plan b assuming tex4ht doesn't care too much which font is used is to use some big unicode font rather than lmr always so there are not so many missing characters.
 
@DavidCarlisle the question is if tex4ht can handle a large font, I have no idea what it is actually expecting in the dvi.
 
@UlrikeFischer a problem for another day:-)
 

« first day (3812 days earlier)      last day (1122 days later) »