POV-Ray : Newsgroups : povray.off-topic : Why I don't do design Server Time
8 Oct 2024 19:41:28 EDT (-0400)
  Why I don't do design (Message 18 to 27 of 37)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Invisible
Subject: Re: Why I don't do design
Date: 12 Oct 2009 08:09:28
Message: <4ad31c78$1@news.povray.org>
>> I notice the brackets around the fraction aren't tall enough to enclose it 
>> properly. You can fix it like so:
>>
>>   ( \frac{...}{...} )
>>
>> becomes
>>
>>   \left( \frac{...}{...} \right)
> 
> OK ... this was helpful ... thanks.

Works with any delimiter, by the way:

   \left[ ... \right]

   \left| ... \right|

etc.

If you wanted to be flashy, you could replace min(...) with those funny 
bent-angle brackets - but I don't suppose anybody except a mathematician 
would understand what the hell that means, so leave it.

>> I should perhaps also point out that, technically, when TeX sees 
>> <math>cat</math>, it interprets it as "c * a * t", which probably isn't 
>> what you want. Use <math>\text{\it cat}</math> instead. (There's a subtle 
>> difference in the letter spacing - and also the typeface is slightly 
>> different.)
> 
> The \it tag (italics?) was causing me grief. It gave a lexing error ... 
> failed to parse. With the \text tag alone I get normal typeface, without it 
> I get the italics typeface. it doesn't seem to be behaving as you suggest.

It's quite possible the Wiki doesn't support arbitrary TeX markup, but 
only supports a specific subset of commands. You could try 
\text{\emph{distance}} or something. That should typeset it in text 
italics, which is subtly different from math italics (especially 
spacing). The AMS-LaTeX \text{} command also adjusts the spacing subtly. 
I will admit that all of this makes a fairly subtle difference to the 
final output though.

> Here's what it looks like now:
> http://wiki.povray.org/content/Documentation_Talk:Reference_Section_4
> 
> I think it looks like what Mike was getting at ... correct?

Change "min" to "\min" to have it typeset correctly. (I.e., in Roman 
type, like all function names. It might even fix the spacing on the 
brackets following...)

The spacing of the superscripts looks slightly odd, but I couldn't tell 
you why...


Post a reply to this message

From: Jim Holsenback
Subject: Re: Why I don't do design
Date: 12 Oct 2009 08:42:36
Message: <4ad3243c@news.povray.org>
"Invisible" <voi### [at] devnull> wrote in message 
news:4ad31c78$1@news.povray.org...
> Works with any delimiter, by the way:
>
>   \left[ ... \right]
>
>   \left| ... \right|

another nugget ... thanks

> It's quite possible the Wiki doesn't support arbitrary TeX markup, but 
> only supports a specific subset of commands.

you are probably correct ...

> You could try \text{\emph{distance}} or something. That should typeset it 
> in text italics, which is subtly different from math italics

no joy with this markup either ....

> Change "min" to "\min" to have it typeset correctly. (I.e., in Roman type, 
> like all function names. It might even fix the spacing on the brackets 
> following...)

worked ... thanks for the assist!

Cheers


Post a reply to this message

From: Invisible
Subject: Re: Why I don't do design
Date: 12 Oct 2009 08:50:13
Message: <4ad32605@news.povray.org>
>> Works with any delimiter, by the way:
>>
>>   \left[ ... \right]
>>
>>   \left| ... \right|
> 
> another nugget ... thanks

This method makes the brackets just big enough to contain the interior 
text. You can also set the bracket size manually (e.g., if you want the 
outer brackets big and the nested brackets smaller, to aid visibility), 
but we won't worry about that. In this specific case, the brackets come 
out reasonable sizes, so no need to fiddle.

You can also do stuff like this:

             | -1  if x < 0
   sign x = <   0   if x = 0
             |  1   if x > 0

Use "\left\{" to get the stretched symbol (you have to balance it with 
"\right."), and then use an array environment to typeset the multiple rows.

>> It's quite possible the Wiki doesn't support arbitrary TeX markup, but 
>> only supports a specific subset of commands.
> 
> you are probably correct ...

I don't suppose for 13ms that there's any *documentation* for what the 
wiki actually supports though...

>> You could try \text{\emph{distance}} or something. That should typeset it 
>> in text italics, which is subtly different from math italics
> 
> no joy with this markup either ....

Really? That's odd. Well, I guess the difference is quite small.

>> Change "min" to "\min" to have it typeset correctly. (I.e., in Roman type, 
>> like all function names. It might even fix the spacing on the brackets 
>> following...)
> 
> worked ... thanks for the assist!

In general, any function name (sin, cos, tan, min, max, lim, etc.) wants 
to be handled this way (\sin, \cos, etc.)

Now, in LaTeX there's a way to define new function names - but you have 
to write the declaration in the document preamble. Not sure if you can 
access this particular feature from the wiki...

Any further questions? :-D


Post a reply to this message

From: Neeum Zawan
Subject: Re: Why I don't do design
Date: 12 Oct 2009 11:58:42
Message: <4ad35232$1@news.povray.org>
On 10/12/09 06:56, Jim Holsenback wrote:
>> I should perhaps also point out that, technically, when TeX sees
>> <math>cat</math>, it interprets it as "c * a * t", which probably isn't
>> what you want. Use<math>\text{\it cat}</math>  instead. (There's a subtle
>> difference in the letter spacing - and also the typeface is slightly
>> different.)
>
> The \it tag (italics?) was causing me grief. It gave a lexing error ...
> failed to parse. With the \text tag alone I get normal typeface, without it
> I get the italics typeface. it doesn't seem to be behaving as you suggest.

	In math mode, if you want text to appear in italics, and not be treated 
like a formula, use \textit{...}.

	There's also \textrm if you want it to be nonitalicized. Bunch of 
others - see the links below.

	Check out the page now - the 2nd formula is using \textit

	Ever been to the LaTeX Wikibook:

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

	I don't know how good it is for learning LaTeX, but it's fairly good 
for either quick lookups or for "recipes" to achieve certain effects:

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

http://en.wikibooks.org/wiki/LaTeX/Formatting#Font_Styles_and_size


-- 
A tautology is a thing which is tautological.


Post a reply to this message

From: Darren New
Subject: Re: Why I don't do design
Date: 12 Oct 2009 12:18:39
Message: <4ad356df$1@news.povray.org>
Invisible wrote:
> I wonder - is there anything that SketchUp *is* the right tool for? 

Getting people to talk about how cool Google is.

-- 
   Darren New, San Diego CA, USA (PST)
   I ordered stamps from Zazzle that read "Place Stamp Here".


Post a reply to this message

From: Jim Holsenback
Subject: Re: Why I don't do design
Date: 12 Oct 2009 13:30:51
Message: <4ad367cb@news.povray.org>
"Neeum Zawan" <m.n### [at] ieeeorg> wrote in message 
news:4ad35232$1@news.povray.org...
> Check out the page now - the 2nd formula is using \textit

Jackpot! Exactly what I was going for, with them next to each other it's 
easy to see the difference in font spacing.

> Ever been to the LaTeX Wikibook:
>
> http://en.wikibooks.org/wiki/LaTeX
>
> I don't know how good it is for learning LaTeX, but it's fairly good for 
> either quick lookups or for "recipes" to achieve certain effects:
>
> http://en.wikibooks.org/wiki/LaTeX/Mathematics#Adding_text_to_equations
>
> http://en.wikibooks.org/wiki/LaTeX/Formatting#Font_Styles_and_size

Yes .... there is a lot of good stuff on Wiki's .... bookmarking links .... 
Thanks

Jim


Post a reply to this message

From: Orchid XP v8
Subject: Re: Why I don't do design
Date: 12 Oct 2009 14:14:06
Message: <4ad371ee$1@news.povray.org>
>> The \it tag (italics?) was causing me grief. It gave a lexing error ...
> 
>     In math mode, if you want text to appear in italics, and not be 
> treated like a formula, use \textit{...}.
> 
>     There's also \textrm if you want it to be nonitalicized. Bunch of 
> others - see the links below.

Ah. I knew about \textrm, but \textit wasn't mentioned anywhere. (I know 
it works in text mode, but I wasn't sure about math mode.)

Good work.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Orchid XP v8
Subject: Re: Why I don't do design
Date: 12 Oct 2009 14:14:46
Message: <4ad37216$1@news.povray.org>
>> I wonder - is there anything that SketchUp *is* the right tool for? 
> 
> Getting people to talk about how cool Google is.

Does anybody else detect a subtle hint of cynicism here? ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Mike Raiford
Subject: Re: Why I don't do design
Date: 12 Oct 2009 15:14:10
Message: <4ad38002$1@news.povray.org>
On 10/10/2009 2:01 PM, Orchid XP v8 wrote:
> Isn't that just nausiating to look at?

That looks exactly like the decade old Mitel phone in my office. 
Excellent work!

-- 
~Mike


Post a reply to this message

From: Orchid XP v8
Subject: Re: Why I don't do design
Date: 12 Oct 2009 15:17:29
Message: <4ad380c9@news.povray.org>
>> Isn't that just nausiating to look at?
> 
> That looks exactly like the decade old Mitel phone in my office. 
> Excellent work!

Please tell me it doesn't use those colours. o_O

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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