« first day (4926 days earlier)   

cis
1:11 AM
@DavidCarlisle
The typical American (English?) layouts, as shown, seem to be standardized to me.
You can find the svg-files on
· wikipedia: https://commons.wikimedia.org/wiki/Category:SVG_playing_cards
· or better here, for the same and more: https://www.me.uk/cards/

This is a discussion that interests me anyway:

The layout as shown is known. I have two poker decks with this US-layout.
The French or the German card sheet looks significantly different.

1. I have a theory that this layout is required in US casinos (Las Vegas etc.).
PS:
The typicall (French) deck what is known and used here looks something like this.

And since, unlike the American deck shown above, these are not nice "etchings", one can't easily create a ttf-file from them.

But maybe I can still find a good solution for the French card deck....
 
 
4 hours later…
5:45 AM
@barbarabeeton the real text font (not in texlive) is sans serif in the first place. I'm looking for a good partner for math. Kpfonts sans fits ok, but it's numbers are noticeable taller than the numbers of the text font. So switching the numbers are the first step.
@barbarabeeton then I'm experimenting with replacing the letters as well (not so smoothly)
@DavidCarlisle yes, I also have this, it works in both pdflatex and lualatex. The problem I was referring to was using the fontspec/unicode-math tools to to replace ranges of stuff. Fx the upright letters. I'll make a proper example latex. The font is a truetype text font
 
@daleif Out of curiosity, what sans text font do you try to find a match for?
 
6:36 AM
@mickep guess, the AU one. Specifically for beamer. Note it is much lighter than the default beamer font, so not a good match. Was plying with firasans at one point but seems to be missing several symbols
 
@daleif Did you try the new lato math? (I have not really, so I don't even remember its look)
 
7:10 AM
@mickep it needs to also be available in some form for pdflatex.
@DavidCarlisle I was trying to do something like this
\documentclass{article}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Termes}
\setmathfont{KpMath-Sans}
\setmathfont{TeX Gyre Termes}[range=it/{latin,Latin}]
\begin{document}
\textit{acb}$abc$
\end{document}
And gets
Package fontspec Warning: Font "TeXGyreTermes" does not contain requested
(fontspec) Script "Math".



Package fontspec Warning: OpenType feature 'Style=MathScript' (ssty) not
(fontspec) available for font 'TeXGyreTermes' with script
(fontspec) 'CustomDefault' and language 'Default'.



Package fontspec Warning: OpenType feature 'Style=MathScriptScript' (ssty) not
(fontspec) available for font 'TeXGyreTermes' with script
(fontspec) 'CustomDefault' and language 'Default'.
I do seem to be able to mess with stuff like letters in pdflatex as well using \DeclareMathSymbol{0}{\mathalpha}{digits}{0}` and setting the fonts for \mathrm, \mathsf, \mathbf, just not sure if I break something by doing so. I can se the operators font in pdflatex, but should not touch that under lualatex.
 
@daleif yes "Style=MathScript' (ssty) " that's why I suggested using DeclareMathSymbol directly, you wouldn't get that then.
 
7:47 AM
@DavidCarlisle in that case there is probably not much to gain by using kpfonts-otf over \RequirePackage[sfmath,notext]{kpfonts} for all engines. But users of lualatex would probably expect unicode-math at this point.
BTW: here is the prime reason why I at least change the numbers:
kp is the latter. That difference looks bad. The text size (withput letter subs) of the text and math size match well in size, so \DeclareMathSizes would be the wrong tool to use here. Thus sub the numbers it is.
 
@daleif probably not, there are reasons why lualatex still doesn't default to unicode math....
 
 
1 hour later…
8:58 AM
Here is another interesting one, it gives an error under lualatex (\mathrm) already defined, but does not complain about \mathsf. Compiles under pdflatex
\documentclass[a4paper]{article}
\usepackage[sfmath,notext]{kpfonts}
% some sf font, ignore that the font does not work under lualatex
\renewcommand{\sfdefault}{phv}
% it compiles under lualatex if \AtBeginDocument is removed
\AtBeginDocument{
  % these works
  \DeclareMathAlphabet{\mathsf}  {\encodingdefault}{\sfdefault}{m}{n}
  \DeclareMathAlphabet{\mathit}  {\encodingdefault}{\sfdefault}{m}{it}
  \DeclareMathAlphabet{\mathbf}  {\encodingdefault}{\sfdefault}{bx}{n}

  % this fails (\mathrm already defined) under lualatex, but not under pdflatex
I'm of course not sure one is allowed to change these macros like this. I have another strange bug that only comes when both \mathbf and \mathrm have been used. Haven't been able to reduce fully yet.
But that manifests it self under pdflatex and not under lualatex.
 
9:16 AM
@daleif you shouls use Set not Declare to avoid using up new slots but the reason for the error if you use unicode-math is that you can over ride existing math alphabets so some silently change but \mathrm has been aliased to be \symrm so gives an already defined error
 
9:37 AM
@DavidCarlisle and then one gets hit by the fact that it has a different syntax. Of to TLC3 it is.
TLC3 seems to mention that one should use both declare and set as declere resets all previous set commands. Hmm.
 
9:59 AM
@DavidCarlisle ooh now you can finally replace Cygwin: github.com/microsoft/MS-DOS
4
 
@PauloCereda Starting MS-DOS...
 
@JosephWright ooh
 
10:15 AM
@DavidCarlisle @egreg what could possibly go wrong: twitter.com/richontech/status/1214955597025538049
 
 
1 hour later…
11:31 AM
@PauloCereda no pineapple :(
 
@DavidCarlisle oh :)
 
Hi, could anyone tell me if there's an easy way to typeset a dot below a letter in text mode? It seems that \.s will typeset a dot above the letter s. Is there any similar command in LaTeX for typesetting a dot below a letter? Thanks!
I know about the \underset and \overset commands, but they work only in math mode, I believe.
 
@TheAmplitwist \d{e}
 
Amazing. Thank you @daleif
 
@TheAmplitwist see symbols-a4 page 26 (texdoc.org/serve/symbols/0)
 
11:42 AM
@TheAmplitwist as @daleif says, in general, \d but for most letters that take a dot in European languages you can type the letter directly eg
 
I see! Thank you @DavidCarlisle, and @daleif once again.
 
12:32 PM
@PauloCereda That final customer is obviously paid!
 
@PauloCereda define "perfect" ...
 
 
2 hours later…
cis
2:19 PM
http://karten.froja.de/karten.php?menu_id=1_3
This is called the "Berlin Image" and I would like to Inkscape / svg these png-files.
But this seems to be a diffucult work.
 
 
2 hours later…
4:38 PM
@cis why inkscape? if they are just png files svg isn't going to help much can't you directly import in to fontforge?
 
 
2 hours later…
6:28 PM
@cis It could indeed be the case that the design of the Berlin pattern is licenced by someone ... you could ask at ASS Altenburger who are one of the oldest playing card producers in Germany, I think. Maybe, they can even tell you whether they use vector graphics (I doubt it)
 
cis
@DavidCarlisle
I thought, I have to vectorize that. I simply png in Fontforge isn't that good, I think.

@JasperHabicht No problem, we can use a "Berlin pattern" from 1935 or earlier. Important is to find a method to make this a vector-graphik.
 
@cis There are lots of gradients in the design. You might be able to trace the outlines, but adding the gradients will be difficult. Also, traced outlines are normally a bit wobbly, so the outcome might not be as intended.
 
Hmmm... I seem to have a problem with the TravisCI virtual machines and context. I am using a Ubuntu LTS to do the check (I want to be sure to have a bit of backward compatibility), and they seem to be stuck on Pregenerating ConTeXt MarkIV format. This may take some time... and the job is killed after more than 10 minutes. Is that a known thing, or should I dig more?
Basically the machine (tried on 20.04 and 22.04) does a sudo apt-get install -y build-essential texlive-xetex texlive-pictures texlive-science pandoc context, which used to work... at least one month ago.
 

« first day (4926 days earlier)