^{140}__{54} + 2n
> \stopformula
> \stoptext
>
> I looked at \chemical and \molecule, but could not find a way to make
> isotopes with those. Any ideas?
>
> Gavin
>
>
___
If your questio
} + {\rm
Xe}^^{140}__{54} + 2n
\stopformula
\stoptext
I looked at \chemical and \molecule, but could not find a way to make isotopes
with those. Any ideas?
Gavin
PastedGraphic-1.pdf
Description: Adobe PDF document
On Friday 19 November 2010 09:52:47 Jörg Hagmann wrote:
> From a thread on this list (May 2009:
> http://archive.contextgarden.net/message/20090512.132914.5c29b5f4.en.html)
> I gather that whereas colouring a whole molecule works fine, colouring
> groups within a chemical structur
From a thread on this list (May 2009:
http://archive.contextgarden.net/message/20090512.132914.5c29b5f4.en.html)
I gather that whereas colouring a whole molecule works fine, colouring
groups within a chemical structure is not yet fully implemented in mkiv.
Is that still correct?
Putting
following version supports
nested braces and numbers (we can let this evolve in a proper chemical
subsystem if needed since eventually i will replace ppchtex anyway)
\startluacode
local molecule = { }
local format, sprint = string.format, tex.sprint
function commands.justtext(one)
sprint
molecule_lpeg.tex
Description: Binary data
Am 23.02.2009 um 18:14 schrieb Mojca Miklavec:
thanks a lot for the very nice code :) :) :)
The second example (H_2^+) does not return expected result - it
should have been
H\lohi{2}{+}
instead, but I don't require such cases for the current do
> time).
>
> \startluacode
>
> thirddata = thirddata or { }
>
> function thirddata.molecule(text)
>text = string.gsub(text,"_","\\low")
>text = string.gsub(text,"%^","\\high")
>tex.sprint(text)
> end
>
> \stopl
time).
>
> \startluacode
>
> thirddata = thirddata or { }
>
> function thirddata.molecule(text)
>text = string.gsub(text,"_","\\low")
>text = string.gsub(text,"%^","\\high")
>tex.sprint(text)
> end
>
> \stoplua
ot;)
text = string.gsub(text,"%^","\\high")
tex.sprint(text)
end
\stopluacode
\def\molecule#1{\ctxlua{thirddata.molecule('#1')}}
\starttext
\molecule{H_2SO_4}
\molecule{H_2^+}
\stoptext
Wolfgang
_
owbox}{{\switchtobodyfont[small]#1}}\fi }
\def\finishchem%
{\ifvoid\chemlowbox \else
\iffluor \fluorfalse \kern-.1em \fi\low{\box\chemlowbox}\fi}
% for "kerning" after F
\newif\iffluor
\unexpanded\def\molecule%
{\bgroup
\catcode`\_=\active \uccode`\~=`\_ \uppercase{\le
Hello,
I am having trouble drawing rotated molecules using ppchtex.
In the example below, I would like to draw the molecule shown in (a)
rotated as shown in (b).
I would appreciate any suggestions. Thanks.
Alan
\usemodule[chemic]
\setupchemical[width=fit]
\starttext
\startcombination[2*1
On Fri, Feb 22 2008, Mojca Miklavec wrote:
> Interesting - here it works, but \molecule{A_2} only produces lowered
> 2, while A is lost.
>
> ConTeXt ver: 2008.02.13 23:49 MKIV fmt: 2008.2.19 int: english/english
> This is LuaTeX, Version snapshot-0.22.0-2008021722
Ok, I admit
uatex
> > > \usemodule[chemic]
> > > \starttext
> > > \chemical{CO_2}
> > > \stoptext
> >
> > The issue probably needs to be solved, but I happily use Taco's macro
> > for that purpose (works better in titles). See \molecule on
&
stoptext
>
> The issue probably needs to be solved, but I happily use Taco's macro
> for that purpose (works better in titles). See \molecule on
> http://wiki.contextgarden.net/Chemistry.
Hello Mojca,
did you try it? Here, I get this error:
! LuaTeX error ...TeX-live/texm
;s macro
for that purpose (works better in titles). See \molecule on
http://wiki.contextgarden.net/Chemistry.
Mojca
___
If your question is of interest to others as well, please add an entry to the
Wiki!
mail
Thanks for the suggestion, Taco's \molecule macro works.
There is a similar problem for Units (with \usemodule[units]) that appears
in headings, table of contents and list of figure captions, etc.
Sample code:
\usemodule[units]
\starttext
\placecontent
\section{1 \Square\Centi\Meter}
Hello
]#1}}\fi }
\def\finishchem%
{\ifvoid\chemlowbox \else
\iffluor \fluorfalse \kern-.1em \fi\low{\box\chemlowbox}\fi}
% for "kerning" after F
\newif\iffluor
\unexpanded\def\molecule%
{\bgroup
\catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}%
\catcode
28.174414.91c8b353.en.html
>
This is indeed a possibility. But I still regard it as bug that PPCHTeX
uses italic in the title. (The title itself is *not* italic, I'm also
not asking that the font/style should follow the surrounding text,
though a \setupchemical option which toggles this
"Johan Sandblom" <[EMAIL PROTECTED]> wrote:
> It appears to be fixed in 1.10, no?
Hm, is it fixed? From the bug log and attached patch, it rather seemed
to be an error in the Debian packaging.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protei
hing in tex/context, tex/plain and
> tex/generic, and no longer at random order with respect to other things
> in the whole tree; TEXMF//) is also included.
>
> I didn't notice the missing component. That is bug #394613 in pgf.
>
>
> Regards, Frank
> --
> Dr. Frank K
component. That is bug #394613 in pgf.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
netely earlier than tikz.tex. Next thing would be
to run kpsewhich with --debug, but I don't have time for this ATM.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
ng less commercial and more
> descriptive.
And, in particular, something which explains in 5 lines why one would
want to use ConTeXt instead of LaTeX.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/T
nly upload it
to Debian experimental, we can expect its users to be able to deal with
unstable and totally broken software.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
install context. After this,
>> please tell us our experiences/failures/suggestions.
>>
>
> Frank,
>
> is this truely a valid line for sources.list?
Yes, I've got plenty of those.
> My apt shows errors with this line.
which errors?
Regards, Frank
--
Dr. Frank Küs
7;s kpse?
> sure, but (i'm not sure if this is still true) running tex live
> alongside a tetex was always kind of problematic due to path settings
> and this autoparent mess then deriving locations of texmf.cnf from it
This is probably still a problem in standard-setup systems.
R
(but I know that at the time of the teTex-3.0-beta-release when I
introduced it it *was* necessary).
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
l we're talking about a only a few vars than
> determins all);
I trust you to do it right, but we've had a couple of bogus bugreports
from people who set env vars wrongly, or completely forgot they ever
had...
I'll see that I or Norbert Preining look into this and come back with a
more constructive proposal.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
tically search for a writable directory
that's earlier in the TEXMF path? Even not as a fallback? This sounds
as if this tool could be improved.
> I think that is all, but I may have missed something, so if you read
> this message and know a t
tex still
> runs -)
AFAIK only the search path for texmf.cnf is hard-coded, and that can't
be avoided. On the other hand, no one ever approached me and requested
a relocation: What would you want, and in which cases?
TIA, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Pr
point me to the place where it is documented which calls are
needed to be called
- when ConTeXt is updated
- when any of the engines is updated?
I don't use ConTeXt myself, and I always have problems finding the
relevant places in the documentation, sorry...
Regards, Frank
--
Dr. Frank K
t actually be better. But then this should
be done consistently, and fmtutil should drop context handling
completely (or just call texexec).
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
you have a bit experience, you can straight away add
deb http://www.tug.org/texlive/Debian/ context/
to your /etc/apt/sources.list file and install context. After this,
please tell us our experiences/failures/suggestions.
Thanks a lot and all the best
Regards, Frank
--
Dr. Frank Küster
S
or each of them now.
Here's the one for mptopdf.
Regards, Frank
mptopdf.1.gz
Description: manpage
--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)
___
ntg-context ma
On 7/2/06, Taco Hoekwater wrote:
> Mojca Miklavec wrote:
> >
> >>>It works perfect except in a single case: \title{\molecule{SF_6}}
> >>
> >>I had seen that, but not yet bothered to fix it. Still, it is
> >>fairly easy to change the macro, try
Mojca Miklavec wrote:
>
>>>It works perfect except in a single case: \title{\molecule{SF_6}}
>>
>>I had seen that, but not yet bothered to fix it. Still, it is
>>fairly easy to change the macro, try the version below.
Sorry, I thought you were talking about the spac
t notice any big
difference on the monitor to be honest. I'll use endash, but it
doesn't really matter that much.
> > It works perfect except in a single case: \title{\molecule{SF_6}}
>
> I had seen that, but not yet bothered to fix it. Still, it is
> fairly easy to change
replaced minus by $-$ and I had to
Does that really look better? You can have bold endashes, but
you will not get a bold minus.
> remove "[left]" because that one is only good for isotopes such as
ah. i misunderstood that.
> It works perfect except in a single case: \title{\molecul
{\ifvoid\chemlowbox \high{{\switchtobodyfont[small]#1}}%
> \else \lohi[left]{\box\chemlowbox}{{\switchtobodyfont[small]#1}}\fi }
>
> \def\finishchem{\ifvoid\chemlowbox \else \low{\box\chemlowbox}\fi}
>
> \unexpanded\def\molecule%
>{\bgroup
> \catcode`\_=\active \uccode`\
\lohi[left]{\box\chemlowbox}{{\switchtobodyfont[small]#1}}\fi }
>
> \def\finishchem{\ifvoid\chemlowbox \else \low{\box\chemlowbox}\fi}
>
> \unexpanded\def\molecule%
>{\bgroup
> \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}%
> \catcode`\^=
}
\def\finishchem{\ifvoid\chemlowbox \else \low{\box\chemlowbox}\fi}
\unexpanded\def\molecule%
{\bgroup
\catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}%
\catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}%
\dostepwiserecurse {65}{90}{1}
{\catcode
the el
> companion encoding should have it), not a "mathematical thing". I have
> a lot of simple formulas such as \molecule{SF_6} and they look
> a-kind-of-ugly with a tiny script.
So you noticed I was trying to weasly out of something, did you? ;-)
Taco
% The next macro only wor
$-$} if needed, which
works even better in some cases, see below. I converted the document
from LaTeX and I didn't came to the idea of using low and high
(perhaps just because that's "not possible" there).
> > % \def\molecule#1{\mathematics{ {\rm #1}}}
Thank you for the not
heoreticallu something would be possible
using \Var and special typescripts, but I do not know how that is
supposed to be done in actual code.
>
> Some catcode trickery might work. This is all I could manage.
This does not work well, because
HSO\low{4}\high{-}
is not correct.
On Wed, 28 Jun 2006, Mojca Miklavec wrote:
> Hello,
>
> I have to tiny questions:
>
> 1. How do I get small caps [bold] italic (except with the
> \definedfont[ec-lmxxx])?
No idea.
> 2. I defined \molecule to be
>\def\molecule#1{$\rm#1$},
better use {\mathematics{
Hello,
I have to tiny questions:
1. How do I get small caps [bold] italic (except with the
\definedfont[ec-lmxxx])?
2. I defined \molecule to be
\def\molecule#1{$\rm#1$},
an usage example would be:
\molecule{HSO_4^{-}}
But how should I modify this it so that it would also work properly
46 matches
Mail list logo