« first day (2058 days earlier)      last day (2876 days later) » 

12:01 AM
@DavidCarlisle I got a problem, tex4ht does not like the \catcode`\^^M=12 for some reason. It will works well in lualatex. So I am looking at this now. Here is a more complete MWE
\documentclass[11pt]{scrartcl}
\IfFileExists{luatex85.sty}
{\usepackage{luatex85}}{}
\usepackage{amsmath}
\usepackage{luacode}
\usepackage{listings}

%----------------------------------------------
\begin{luacode}

  function foo(arg)
  \ifdefined\HCode
     tex.print("\\begin{verbatim}")
  \else
     tex.print("\\begin{lstlisting}[language=Matlab]")
  \fi

   tex.print("")
   tex.print(arg)
   tex.print("")

  \ifdefined\HCode
      tex.print("\\end{verbatim}")
  \else
      tex.print("\\end{lstlisting}")
 
@Nasser can't say I'm surprised
 
make4ht --lua foo.tex gives
(/usr/local/texlive/2016/texmf-dist/tex/generic/tex4ht/html4.4ht)
(/usr/local/texlive/2016/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(./foo2.aux)
! Missing number, treated as zero.
<to be read again>
^
l.33 \catcode`\^^
M=12 %
? x
1019 words of node memory still in use:
7 hlist, 2 vlist, 2 rule, 1 local_par, 1 dir, 10 glue, 1 kern, 1 penalty, 2
glyph, 47 glue_spec, 2 write, 172 special nodes
avail lists: 2:21,4:1,5:4,6:26,7:2,11:3
I need to find a way around this. May be tex4ht does not like catcode :( this will be a big problem
 
 
3 hours later…
3:20 AM
Yo soy un pengüino.
 
 
6 hours later…
9:34 AM
@DavidCarlisle thanks for the answer. but I do not know what do with the endoflinechar. The code was this, which worked from above:
\catcode`\^^M=12 %
\endlinechar=`\^^M %

So I changed it to (per your answer)

\catcode13=12
\endlinechar=`\^^M

it works in lualatex, but tex4ht now gives new error. due to conflict with ^^M. What should I change `endlinechar` to please? I tried \endlinechar=\catcode13 but lualatex screamed at me.
 
@Nasser as I say it's just 13, so \endlinechar=13 is the same, but it's also the default so you could just drop that line
 
Oh, I see. OK, will try it now
 
@Nasser you still need the % though
@Nasser the backtick means "the ascii code of" so `a is the ascii number for a and `\^^M is the ascii for control-m which is 13
 
@DavidCarlisle it works !! and make4ht is happy and superscript is still there. I am sure Michal would not mind if I accept your answer instead. Thanks both for your help and time.
 
Morning all
@DavidCarlisle Put any money on Brexit?
 
9:56 AM
@JosephWright it's not funny :(
 
10:11 AM
@DavidCarlisle At this stage, I think the humour you can find is the only positive: it's happening
 
@JosephWright it's possible to read bbc's poll-of-polls as "remain ahead", but a more accurate reading is probably "no one has a clue" .. bbc.co.uk/news/uk-politics-eu-referendum-36271589
 
@DavidCarlisle In the esd, certainly
 
@egreg Italy has so many beautiful places to visit! I will need a lot of days to see some of them!
 
@PauloCereda Maybe a year suffices for getting an idea of the main parts. ;-)
 
@egreg ooh I will need a postdoc offer. :D
 
10:22 AM
@PauloCereda you will need a pre doc offer unless you finish your thesis
 
@DavidCarlisle oh
 
@PauloCereda sorry, just needed to return to more cheerful subjects like goading you about procrastination after Joseph's comments above:-)
 
@DavidCarlisle Joseph is mean. :)
@egreg: ^^
 
@DavidCarlisle :-)
@PauloCereda No, realistic :-(
 
@JosephWright <3
 
10:27 AM
@PauloCereda You should call him to play for Brazil: his penalties are good for your standards.
 
@egreg LOL
 
10:37 AM
@PauloCereda Yes, even slightly better, as he's at least able to hit the goal post.
 
11:06 AM
I am trying to parse the error output from LaTeX (again). As you know, it is painful.
Question: If I have ! LaTeX Error:, can I assume that it will be eventually followed by something like l.123 this is where the error is a couple of lines later? (I.e. error is on line 123)
Not all errors are followed by this. My question is if all "LaTeX Errors" are followed by this.
Example:
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l .10 \usepackage
                {graphicx}%
No pages of output.
 
@Szabolcs the l.xxx line is the line in the file where the error was detected but it might just be \begin{document} if the error is in the aux file, the intermediate lines show the actual error.
 
@DavidCarlisle Will there always be an l.xxx printed though? (Which I could use as the termination marker for the error.)
 
@Szabolcs the error message output format is really quite regular, the usual problem people have reading it is they read "simplified" versions offered by editors which miss out cintext and line breaks rendering the messag emeaningless
 
For LaTeX errors.
 
@Szabolcs yes unless the user has used -file-line-error commandline option in which case the format changes a bit
@Szabolcs that is not a latex thing though, it is the primitive tex \errmessage behaviour so applies to almost all error messages from tex
 
12:04 PM
Is backslash-newline the same as backslash-space in LaTeX?
 
12:22 PM
@Szabolcs Yes.
\def\^^M{\ } % control <return> = control <space>
 
12:55 PM
@Szabolcs Note that input lines are “normalized”, in the sense that trailing spaces and tabs are stripped off, so a line ending with “backslash space” is actually seen as “backslash endlinechar” (with the current endlinechar). Thus a definition for \^^M is necessary.
 
 
2 hours later…
2:55 PM
Quack! :)
 
12 hours ago, by Johannes_B
Yo soy un pengüino.
 
3:07 PM
@Johannes_B oooooooooooh
 
3:17 PM
Friends, could you guys recommend me a math-heavy TeX sample document?
 
@PauloCereda 1=1\bye
 
@DavidCarlisle I was expecting a little more. :)
 
@PauloCereda 2=2\bye
@PauloCereda the amsmath example document?
 
@PauloCereda $y = mx + c$\bye
 
@PauloCereda -- plain tex or latex?
 
3:26 PM
@JosephWright I feel a patch level 2 coming on....
 
@barbarabeeton Any will do. :)
@JosephWright :)
 
@DavidCarlisle Indeed
 
@DavidCarlisle ooh Apache LaTeX3. I was expecting this.
A patch = Apache... wink wink know what I mean say no more
 
@DavidCarlisle Speaking of which, I'll do a Doodle for the next team meeting
 
@PauloCereda -- does require amsmath ... the testmath document that comes with it. included in tex live. you can look at it first with texdoc testmath.
 
3:29 PM
@JosephWright could update tools/bm with this as well tex.stackexchange.com/questions/314863/lualatex-and-bm-package/…
 
@DavidCarlisle Week after next?
 
@JosephWright 28th looks good for some reason
 
@DavidCarlisle Anniversary of the signing of the Treaty of Versailles?
 
@barbarabeeton Absolutely fantastic! Thank you, Barbara!
@DavidCarlisle: ^^
@JosephWright 6 days for cake!
 
@JosephWright that usn't what showed on my google calendar
@JosephWright patch level 2 even more likely now :(
 
3:35 PM
@DavidCarlisle I have a handy mug that tells me this (from the end of the war)
@DavidCarlisle Yes
 
@PauloCereda -- there are a few known errors (of the typesetting, not math variety) in testmath; on the other hand, it's extensive enough that we're using it to test the stix font beta, so i hope it works for you. if you do spot any glitches you think should be fixed, or think that something really necessary is missing, let us know that too. updates to the amsmath documentation are now on the table.
 
@barbarabeeton I am studying a potential major feature for arara, and I need a math-heavy document. :)
 
upgrading to the new tex live ^^
 
@PauloCereda -- well, good luck with it. it's certainly "heavy"; 38 pages with the stix fonts, and i've got two copies on my desk, and have to compare them closely, to make sure that the problems noted in the last go-around have been fixed.
 
@barbarabeeton <3
 
 
1 hour later…
4:44 PM
@JosephWright I'm not sure this is doing the right thing:
  \expandafter\let\expandafter\reserved@a\csname#2\string#1\endcsname
  \expandafter\expandafter\expandafter\ifx
  \expandafter\@car\reserved@a\relax\relax\@nil \@text@composite \else
      \edef\reserved@b##1{%
         \def\expandafter\noexpand
            \csname#2\string#1\endcsname####1{%
            \noexpand\@text@composite
               \expandafter\noexpand\csname#2\string#1\endcsname
               ####1\noexpand\@empty\noexpand\@text@composite
               {##1}}}%
      \expandafter\reserved@b\expandafter{\reserved@a{##1}}%
 
@DavidCarlisle From?
 
@JosephWright I left off the first line as I thought you'd recognise it:-)
declareTextCompositeCommand
 
@DavidCarlisle Was my guess
 
@JosephWright although perhaps I've confused myself, need to do some more tests
 
4:57 PM
@JosephWright ah l3build confused me again, all Ok (build install isn't the same as fmtutil-sys :-)
 
5:17 PM
@JosephWright You are a moderator around here, right? :-) tex.stackexchange.com/questions/315533/…
 
5:27 PM
@AlanMunn: how do you like a template engine built inside arara?
 
@PauloCereda How would it work?
 
@AlanMunn My plan would be like this:
% arara: template: { output: 'foo.tex', context: { name: 'Alan' } }
% arara: pdftex: { files: [ foo.tex ] }
Hello, my name is ${name}.
\bye
 
@PauloCereda I see what it does, but I'm not quite sure what it would be used for.
 
@AlanMunn Neither am I. :)
 
@PauloCereda :)
 
5:42 PM
@AlanMunn that's clear, it's all part of thesis avoidance
 
@DavidCarlisle That and football, a deadly combination.
 
@PauloCereda more seriously, I think it's confusing to build a macro engine over the top of a macro engine, that template could be done with \def\name{Alan} and \name rather than introducing ${name} syntax
 
@DavidCarlisle You are right. :) I was just thinking if someone would need thta. :)
 
@PauloCereda but the danger is 1 person says they need it, so you do it and confuse the other arara user.
@JosephWright who's idea was \IncludeInRelease? :(
 
yo'
% arara: pdftex { files: [ foo.tex ] }
\def\templateName{Alan}
Hello, my name is \templateName\@.
\bye
@PauloCereda ^^
 
5:54 PM
@yo' <3
 
6:25 PM
@DavidCarlisle Questions like that confuse me tex.stackexchange.com/questions/315562/…
 
@Johannes_B you shouldn't read any questions with template in the title, it's bad for your health
 
@DavidCarlisle I know.
 
6:50 PM
@Johannes_B you can amuse yourself by trying this:
\RequirePackage[2014/12/31]{latexrelease}
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\c{g}
\end{document}
 
7:08 PM
@egreg that's your fault ^^^^
 
7:21 PM
@DavidCarlisle Sad thing is, that kinda amused me :-)
 
@DavidCarlisle Your fault: you didn't document the thing. :P
 
@egreg it's a pain to make work with latexrelease as t1enc.def is preloaded in the format and can be re-input multiple times later. You should have suggested it earlier, such as 1993
 
@DavidCarlisle @egreg Out of interest, when did you two first met each other?
 
@Johannes_B tug2015
 
@DavidCarlisle I meant (by the italics) online.
Was it here on TeX.SX or earlier?
 
7:36 PM
@Johannes_B here
 
@DavidCarlisle ah, ok :-)
@DavidCarlisle Some of the names you know from mailing lists and such. For example, Taco is here (has an account), but i don't know about Hans.
 
@Johannes_B yes I know most of the authors of important latex packages from mailing lists or comp.text.tex etc;-)
 
Just noticed: duolingo can help me learn swahili and hebrew, but not arabic.
 
@Johannes_B اللغة العربية هي سهلة
 
@DavidCarlisle ey. if you have gooogle. if not: la (just noticed, ey/ej is Damaskus accent. All others would say: nem)
 
7:54 PM
@Johannes_B In Darmstadt, I asked him about the Ashes and he knew nothing about it. :P
 
@egreg Ashes?
 
@Johannes_B Oh, you're an outsider, then. ;-)
 
@Johannes_B cricket
 
@DavidCarlisle @egreg Cricket? yes, i am an outsider
 
The Ashes is a Test cricket series played between England and Australia. The Ashes are regarded as being held by the team that most recently won the Test series. The term originated in a satirical obituary published in a British newspaper, The Sporting Times, immediately after Australia's 1882 victory at The Oval, their first Test win on English soil. The obituary stated that English cricket had died, and "the body will be cremated and the ashes taken to Australia". The mythical ashes immediately became associated with the 1882–83 series played in Australia, before which the English captain Ivo...
 
 
1 hour later…
8:59 PM
@DavidCarlisle You can do better than suggesting \string\\ :P
 
@egreg why? it works, I even tested it
@egreg unlike @barbarabeeton's suggestion:-)
 
@DavidCarlisle A much better solution is available, of course. ;-)
 
@egreg s/better/more complicated and less general/
 
9:17 PM
@DavidCarlisle -- well, it was a guess. we haven't got graphviz installed here yet.
 
@barbarabeeton nor me but it's a verbatim file write so you need something that expands to a \ not \char 123
 
@DavidCarlisle -- would `\char``\` work?
 
@barbarabeeton no :-)
 
@DavidCarlisle -- oh, you did say verbatim. well, that package isn't something any ams authors have asked for yet.
 
 
1 hour later…
10:42 PM
@DavidCarlisle So slow!
 
@egreg but more useful (even though you eventually added warnings about font dependence, and pictures:-)
 
10:58 PM
@DavidCarlisle But I get upvotes and you don't. :P
 
11:43 PM
@egreg no justice
@egreg actually given your low total for the day you probably need an accept or two.
 

« first day (2058 days earlier)      last day (2876 days later) »