Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Suggestions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stephen  
View profile  
 More options Oct 2 2010, 4:59 pm
From: Stephen <stephen.be...@gmail.com>
Date: Sat, 2 Oct 2010 13:59:29 -0700 (PDT)
Local: Sat, Oct 2 2010 4:59 pm
Subject: Suggestions
Thanks to everyone who wrote the script.  I've been using it for my
website.

I actually modified the posted version to suit my own tastes, so I
wanted to share these suggestions, and if you like some of them, they
could be incorporated into the main code (my modifications are very
hacky, because I don't really know javascript at all).

My modifications are here:
http://www.acm.caltech.edu/~srbecker/textheworld7.user.js
http://www.acm.caltech.edu/~srbecker/textheworld7.user.block.js

The main suggestions:

(1) for inline expressions, the latex image was always vertically
centered rather funny.  I was able to easily fix this by adding this
line:
imgElement.style.verticalAlign = "middle";
to
function createTeXifiedImageElement(expr)

(2) my webpages are generally static, so I don't need any fancy
refreshes.  But I also don't want to wait 3 seconds for the images to
render - I want that immediately!  So it would be nice to give this as
a second option.  My current hack around this was to replace
setInterval(TeXTheWorld, 3000);
with
setTimeout(TeXTheWorld, 0);

(3) the second file, the "block" file, is like the first, but it looks
for [[; and ;]] instead of [; and ];, and it displays the equations as
"block" style as opposed to "inline" style, i.e.
    imgElement.style.display = "block";
The intention is that it functions like \begin{equation}...
\end{equation} in latex.
I made this in a second duplicate script (and renamed the functions),
but of course this is wasteful and I only did it because it was quick
and I don't know javascript well.

An example of how I used everything is here: http://www.acm.caltech.edu/~srbecker/inverse.shtml

Some of these you may not agree with but just wanted to put them out
as suggestions.  Thanks for the great code.

-Stephen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Avital Oliver  
View profile  
 More options Oct 7 2010, 6:11 pm
From: Avital Oliver <avi...@thewe.net>
Date: Thu, 7 Oct 2010 15:11:45 -0700
Local: Thurs, Oct 7 2010 6:11 pm
Subject: Re: Suggestions

Hi Stephen,

Thanks for doing these modifications. Unfortunately I don't have enough free
time anymore to maintain this and I could hardly get to some of the other
suggestions people made. Would anyone want to take over maintaining this?

Thanks,
Avital.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »