Latex Command Window for vBulletin

In summary: Latex Commander".In summary, the plugin adds a window with a list of common Latex commands to the post editor. It uses iframes to avoid loading the plugin until the sigma button is clicked, and has minimal impact on forum performance. The plugin is available as an open source, GPL project.
  • #1
-Job-
Science Advisor
1,158
4
As Latex gets to be more popular on web forums a nice feature would be able to display a list of the most common Latex commands in a window, for reference.

I've been working on a plugin for vBulletin which adds this capability.
I wanted it to have minimal impact on a forum, so that it's there when you need it and not there when you don't.

The plugin places an icon (sigma) next to the PHP icon on the button row at the top of the post editor. Clicking on that button brings up a window with Latex commands, a button for each, so that they can be pasted into the text area by clicking them.

Nothing is loaded until the sigma button is clicked so it doesn't add unnecessary content or delay the load time.

The list of Latex commands, and the directory structure is generated from a customizable XML file, so it's easy to hide, show, add or remove commands and command groups.

It uses CSS for the look, so that it can be customized to match the forum skins.

To avoid using Ajax (and bring up cross-browser compatibility issues) i used iframes, so it works fine on the browsers I've tested so far (IE, FF and Opera).

I took the liberty of saving a page from PhysicsForums.com to show the plugin in action (no skin applied). Here's a link:
http://www.bloo.us/pf/"

This will be available as an open source, GPL project. It would be cool if PF decided to use it, but if you don't that's fine as well, I'm just getting the word out.

If it doesn't work on your browser please let me know.
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
I have just tried it , very nice!
 
  • #3
Excellent idea Job, and very well executed. It was be a welcomed addition to the forum for those users new to latex, but require mathematical content in their posts.
 
  • #4
This is great, I definitely hope they pick it up.
 
Last edited:
  • #5
Job, can you have it place several commands without clicking off the popup? I have to select one command, click off, click the button and then select the next command. Very nice idea though!

btw, is it release ready now? If not, when?
 
Last edited:
  • #6
I can't get into your site, Job, to check it out (are you getting heavy traffic with folks here checking it out, or is it down for some reason?), but from what you described, I really like that idea and would love that addition. I'm one of those hopeless people who has no idea how to use Latex, and really have no need to learn it or use it other than the rare post here where some of the more common commands are all that would be needed, so that would certainly make me happy if it works and is implemented.
 
  • #7
It looks great! (I've tried on FF1.5/Win).
Some suggestions:

Can the menu open along the right margin? as opposed to the left, which blocks the text field and has to be moved manually.

Maybe on first use, do a [ tex ] [/ tex ]. Maybe put a button near the top bar.

Maybe one can have a toggle between insert and overwrite, with insert as the default.

Maybe left and right cursor buttons in the top menu bar.A preview would be great... but that's wishful thinking.
 
  • #8
Ah, was able to view it now. Very nice. I agree with robphy's suggestions, but even without, it's much better than guessing for those of us who don't use it very often.

I tested on Safari 2.0.4 Seems to work well.
 
  • #9
I don't have a vBulletin forum to look at, but installation of the plugin requires only adding one line to the end of the Post Editor page, which shouldn't be a problem right?

I might have an issue with the icons, because i ripped them from TeXniCenter :) . But since TeXniCenter is under GPL, and the plugin would be under GPL as well i think it's fine, but i have to confirm that.
Otherwise i will have to make icons myself which could take a while (or not use icons at all).

Thanks for the feedback, some good ideas.
 
  • #10
I implemented some of RobPhy's and Greg's suggestions and it's more usable now. As far as the window position i'll have that be a server side setting, so that it's customizable according to the forum's needs.

I also added support for non-icon buttons (because i imagine the webmaster might not have icons for every command.

Finally i added a "Common Snippets" menu for common LaTeX stuff (i.e. common math formula's, which are also read from the Command XML file.

The icons being from TeXniCenter isn't a problem.

By the way, as far as verbiage goes this "Plugin" falls more under the category of a hack or extension, because vBulletin Plugins follow some process defined by vBulletin and are installable/uninstallable from the admin Control Panel.
I'm calling this an Extension to avoid confusion, this is not a Plugin as defined by vBulletin.

Installation involves just adding a single line to the pages that should use the Latex Reference.

I tried to get a copy of vBulletin so that i can turn this into a plugin but vBulletin doesn't have any demo or dev versions available for download, and the cheapest one is $85, so not right now.

If you have more comments on how to improve the usability of this Latex Extension they are very welcome.
http://www.bloo.us/pf/
 
Last edited by a moderator:
  • #11
I have the first version of the Latex Extension for vBulletin available here:
http://www.bloo.us/academic/latex/plugin
 
Last edited by a moderator:
  • #12
Nice job, -Job- :wink:

(sorry, couldn't resist)
 
  • #14
WOW! Very cool!
 
  • #15
That's a really good idea, job, and well implemented. Will be good for people posting homework for the first time, as well as those who don't use LaTex enough to warrant learning it.
 
  • #16
Nice to see the whole ATHF gang in this thread!:cool:
 
  • #17
Math Is Hard said:
Nice to see the whole ATHF gang in this thread!:cool:

ATHF?? :confused:
 
  • #19
Ahhh, thanks! I was really confused then-- mite have give that try.
 
  • #20
Math Is Hard said:
Nice to see the whole ATHF gang in this thread!:cool:

I was just about to point it out MIH!

Cristo, you enjoying ATHF? It must be weird now that all of our avatars make sense huh??:biggrin:
 
  • #21
I turned this into a proper vBulletin plugin (actually a "product" using vB's terminology), so it's easily installable and can be configured from the control panel. Available here: http://www.bloo.us/academic/latex/plugin/
 
Last edited by a moderator:
  • #22
Job I can't download the plugin from that website. I need a user name?? Anyway, do we, the users install this plugin, or is it something Greg or Warren have to install?
 
  • #23
G01, It's installed at the server. I didn't realize it wasn't publicly acessible, it should be now.
 
  • #25
-Job- said:
G01, It's installed at the server. I didn't realize it wasn't publicly acessible, it should be now.

Greg Bernhardt said:
Great! Will be installed tomorrow! :approve:

Awesome!:biggrin:
 
  • #26
works!

[tex]\Omega\sqrt{114} + 12^{3}[/tex]
 

1. What is the "Latex Command Window" for vBulletin?

The "Latex Command Window" is a feature in vBulletin that allows users to input Latex codes to format mathematical equations and symbols in their posts. It is especially useful for forums that discuss science, mathematics, or other technical topics.

2. How do I access the "Latex Command Window" in vBulletin?

To access the "Latex Command Window", simply click on the "Latex" button in the post editor toolbar. This will open a pop-up window where you can input your Latex codes.

3. Can I use the "Latex Command Window" on all vBulletin forums?

Yes, the "Latex Command Window" is a standard feature in all versions of vBulletin. However, the forum administrator may need to enable it in the forum settings.

4. Do I need to have prior knowledge of Latex to use the "Latex Command Window"?

While some knowledge of Latex may be helpful, it is not necessary to use the "Latex Command Window" in vBulletin. The pop-up window provides a user-friendly interface for formatting equations, and there are many online resources available for learning Latex codes.

5. Are there any limitations to using the "Latex Command Window" in vBulletin?

Yes, there are some limitations to using the "Latex Command Window" in vBulletin. It may not support all Latex commands and may have trouble rendering complex equations. Additionally, the use of the Latex feature may be restricted by the forum administrator.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
32
Views
7K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
272
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
3K
  • Feedback and Announcements
Replies
12
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
3K
  • Feedback and Announcements
Replies
15
Views
1K
  • Programming and Computer Science
Replies
4
Views
3K
  • Computing and Technology
Replies
14
Views
3K
  • Aerospace Engineering
Replies
2
Views
7K
  • Sticky
  • Feedback and Announcements
3
Replies
96
Views
41K
Back
Top