« first day (2129 days earlier)      last day (2805 days later) » 

4:39 AM
Seems Erwann is not just pissed at me and @Kurt. Good to know.
 
 
1 hour later…
5:41 AM
I am trying to parametrize figure placement using \begin{figure}[\figureplacement] but I get Unknown float option `\'.
Is there a way to make this work? \figureplacement is defined by \newcommand.
 
@wilx just use \begin{figure} the whole point of the option is to use it to over-ride the class-specified default for special cases. When would you want to parametrise that? the default is \fps@figure which you can define to be whatever you would have defined \figureplacement as
 
user227867
6:04 AM
@Johannes_B I have been attacked by some SE users before. What Erwann said is nothing.
 
6:23 AM
@DavidCarlisle OK. Cool.
 
 
4 hours later…
10:18 AM
Hi everyone! Does anybody use Latex on Scientific Workspace? We are literally going crazy....
With a longtable (in landscape and generated with threeparttable) the caption above the table ...
 
@İremErten Don't use SWP, that's all. Probably you also get errors from the compilation. Or, maybe, SWP doesn't use an up-to-date TeX distribution.
@İremErten I added a comment to your question
 
10:44 AM
@İremErten This is what I get from \listfiles; I don't think it's too long
 *File List*
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size12.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
 amssymb.sty    2013/01/14 v3.01 AMS font symbols
amsfonts.sty    2013/01/14 v3.01 Basic AMSFonts support
 amsmath.sty    2016/06/28 v2.15d AMS math features
 amstext.sty    2000/06/29 v2.01 AMS text
  amsgen.sty    1999/11/30 v2.0 generic functions
  amsbsy.sty    1999/11/29 v1.2d Bold Symbols
  amsopn.sty    2016/03/08 v2.02 operator names
geometry.sty    2010/09/12 v5.6 Page Geometry
@İremErten Just the part from *File List* up to *********** is needed
 
11:04 AM
@egreg thanks ... my professor uses SWP and i need to fix his code. He likes this software but he cannot compile the document appropriately as you say ... here i send you what i get as log file
*File List*
article.cls 2014/09/29 v1.4h Standard LaTeX document class
size12.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
amssymb.sty 2013/01/14 v3.01 AMS font symbols
amsfonts.sty 2013/01/14 v3.01 Basic AMSFonts support
amsmath.sty 2016/06/28 v2.15d AMS math features
amstext.sty 2000/06/29 v2.01 AMS text
amsgen.sty 1999/11/30 v2.0 generic functions
amsbsy.sty 1999/11/29 v1.2d Bold Symbols
amsopn.sty 2016/03/08 v2.02 operator names
geometry.sty 2010/09/12 v5.6 Page Geometry
this is my miktex code... i wonder what is wrong with my code :((
 
12:05 PM
@İremErten The list obtained with SWP is also needed
 
12:41 PM
@egreg Thought it might be. (Deleted the comment.)
 
12:52 PM
@egreg thanks again... i asked my colleague and he will get back to me on the SWP file list
 
1:45 PM
So I have split my Czech typography rules Lua code into separate file and I only load the code and use simple function calls in the .tex file.
Now, I should packagify it somehow.
 
 
3 hours later…
4:24 PM
@wilx VV
\begin{luacode}
  require(kpse.find_file('cstypo.lua', true))
\end{luacode}
 
@DavidCarlisle Yes?
 
that's a very complicated way of doing it:-) luacode is (possibly) useful for some in-document use of lua but not really in package calls, and not for extrernal files, you can just do
\directlua{require('cstypo')}
luatex has used kpse search for require for some years now, although originally you needed to call kpse explicitly
 
@DavidCarlisle Ah, OK.
 
@wilx also best to avoid luatexbase.sty in new code (the current version of luatexbase.sty is a compatibility layer for the older version but since 2015 latex has included a core luatexbase table in its lualatex setup
 
@DavidCarlisle xkcd.com/1726
 
4:39 PM
@JosephWright ah:-) being on holiday hadn't been checking such important sites and had missed that, thanks for the pointer:-)
 
@DavidCarlisle OK, I have fixed both issues. Thanks. :)
 
5:10 PM
@DavidCarlisle ooh
 
yo'
5:43 PM
@PauloCereda you haz mail...
 
5:56 PM
I am confused.
How does creating .dtx and .ins files work? Do you edit your .dtx and produce .sty out of it or do you author .sty and then "compile" a .dtx and .ins out of it?
 
@egreg i heard back from my colleague. Here is his SW files
*File List*
article.cls 2004/02/16 v1.4f Standard LaTeX document class
size12.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
amssymb.sty 2002/01/22 v2.2d
amsfonts.sty 2001/10/25 v2.2f
amsmath.sty 2000/07/18 v2.13 AMS math features
amstext.sty 2000/06/29 v2.01
amsgen.sty 1999/11/30 v2.0
amsbsy.sty 1999/11/29 v1.2d
amsopn.sty 1999/12/14 v2.01 operator names
geometry.sty 2008/12/21 v4.2 Page Geometry
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
ifpdf.sty 2006/02/20 v1.4 Provides the ifpdf switch (HO)
 
@wilx The former, not the latter. The .dtx file is a file that contains both the .sty code and the documentation in one file and then you can produce either one or both from it (with or without a .ins file, depending on how you set it up.)
 
6:11 PM
@AlanMunn That makes editing some of the sources, like the Lua files, hard...
 
@wilx This might be helpful to understand how a .dtx file works (maybe you've seen it already). tex.stackexchange.com/a/212806/2693
 
@egreg do you see any obvious reason for which my code does not work? :( I am desperate, whatever I do the code doesn't work on SWP ...
 
@wilx Well docstrip was written before Lua was a glint in some Brazilian's eye. :)
@wilx But I'm not the best person to reply to you about this, since I don't use dtx files for my own packages (more hassle than it's worth, for me.)
 
@AlanMunn How else can you package things in LaTeX world?
 
@wilx I just create a separate .sty or .cls file, plus associated .tex file(s) for the user documentation. I document the code just within the .sty file itself, and then use ctanify (via a small bash script) to put everything in a form ready for upload to CTAN.
58
Q: What is good practice when preparing a package for CTAN?

Brent.LongboroughI'm thinking of submitting a package to CTAN, and would like some hints which will help keep the path as smooth as possible for me, the CTAN administators, and the final users. Please tell me what I should take care with in doing this. In particular, the doubts I have are: I'm not a top-drawer...

@wilx Remember that nobody but you really needs the .dtx file, since you will upload the extracted parts to CTAN anyway, and they will be installed via tlmgr by users. So unless you have particular reasons why you think .dtx would be useful for you, there's no need to use it.
 
6:22 PM
@AlanMunn OK, I thought that was the proper way to do things. From the linked question and answers, I see I do not need it. I will try ctanify.
 
@wilx It's really a system designed especially for documenting the code, not for the user documentation. But if you are producing a package for users, you will need to have a separate user document anyway, and the code documentation may be minimal.
@wilx For big chunks of code like the latex kernel, the system makes sense: it's the code that needs to be documented; there is effectively no 'user' documentation. But for more user oriented packages, it's the user documentation that matters, and that isn't really very practically done via .dtx.
 
@AlanMunn OK.
ctanify: Not including src/cstypo.lua in the TDS tree (unknown extension)
:(
 
@wilx You can tell it what to do with any extension. (I'm pretty sure of this.)
 
@AlanMunn Ah, src/cstypo.lua=tex/latex/cstypo works.
 
6:38 PM
@wilx Is your package going to require luatex to run? If so you should put things into tex/lualatex/... rather than tex/latex
 
@AlanMunn I see. Both .sty and .lua or just the .lua files?
 
@wilx Both. The basic idea is the packages in the tex/latex directory should be engine-independent, and packages dependent on a particular engine should go in the directory for that engine. Things get a little messy these days with packages that work with both xelatex and lualatex, but that's the general idea at least.
 
@AlanMunn OK.
 
@wilx And if your code could be made to work also with plain luatex (not just lualatex) then it would make sense to put it in the tex/luatex directory rather than the tex/lualatex directory.
 
7:00 PM
@AlanMunn Hmm, I have no idea about that. I have never written plain TeX.
 
@wilx Lua callback stuff tends to work with plain
 
7:12 PM
@İremErten As I suspected, the TeX distribution provided by SWP is quite old.
 
7:46 PM
@egreg: I'm referring to your this comment...
...it was posted 2 minutes before the closure went through.
Either way, we can remove the discussion within the comments as the question, as it doesn't pertain to the actual question anymore.
 
@Werner No, I was writing my answer when I was notified of closure. Then I voted for reopening, pushed my answer and wrote the comment.
@Werner I also left a comment explaining why it is not a duplicate.
 
@egreg Yup.
 
@wilx Once you're done you could probably show people here what you've done and they could tell you how to package it for both. Usually you build a .sty wrapper for the code which you put in a .tex file and just \input it in the .sty. Then people using plain TeX can just \input the .tex file. (Maybe @JosephWright knows of a different/better way.)
 
@egreg What do you mean by "multiple paragraph endings"?
 
@Werner “ENDING”, a verb. And “MULTILINE”, not multiple.
 
7:50 PM
@egreg Oi...
...thanks for remaining calm.
 
@AlanMunn As it's a Lua solution, plain users could just \directlua{dofile("...")}
 
@Werner :)
 
@JosephWright Ah, ok. I haven't been following the details of it. Even simpler.
 
@wilx the whole dtx stuff is quite optional of course.
 
@egreg: I see you have a new favicon/gravatar showing in the chat.
Just in the chat display.
...when it's small...
...as in, a single line of chat.
This might be related:
20
Q: Why is my profile image different?

LaurelWhen I first signed up on a Stack Exchange site and got a profile image, it was this one (see my current user card): Later, I got Area 51 and SEDE profiles, and my user image there was a different identicon. Because reasons I already know. I would have a picture of it, but that's the problem....

 
user227867
7:59 PM
@Werner You sounded a little harsh when you said 'why answer if not sure' that day. =)
 
@JasperLoy Yes?
 
user227867
@Werner OK. No need to say 'yes?' =)
 
I know the hunt for reputation is an addictive one. Perhaps at that stage I was thinking that was the case. :-/
And by "hunt for reputation" I mean that people would answer without being really sure of whether it's an answer or not...
 
user227867
I think the addiction to rep or not is not really important there though.
 
user227867
But anyway, it was still a pretty harmless comment.
 
user227867
8:02 PM
I just thought I would mention it.
 
@JasperLoy M'kay.
@JasperLoy M'kay... and you did.
 
user227867
LOL. You are good at one word responses, lol
 
@JasperLoy :)
 
user227867
I remember seeing your blog long, long ago.
 
@JasperLoy My blog?
 
user227867
8:04 PM
@Werner Yes, or website or something.
 
@JasperLoy That is actually my wife's blog... she was writing up her journey to a black belt in karate.
 
user227867
@Werner What? You are man, not woman? LOL
 
@JasperLoy Oh the Internets.
 
user227867
@Werner I thought you were woman all these years, LOL
 
@JasperLoy You know I'm not actually a duck, yes?
 
8:06 PM
@JasperLoy Hmmm.
@JosephWright :D
 
user227867
@JosephWright Yes, I have seen your face, but maybe that is your husband?
 
@JasperLoy Quack
Where's @PauloCereda when I need him :-)
 
@JasperLoy And most of the TeX - LaTeX users have gravatars for spouses.
 
user227867
@JosephWright I think quack means yes.
 
So, the burning question is who is coming to UK-TUG 2016, 15th October, Oxford :-)
 
user227867
8:08 PM
I never liked Oxford. I prefer Cambridge. But Oxford makes better dictionaries though. That is the only advantage.
 
And does @DavidCarlisle know good restaurant near Trinity (sorry David, we could only get the dungeon this year)
@JasperLoy Oh, agreed (but then PhD Cantab so ...)
@JasperLoy Oxford is better for several members of the UK-TUG committee
And @DavidCarlisle of course
 
@JasperLoy oxford makes better cars
 
@DavidCarlisle Sorry, did you ever have an Austin?
@DavidCarlisle Germany makes better cars
 
user227867
@DavidCarlisle I don't like cars. I only like women. =)
 
@JosephWright the oxford cars are all bmw these days (and I have two VW:-)
 
8:13 PM
@DavidCarlisle The fake "we're low emissions" model?
 
@DavidCarlisle Yes, yes: I had a conversation recently with someone where I had to explain that the modern 'Mini' is really a BMW and point them to a real Mini
 
@AlanMunn no they are 15 year old petrol Passats so probably genuine high emission, so that's OK.
 
@JosephWright The modern mini isn't even very mini any more.
@DavidCarlisle :) Artisanal high emissions, probably. They're all the rage I hear.
 
@AlanMunn No. That's where said conversation started: my friend was saying how little room there is in a Mini for a baby seat + ..., and I said 'in a real Mini, there's basically no room for the driver on their own'
 
So I am trying to write some short user manual for my thing.
 
8:17 PM
@JosephWright Whatever this is, it's not a mini.
 
And I have hit some weird characters issue in enumitem-zref at lines 42-44 of ctan.mackichan.com/macros/latex/contrib/enumitem-zref/…
Is the file corrupted or what?
LuaLaTeX does not like it.
 
@wilx Load the luatex85 package. It's probably unrelated to characters.
 
@Werner I see the usual one.
 
Still the same:
! String contains an invalid utf-8 sequence.
l.42 \TMP@EnsureCode{`\
                     �}}{14}   % �  (default comment: itemize option)
 
@egreg Same here
@wilx Doesn't look like it's UTF-8
 
8:23 PM
@JosephWright I checked also with Firefox and it's the same
 
@egreg This is what I see:
 
@wilx lines like \catcode`\§ \active \def§ but using latin1, needs to be utf8
 
@JosephWright It does not...
 
@Werner I see you have a different gravatar!
 
and for example \TMP@EnsureCode{`\Ð}{14} % Ð (default comment: description option)
 
8:27 PM
@egreg :-o
 
@Werner, @egreg I suggest becoming ducks
 
@DavidCarlisle I see a D with a dash over the vertical line. Is that what is supposed to be there? Is this a bug of packaging or source? :) Shall I report it?
 
@JosephWright Those seem to stick on this site. :D
 
@egreg I see the 'red' icon for you when doing auto-complete, but you look OK otherwise
@Werner I'm seeing the 'wrong' icon for you in the one-line posts here but the right one for multi-line ones!
 
@JosephWright Now @Werner has returned normal, but not in auto-complete
 
8:29 PM
We're all over the place...! Yes, we, not just me. ;)
 
@JosephWright I'm seeing the wrong one for all posts here but not on the site.
 
@JosephWright Seeing as I didn't manage to get up to Toronto, it's unlikely I'll get to Oxford. :)
 
@AlanMunn :-)
@AlanMunn I'm a realist: the target at the moment is to beat our record low turnout (4 people, 3 of whom were on the committee)
 
@JosephWright Oh dear. Sounds like real life Monty Python.
 
8:34 PM
@AlanMunn We've done better more recently
@AlanMunn My guess is somewhere around 8 people
@AlanMunn Judean People's Front?
 
@egreg thanks for letting me know!!!
 
@JosephWright Yes, that, or Four Yorkshiremen.
 
@AlanMunn Ah
@AlanMunn Have to see where (and when) TUG2017 is
I think I'll be able to make it given a fair wind
 
@wilx that is the character but file has to be utterly for luatex I suspect this has been reported before but no harm to report again
 
@egreg my colleague however is super keen on SWP compiling -- what should I do? should i submit him all my files (which are newer)? he still cannot compile anything properly ... the SWP helpdesk doesn't help
 
8:37 PM
Switched to phone as laptop power died 😕
 
@DavidCarlisle Eek
 
@İremErten It's very hard to maintain backwards compatibility depending on what packages you use. One possibility would be to install a legacy TeX Live system on your machine.
 
@JosephWright power lead broken I can charge u
 
@AlanMunn Indeed: that relates directly to a team mail I've writing at the moment
 
..up using boys when not doing more important stuff like minecraft
 
8:41 PM
@DavidCarlisle Ah, indeed
 
@JosephWright Speaking of conferences:

Mon., Sept. 12 - 8am-5pm
MSU-FBI Academic
Alliance Conference
:o
 
Thanks @AlanMunn !
 
@AlanMunn -- it's the "monsieur bip" of minis. absolutely not a real mini! imposter!
 
@barbarabeeton Yes, I took that picture because I could barely believe it. I remember when the new mini first came out and was heavily promoted in the movie The Italian Job. But those were the cute smaller ones. This is a monster.
 
@İremErten You're in a dead end, it seems. :(
 
8:50 PM
@İremErten The tricky part will be deciding which year of TL to install. But there's an archive of them available, so it might be a possibility.
 
yes looks like :( i believe that i should learn SWP, otherwise my codes won't be usable by my colleagues
hopefully SWP is not tough to learn ! i just downloaded it :))
Thanks @egreg and @AlanMunn for your attention and willingness to help! that's greatly appreciated here
 
9:05 PM
@AlanMunn: Alright, here the cstypo package: github.com/wilx/cstypo. See github.com/wilx/cstypo/blob/master/cstypo.pdf for short documentation.
 
@wilx \PackageError takes 3 arguments: \PackageError{pkg-name}{error-text}{help-text}
 
@AlanMunn Hmm, I have cargo-culted it from somewhere with just one. :)
 
@wilx :)
 
@wilx in the documentation I'd just say (for example) \cstypoSingleLetterEnable rather than \newcommand\... as people will just cut and paste code they see.
 
@wilx Might have been using \@ehc or similar
 
9:11 PM
@wilx if you work from the assumption that your users will never make errors, it doesn't matter as that code path will never be used anyway:-)
 
@DavidCarlisle :D
 
@wilx also I'd use \directlua rather than \luaexec (I think luacode package is over-used:-)
 
@wilx I'm not a plain expert, but it seems that if you used \long\def instead of \newcommand then you could make the command definitions plain vs. latex agnostic. Maybe @DavidCarlisle has also an opinion on this. Then you would put all the command definitions into a separate file which would be \input and both could use it.
@DavidCarlisle For these sorts of commands do they need to be \long? (I would guess no).
@wilx And I totally agree with David on changing the documentation so that only the command is shown, not its definition.
 
@AlanMunn they have no argument so makes no difference, arguably they should not be long but I don't think I've ever used \newcommand* (although I probably implemented it:-)
 
@DavidCarlisle :) Yes, that's what I thought.
 
9:17 PM
@AlanMunn OK.
 
@JosephWright Anything different for non UK TUG members?("Attendance at the meeting is free for members of UK-TUG.")
 
@StefanKottwitz I'd have to clear it with the committee, but traditionally 'no'
@StefanKottwitz Membership is only £10 so it's not a big barrier, I hope
 
@JosephWright Non-members have to buy all the beer.
 
@AlanMunn We have to agree on lunch plan this year
 
@JosephWright £ ? Not any more >:-)
 
9:28 PM
@JosephWright here it's just round the corner, then @egreg would be sure to come lh3.ggpht.com/-fd37_Jtv56o/V0lwd8FW5mI/AAAAAAAAM7A/…
 
@StefanKottwitz We have a hardship mechanism ;-)
@StefanKottwitz Seriously, we've never charged anyone for coming to the meeting
@DavidCarlisle Usual fallback is M&S sandwiches
@DavidCarlisle I'm pushing for the Gutenberg model: retire to a restaurant for ~3 h and have the committee buy the drinks :-)
 
yo'
@JosephWright lunch plan easy, isn't it? You can do as TUG: let the people register into the group on the spot
 
@JosephWright If somebody would be interested in a talk about network applications of TeX, such as programming switches and drawing network architectures including ip calc with LuaTeX for docs and configs, I may make it as a job travel.
 
@yo' in practice the only people there are the committee plus people who live near oxford and have been members for a few decades, so registering people isn't really an option.
 
@DavidCarlisle Sounds about right
 
yo'
9:35 PM
@DavidCarlisle Ah then I probably read this wrong as that the lunch is free as well: "Attendance at the meeting is free for members of UK-TUG. The committee will provide lunch as part of the day: please let us know if you will be attending to plan for this."
 
@StefanKottwitz Talks on any topic are welcome
@yo' I need to know how many to cater/book for (still agreeing on what we will actually do this year: no sandwiches available at the venue)
@StefanKottwitz Kaveh or I will be recording so there will be wider availablity
@StefanKottwitz We often get @PauloCereda by Skype :-)
@yo' I have on occasion taken the £10 on the day
@DavidCarlisle We got a bit more of a mix in London (don't think I ever saw you there), but that was not really an official booking ...
@StefanKottwitz Let me ask the committee what they all think
 
yo'
@JosephWright the thing I don't undestand is whether the lunch is for free (paid by UKTUG) or not
 
@yo' In previous years I've had sandwiches booked but this year can't get them, so I've had to be a bit vague on what we'll do. Certainly if we go for M&S sandwiches they'll be paid for by UK-TUG. If we go out for lunch I'm not yet 100% sure what the deal will be.
 
@JosephWright I only went to london uktug meetings when I was on the committee:-)
 
@DavidCarlisle :-)
 
yo'
9:44 PM
@DavidCarlisle is it that far?
 
@yo' You did see how many people actually go, did you?
 
@yo' that isn't the question, it's is it worth going
 
@DavidCarlisle I'll probably revisit xparse this year, following up a talk I gave at (I think) my first UK-TUG meeting
@DavidCarlisle Don't you want your annual dose of JF?
 
yo'
@JosephWright to UK-TUG AGM? no, I'm not even a member
 
@yo' I meant @DavidCarlisle's earlier comment
@yo' in practice the only people there are the committee plus people who live near oxford
 
yo'
9:47 PM
@JosephWright ah ok, how many members are there altogether?
 
@yo' well until "recently" (1988) I was in Manchester so London was 3 hours or so by train, since then I'm in Oxford but still if the meeting wasn't actually in Oxford i probably wouldn't go.
@JosephWright do you want me to come at all?
 
@yo' Currently 89 including the honorary ones
@DavidCarlisle :-)
 
yo'
@JosephWright ah ok
 
@yo' Down a lot from when I started doing the admin (was about 170)
 
@JosephWright you got mail
 
10:03 PM
@AlanMunn Done.
@AlanMunn And done.
I have cargo-culted the incomplete invocation of \PackageError from impnattypo package.
 
@wilx Based on @DavidCarlisle 's comment the \long isn't actually needed although it doesn't do any harm.
 
@JosephWright Oct 15 we planned to test a new ship at sea, but let's see...
 
@wilx which doesn't work at all: \PackageError{The nosingleletter option only works with LuaTeX} :(
 
@JosephWright Get me a ticket and a few bucks to buy ingredients, and i will cook something up. It'll be tasty. Not jut sandwiches.
 

« first day (2129 days earlier)      last day (2805 days later) »