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)

apokphp 07-25-2010 07:23 PM

I don't know if my server (which is shared) has the necessary requirements. I assume not, since when I don't see all the icons for the formulas (just text instead) and when I try to post a tex bbcode, I get [LaTeX ERROR: Compile failed] .

Is that what this message means?

Pod 07-25-2010 07:37 PM

Quote:

Originally Posted by apokphp (Post 2074397)
I don't know if my server (which is shared) has the necessary requirements. I assume not, since when I don't see all the icons for the formulas (just text instead) and when I try to post a tex bbcode, I get [LaTeX ERROR: Compile failed] .

Is that what this message means?

That most likely means that some of the external programs need to compile the latex files generated by the mod are not in their correct location (you can change where the mod looks for them in the admincp), or are not installed at all. If you have shell access to your host, issue the following commands to know the correct path:

Code:

which latex
which dvips
which identify
which convert

If some of this programs are not installed, ask your host to install them. Some shared hostings will be willing to install them for you, some others won't... I only can say good luck. If they have concerns about overloading the server, tell them that this mod caches the formulas, so they are only parsed the first time they are entered.

apokphp 07-25-2010 07:54 PM

nvm. Hostgator (my host) says that because this is a shared server, they cannot install latex and dvips (the others are already installed). They said I'd have to move to a dedicated server to have these 2 installed.

When I was on 3.8.x, I used the Latex plugin, and it didn't have such server requirements. Are you the same author of that plugin?

Pod 07-25-2010 08:08 PM

Quote:

Originally Posted by apokphp (Post 2074409)
nvm. Hostgator (my host) says that because this is a shared server, they cannot install latex and dvips (the others are already installed). They said I'd have to move to a dedicated server to have these 2 installed.

When I was on 3.8.x, I used the Latex plugin, and it didn't have such server requirements. Are you the same author of that plugin?

Bad luck. Other hosts have different policies regarding the installation of this tiny programs (I know of shared hosts that run this mod without problems in medium-size boards).

I never released any latex product for 3.8.

You can try to use mimeTeX, which produces a bit poorer equations but has less requirements, you only need to be able to run a cgi (and don't even need a mod, only configure the proper custom bbcode).

emath 10-31-2010 06:22 AM

hey, ive got all necessary programs (latex, dvips , Ghostscript , convert , identify) and all set to the right path in admin cp.

although , i still get this :

Quote:

[LaTeX ERROR: Compile failed]
i am using vb.4.0.8

any ideas?

Pod 10-31-2010 01:36 PM

Quote:

Originally Posted by imiviortal (Post 2116272)
hey, ive got all necessary programs (latex, dvips , Ghostscript , convert , identify) and all set to the right path in admin cp.

although , i still get this :



i am using vb.4.0.8

any ideas?

That error appears if it cannot call the latex executable. Make sure that the full path written in the admincp is correct (in a console, write ls [path], it should show the latex file). If the path is correct, it might be some configuration in php that doesn't give you permission to execute external programs thought the php exec command.

You can try to take a look at the error file in your server to see what was the problem.

emath 10-31-2010 06:00 PM

latex directory is right.

where can i find the "error file"

in addition, what is the :

Document class
Class of the temporal latex file. The compiler should have access to the corresponding .cls file.

where can i see where is the .cls file ?

Pod 10-31-2010 06:27 PM

Quote:

Originally Posted by imiviortal (Post 2116459)
latex directory is right.

Not only the directory, but the path to the executable.

Also, remember that this is the path in the file system of your server, not your home computer.

Quote:

Originally Posted by imiviortal (Post 2116459)
where can i find the "error file"

Depends on your hosting. If you have cpanel, you can probably see it there.

Quote:

Originally Posted by imiviortal (Post 2116459)
in addition, what is the :

Document class
Class of the temporal latex file. The compiler should have access to the corresponding .cls file.

where can i see where is the .cls file ?

You don't need the full path here, just the name of the class. You are probably safe leaving the default value (article).

emath 10-31-2010 06:37 PM

what is the path to the executable ? i have only shell access.

Quote:

Depends on your hosting. If you have cpanel, you can probably see it there.
i have directAdmin .. u know where i can find it there ?

Pod 10-31-2010 06:48 PM

Quote:

Originally Posted by imiviortal (Post 2116477)
what is the path to the executable ? i have only shell access.

Write "which latex". It will tell you the path.


Quote:

Originally Posted by imiviortal (Post 2116477)
i have directAdmin .. u know where i can find it there ?

According to directAdmin live demo, in "Site Summary / Statistics / Logs"

emath 10-31-2010 07:00 PM

i get :

Quote:

[Sun Oct 31 21:57:30 2010] [error] [client 87.69.67.162] sh: /latex: No such file or directory, referer: http://www.emath.co.il/vbtest/forumd...95\xd7\x9f-006
[Sun Oct 31 21:57:30 2010] [error] [client 87.69.67.162] sh: /latex: No such file or directory, referer: http://www.emath.co.il/vbtest/forumd...95\xd7\x9f-006
[Sun Oct 31 21:57:30 2010] [error] [client 87.69.67.162] sh: /latex: No such file or directory, referer: http://www.emath.co.il/vbtest/forumd...95\xd7\x9f-006
in the error log, when going to "new thread"


when i type "which latex" in my shell i get

"/usr/bin/latex"

and this is the same as the default.

any ideas?

Pod 10-31-2010 07:16 PM

Quote:

Originally Posted by imiviortal (Post 2116487)
i get :



in the error log, when going to "new thread"


when i type "which latex" in my shell i get

"/usr/bin/latex"

and this is the same as the default.

any ideas?

The path to the latex executable in the admincp is correct? Should be "/usr/bin/latex". The error message you get looks like it's looking at "/latex" instead.

If the path is correct, I can't tell you more without access to your testvb access. If you wish, I can take a look (with no guarantee, and the typical disclaimer stuff), send me login details by pm.

emath 11-03-2010 02:01 PM

how can i use mimetex but also have the option in your mod , that when posting a message i can see the icons and by clicking on them get the formula ... ?

actually, how to disable the generating of the code, but keep the other things in the mod working ?

Pod 11-03-2010 06:43 PM

Quote:

Originally Posted by imiviortal (Post 2117475)
how can i use mimetex but also have the option in your mod , that when posting a message i can see the icons and by clicking on them get the formula ... ?

actually, how to disable the generating of the code, but keep the other things in the mod working ?

There's not such an option in this mod. You'd have to look for a mimetex mod that provides your desired features.

emath 11-17-2010 05:09 PM

maybe you can make such option? for all people that are using mimetex..

Pod 11-17-2010 05:32 PM

Quote:

Originally Posted by imiviortal (Post 2122879)
maybe you can make such option? for all people that are using mimetex..

That's currently out of the scope of this mod, sorry.

tommac3 11-26-2010 02:03 AM

Great mod!!! One request is that the BB code gets populated when you click on the symbol rather than someone needing to add the [ text] bb code ...

For example:

I would like to have:

HTML Code:

[TEX]E= mc^2[/TEX]
rather than:

HTML Code:

E= mc^2

Pod 11-26-2010 02:33 AM

Quote:

Originally Posted by tommac3 (Post 2125815)
Great mod!!! One request is that the BB code gets populated when you click on the symbol rather than someone needing to add the [ text] bb code ...

For example:

I would like to have:

HTML Code:

[TEX]E= mc^2[/TEX]
rather than:

HTML Code:

E= mc^2

Sorry, but I don't undestand. You can set up a TEX button in the editor toolbar by using the built-in admincp option, is that what you were asking?.

tommac3 11-26-2010 03:13 AM

Quote:

Originally Posted by Pod (Post 2125818)
Sorry, but I don't undestand. You can set up a TEX button in the editor toolbar by using the built-in admincp option, is that what you were asking?.

Can you go into a bit of detail as to what you are suggesting?

tommac3 11-26-2010 03:17 AM

Quote:

Originally Posted by Pod (Post 2125818)
Sorry, but I don't undestand. You can set up a TEX button in the editor toolbar by using the built-in admincp option, is that what you were asking?.


Currently someone needs to type in [ TEX] and [ / TEX] but it would be even nicer if that was included by default or if it was added to the editor as you suggested.

sadiq6210 11-27-2010 08:13 AM

Pod, may I have the icons shown here? (I mean the icons itself)
https://vborg.vbsupport.ru/attachmen...2&d=1279931142

I can't find it in the attachments

cowboy9892 12-03-2010 12:43 PM

Hic!
My forum is 4.1.
I setup but it doesn't run !

ajhalls 01-03-2011 09:32 PM

I love this product, I really do.

I moved servers however and it is unable to do any new latex on the site since the move. I went from a shared virtual server to a dedicated CentOS box.

It still is working for all old things. I upgraded to the most recent version but am still getting the error:
[LaTeX ERROR: Compile failed]

I have confirmed the location of the latex, dvips, convert, identify and that it is correct in the server settings and am attaching the error_log below


GNU nano 1.3.12 File: error_log

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

Cyamia 01-04-2011 06:03 AM

Is this compatible with vb 4.0.x?

tini_lam 01-05-2011 01:55 AM

how install dvipng, latex ?

nacaruncr 01-05-2011 07:40 PM

it work in 4.0.3????

thanks :D

fritz_0815 01-07-2011 07:40 AM

Today I installed the new version.
I get the call to write this message.
Code:

Fatal error: Call to undefined function commandmenu_icon() in /www/htdocs/w00cc1dc/includes/functions_editor.php(658) : eval()'d code on line 27
With the old version everything runs smooth. What is wrong ?
I'm using vBulletin 4.1.0

linuxwhy 01-23-2011 12:26 PM

try to install with 4.1.1, getting this error:" [LaTeX ERROR: Compile failed]"

Pod 01-23-2011 03:19 PM

Quote:

Originally Posted by fritz_0815 (Post 2145343)
Today I installed the new version.
I get the call to write this message.
Code:

Fatal error: Call to undefined function commandmenu_icon() in /www/htdocs/w00cc1dc/includes/functions_editor.php(658) : eval()'d code on line 27
With the old version everything runs smooth. What is wrong ?
I'm using vBulletin 4.1.0

Quote:

Originally Posted by chinatravellog (Post 2153323)
try to install with 4.1.1, getting this error:" [LaTeX ERROR: Compile failed]"

I'll probably hava a chance to look into 4.1.x in about 10 days from now, sorry.

Pod 02-13-2011 06:35 PM

Quote:

Originally Posted by fritz_0815 (Post 2145343)
Today I installed the new version.
I get the call to write this message.
Code:

Fatal error: Call to undefined function commandmenu_icon() in /www/htdocs/w00cc1dc/includes/functions_editor.php(658) : eval()'d code on line 27
With the old version everything runs smooth. What is wrong ?
I'm using vBulletin 4.1.0

Quote:

Originally Posted by chinatravellog (Post 2153323)
try to install with 4.1.1, getting this error:" [LaTeX ERROR: Compile failed]"

Sorry about the delay, I'm back for vb at least ;D

I had no problems running vlatex 0.4.1 in vbulletin 4.1.1, both in a fresh install and upgraded forum. If you both are still facing problems, please try to delete the mod and reinstall it. If that doesn't solve anything, come back and I'll try to take a look.


Since the mood seems to work in vb4.1.1, I probably won't work on any new release until the new editor is out.

PhilG 05-29-2011 04:01 AM

Why would my latex images look incorrect?

https://vborg.vbsupport.ru/

It should look like this:

https://vborg.vbsupport.ru/

I believe I have correctly installed the package mhchem. What else could it be?

Pod 05-29-2011 09:06 AM

Quote:

Originally Posted by PhilG (Post 2201130)
Why would my latex images look incorrect?

http://www.electro-tech-online.com/v...f61b2b71d1.png

It should look like this:

http://www.scienceforums.net/latex/i...c5819863-1.png

I believe I have correctly installed the package mhchem. What else could it be?

Looks like your \ are being stripped from the formula. Can't say why.

Try using double \\

Should not be needed, tho.

belbos 06-12-2011 06:45 PM

1 Attachment(s)
How can I "Change the permissions of the pics and temp folders so the web server can write on them"?

Do you know why the latex editor looks like this? (see attachment)

Pod 06-12-2011 08:39 PM

Quote:

Originally Posted by belbos (Post 2206772)
How can I "Change the permissions of the pics and temp folders so the web server can write on them"?

This depends on the details of your hosting. Usually this can be done thoguht FTP or SSH. Ask your host.

Quote:

Originally Posted by belbos (Post 2206772)
Do you know why the latex editor looks like this? (see attachment)

The buttons in the editor are compiled thoguht latex. If the permissions are not set up correctly, the images for the buttons cannot be created. Fix the first point, and this will be automatically fixed as well :D

AttalaEA 06-13-2011 03:33 AM

I have one question is this mod working for vBulletin 4.1.4?

belbos 06-13-2011 06:04 AM

1 Attachment(s)
I changed the permissions of the pics & temp folders but still can't see the images for the buttons!

Any idea? Please help...

edit: I found out that the editor in cms and the one @ forum are different (check the attachments).

Pod 06-13-2011 09:32 AM

Quote:

Originally Posted by AttalaEA (Post 2206933)
I have one question is this mod working for vBulletin 4.1.4?

LaTeX parsing works.

The quick-commands menu doesn't due to the new editor. If you're not using that, you're safe to go. Otherwise, I'll be working the following days on a new version to support the new editor :D

Pod 06-13-2011 09:36 AM

Quote:

Originally Posted by belbos (Post 2206964)
I changed the permissions of the pics & temp folders but still can't see the images for the buttons!

Any idea? Please help...

edit: I found out that the editor in cms and the one @ forum are different (check the attachments).

They look the same to me. The box with a red title bar is not from my mod, it's something else. The part from my mod look exactly the same in both pics.

If the permissions were not the issue, you'll have to check that you meet all the requirements of the mod (latex and the other software installed and so on).

belbos 06-13-2011 09:39 AM

I just want to write maths in cms and forum...

Are there any simpler ways?

Pod 06-13-2011 10:23 AM

Quote:

Originally Posted by belbos (Post 2207038)
I just want to write maths in cms and forum...

Are there any simpler ways?

I can't say what's wrong with your installation without seeing it, obviously. If you can compile the LaTeX formulas, then the images of the buttons will appear.


All times are GMT. The time now is 05:01 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.01641 seconds
  • Memory Usage 1,854KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_html_printable
  • (27)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