vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - vLaTeX - Math parsing with LaTeX (https://vborg.vbsupport.ru/showthread.php?t=230589)

belbos 06-13-2011 10:51 AM

Probably the problem with my installation is that I haven't installed latex..

Where can I find instructions to do all of these?

Thanks a lot for your help!!!!!

Pod 06-13-2011 11:07 AM

Quote:

Originally Posted by belbos (Post 2207065)
Probably the problem with my installation is that I haven't installed latex..

Where can I find instructions to do all of these?

Thanks a lot for your help!!!!!

That's something I cannot help you with, because it depends on the details of your server. You should give the list of requirements of the mod to your host provider.

belbos 06-13-2011 02:51 PM

Unfortunately, my server does not support latex...

Is there any other way in order to write maths in vbulletin?

AttalaEA 06-13-2011 02:52 PM

It doesn't work

Pod 06-13-2011 04:00 PM

Quote:

Originally Posted by belbos (Post 2207145)
Unfortunately, my server does not support latex...

Is there any other way in order to write maths in vbulletin?

Probably the easiest option would be to set up mimetex as a custom bbcode.

Quote:

Originally Posted by AttalaEA (Post 2207146)
It doesn't work

vb4.1.4? As my testing shows, the LaTeX parsing works just fine.

Only the quick-menu has to be adapted for the new CKeditor. I'll try to release a new version in the next few days.

elektroda 07-04-2011 08:12 AM

any progress for vb4.1.4?

Pod 07-04-2011 05:35 PM

Quote:

Originally Posted by elektroda (Post 2216549)
any progress for vb4.1.4?

I'm currently in the process of testing a minimal change in the JS of the mod that seems to work with JS.

If you would like to help me test, i can give you the file (do no try it live, tho).

caciocode 07-22-2011 07:54 PM

Hi,

Thanks for this great mod. I have just setup a small maths website and I have just added this mod. The icons did not appear at all. Does that mean the server does not support LaTex?

I have read through the posts and I understand you're working on a compatible version with the latest Vbulletin. Has it been released yet?

This is the forum: http://forum.mathsrev.com I have disabled the mod though.

Pod 07-23-2011 08:50 AM

Quote:

Originally Posted by caciocode (Post 2223650)
Hi,

Thanks for this great mod. I have just setup a small maths website and I have just added this mod. The icons did not appear at all. Does that mean the server does not support LaTex?

You mean the quick menu was there, but the images were missing? If so, probably yeah, it could be that your hosting might be missing what's necessary. Contact them and ask if they are willing to install it for you.

Quote:

Originally Posted by caciocode (Post 2223650)
I have read through the posts and I understand you're working on a compatible version with the latest Vbulletin. Has it been released yet?

I'll try to release it on monday. The new vb editor has some quirk I could not work around yet, it always makes an ajax call when you try to insert something thought javascript, so the quick-menu will be a bit slower (thought not enough to rename it slow-menu :p).

Pod 07-26-2011 07:37 PM

Quote:

Originally Posted by Pod (Post 2223840)
I'll try to release it on monday. The new vb editor has some quirk I could not work around yet, it always makes an ajax call when you try to insert something thought javascript, so the quick-menu will be a bit slower (thought not enough to rename it slow-menu :p).

Update, I found a problem with the quick_menu appearing wrongly in CMS comments. I'll need a couple of days to investigate and fix, but otherwise the release is almost ready.

dukeblue219 07-30-2011 07:34 PM

Just wanted to say thanks -- I really like this latex plugin better than the system I had kludged together before (on a different forum software). Yes, everyone, it does work out of the box if you have the required software installed on your server. The quickmenu looks great, can't wait to get it operational with the upcoming fix.

juanma101285 08-07-2011 05:12 PM

Hi, thanks for the plugin!

I am new to all this... I have been trying to install vlatex, but I am stuck in step 4. I'd really appreciate it if someone could give me a hand.

Here's what I have done so far:
Step 2 - I have upload the vLaTeX directory to the forum's root (where I have vBulletin installed, I guessed).
Step 3 - I changed the permissions of the pics and temp folders.
Step 4 - The instructions say "Import the product XML in your admin control panel. If you're upgrading, set "Allow Overwrite" to yes.", so I have put the product-pod_vlatex.xml file in the folder "/admincp/".

I then went to AdminCP > Settings > Options, but there is no "vLaTeX - Math Parsing", so I cannot go on.

What have I done wrong? Thanks!

Pod 08-07-2011 06:07 PM

Quote:

Originally Posted by juanma101285 (Post 2230564)
Step 4 - The instructions say "Import the product XML in your admin control panel. If you're upgrading, set "Allow Overwrite" to yes.", so I have put the product-pod_vlatex.xml file in the folder "/admincp/".

Go to the admin cp, "Plugins & products" > "Manage products", then click in [Add/Import product]. Select the product product-pod_vlatex.xml in your HDD.

dkikuchi 08-07-2011 10:34 PM

Pod, just wanted to thank you for this mod. Looks and works great so far through my testing. I know that you had posted that the fix was almost ready a couple of weeks ago and I was wondering if there was an estimated release date expected? The forum I will be using this on is scheduled to open soon and I'm really hoping to have full functionality at that time.

Thanks again for the great product!

Pod 08-07-2011 11:03 PM

Quote:

Originally Posted by dkikuchi (Post 2230660)
Pod, just wanted to thank you for this mod. Looks and works great so far through my testing. I know that you had posted that the fix was almost ready a couple of weeks ago and I was wondering if there was an estimated release date expected? The forum I will be using this on is scheduled to open soon and I'm really hoping to have full functionality at that time.

Thanks again for the great product!

I do have a fix for the JS side of things (the thing that makes the buttons work), that part is done and reasonably well tested.

But after that, I found that vB changed something in the CMS that completely kills the comments editor with this mod enabled; the quick-menu should not appear in there, as it only appears in full editors, but somehow the method to detect what kind of editor we are dealing with no longer works in the CMS.

I have yet to study vB's code in order to know what to do. In the worse case, I might have to rethink the whole quick-menu system. In the best case there'll be another variable I can check and it'll be easy. So I can't say how much It'll take.

Unfortunately, I have no holidays in august, so I have little time for my hobby projects. Good news is that today I just finished another hobby project, and I promise I won't do any other thing before vlatex is ready to go with the new editor. So can't say a date, but hopefully won't take long.

If you are interested in the forum only version of vb, then this problem should not trouble you at all. I'm attaching to this post the updated JS file that should work for any vb4.x forum-only. Just overwrite the old file whit this one, but be warned to try this in a testing environment, never test it live before confirming it works for you.

dukeblue219 08-10-2011 01:45 AM

Quote:

Originally Posted by Pod (Post 2230671)
I'm attaching to this post the updated JS file that should work for any vb4.x forum-only. Just overwrite the old file whit this one, but be warned to try this in a testing environment, never test it live before confirming it works for you.

Would like to give the update JS file a shot, but I didn't see an attachment here.

ALBCODERS 08-22-2011 05:54 PM

1 Attachment(s)
after i installed

i tried [TEX]E = m c^2[/TEX] and i got this on my post >>> [LaTeX ERROR: Compile failed]

also icons not appear , look at the attachment in botom of this post.
If there is any problem with my hosting, what kind of files do they have to install to get this working,
i am with hostgator , is there any hostgator member who have same problem,

Please guys let me know , i really need this product

Regards

ALBCODERS 08-22-2011 08:55 PM

Requirements

This mod relies on your server having available the following external programs. They are pretty standard in most linux distributions, so hosts can install them easily (if they want to, some don't). Please, check your server meets this requirements (or ask your host to install the programs) before trying to use vLaTeX:

- latex: the LaTeX compiler. Check the TeXlive distribution (http://www.tug.org/texlive/).

- dvips: converts the DVI file to PS. Usually included in all latex distributions.

- convert: as it name suggests, converts between a large number of graphic files. Belongs to the ImageMagick package. Needs ghostscript.

- identify: among other things, measures the size of image files. Also belongs to ImageMagick

- Ghostscript: PostScript and PDF language interpreter and previewer. Is called by convert in order to handle ps files.




can u be more specific what kind of scripts they have to install , because hostgator admins are givin me hard time on this.

dukeblue219 08-27-2011 04:58 PM

These are not "scripts" per se. They are compiled programs that must be installed on the server. I suspect that many shared hosts, such as hostgator, will not have them all installed, even though none of them are particularly uncommon.

That said, any remotely competent admin should know what those programs are, and they should be able to give you a simple yes or no if they're available. If they're not, I would seriously doubt that they're going to install a new program on the server just for one customer, and it might be against their rules for security reasons.

tommac3 08-31-2011 12:10 PM

I upgraded to the latest version of VBulletin and the quick menu no longer works

tommac3 08-31-2011 03:09 PM

I think the quick menu is no longer working because of the new text box that vbulletin uses.

CvP 10-14-2011 04:26 AM

looking forward to next update :up:

linuxwhy 10-31-2011 05:58 PM

looking for waiting...:D

caciocode 01-11-2012 07:52 PM

Is there a latest version for this.

Beckenbauer 04-13-2012 08:51 PM

I have all five programs on the server, but this error when I will write a post.

exec() has been disabled for security reasons in [path]/vlatex/class_vlatex.php (line 292)

Don't work in 4.1.11 or 4.1.12?

tommac3 05-03-2012 01:45 AM

I moved to a new host ... and now cant get this to work I am getting an error:
[LaTeX ERROR: Unknown error]

in the logs I see:

kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/root/.texmf-var/web2c' does not exist.
/root/.dvipsrc: Permission denied
/root/.dvipsrc: Permission denied
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
/usr/bin/dvips: ! DVI file can't be opened.
convert: unable to open image `ef75b81807ccf1959c5287e8321c767e.ps': No such file or directory.
convert: missing an image filename `ef75b81807ccf1959c5287e8321c767e.png'.

Do you know what i am missing?

tommac3 05-12-2012 05:45 PM

It does not work with VB 4 ...

it just shows error

Pod 05-13-2012 07:34 AM

Quote:

Originally Posted by tommac3 (Post 2328772)
It does not work with VB 4 ...

it just shows error

Which error exactly?

Does your installation satisfy all the requirements listed in the first post? This plugin is an interface to several external tools (latex, dvips, etc.), if they are not installed, obviously the plugin won't work.

sz1 06-04-2012 01:01 PM

The Quick-Commands menu doesn´t work with the cke-editor. Is there any way you could update to get it working?

Pod 06-04-2012 01:54 PM

Quote:

Originally Posted by Beckenbauer (Post 2319855)
I have all five programs on the server, but this error when I will write a post.

exec() has been disabled for security reasons in [path]/vlatex/class_vlatex.php (line 292)

Don't work in 4.1.11 or 4.1.12?

Sorry I didn't see that message earlier :(

That's related to the configuration of your hosting.

Quote:

Originally Posted by sz1 (Post 2336463)
The Quick-Commands menu doesn?t work with the cke-editor. Is there any way you could update to get it working?

An update for vb 4.2 is in the pipeline. It will be definitively be out this month.

I currently have no intention of testing the new version with earlier cke-based versions (vb 4.1.x). But I could change plans and test those versions if there's enough need for that in the comunity. I need your feedback in that :D

apokphp 06-07-2012 01:39 AM

Any way for this to be made to work with GD2 instead of Imagemagick? Most of us on shared servers aren't able to use this mod because of that. Imagemagick takes up a lot more memory and resources, GD2 is what is typically found on shared servers.

Pod 06-07-2012 08:54 AM

Quote:

Originally Posted by apokphp (Post 2337308)
Any way for this to be made to work with GD2 instead of Imagemagick? Most of us on shared servers aren't able to use this mod because of that. Imagemagick takes up a lot more memory and resources, GD2 is what is typically found on shared servers.

Will consider it. No promises.

But I'd say that hosts that are willing to install latex, which is not very well known for hosting managers, would have much less problems installing imagemagick.

sz1 07-03-2012 07:05 AM

How about the update? Can´t wait ;P

I can test it on the latest vB Version and let you know if it works without problems.

Pod 07-03-2012 07:32 AM

Quote:

Originally Posted by sz1 (Post 2344693)
How about the update? Can?t wait ;P

I can test it on the latest vB Version and let you know if it works without problems.

Are you willing to beta test the mod before release? If so, PM me and I'll send it to you.

emath 11-03-2012 09:52 AM

is there any progress with the mode update?

emath 12-12-2012 05:06 PM

thanks for the update, buy yet i get this errors :

[LaTeX ERROR: Convert failed]

and in the error log file :

This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com), referer: http://www.emath.co.il/forums/%D7%A9...%95%D7%9F-803/
/usr/bin/dvips: ! DVI file can't be opened., referer: http://www.emath.co.il/forums/%D7%A9...%95%D7%9F-803/
convert: unable to open image `143ebf4431f6923c64587a2965b56602_1355335161.ps': No such file or directory., referer: http://www.emath.co.il/forums/%D7%A9...%95%D7%9F-803/
convert: missing an image filename

all paths are double checked .

Pod 12-12-2012 07:15 PM

Quote:

Originally Posted by emath (Post 2390285)
thanks for the update, buy yet i get this errors :

[LaTeX ERROR: Convert failed]

and in the error log file :

This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com), referer: http://www.emath.co.il/forums/%D7%A9...%95%D7%9F-803/
/usr/bin/dvips: ! DVI file can't be opened., referer: http://www.emath.co.il/forums/%D7%A9...%95%D7%9F-803/
convert: unable to open image `143ebf4431f6923c64587a2965b56602_1355335161.ps': No such file or directory., referer: http://www.emath.co.il/forums/%D7%A9...%95%D7%9F-803/
convert: missing an image filename

all paths are double checked .

Looks like latex isn't generating the dvi file, but it's not raising any error at that stage so the error appears in a later phase (dvips and convert). That's strange since the latex compilation phase didn't have any change in this last update. I assume it was working for you earlier, which makes it even more strange.

To troubleshot this, let's try to reproduce manually all the commands that the mod issues.

Please, do something like this:

1. Log in ssh to your server
2. cd to the vlatex/temp directory
3. Make sure that the directory is almost empty (there should be only a index.htm file; if some temporary file wasn't properly deleted it should be safe to delete it now).
4. Create a test.tex file with the following contents (for instance, do it with nano test.tex)
Code:

\documentclass[10pt]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}

\let\dst=\displaystyle
\newcommand{\dd}{\mathrm{d}}
\newcommand{\ee}{\mathrm{e}}
\newcommand{\eee}[1]{\mathrm{e}^{#1}}\pagestyle{empty}
\newlength{\formuladepth}
\newsavebox{\formulabox}
\begin{lrbox}{\formulabox}
$E = m c^2$
\end{lrbox}
\settodepth{\formuladepth}{\usebox{\formulabox}}
\newwrite\opdepth
\immediate\openout\opdepth=\jobname.depth
\immediate\write\opdepth{\the\formuladepth}
\closeout\opdepth
\begin{document}
\usebox{\formulabox}
\end{document}

5. Compile the test file with
Code:

latex --interaction=nonstopmode test.tex
6. Please, report back tell me any error that appears after doing that. Report back also the list of files in the directory after that operation (that is, copy into the forum the result of "ls -l" after running step 5).

Feel free to send me the results via PM if you don't want to post that information to the wild :D

emath 12-12-2012 08:02 PM

actually i didnt use this mode before, ive just installed all needed programs today.

after step5 i get in the end : No file test.aux.

ive sent you the test.log file on private .

ls -l gives :

Quote:

total 28
-rw-r--r-- 1 emath emath 32 Dec 12 18:06 index.htm
-rw-rw-r-- 1 admin admin 8 Dec 12 21:51 test.aux
-rw-rw-r-- 1 admin admin 6 Dec 12 21:51 test.depth
-rw-rw-r-- 1 admin admin 308 Dec 12 21:51 test.dvi
-rw-rw-r-- 1 admin admin 4851 Dec 12 21:51 test.log
-rw-r--r-- 1 emath emath 608 Dec 12 21:51 test.tex

Pod 12-12-2012 08:41 PM

Quote:

Originally Posted by emath (Post 2390351)
actually i didnt use this mode before, ive just installed all needed programs today.

after step5 i get in the end : No file test.aux.

ive sent you the test.log file on private .

ls -l gives :

Everything looks ok (the absence of the aux file is not a problem, it only means that it's the first time you compile that latex file).

Right now, my best bet would be a permission problem. Please, make sure that the web server can write to vlatex/temp and vlatex/pics. That usually means chmod them to 777.

Please try that. If not, we'll try other tests :D

emath 12-12-2012 08:47 PM

Quote:

Originally Posted by Pod (Post 2390361)
Everything looks ok (the absence of the aux file is not a problem, it only means that it's the first time you compile that latex file).

Right now, my best bet would be a permission problem. Please, make sure that the web server can write to vlatex/temp and vlatex/pics. That usually means chmod them to 777.

Please try that. If not, we'll try other tests :D

done this already.. (and checked it again now) =\
no idea what else can be wrong.


All times are GMT. The time now is 12:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01360 seconds
  • Memory Usage 1,852KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete