Re: [NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
^{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

[NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
} + {\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

Re: [NTG-context] ppchtex, color and mkiv

2010-11-19 Thread Alan BRASLAU
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

[NTG-context] ppchtex, color and mkiv

2010-11-19 Thread Jörg Hagmann
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

[NTG-context] the other blog (chemical stuff)

2009-03-06 Thread Hans Hagen
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

Re: [NTG-context] Taco's \molecule fails in mkiv

2009-02-24 Thread Wolfgang Schuster
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

Re: [NTG-context] Taco's \molecule fails in mkiv

2009-02-23 Thread luigi scarso
> time). > > \startluacode > > thirddata = thirddata or { } > > function thirddata.molecule(text) >text = string.gsub(text,"_","\\low") >text = string.gsub(text,"%^","\\high") >tex.sprint(text) > end > > \stopl

Re: [NTG-context] Taco's \molecule fails in mkiv

2009-02-23 Thread Mojca Miklavec
time). > > \startluacode > > thirddata = thirddata or { } > > function thirddata.molecule(text) >text = string.gsub(text,"_","\\low") >text = string.gsub(text,"%^","\\high") >tex.sprint(text) > end > > \stoplua

Re: [NTG-context] Taco's \molecule fails in mkiv

2009-02-23 Thread Wolfgang Schuster
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 _

[NTG-context] Taco's \molecule fails in mkiv

2009-02-23 Thread Mojca Miklavec
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

[NTG-context] ppchtex rotation

2008-09-22 Thread Alan BRASLAU
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

Re: [NTG-context] \chemical and MKIV

2008-02-22 Thread Peter Münster
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

Re: [NTG-context] \chemical and MKIV

2008-02-22 Thread Mojca Miklavec
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 &

Re: [NTG-context] \chemical and MKIV

2008-02-22 Thread Peter Münster
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

Re: [NTG-context] \chemical and MKIV

2008-02-21 Thread Mojca Miklavec
;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

Re: [NTG-context] Chemistry in lists

2007-12-23 Thread Shen Chen
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

Re: [NTG-context] Chemistry in lists

2007-12-23 Thread Mojca Miklavec
]#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

Re: [NTG-context] \chemical{} + \title{}

2007-03-20 Thread Tobias Burnus
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

Re: [NTG-context] debian tikz module

2007-02-26 Thread Frank Küster
"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

Re: [NTG-context] debian tikz module

2007-02-26 Thread Johan Sandblom
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

Re: [NTG-context] debian tikz module

2007-02-26 Thread Frank Küster
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

Re: [NTG-context] debian tikz module

2007-02-23 Thread Frank Küster
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)

Re: [NTG-context] new debian context 2006.12.21-0.1

2006-12-22 Thread Frank Küster
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

Re: [NTG-context] new debian context, upload to Debian

2006-12-20 Thread Frank Küster
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)

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-25 Thread Frank Küster
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

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-24 Thread Frank Küster
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

Re: [NTG-context] ConTeXt installtion and Debian

2006-10-24 Thread Frank Küster
(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

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-24 Thread Frank Küster
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

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-24 Thread Frank Küster
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

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-23 Thread Frank Küster
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

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-23 Thread Frank Küster
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

Re: [NTG-context] ConTeXt on Debian: The wiki entry

2006-10-23 Thread Frank Küster
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

[NTG-context] ConTeXt on Debian: The wiki entry

2006-10-23 Thread Frank Küster
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

Re: [NTG-context] [tex-live] man page for mptopdf

2006-07-02 Thread Frank Küster
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

Re: [NTG-context] small caps italic and font switching inside math

2006-07-02 Thread Mojca Miklavec
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

Re: [NTG-context] small caps italic and font switching inside math

2006-07-02 Thread Taco Hoekwater
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

Re: [NTG-context] small caps italic and font switching inside math

2006-07-01 Thread Mojca Miklavec
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

Re: [NTG-context] small caps italic and font switching inside math

2006-06-30 Thread Taco Hoekwater
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

Re: [NTG-context] small caps italic and font switching inside math

2006-06-30 Thread Mojca Miklavec
{\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`\

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Hans Hagen
\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`\^=

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Taco Hoekwater
} \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

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Taco Hoekwater
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

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Mojca Miklavec
$-$} 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

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Taco Hoekwater
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.

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Aditya Mahajan
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{

[NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Mojca Miklavec
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