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)

fsrmw_tudd 03-08-2017 11:49 AM

When I'm trying this mod with the gather environment, I get the "Convert failed" error on the snippets where I'm using "\\" "\newline".
Single line formulas do work without any error.

Is there a solution for the multiline functionality or a better workaround than using multiple tex-fields?


vb 4.2.3 PL2

emath 03-08-2017 11:52 AM

Quote:

Originally Posted by fsrmw_tudd (Post 2583437)
When I'm trying this mod with the gather environment, I get the "Convert failed" error on the snippets where I'm using "" "\newline".
Single line formulas do work without any error.

Is there a solution for the multiline functionality or a better workaround than using multiple tex-fields?

might be that this command does not exist, try \\ instead.

anyway, I would use MathJax instead, there is no need for this plugin anymore. mathjax is gr8 ! (being used in mathstack as well )

fsrmw_tudd 03-08-2017 12:16 PM

I wrote \\ the first set of quotation marks (where did it go? :confused:).

As I tried to write a new formula with no line break it also went "Convert failed". So I guess, the gather doesn't work at all and it was bad luck that I had an already compiled picture of the single line equation.
I edited a post where the \\ did not do anything and changed the settings from $ formula $ to gather.

MarkFL 03-08-2017 12:26 PM

I second the opinion that MathJax works very well...we use it at MHB too. If you want to get started with that, try this product:

LaTeX By MathJax [v1.2]

Pod 03-08-2017 12:27 PM

Quote:

Originally Posted by fsrmw_tudd (Post 2583437)
When I'm trying this mod with the gather environment, I get the "Convert failed" error on the snippets where I'm using "\" "\newline".
Single line formulas do work without any error.

Is there a solution for the multiline functionality or a better workaround than using multiple tex-fields?


vb 4.2.3 PL2

First, you should use the "gathered" environment, not the "gather" one. The "gather" cannot be used inside math mode. Note that this plugin compiles your formula directly in math mode.

Also, make sure that \usepackage{amsmath} is included in the preamble (in your admin panel).

Quote:

Originally Posted by emath (Post 2583438)
anyway, I would use MathJax instead, there is no need for this plugin anymore. mathjax is gr8 ! (being used in mathstack as well )

I strongly recommend KaTeX over MathJax (even tho both are great).

In fact, if I ever consider updating this plugin, I'd make it KaTeX based with server-side latex (converted to SVG instead of PNG) as fallback for full compatibility with desktop LaTeX.

I believe that server-side and client-side LaTeX have pros and cons, so both of them still have room nowadays.

fsrmw_tudd 03-08-2017 12:43 PM

Quote:

Originally Posted by Pod (Post 2583444)
First, you should use the "gathered" environment, not the "gather" one. The "gather" cannot be used inside math mode. Note that this plugin compiles your formula directly in math mode.

I was referring to the options of this mod in the admin panel.

---

Due to security regulations I am not allowed to have things running on a server outside the university network.

Pod 03-08-2017 12:56 PM

1 Attachment(s)
Quote:

Originally Posted by fsrmw_tudd (Post 2583445)
I was referring to the options of this mod in the admin panel.

---

Due to security regulations I am not allowed to have things running on a server outside the university network.

You don't need any software running anywhere except where your forum is hosted.

Please find attached an example of a multi-line equation compiled with this mod. Note that I'm using the gathered environment, not simple gather. It will work if you have LaTeX correctly configured and the amsmath package is listed in the preamble (it is by default when you install the product).

fsrmw_tudd 03-08-2017 01:31 PM

1 Attachment(s)
Well, I have a bunch of old posts with the syntax
Code:

[latex]$formula$[/latex]
from a 10 years old database here and [S]don't want to[/S] cannot rewrite that.

I hoped that the settings option within the mod would do the trick since you declared it as a feature.
Quote:

The formulas are compiled by creating a small tex file and running the native LaTeX program throughout it. You can choose to wrap the formula with the standard dollar ($ ... $), the align or gather amsTeX environments. The standard dollar is recommended since the baseline hack works better with it, but the gather environment allows to create multiline equations using the \\ separator.

Pod 03-08-2017 02:25 PM

Quote:

Originally Posted by fsrmw_tudd (Post 2583450)
Well, I have a bunch of old posts with the syntax
Code:

[latex]$formula$[/latex]
from a 10 years old database here and [S]don't want to[/S] cannot rewrite that.

I hoped that the settings option within the mod would do the trick since you declared it as a feature.

Thanks for the image. Now I understand what you mean.

I see that you merge text and equations inside your [latex] tags. This is not how this mod is designed. This mod assumes that everything you put inside the tags is in math mode, and everything is converted to a single image.

I don't know what system you used to parse your old syntax, but I'd argue that this is not a suitable approach: in a forum, the text should be written using the editor of the forum, and use latex only for the equations.

Anyhow, the syntax of your old system is basically incompatible with this mod.

It could be easy to modify the mod so it doesn't wrap the contents of the tag in a math environment, but I'm not sure how that'd work. The system would generate a "normal" latex file that would have pretty much the width of a printed page.

If you give me more details on the system you have been using for the last 10 years, then I could try to give you some alternative. It is probably not this mod, since as I said, its design seems to differ from your syntax.


All times are GMT. The time now is 05:52 AM.

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.01349 seconds
  • Memory Usage 1,750KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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