« first day (915 days earlier)      last day (4003 days later) » 
00:00 - 21:0021:00 - 00:00

12:14 AM
This should not have been closed. needs one more vote
2
Q: Asymptote: convert triple to array

Scott H.Hi all: how might I convert a triple of three real numbers into an array, or otherwise treat it as such. I can go from an array to a triple as: \documentclass{article} \usepackage{graphicx} \usepackage{asymptote} \begin{document} \begin{asy} triple[] p; real[] b={1,2,3}; triple totriple(...

 
@percusse Why not? Obviously 5 people thought, that a pure Asymptote question would be off-topic. But I already have voted for reopening.
 
@Speravir Because Asymptote is on-topic. Why closing?
 
@percusse So it's opened now. :)
 
@percusse 5 people thought, pure Asymptote without relation to TeX would be off-topic … Scott made some “trivial changes” after closing.
 
@Speravir They might rethink about it. It's a pretty central tool and we had a few questions about it. I can't speak on behalf of the community but I don't know what is on-topic if that's off-topic.
 
12:27 AM
@percusse What I see from the docs is, that I can use Asymptote pretty good without TeX, that was my reasoning.
 
@Speravir I wouldn't want to close all LyX, Emacs or other IDE questions with the same reasoning. There are more Word questions then asymptote ones.
 
@percusse Here were Emacs and IDE questions not in some manner TeX related? Agree to disagree for today?
@PauloCereda something for your collection (keep fingers crossed, that upload to Imgur works):
 
@Speravir ooh!
 
12:38 AM
@Speravir I mean I don't understand why Asymptote is off-topic. What makes it suddenly off-topic which was quite a common topic in many Metapost questions? There are certainly more esoteric items if we start excluding. Asymptote uses TeX for typesetting anyways. I would never consider it off-topic and I don't know how that conclusion can be justified.
 
@percusse OK, so simply 5 users were wrong. Is there by any chance a Meta question about this topic?
 
@Speravir It's not about correctness. It's just on-topic. That's all what I mean and probably the new review system just encouraged the vote pile-up
2
Q: Are Asymptote questions on topic?

Scott H.I asked a question about Asymptote which was closed as off topic. Asymptote: convert triple to array I believe it fits within the scope of the site in much the same way a pure metapost question would. There have been both pure metapost and pure asymptote questions asked and answered, none of w...

 
@percusse Oh, very fresh. And yes, the review system provokes it, but I can say, that I usualyy take some looks first (so, that sometimes I after giving my vote get a message, that the decision already was made).
 
@Speravir Occasional mistakes are not interesting. They happen occasionally :)
10
A: Why are questions on package bugs/issues too localized?

percusseJust to stir up the soup. I agree with Alan Munn on this issue but with a slightly different motivation. I'm actually quite bothered by the word swiftly. I don't mind if the question stays open or closed, either way the issue is not resolved so no need to insist on practice because next year it w...

 
Meanwhile, Bruno being awesome again:
1
A: Search for most frequently occurring patterns in text (to replace them by macros)

Bruno Le FlochFollowing a comment by Ryan Reich, I looked up the Lempel-Ziv-Welch algorithm, and coded some version of it. Given the document \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \begin{document} The famous equation \(E = m c^2\) does not involve the \emph{rest mass} \(m_0\...

 
12:54 AM
@PauloCereda I think he skipped to LaTeX4 directly to save time.
6
 
@percusse Indeed. :)
 
@PauloCereda holy regexp batman
 
@cmhughes :)
@cmhughes Wait for @DavidCarlisle with picture mode. :)
 
kan
1:08 AM
Wow! Impressive fall out of the review system, I guess:
0
Q: Flashmode and OS X Mountain Lion

strassmanI have trouble installing Claus Gerhardt Flashmode on my new Mac (Mac mini + Lion 10.8.2). I use TeXShop. Flashmode 7.0.2 does not work at all. (It worked fine with my old Mac, 10.6.8) Instead, Flashmode 6.1.0 works under 10.8.2. By the way, the synchronisation on both Flashmode is lousy or...

 
@PauloCereda yes indeed, @DavidCarlisle is really sticking to his picture guns :)
 
@kan What is Flashmode? (@PauloCereda can you help?) But it seems to be “too localized” anyway according to comments.
 
kan
@Speravir I don't know! I posted that link for the following reason: there is a banner below the one-line answer soliciting contributions and some prescription for the kind of contribution the community is looking forward to. That is really impressive, isn't it?
 
@kan That was added by one of our mods. I’ve seen similar before and asked here. The answer was surely flagged by several users.
 
kan
@Speravir Oh, I thought the SX had a script running based on the review system. But, I am not sure. Anyway, then, of what use is the review system, if moderators still have to do these things?
(I mean, this should be hectic for a site like SO.)
 
1:24 AM
@kan It can be, that after a certain count of user flags such additions are automatically added, but I’m just guessing …
 
kan
@Speravir Hm... we should perhaps ask the mods.
 
@kan Yepp. @JosephWright or @StefanKottwitz Below the answer to Flashmode and OS X Mountain Lion there is a box. Is this added automatically or by one of you mods? If automatically do you know the trigger count?
 
I don’t know why OP has deleted this question but I was just going to hit the “Post Your Answer” when suddenly …
Well, apparently not suddenly but just now the red bar appeared.
I have an answer ready if the question does appear again …
 
1:41 AM
@Qrrbrbirlbel Voted to undelete. One more needed.
 
@HarishKumar Thanks. :)
Though, I guess Op can just delete it again …
 
@Qrrbrbirlbel It doesn't make any harm to keep the question though. It is a good question. But no harm in voting to undelete.
But if it has an answer with atleast one upvote, I think he can't delete IIRC.
;-)
 
@HarishKumar That’ll teach ’em! ;)
 
2:49 AM
@Qrrbrbirlbel it happened to me once , i made the composed answer ready and OP deleted the question. In that case what should i do ?
 
@texenthusiast Cry for help like I did?
 
@Qrrbrbirlbel but it was a old post is it possible to undelete ?
 
3:01 AM
@texenthusiast Probably not anymore.
 
@Qrrbrbirlbel what's the time delay approx ? mine may be 1 month old
 
Does the question still exist? Can you access it?
 
@Qrrbrbirlbel Short before I log out: @texenthusiast has too low rep (me too) …
 
@Qrrbrbirlbel OP deleted @Speravir yes
 
Oh one yet. I asked again, needs 1 closing vote now: Question mark in output instead of citation number
 
3:11 AM
@Speravir So neither you nor @texenthusiast can see the deleted question I linked to?
 
@Qrrbrbirlbel come on how can we see dead ones we are humans :)
 
@texenthusiast I am too. I still need my sleep … hopefully not my last one.
 
@Qrrbrbirlbel are you engg phd ?
 
@texenthusiast Not PhD.
 
@Qrrbrbirlbel phd takes sleep away normally
@kan I did not flag this one. i think it was decided to leave as it is for the type of Q. in my view may be OP should have added extra knowledge/background for feeding others.
 
 
5 hours later…
8:29 AM
@JosephWright: Does LaTeX3 define constant dimension? Something like \dim_const:Nn \c_one_pt_dim { 1~pt }. I searched and couldn't find any definitions.
 
8:42 AM
@MarcoDaniel We have \dimen_const:Nn and some constants, but not one for one point
For example, there is \c_zero_dim
 
@JosephWright Thanks.
 
8:56 AM
how to typeset 1/3 ?
"1/3 of the samples were green."
xfrac nicefrac or plain teXt
(or the former in combination with siunitx, the latter with \textonethird & textcomp)
virgule and solidus (sounds Shakespearian!) aside, my visual impression is that normal text is easier to read than fancy xfrac, no?
((or is it generally (or even categorically) considered better practice to spell-it-out: "One third of the samples were green."
 
Bit of spam for everyone to flag.
-2
Q: Who has ever used China Discovery Tours for your China travel?

user20675In fact, i think chinatour.com is a professional and cheap China travel agent.They also offer excellent China travel service to other tourist areas, such as Beijing, Xian, Guilin, Yangtze River and Lhasa. They can also accept the custom travel route.They also have some cheap package tours for tra...

 
10:06 AM
@nuttyaboutnatty $1/3$ of the samples were green
 
kan
I posted an answer using an obsolete package that does not fully answer OP's question. Is this asking for trouble?
0
A: How to arrage multiple figures?

kanI present here a solution that uses subfig package. This answer does not meet all the demands, I am still playing around with the code: \documentclass{article} \usepackage{subfig, graphicx, float} \newfloat{tducks}{tbph}{lom} \begin{document} \begin{figure}% \centering \subfloat[Just one Du...

 
@kan subfig is not obsolete, but it has problems with hyperref.
 
@kan There seems to be a fitted answer by someone else
 
kan
@tohecz Yes, except that it does not address the labeling of sub figures in (b)...
@egreg Oh, I see. :-) So, on one count, I am not guilty.
 
@kan I would let it be, it'll be fine
 
kan
10:15 AM
@egreg I know how to modify and get to a stage where I have (a) and (b) but I don't know how to put these two figure environments together and then have a Figure label for it.
 
@nuttyaboutnatty "one third of the samples"
 
kan
@tohecz I think I am out of ideas now.
 
10:30 AM
@Speravir Oops sorry, I went to bed earlier. Flashmode is some sort of monitor for .tex files.
 
kan
\documentclass{article}
\usepackage{subfig}
\usepackage{graphicx}
\captionsetup[figure]{labelformat=simple, labelsep=period}
\begin{document}

\begin{figure}%
  \centering
  \subfloat[Just One Duck.]{\label{duck1}\includegraphics[width=0.3\textwidth, scale=0.2]{play}}
\end{figure}
\captionsetup[subfigure]{labelformat=simple}
\renewcommand{\thesubfigure}{\relax}
\begin{figure}
\centering
  \subfloat[First Duck.]{\includegraphics[width=0.3\textwidth]{play}} \qquad
  \subfloat[Second Duck.]{\includegraphics[width=0.3\textwidth, scale=0.2]{play}} \\
@egreg @tohecz I have gotten there to produce the following picture (do you guys think it is worth posting this code also?)
 
@kan Why two figure environments? The might get detached from one another.
 
kan
@egreg But, otherwise, I am not sure, how to comply with OP's bizarre numbering scheme.
 
@kan I feel the urge of upvoting this answer for no apparent reason at all. :)
 
kan
@PauloCereda True, but do not.
I chose ducks, because that seems to be the running theme. It needs to be polished.
 
10:41 AM
OK, idea for a new package: it detects if your browser is open and if there any tab on Facebook; your document won't compile until that tab is closed.
 
kan
I have put it out there so that I could ask for help.
@PauloCereda generalise: any set of websites. :)
 
@kan No, Facebook is far eviler. :)
 
@kan tex.stackexchange for example
 
kan
@PauloCereda ooh. :)
 
@kan See what you did? Look at David's comment.
 
kan
10:42 AM
@DavidCarlisle no, that will be ignored, even if it is there in the list.
 
@DavidCarlisle We could do the editor thing too. :)
Ouch, apparently today I can't spell.
 
kan
The answer's gone for now, to guard against the upvotes from the duck.
 
@kan Just don't use \subfloat:
\documentclass{article}
\usepackage{subfig}
\usepackage[demo]{graphicx}
\captionsetup[figure]{labelformat=simple, labelsep=period}
\begin{document}

\begin{figure}
\centering
\subfloat[Just One Duck.]{\label{duck1}\includegraphics[width=0.3\textwidth,height=1cm]{play}}

\subfloat[Three Ducks]{%
  \begin{minipage}{\columnwidth}
  \centering
  \begin{tabular}{@{}c@{}}
  \includegraphics[width=0.3\textwidth,height=1cm]{play}\\
  First Duck
  \end{tabular}\qquad
  \begin{tabular}{@{}c@{}}
  \includegraphics[width=0.3\textwidth,height=1cm]{play}\\
@kan Adjust the font size, probably setting \small or \footnotesize in the minipage
\documentclass{article}
\usepackage{subfig}
\usepackage[demo]{graphicx}
\captionsetup[figure]{labelformat=simple, labelsep=period}
\begin{document}

\begin{figure}
\centering
\subfloat[Just One Duck.]{\label{duck1}\includegraphics[width=0.3\textwidth,height=1cm]{play}}

\subfloat[Three Ducks]{%
  \begin{minipage}{\columnwidth}\footnotesize
  \centering
  \begin{tabular}{@{}c@{}}
  \includegraphics[width=0.3\textwidth,height=1cm]{play}\\
  First Duck
  \end{tabular}\qquad
  \begin{tabular}{@{}c@{}}
 
11:01 AM
hi
 
@DominicMichaelis Hi :-)
 
why are those documentation although written so sophisticated thats not fair to stupid users like me :(
 
kan
@egreg Another perfect shot!! ::)
 
@NicolaTalbot see this?
5
Q: Dynamically position of a flowfram box on the same page as the heading

questioningi want to position a flowfram-box dynamically on the same page as the caption. So that the box is allways next to the a certain heading as the document is growing. In my following example the boxes are layong on top of each other on the second page. How can I position the boxes only one time ne...

 
@kan you don't shoot at ducks do you ?
 
kan
11:07 AM
@DominicMichaelis no!! :)
 
@DavidCarlisle Thanks. I hadn't seen that. I've spent all morning doing admin.
 
@DominicMichaelis No he just wrings their necks and eats them.
 
oh :(
that is not nice
 
@DominicMichaelis with some orange sauce: yum:-)
 
kan
@egreg Could you please post those two answers? That's a very nice new technique.
 
11:18 AM
@DominicMichaelis I feel with you, been there done that.
 
kan
test
 
@kan failed :(
 
kan
Oy. It passed. It is that time of the week, when the internet begins to fail.
Do people use Firefox's pdf viewer?
 
@JosephWright: Did you implement in l3keys a list which stored all provided keys. So I can save a new list with all my default settings.
 
@MarcoDaniel Not at the moment
 
11:32 AM
@JosephWright Do you have it on your agenda? For me it's a good idea ;-) ;-) ;-)
 
@MarcoDaniel Example of use case, please :-)
@MarcoDaniel Certainly there is more to add on the keyval side
 
@kan Yes, but I find it's messes up the fonts sometimes.
 
kan
@NicolaTalbot Oh, but, how do you scroll?!
I mean, I have to tab a lot of times until I reach the scroll bar.
 
@kan I usually just use my mouse wheel. Have you tried PgUp/PgDn ?
 
kan
@NicolaTalbot I have, but the only way seems to be to hit the tab crazily, until your pdf starts scrolling.
 
11:37 AM
@DavidCarlisle Well, I've answered it by suggesting not to use my package.
8
 
@NicolaTalbot Good plan. I try to use that answer as often as possible as well.
 
@kan Oh, weird. I've not had any scrolling problems. The font problem is the only thing that bugs me.
 
@JosephWright I am using l3keys in the following file. At the end of the definition I want to save all my keys in a separate list/seq to call them later. Related to this request I want to implement such a feature: chat.stackexchange.com/transcript/41?m=9178775#9178775
 
@DavidCarlisle :-)
 
kan
@DavidCarlisle David! don't star that message! Unfair!
Shift + Tab seems to be the quickest way.
@Nicola ^^
 
11:44 AM
@MarcoDaniel I'll give this some thought. For example, do you want 'last set', 'all set', both?
 
@JosephWright After \ProcessKeysOptions a "all-set". So the default options are used.
 
Soundtrack for my tests:
Now these points of data make a beautiful line.
And we're out of beta, we're releasing on time!
Yay @Jake is here! :) You are a R jedi, aren't you? :)
So far, I'm a R padawan. :)
 
@PauloCereda Hehe, not really... Could you ask a simple question to make me feel good?
 
@Jake ooh hold on. :) How do I calculate the mean of each column of a matrix? :)
 
@PauloCereda Hehe! You fire up your old TI-83 and do it by hand.
 
11:51 AM
@kan not guilty
 
@Jake Oh no! :)
 
(or colMeans, if anyone else is reading this)
 
@Jake <3
 
kan
@DavidCarlisle :) Oh!
 
Alright, that's today's R session. Gotta go, bye!
(I actually have to go, see you guys later!)
 
11:52 AM
@Jake <slow motion> noooooooooooooooo!
 
Yes
(wave)
 
@Jake See ya, buddy! :)
Third law of Carlisle: for every answer using longtable, there is an equal and opposite answer telling to not use longtable.
<3
 
@kan I'll have to try that next time I'm viewing a pdf online. Thanks.
@PauloCereda The duck proof has arrived :-)
 
kan
@NicolaTalbot :)
 
@NicolaTalbot Yay! How does the book look like? Do tell!
@DavidCarlisle: we need to ask @Nicola to write a book about the editor wars. We already have some part written:
Apr 10 at 20:06, by Paulo Cereda
Penguin #1: vim is the true editor!
Penguin #2: no, it's emacs!
Cow: How about ed?
[ silence ]
Penguin #2: shut up, cow.
 
11:58 AM
@PauloCereda It looks great! My only niggle is that the centre page has been folded very slightly off so on page 15 you can see a sliver of the picture from page 18. But it's good enough.
 
@NicolaTalbot Yay!
 
@kan Go ahead
 
kan
@egreg No, you should this time. Certainly. :)
 
@PauloCereda I'll be seeing Magdalene tomorrow. (She has some paintings on display at a local art exhibition, so I'm going along to have a look at them.) If she can't find any problems with the proof, I'll okay the book and order a block. (I'm in the process of creating an online store for my website since amazon is charging more than the rrp for the other children's book.)
 
@NicolaTalbot How nice! :)
 
12:44 PM
@kan Moar ducks
2
 
kan
@egreg Upvoted. :)
 
@kan You should have waited something like 12 hours. ;-)
 
@egreg Too many ducks ;-)
 
kan
@egreg :( :-)
 
@kan Never mind, I seem to have little problems in hitting rep cap, these days. :P
 
kan
12:50 PM
@egreg :)
 
@MarcoDaniel Something like a property list?
 
@JosephWright Yes.
 
@MarcoDaniel OK, I can imagine doing this such that for each key family there is a property list. However, if you want to set keys then just a tl is more sensible. I'll give it a bit of thought.
 
@JosephWright Thanks
 
4.0RC3 later on today. :)
@egreg Yay! :)
 
1:14 PM
How do you say "journal listed with impact factor" shortly? In Czech, we use "impacted journals", but that's impossible in English
 
@tohecz A list of journals with their impact factor?
3
Q: Posters for a project

Kane BlackburnI am look for advice on posters in LaTeX. I was wondering whether could refer me to someone that has good templates?

NARQ?
 
@JosephWright Yes, NARQ, this is IMHO not even worth duping to the big-list one
 
@tohecz My point also
@tohecz I will comment
 
@JosephWright you were faster by a short while ;)
@JosephWright In a context: We plan to extend this idea and publish the results in an 'impacted' journal
 
@PauloCereda: Today you can compile the documentation. I wrote a little bit (without proof reading).
 
1:45 PM
@tohecz 'in a journal with a high impact factor', perhaps
 
@NicolaTalbot There is a problem with glossaries: if used with XeLaTeX makeglossaries doesn't pick up the UTF-8 encoding for Xindy, but it uses Latin-9.
 
1:58 PM
@JosephWright thanks, this seems usable :)
 
49
Q: A "simple" 3rd grade problem...or is it?

RetrosaurSo this is supposed to be really simple, and it's taken from the following picture: I don't understand what's wrong with this question. I think the student answered the question wrong, yet my friend insists the student got the question right. I feel like I'm missing something critical here. ...

\usepackage[pieces=3]{woodcutter}
 
@egreg Okay, I'll have a look at it.
 
@NicolaTalbot Check also the rest of my answer here
0
A: Glossaries, polyglossia, xindy, naiive and ï

egregIf you look at the .glo package, it's written out in different ways when the "other languages" are loaded. Without the "other languages" \\glsnamefont{na\\\"{\\i }ve} With the "other languages" \\glsnamefont{na\\"{\\i }ve} So the " is not escaped in the first case, because some of the load...

The problem seems to be in the active ". :(
 
@egreg Why not just use \GlsSetXdyCodePage instead of redefining the internal command?
 
2:13 PM
@NicolaTalbot Because I didn't see it in the documentation. ;-)
 
@egreg :-) The other way is to use the package option xindy={codepage=utf8}
 
@NicolaTalbot I believe it should be automatically chosen when fontspec is used.
\AtBeginDocument{
  \ifx\gls@codepage\@empty
  \@ifpackageloaded{fontspec}{\def\gls@codepage{utf8}}{}
\fi}
 
@DominicMichaelis Hi.
 
@egreg Okay. I'll add it to the next version. Thanks.
 
2:23 PM
If I have a talk named "Blabla" and I want to write in the abstract: "We will talk about the article Blabla by John Doe", how can I do so without repeating "Blabla" ?
 
@NicolaTalbot There might be problems for document using other encodings along with XeLaTeX or LuaLaTeX (which is not recommended anyway). In those cases one can specify directly the code page (so \gls@codepage wouldn't be \@empty).
 
Hi all
 
@MarioS.E. hello Super Mario! :)
 
2:53 PM
@NicolaTalbot: I have shocking news! I found out that my expression language treats or as a chained or instead of a logical or. :)
Please, replace or by the good old ||. :)
 
@MarioS.E. Does this count as an answer?
\begin{tikzpicture}[decoration={brace,mirror}]
\node (t) at (0,0) {text here};
\begin{scope}[shift={(2,0)}]
\foreach \x in {1,...,3}\node (t\x) at (0,2-\x) {- Some text \x};
\end{scope}
\begin{scope}[shift={([xshift=1cm]t1.east)}]
\foreach \x in {1,...,3}\node (tt\x) at (0,2-\x) {- text 1.\x};
\end{scope}
\foreach \x in {t,tt}\draw[decorate] (\x 1.north west) -- (\x 3.south west);
\end{tikzpicture}
I had to keep myself from posting another hand-drawn answer :)
 
@percusse Hahahaha, yes! this works great!
Just a couple of questions
if "text here" is very very long, will it cross over the brace?
furthermore, will it go outside of the page margin? (this seems to be the problem with the suggested answer with \displaymath)
 
@MarioS.E. you can make it not to. See how the second scope is pushed away from some text 1.
Page margin is up to your diagram size, I don't know if you can control it automatically.
In that case better to grow down a tree.
 
@percusse I guess I can always put it inside a figure environment and define it to be \textwidth
 
@MarioS.E. TikZ picture doesn't understand the surrounding scale so you need to add [scale = 0.5, transform shape] to the tikzpicture to scale everyting.
 
3:03 PM
@percusse Ahhhhhhhhhhhhhhhhhhhhh
how can I set the maximum width of a displaymath environment?
 
@MarioS.E. ?
 
If I use the displaymath environment and I write a lot of text, it is not wrapped, but rather pushed over the margins and even out of the page
 
@MarioS.E. What did you expect?
 
@egreg There seems to be a workaround shown here for line breaking: tex.stackexchange.com/questions/73452/…
@egreg I wanted it to be wrapped at some point so it never crosses \textwidth
 
@MarioS.E. You have to limit the width of the cells; use tabular instead of cases
 
3:14 PM
@egreg But wouldn't I lose the braces?
 
Needs only one vote:
14 hours ago, by Qrrbrbirlbel
I don’t know why OP has deleted this question but I was just going to hit the “Post Your Answer” when suddenly …
 
@MarioS.E. \left\{\begin{tabular}...\end{tabular}\right. still works.
@Qrrbrbirlbel Done
 
@egreg Merci. :)
 
@Qrrbrbirlbel Mon plaisir!
 
3:26 PM
@kan Q*bert?!
 
kan
@PauloCereda ?
 
kan
@PauloCereda Oh!
@PauloCereda Wow!
 
I get an error with this code: \begin{figure}
\begin{displaymath}
\begin{tabularx}{\textwidth}{XX}
A lot of text that is going to be written in here but I'm writing just to fill it & \left\{%
\begin{tabular}{c}
Text 1\\
Text 2\\
Text 3\\
\end{tabular}\right\\
\end{tabularx}
\end{displaymath}
\caption{Project diagram}
\end{figure}
 
@MarioS.E. What error?
 
3:34 PM
@m0nhawk Missing $ inserted and Missing delimeter (. inserted).
 
@MarioS.E. \left( is a math mode construct and you are not in maths
@MarioS.E. and you need a . in \right.
 
@MarioS.E. And why you want displaymath environment?
 
@DavidCarlisle OK, now I only get one error: Missing $ inserted
 
@MarioS.E. $\left{\begin{tabular}......\end{tabular}\right.$
 
@DavidCarlisle he is using the displaymath.
 
3:38 PM
@m0nhawk No he's not (not where it matters)
@m0nhawk it doesn't matter what's outside the table, an X column is a parbox
 
@DavidCarlisle Thank you David, it works OK now.
 
@DavidCarlisle he opens before the tabularx and closes after it. And \left\{ inside the tabularx.
 
@m0nhawk The reason comes from this question: tex.stackexchange.com/questions/112175/brace-diagram-in-tikz/…
So long I have received three answers: One using the displaymath environment, another using tikz and a few minutes ago @egreg suggested me to use tabulars. So far, I'm liking egreg's answer the most
 
@DavidCarlisle than, he need no wrapping in displaymath.
 
@m0nhawk the displaymath is centering the table and giving the same vertical spacing as other display math, it doesn't affect the contents of the table.
 
3:55 PM
@DavidCarlisle Can a tabularx be nested inside a tabularx?
 
@MarioS.E. yes. Aren't I kind?
 
@DavidCarlisle You rock Batman! :)
@DavidCarlisle now, for example, if I have a tabularx{\textwidth}{XX}
and on the second column I want to use another tabularx
how do I tell for the second one to be as large as its cell?
 
@MarioS.E. \textwidth again (or \linewidth might be clearer, it's same thing)
 
@DavidCarlisle What? \textwidth=\linewidth <-> \linewidth=\textwidth <-> \textwidth=\textwidth <-> \linewidth=\linewidth ==> \width=\width
 
@MarcoDaniel you forgot \hsize that's the same as well
 
4:13 PM
@DavidCarlisle I'm having a problem with this
\begin{figure}
\begin{displaymath}
\begin{tabularx}{\textwidth}{XX}
A lot of text that is going to be written in here but I'm writing just to fill it & $\left\{%
\begin{tabular}{cc}
Text 1 & $\left\{%
\begin{tabularx}{\linewidth}{X}
Text 1.1\\
Text 1.2\\
Text 1.3\\
\end{tabularx}\right.$\\
Text 2 & \\
Text 3 & \\
\end{tabular}\right.$\\
\end{tabularx}
\end{displaymath}
\caption{Project diagram}
\end{figure}
If I change any of the tabulars inside the first tabularx I get errors
 
well that isn't going to fit: $\left\{\begin{tabularx}{\linewidth}{ you made the inner table as wide as teh outer cell and then tried to squeeze in a {
 
@DavidCarlisle It seems to be complaining at \end{tabularx}\right.$\\
 
@MarioS.E. What's the use of the outer displaymath environment? Just \centering suffices.
 
@egreg That sometimes I think I know something about LaTeX... and then I realize I'm still in diapers
 
@MarioS.E. ;-)
 
4:19 PM
OK, look at this code (it still gives me an error):
\begin{figure}
\centering
\begin{tabularx}{\textwidth}{XX}
A lot of text that is going to be written in here but I'm writing just to fill it & $\left\{%
\begin{tabularx}{}{XX}
Text 1 & $\left\{%
\begin{tabularx}{}{X}
Text 1.1\\
Text 1.2\\
Text 1.3\\
\end{tabularx}\right.$\\
Text 2 & \\
Text 3 & \\
\end{tabularx}\right.$\\
\end{tabularx}
\caption{Project diagram}
\end{figure}
 
Ack from Psmith.
 
@MarioS.E. You need to give tabularx a width you can't use {}
 
!!/help
 
@DavidCarlisle If I use \linewidth I still have errors
 
@egreg Oh sorry, it's another code. :)
 
4:21 PM
@DavidCarlisle I have 110 errors, which all read: " Extra }, or forgotten \endgroup.
Here is my latest code:

\begin{figure}
\centering
\begin{tabularx}{\textwidth}{XX}
A lot of text that is going to be written in here but I'm writing just to fill it & $\left\{%
\begin{tabularx}{\linewidth}{XX}
Text 1 & $\left\{%
\begin{tabularx}{\linewidth}{X}
Text 1.1\\
Text 1.2\\
Text 1.3\\
\end{tabularx}\right.$\\
Text 2 & \\
Text 3 & \\
\end{tabularx}\right.$\\
\end{tabularx}
\caption{Project diagram}
\end{figure}
 
@MarioS.E. well it can't be \linewidth that is too wide. because you have to fit in the text 1 first column and \{ in the second column and the inner tx just has the remaining space.
@MarioS.E. No ignore that number. That is just 1 error (usually) If you carry on after the first error you just get rubbish typically in TeX. It's error correction is not great.
 
@DavidCarlisle Yeap, that's why I was asking how do you tell a tabular inside a tabular to be as wide as the width of the second column
 
@MarioS.E. Do you really need automatic line breaking in all these cells?
 
@DavidCarlisle I don't know yet, but could be... I don't know how much text I'm going to put inside them, but I'm afraid if I don't get this to run smoothly in every case I'll end up having some major issues upfront
@DavidCarlisle Try running this, for example:

\begin{figure}
\centering
\begin{tabularx}{\textwidth}{XX}
A lot of text that is going to be written in here but I'm writing just to fill it & $\left\{%
\begin{tabular}{cc}
I'll probably write also a lot of text in this part, so I would really like it to be wrapped & $\left\{%
\begin{tabular}{c}
Text 1.1\\
Text 1.2\\
Text 1.3\\
\end{tabular}\right.$\\
Text 2 & \\
Text 3 & \\
\end{tabular}\right.$\\
\end{tabularx}
\caption{Project diagram}
\end{figure}
So, I can wrap the second column with p, I guess...
 
@DavidCarlisle Damn ;-)
 
4:29 PM
@MarioS.E. Why tabularx?
\documentclass{article}
\usepackage{array,calc}
\begin{document}
\noindent
\begin{tabular}{@{}m{.5\textwidth-\tabcolsep}l@{}}
A lot of text that is going to be written in here
but I'm writing just to fill it &
  $\left\{
    \begin{tabular}{@{}*{2}{l}@{}}
    Text 1 &
      $\left\{%
       \begin{tabular}{@{}l@{}}
Text 1.1\\
Text 1.2\\
Text 1.3\\
\end{tabular}\right.$\\
Text 2 & \\
Text 3 & \\
\end{tabular}\right.$\\
\end{tabular}
\end{document}
 
@egreg That's why I was asking if the cells needed to wrap:-) (See @NicolaTalbot's starred comment on the right:-)
 
@DavidCarlisle Or else tabulary
 
@egreg I just tried that but TY doesn't seem too happy to be nested. I'm going off line anyway or do it all in one table with blkarray if @MarioS.E. is feeling brave...
 
Hmmmmmm so, the thing is I want everything to fit on my \textwidth, regardless of how many subdivisions I have (of course I'm not mad and I won't use more than 4-5)
@DavidCarlisle blkarray? Is that like the three headed monster?
 
@MarioS.E. worse:-)
 
4:37 PM
@DavidCarlisle so let's talk about @egreg 's solution....
 
@MarioS.E. No, I think you need to make a design spec. Text in TeX is either single line set to natural width (tabular lrc columns, \mbox etc) or multi-line with lines broken to a predetermined width, \parbox. So if you want linebreaking you need some way of distributing the width to the p columns. For example if you have three levels you might just want to give 1/3 of the total width to each level or you might want higher levels to have more text or....
 
so, for example, when I give this code: \begin{tabular}{@{}l@{}}
what I'm saying is that there should be a space at the left and at the right of the "l-text"....?
is this space somehow calculated?
 
@MarioS.E. no-space. Normally tex pads each column with \tabcolsep on either side but if you use @{xxx} it doesn't add the tabcolsep space and adds xxx instead.
 
@DavidCarlisle It seems OK in the output, though
 
@MarioS.E. what seems Ok? you won't see any difference unless you have something either side of the table, if you \re just \centering it you can not tell if there is 6pt of space on either side of the table.
going....
 
5:24 PM
Yay @StephanLehmke is here! Go Dortmund! :)
 
5:49 PM
Morning all
I've learned that half my group here has switched to LaTeX recently, much to the frustration of my prof
:D
 
why should one be frustrated about that
 
@DominicMichaelis He has never used LaTeX, doesn't like computers much and was very happy with Word. All attempts to convert him have apparently failed, but more and more of his grad students are moving to it.
 
well once you have a wheel you won't mount a square on your ride ;)
 
@DominicMichaelis Also the fact that Word is even worse at positioning figures then LaTeX is helps. I mean, it shouldn't be, given Word is GUI based, yet somehow it is
 
well the first try to position it maybe yes, but if you change something in the start of your document you need god's blessing in word
 
6:01 PM
@MarcoDaniel Can you tell me when you're finished editing your "argument" answer? There are a few linguistic problems to fix.
 
@egreg done
@egreg Thanks
 
6:23 PM
@egreg: Do you know what's going wrong here:
\documentclass{article}
\usepackage{xparse}
\begin{document}
\ExplSyntaxOn
\tl_put_left:Nn \begin
 {
  \par color \par
 }
\ExplSyntaxOff
\begin{center}
foo
\end{center}

\begin{center}
bar
\end{center}
\end{document}
 
@PauloCereda Great
@PauloCereda There is no button to vote.
 
@MarcoDaniel wut
 
6:39 PM
@egreg: I found the reason \begin is fragile.
But no solution without any other packages.
 
7:13 PM
@MarcoDaniel not so much that it's fragile but it takes an argument so it isn't a token list so \tl_... functions will not do the right thing.
 
@DavidCarlisle Do you have a solution?
 
@MarcoDaniel As David says, this is not going to do anything good.
@DavidCarlisle If you want to add something to \center, then xpatch is the answer.
 
@egreg I don't want to add anything:-)
 
@DavidCarlisle Oh, sorry, wrong click. :)
@MarcoDaniel You don't want to add something to any environment whatsoever, do you?
 
@MarcoDaniel well actually I was struggling to guess the intent:-) Do what @egreg says probably works as a solution:-)
 
7:18 PM
@egreg Of course ;-)
\documentclass{article}
\usepackage{xparse,xpatch}

\begin{document}
\ExplSyntaxOn
\xapptocmd
 { \begin }
 {
   \par color \par
 }
 {
   \msg_log:n { patching~of~\begin~was~successful }
 }
 {
  \msg_log:n { patching~of~\begin~failed}
 }
\ExplSyntaxOff
\begin{center}
foo
\end{center}

\begin{center}
bar
\end{center}
\end{document}
Failed too.
I am trying to adapt the solution of etoolbox
\newrobustcmd{\BeforeBeginEnvironment}[1]{%
  \csgappto{@beforebegin@#1@hook}}

\pretocmd\begin
  {\csuse{@beforebegin@#1@hook}}
  {}
  {\etb@warning{%
     Patching '\string\begin' failed!\MessageBreak
     '\string\BeforeBeginEnvironment' will not work\@gobble}}
 
@MarcoDaniel same reason: \begin takes an argument where do you want \par color to appear relative to the argument?
 
@DavidCarlisle It's only an example.
 
@MarcoDaniel yes but what's it an example of?
 
@DavidCarlisle The reason can be found here at line 87
 
8:03 PM
@PauloCereda Ooh, I'm shocked! :-)
 
8:21 PM
LaTeX2e hit LaTeX3 :-(
\documentclass{article}
\usepackage{letltxmacro}
\begin{document}
\makeatletter
\LetLtxMacro\begin@orig \begin
\def\begin{\par foo\par\begin@orig}
\makeatother
\begin{center}
foo
\end{center}

\begin{center}
bar
\end{center}
\end{document}
 
@MarcoDaniel There's no provision in LaTeX3 for patching macros, at least at the moment. But, of course, \xpretocmd{\begin}{<whatever>}{}{} does the trick.
@MarcoDaniel And since \begin is defined as a simple macro, \LetLtxMacro is not needed.
 
8:47 PM
@NicolaTalbot I spent almost 30 minutes trying to debug arara. I was skeptic why my test was failing.
 
@PauloCereda I'm dabbling in new territory: php.
 
@NicolaTalbot Cool! :) It's a nice language, I used to write some webapps with it. :) Just don't mix LaTeX math mode, I used to forget my $'s when writing code. :)
 
@egreg Next try. It failed with my current installation:
\documentclass{article}
\usepackage{xparse,xpatch}

\begin{document}
\ExplSyntaxOn
\xpretocmd
 { \begin }
 {
   \par color \par
 }
 {
   \msg_log:n { patching~of~begin~was~successful }
 }
 {
  \msg_log:n { patching~of~begin~failed}
 }
\ExplSyntaxOff
\begin{center}
foo
\end{center}

\begin{center}
bar
\end{center}
\end{document}
Do you see "color"?
 
@PauloCereda :-) At the moment I'm just making minor edits to other people's php code. (I'm trying to configure osCommerce.) It's doing my head in!
 
@NicolaTalbot :)
 
8:53 PM
@PauloCereda looks really professional ;-)
 
@MarcoDaniel We are professionals. :)
 
@PauloCereda I like the picture! :-)
 
@NicolaTalbot Not as lovely as Magdalene's arara. :)
 
@PauloCereda I am sitting on the same problem since 2 or 3 hours.
 
@PauloCereda :-) Perhaps it's just a bit miffed because it's not getting any ice cream.
 
8:58 PM
@MarcoDaniel Oh no.
@NicolaTalbot ooh ice cream!
 
@egreg: I think I have nearly a LaTeX3 solution:
\documentclass{article}
\usepackage{xparse,xpatch}

\begin{document}
\ExplSyntaxOn
\cs_set_eq:NN \begin_orig:n \begin
\RenewDocumentCommand { \begin } {}
 {
  \par~color\par\begin_orig:n
 }
\ExplSyntaxOff
\begin{center}
foo
\end{center}

\begin{center}
bar
\end{center}
\end{document}
 
00:00 - 21:0021:00 - 00:00

« first day (915 days earlier)      last day (4003 days later) »