Re: [NTG-context] small caps italic and font switching inside math
Mojca Miklavec wrote: On 6/29/06, Taco Hoekwater wrote: {\bf A test \variant[Caps] in small caps} Does this work on your computer? (I don't get any caps here.) No it doesn't, it was a leftover from a failed experiment Thanks for the magnificent macro! I 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{\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. It only moves a lone subscript because i like ions better if the count and charge are aligned, and I also added an italic correction. It is possible to get everything looking perfect (of course), but that would require spending much more time fine-tuning super- and sub scripts. Positive ions look absolutely awful in latin modern btw. The plus from CM is dead-ugly when used in this fashion. Taco \newbox\chemlowbox \def\chemlow#1% {\setbox\chemlowbox\hbox{{\switchtobodyfont[small]#1}}} \def\chemhigh#1% {\ifvoid\chemlowbox \high{{\switchtobodyfont[small]#1}}% \else \/\lohi{\box\chemlowbox}{{\switchtobodyfont[small]#1}}\fi } \def\finishchem% {\ifvoid\chemlowbox \else \iffluor \fluorfalse \kern-.1em \fi\low{\box\chemlowbox}\fi} \newif\iffluor \unexpanded\def\molecule% {\bgroup \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}% \catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}% \dostepwiserecurse {65}{90}{1} {\catcode \recurselevel = \active \uccode`\~=\recurselevel \uppercase{\edef~{\noexpand\finishchem \rawcharacter{\recurselevel% \uccode `\~=`\F \uppercase{\def~{\finishchem F\fluortrue}}% \catcode`\-=\active \uccode`\~=`\- \uppercase{\def~{--}}% \loggingall \domolecule }% ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Difficulties using the r module
I can't really think why it wouldn't work then. Perhaps it is to do with \write18 and the right of TeX to run external programs? Or maybe R on the mac does not take the same command-line options? In that case the output of the texexec run should be revealing. R takes more than a second to start up so there are noticable breaks in the output after which error messages from R appear. Btw, the reason it does not work on contextgarden is likely that R is not installed there. Sorry I could not be of more assistance, Johan 2006/6/30, Matthew Routley [EMAIL PROTECTED]: Johan, It appears R is not found. Is it on the path? Does it have the same name on the Mac? Yes, R is in the bath and is found in /usr/bin/R which is a link to /Library/Frameworks/R.framework/Resources/bin/R. Thanks for your help with this. Take care, Matt -- Matthew Routley http://matt.routleynet.org ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] minor console file queries
I processed a file using texmfstart texexec. In the console file, I see the lines (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/Users/acbowen/Library/texmf/tex/context/type-alanmodern.tex) (/Users/acbowen/Library/texmf/tex/context/third/greek/type-agr.tex)) check : missing or ungrouped '=' after 'location' in line 106 (@@td) and User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. • Where do I check for the missing or ungrouped `='? The problem does not appear to be in my source file or in my environment file. • Is ConTeXt looking for a 'cont-sys.tex' in my own ~/Library/texmf tree? Neither issue seems to have any impact on the output. So I am just asking out of curiosity. Cheers, Alan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] [OT] Is Indesign CS 2 better than ConTeXt ?
On Thursday 25 May 2006 07:52, luigi scarso wrote: OK, it is a big OFF TOPIC. Some notes * the Elements of Typographic Style was made with Indesign (true or false?) and the only words about TeX is an url (true or false ?) * indesign eat xml * there is an indesign server; maybe actually too much complex, but in the future? * I don't know if IDCS2 has some programming capabilities like ConTeXt Ofcourse : *IDCS2 come from Adobe, so it has the feature of latest pdf spec.; *IDCS2 is WYSIWYG * (...possibly many others...) But there is one important point: Can IDCS2 be view as candidate for automatic typesetting (xml-IDCS2-pdf) ? InDesign is partly based on TeX, and can yield fine results. But it is not free of problems. It is, like most commercial and some Open Source products, page oriented instead of document oriented. ID shows its feet of clay when a document that is already completed needs to be altered. Please see the archives of Pub-Forum and the threads titled: Another Indesign question: copyfitting. TeX is hardly perfect. But every problem discussed on that rather long thread is a non-problem in TeX. There is a lack of flexiblity with ID that I found rather shocking. My advice: look before you leap. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] [OT] Is Indesign CS 2 better than ConTeXt ?
Hi John, On Sat, 01 Jul 2006 10:33:10 -0600, John R. Culleton [EMAIL PROTECTED] wrote: InDesign is partly based on TeX, and can yield fine results. But it is not free of problems. It is, like most commercial and some Open Source products, page oriented instead of document oriented. Could you explain this distinction a bit more? i get the general idea but would love to have more details. ID shows its feet of clay when a document that is already completed needs to be altered. Please see the archives of Pub-Forum and the threads titled: Another Indesign question: copyfitting. Could you post a link to this thread? Putting the thread title into google did not get me anywhere :-) Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Metapost label alignment etc.
Hi Mojca, On Fri, 30 Jun 2006 22:33:41 -0600, Mojca Miklavec [EMAIL PROTECTED] wrote: Here's the second square as an example without calculating the coordinates. =meta-test2.tex=== Thank you very much; I will study this example very carefully. Thnx again for the lesson in MP and all the Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small caps italic and font switching inside math
On 7/1/06, Taco Hoekwater wrote: Mojca Miklavec wrote: On 6/29/06, Taco Hoekwater wrote: {\bf A test \variant[Caps] in small caps} Does this work on your computer? (I don't get any caps here.) No it doesn't, it was a leftover from a failed experiment OK. I thought so :( Thanks for the magnificent macro! I 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. emm ... I didn't think about that. And I don'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 the macro, try the version below. Didn't work in titles either (or I did something strange) :( But If I write a couple of explicit \lohi-s, it will still be OK. It only moves a lone subscript because i like ions better if the count and charge are aligned, and I also added an italic correction. Thanks! It is possible to get everything looking perfect (of course), but that would require spending much more time fine-tuning super- and sub scripts. I don't need that perfect solution. The way it is now is already great. Positive ions look absolutely awful in latin modern btw. The plus from CM is dead-ugly when used in this fashion. I may not bother about it - I can't redesign the font and I'll worry about switching to some other font at the end if necessary, now it's time to concentrate on content. (A pitty that Knuth wasn't a chemist as well. The chemists would desperately need something similar for chemistry what TeX offers for mathematics.) \newbox\chemlowbox \def\chemlow#1% {\setbox\chemlowbox\hbox{{\switchtobodyfont[small]#1}}} \def\chemhigh#1% {\ifvoid\chemlowbox \high{{\switchtobodyfont[small]#1}}% \else \/\lohi{\box\chemlowbox}{{\switchtobodyfont[small]#1}}\fi } \def\finishchem% {\ifvoid\chemlowbox \else \iffluor \fluorfalse \kern-.1em \fi\low{\box\chemlowbox}\fi} \newif\iffluor \unexpanded\def\molecule% {\bgroup \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\chemlow}% \catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\chemhigh}% \dostepwiserecurse {65}{90}{1} {\catcode \recurselevel = \active \uccode`\~=\recurselevel \uppercase{\edef~{\noexpand\finishchem \rawcharacter{\recurselevel% \uccode `\~=`\F \uppercase{\def~{\finishchem F\fluortrue}}% \catcode`\-=\active \uccode`\~=`\- \uppercase{\def~{--}}% \loggingall \domolecule }% I didn't really understand the \iffluor-part of the code ... but don't bother too much. Thanks a lot for the trickery again (I'm still impressed by the \uppercase part), Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Extend the fraction bar
All, How can I extend the main fraction bar in the following expression, making it a tad longer? \placeformula \startformula \dfrac{\dfrac{9+3x-2x^2}{x^2-16}}{\dfrac{4x^3-9x}{2x^2+5x-12}}. \stopformula ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Malicious little bugger
All, Came across this again. \placeformula[-] \startformula [9,\infty)=\{x:\,x\ge 9\} \stopformula Got it to compile with: \placeformula[-] \startformula\relax [9,\infty)=\{x:\,x\ge 9\} \stopformula Yuk! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context