Understanding through Discussion


Welcome! You are not logged in. [ Login ]
EvC Forum active members: 63 (9072 total)
52 online now:
AnswersInGenitals, AZPaul3, dwise1, nwr (4 members, 48 visitors)
Newest Member: FossilDiscovery
Post Volume: Total: 893,175 Year: 4,287/6,534 Month: 501/900 Week: 25/182 Day: 13/12 Hour: 0/0


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   Test for LaTeX dBCode
Admin
Director
Posts: 12788
From: EvC Forum
Joined: 06-14-2002
Member Rating: 2.1


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 replied

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

  
Admin
Director
Posts: 12788
From: EvC Forum
Joined: 06-14-2002
Member Rating: 2.1


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 taken no action

  
Admin
Director
Posts: 12788
From: EvC Forum
Joined: 06-14-2002
Member Rating: 2.1


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

  
Newer Topic | Older Topic
Jump to:


Copyright 2001-2018 by EvC Forum, All Rights Reserved

™ Version 4.1
Innovative software from Qwixotic © 2022