ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Typesetting chemical reaction equations
@ 2006-08-19  9:15 Tayebe Bagheri
  0 siblings, 0 replies; 7+ messages in thread
From: Tayebe Bagheri @ 2006-08-19  9:15 UTC (permalink / raw)


I need the reaction of NTG with limestone.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Typesetting chemical reaction equations
  2006-01-27 16:31   ` Ville Voipio
@ 2006-01-27 17:06     ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2006-01-27 17:06 UTC (permalink / raw)


Ville Voipio wrote:
>> \usemodule[chemic]
>>
>> \placeformula[-]
>> \startformula
>>    \chemical{NH_3(g),+,H^+(aq.),+,Cl^-(aq.),->,NH_4^+(aq.),+,Cl^-(aq.)}
>> \stopformula
>>     
>
> Dank u!
>   
Graag gedaan 

btw, this is documented in the ppchtex manual

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Typesetting chemical reaction equations
  2006-01-27 16:25 ` Ville Voipio
@ 2006-01-27 16:43   ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2006-01-27 16:43 UTC (permalink / raw)


Ville Voipio wrote:
>> And how do I switch off the equation numbering for the chemical 
>> reactions (I'd like to have the mathematical formulae still numbered)?
>>     
>
> Stupid me. Just by leaving the \placeformula out. (Maybe I should go and 
> get something to eat, my brain seems to be in some sort of energy-saving 
> mode.)
>
> By the way, is there a simple way to have two separate numbering 
> schemes? If I wanted to have chemical formulae numbered with 1,2,3,4... 
> and maths with i, ii, iii, iv, ... , how should I do it? It must be 
> documented with \placeformula, but is \placeformula documented anywhere 
> apart from the code itself? (Yes, I am lazy.)
>   
well, i can make a \defineformulaplacement; remind me 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Typesetting chemical reaction equations
  2006-01-27 16:25 ` Hans Hagen
@ 2006-01-27 16:31   ` Ville Voipio
  2006-01-27 17:06     ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Ville Voipio @ 2006-01-27 16:31 UTC (permalink / raw)


> \usemodule[chemic]
> 
> \placeformula[-]
> \startformula
>    \chemical{NH_3(g),+,H^+(aq.),+,Cl^-(aq.),->,NH_4^+(aq.),+,Cl^-(aq.)}
> \stopformula

Dank u!

- Ville

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Typesetting chemical reaction equations
  2006-01-27 15:52 Ville Voipio
  2006-01-27 16:25 ` Hans Hagen
@ 2006-01-27 16:25 ` Ville Voipio
  2006-01-27 16:43   ` Hans Hagen
  1 sibling, 1 reply; 7+ messages in thread
From: Ville Voipio @ 2006-01-27 16:25 UTC (permalink / raw)


> And how do I switch off the equation numbering for the chemical 
> reactions (I'd like to have the mathematical formulae still numbered)?

Stupid me. Just by leaving the \placeformula out. (Maybe I should go and 
get something to eat, my brain seems to be in some sort of energy-saving 
mode.)

By the way, is there a simple way to have two separate numbering 
schemes? If I wanted to have chemical formulae numbered with 1,2,3,4... 
and maths with i, ii, iii, iv, ... , how should I do it? It must be 
documented with \placeformula, but is \placeformula documented anywhere 
apart from the code itself? (Yes, I am lazy.)

- Ville

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Typesetting chemical reaction equations
  2006-01-27 15:52 Ville Voipio
@ 2006-01-27 16:25 ` Hans Hagen
  2006-01-27 16:31   ` Ville Voipio
  2006-01-27 16:25 ` Ville Voipio
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2006-01-27 16:25 UTC (permalink / raw)


Ville Voipio wrote:
> I would need to typeset some rather simple reaction equations. I do not 
> need the structural capabilities of PPCHTeX, just something simpler. The 
> thing I am writing has something to do with physical chemistry, so I 
> need mathematical equations, as well.
>
> Of course, the natural way to do this:
>
> \placeformula
> \startformula
>    \rm
>    NH_3(g) + H^+(aq.) + Cl^-(aq.) \rightarrow NH_4^+(aq.) + Cl^-(aq.)
> \stopformula
>
> This gives rather pleasant-looking results. However, is this the right 
> (i.e. kosher) way of doing things, or do I run into trouble at some 
> later point with this? What are you chemists using?
>
> And how do I switch off the equation numbering for the chemical 
> reactions (I'd like to have the mathematical formulae still numbered)?
>   
\usemodule[chemic]

\placeformula[-]
\startformula
   \chemical{NH_3(g),+,H^+(aq.),+,Cl^-(aq.),->,NH_4^+(aq.),+,Cl^-(aq.)}
\stopformula


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Typesetting chemical reaction equations
@ 2006-01-27 15:52 Ville Voipio
  2006-01-27 16:25 ` Hans Hagen
  2006-01-27 16:25 ` Ville Voipio
  0 siblings, 2 replies; 7+ messages in thread
From: Ville Voipio @ 2006-01-27 15:52 UTC (permalink / raw)


I would need to typeset some rather simple reaction equations. I do not 
need the structural capabilities of PPCHTeX, just something simpler. The 
thing I am writing has something to do with physical chemistry, so I 
need mathematical equations, as well.

Of course, the natural way to do this:

\placeformula
\startformula
   \rm
   NH_3(g) + H^+(aq.) + Cl^-(aq.) \rightarrow NH_4^+(aq.) + Cl^-(aq.)
\stopformula

This gives rather pleasant-looking results. However, is this the right 
(i.e. kosher) way of doing things, or do I run into trouble at some 
later point with this? What are you chemists using?

And how do I switch off the equation numbering for the chemical 
reactions (I'd like to have the mathematical formulae still numbered)?

TIA,

- Ville

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-08-19  9:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-19  9:15 Typesetting chemical reaction equations Tayebe Bagheri
  -- strict thread matches above, loose matches on Subject: below --
2006-01-27 15:52 Ville Voipio
2006-01-27 16:25 ` Hans Hagen
2006-01-27 16:31   ` Ville Voipio
2006-01-27 17:06     ` Hans Hagen
2006-01-27 16:25 ` Ville Voipio
2006-01-27 16:43   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).