[NTG-context] Chemical reaction formulas

2021-03-17 Thread David van Diepen
Dear list,

According to the information on contextgarden (section chemistry)
chemical reactions should be entered as follows:

\usemodule[chemic]
\startformula
   \chemical{CaCO_3(s),+,HCl(g),->,CaCl(HCO_3)(s)}
\stopformula

That produces a formula with the comma's in it, so that's not good. If
I enter it as follows

\usemodule[chemic]
\startformula
   \chemical{CaCO_3(s) + HCl(g) \rightarrow CaCl(HCO_3)(s)}
\stopformula

Then somehow after the \rightarrow the math/chemical environment is
lost and the remainder gets typeset as text. The same is true if I use
any math command such as \beta or \cdot.

The closest I get to the desired result is with the following:

\usemodule[chemic]
\startformula
   \chemical{CaCO_3(s) + HCl(g) -->
CaCl(HCO_3)(s)}
\stopformula

But that is a bit of a compromise.

Regards, David van Diepen

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Genealogy and context

2021-03-03 Thread David van Diepen
Hello Hraban and Hans,

Thank you Hraban for your enthusiasm. Very nice to hear that this might
be useful for other people too, I was kind of hoping that actually. As
soon as I have some results I'll share them with you, we might be able
to collaborate. 

Thank you Hans for making this working piece of code, that's great!
That will get me started allright.

Kind regards, David

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Genealogy and context

2021-02-28 Thread David van Diepen
Hello,

My son is very much interested in genealogy. He already has collected
information on thousands of people. Now it would be nice to be able to
present this information in the form of a book. There is a possibility
to have this done by a commercial service, however then it's not
possible to adapt the format or to insert custom text. Media can be
added but not in the way we like it.

Genealogical information is stored as structured data. I have added a
fragment of an Gramps XML file below. In such a file there are events,
people, families and other groupings of data and these are linked by
handles.

What we would like to produce is a book with a number of blocks on
every page describing a family: Father, mother, dates of birth and
death, date of marriage, occupations and children. It would also be
good it there are references to the grandparents. 

My question is: Where should I get started with a project in which a
document is generated automatically from data? As far as I know context
should be very suitable for this but I don't have any experience with
this. Until now I've used context to make documents without any data
being added automatically, except for the bibliography.  

Thank you in advance,

David van Diepen

Example Gramps XML file is below:


http://gramps-project.org/xml/1.7.1/grampsxml.dtd";>
http://gramps-project.org/xml/1.7.1/";>
  



  
  
  
  Birth
  
  
  


  Death
  
  
  


  Marriage
  
  
  

  
 
  
  F
  
Catharina
Geldof
  
  
  
  
 
 
  M
  
Cornelis
Geldof
  
  
  
  
  
  


  F
  
Maatje
de Voogd
  
  
  
  
  
  
   
  
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Introducing myself

2020-04-18 Thread David van Diepen
Dear everybody,

I don't have a particular question for the moment but I thought it
would be nice to introduce myself as I have just joined the email list.

My name is David van Diepen, 49 years old. I am a process engineer. I
have two children.

A few months ago my son had to prepare his thesis and that's when I
thought latex would be applicable. Very many years ago I learned to
work with latex during my education, so I thought that it wouldn't be
too hard to help him out with that. At the end of the day it actually
was hard work to get to grisps again but after 10 days we had prepared
a very good-looking thesis and that's what counts.

In the line of my work I regularly have to prepare technical documents.
So I thought it's perhaps a good idea to start using latex for that
too. My teamleader has given me some space to do that even though latex
is completely unsupported at work, so I'm doing all that from home. The
first document was recieved quite wel actually. 

As you'll probably understand my collegues have difficulty appreciating
the value of a properly designed document. Everybody seems to agree to
a similar and often poor appearance. I am the son of a graphic
designer, so maybe that's why I do care what the documents I produce
look like. For instance, I have a couple of nice books with examples of
typefaces (letterproeven) lying about that I inherited, these are an
inspiration too. Also I think a well designed document conveys the
content better. So I'm glad that I am allowed start with this
development even though the benefits are very abstract still.

That's when I thought whether it would be a good idea to continue
investing time in latex, or whether it would be better to go with the
new developments, that being the luatex/context combination. So I
thought I should at least give it a try. 

That try was actually harder than I expected. On hindsight I think it
could have been easier if I had found the right channels to
documentation sooner. There is a lot of information on context to be
found but that includes a lot of information that's already superseded.
So a couple of times it took me quite some time before I realized there
was a newer and easier method. Anyway I'm well on my way now with my
first technical ducument in context. The thing I like most about
context is that the structure makes good sense. In latex there have
been so many additions troughout the years that it has become quite
messy really. In the longer run I think the greater array of
possibilities is going to pay off for my purposes too.

So I would like to thank you all for allowing me to use this great
software. I expect that I may post questions in the future because I am
planning to try more things. For now it's maybe a good idea if I put
some contributions in the wiki. As a newby I have struggled at some
points and maybe some howto's with that perspective can be helpful for
other newcomers.

For now, thanks again, yours faithfully, David



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___