Jump to content

Recommended Posts

Posted

I decided to use my vacation time to work on the logic tutorial, and I've encountered a problem. I tried to make a table, and it gave me the error

Unknown environment "tabular"

My code was:

\[\begin{tabular}{|1|c|r|}
\hline
\alpha&\beta&\{\alpha\supset\beta}
\hline
T&T&T
T&F&F
F&T&T
F&F&T
\hline
\end{tabular}\]

So, how does one make a table in the blog LaTeX?

Posted

Answer: you don't use LaTeX for that. You'll have to use ordinary HTML. The inline LaTeX is automatically in math mode, and tables aren't available in math mode; it's as if the code you entered were surrounded by \begin{equation} and \end{equation}.

Posted

You can use LaTeX to make some very pretty and professional looking tables via the tabular environment, you can't use that in the stripped-down version of LaTeX that is supported by this forum. What you can do is to use the array environment:

 

[math]\begin{array}{ccc}\alpha&\beta& \alpha\supset\beta \\\hlineT&T&T \\T&F&F \\F&T&T \\F&F&T \\\end{array}[/math]

[math]

\begin{array}{ccc}

\alpha&\beta& \alpha\supset\beta \\

\hline

T&T&T \\

T&F&F \\

F&T&T \\

F&F&T \\

\end{array}

[/math]

Posted (edited)

You can use LaTeX to make some very pretty and professional looking tables via the tabular environment, you can't use that in the stripped-down version of LaTeX that is supported by this forum. What you can do is to use the array environment:

 

 

 

[math]
\begin{array}{ccc}
\alpha&\beta& \alpha\supset\beta \\
\hline
T&T&T \\
T&F&F \\
F&T&T \\
F&F&T \\
\end{array}
[/math]

[math]

\begin{array}{ccc}

\alpha&\beta& \alpha\supset\beta \\

\hline

T&T&T \\

T&F&F \\

F&T&T \\

F&F&T \\

\end{array}

 

 

 

 

 

That looks much better than the html table I did in the blog post. Though, whenever I try to use LaTeX in this thread, the software deletes the end math tag and thus it doesn't render the LaTeX.

 

 

 

 

And for some reason, it puts my text inside the quote tags. I don't particularly like this new software for the editor.

Edited by ydoaPs
Posted

It's pretty crap, isn't it? And if you type in quote tags manually, it breaks the forum layout, because apparently you're not allowed to do that unless you switch out of the WYSIWYG mode.

 

Dumb. I'll try to see if there's a workaround for the math tags being eaten.

 

edit: oh dear. I'm reading bug reports and discussions with the developers and it doesn't look good. Lots of dumb bugs and dumb design decisions.

Posted

It's pretty crap, isn't it?

 

Complete crap.

 

 

 

edit: oh dear. I'm reading bug reports and discussions with the developers and it doesn't look good. Lots of dumb bugs and dumb design decisions.

 

Even worse, lots of arrogance and ignorance. I apparently broke things by typing the [ code ] ... [ /code ] tags manually. That apparently is a no-no; it breaks things. The bug report on this problem marks the bug this as "not a bug".

 

Not a bug my rear end. It's a bug. Anything in the software that lets a user break things is a bug. The software must either handle manual tags or it must detect and reject them.

Posted

Even worse, lots of arrogance and ignorance. I apparently broke things by typing the [ code ] ... [ /code ] tags manually. That apparently is a no-no; it breaks things. The bug report on this problem marks the bug this as "not a bug".

 

Not a bug my rear end. It's a bug. Anything in the software that lets a user break things is a bug. The software must either handle manual tags or it must detect and reject them.

I saw that bug report earlier and shuddered a bit. I also managed to break the layout by manually typing quote tags, although for some reason I can't get it to happen any more.

 

As I look through their bug reports, it's apparent that they don't bother with techniques like, say, automated feature testing. It's much more fun to change everything and then wait for customers to see what's broken.

 

Now to figure out why math tags get eaten.

Posted

I saw that bug report earlier and shuddered a bit. I also managed to break the layout by manually typing quote tags, although for some reason I can't get it to happen any more.

 

As I look through their bug reports, it's apparent that they don't bother with techniques like, say, automated feature testing. It's much more fun to change everything and then wait for customers to see what's broken.

 

Now to figure out why math tags get eaten.

If it helps, I always manually type the math tags. That would mean that mine only get eaten when used manually. Idk if it happens when you try to use the math function. I'm not even sure how to use a math functionality on the site software aside from manually inserting them.

 

Might this be fixed by switching to the dollar sign type of LaTeX formatting like you said we would "soon"?

 

Ah, you have to click the "Special BBCode" button and select LaTeX and then type in your code. That seems like a pain.

Posted

I saw that bug report earlier and shuddered a bit. I also managed to break the layout by manually typing quote tags, although for some reason I can't get it to happen any more.

 

my text - initally inserted by doublereturn. I am still not sure how to get it to consistently work - I think fairly rapid and placement of cursor is crucial (hey really user-friendly)

 

[math] x^2

[latex] x^2 [/latex]

 

As I look through their bug reports, it's apparent that they don't bother with techniques like, say, automated feature testing. It's much more fun to change everything and then wait for customers to see what's broken.

 

 

Now to figure out why math tags get eaten.

 

So if you jump out of the wysiwyg editor by hitting the top LHS switch you CANNOT insert a set a math tags [math] x^2 (the closing tag is eaten) but you CAN if you use latex tags [latex] x^2 [/latex] - but noparse no longer works at all. but it seems code does.

 

 

[latex] x^2 [/latex]

 

by the way the changes are retrospective - makes this old post look positively dadaesque

http://www.scienceforums.net/topic/34847-noparse-is-your-friend/?p=444460#entry444460

 

 

[latex]x^2[/latex]

 

 

 

you cannot even use noparse via the wysiwyg editor

 

[ noparse][ latex]x^2[ /latex][ /noparse] spaces added to display text used to generate above line; all tags added via wysiwyg dialogue

Posted

So if you jump out of the wysiwyg editor by hitting the top LHS switch you CANNOT insert a set a math tags [math] x^2 (the closing tag is eaten) but you CAN if you use latex tags [latex] x^2 [/latex] - but noparse no longer works at all. but it seems code does.

Thanks for catching that. I hadn't noticed that the latex code works when the math one doesn't; I'll file a bug.

 

Noparse not working is a known bug; they've already fixed it, so when we make another update it should work again.

Posted

[latex]

\begin{array}{ccc} \alpha&\beta& \alpha\supset\beta \\ \hline T&T&T \\ T&F&F \\ F&T&T \\ F&F&T \\ \end{array}

[/latex]

 

 

Cap'n - just one more thing (he says in his best colombo voice). If from the WYSIWYG

1. you click on to bring up the latex code from a previous post and copy the latex

2. paste into your post

3. highlight and choose latex from dialogue

 

you get the spans you can see above (AND IF YOU EDIT THE POST THEY CHANGE TO BREAKS!!!)

 

Upon inspection when you choose latex from the dialogue box what you have highlighted, copied and pasted is not what you believe you have copied

 

\begin{array}{ccc} \alpha&\beta& \alpha\supset\beta \\ \hline T&T&T \\ T&F&F \\ F&T&T \\ F&F&T \\ \end{array}

 

is actually more complex - and you end up with

 

<p><br></p><p><span id="caption">\begin{array}{ccc} \alpha&\beta& \alpha\supset\beta \\ \hline T&T&T \\ T&F&F \\ F&T&T \\ F&F&T \\ \end{array} </span></p>

 

BTW - works fine if you do the same thing from the old fashioned non-WYSIWYG editor

Posted

Well, that's brilliant. I think the workaround is to go to the dialogue box first and paste the code there; otherwise, it tries to paste it with all its original formatting, resulting in the HTML leaking into the LaTeX. You can also use the "Paste as Plain Text" button.

Posted

Yeah - they both succeed as workarounds, in fact pasting directly into the dialogue makes more sense than the way I was using.

 

[latex]\begin{array}{ccc} \alpha&\beta& \alpha\supset\beta \\ \hline T&T&T \\ T&F&F \\ F&T&T \\ F&F&T \\ \end{array} [/latex]

 

[latex]\begin{array}{ccc} \alpha&\beta& \alpha\supset\beta \\ \hline T&T&T \\ T&F&F \\ F&T&T \\ F&F&T \\ \end{array}[/latex]

 

Thanks Capn

  • 2 months later...
Posted

Capn

 

Just noticed that noparse tags still don't work

 

[latex]x^2[/latex]

 

Earlier you said that it was noted and would be fixed in the next update - but I noted this on the bug report

Updating Fixed In to: 3.4.2
Updating Status to: Fixed

 

Surely we are running 3.4.2 - does that not mean it should be working?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.