POV-Ray : Newsgroups : povray.off-topic : Small CSS question : Re: Small CSS question Server Time
11 Oct 2024 15:18:01 EDT (-0400)
  Re: Small CSS question  
From: Phil Cook
Date: 9 Nov 2007 09:20:19
Message: <op.t1i3d1rsc3xi7v@news.povray.org>
And lo on Fri, 09 Nov 2007 09:54:59 -0000, Invisible <voi### [at] devnull> did
  

spake, saying:

> Joel Yliluoma wrote:
>> On Tue, 06 Nov 2007 18:21:42 +0000, Orchid XP v7 wrote:
>>> (This is basically for printing out expressions containing insane  

>>> numbers of brackets. I want to use borders to help untangle the mess
  

>>> in some kind of visually-sane way...)
>>  Try MathML. It helps greatly at least if your formula contains  

>> divisions.
>>   <math xmlns="http://www.w3.org/1998/Math/MathML">
>>   <mrow>
>>    <mn>log</mn>    <mo>(</mo>
>>      <mfrac>
>>      <mrow>
>>        <mn>sqrt</mn>
>>        <mo>(</mo>
>>        <mn>5</mn>
>>        <mo>)</mo>      </mrow>
>>      <mrow>10</mrow>
>>      </mfrac>
>>    <mo>)</mo>
>>   </mrow>
>>  </math>
>>  MathML can be embedded in XHTML, but you need to pass
>> the right Content-type header (xhtml+xml).
>
> OK, let's see the MathML for the following expression:
>
>   

> S(S(KS)K)(S(S(KS)K)I)(S(S(KS)K)(S(S(KS)K)(S(S(KS)K)I)))(S(S(KS)K)(S(S(
KS)K)(S(S(KS)K)(S(S(KS)K)I))))
>
> Care to tell me where one subexpression ends and the next one begins? 
;-)

Just for fun with spans

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<style>
html {margin:20px;}
div {height:40px;}
span {padding:20px; border: red 1px solid;}
span span {padding:18px; border: orange 1px solid;}
span span span {padding:16px; border: yellow 1px solid;}
span span span span {padding:14px; border: green 1px solid;}
span span span span span {padding:12px; border: blue 1px solid;}
span span span span span span {padding:10px; border: red 1px dotted;}
span span span span span span span {padding:8px; border: orange 1px  

dotted;}
span span span span span span span span {padding:6px; border: yellow 1px
  

dotted;}
span span span span span span span span span {padding:4px; border: green
  

1px dotted;}
span span span span span span span span span span {padding:2px; border: 
 

blue 1px dotted;}
span span span span span span span span span span span {padding:0px;  

border: black 1px dotted;}
</style>
<div>S(S(KS)K)(S(S(KS)K)I)(S(S(KS)K)(S(S(KS)K)(S(S(KS)K)I)))(S(S(KS)K)(S
(S(KS)K)(S(S(KS)K)(S(S(KS)K)I))))</div>
<div>S<span>S<span>KS</span>K</span><span>S<span>S<span>KS</span>K</span
>I</span><span>S<span>S<span>KS</span>K</span><span>S<span>S<span>KS</sp
an>K</span><span>S<span>S<span>KS</span>K</span>I</span></span></span><s
pan>S<span>S<span>KS</span>K</span><span>S<span>S<span>KS</span>K</span>
<span>S<span>S<span>KS</span>K</span><span>S<span>S<span>KS</span>K</spa
n>I</span></span></span></span></div>
</html>

that's using a simple find replace on () for <span></span>
-- 

Phil Cook

--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.