@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 :)
@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...
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.
I'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...
If 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...
When --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...
@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.
@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}
@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.
@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
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?
@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 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.
@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.
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.
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
@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)
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 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
@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. 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.
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.
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?
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...
I 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.
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.
@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=...]{...}?
@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
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:-)
I 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!
@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.
The 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...
@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 ...
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?
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
@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?