ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: "Jörg Hagmann" <joerg.hagmann@unibas.ch>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ppchtex questions
Date: Wed, 17 Nov 2010 17:00:51 +0100	[thread overview]
Message-ID: <201011171700.51512.alan.braslau@cea.fr> (raw)
In-Reply-To: <4CE3F30D.2030100@unibas.ch>

On Wednesday 17 November 2010 16:21:49 Jörg Hagmann wrote:
> Thanks, Alan.
> 
> On 11/17/10 2:13 PM, Alan BRASLAU wrote:
> >> 1. Is there a way to define a frame offset (there is "fit" and there are
> >> dimensions, but an offset would be more convenient)?
> > 
> > [left=,top=]
> 
> This gives absolute values. I would prefer something giving me "fit +
> <dimension>"

width=,left=,right=,height=,top=,bottom= (of course, only two of width, left, 
and right are to be used at a time, as well as two of height, top, and bottom) 
define the bounding box of the drawing. This is given in units of 4000 per 
standard bond length. To visualize this, try,

\startchemical [frame=on,axis=on,width=4000,height=4000]
\chemical [ONE,SB,Z0] [O]
\chemical [THREE,B]
\chemical [FOUR,B]
\chemical [FIVE,B]
\chemical [SIX,B,R,RZ] [1,2,3,4,5,6]
\chemical [EIGHT,B]
\stopchemical

For fit+offset, I suggest positioning the chemical drawing inside a 
\framed[frame=off]{} box using offsets, or some other variant (I particularly 
like using collectors).

> When playing with top, bottom etc again I discovered that increasing the
> bottom dimension also moves \bottext down.  So there only remains
> question number 3: I would like the atom labels (but not the bodyfont of
> the document) as \ss -- without including \ss for every single atom.

Try "style=sans". We also have "color=" and "rulecolor=".

> > Are you using mkii (texexec) or mkiv (context) or LaTeX?
> 
> I am using mkiv (of course!)...

There are some problems still in mkiv, notably with CARBON, NEWMANSTAGGER, 
NEWMANECLIPSE, and CHAIR. Hans (and I) intend to work on this but it is not 
too high of a priority for the moment. Let me know if you have other problems 
in using ppchtex.

Alan
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2010-11-17 16:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-17 11:37 Jörg Hagmann
2010-11-17 13:13 ` Alan BRASLAU
2010-11-17 15:21   ` Jörg Hagmann
2010-11-17 16:00     ` Alan BRASLAU [this message]
2010-11-18  9:54       ` Jörg Hagmann
2010-11-18 10:06         ` Alan BRASLAU

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201011171700.51512.alan.braslau@cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=joerg.hagmann@unibas.ch \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).