« first day (537 days earlier)      last day (4413 days later) » 

6:07 AM
5
A: Perspective transform

Andrew StaceyI have some code that I wrote to do a slightly more "proper" handling of 3D coordinates than TikZ currently does. Amusingly, it's in the TeX-SX launchpad package already despite not (until now) being part of an answer. It's the tikz3d.dtx package. The idea of it is twofold: More advanced han...

In this answer Andrew Stacey talks about a TeX-SX launchpad project about better 3D support in TikZ. Where can I find this so I can test it?
 
6:26 AM
I was just officially declared enthusiast :-)
 
Thanks a lot @TorbjørnT. @StephanLehmke, how so?
 
@HenrikHansen silver badge ;-) The easiest I earned so far.
 
hm. I wonder, just suggested the guy worried about the difficulty of learning TikZ that for simpler diagrams you can get away with Graphviz. Does Graphviz have here roughly the same reputation LyX has? :P
Found it odd no one had suggested it yet.
 
@StephanLehmke Easy for some, difficult for others. For example, even the coveted bronze set {Student, Teacher, Scholar} badges seem out of reach for @egreg... ;)
 
@badp Graphviz was linked to by Norman Ramsey tex.stackexchange.com/a/52643/11556
5
A: How productive are you with TikZ?

Norman RamseyI'm going to answer as a longtime user of PStricks. Everything I have to say applies to TikZ as well, but the learning curve for PStricks is longer and steeper than the learning curve for TikZ. (I have done a few TikZ things, but I already know PStricks, and while TikZ is better, it is not enou...

 
6:39 AM
@HenrikHansen yeah, I realized that a minute ago. His fifth upvote is mine.
 
Another point I about TikZ is the integration with TeX. The fact that the font is the same as the document and some of the other smaller similarities just adds up to a much neater look. SmartArt directly from word would look out of place in (most) documents made with LaTeX and I actually think the reverse is true too
 
7:14 AM
Yeah, you don't get that for free with GraphViz.
Also, "inbuilt" formula support.
 
7:43 AM
@HenrikHansen Before I learnt the One True Way, I used xfig for diagrams that xy couldn't cope with and there you could export it in such a way that the text was processed by TeX.
@HenrikHansen What Torbjørn said. Also, you might like to know of the "From Answers to Packages" chat room just over there: chat.stackexchange.com/rooms/409/from-answers-to-packages which is where people tend to tell me what's wrong with my code. Please let me know how the testing goes.
@badp A quick search shows a few hits for Graphviz on the site, including the dot2tex script fauskes.net/code/dot2tex/documentation. I've used Graphviz for Big Graphs but it would never have occurred to me to use it for very little ones. Maybe someone should write a package that could use graphviz as an external program much as it is possible to use gnuplot for plotting tricky functions.
 
8:03 AM
@AndrewStacey What I do know is that LyX accepts ".dot" files just like it accepts ".png" or ".svg", good enough for me :P
I just wanted to know what this community felt about Graphviz, anyway. Please don't take what I'm writing too confrontationally :)
 
@badp I'm no stranger to Graphviz: math.ntnu.no/~stacey/HowDidIDoThat/Random Just wouldn't have thought of it as a tool for use in LaTeX documents. Certainly for me it's a "Oh, I wouldn't have thought of doing it like that. That's neat. But I won't change how I do things." rather than "You should never use Graphviz with TeX. Go away and never darken our doors again with your nefarious practices."
 
@badp I really like graphviz for automated drawings, such as...
 
 
1 hour later…
9:18 AM
@belgi
 
9:40 AM
@tohecz I think everybody has the same version (it's not as if I change my packages every day:-)
@MarcoDaniel no, if you test \pagegoal in the normal page it will be wrong as often as not. if you test it in the \output routine it will be mostly right but will be wrong sometimes (more or less at the places where latex's \marginpar puts notes on the wrong margin)
 
10:18 AM
@DavidCarlisle Right, why to update something when it's close to perfect
@DavidCarlisle I just hope you don't mind me tweaking your code...
 
@tohecz no please do:-) If you add enough comments to it I might be able to remember what it's doing:-) actually I do have a bit of an update in the works based on an answer I gave here for making LT work in multicol and similar envrionments (basically if you have an option give up the repeating headers and just unbox the halign, you don;t need a custom output routine so it "just works" more or less anywhere, inside a box, in multicol etc..
 
10:39 AM
Can I call @ChristianFeuersänger into chat? If so, I've been playing with pgfkeys filtering and getting annoyed at the lack of recursion of styles. I've hacked together something that attempts to test if a key is a style and if so tries it again against the filtering. Would you be interested in the idea? At least you might be able to tell me what things to be wary of.
 
@DavidCarlisle fairy-tale about Lady longtable and Sir \shadowbox written ;)
 
@DavidCarlisle Interesting. I use the following test in my package. The aim is to compute the free vertical space on the current page:
\newrobustcmd*\mdf@freepagevspace{%
     \penalty\@M \vskip 2\baselineskip
     \penalty9999 \vskip -2\baselineskip
     \penalty9999
     \ifdimequal{\pagegoal}{\maxdimen}%
          {\mdf@freevspace@length\vsize}%
          {\mdf@freevspace@length=\pagegoal\relax%
           \advance\mdf@freevspace@length by -\pagetotal\relax%
           \addtolength\mdf@freevspace@length{\dimexpr-\parskip\relax}\relax%
          }%
}
Is this wrong?
 
11:03 AM
@JosephWright: Do you remember that you want to become a member of DANTE if the DTK will be published online? Every DTK older than one year can be downloaded now. dante.de/DTK/Ausgaben.html
 
@MarcoDaniel I should sort this :-)
One for the blog, too, I guess :-)
 
@tohecz OK will look thanks (I got distracted by @Werner's token question:-)
 
Lol it's fine, just that I leave now to be back on Sunday evening...
 
@MarcoDaniel well..... it depends. It can give the wrong answer, but it's your package so you can always say that using it in a way that gives the wrong answer is mis use.
It's a bit like supertab and longtable, supertab tries to second-guess where the output routine will break the page but doesn't always (or didn't always) guess right. longtable hooks in to the output routine so will always get the page breaks guess right (it ay not be the optimal brea but it will break where LT thinks, as it has control)
 
@MarcoDaniel Oh, I remember now. Joining online seems a bit awkward as there is no box for country!
 
11:12 AM
@MarcoDaniel If there is a lot of stretch or shrink on the page and the next thing (that TeX hasn't seen yet) is big, then TeX will have to shrink the page you are on so the pagetotal guess will be wrong (or not relevant) similarly (perhaps, depending where that test is, if latex decided to float a later float up to the top of the current page you lose
 
@JosephWright Really ;-) -- I know we have members from a different country. However I will ask the office ;-)
 
@MarcoDaniel It's okay: I've submitted the form and hope my entries make sense!
 
@DavidCarlisle this thing with shrinks might break my algorithm for \shadowbox, I have to look into it later
 
@DavidCarlisle How can I optimise the command?
@JosephWright It will work ;-)
 
I wonder, is there a TeX template that's the moral equivalent of taking a Word document, setting the font at bold 60 pt centered and typing (think "PSAs")? My attempts to google for that kind of failed. If this is a good question for the site (I kinda doubt it) just say so and I'll ask it over there.
 
11:17 AM
@badp PSAs?
 
"public service announcements"
kind of like "NO SMOKING ALLOWED."
 
I was thinking of the prostate cancer marker protein :-)
 
or "GRAYSCALE PRINTER FOR MEMBERS ONLY. 10.0.0.51"
 
@badp Might you simply use \resizebox{3} from the graphicx package?
I mean like \resizebox{3}{LARGE TEXT} is 36pt size font when the base size is 12pt
@badp It would be a relevant question, like "How to easily make large font announcements"
 
@MarcoDaniel well it's easier to say what's wrong than say how to fix it. As I mentioned it's basically the same issue as \marhinpar (well a bit worse if you are doing it on the main list) but while it's easy to see that marginpar is wrong no one has suggested a fix that doesn't require rewriting swathes of latex and being incompatible with everything.
Sometimes you just have to tell the user, ooops sorry that's a bad break stick \clearpage at the point it shoulld have broken and everything will be alright.
 
11:26 AM
@DavidCarlisle That's true ;-)
 
11:50 AM
PSA?! Paulo shoots araras? oh wait.
 
@PauloCereda :-)
 
@MarcoDaniel Angry birds. :D
 
@DavidCarlisle: Is this problem solvable with LaTeX:
\documentclass[12pt]{article}
\usepackage{kantlipsum}
\begin{document}
\newbox\mybox
\setbox\mybox=\vbox{\kant[1]}
\setbox\mybox\vsplit\mybox to 3cm
\box\mybox

\setbox\mybox=\vbox{\vbox{\kant[1]}}
\setbox\mybox\vsplit\mybox to 3cm
\box\mybox
\end{document}
 
@MarcoDaniel what's the problem?
i assume you don't mean LaTeX Error: File `kantlipsum.sty' not found.
 
@DavidCarlisle In the example I used \vbox{\vbox{\kant[1]}} Based on the second \vbox the command \vsplit fails.
@DavidCarlisle No. It's a new package of egreg ;-). You can also use \lipsum if you work with an older version of TeX Live.
 
12:01 PM
@badp Use the standalone class to produce a PDF that is cropped to the size of your message with that message in normal sized font, then use your PDF viewer to print it with resizing to as big as possible to fit on a page.
 
@MarcoDaniel In the second case the inner \vbox is an indivisible object and you have to unbox it.
 
@MarcoDaniel it won't break because it's in a box so not doing that would solve that but presumably it's in a box for a reason?
 
@AndrewStacey interesting
 
@DavidCarlisle It's an example. I know why the algorithm fails. It's a simple example of nesting two mdframed environments ;-)
 
\setbox\mybox=\vbox{\vbox{\kant[1]}} could be \setbox\mybox=\vbox{\vbox{\kant[1]}\setbox0\lastbox\unvbox0} for example
 
12:04 PM
@egreg My question based on this question: tex.stackexchange.com/questions/52632/…
@DavidCarlisle Do I understand this correct that \lastbox contains the last vbox and removing them?
 
@badp I had occasion to do this myself earlier this week. It was so much easier than trying to remember how to get massive fonts in LaTeX, or remembering how to start OpenOffice (or LibreOffice, or whatever we're meant to call it nowadays). evince has an option that lets you resize the PDF to the page when printing and that made it all easy-peasy.
 
@MarcoDaniel Yes
 
@egreg That's a difficult implementation ;-)
 
@MarcoDaniel yes (you can not do it on the main vertical list, just inside other boxes)
 
12:27 PM
Yay new TeXDev post. :)
 
12:43 PM
@egreg: Thanks
 
@MarcoDaniel You're welcome!
 
@JosephWright may I ask you on which channel you've heard about the release of the 1 year old DTK issues? (texdev.net/2012/04/20/die-texnische-komodie-online)
 
2 hours ago, by Marco Daniel
@JosephWright: Do you remember that you want to become a member of DANTE if the DTK will be published online? Every DTK older than one year can be downloaded now. http://www.dante.de/DTK/Ausgaben.html
 
@JosephWright thanks. I should read the chat more often :)
 
@PatrickGundlach ;-)
 
12:53 PM
I have a number of other sources :-)
 
@JosephWright :D
@PatrickGundlach: Is it right that the new release date of your book is in May 2012?
 
May, yes. 2012, no.
But I am working on it more than before.
 
@PatrickGundlach I hope to get this year a nice x-mas gift ;-). This is my source: lehmanns.de/shop/mathematik-informatik/…
 
@MarcoDaniel I promise I work hard on it to get it ready before christmas
 
@PatrickGundlach Thanks.
 
1:13 PM
Yay, Patrick's book for X-mas!
"Dear Santa, I've been a good boy this year. Please give me Patrick's book. Thanks!"
3
 
@PauloCereda Can you read German?
 
@egreg Oops! I forgot about that.
 
just google translate the source and compile it. that is why we automatize typesetting
 
@PauloCereda You can asked for an English version but first I want to get a German one ;-)
 
@MarcoDaniel Oh. :)
 
1:27 PM
\usepackage{babelfish}\advance\earcontents by \fish\relax
2
 
@AndrewStacey I'd hope \fish is an internal integer, in which case no \relax is needed :-)
 
@JosephWright internal, definitely. Integer, not so sure. However, I think that after performing the operation, a command to \relax is definitely needed.
 
2:02 PM
I don't like fish. Is there another translating animal?
 
@PatrickGundlach Keep us all informed on the book: I'm getting quite a collection of new (La)TeX works at the moment
 
@JosephWright Any LaTeX3 book in the oven? :D
Cows are not reliable for translation. :(
 
@JosephWright This book was published at the beginning of this year: dante.de/index/Literatur/Einfuehrung.html
 
@PauloCereda Not at the moment: I need to write some more blog posts. I'm sort of hoping @egreg might write something, as he's very keen on using LaTeX3 syntax!
 
@JosephWright OK, I'll do so. But whenever this is release, I will be so happy that everyone will notice :)
 
2:07 PM
@PauloCereda Yes -- use Lulu for interface3.pdf ;-)
 
Do we want a meta list of authors in the community of TeX related books? Or is there one already?
 
@MarcoDaniel I wish we had a similar website here. :)
 
@MarcoDaniel Mainly I see the English ones. Herbert has a series out, which I've not bought yet. I may have an excuse soon (some 'incoming' Amazon vouchers, for various reasons)
@NN Good idea
 
@JosephWright How would one formulate such a meta question? "Who are the book authors here?"
 
@PauloCereda Is lulu limited to Europe?
 
2:10 PM
@NN There is the package author question on meta: I'd model it on that
@MarcoDaniel They are based in the US, so I doubt it
 
@MarcoDaniel I think they ship to Brazil, I didn't manage to get my account to make international payments yet (it's one of the reasons I'm not a member of UK-TUG yet).
 
@JosephWright I thought in France.
 
@MarcoDaniel Not according to lulu.com/about/index.php
 
@JosephWright Interesting. I got my book from France. Maybe there were the printing machine ;-)
@PauloCereda Do you have a "Brazil TeX Users Group"?
 
buhu, I do not get my head around lisp
cond: Invalid function: (looking-back "\\[" (- (point) 2))
 
2:17 PM
@MarcoDaniel I don't think so. I know there's some sort of mailing list for Brazilian TeX users, but I pretty sure it's not affiliated to TUG neither other group. And the quality of the messages, oh the quality! :(
 
@MarcoDaniel Not sign on tug.org/usergroups.html
 
@PauloCereda Pity.
 
@MarcoDaniel Indeed. :(
I think there's something important lacking with our mailing lists and courses: people simply make assumptions on what should work and spread their solutions without even knowing why. Also people mix concepts. For example, I once saw someone mentioning rubber as a LaTeX compiler.
 
2:33 PM
@PauloCereda I know. That's why I try to promote good support material, for example LaTeX and Friends or our own course notes. It's important to get things right for new users.
 
@NN that expression works for me retuning t or nil, depending
 
@JosephWright That's a relief and the main reason I plan to translate your course notes to Portuguese. :)
 
2:46 PM
@DavidCarlisle It complains when I use it inside a function
Don't laugh
(defun forward-latex-math ()
  (interactive)
  (let ((count 0))
    (re-search-forward "\\\\(\\|\\\\)\\|\\\[\\|\\\]" nil t)
    (cond ((looking-back "\\\\(" (- (point) 2))
	   (while (looking-back "\\\\(\\|\\\[\\|\\\]")
	     (setq count (1+ count))
	     (re-search-forward "\\\\(\\|\\\\)\\|\\\[\\|\\\]" nil t count))
	   ((looking-back "\\\[" (- (point) 2))
	    (while (looking-back "\\\\(\\|\\\\)\\|\\\["))
	      (setq count (1+ count))
	      (re-search-forward "\\\\(\\|\\\\)\\|\\\[\\|\\\]" nil t count))))))
If I let that function search \( \) it complains thus
 
((looking-back "\\\(" (- (point) 2)) wont that evaluate the inner brackets to t or nil then try to evaluate the outer and tell you t isn't a function?
 
@DavidCarlisle What I want it to do is match \(
 
just lose one set of () I think (but need to go now)
It is matching th e( it's ((looking-back that wants to be (looking -back
 
@DavidCarlisle Afraid I do not get that. Maybe we can revisit the topic on a later occasion
Is this a reasonable format for a book list?
And should it be reserved for books, i.e. should articles be allowed?
Might be less verbose to make one for books and one for articles I guess
 
3:23 PM
One more vote needed to close:
0
Q: LaTeX document in multiple languages

ervingsbI am working on my resume (CV). I maintain an English and Danish version of it. Right now, this is two separate .tex documents. However, I figure there must be a more elegant way of handling multiple language versions of the same document. All the entries and sections in the CV are the same. (sa...

 
3:40 PM
3
Q: Who are the book authors here?

N.N.Some people of this community write packages but there are also those that write books. Therefore I ask, what community members have written books on TeX and friends?

I think one answer per book (or perhaps set of related books) would work best here, as we will have lot less books than authors
 
5 seconds and the question has a downvote of 3 ;-)
-3
Q: Justify text so that it stretches to the margins

Karan ThakkarThis is how the page I want looks. If you see, what I want is for the text to stretch to the margins like in the figure. Of course I can use a \parbox to achieve it but the text is longer than can fit in one page. So what do I do then? I tried a \hbox mentioned somewhere in this forum but that...

 
@MarcoDaniel And the OP asked for deletion. I feel that those downvotes were unfair: too early.
 
@MarcoDaniel Too much downvoting again. I'll address this in the blog later today, I think.
 
@egreg Indeed. After a small editing of the question, it's a normal question
@JosephWright It's ok.
I answered a question via e-email and provided the following example. How does the example look? I am thinking about an implementation to the documentation.
 
4:00 PM
@NN On tex.stackexchange.com/questions/52460/…, do you want it migrating back (which might raise some questions), or are you happy to let this go as there is an answer?
 
@JosephWright It would be awesome. I think we need to avoid massive downvote sprees.
 
@PauloCereda As I say, I'll write something later today. I have a stack of TeX-related e-mails to deal with first
 
@JosephWright Great! :)
Is the LaTeX3 book, isn't it? :P
 
@JosephWright: Have you seen this comment: tex.stackexchange.com/questions/42913/…
Do you know anything about it?
 
@Werner Yes, I saw that, and no I don't know anything about it either!
 
4:10 PM
@PauloCereda: Did you have time to work on arara?
 
The OP at tex.stackexchange.com/questions/52392/… is requesting advice on what he should do since the question was closed. I actually thought there were some tests that one could do.
 
@MarcoDaniel Not yet, I'm sorry. :( I'll try to get some things done in the weekend. :)
 
@PauloCereda No problem. I had to work too ;-)
 
@MarcoDaniel :)
 
4:42 PM
@Werner you shouldn't ask questions that are impossible, it's disquieting and makes it hard to concentrate on other things, trying to come up with an answer. At least, I think it's impossible....
3
 
Is this safe: \newcommand{\FormatOutput}[2]{#1{#2}}
\FormatOutput{\textbf}{Foobar}
 
@PeterGrill Use:
 
Damm!! How do you do code formatting here?? I Can't belive that that piece of code actually worked as I wanted. I thought I would have been require to pass in textbf and use \csname ...\endcsname
 
\newcommand{\FormatOutput}[2]{\csname #1 \endcsname{#2}}
\FormatOutput{textbf}{Foobar}
;-) I would do it in this way ;-)
 
@MarcoDaniel Yeah that shows me the formatted code, but don't know how you formatted it.
 
4:46 PM
@PeterGrill This is surely good.
 
@MarcoDaniel Yeah that is what I was going to do, and hence the surprise when it worked without that. So was wondering if there were other problems that would eventually crop up.
 
@PeterGrill It's simple: when TeX expands \FormatOutput it finds #1 to be \textbf and #2 to be Foobar, so it builds \textbf{Foobar}. Exactly as you requested. :)
 
@PeterGrill Code need a separate input and then press fixed font
 
Just to make sure I understand: You are saying it is ok to use it as I posted? So I don't need to resort to using the \csname... version?
@MarcoDaniel Where is the "fixed font" button to press? I hope that is not one of those "ANY" keys that documentation often refers to but does not exist on the keyborad. :-)
 
@egreg Write something press crtl+enter and you will see the buttom right of send and upload
 
4:52 PM
@PeterGrill That only uses an expansion step more. If I do "shift+return" I get the "fixed font button.
 
Ok, so will use \FormatOuptut{\textbf}{text} then.
Ok, "shift+return" gets me the button. But that seems to format the entire line.
 
@egreg I meant shift :-(
 
Testing the 4 space rule.
 
5:19 PM
@JosephWright: Any news from Bruno?
 
@PauloCereda He's busy :-)
 
@JosephWright :P
 
5:41 PM
@JosephWright With his PhD thesis?
 
@egreg Possibly: he did not say
 
@DavidCarlisle So which part is impossible, since you've giving it quite a fight!?
Use mortals are here to keep the @DavidCarlisle's and @egreg's busy...
 
Can someone help me out over here? I don't know what else to say.
0
A: Error using tufte-book class and biblatex

canoThe ouput of kpsewhich -var-value TEXMFHOME states that this directory is located in my home directory. But this directory doesn't seem to exist, because I can't change to it: if I want to do that, i.e. change to the directory as it was located by kpsewhich -var-value TEXMFHOME, the system states...

 
@Audrey The command \bibliography works without the ending bib ;-) -- addbibresource uses it -- I know you know it
But in the example it is shown in this way.
 
@MarcoDaniel Should the extension be left out of \bibliography?
 
5:54 PM
@Audrey yes
Whether \bibliography{test} or \addbibresource{test.bib}
 
@MarcoDaniel Feel like commenting on the OP's "answer" to say so? :)
 
@Audrey I took the example of the question itself ;-)
@Audrey Now it seems to work
The question can be closed as duplicated.
11
Q: Can I use biblatex with Tufte classes?

raxacoricofallapatoriusIs it possible to use biblatex with the Tufte document classes (tufte-handout and tufte-book). If so, what modifications should I make to my preamble or class wrapper in order to use bib latex? I've tried the recommended patch in a simple example: \documentclass[nobib]{tufte-handout} \usepac...

 
@MarcoDaniel Yes. Just in time. I was getting impatient. About the duplicate - yes I already voted. It would be nice if domwass could give an edit, though. I made a comment to him about that yesterday.
 
@Audrey It's a good idea.
@ ALL: This question should be closed. The question above is the original question.
0
A: Error using tufte-book class and biblatex

canoThe ouput of kpsewhich -var-value TEXMFHOME states that this directory is located in my home directory. But this directory doesn't seem to exist, because I can't change to it: if I want to do that, i.e. change to the directory as it was located by kpsewhich -var-value TEXMFHOME, the system states...

 
@MarcoDaniel Thanks!
 
6:02 PM
@Thorsten, @StefanKottwitz As @NN notes, it would be good to make each answer to meta.tex.stackexchange.com/questions/2438/… separate
@MarcoDaniel Closed
 
@Werner Well it's not possible to remove the last token if it is } or the first token if it is { 9so I redefined token to mean token-or-brace-group, which @StephanLehmke complained about in the comments:-) then even with that redefinition I don't think it is possible to remove the last token in general
 
@PauloCereda: I know why I couldn't add you as a collaborator. I am using the free version of github and then you can set any collaborator :-(
@JosephWright Thanks
 
@MarcoDaniel You can certainly add more than one person to be able to commit
For example, both @Audrey and I have commit access to github.com/plk/biblatex
 
addendum to log: To do: Go back in time. Distract Riccati with other matters. Let there be no Matrix Algebraic Riccati Equations. Finish PhD like a boss.
 
@JosephWright commiting yes but a collaborator can also create / edit the github-pages: marcodaniel.github.com/mdframed
 
6:05 PM
@MarcoDaniel Ah, I see. I'm mainly used to BitBucket :-)
 
@DavidCarlisle I'm honestly not trying to do anything wacky. Your assumption about token-or-brace-group is A-Okay. Will you sleep better now? ;)
 
@JosephWright BitBucket or github or sourceforge or .... whatever ;-)
 
@MarcoDaniel Ah! :D
I'm also using the free version. :D
 
@Werner No because I thought somewhere there was a reverse token lust trick, and if there was obviously you could remove the last by reversing removing the first and reversing again, but I can't find it (probably because google hasn't yet indexed my brain)
 
@PauloCereda Few minutes ago I signed up to dropbox. I friend ask me and so we can use one folder for some presentations or so ;-)
 
6:12 PM
@MarcoDaniel Ah and you get 500mb for every friend joining, I guess. :D
 
@PauloCereda No ;-)
@DavidCarlisle: Will you answer this question: tex.stackexchange.com/questions/52649/…
 
@DavidCarlisle Brain-indexing... The Googles can only do so much I guess. I appreciate your answering efforts though; that's for sure.
 
6:30 PM
Which package does the question reference? I have no idea?
0
Q: Error while using

manishI am using below code but color is not going to be changed. cat("\\centering","\n") cat("\\hline","\n") cat("\\rowcolors{1}{}{yellow}","\n") cat("\\begin{tabular}{>{\\rule{0pt}{.5cm}}c >{\\centering\\arraybackslash}m{2cm}>{\\centering\\arraybackslash}m{2cm}>{\\centering\\arraybacksla...

 
@MarcoDaniel I think cat refers to the external program that the person uses (perhaps just a bash script; see cat MAN Page) to output code to a file, which is then compiled under LaTeX.
That's why some characters need to be escaped in order to be properly processed.
A complete LaTeX answer would therefore be sufficient in my opinion, since the OP will most likely just transfer it to their setup.
 
@Werner I am very fast "close" voter so I will vote ;-)
 
6:51 PM
anyone with Emacs and a slower computer?
 
@JosephWright ok, did my part!
 
@MarcoDaniel that's the same OP that posted a question today tex.stackexchange.com/questions/52668/…
 
@StefanKottwitz Great
 
@cmhughes Ok than the question can be closed
 
@MarcoDaniel I've voted to close- I wanted to yesterday, but thought I'd give them a chance to edit
 
6:55 PM
@JosephWright: Please see this question: tex.stackexchange.com/questions/52526/error-while-using As @cmhughes pointed out the question is really duplicated
 
@MarcoDaniel OK, NARQ
 
@JosephWright What? NARQ?
 
@MarcoDaniel not a real question. :)
 
@PauloCereda ;-)
PSA
 
Oops!
 
6:58 PM
I voted to close as it was not a real question
 
Next one: The following is a bug of latex-suite. So based on the rules we should close this question.
 
@MarcoDaniel You do enough 'Answer the unanswered' sessions, you get all of the closure reasons down to a fine art :-)
 
4
Q: vim-latex with strange (unwanted) highlighting

joelwatsonfishI'm using vim with the latex-suite package installed on Ubuntu 11.10 to edit LaTeX files. The latex-suite highlights the LaTeX source as I edit it, but it seems to get very confused after something like $\sigma_{\{x,y\}}$. The LaTeX code is correct; it compiles and displays fine, but highlighti...

@JosephWright :-)
 
We should create a question in meta about these acronyms. :P
 
@MarcoDaniel I wasn't able to recreate the problem with that vim question...
 
7:00 PM
@cmhughes No. I had the same problem.
 
@MarcoDaniel oh, ok.
@MarcoDaniel I wonder why mine is ok, probably my system theme?...
 
@cmhughes I don't know I'm using Ubuntu ;-) and installed the suite directly with synaptic.
 
@MarcoDaniel me too...
 
@PauloCereda It should probably also reference:
68
Q: Stack Overflow Glossary - Dictionary of Commonly-Used Terms

Adam DavisWhat are the common phrases, words, abbreviations that are used on Stack Overflow, Server Fault, Super User, and Meta Stack Overflow? This is meant to be a very quick overview, not an in-depth tutorial. When considering whether a term ought to be included, please use this test: New user com...

...which doesn't include NARQ (for some reason).
 
@MarcoDaniel that's what mine looks like
 
7:05 PM
@cmhughes Funny here is my
 
@MarcoDaniel interesting! maybe we can figure out the differences... I'm on Ubuntu 10.04 and use the 'Ambiance' theme. you?
 
My theme in UBuntu 11.10 is Ambiance. I start my vim with the following script
#!/bin/bash

# Open vim in a new terminal

gnome-terminal --geometry=125x59 --hide-menubar -x vim -p "$@"
And use the colorsheme torte
 
@MarcoDaniel I just tried it with the torte colorscheme, worked fine. I use the desert colorscheme
I start my vim just from an open terminal
 
@cmhughes Had the same problem. Is it a problem of Ubuntu (maybe) You version is 10.04 and my is 11.04. Maybe some internal libraries have changed.
 
@MarcoDaniel ok, good to know :)
 
7:23 PM
@MarcoDaniel well I could but @MarcoDaniel was first so you could pick up the points if you wants, OP has already said he llked that version,
 
@MarcoDaniel Did you really like \sitem? :)
 
@egreg THe combination of \expandafter\expandafter is fantastic. It shows me the expansion process of LaTeX ;-)
@DavidCarlisle I will mention your solution too
 
@MarcoDaniel :-)
 
And the "general" solution exploits the \expandafter\endcsname trick. :)
 
@egreg In combination with my beloved \romannumeral
 
7:30 PM
@egreg just looking at that now after your comment to @MarcoDaniel, with a few more expandafters could you avoid the csname holding the original definition?
... still trying to reverse a token list...
 
@DavidCarlisle Maybe. I'll try.
 
@DavidCarlisle He he... Remember, you're not getting paid for this. Then again, you actually are getting paid in virtual super-rewarding reputation.
 
@egreg I'm just trying to spread the pain of annoying TeX questions;-)
 
@DavidCarlisle The problem is that it's not sufficient to expand \item once.
 
@DavidCarlisle You mentioned my question as being difficult... or perhaps impossible. Glad it's not annoying!
 
7:39 PM
@egreg ah perhaps...
 
@DavidCarlisle And it's not itself completely expandable, because it has to check for the optional argument. And also \@item isn't, because it performs many assignments.
@DavidCarlisle Of course braced groups count as one item.
 
current test case, make \gobblelast so that \showthe\aa shows same as \showthe\bb
\outer\def\foo{}
\aa\expandafter{\noexpand\foo#{this and that}\hhh{a}\fi \egroup \xlast \bgroup}
\bb{\bgroup \xlast \egroup \fi{a}\hhh{this and that}#}
\bb\expandafter{\the\expandafter\bb\noexpand\foo}

\let\gobblelast\relax
\showthe\aa
\showthe\bb
\gobblelast
\showthe\aa
or \reverseaa would be a better name that \gobblelast ;-)
 
8:01 PM
With \outer macros inside the token list? This configures masochism. :)
 
Can be closed as a duplicate, based on the OP's last comment:
0
Q: Prevent LaTeX from splitting footnotes across two pages

slhckIn my KOMA-Script document … \documentclass[smallheadings,a4paper,twoside=false,12pt]{scrbook} … I currently use the following header options related to footnotes: % footnotes \usepackage[hang,flushmargin]{footmisc} \renewcommand{\footnotemargin}{1.1em} \usepackage{chngcntr} \counterwithout{...

 
@egreg :-)
 
@DavidCarlisle Would you accept \tl_reverse:n as an answer? :)
 
If it works, does it? Or do I need to try
 
@DavidCarlisle Not with \outer macros, of course.
 
8:15 PM
\outer is pushing the limits of acceptibility but not turning {a} into a is also tricky (perhaps)
and allowing anything in the list including internal macros of the reversing code
 
@DavidCarlisle Everything including the macros needed for reversing?
 
@egreg yes, just to make it interesting. @Werner, see? @egreg is getting sucked in too...
@egreg actually if needed that isn't so hard as you can do a prepass over the list generate macro names that are definitely not in the list to use as marker macros in the reversing code. For example you always know that a token register \aa does not contain this token
\edef\z{\the\aa}
\expandafter\show\csname\meaning\z\endcsname
 
8:36 PM
So do I get an egreg-badge now? I answered no questions and quested for no answers today, but I hit the rep cap! *I want a badge!*
Incidentally, while I'm here. Is anyone else worried by the latest SE blog post? blog.stackexchange.com/?blt=1 Fortunately, no-one in the SE team knows who we are, and probably thinking up a contest for TeX-SX is beyond even CHAOS's superpowers so we're probably safe. Probably.
 
@AndrewStacey I'd seen that. As I've said before, CHAOS are not looking for business: we'd have to ask for something.
 
@JosephWright Thanks for the reassurance. Mind you, I was quite looking forward (in a schadenfreude sort of way) to seeing them suggest a contest on the maths site.
 
@AndrewStacey I hereby confer you the silver badge for hitting rep cap without answering a single question in the day.
6
Asking no questions is of course another requisite.
 
@egreg Congratulations @AndrewStacey. You even skipped the bronze badge. Mmmm, now I'm wondering, is it possible to achieve a gold one?
 
8:53 PM
@Werner Answering my first question.
 
@egreg I hope your first question will be tagged as (among other things) .
 
@egreg The stage is set... follow this link: Ask a question... /drumroll
 
@Werner Not before my summer holidays. :)
 
@egreg Sure, 100k first, then come the flood of questions.
 
Once upon a time, Taco, Herbert and egreg had an interview with Don Knuth himself. Taco entered the room, while Herbert and egreg were waiting outside. A few minutes later, Taco left the room and said, "Wow, he's right! I'll take a look on the TeX implementation.". (ctd)
(ctd) Then Herbert entered the room. Ten minutes later, Herbert left too and said, "Knuth is right! I'll write a bugfix.". Then egreg entered the room. After half an hour, Knuth left the room scratching his head and saying, "wow, I need to learn more about TeX."
 
9:17 PM
Needs one more vote
0
Q: Why package enumitem conflicts with Tufte-book and/or beamer

user11708I am trying to produce a package, combining tufte-book and beamer, in order to produce lecture slides and handout (with explanations) for students from the same source. I found the useful hints in thread Beamer slides and tufte-handout. I attach two sources. The file mwe.tex is essentially ident...

and also this one is lingering around and I am out of votes. Can you either upvote the answer or vote for Off topic?
2
Q: Hyperlink in Beamer

Hari MuruganI have used hyperlink(say fig.pdf) for my presentation in main pdf. In the fig.pdf I have again used hyperlink to main document. But my problem is when I come back to main document its starting from first page. I should come back to the slide where I left. In ubuntu document viewer its working f...

 
9:42 PM
Ok, Detexify isn't working: How do I type ï, as in naïve?
WTFrack? naïve works with \inputenc but greek letters don't? WHICH OF THOSE IS MORE COMMON?
 
@Canageek \ddot{\i}
 
@Canageek A package for Greek compatible with the utf8 option to inputenc should arrive soon.
 
@Werner Thanks, but it turns out that this is the ONE time that it has worked typing it without problem.
 
@Werner Well, no. Either ï directly or \"i
 
@egreg Will it work with all fonts or just CM?
 
9:48 PM
@Canageek The default fonts for Greek will be the cbgreek ones.
But all fonts of the GFS will be usable.
 
@egreg Awww, Ok, I'm thinking of still learning enough LaTeX to write a document standardizing all the upright Greek commands between font packages.
 
10:21 PM
Didn't provide a MWE -- please close as"too localized":
0
Q: Loading hyphenation patterns in Texmaker

mmmI've got problems making TexMaker / MikTeX 2.9 use polish hyphenation rules. As from what I've read on this forum (e.g. here), babel package should automatically load polish hyphenation rules after setting: \usepackage[polish]{babel} but it doesn't seem to do so. Until now, I always end up cre...

 
@lockstep Voted. :)
 
J G
10:38 PM
@PauloCereda Voted!
 
11:02 PM
0
Q: What is your favorite vi or vim command trick?

Predrag PunosevacI just saw a similar question about Emacs/AUCTeX so this one was coming. I use nvi for all my editing including TeX and it would not change it for anything. However, even after almost 20 years of use I never stop to be amazed by clever trick people show me of and on. This is my favorite list of ...

I'm tempted to suggest things there. :)
 
11:43 PM
I need an upvote to remove this from the "unanswered" list:
2
Q: Subfloats in a subfloatrow seem to be making figures be numbered wrong. How can I make the counters behave right?

Leah Wrenn BermanI have a document with a lot of subfigures which are different heights and need to be placed side-by-side and centered vertically. It seems like the floatrow package is ideal for this. After much trial and error, I finally made it through the documentation enough to get the subfloats to center c...

 
@lockstep Give me 13 minutes. :)
 
leo
hi
 
@leo Hi! :)
 
leo
epstopdf is package that you load or is to use from a terminal?
 
@leo Good question. :) texdoc epstopdf told me it's a package. :)
 
leo
11:57 PM
works from a terminal :-)
 
Oops. :D
 

« first day (537 days earlier)      last day (4413 days later) »