Search found 46 matches

by trashbox
Fri Sep 12, 2008 7:34 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

Now, I think I've understood, here some changes I've made: $accents_from = array("ã", "á", "Ã| ", "é", "ó", "õ", "Ã~A", "Ã~S"); $accents_to = array("ã", "á", "à", "é", "ó", "õ", "Á", "Ó"); $latex_formula = str_replace($accents_from, $accents_to,$latex_formula); It's working now in phpBB and Equ...
by trashbox
Fri Sep 12, 2008 6:39 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

Steve, I should do like this? $latex_formula = str_replace("ã","ã",$latex_formula); $latex_formula = str_replace("ß","é",$latex_formula); I did, but looking at test3.tex from vi editor I still have this: \documentclass[10pt]{article} \usepackage[portuges]{babel} \usepackage[latin1]{inputen...
by trashbox
Fri Sep 12, 2008 6:23 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

Just now, using the vi editor from remote Linux, I saw the difference in the test1.tex file.
My local notepad was not showing this:

Code: Select all

...
\text{test12 ãé}
...
I'll try correct it in phpbb_hook_2.php and post the news soon...
by trashbox
Fri Sep 12, 2008 5:54 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

stevem wrote:So to track the problem down you must compare the hex values for each character in the tex file.
OK, but please, how can I do this comparison?
I already have the files on my computer.
by trashbox
Fri Sep 12, 2008 5:16 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

That is interesting. It looks as if there has been a change in the characters in latex_formula. Since it is difficult to see on a web page, download both tex files and compare the hex codes for the formula in each. If they are different then a solution could be to use something like $latex_formula ...
by trashbox
Fri Sep 12, 2008 4:55 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

The command line test with "latex test1.tex" and "latex test2.tex": test1.dvi (wrong image) test1.tex \documentclass[10pt]{article} \usepackage[portuges]{babel} \usepackage[latin1]{inputenc} \usepackage[normalem]{ulem} \usepackage{cancel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssym...
by trashbox
Fri Sep 12, 2008 4:43 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

About the hash, I did this test in class_latexrender.php: After $latex_hash = md5($latex_formula); echo $latex_formula.'<br>'; echo md5($latex_formula).'<br>'; In the phpBB I have this (the image is wrong): \text{test16 ãé} bc83139d96c4db5a33fdd924aae4c96f In the Equation Editor (the image is fine, ...
by trashbox
Fri Sep 12, 2008 4:15 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

Stevem, the command is the same, here's the output: From phpBB: /usr/bin/latex --interaction=nonstopmode ebc92f7894ad13b68cde289a2e903b9b.tex From Equation Editor: /usr/bin/latex --interaction=nonstopmode 737f7f441615ff1636a9dbb198aabe2c.tex Curiosity: why the different md5 file names if we have the...
by trashbox
Fri Sep 12, 2008 3:16 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

So in the phpBB version try using 12pt and see if you get the right image. Change var $_font_size = 10; Steve, I've changed, but the image is not OK yet, take a look at the new log files: 601a7b4ab05ad193285b96fa12de30d6.log (from phpBB) This is TeX, Version 3.14159 (Web2C 7.4.5) (format=latex 2006...
by trashbox
Fri Sep 12, 2008 7:07 am
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

Do you get the same problem when you compile directly using the command line? Steve, I don't know exactly how to do it. I'll put the other information: From phpBB I have this files in tmp folder : f84dceffb715bb52fd6581743ff7e788.aux f84dceffb715bb52fd6581743ff7e788.dvi (image NOT OK) f84dceffb715b...
by trashbox
Wed Sep 10, 2008 10:04 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

Steve, it really creates two different images, but now we seem to be close. I've included the code you suggested and another two lines to see the output, because the first was OK, take a look: for ($i=0; $i < count($tex_matches[0]); $i++) { $pos = strpos($message, $tex_matches[0][$i]); $latex_formul...
by trashbox
Wed Sep 10, 2008 8:54 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

I've deleted the images, but also made a second test ("test2 ãé" to show you that I've generated another one). I know about that I have to change the formula or delete the related image to generate a new one. Stevem, I don't know what to do next, since the Equation Editor in the \equationeditor fold...
by trashbox
Wed Sep 10, 2008 7:42 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

Stevem, I was thinking of comparing the .tex files because I can see that the Equation Editor creates another one, take a look: 9aa42349ae5897ac621095f05e3b28c6.tex (created from phpBB) \documentclass[10pt]{article} \usepackage[portuges]{babel} \usepackage[latin1]{inputenc} \usepackage[normalem]{ule...
by trashbox
Wed Sep 10, 2008 7:32 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

Can you check what you have is OK in a normal tex document compiled to a pdf? Steve, I'm afraid I can't. Then try and look at the resulting .tex file you get in /tmp. I did. It's strange, but nothing seams to be wrong there, take a look: \documentclass[10pt]{article} \usepackage[portuges]{babel} \u...
by trashbox
Wed Sep 10, 2008 5:40 pm
Forum: [3.0.x] MOD Requests
Topic: LaTeX support in phpBB3
Replies: 347
Views: 45610

Re: LaTeX support in phpBB3

Hello Steve! You have already help me a few times and I appreciate so much, great job! I have a new question. I use the LaTeX Equation Editor too from Codecogs and it's fine rendering this: [tex]\text{test ãé}[/tex] http://www.ajudamatematica.com/latexrender/pictures/a7798571fad7f14fccffccc266d11894...

Go to advanced search

cron