Finding a Compatible LaTex Editor for Forum Posting

  • Context: LaTeX 
  • Thread starter Thread starter longrob
  • Start date Start date
  • Tags Tags
    Forum Latex
Click For Summary

Discussion Overview

The discussion revolves around finding a compatible LaTeX editor for posting in the Physics Forums. Participants share their experiences with LaTeX code generated from different editors and the issues encountered when attempting to post this code in the forum.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant mentions using Lyx v1.65 for creating LaTeX but encounters issues when posting to the forum.
  • Another participant explains that vBulletin inserts a space after 50 characters without a space, which can break LaTeX code.
  • A workaround suggested involves adding extra spaces in the code to prevent breaking, particularly when using the align environment.
  • There is a question about whether wrapping the LaTeX code in begin{align} and end{align} would resolve the posting issue.
  • A later reply clarifies that simply using the align environment does not address the 50-character feature and suggests that Lyx should provide code that includes the necessary environment commands.

Areas of Agreement / Disagreement

Participants express differing views on the effectiveness of using the align environment and the necessity of adding extra spaces. The discussion remains unresolved regarding the best approach to ensure LaTeX code works in the forum.

Contextual Notes

There are limitations regarding the handling of special characters in LaTeX code and the specific requirements of the forum's posting system. The discussion highlights the need for clarity on how different LaTeX environments interact with the forum's formatting rules.

longrob
Messages
51
Reaction score
0
Hi all

I use Lyx v1.65 for creating LaTex.

Obviously it displays OK in Lyx. It also displays OK with an online editor I've tried
http://www.codecogs.com/latex/eqneditor.php

But invariably when I try to post LaTex to this forum it does not work. I've tried the sandbox which the reason for the error, but frankly speaking I don't have time to play around with LaTex code directly.

I wonder if anyone can suggest a good LaTex editor that is compatible with this forum.

FWIW, here's some LaTex created in Lyx which does not work here

\mathbf{\boldsymbol{\beta}^{\textrm{T}}A\boldsymbol{\beta}}&=\overset{n}{\underset{i=1}{\sum}}\overset{n}{\underset{j=1}{\sum}}\beta_{i}a_{ij}\beta_{j}

and

\frac{\partial(\mathbf{\mathbf{\beta}^{\textrm{T}}}\mathbf{A\boldsymbol{\beta}})}{\partial\beta_{k}}&=2\beta_{k}a_{kk}+2\overset{n}{\underset{i\neq k}{\sum}}a_{ki}\beta_{i}

Thanks
LR
 
Physics news on Phys.org
When you type 50 characters without a space, vBulletin will insert a space that usually breaks the code. Here you can see how it breaks the word "boldsymbol":

\mathbf{\boldsymbol{\beta}^{\textrm{T}}A\boldsymbol{\beta}}&=\overset{n}{\underset{i=1}{\sum}}\overset{n}{\underset{j=1}{\sum}}\beta_{i}a_{ij}\beta_{j}

The workaround is to type a few extra spaces. That won't be enough in this case, unless you also put it in an align environment (because of the & symbol).

\begin{align}\mathbf{\boldsymbol{\beta}^{\textrm{T}} A\boldsymbol{\beta}} &=\overset{n}{\underset{i=1}{\sum}} \overset{n}{\underset{j=1}{\sum}} \beta_{i}a_{ij}\beta_{j}\end{align}
 
Hi Fredrik

Thanks so much for the explanation !

So, just to be clear if I put
begin{align}
end{align}
around the text from Lyx, it should solve the problem ?

Thanks again
LR
 
Last edited:
No. That only ensures that the symbols & and \\ will be understood. To avoid the 50-character feature, you have to type extra spaces where they do no harm (at least one space every 50 characters).

It seems weird to me that Lyx gives you code that contains & and \\, but not the code to begin and end an align environment (or some other environment that understands those codes). That shouldn't work anywhere.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K