« first day (3140 days earlier)      last day (1795 days later) » 

2:26 AM
Why won't this work?
\fp_to_dim:n{\fontdimen2\font}
! Missing number, treated as zero.

Although following works:
\dim_const:Nn\whatever{\fontdimen2\font}
 
 
2 hours later…
4:30 AM
@AlanMunn thank you do you know please how to change the numerotation of chapters and sections from Indian to Arabic under Babel?
 
@PolineSandra No, sorry not off hand. I think for Arabic you would be better off using XeLaTeX instead of pdfLaTeX and polyglossia instead of babel.
 
the problem is that I finish the reduction and I just have 1 week
 
@PolineSandra Ok, so not a good time to change. What I suggest is asking a question on the main site. You should include a tiny example document that is compilable, and shows the problem you're trying to solve. In this case the document you put in the question should look like this:
\documentclass{book}% or the actual class you are using
\usepackage[english,arabic]{babel}% if this is how you are loading babel
... any babel related stuff % commands that rename stuff
... some font stuff % I assume you need to load an Arabic font
...any package you are using to modify sections/chapters
\begin{document}
\chapter{A chapter}
\section{A section}
\end{document}
The example shouldn't have any other packages that you are using since they are unlikely be necessary to solve the problem.
@PolineSandra There are quite a few users who work in Arabic and know much more about this than I do.
 
4:51 AM
I ask the question
 
@PolineSandra Your example isn't quite minimal. And it doesn't compile for me because I don't have the arqam package (which means it's not part of TeX Live). Is that necessary for the example to work? If not, take it out (along with most of your other unneeded packages (tables, math etc.))
 
I delete some packages
 
5:07 AM
@PolineSandra So you want the 1 in the chapter to be spelled out in Arabic, and the 1.1 in section to be in western numerals? It would be helpful to explain that a bit more clearly.
 
instead of
الفصل ١
i want if possible
الفصل الاول
and thé section
1.1 instead of ١.١
I added these information
 
@PolineSandra Right, but for someone who doesn't know arabic, this distinction isn't too obvious.
 
5:28 AM
how to say then?
 
@PolineSandra Here's a solution to your chapter problem:
\makeatletter
\newcommand{\arabic@words}[1]{% substitute the relevant Arabic numbers here
\ifcase#1\or One\or Two\or Three\or Four\or Five \or Six\else\@ctrett\fi}
\newcommand*\arabicwords[1]{\expandafter\arabic@words\csname c@#1\endcsname}
\renewcommand\thechapter{\arabicwords{chapter}}
\makeatother
In the code above, where I have One Two Three etc. replace that with the appropriate Arabic word. You'll need to add as many as you have chapters. This code is adapted from my answer here.
 
5:41 AM
yes it works but it make a little problem is the table of contents
 
@PolineSandra I think I'm getting out of my depth to help you this way. (It's also almost 02h here.) But you need to be much more specific in explaining problems. Ask another question about that, showing what you're doing.
 
6:26 AM
we can sent an image here?
 
@PolineSandra Yes, but please don't use the chat this way (if that's what you mean by 'here') Your problems are too complex to be solved in chat. Use the main site and ask questions there.
@PolineSandra Good night.
 
6:48 AM
@bp2017 well \fontdimen2\font is a tex primitive dimension so you should expect \dim_anything to work, it's not an expl3 floating point number so ....
 
tex.stackexchange.com/questions/494419/… this my question with all details please someone help me
 
 
4 hours later…
10:27 AM
is anyone here familiar with the evince options?
Application Options:
-p, --page-label=PAGE The page label of the document to display.
-i, --page-index=NUMBER The page number of the document to display.
-n, --named-dest=DEST Named destination to display.
-p and -i seem to be the same thing
i couldnt get -n to take me to a section name
ok named-dest is done with the hyperref package
what pdf reader does everyone use?
 
10:54 AM
@Lacey xpdf or acrobat if reading from the filesystem, the pdf rendering of the browser if pdf coming from a url (so usually firefox or chrome)
 
@Lacey Adobe Reader: it's the reference system (or in my editor the built-in quick viwer)
 
@Lacey sumatra, adobe reader, adobe pro, sometimes browser plug-ins.
 
yo'
@Lacey Acrobat Reader, TeXworks internal, and google app on the phone
 
11:36 AM
@JosephWright what is your editor?
thanks for the responses, everyone. im surprised adobe is still so common, and no one uses evince.
 
user280247
Is this code wrong?
 
user280247
\documentclass{report}
\begin{document}
\begin{tabular}{cccc}
\multicolumn{3}{ccc}{Functions} & Ratio \\ \hline
1& 2& 3& 4\\
\end{tabular}
\end{document}
 
user280247
No file latex.aux.
! Missing \endgroup inserted.
 
@santimirandarp \multicolumn{3}{c}{Functions}
 
@Lacey Evince has improved a lot, lately. But still, from all viewers AR comes with the richest feature set.
 
user280247
11:42 AM
@PhelypeOleinik Oh, I'm sorry. Thanks
 
@santimirandarp No problem. You're welcome :-)
 
12:04 PM
@santimirandarp The second argument to \multicolumn should contain a single column specifier (with possible addition of @{...} or | on either side).
 
user280247
12:24 PM
yes, thanks @egreg I think you're clarifying cause you see it reasonable?
 
user280247
Oh, yes, it is reasonable...thanks for the remark
 
12:36 PM
@egreg we could probably make the multicolumn code give a sensible error message if it is about to add a & ... (at least the array package version)
 
 
1 hour later…
user280247
2:05 PM
guys, just reading a book find the differential written as $d\,t$
 
user280247
How would you write the differentials dt, d\,t or what?
 
@santimirandarp \mathop{}\!dt ;-)
@santimirandarp But I hide that implementation detail in a macro.
 
youtube videos of interest to some at least... nickhigham.wordpress.com/2019/06/05/the-argonne-tapes
 
2:23 PM
@santimirandarp But d\,t is just plain weird. It's as if the author read some advice on spacing of differentials but misunderstood. Or perhaps using \mathop{d}t? That produces the right spacing before the d, but adds a misplaced space after it.
 
user280247
@HaraldHanche-Olsen thanks
 
2:52 PM
hello
 
3:18 PM
This article might interest people.
2
 
@Moriambar ciao! Long time no see!
 
3:38 PM
@mickep It's good, but I do wonder about Overleaf feeling the need to explore the TeX source code here: it's educational but feels much more suited to TUGboat (@barbarabeeton)
 
@JosephWright I was just thinking the same, why discuss the numeric encoding of tokens in a series claiming to be about \expandafter also they don't describe \expanded you will be disapointed to know:-)
 
Do we have any regular Russian users in chat? (Apart from @DavidCarlisle of course.)
 
@AlanMunn так грубо
 
@DavidCarlisle Я не сомневаюсь, что твой русский безупречен.
 
3:57 PM
@DavidCarlisle, thank you. I did \fp_to_dim:n{\dim_eval:n{\fontdimen2\font}*2}.
 
@bp2017 I must be missing somthing, why do you need fp_to_dim here?
@AlanMunn наконец-то мы договорились
@bp2017 @JosephWright and the rest of the team were discussing recently the need to allow some dimension expressions in fp expressions, but here you have a dimension and seem to want a dimension so why go via fp?
 
4:30 PM
@DavidCarlisle, (1) integer "2" can be replaced with any floating point number (not sure this can be done with regular dims), (2) fp's "floor" function (or any calculation-related functionality of fp) can be used in the expression.
@DavidCarlisle, besides, when I do calculations on dims, they tend to have decimals with more than 5 or 6 digits (which is standard for TeX dims, I suppose) so I "trim" them by converting to dim values (with \dim_eval or \dim_set).
@DavidCarlisle, I "trim" them right away to more easily see what the actual dim will look like eventually.
 
@santimirandarp IMHO the differential d's need to be upright, and no space between d and t.
 
@bp2017 why not \fp_to_dim:n{\dim_to_fp:n{\fontdimen2\font}*2}?
 
4:53 PM
@bp2017 no, dim_eval and dim_set are dim values, they are essentially \setlength but OK I suppose, it's just that if you compare \fp_to_dim:n{\dim_eval:n{\fontdimen2\font}*2 and 2\dimexpr\fontdimen2\font\relax with \tracingall you will see a scary amount of code go past that isn't doing anything:-)
 
 
1 hour later…
5:56 PM
@UlrikeFischer, good point (now that I think of it).

@DavidCarlisle, I did \tracingall and my laptop exploded: TeXworks windows still hanging, but by the looks of the log size it'll take time to pinpoint the difference between those two expressions (at least for me).
The log size is 1.6 MB (that's a lot of text).
 
@bp2017 You can probably reduce it a tad by loading the trace package and using \traceon instead of \tracingall and using \traceoff after the command you are interested in.
 
6:10 PM
@JosephWright I just came across the article. I know nothing about how or why it ended up there.
@JosephWright Another recent nice article is this one, on the fiziko MetaPost module. It could perhaps also fit in TUGboat (@barbarabeeton, I'm pinging you, since @JosephWright did).
 
@mickep quack (I like to ping people too)
 
@PauloCereda Oh, hi.
 
@mickep (")>/
 
Heya ppl!
 
@morbusg hi! \<(")
 
6:23 PM
Hey what's the policy on swear-words; I might've lost my temper a bit... O:-|
@Paulo: Is that a salutation from a duck? :D
 
@morbusg Why don't you just take a walk around your block and calm down? :)
 
user280247
@marmot Nice. It is easier. $\mathrm{d}t$ ?
 
@morbusg translate them in some unknown language. E.g. "duck duck duck!" should be ok.
 
@mickep just came from a 20km bike-ride, a shot of booze, and a sauna; I think I'm covered in that department
 
@morbusg Oh, a sauna. And still angry? How could that be?
 
6:28 PM
@mickep: I got a vote for deletion on my answer
I can swallow my pride if more people agree with the deletion, though
 
@santimirandarp @egreg has some time posted a \diff. I believe it is the same definition as in tex.stackexchange.com/a/60546/121799.
 
@morbusg I can add another vote (if possible), if that will make you happier! :D
 
@mickep: OK! here you go: tex.meta.stackexchange.com/a/8322/1410
@UlrikeFischer: Lol, Finnish would fit the bill nicely for "unknown language", but google translate is a bit of a problem ;)
 
@morbusg a random salutation. :)
 
@PhelypeOleinik you can do \tracingall in a group or turn it off with \tracingnone without needing a package.
 
6:38 PM
anka anka gra anka!
This is Swedish, I guess.
 
@morbusg saatana perkele!!
@PauloCereda Oh, you are showing off! :P
 
@mickep it's in the text of my thesis. :)
 
@DavidCarlisle Hm... Perhaps my comment was misleading. I only mentioned trace because it hides LaTeX's font selection, which appears here an there and takes a lot of space in the log.
 
@PauloCereda I'm not surprised.
 
@mickep ^^ (also @PhelypeOleinik ^^)
 
6:42 PM
@PauloCereda For some reason that image does not show. Maybe I have a Paulo's-duck-blocker installed.
 
@mickep oh no
 
@mickep ouch, those are rather nasty words, they stand for "satan" and "devil", respectively.
 
@morbusg I'm Swedish, I know...
 
@bp2017 I meant like this
\documentclass{article}

\usepackage{expl3}

\begin{document}

\ExplSyntaxOn
\tracingall

 \message{\the\dimexpr\fp_to_dim:n{\dim_eval:n{\fontdimen2\font}*2 }}


\message{\the\dimexpr 2\dimexpr\fontdimen2\font\relax}

\tracingnone

\ExplSyntaxOff

\end{document}
 
@mickep: Oh! facepalm. How do you know Finnish, though? Swedish is an official language in Finland, but as far as I know, not the other way around.
 
6:46 PM
then look for the {\message} the first one takes 1923 lines of log, the second one takes 1 line
@bp2017 a factor of 2000 times the amount of execution steps to obtain an identical result is not negligible
 
@morbusg You are correct. I don't, except for the "important" words. And of course to sing a long to Olavi Virta! :D
 
@mickep lol! :D
 
@morbusg In any case, I don't have an opinion about that meta question, but I agree with your comment on the delete vote, so I upvoted that.
 
@mickep cheers mate
 
@PauloCereda vvv
\documentclass{article}
\usepackage{tikzducks}
\begin{document}
\loop
\tikz\duck;
\ifnum\pdfuniformdeviate9>5
\repeat
goose
\end{document}
 
7:02 PM
@PhelypeOleinik no tikz goose?
 
@DavidCarlisle So you prefer goose for dinner, huh?
@DavidCarlisle (not that I know of; my tikzducks knowledge stops at \duck.)
 
@PhelypeOleinik more meat on a goose, it's true.
 
@PhelypeOleinik ooh
 
@DavidCarlisle goose=\duck[scale=2]?
 
> Ubuntu MATE 19.10 Is Ditching VLC for GNOME MPV
I always used mpv. :)
 
7:07 PM
@PhelypeOleinik no you can do better (I have a tikz gold badge)
 
@PauloCereda Apple is dumping bash for zsh.
 
\documentclass{article}
\usepackage{tikzducks}
\def\goose{\scalebox{4}[2]{\tikz\duck;}}
\begin{document}
\loop
\tikz\duck;
\ifnum\pdfuniformdeviate9>5
\repeat
\goose
\end{document}
 
@AlanMunn Really?!
 
@PauloCereda Yep. As of Catalina zsh will be the default shell.
 
@AlanMunn Interesting! Then I recommend github.com/robbyrussell/oh-my-zsh
 
7:09 PM
@AlanMunn How will @UlrikeFischer ever be able to start a shell, she has difficulty with z
 
@AlanMunn ZSH was already the default earlier (up until... I want to say snow leopard, maybe)
 
@DavidCarlisle You should have a goose badge as well for this one ;-)
 
@PauloCereda I used to use ksh when I was using an IBM with AIX, which is similar I think.
 
It's a nice shell in that it can emulate pretty much all the other shells
 
@morbusg Really? I guess I've always just updated my machines so they persist with bash.
@morbusg Actually did I interpret what you said correctly? Do you mean it's been zsh for a while, or it used to be zsh changed to bash?
 
7:15 PM
@AlanMunn ksh was default on sunos too
 
@DavidCarlisle I could create an alias, blubsh sounds good.
 
@AlanMunn Yeah, if my memory serves (which, I realize, doesn't always happen, but you know) :) I was rather baffled when they changed it to bash, personally. I always figured it was to please the Linux crowd.
 
@morbusg Ok, now that you mention it I have a fuzzy memory of that too.
 
But OS X has a heart of gold (read: BSD)
 
@morbusg :)
@morbusg @PauloCereda I think the change is being driven by licensing issues. theverge.com/2019/6/4/18651872/…
 
7:22 PM
@AlanMunn makes sense. bash on Mac is outdated. Mine is updated because I replaced it by homebrew's. :)
 
@PhelypeOleinik, thank you, I'll take a look.

@DavidCarlisle, here's why I am confused:

\dim_const:Nn\testOne
{ \fp_to_dim:n
{ \labelsep*2.5
}
}

works, but

\dim_const:Nn\testTwo
{ \fp_to_dim:n
{ \fontdimen2\font*2.5
}
}

doesn't (yet \labelsep and \fontdimen2\font are both dimensions; but you pointed out that \fontdimen2\font is TeX primitive while \labelsep is not, so it makes some sense to me now although it's not clear what makes primitive dimensions different from other dimensions).

@UlrikeFischer, I compared
@DavidCarlisle, ha, that figures. I put \tracingall in the preamble and used no \message.
 
@bp2017 \fp_to_dim:n { \fontdimen2\font } doesn't work because fp tries to evaluate \fontdimen which, by itself, does not evaluate to a dimension (try \the\fontdimen somewhere to see the error). fp would need to be changed to understand that it has to treat \fontdimen2\font as one single thing, instead of three separate things.
 
\labelsep is more or less a primitive it's a \dimendef'd token that is \dimen26 so it is immediately a dimen. `\fontdimen2\font is (after you evaluate all of that) a read-only global dimen (or settable if the font has not been used) I'm sure Bruno could include parsing fontdimen syntax in l3fp but really there are no real use cases and why add extra complication
 
@AlanMunn Interesting, I hadn't thought from the GNU “plague”-licence POV at all. I thought their licenses were improving on the “plague”-aspect, but I guess not.
 
@DavidCarlisle Pick your comment:
a) a new species: the pancake duck
b) flattened like the England XI by Pakistan
c) you should have used the zebra crossing
 
7:32 PM
@UlrikeFischer d) obviously a goose
 
@UlrikeFischer None of them: The duck mom is moving up with a huge speed and you see length contraction.
 
@DavidCarlisle That's the beauty of having it be the default. She just needs to open a terminal, and it will run zsh without her having to type anything. (@UlrikeFischer)
 
@HaraldHanche-Olsen ah, good thinking.
 
@DavidCarlisle ooh
Das Pancakente
 
@HaraldHanche-Olsen wouldn't I need an mac first?
 
7:37 PM
@UlrikeFischer ooh apples
Der Apfel
 
@UlrikeFischer minor nitpick
 
@UlrikeFischer A quick .zshrc config to get started:
```autoload -U compinit promptinit colors zcalc
promptinit
compinit
colors
prompt walters
zmodload zsh/complist

export LSCOLORS=GxfxcxdxBxegedabagacad
export PATH="/Library/TeX/texbin/:$PATH"
export HISTFILE=~/.history
export HISTSIZE=1000
export APPEND_HISTORY=true
export CLICOLOR=true```
oops, how do you mark code here?
 
@morbusg I have oh-my-zsh
 
@morbusg standard markdown syntax. indent by four spaces, or triple backquotes before and after (single if inline)
 
@HaraldHanche-Olsen, ah, nice, thanks
failed
lol
@PauloCereda that's a little heavy-handed IMHO
 
7:40 PM
@morbusg I see you discovered italics.
 
rofl
 
@morbusg it is, indeed. :)
@HaraldHanche-Olsen ooh
 
@PauloCereda ooh
 
@morbusg when you paste the code a button "fixed font" appears to the right of the text box.
 
@HaraldHanche-Olsen 𝓸𝓸𝓱
 
7:43 PM
@PhelypeOleinik Cheers mate, but I managed to screw it up already :D I hope I'll remember this next time, tho.
 
@PauloCereda But that doesn't increment the counter. Neither did the strikethrough one, for some reason.
 
@HaraldHanche-Olsen oh no
 
hey umm @Ulrike I hope there's no bad blood between us
 
@morbusg ?? (I have to make dinner ...)
 
@morbusg the Germans I have known don't keep it a secret if they're angry.
 
7:47 PM
@UlrikeFischer Ah ok, was just wondering 'cause no response, and the one pow-wow from way back
 
\diffp L{{{r + \pi^e}}} ... I'm finding esdiff a bit annoying.
 
@morbusg that can happen in the chat, sometimes people have to leave ... don't worry.
 
yeah... yeah /me is trying to fight imsomnia
 
@UlrikeFischer What – you have a life outside chat? Shocking.
5
 
@HaraldHanche-Olsen 𝔚𝔢𝔠𝔬𝔲𝔩𝔡𝔞𝔩𝔩𝔴𝔯𝔦𝔱𝔢𝔦𝔫𝔉𝔯𝔞𝔨𝔱𝔲𝔯𝔴𝔦𝔱𝔥𝔫𝔬𝔰𝔭𝔞𝔠𝔢𝔰
 
7:59 PM
@morbusg You didn't screw it up. In chat messages must be all text (with inline code) or all code. You can't mix them, which is why your triple backticks failed.
 
youtube.com/watch?v=SYG6lSLzSp0 (the natural Finnish response)
 
@morbusg This is the high quality humour I've come to expect of you. :)
 
@AlanMunn why thank you. :D But it should be noted I've nothing to do with the production, just wanted to share its existancé.
 
8:17 PM
@DavidCarlisle 𝒮𝑝𝑎𝑐𝑒𝑠𝑎𝑟𝑒𝑜𝑣𝑒𝑟𝑟𝑎𝑡𝑒𝑑𝑎𝑛𝑦𝑤𝑎𝑦𝒥𝑢𝑠𝑡𝑎𝑠𝑘𝑒𝑔𝑟𝑒𝑔
 
@HaraldHanche-Olsen what ‌ ‌ would ‌ ‌ he ‌ ‌ know ?
 
@DavidCarlisle he seems to have some issue with them.
@DavidCarlisle maybe a traumatic childhood experience with the space bar.
 
 
1 hour later…
yo'
9:27 PM
@barbarabeeton I used to say that honey is the most nasty substance in the kitchen. After cooking home-made corn syrup I don't say it anymore.
 
9:51 PM
@yo' Which is why you can call your spouse "honey" but not "home-made corn syrup", I suppose. ;-)
4
 

« first day (3140 days earlier)      last day (1795 days later) »