Understanding through Discussion


Welcome! You are not logged in. [ Login ]
EvC Forum active members: 109 (8803 total)
Current session began: 
Page Loaded: 11-25-2017 6:18 AM
385 online now:
frako, jar, PaulK, Phat (AdminPhat) (4 members, 381 visitors)
Chatting now:  Chat room empty
Newest Member: jaufre
Upcoming Birthdays: Raphael
Post Volume:
Total: 822,970 Year: 27,576/21,208 Month: 1,489/1,714 Week: 332/365 Day: 9/50 Hour: 0/1

Announcements: Reporting debate problems OR discussing moderation actions/inactions


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Prev12
3
Author Topic:   Test for LaTeX dBCode
crashfrog
Inactive Member


Message 31 of 35 (629454)
08-17-2011 9:02 PM
Reply to: Message 18 by Percy
10-20-2009 6:09 AM


Re: LaTeX More Powerful Than I Thought
As a matter of fact:

http://en.wikibooks.org/wiki/LaTeX

It's quite exhaustive; the parts you're probably interested in are about the math context.

http://en.wikibooks.org/wiki/LaTeX/Mathematics

Until you bumped this old topic I had no idea you could do LaTex in the new dbCode. Awesome! I learned LaTex two years ago so I could do calculus homework that looked like I was a real mathematician.


This message is a reply to:
 Message 18 by Percy, posted 10-20-2009 6:09 AM Percy has acknowledged this reply

Replies to this message:
 Message 32 by Admin, posted 08-18-2011 5:23 AM crashfrog has responded

  
Admin
Director
Posts: 12535
From: EvC Forum
Joined: 06-14-2002
Member Rating: 1.9


Message 32 of 35 (629491)
08-18-2011 5:23 AM
Reply to: Message 31 by crashfrog
08-17-2011 9:02 PM


Re: LaTeX More Powerful Than I Thought
I implemented the Latex dBCode a couple years ago, but the recent translation to PHP evidently introduced a bug that I just discovered. The fetch of the image fails, so the code drops through to provide a link to a remote server, instead of creating a local image that it links to. The problem appears to be that the PHP file_get_contents routine cannot include a backslash in the file string, so I can't fetch a copy to store locally.

I included a link to some LaTeX documentation with the Latex Help, but do you think the WikiBooks doc is better?


--Percy
EvC Forum Director

This message is a reply to:
 Message 31 by crashfrog, posted 08-17-2011 9:02 PM crashfrog has responded

Replies to this message:
 Message 33 by crashfrog, posted 08-18-2011 9:36 PM Admin has responded

    
crashfrog
Inactive Member


Message 33 of 35 (629606)
08-18-2011 9:36 PM
Reply to: Message 32 by Admin
08-18-2011 5:23 AM


Re: LaTeX More Powerful Than I Thought
Yeah I think it's a bit more in-depth, and gives some better examples. I mostly use it to look up the various non-obvious math codes.

The problem appears to be that the PHP file_get_contents routine cannot include a backslash in the file string, so I can't fetch a copy to store locally.

Why do you need a backslash to get at a local file? Is it a Windows filesystem?


This message is a reply to:
 Message 32 by Admin, posted 08-18-2011 5:23 AM Admin has responded

Replies to this message:
 Message 34 by Admin, posted 08-18-2011 11:20 PM crashfrog has not yet responded

  
Admin
Director
Posts: 12535
From: EvC Forum
Joined: 06-14-2002
Member Rating: 1.9


Message 34 of 35 (629610)
08-18-2011 11:20 PM
Reply to: Message 33 by crashfrog
08-18-2011 9:36 PM


Re: LaTeX More Powerful Than I Thought
crashfrog writes:

Why do you need a backslash to get at a local file?

I need to set the foreground color (the default is black): \color{White}

I prefix the foreground color to the equation supplied by the user between the latex codes.

I have a solution in mind and should have it completed and released in a day or two.


--Percy
EvC Forum Director

This message is a reply to:
 Message 33 by crashfrog, posted 08-18-2011 9:36 PM crashfrog has not yet responded

    
Admin
Director
Posts: 12535
From: EvC Forum
Joined: 06-14-2002
Member Rating: 1.9


Message 35 of 35 (631244)
08-31-2011 4:45 AM


Latex Is Working
The Latex dBCode is working. It has been working, but it was a kluge to get around some unexpected PHP behavior. The new code is cleaner, and it also allows the default equation color to be set through the control panel. At present the equation color is set to white.

To select some other color use the Latex color directive, e.g.:

[latex]\color{cyan}a=b[/latex]

It would look like this:

Legal Latex colors are:

White
Black
Red
Green
Blue
Cyan
Magenta
Yellow

This concludes this latex test.


--Percy
EvC Forum Director

    
Prev12
3
Newer Topic | Older Topic
Jump to:


Copyright 2001-2015 by EvC Forum, All Rights Reserved

™ Version 4.0 Beta
Innovative software from Qwixotic © 2017