« first day (1587 days earlier)      last day (3348 days later) » 

cfr
12:28 AM
@JosephWright Llongyfarchiadau!
(Cathod TiKZ Cats)
 
yo'
@cfr and where's the anode? :)
 
cfr
@yo' For electrolysis?
 
@PauloCereda :)
 
cfr
@PauloCereda Did somebody mention cookies?
 
@cfr @PauloCereda \prg_replicate:nn{100000}{cookie}
3
 
cfr
@egreg Pah! These new-fangled, mass-produced cookies just aren't the same!
 
yo'
12:56 AM
@cfr well, there's no cathode without an anode :)
@cfr LOLOLOLOL!!!
@egreg and what about \scalebox{100}{cookie}? :)
 
@cfr ooh cookies! :)
@cfr How does one say cookie in Welsh? :)
 
yo'
@Paulo!
 
@yo'!
 
yo'
Todays wisdom: Do not mix beer, rhum and slivovice.
 
Tom <3
 
yo'
1:07 AM
@PauloCereda how do you do? :)
 
@yo' In a hurry, updating my systems, backup, getting my backpack. Tomorrow I go to SP. :)
@yo': and you, buddy?
 
yo'
@PauloCereda ah
@PauloCereda busy too, but it's not too bad. We just have to finish this paper before I leave France. I hope to do that next week. Also, I need to go to bed, but my orientation sensors are a bit off-measures and I'm afraid that if I lie down, it won't be good :)
 
@JosephWright: no worries about the sample, I managed to find one you sent me quite some time ago. Thanks. :)
@yo' Oh no! You could sleep in a very uncomfortable position, that might help. :P
^^^ bad advice detected
 
yo'
@PauloCereda well, I'll try in some 15 minutes and if it's really bad, I'll sleep in the chair
 
@yo' Oh. :(
 
yo'
1:13 AM
@PauloCereda well, I can blame only myself you know... and the barman giving us free grapefruit rhum and my friend having a home-made slivovice :D
 
@yo' ooh! :)
@yo': I'd blame the L3 team for :D :)
 
yo'
@PauloCereda yeah, it was lovely. Then I climbed the 6 flights up and got a bit sober. The hangover is bad today for some reason.
 
@yo' They always say, don't drink and derive. :)
 
yo'
@PauloCereda what?
 
@yo' Bad joke, sorry. :(
 
yo'
1:16 AM
@PauloCereda maybe not, I just didn't get it...
 
yo'
@PauloCereda ah ok :)
 
@yo' I have bad jokes. :)
 
yo'
@PauloCereda ok, it's time to go I think
Good night!
 
1:43 AM
@yo' Good night Tom! :)
 
@DavidCarlisle Thanks David! I'll try to follow that and identify numbers before converting them to LaTeX source, then I can add the \num to each one.
 
 
1 hour later…
cfr
2:44 AM
@PauloCereda It depends on the sense. The cookie monster sense has to be 'bisgedi', I think (biscuits). But computers eat 'cwcis'. The Academy gives 2 senses. The first tells you to look up 'biscuit'. The second is supposed to be 'cookie' in the sense of 'bun'. I don't understand that at all. 'cookie' and 'bun' mean entirely distinct things in the version of English I speak! And they don't have the computer kind at all...
 
 
1 hour later…
3:58 AM
How can I proportionally scale the whole document? It's with the standalone documentclass and contains only a bit of text/math. It's important that the scaling be proportional. For example, a 12pt Computer Modern scaled to half the size should not use the (different looking) 6pt Computer Modern font. It should still use the 12pt version, just output smaller.
 
 
4 hours later…
8:19 AM
@Szabolcs \mag=1200
 
Hello, everyone.
 
@FaheemMitha Hi
 
Hi @Johannes_B
I'm trying to figure out how to run external commands from a LaTeX file. Google found me:
10
Q: Is it possible to call external programs from LaTeX?

drastoI'm trying to write very specific LaTeX package that does a lot of complex computation. It encloses some parts of text (or whatever else user wants to print) into boxes and then runs quite complex computations to determine where to lay out those boxes in the document. It is not practical to prog...

Bashful sounds promising. I'll try that first.
Incidentally, the SE search didn't bring up anything. I think they need some Google Secret Sauce.
 
8:35 AM
@FaheemMitha Remember --shell-escape is a switch to potentionally letting strange stuff happen
Is that an answer, or more like a comment?
1
A: How to add templates to TeXmaker?

KimIf you extract the zip file to a folder then open the main.tex or whatever the main file is in TeXmaker it should automatically open the 'template' i.e. the structure will all be there. Is this what you meant or did you mean to get TeXmaker to recognise it as a template in the Wizard menu (whic...

 
@Johannes_B Sure. But if I want to call external commands I don't see an option.
 
@FaheemMitha It was a mere reminder, don't forget that you toggled it on.
 
@Johannes_B ok
 
@FaheemMitha Btw, depending on what you want to do, Lua might be interesting for you.
 
@Johannes_B yes, but then I need to use lualatex, right?
 
8:48 AM
@FaheemMitha Not necessarily, you can call it from pdflatex using texlua, iirc.
 
@Johannes_B Oh. Do you have an example or reference to hand?
 
@FaheemMitha Just trying it out.
 
@Johannes_B ok
 
9
Q: Using \input|texlua... to emulate \directlua in pdfTeX

Bruno Le FlochWhen --shell-escape is enabled, pdfTeX allows to run external programs and input the result expandably with \input|"...". Together with the Lua interpreter texlua, this could be used to provide a dumbed down version of \directlua. However, texlua expects a file name as its argument. In my setu...

 
@Johannes_B Ok, is this better than bashful, for example?
I see even Bruno asks questions here. He's an expert himself, I think.
 
8:54 AM
@FaheemMitha No. It is something different. If i understand it correctly, bashful gives you acces to the shell, allowing you to execute any script/command/application. Lua on the other hand is one single scripting language.
 
@Johannes_B Oh. I just want to call python and pdflatex from my latex file. As long as it doesn't take too long.
 
@FaheemMitha Even experts can ask questions. And you need questions to find answers.
@FaheemMitha Pythontex, as mentined in the Q/A you linked above isn't helpful?
 
@Johannes_B True but neither @DavidCarlisle or @egreg have asked any questions. In general it does not seem to be the fashion.
Among the cognoscenti, that is.
@Johannes_B It might be. But calling out to the shell might be simpler.
Aux question. Is there a simple way to compile an external latex file which is not included in the current latex file in any way?
 
@FaheemMitha That is what tikz-externalize does. But it is as simple as calling another instance of latex filename.
 
@Johannes_B I don't follow.
How do I do latex filename just by compiling another latex file?
 
8:59 AM
@FaheemMitha One sec.
@FaheemMitha Try the following using --shell-escape
\begin{filecontents}{\jobname-externalFile.tex}
\documentclass{standalone}
\begin{document}
I am external content.
\end{document}
\end{filecontents}
\documentclass{article}
\usepackage{graphicx}
\immediate\write18{pdflatex \jobname-externalFile}
\begin{document}
I am normal content.\par
\includegraphics[width=\textwidth]{\jobname-externalFile}
\end{document}
 
yo'
 
@Johannes_B Ok, thanks.
@Johannes_B That works, thanks. Can one use \immediate\write18 for anything, or only for specific commands like pdflatex?
 
yo'
@FaheemMitha all web2c ones (latex, pdflatex and pslatex) support it for sure. I suppose lualatex and xelatex do as well.
 
@yo' to be clear, I was asking if one can do \immediate\write18{whatever}, or is whatever restricted to certain commands?
 
@FaheemMitha What that does is basically wirte the argument to the shell and presses enter. Is used to convert eps to pdf with package epstopdf as well.
 
9:08 AM
@FaheemMitha Anything except Knuth's TeX, at least with TeX Live or MiKTeX
@FaheemMitha Depends on whether you allow 'full' or 'restricted' \write18
 
@JosephWright oh. is \immediate\write18 restricted, then?
 
yo'
@FaheemMitha ah this. It depends on the setting. You don't wanna a package to do dd if=/dev/random of=/dev/sda, do you?
 
@yo' agreed.
 
@FaheemMitha By default yes
@FaheemMitha There's an obvious security risk when not using it restricted!
 
@JosephWright ok, thanks. that's very helpful, everyone.
@JosephWright Sure.
 
9:12 AM
36 mins ago, by Johannes_B
@FaheemMitha Remember --shell-escape is a switch to potentionally letting strange stuff happen
 
@FaheemMitha look in your texmf.cnf file for exactly which commands are allowed when, the section that starts:
% Enable system commands via \write18{...}.  When enabled fully (set to
% t), obviously insecure.  When enabled partially (set to p), only the
% commands listed in shell_escape_commands are allowed.  Although this
% is not fully secure either, it is much better, and so useful that we
% enable it for everything but bare tex.
shell_escape = p
 
@DavidCarlisle I have two of these listed:
texlive-base: /usr/share/texlive/texmf-dist/web2c/texmf.cnf
texlive-base: /usr/share/texmf/web2c/texmf.cnf
TeX Live Debian packages...
 
@Johannes_B Closed
 
@FaheemMitha kpsewhich texmf.cnf will tell you which is being used (at least where the tree starts, there can be several active in the end)
 
9:15 AM
@JosephWright @yo' And guess who voted as well?
 
Oh, one is a symlink to the other.
@DavidCarlisle ok
kpsewhich texmf.cnf
/etc/texmf/web2c/texmf.cnf
So apparently neither.
 
@FaheemMitha kpsewhich --all texmf.cnf?
 
@FaheemMitha that one probably just has a comment saying add local mods here to over-ride the system one
 
kpsewhich --all texmf.cnf
/etc/texmf/web2c/texmf.cnf
/usr/share/texlive/texmf-dist/web2c/texmf.cnf
 
You know that you need a day off when you execute killall sh, wait a second and think *Wait, what, what have i just ... wtf?` and then start to laugh like crazy.
@FaheemMitha You don't want a texfile to do this ^^^^^ right?
 
9:23 AM
@Johannes_B I don't. So is pythontex safe as well?
 
@FaheemMitha What is safe, what isn't? You can make a python script that wipes your hard drive. As long as you know, what you are executing and trust yourself, i.e. work responsibilly, you will be fine.
 
@Johannes_B Good point.
 
@Johannes_B which means basically, don't run documents from people you don't trust
@Johannes_B would you know what xii.tex did if ran with pythontex (or tex --shell-escape, or luatex for that matter)
 
@DavidCarlisle I am pretty sure i ran that once with pdfTeX
Yeah, i did.
 
@Johannes_B That's my point. With pdftex it is safe to run it and see what it does. With --shell-escape or unrestricted python or lua, it might have erased your files.
 
9:35 AM
@DavidCarlisle To be honest, i wouldn't even test it for the lolz of it.
@DavidCarlisle I can run pdftex xii safely, since looking at the content, i can clearly see your hand writing.
 
@Johannes_B xii is an extreme case but the same applies to any MWE you copy from this site. If you run untrusted code on your computer then it will do whatever it does.
 
@DavidCarlisle Just thinking about filecontents.
 
@Johannes_B well that's restricted in a different setting in texmf.cnf
 
@DavidCarlisle I wonder how many people erased their myBibliography.bib by some silly mistake and two seconds of not thinking.
 
It's because pdflatex is basically sandboxed that we can push so hard for MWE in questions. You don't see the same request for full code in other programming forums as no one in their right mind would take some C code from an unknown person on the internet and compile and run it to see what it does.
4
 
9:43 AM
0
Q: How do I align arithmetic problems?

Raymond ParkIf I wanted to align 2-digit multiplication with the line underneath, how would I do it?

 
@Johannes_B this? vvv
12
 3 *
--
36
 
@DavidCarlisle How would i know? :-D
 
@Johannes_B but I think I got the sum right at least.
 
:20401572 Yeah, you did vvvvv
bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
12*3
36
 
@Johannes_B cheat
 
9:50 AM
@DavidCarlisle Seems you were right. ;-)
 
10:14 AM
I guess I should add something to my blog over the weekend about the DANTE award [focussing on Till's major efforts, of course :-)]
 
@JosephWright you could do a piece on why a DANTE award is much more prestigious than a paltry 359717 stack exchange points (just picking a random number)
@Johannes_B even got a tick for it
 
yo'
@JosephWright and @Paulo -- or one of our German friends -- has to write about it in our blog!
 
@DavidCarlisle Or 245653, that everybody sees being less than 246308
 
@egreg Good morning!
 
yo'
@egreg lemme guess: the higher one is Gonzalo's current rep and the lower one is David's
 
10:27 AM
@yo' Random numbers. ;-)
 
11:00 AM
That config file suggests one can selectively allow certain commands to be run, but disallow others. I want to run hg from pdflatex, but currently I've just enabled -shell-escape to do so. Can I selectively allow hg?
 
@FaheemMitha don't think so, AFAIK the list of allowed programmes is compiled in so that it is not misused.
 
@daleif I think it can be extended. Per the config file.
 
@FaheemMitha never tried it but I think if you add it to that list it should work
@FaheemMitha i would guess though that an hg commit hook allows arbitrary code to run so it's not really any more secure than just running -shell-escape
 
folks, what does Latex for string supposed to be? Maple generated this strange code
 
@DavidCarlisle Well, the command I want to run is just hg log. With some arguments.
 
11:11 AM
``test''
 
@FaheemMitha yes but (unless you write a wrapper script) you'd have to allow hg
 
which Latex does not like. In Mathematica, it does something different:
 
@DavidCarlisle Yes, and allowing hg allows arbitrary stuff, I suppose.
 
Which I can understand and it compiles ok.
 
@Nasser latex likes anything
 
11:13 AM
@DavidCarlisle do you Maple output for the string is ok?
 
@FaheemMitha which is exactly why the comments in that section point out that dvips and gs are not allowed by default
 
@DavidCarlisle Yes. Well, doesn't look like there is much I can do about it then.
 
@Nasser it depends what you mean by string if you want to typeset "test" with left and right quotes in text mode then ``test'' is the right thing. If you don't want to do that, it isn't.
@FaheemMitha I think you can make a script hglog that just does hg log and add that to the list in texmf.cnf
 
@DavidCarlisle yes, but is that more secure?
 
@DavidCarlisle but it does not look the same when compiled, here is screen shot
So I had "test" and ended up with Latex making it that funny looking ``test'' which is not the same as the input.
 
11:17 AM
@Nasser well of course mathjax only implements (a subset of) math markup and left and right quotes are fro text not math
 
@DavidCarlisle ok, will try it with pdflatex in texlive. and see what it does with it.
 
@Nasser I see your monster document has caught the attention of the firefox developers:-)
 
@DavidCarlisle yes. thanks for your help also on this. I since have moved to SVG and now things are going much better.
I am starting to think the whole web thing is going down hell any way. Browsers are buggy, web full of terrible web pages, viruses, spam, popus, javascipt all over. I do not browse any more really. This whole WWW thing is becoming a disaster if you ask me.
 
@Nasser so in other words it is fully integrated into society.
 
@DavidCarlisle sort of yes ;)
 
11:36 AM
@Nasser well, one can always choose to write non-terrible web pages.
 
@FaheemMitha sure. But most are terrible pages. Just visit Yahoo for example ;)
 
@Nasser the world is full of terrible things. web pages are among the least of it.
 
I think the web will collapse under its own weight. Give it 10 more years. More junk is added each day, it will soon be so bad, no one will want to go to the web.
 
@Nasser If it bothers you don't visit (I don't think I've been ion that site since last century)
@Nasser I think I can confidently predict that isn't going to happen:-)
 
 
1 hour later…
1:06 PM
Anybody around with some graphics foo? I want an ad like this
http://meta.mathematica.stackexchange.com/a/1168/1660
for our community ads. Who's up for the challenge of creating the right template and sending it to the author?
 
1:45 PM
@MartinSchröder I can try something, but right now I'm out of my domains (in São Paulo). :)
 
2:18 PM
Have you ever compared the membership numbers of the local LaTeX User Groups? tug.org/usergroups.html
@DavidCarlisle But just that. No upvote, no thanks. Got my +1 now ;-)
 
@Johannes_B Those numbers probably need to be updated
 
@daleif I would like to see updated numbers.
@daleif Just noticed, that you are the president of dk-TeX. :-)
 
@Johannes_B oh no, I was going for unsung hero,
 
@DavidCarlisle Awarded zero times on TeX.SX
 
@Johannes_B I have one on SO :-)
No one tell @GonzaloMedina but
6
Q: How to extract each pair of two adjacent cells of a table into a separate tight page?

stalking isn't tolerated For the sake of simplicity, I provide a table as follows. I cannot make it simpler because simplification probably no longer match my real scenario. The code below was written by me and modified by David Carlisle in another thread here. The link will be provided later if needed. \documentcl...

 
2:29 PM
@DavidCarlisle I think not even stopping @Paulo from voting gets you unsung here.
 
2:39 PM
@Johannes_B Not any more. Kaja is.
 
@daleif Oh, .... so the list really needs an update :-D
 
@cfr -- this was the comment: [Why does documentation always assume that nothing will go wrong?!] i still think it's worthy of a star.
 
@DavidCarlisle So finally you'll overtake me in the next days.
 
@GonzaloMedina not necessarily. If you keep getting 330 a day, a boost of 500 isn't going to help me much.
 
2:58 PM
@DavidCarlisle But you will have 4 of those!
 
@GonzaloMedina I think this is the third of 4.
 
3:34 PM
@DavidCarlisle Then I still get a chance :)
 
Any recommendations for text transformation engines? I'm working on a wiki -> TeX workflow to propose at work.
@DavidCarlisle Don't you use some baser format that TeX is generated from?
@MartinSchröder I saw something similar to that for bounties – somewhere………
17
Q: How to convert mediawiki syntax to latex?

Samuel LampaI think I've seen a script for converting mediawiki syntax to Latex. Also, in case there are more than one solution for this, it might be nice to summarize them here.

there is this (vvv) but I also need to introduce complex objects into the wiki syntax. I suppose the noted plugin would just have to be extended.
 
3:53 PM
@SeanAllred I use XML as source for pretty much everything, and generate html, tex, C, fortran c# VB or whatever from the same XML using XSLT.
 
yo'
4:14 PM
Got Mortarboard on AC.SE for an IMHO not really good answer ... :-/
 
Hi @DavidCarlisle, thanks for your note about \mag. What sorts of problems, if any, should I be prepared for when using it? I'd use a very large value, such as 10000.
 
yo'
@Szabolcs Error: Dimension too large! whenever you have anything larger than 18.9 feet.
 
@Szabolcs it will scale everything set with normal units but not scale anything set with true units (that is the only thing true does) so sometimes (following plain tex) page dimensions are set to true cm but fonts are set in (not true) pt that means that \mag can be used to scale the text without changing the page dimensions, but I guess you want to scale everything. The other way of course is just to scale the pdf afterwards which is essentially what things like beamer do
 
@DavidCarlisle How would I scale the PDF afterwards? Ghostscript can't do it. Maybe include it in another LaTeX document as a figure and scale it there using \includegraphics[scale=...]{...}?
 
yo'
@Szabolcs that's not unseen.
 
4:28 PM
I think \mag will be good. I don't expect to exceed that size.
 
@Szabolcs pretty much any pdf printing software can scale as it sends to the printer, I'm sure gs's pdf output device (or wrappers around it) can do that
 
OK, maybe I got wrong information about Ghostscript
David should be nominated for Most helpful person on StackExchage :-)
 
@Szabolcs @egreg would nominate me I'm sure:-)
 
The following standalone document has just a tiny bit of the top and the bottom cut off:
\documentclass[12pt]{standalone}
\begin{document}
$\displaystyle x-\frac{x^3}{6}+\frac{x^5}{120}+O\left(x^6\right)$
\end{document}
Is this a bug in some component or is it user error on my part? Is it because I'm forcing \displaystyle on a text line? It doesn't usually occur with other similar expressions.
 
It's very tight so the bottom of the 6 that extends below its bounding box is clipped, doesn't standalone have an option to add some padding? (I never use it:-)
 
4:47 PM
@DavidCarlisle border=<dimension> in the class options will add padding. But this will goof up @Szabolcs' baseline alignment, I think.
 
yo'
@PaulGessler equivalent to margin=<dim> actually :)
 
@yo' no keystrokes savings... @PleaseStopTalking would be unimpressed ;-)
 
analytic geometry has got easier since my day
0
Q: TikZ and analytic geometry

marmistrzI have four given points, for example A(3,2) B(5,4) C(-3, 4) D(-3, 0) How can I draw them in the Cartesian coordinate system, show the points, each accompanied by its name (A,B,C,D) and then draw the sides of the quadrilateral ABCD? I'm new to TikZ :) Thanks!

 
5:03 PM
@SeanAllred We already have that for bounties; see meta.tex.stackexchange.com/a/5981/5763
@PauloCereda take your time, there's no hurry
 
5:20 PM
@DavidCarlisle I'd surely prefer @GonzaloMedina. :P
 
@egreg thought you might
 
 
1 hour later…
6:41 PM
@DavidCarlisle wow, there are some energetic people on this site.
 
7:05 PM
@FaheemMitha not one picture mode answer
 
7:30 PM
@DavidCarlisle is that bad?
 
8:06 PM
@FaheemMitha very!
 
@DavidCarlisle -- the pest has sent you mail again.
 
8:21 PM
@barbarabeeton just replied
 
@DavidCarlisle -- you're a peach!
 
9:19 PM
@DavidCarlisle ^^^
 
cfr
9:31 PM
@barbarabeeton You want me to star my own comment? Why?
 
@cfr -- no, i don't want you to star your own comment; i want to star it, but i don't want to star the whole paragraph, only the comment about overoptimistic documentation.
 
@PauloCereda that's barbara, not me
 
cfr
10:39 PM
@barbarabeeton I don't think I can edit it, so...
Why does documentation always assume that nothing will go wrong?!
5
 
@SoundsOfSilence Always with the food. :-p
0
A: Sorting bibliography entries of similar author and year

Johannes_BThe default sorting scheme with biblatex is nyt (name, year, title). You can choose from a couple of predefined schemes, some more information can also be found in biblatex sorting by date. In the following example, we use booktitle = {Korean cuisine}, sorttitle = {Korea...

 
@cfr -- thank you. done! (and see -- i wasn't the only one who liked it!)
 
yo'
@barbarabeeton that one was instant! :D
Evening, btw :)
@JosephWright @StefanKottwitz Hello guys, I've got an idea: Could we maybe change the title of the blog post? This way it's probably quite confusing in teh Community Bulletin ...
 
10:57 PM
Hey, is there some command like \clap or \llap, but instead for a vertical box of height 0? E.g. \toplap, which typesets progressing upward from the position where the command was issued?
 
@1010011010 \parbox
 
@DavidCarlisle Ah. Thanks.
 
@1010011010 set the optional height argument to 0pt
or \makebox(0,0){ stuff with 0 height and width}
 
11:22 PM
Wily: Our new online PDF viewer lets you click links and save annotations!
Me: You know what else does that? A standard PDF.
Also, it doesn't have giant rendering errors in the middle of th epage
Yes, this is MUCH more useful then a normal PDF....
@DavidCarlisle 1) Couldn't you abuse \write18 to do some stuff? 2) If it is minimal enough to debug, it should be minimal enough to verify that it isn't going to do anything harmful. If the outcome isn't clear on reading (minus bugs), how are you going to debug it?
 
@Canageek yes that's why it's set to (p)aranoid by default
@Canageek but I often run documents that are not really minimal enough to debug, ever tried loading tikz with \tracingall ? But usually I feel safe enough doing it, even if it's using some weird non standard class as without -shell-escape tex is severely limited in the damage it can do
 
11:41 PM
@DavidCarlisle Fair point.
@DavidCarlisle Is PDF a safe subset of Postscript? I know Postscript is a full programming language, I wonder if you could abuse LaTeX into writing a PDF that could escape the Adobe sandbox and do some damage?
Without using adobe's javascript variant, I mean.
 
@Canageek think pdf is pretty safe, postscript lets you write files, but gs had a SAFER flag to turn that off.
 
@yo' Title changed
 
@DavidCarlisle I've met people who use postscript as a programming language for physics.
 
@Canageek yes it's quite a fun language really, for a while I used NEWS (sun's postscript based window system) as my desktop window system.
 
@DavidCarlisle It seems odd is all. When I think scripting I think Lua, Python, Perl, Lisp, not Postscript.
 
11:46 PM
@Canageek I don't think it's exactly optimised for numerics;-) (unless you have a lot of bezier curves to fit)
 
@DavidCarlisle They were doing nuclear physics with it
 

« first day (1587 days earlier)      last day (3348 days later) »