8:37 AM
Top of the morning to you all!

8:49 AM
@PauloCereda How was the shake yesterday?

@egreg Very shaky. :) I was trying to type an article with my laptop on my lap, but there was no way. So I opened a pack of chips and eat it. :)

@egreg Exactly what should this be compiled with, both pdftex and xetex complains about missing tfm files.

@daleif It should work with XeTeX

@DavidCarlisle nope, \char<number> seems to give me nothing but blank boxes in the output (testing using xelatex)
@egreg I get this (the font is in the same folder as the .tex file)
xetex t.tex
This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016) (preloaded format=xetex)
restricted \write18 enabled.
entering extended mode
(./t.tex
kpathsea: Running mktextfm AULogoReg
/opt/texlive/2016/texmf-dist/web2c/mktexnam: Could not map source abbreviation A for AULogoReg.
/opt/texlive/2016/texmf-dist/web2c/mktexnam: Need to update /opt/texlive/2016/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input AULogoReg

9:08 AM
@daleif Forgot the quotes, sorry:
\font\test="AULogoReg.ttf"

\count255=0
\loop\ifnum\count255<"10FFF
\advance\count255 1
\iffontchar\test\count255 \the\count255={\test\char\count255}\endgraf\fi
\repeat

\bye

@daleif what number do you get back from xetexglypindex thing, as I think you said that worked?
@JosephWright do you think it's worth putting in a luaotfload request that luaotfload.main () should be a no-op if called twice? (even if they add that I'm not sure we could use it, would make the format depend on a bleeding edge luaotfload...

@egreg seems to give me the same error (xetex)

@daleif Is the font available somewhere for testing?

@DavidCarlisle numbers? This does work in xelatex: \XeTeXglyph\XeTeXglyphindex"uniF030"

@daleif yes so what does \count0=\XeTeXglyphindex"uniF030" \showthe\count0 say?

9:18 AM
@DavidCarlisle Probably (good idea long-term), but we can't rely on it now ...

@daleif it could be that the glyphs are not encoded at all in which case they would not be accessible with \char and only accessed via \extexglyph*

@egreg I was thinking the same, I'm not sure it is open to the public, try medarbejdere.au.dk/fileadmin/www.designmanual.au.dk/hent_filer/…, it should contain the logo font, AU passata and the strange Peto font
Otherwise, I'll just email it to you.

@daleif It should be \font\test="[AULogoReg.ttf]", but no character is seen. :(
@daleif If I open the font with FontForge, I see that the characters have no assigned code point.

@DavidCarlisle which basically makes the font unusable with other engines?

9:32 AM
@egreg so it is some homemade stuff not complying to standards? But then again where should they place logos?
I'm considering extracting the paths from the four logos and just drawing them in tikz, seems easier than this

@daleif They should choose any code point in the PUA.

@egreg PUA?

@daleif Private Use Area

@egreg oh, so basically they did not define the font correctly? Yet Word uses it just fine.

@daleif probably you can get to the glyps from lua (not sure how but basically the entire font is exposed as a lua table, so the information will be ther somewhere...) but from pdftex you woudl anyway need some map file mapping it to something in teh range 0-256 so you would have to re-encode it even if it was encoded.
@daleif what input do you give Word to access a glyph?

9:39 AM
@daleif What is the problem with using \XeTeXglyph\XeTeXglyphindex"uniF030" ? Imho this is more or less what word does internally too if you click on the glyph in some font table. The glyph is not encoded so you have to get the slot. Would be the same with e.g. wingdings.

@JosephWright github.com/lualatex/luaotfload/issues/390 (or maybe you get sent that anyway:-)

@DavidCarlisle Yes, saw that

@JosephWright I suppose I need \IfFileExists{luaotfload.sty}{\RequirePackage{luaotfload} in everyjob :(
... or maybe I should just define \ver@luaotfload.sty

@DavidCarlisle no idea, it is used in a corporate letter template, and I'm updating my LaTeX version of it.
@UlrikeFischer how do you use that in pdflatex or lualatex? I'd rather not want to force users to use an engine they are not familiar with.

@JosephWright we should change the error message anyway, I think the wording is from a misreading of the code
  if callbacktypes[name] then
luatexbase_error("Unable to create callback " .. name ..
"':\ncallback type disallowed as name")
having an entry in callbacktypes doesn't mean the argument is a type it means callback name already defined

9:59 AM
@daleif With lualatex search for luaotfload.aux.slot_of_name in tex.SX. For pdflatex you will have to create a tfm and e.g. a type1 version of the font and a mapping. Imho if you want to be engine independant it is much easier to create a graphic (from the font if you want) and use this.

1 hour later…
11:04 AM
@UlrikeFischer I am considering not using the font at all, too much hassle. The Passata truetype I already have in a Type 1 version.
@UlrikeFischer the problem with the graphic vs font, is changing color. Currently I draw the first of the logos in Tikz instead of installing the font it comes from (The Peto one in the zip), this Logo font with four chars is rather new.

@egreg For a minute, I thought of this: pt.wikipedia.org/wiki/Senta_a_pua!_(s%C3%ADmbolo)
@egreg: trivia: the bird is an ostrich representing the Brazilian pilots. They used an ostrich to symbolize they had to have a strong stomach to eat the American food. :)

@daleif To some extend you can change the color of a graphic: tex.stackexchange.com/questions/65071/… (but tikz is probably the better way).

11:20 AM
@UlrikeFischer Agreed. Any idea on how one could extract the curve information from a truetype glyph? I'd rather not want to manually trace it. FontForge seems to be able to see it, just don't know how to extract this into comething human readable.

11:33 AM
@PauloCereda Do you know what an “ostrica” is in Italian?
@PauloCereda Hint: it is not an ostrich (struzzo).

@egreg ooh in Portuguese is ostra. :)

@PauloCereda I remember a restaurant in rue Dante in Paris (rive gauche, not far from Nôtre Dame and the Sorbonne) where hundred of oysters were in display.

12:01 PM
@egreg oh my

@DavidCarlisle hehe, have a look at \XeTeXglyph\XeTeXglyphindex"uniF031" this is our university seal. Note the error at the top of the anchor? At least we found that.

12:16 PM
named paths and scopes interact very weirdly in tikz
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}
\tikzset{set/.style={circle,draw,minimum size=2cm}}
\begin{scope}
\node[set,name path=a] {};
\end{scope}
\begin{scope}
\node[set,name path=b] at (.5,0) {};
\end{scope}
\draw [name intersections={of=a and b, by=x}] [draw] (x) circle (3mm);
\end{tikzpicture}
\end{document}
complains that path a is unknown,which may make sense if named paths are local to a scope
but if you remove the scope from the b path, everything works fine

@Maeher Odd indeed

it's not even clear to me if named paths should be local to a scope... I would argue that they shouldn't, but from my experiments I cannot get an idea what the intended behavior was

@Maeher Been hit by this as well. There is a global version of name path
name path global=...

@daleif Presumably due to the fact that the names are scoped at the 'TeX end' but the scope environment really works at the 'driver end'

@JosephWright perhaps. Why are nodes global in tikz? even between tikzenvs? I've misused this to make a feature that could display index entries, using tikz to move items in the margins so they did not overlap.

12:27 PM
@daleif I've not traced all of this through and comments in pgf are sparse, but I have done some basic experiments with graphics scoping and it is tricky! Till et al. presumably have their reasons

I was trying to keep a \tikzset local in a macro definition and thought a scope would be a good idea. But that now meas I will have to be careful to use name path global when using named paths in conjunction with that macro... well

@JosephWright Well I'm not complaining, it works (almost) fine for the project I made it for.

@daleif The gobal nature of node names was pretty much why I expected named paths to be global as well

3 hours later…
3:16 PM
@UlrikeFischer hehe, using FontForge scripting to convert the font to svg and then using that svg information in tikz seems to work quite well

4:00 PM
Just for reference, here is a comparison, black is the logofont (xelatex) red is tikz (after rescaling, I don't quite know which units the svg came out in)
I'm going to use the tikz solution, too much hassle to use this logo font.

4:14 PM
I need to learn to read, the scale is in the SVG file.

Friends, is this correct? The extended rule set, as per the theory, ...

@PauloCereda possibly although sounds rather stilted. what is the ....
perhaps: As implied by the theory, the extended rule set...

@DavidCarlisle The rest of the sentence. :)
@DavidCarlisle Thanks. :)

@JosephWright Silly migration.
0

I am writing a technical paper in LaTeX and I have come across this problem: I have a data structure that contains more variables, namely D=(a, b, c). What notation should I use if I want to express that I want to access variable A from d, for example, x = a from D? I don't want to use the word "...

@egreg Yes, I'm not sure it's for the best

4:24 PM
@JosephWright Probably better in CS or Math; anyhow, it's a low quality question.

@egreg Agree on both counts: the latter means forwarding is not a good idea

@JosephWright Bounce?

Going to have to work out if I can get certificates for the sites I run

5:03 PM
I need help!
Does this make sense? the composing elements are simply pointers to their original references, which are accessible through the bridging protocol.

5:39 PM
@PauloCereda possibly, although it's hard to be sure if something makes sense if you don't know what it means

5:54 PM
@DavidCarlisle Thanks. :)

6:19 PM
people are so rude on this site
@DavidCarlisle Go away! — egreg 39 mins ago

6:42 PM
@DavidCarlisle Sh** up!

2 hours later…
8:51 PM
3

I'm trying to get a realistically looking continuum potato. This is what I already achieved but i would like to improve the outcome by rotating the light-shading and make it bigger. Is there any way to do that? \documentclass[a4,10pt,fleqn]{scrartcl} \usepackage{tikz} \usetikzlibrary{shapes} \u...

is this a suitable answer?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}

\begin{document}
\definecolor{ca40000}{RGB}{164,0,0}
\definecolor{cef2929}{RGB}{239,41,41}
\definecolor{ce9b96e}{RGB}{233,185,110}
\definecolor{c888a85}{RGB}{136,138,133}
\definecolor{ceeeeec}{RGB}{238,238,236}
\definecolor{c3465a4}{RGB}{52,101,164}
\definecolor{c729fcf}{RGB}{114,159,207}
\definecolor{c6f4709}{RGB}{111,71,9}
\definecolor{cffffff}{RGB}{255,255,255}
\definecolor{c2e3436}{RGB}{46,52,54}

\begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-1.000000, xscale=1.000000, inner sep=0pt, outer sep=0pt]`

9:33 PM
Do you see strange icons in the “inbox” and “achievements” tabs?
28

All Stack Exchange site logos are showing up as the 3D Printing one This bug just started showing up for me again; I noticed it on both computer and phone.

@egreg Yes, they really jump out at you. :)

@AlanMunn Already fixed, it seems

@egreg Yep.

1 hour later…
11:12 PM
@DavidCarlisle definitively YES.

@UlrikeFischer probably I'd get downvoted to negative total:-)

11:37 PM
@DavidCarlisle I will upvote~