« first day (3601 days earlier)      last day (1348 days later) » 

7:33 AM
@UlrikeFischer The object change is really 'just for us' at the moment, so it was not super-urgent; I was hoping to get DeviceN basic support done then do an upate
 
7:51 AM
@JosephWright ok, I guess @AlanMunn is able to get and install the files from github ;-)
 
8:26 AM
I wonder if we should get expl3 highlighting now....
107
Q: Goodbye, Prettify. Hello highlight.js! Swapping out our Syntax Highlighter

Ben KellyI’m Ben and I’m a dev on the Teams team here at Stack Overflow - we're the team focused on building the private Teams experience on SO. I’ve recently been working on our post editing experience and I’d like to show off some preliminary work that’s coming to the network soon. TL;DR We’re switching...

2
@JosephWright ^
 
cis
8:39 AM
@DavidCarlisle OK. Is there a way to handle vertical lines, if using \addlinespace?
\documentclass{article}
\usepackage{array,booktabs}
\begin{document}
\begin{center}
\begin{tabular}{c | c | c}
1&2&3          \\ \hline \addlinespace
a & b &   {\Huge C}     \\  %\addlinespace
\hline
\end{tabular}
\end{center}
\end{document}
 
@cis The best way to handle vertical lines is to remove them
especially so if you use booktabs
 
cis
@samcarter_is_at_topanswers.xyz I'm interested in theoretical questions, not quasi-religious views that everyone has heard a thousand times anyway. :P
 
@DavidCarlisle "people who cannot read code without syntax highlight deserve no sympathy"
 
cis
@samcarter_is_at_topanswers.xyz I thinks there was a package from @DavidCarlisle to fix these gaps. I forgot the name.
 
@cis Oh, that has nothing to do with religion, it is a matter of being civilised enough to not inflict pain to your readers
 
cis
8:46 AM
@samcarter_is_at_topanswers.xyz I am not creating a typographically correct document here. I want to understand the "coding" principles. xD
 
@cis Then why do you use booktabs which is designed for tables without vertical lines? (and whose documentation explicitly mentions such problems like gaps in vertical lines)
 
cis
@samcarter_is_at_topanswers.xyz Because booktabs delivers \addlinespace, as far I know.
 
@cis you can add space without this command
\\[42pt]
 
cis
Oh no, she got me. :(
But that's difficult to use at pgfplotstable. :()
 
@cis maybe you could play with extrarowheight instead?
 
cis
9:02 AM
@samcarter_is_at_topanswers.xyz Ahhhhhh
 
@cis no booktabs commands by design make vertical lines unusable.
 
cis
9:13 AM
I thought, there is a solution with hhline.sty

\setlength{\extrarowheight}{15pt} is not so nice, it adds space above the cell-content, but not below.
 
@UlrikeFischer I'll probably sort something today: DeviceN is pretty hard and although I'm closing in, new stuff keeps coming up
@cis The point is booktabs has a particular (code) design aim, and it's entirely set up around that; it doesn't do vertical lines at all, and it also can't do vertical rules for 'rotated' tables (they do come up from time to time)
4
 
@JosephWright do you need any help? Can I test something?
 
9:40 AM
@cis no
 
cis
9:55 AM
I can't get this table nice here. No matter how I do it, which of the options I use ...

It must not be that the lines are vertically centered and the content still has the usual distance to the vertical line ...
\documentclass[]{article}

\usepackage{colortbl}
\usepackage{pgfplotstable}
\pgfplotsset{compat=newest}

\usepackage{booktabs}
 \setlength{\defaultaddspace}{0pt}
\setlength{\extrarowheight}{10mm}
%    \renewcommand{\arraystretch}{2.9}

\pgfplotstableset{
string type, column type=l,  column type/.add={|}{|},
assign column name/.style={
/pgfplots/table/column name={\textbf{#1}}
},
% vertical (help) lines
every head row/.style={before row=\hline},
every even row/.style={
before row=\hline\addlinespace,
 
@cis will your real use case also be letters in random sizes or will it be images?
 
cis
@samcarter_is_at_topanswers.xyz Both and, in my opinion, it should be independent of the content.
 
10:18 AM
@UlrikeFischer Not just yet: I'm working on some descriptions at the moment (color vs colorant vs name vs model)
@UlrikeFischer I've realised I've not quite got the language right for \color_model_new:nnn: adjusting that first
 
@JosephWright what do you mean by "language"?
 
@Rmano Let's see if we implement this in the IoT's editor. :)
 
@PauloCereda There is a workaround here: tex.stackexchange.com/questions/44624/…
 
@UlrikeFischer For example, I've said that a Separation needs a 'name', but it's actually a 'colorant'; minor things but I need to adjust so I can describe DeviceN correctly
@UlrikeFischer The fun is for example that colorspace mixes up colors, color spaces and colorants, so starting from that I'm having to unpick them (e.g.\definecolorspace{fooshaded}{mixed}{foo,black} creates a color space fooshaded using colorants Black and whatever-foo-points-to)
@UlrikeFischer A few checkins will make it clearer: I'll do my key adjustments, then probably try to cherry-pick ideas to build up DeviceN in some logical order
 
10:49 AM
@UlrikeFischer Ah, I was wrong: I'm making a series of minor adjustments, expect lots of checkins!
 
11:16 AM
@JosephWright ;-) I was a bit distracted. The adobe applications (reader and dc) stopped working - didn't start at all and it took me a bit time to figure out the problem.
 
is hf-tikz still the right way to highlight math ?
I want to highlight \leq d/3 in $\Pr(\hat{d} \leq d/3)$ for example
 
 
2 hours later…
12:55 PM
@Anush I am using this: topanswers.xyz/tex?q=1292#a1529 in my slides, works nicely (I use a bit more elaborate settings, with transparent fill and rounded corners, but it's basically it). I
 
@Rmano thanks!
 
1:18 PM
@UlrikeFischer For the moment I think I'll put this whole thing on hold. It has too many moving parts at the moment for me.
 
@AlanMunn I'll let you know when things should be working again
 
@JosephWright No worries. How do you keep a development distribution and a production distribution separated?
 
@AlanMunn Mainly I don't :)
@AlanMunn Actually, quite simple: I have my local TeX tree with whatever stuff in it, and I simply zap the entire thing when I want to 'clean up'. I have 'real' local stuff in a separate place handled by TEXINPUTS, so all that is ever in ~/texmf is 'disposable'
@AlanMunn Things like the colour work are quite safe from a production POV: at the moment, none of this actually gets picked up for 'real' work
 
@AlanMunn They don't have our secret <redacted> project.
:)
 
1:34 PM
I am very confused by all this talk of LaTeX3. I had assumed it was a separate incompatible typesetting system but bpa.st/KHAQ compiles just fine in my normal old pdflatex
but can you actually use LaTeX3 somehow in LaTeX2e?
 
@Anush Yes, and in fact many of the packages you might be loading at the moment are written in Expl3.
@Anush And TL2020 includes the expl3 code in the kernel, which is why you didn't need to load a package to get your code sample to work, as you formerly would have needed to.
 
@AlanMunn I have set texmfhome so that it points to a special folder and all l3build development stuff is installed there (the standard texmfhome would work too, but I never know where it is). To disable it I do on a command line set texmfhome= (or I delete the files). My real local files are in another texmf which I added with tlmgr conf auxtrees add. Beside this: if needed I could extend the latex-dev setup and create a latex-dev-dev with a dedicated binary.
 
@AlanMunn thank you. So expl3 is code to parse/render LaTeX3 code?
 
@Anush it is now included. If you look in the log, you will see (in a current system) that there is a L3-layer:
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-09-06>
 
nice
I had long assumed LaTeX3 was vaporware
like the OS plan9
and GNU hurd
 
1:44 PM
@Anush you should monitor youtube.com/c/texusersgroup. In a few days Frank Mittelbach's talk at tug 2020 will be online, and he speaks about it.
 
thanks I will do!
 
@UlrikeFischer, @DavidCarlisle Meanwhile, working on DeviceN for dvips, I think I've worked out how to do separations 'properly', so can I hope cover DeviceN and CIELAB in PostScript :)
 
@JosephWright wow, I quite admire people doing real stuff postscript - I never know where a command begins and ends ;-)
 
\documentclass{article}
\special{!
TeXDict begin
/TeXcolorsetspotcolor { setcolor } def
end
}
\begin{document}

\begingroup
Hello
\special{ps: /Color1 {[ /Separation (LogoGreen) /DeviceCMYK
  { dup 0.84 mul
  exch 0.0 exch dup 0.44 mul
  exch 0.21 mul
  } ] setcolorspace } def}
\special{color push setspotcolor Color1 0.9}
Hello
\special{color push setspotcolor Color1 0.5}
world
\endgroup
\special{color pop}
\special{color pop}

\end{document}
 
@UlrikeFischer But it's just like German: the verb comes at the end. ;-)
 
1:48 PM
@DavidCarlisle, @UlrikeFischer ^^ Using the TeXcolor... trick to work with the stack, but sticking closely to the PostScript reference for a /Separation - should be able to extend more easily than the current set up, plus will be very close to the PDF one
@AlanMunn :)
@AlanMunn I'm hoping I can update CTAN with l3backend later today
 
@UlrikeFischer I periodically used to have to edit postscript files by hand.. the good old days :)
 
My authenticator app just produced 392293.
2
 
@Anush ooh
 
:)
 
2:12 PM
@JosephWright it looks really good. Where did you found out how to use the setcolorspace operator? Can one separate the formula as you did for dvipdfmx?
 
@samcarter_is_at_topanswers.xyz Hi! New question :)
 
@Anush Why do you never greet with "Hi! New answer"? :)
 
@samcarter_is_at_topanswers.xyz that would be so much cooler!
I was enjoying the new expl3 answer on topanswers
it's even harder to read than LaTex2e!
 
@UlrikeFischer I had another look at the PostScript manual for the DeviceN stuff, and it was there more-or-less as-is. I'll see if I can get it into the same form as for dvipdfmx, etc.
 
@JosephWright reading documentations - @DavidCarlisle will not be pleased ;-)
 
2:20 PM
How can I put the numbers 1... in the middle of these colored circles?
\documentclass{beamer}

\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\usepackage{tikz}

\newcommand{\tikzcircle}[2][red]{\tikz[baseline=-0.5ex]{\fill[{#1},radius=#2] (0,0) circle ;}\hspace{0pt}}%

\def\numcolors{10}
\def\numdots{20}

\pgfmathparse{1/\numcolors}%
\definecolorseries{foo}{hsb}{step}{red!90!black}{\pgfmathresult,0,0}
\resetcolorseries[\numcolors]{foo}%
\pgfmathsetseed{2}

\begin{document}
I feel it should be simple but the syntax of tikz[baseline=-0.5ex]{\fill[{#1},radius=#2] (0,0) circle ;} is perplexiing me
 
@JosephWright you could perhaps call it spot rather than setsporcolor to match rgb or cmyk \special{color push spot Color1 0.5} and TeXcolorspot ? to save having duplicated color in the name (not that it makes any difference really)
 
@DavidCarlisle True
@UlrikeFischer Something like
\special{ps: /Color1CMYK { /DeviceCMYK
  { dup 0.84 mul
  exch 0.0 exch dup 0.44 mul
  exch 0.21 mul
  } } def }
\special{ps: /Color1 {[ /Separation (LogoGreen) Color1CMYK ] setcolorspace } def}
@DavidCarlisle I'm going to fiddle about a bit to get this working, then probably do CIELAB for dvips, then get back to DeviceN :)
 
@Anush I can get it to work with the colour model just yet
\documentclass{beamer}

\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\usepackage{tikz}

%\newcommand{\tikzcircle}{\tikz[baseline=-0.5ex]{\node[draw=red,fill=red,circle,minimum width=2em] at (0,0) {\x} ;}\hspace{0pt}}%


\newcommand{\tikzcircle}[2][red]{\tikz[baseline=-0.5ex]{\fill[{#1},radius=#2] (0,0) circle
node {\color{black}\x}
;}\hspace{0pt}}%


\def\numcolors{10}
\def\numdots{20}

\pgfmathparse{1/\numcolors}%
 
is can a typo for can't ?
 
2:36 PM
@Anush yeah. I can't do with the colour model and apparently can't type either ...
 
shall I ask on topanswers in that case?
I always assume I am being an idiot but maybe it's an interesting question
 
\documentclass[xcolor={rgb}]{beamer}

\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\usepackage{tikz}

\newcommand{\tikzcircle}[2][red]{\tikz[baseline=-0.5ex]{\fill[{#1},radius=#2] (0,0) circle
node {\color{black}\x}
;}\hspace{0pt}}%


\def\numcolors{10}
\def\numdots{20}

\pgfmathparse{1/\numcolors}%
\definecolorseries{foo}{hsb}{step}{red!90!black}{\pgfmathresult,0,0}
\resetcolorseries[\numcolors]{foo}%
@Anush ^^^ here you go
 
too fast! :)
I was writing the question
 
@Anush You could still write it. If you face the problem, others will as well
 
what was the trick to solve it?
 
2:40 PM
@Anush forcing rgb colour model, see first line of the code
 
oh wow
that looks clever
 
@Anush no, it is just a dirty hack
 
:)
Maybe I should still ask then. Where there is a dirty hack, there may be many other dirty hacks too :)
 
@Anush If you would like the colour of the numbers to adjust based on light/dark background colour: nbdtech.com/Blog/archive/2008/04/27/…
 
@samcarter_is_at_topanswers.xyz what I really want is them to chosen so a red/green color blind person can see them most easily
but first things first
@samcarter_is_at_topanswers.xyz question asked
 
2:56 PM
@UlrikeFischer Looking at the PostScript manual, you have to use an inline formula not a /Function, so I have to work out the interpolation myself. I'll get the backends a lot closer together, though, and probably move a few things out of the backend entirely
 
@Anush That will be difficult...
 
3:32 PM
@samcarter_is_at_topanswers.xyz yes.. I am working up to it slowly :)
 
What's the canonical reference for expl3 ?
 
@AlanMunn egreg? :)
 
@PauloCereda :)
I guess it's interface3.pdf?
 
3:48 PM
@AlanMunn Yes
 
@JosephWright Ok thanks. It would be helpful to have a link to it in the expl3 document as well, since the interfaces3 is a decidedly unmemorable name. :)
 
@samcarter_is_at_topanswers.xyz hmm.. I am trying out your numbered circles
 
yo'
@AlanMunn in my old pc, I had alias td for texdoc and i3 for interface3 in texdoc. Then td i3 opens the file.
 
@yo' ooh toheczshiba :)
 
yo'
@PauloCereda I think it was/is toheshiba :)
 
3:57 PM
@yo' oopsie, apologies. :)
 
yo'
@PauloCereda no worries :)
 
how can I reduce the size of the math font (#3) in this \newcommand{\tikzcircle}[3][red]{\tikz[baseline=-0.5ex]{\node[draw={#1}, fill={#1}, circle,text width=#2,minimum width=1.4em,text=black,align=center] at (0,0) {#3};}\hspace{0pt}}% ?
I would like it scriptstyle
for example
 
@Anush specify \scriptsize in the keys for that node?
 
@DavidCarlisle thanks
@DavidCarlisle what would the syntax be exactly?
 
@Anush font=\scriptsize I guess
 
4:08 PM
thank you
 
@DavidCarlisle Yes, this is right. We expect no less from someone with the gold tikz badge.
 
so passing [overwrite] to a filecontents environment is the same as loading the filecontents package used to be?, or do I also need nosearch
 
@AlanMunn oh you noticed I have a badge? Well deserved don't you think?
 
I'm mostly confused about the search for files with the names of packages (can the filecontents[overwrite] environment accidentally overwrite a latex package if I name it poorly?)
 
@GPhys it won't over-write it (unless you specify an absolute path and lower the security settings to allow writing to such a path) but it will mask it so if you write article.cls then that will be found not the standard one.
 
4:14 PM
ah, that makes sense. Thanks
 
cis
5:12 PM
0
Q: Additional vertical space on a table

cisI use vertical centered table cells and use $\vcenter{\hbox{#1}}$. The result is ok, but: How can I get some additional space here: Please note that this is completely arbitrary table and can change in content, width, height,...... at any time. Individual adjustments such as adding an 0pt rule...

Please note that this is completely arbitrary table and can change in content, width, height, h-lines, v-lines,...... at any time. Individual adjustments such as adding an 0pt rule on a case-by-case basis are not desirable.
 
cis
5:59 PM
....
.....

All the trouble wouldn't be necessary if there was a library
\usetcblibrary{tables}
with features like string replace={}{}, uhhh etc.
Because you can set all the distances nicely and they are calculated correctly for the page geometry.
:()
 
Hi. I'm just trying to get started with my homework. I'm trying to type stuff between:

\begin{solution}
Your solution here.
\end{solution}

but nothing is showing up. What do I do? Ideas?
got it. there was a flag. thx people.
 
 
1 hour later…
7:14 PM
@MinaMichael A MWE would help a lot
 
7:59 PM
@cis If I remember correctly, you have been asked multiple times to not post your questions into chat for no apparent reason.
@AlanMunn Hah, now I can steal your identity since I know your authentication code!
 
@cis you are making it vastly more complicated than it needs to be by using pgfplotstable here, that makes sense for plotting external data but rather less so if you are starting with text in your tex document writing out a more or less space separated table markup in the wrong format for tex to typeset then reparsing it to write out as a latex tabular before typesetting.
 
8:14 PM
@Skillmonlikestopanswers.xyz Your 30 second window has long since passed. :)
 

« first day (3601 days earlier)      last day (1348 days later) »