[NTG-context] pst-spectra and some other pstricks packages in context
Dear Sirs Tanks a lot for the context software. I use it so much. I'm a physics/chemistry teacher and for making personalized exams with random numbers/questions the math.random() from lua is great. For draw schematic diagrams/graphs with random arguments I use tikz inside luacode, like context(\\addplot[blue, ultra thick] {..slope..*x-..workfunction..};). However, it would be useful to use some pstricks packages. For example, the package pst-spectra includes a set of spectrum of various chemical elements. It is unique. Currently, I run latex and then import the pdf file into context file. There are other old pstricks macros, but still very useful, that i like to use. It's old, but useful. In the pstricks home page (http://tug.org/PSTricks/main.cgi/) I can found some new work, with some new packages and macros. For now, if i try to run this simple code \usemodule[pstric] \starttext \startPSTRICKS \pspicture(0,0)(20,20) \psline(0,0)(20,20) \psline(1,1)(10,10) \endpspicture \stopPSTRICKS \stoptext I found this error message: [...] (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex) `PSTricks' v2.43 2013/05/12 (tvz) (/usr/local/texlive/2013/texmf-dist/tex/generic/pstricks/pstricks.con)) (/usr/local/texlive/2013/texmf-dist/tex/generic/pst-plot/pst-plot.tex v1.45, 2013/04/29 (tvz,hv) ! Undefined control sequence. \special@length ...ecial@length]{ #1|#2|#3 }\ifx! #1\relax \edef \pst@Specia... \pssetlength ...ecial@length \pst@tempg \@nil {#1} \ignorespaces \pst@getlength #1#2-\pssetlength \pst@dimg {#1} \edef #2{\pst@number\pst@di. .. argument ...endcsname \expandafter {\XKV@tempa } \relax \XKV@srstate{}{@\r... \XKV@afterfi #1\fi -\fi #1 \XKV@f@r ...nnil \expandafter \@gobbletwo \else #2 \expandafter \XKV@f@r \fi ... ... l.219 \psset[pst-plot]{barwidth=0.25cm} Thanks a lot for your support and for Context. Jorge Manuel ___ 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 ___
Re: [NTG-context] Drawing chemical structures
On Thu, 21 Nov 2013 15:55:09 -0500 Aditya Mahajan adit...@umich.edu wrote: Unicode alpha gets translated to \greekalpha, so you need a font (like dejavu) that includes those glyphs Yes, thanks for this clarification. When I tested this earlier, I was indeed using dejavu... In the chemistry macros, we are using a particular version of mathematics mode (subscripts, superscripts, ...) but in normal font, so greek characters, etc. will work if the font includes them. 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 ___
Re: [NTG-context] Problem with urls.
On 21 Nov 2013, at 19:53 , Wolfgang Schuster schuster.wolfg...@gmail.com wrotr I can process your example without problems. ConTeXt ver: 2013.11.16 12:43 MKIV beta fmt: 2013.11.21 int: english/english Wolfgang Thank you for your reaction. This is odd. Here this EM does not work with CONTEXT version 2013.11.14 23:22, (which uses LuaTeX version 0.76.0 as engine.) (to get this information I had of course to outcomment the \from[apurl]) Still stranger: when I plugged the url into some other TeX-file it did work with the same ConTeXt version. So it seems that there is some essential difference between these files (apart from their content) Do you have any idea what that could be? Could it be a matter of text encoding? (I use TeXShop as the front end.) Best regards, Robert Blackstone ___ 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 ___
Re: [NTG-context] Extra blank page after title page.
On Thu, 21 Nov 2013 15:56:51 -0500 (EST) Aditya Mahajan adit...@umich.edu wrote: On Thu, 21 Nov 2013, john Culleton wrote: Here is the code. first the file title.tex: - \startstandardmakeup[doublesided=no] (title stuff) \stopstandardmakeup --- and next the file copy.tex: -- \startstandardmakeup[page=no] (contents) \stopstandardmakeup MY master file contains: \input title.tex \input copy.tex -- An extra blank page is inserted between the title page and the title verso. If I combine the two files into a new file combine.tex, eliminate the two input lines above and say \input combine.tex instead I still get the unwanted blank page in between. (untested). Add doublesided=no. See http://tex.stackexchange.com/a/122349/323 for details. Aditya It works! Thanks for your help. I added these lines to my macros.tex file which gets read first: \setuppagenumbering[alternative=doublesided] \setupmakeup[standard][page=yes, doublesided=no] Then to preserve the blank page after my half title (where I really want it) I changed my master file to read as follows: \input macros.tex \starttext \startfrontmatter \input variables.tex \input half.tex \startstandardmakeup %new \null%new \stopstandardmakeup %new \input title.tex \input copy.tex %\input ded.tex \stopfrontmatter \startbodymatter %\input body.tex \stopbodymatter \stoptext Lines 6-8 in the above file give me a blank page. This will now be my standard master file. I hope that the next revision of the manual will include this fix. ___ 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 ___ -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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 ___
[NTG-context] bug: \getmarking with mixedcolumns
On 11/21/2013 11:40 AM, Lars Huttar wrote: In a thread from July (http://context.markmail.org/thread/6tgzusw45whaqghi), Marco Patzer raised some questions that we have too. They were somewhat answered, but I'm still not clear on what the meanings of the keywords are. On Jul 8, 2013 4:08:33 pm Hans wrote: On 7/9/2013 12:30 AM, Marco Patzer wrote: / On 2013–07–08 Hans Hagen wrote: // // I expect the markings on the left and right to be the same and show // A–C on the first page and D–E on the second one. Looks like a bug to // me. // // use top and bottom // // This works. Thanks. // // -- previous : last before sync // -- next : first after sync // // -- top : first in sync // -- bottom : last in sync // // -- first: first not top in sync // -- last : last not bottom in sync // // That is exactly what's in the wiki (Command/getmarking). To my // defence: The manual (chapter 12.4) is outdated, it lists: // //previous - the last of the previous page //first- the first of the actual page //last - the last of the actual page //both - first — last //all - previous — first — last // // I have no idea what “first not top in sync” means, in contrast to // “first of the actual page”, which is quite clear but wrong on a // current MkIV. / old tex terminology ... in mkiv i don't use the build-in-tex marks at all (too much juggling needed to get things right) So I'm wondering ... Hans, since the descriptions you posted are old tex terminology, what do previous/next/top/bottom/first/last/etc. mean in current terminology? I agree with Marco that the descriptions in the ref manual are much easier to understand, but appear to be wrong; and do not include top/bottom. I'll be happy to update the ref manual and the wiki if I can get clear and accurate information. We have run many examples here, including the ones on the getmarking wiki page, trying to understand what these keywords mean. top/bottom do appear to do what we need in an MWE, but are not working for us in the real document, and knowing the meaning of these keywords would be very helpful in troubleshooting the problem. Thanks, Lars I now have a MWE that shows the problem. Where top and bottom work fine outside of columns, in mixedcolumns, any keyword I use with \getmarking always seem to return the *last* item on the page. Here's the MWE: \definemarking[country] %\startsetups myheader %F1: \getmarking[country][1][first] - L2: \getmarking[country][2][last] %\hfill %T1: \getmarking[country][1][top] - B2: \getmarking[country][2][bottom] %\stopsetups \startsetups myheader F: \getmarking[country][first] - L: \getmarking[country][last] \hfill T: \getmarking[country][top] - B: \getmarking[country][bottom] \stopsetups \setupheadertexts[\setups{myheader}][][][\setups{myheader}] \def\anothersection#1{ \marking[country]{#1} {\bfb #1 \endgraf} \dorecurse{1}{\input knuth \endgraf} \marking[country]{#1} } \starttext \startmixedcolumns[distance=5mm, balance=yes] \anothersection{Brazil} \anothersection{Suriname} \anothersection{Uruguay} \anothersection{Bolivia} \anothersection{Venezuela} \anothersection{Peru} \stopmixedcolumns \stoptext When you run the MWE, you see that all the fields in the page header show the same value: whatever country appears last on the page. (Or even, depending on how you tweak the length of the country text, if the next page starts with a new country, you'll get that new country for the old page.) I also tried using column numbers, in imitation of the columnsets example on the wiki at http://wiki.contextgarden.net/Command/getmarking \startsetups myheader F1: \getmarking[country][1][first] - L2: \getmarking[country][2][last] \hfill T1: \getmarking[country][1][top] - B2: \getmarking[country][2][bottom] \stopsetups But this didn't appear to make any difference. Maybe it works for columnsets but not for mixedcolumns. Does anyone know how to get correct results for \getmarking in mixedcolumns? Thanks, Lars ___ 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 ___
[NTG-context] Problem with urls.
Dear all, Presently I'm experiencing a problem with urls that, hopefully, the ME will demonstrate. It seems to me that something must have changed in the source since the end of september. The example works with mkiv of 24 sept, but not with that of 3 november and later. --- \useURL[apurl][http://wiki.contextgarden.net/Category:Commands] \starttext \from[apurl] \url[apurl] \stoptext I use TeXshop. The console gives me the following cryptic message about a LuaTeX error: \ctxcommand #1^^@-\directlua {commands.#1} \font_helpers_low_level_define ...caledfontmode )} \edef \somefontspec {at \n... \font_helpers_trigger_define ..._identifier_class \csname \v_font_identifier… \applyfontclassstrategies ...\fontface \endcsname \else \expandafter \font_h... \font_helpers_synchronize_font ...classstrategies \fi \setfalse \c_font_auto... \tt f-\ifmode \mathtt \else \normaltt \fi … l.5 \from[apurl] ? Thanks in advance for any help. Best regards, Robert Blackstone ___ 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 ___
Re: [NTG-context] Space problem after formulas inside itemize environments
Could you correct this space problem Hans? \startitemize \item Eeny, meeny, miny, moe \placeformula \startformula \text{Numbered formula: the space after is correct.} \stopformula \item Eeny, meeny, miny, moe \placeformula[-] \startformula \text{Unumbered formula: the space after is too big.} \stopformula \item Eeny, meeny, miny, moe \stopitemize ___ 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 ___
Re: [NTG-context] Space problem after formulas inside itemize environments
What’s wrong with the second formula, both have the same space before and after the content? Then maybe Hans has corrected it recently. I am using ConTeXt version 2013.04.20, and you? ___ 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 ___
Re: [NTG-context] Numberconversion problem in caption prefixes
Am 12.11.2013 um 02:14 schrieb Géry Ogam maggy...@gmail.com: Hello, There is a numberconversion problem in caption prefixes. For instance, if chapter numbers are set to Romannumerals, the conversion of the caption prefixes depends on the presence of a section Minimal example: \setuphead[chapter][conversion=Romannumerals] \setupcaption[way=bychapter, prefixsegments=chapter] \defineconversionset [section:chapter] [] [R] \defineconversionset [float:figure][] [n] \setuphead [chapter] [sectionconversionset=section:chapter] \setupcaption [way=bychapter, prefixsegments=chapter, prefixconversionset=float:figure] Wolfgang ___ 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 ___
[NTG-context] Drawing chemical structures
Dear Sirs, I'm trying to run some code from the ppchtex manual, however, the chemical structures are not correctly drawn. See the example: https://www.dropbox.com/s/w7v8kouc4glndf0/chemicerror.pdf. I found this problem en Minimals (last version) and on TexLive 2013. \setupbodyfont[11pt] \usemodule[chemic] \starttext \startchemical[width=fit,scale=small,size=big] \bottext{α-Glycerophosphate} \chemical[ONE,SB1357,Z0357][\TL{α}{C},\SL{OPO\lohi{3}{2-}},H,H] \chemical[MOV1,SB137,Z037][C,\SL{OH},H] \chemical[MOV1,SB137,Z0137][C,H,\SL{OH},H] \stopchemical \definechemical[desoxyribose] {\chemical[FIVE,FRONT,BB125,+SB3,-SB4,Z4][O] \chemical[FIVE,FRONT,+R1235,+RZ1235][H,H,\SR{HOH_2C},OH] \chemical[FIVE,FRONT,-R1235,-RZ1235][H,OH,H,H]} \startchemical[height=6500,top=2000,bottom=2500,width=4500] \chemical[desoxyribose] \bottext{Desoxiribosa (dR)} \stopchemical \startchemical[height=4500,bottom=2500] \bottext{$\alpha$-D-Fructofuranose} \chemical [FIVE,FRONT,BB125,+SB3,-SB4,Z4][O] \chemical [FIVE,FRONT,+R1235,+RZ1235][\SR{HO},H,\SR{HOH_2C},CH_2OH] \chemical [FIVE,FRONT,-R1235,-RZ1235][OH,H,\SR{HO},H,CH_2OH] \stopchemical \startchemical[height=4500,bottom=2500] \chemical [FIVE,FRONT,B,R] \chemical [+RZ1..5] [1,2,3,4,5] \chemical [-RZ1..5] [a,b,c,d,e] \stopchemical \stoptext ___ 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 ___
Re: [NTG-context] Space problem after formulas inside itemize environments
Am 21.11.2013 um 16:31 schrieb Géry Ogam maggy...@gmail.com: Could you correct this space problem Hans? \startitemize \item Eeny, meeny, miny, moe \placeformula \startformula \text{Numbered formula: the space after is correct.} \stopformula \item Eeny, meeny, miny, moe \placeformula[-] \startformula \text{Unumbered formula: the space after is too big.} \stopformula \item Eeny, meeny, miny, moe \stopitemize What’s wrong with the second formula, both have the same space before and after the content? Wolfgang ___ 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 ___
Re: [NTG-context] Numberconversion problem in caption prefixes
Thank you Wolfgang, it does what I want. However, I realised after trying the following code inside environments (frontmatter, bodymatter, backmatter and appendices) that the default behaviour is WRONG because the conversions of prefixes are not always automatic. For instance, in the appendix environment, by default chapter numbers are Characters and every prefix representing a chapter number is also a Character (section prefixes, caption prefixes and so on). Now if you decide to switch chapter numbers to Romannumerals, you will get something totally inconsistent if you don’t do many conversions manually: *\startsectionblockenvironment[appendix]* *\defineconversionset[romannumeralsconversionset][][R]* *\setuphead[chapter][sectionconversionset=romannumeralsconversionset]* *\stopsectionblockenvironment* *\starttext* *\startappendices* *\chapter{Cool}* *\placefigure{A cow}{\externalfigure[cow]}* *\chapter{Cat}* *\section{Mouse}* *\section{Dog}* *\placefigure{A cow}{\externalfigure[cow]}* *\stopappendices* *\stoptext* which gives: *I Cool* *[figure] Figure I.I Cow % -- Here the prefix conversion from 'A' to 'I' works.* *II Cat* *B.1 Mouse % -- Here the prefix conversion from 'B' to 'II' does NOT work.* *B.2 Dog % -- Here the prefix conversion from 'B' to 'II' does NOT work.* *[figure] Figure B.II Cow % -- Here the prefix conversion from 'B' to 'II' does NOT work (because of the presence of the 2 sections B.1 and B.2 where the prefix conversion already did not work I think, so here is the BUG).* Extra: is it normal that caption NUMBERS (not prefixes) are converted to Romannumerals by default INSIDE the appendix environment (outside they are usual numbers)? ('Figure I.I Cow' and 'Figure B.II Cow' instead of 'Figure A.1 Cow' and 'Figure B.2 Cow'.) ___ 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 ___
Re: [NTG-context] Numberconversion problem in caption prefixes
It should display: I Cool [figure] Figure 1.1 A cow % -- not: Figure I.1 A cow II Cat 2.1 Mouse 2.2 Dog [figure] Figure 2.1 A cow Could you look at this weird prefix conversion behaviour Hans? Géry Ogam 2013/11/12 Géry Ogam maggy...@gmail.com Hello, There is a numberconversion problem in caption prefixes. For instance, if chapter numbers are set to Romannumerals, the conversion of the caption prefixes depends on the presence of a section Minimal example: \setuphead[chapter][conversion=Romannumerals] \setupcaption[way=bychapter, prefixsegments=chapter] \starttext \chapter{Cool} \placefigure{A cow}{\externalfigure[cow]} \chapter{Cat} \section{Mouse} \section{Dog} \placefigure{A cow}{\externalfigure[cow]} \stoptext The previous code displays an inconsistent caption prefix (first time a Romannumeral, second time a number): I Cool [figure] Figure I.1 A cow II Cat 2.1 Mouse 2.2 Dog [figure] Figure 2.1 A cow ___ 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 ___
Re: [NTG-context] [
In a thread from July (http://context.markmail.org/thread/6tgzusw45whaqghi), Marco Patzer raised some questions that we have too. They were somewhat answered, but I'm still not clear on what the meanings of the keywords are. On Jul 8, 2013 4:08:33 pm Hans wrote: On 7/9/2013 12:30 AM, Marco Patzer wrote: / On 2013–07–08 Hans Hagen wrote: // // I expect the markings on the left and right to be the same and show // A–C on the first page and D–E on the second one. Looks like a bug to // me. // // use top and bottom // // This works. Thanks. // // -- previous : last before sync // -- next : first after sync // // -- top : first in sync // -- bottom : last in sync // // -- first: first not top in sync // -- last : last not bottom in sync // // That is exactly what's in the wiki (Command/getmarking). To my // defence: The manual (chapter 12.4) is outdated, it lists: // //previous - the last of the previous page //first- the first of the actual page //last - the last of the actual page //both - first — last //all - previous — first — last // // I have no idea what “first not top in sync” means, in contrast to // “first of the actual page”, which is quite clear but wrong on a // current MkIV. / old tex terminology ... in mkiv i don't use the build-in-tex marks at all (too much juggling needed to get things right) So I'm wondering ... Hans, since the descriptions you posted are old tex terminology, what do previous/next/top/bottom/first/last/etc. mean in current terminology? I agree with Marco that the descriptions in the ref manual are much easier to understand, but appear to be wrong; and do not include top/bottom. I'll be happy to update the ref manual and the wiki if I can get clear and accurate information. We have run many examples here, including the ones on the getmarking wiki page, trying to understand what these keywords mean. top/bottom do appear to do what we need in an MWE, but are not working for us in the real document, and knowing the meaning of these keywords would be very helpful in troubleshooting the problem. Thanks, Lars ___ 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 ___
[NTG-context] Extra blank page after title page.
Here is the code. first the file title.tex: - \startstandardmakeup[doublesided=no] (title stuff) \stopstandardmakeup --- and next the file copy.tex: -- \startstandardmakeup[page=no] (contents) \stopstandardmakeup MY master file contains: \input title.tex \input copy.tex -- An extra blank page is inserted between the title page and the title verso. If I combine the two files into a new file combine.tex, eliminate the two input lines above and say \input combine.tex instead I still get the unwanted blank page in between. Using MKIV and TexLive 2013 on Linux. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at http://www.booklocker.com/books/4055.html ___ 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 ___
Re: [NTG-context] Problem with urls.
Am 21.11.2013 um 18:08 schrieb Robert Blackstone blackstone.rob...@gmail.com: Dear all, Presently I'm experiencing a problem with urls that, hopefully, the ME will demonstrate. It seems to me that something must have changed in the source since the end of september. The example works with mkiv of 24 sept, but not with that of 3 november and later. --- \useURL[apurl][http://wiki.contextgarden.net/Category:Commands] \starttext \from[apurl] \url[apurl] \stoptext I can process your example without problems. ConTeXt ver: 2013.11.16 12:43 MKIV beta fmt: 2013.11.21 int: english/english Wolfgang ___ 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 ___
Re: [NTG-context] Space problem after formulas inside itemize environments
Am 21.11.2013 um 18:23 schrieb Géry Ogam maggy...@gmail.com: What’s wrong with the second formula, both have the same space before and after the content? Then maybe Hans has corrected it recently. I am using ConTeXt version 2013.04.20, and you? ConTeXt ver: 2013.11.16 12:43 MKIV beta fmt: 2013.11.21 int: english/english Wolfgang ___ 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 ___
Re: [NTG-context] Drawing chemical structures
On Thu, 21 Nov 2013, Alan Braslau wrote: (For some reason, unicode \alpha currently disappears - a font issue. This worked early so is indeed a bug.) Unicode alpha gets translated to \greekalpha, so you need a font (like dejavu) that includes those glyphs. Aditya ___ 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 ___
Re: [NTG-context] Extra blank page after title page.
On Thu, 21 Nov 2013, john Culleton wrote: Here is the code. first the file title.tex: - \startstandardmakeup[doublesided=no] (title stuff) \stopstandardmakeup --- and next the file copy.tex: -- \startstandardmakeup[page=no] (contents) \stopstandardmakeup MY master file contains: \input title.tex \input copy.tex -- An extra blank page is inserted between the title page and the title verso. If I combine the two files into a new file combine.tex, eliminate the two input lines above and say \input combine.tex instead I still get the unwanted blank page in between. (untested). Add doublesided=no. See http://tex.stackexchange.com/a/122349/323 for details. Aditya ___ 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 ___
Re: [NTG-context] bug: \getmarking with mixedcolumns
On 11/21/2013 1:01 PM, Lars Huttar wrote: I now have a MWE that shows the problem. Where top and bottom work fine outside of columns, in mixedcolumns, any keyword I use with \getmarking always seem to return the *last* item on the page. I sometimes forget to include our version info. MKIV, the Context version from TeX Live 2013. Lars ___ 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 ___
Re: [NTG-context] Drawing chemical structures
Indeed, there have been a few changes, several rationalizations of the syntax: 1. FIVE,FRONT has become FIVEFRONT 2. positions are numbered coherently with FIVE (previously they were shifted by one) 3. +R and -R have become LR and RR, to be coherent with the non-front structures. 4. Thus, +LSR and -RSR are the asymmetrically shortened versions drawing bonds. 5. One can still use dimensional measurements in the thousands, but it is preferable to use numbers close to unity, interpreted in units of the bond length. 6. The bounding box is by default fit (in ppchtex it was fixed 4000x4000). Placing labels thus generally requires specifying a top or bottom dimension. Below is your example, corrected. (For some reason, unicode \alpha currently disappears - a font issue. This worked early so is indeed a bug.) A complete new manual has been written. We are currently hung on one or two minor details that Hans and myself have not yet take care of - just a question of getting around to it. Indeed, we NEED to release the new manual... Alan \setupbodyfont[11pt] \starttext \startchemical[bottom=1.75,size=big,frame=on] \bottext{\alpha-Glycerophosphate} \chemical[ONE,SB1357,Z0357][\TL{\alpha}{C},\SL{OPO\lohi{3}{2-}},H,H] \chemical[MOV1,SB137,Z037][C,\SL{OH},H] \chemical[MOV1,SB137,Z0137][C,H,\SL{OH},H] \stopchemical \definechemical[desoxyribose] {\chemical[FIVEFRONT,BB123,+SB4,-SB5,Z5][O] \chemical[FIVEFRONT,+LSR1234,LRZ1234][OH,H,H,\SR{HOH_2C}] \chemical[FIVEFRONT,+RSR1234,RRZ1234][H,H,OH,H]} \startchemical[width=3.5,bottom=2,frame=on,axis=on] \chemical[desoxyribose] \bottext{Desoxiribosa (dR)} \stopchemical \startchemical[width=4,bottom=2,frame=on] \bottext{$\alpha$-D-Fructofuranose} \chemical[FIVEFRONT,BB123,+SB4,-SB5,Z5][O] \chemical[FIVEFRONT,+LSR1234,LRZ1234][CH_2OH,\SR{HO},H,\SR{HOH_2C}] \chemical[FIVEFRONT,-RSR123,RRZ123][OH,H,\SR{HO},H] \stopchemical \startchemical[frame=on] \chemical [FIVEFRONT,B,+LSR,+RSR] \chemical [LRZ1..5] [1,2,3,4,5] \chemical [RRZ1..5] [a,b,c,d,e] \stopchemical \stoptext On Thu, 21 Nov 2013 18:10:45 + DesdeChaves desdecha...@gmail.com wrote: Dear Sirs, I'm trying to run some code from the ppchtex manual, however, the chemical structures are not correctly drawn. See the example: https://www.dropbox.com/s/w7v8kouc4glndf0/chemicerror.pdf. I found this problem en Minimals (last version) and on TexLive 2013. \setupbodyfont[11pt] \usemodule[chemic] \starttext \startchemical[width=fit,scale=small,size=big] \bottext{α-Glycerophosphate} \chemical[ONE,SB1357,Z0357][\TL{α}{C},\SL{OPO\lohi{3}{2-}},H,H] \chemical[MOV1,SB137,Z037][C,\SL{OH},H] \chemical[MOV1,SB137,Z0137][C,H,\SL{OH},H] \stopchemical \definechemical[desoxyribose] {\chemical[FIVE,FRONT,BB125,+SB3,-SB4,Z4][O] \chemical[FIVE,FRONT,+R1235,+RZ1235][H,H,\SR{HOH_2C},OH] \chemical[FIVE,FRONT,-R1235,-RZ1235][H,OH,H,H]} \startchemical[height=6500,top=2000,bottom=2500,width=4500] \chemical[desoxyribose] \bottext{Desoxiribosa (dR)} \stopchemical \startchemical[height=4500,bottom=2500] \bottext{$\alpha$-D-Fructofuranose} \chemical [FIVE,FRONT,BB125,+SB3,-SB4,Z4][O] \chemical [FIVE,FRONT,+R1235,+RZ1235][\SR{HO},H,\SR{HOH_2C},CH_2OH] \chemical [FIVE,FRONT,-R1235,-RZ1235][OH,H,\SR{HO},H,CH_2OH] \stopchemical \startchemical[height=4500,bottom=2500] \chemical [FIVE,FRONT,B,R] \chemical [+RZ1..5] [1,2,3,4,5] \chemical [-RZ1..5] [a,b,c,d,e] \stopchemical \stoptext -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS URA 2464 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.bras...@cea.fr ___ 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 ___
Re: [NTG-context] Drawing chemical structures
Hello, We have completely rewritten the chemical macros from ppchtex, taking some liberty with some details of the syntax. I will look into your examples to see what is going wrong. Alan On Thu, 21 Nov 2013 18:10:45 + DesdeChaves desdecha...@gmail.com wrote: Dear Sirs, I'm trying to run some code from the ppchtex manual, however, the chemical structures are not correctly drawn. See the example: https://www.dropbox.com/s/w7v8kouc4glndf0/chemicerror.pdf. I found this problem en Minimals (last version) and on TexLive 2013. \setupbodyfont[11pt] \usemodule[chemic] \starttext \startchemical[width=fit,scale=small,size=big] \bottext{α-Glycerophosphate} \chemical[ONE,SB1357,Z0357][\TL{α}{C},\SL{OPO\lohi{3}{2-}},H,H] \chemical[MOV1,SB137,Z037][C,\SL{OH},H] \chemical[MOV1,SB137,Z0137][C,H,\SL{OH},H] \stopchemical \definechemical[desoxyribose] {\chemical[FIVE,FRONT,BB125,+SB3,-SB4,Z4][O] \chemical[FIVE,FRONT,+R1235,+RZ1235][H,H,\SR{HOH_2C},OH] \chemical[FIVE,FRONT,-R1235,-RZ1235][H,OH,H,H]} \startchemical[height=6500,top=2000,bottom=2500,width=4500] \chemical[desoxyribose] \bottext{Desoxiribosa (dR)} \stopchemical \startchemical[height=4500,bottom=2500] \bottext{$\alpha$-D-Fructofuranose} \chemical [FIVE,FRONT,BB125,+SB3,-SB4,Z4][O] \chemical [FIVE,FRONT,+R1235,+RZ1235][\SR{HO},H,\SR{HOH_2C},CH_2OH] \chemical [FIVE,FRONT,-R1235,-RZ1235][OH,H,\SR{HO},H,CH_2OH] \stopchemical \startchemical[height=4500,bottom=2500] \chemical [FIVE,FRONT,B,R] \chemical [+RZ1..5] [1,2,3,4,5] \chemical [-RZ1..5] [a,b,c,d,e] \stopchemical \stoptext ___ 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 ___
[NTG-context] Simplefonts (new) fallback issue with Linux Libertine O
Fallbacks (at least the range I tested) do not work with the roman face of Linux Libertine O in the new (core) simplefonts implementation. I first thought that this might be a Libertine issue, but further testing makes me suspect it may be a simplefonts issue. Or perhaps I have used the wrong syntax with the new implementation. Below are two MWEs, one based on the current standalone (current version: 2013.11.16 12:43), running on Windows 8.1 with the win64 bins, and the second based on an up-to-date TL13 (ConTeXt ver: 2013.05.28 00:36 MKIV) on the same system. Linux Libertine O is version When I run the standalone version, the fallback characters do not appear between the first angles, but do appear between the bf and it angles. They appear between angles in all cases with the TL13 MWE. I do not see the problem with my home-grown typescript for Libertine under either TL13 or the current standalone. I do not see the problem with Junicode, Gentium Book Basic, or Gentium Basic. I have not yet tried other fonts. Standalone MWE: \definefallbackfamily [libertine] [serif] [Gentium Plus] [range={0x02052-0x02058},force=yes] \definefontfamily [libertine] [serif] [Linux Libertine O] \setupbodyfont[libertine] \def\SDQP{⁓⁗}% Swung Dash Quad Prime U02053U02057 \starttext \SDQP {\bf \SDQP} {\it \SDQP} {\bf{\it \SDQP}} \stoptext TL13 MWE: \setupbodyfontenvironment [default][em=italic] \usemodule[simplefonts] \setmainfontfallback [Gentium Plus] [range={0x02052-0x02058},force=yes] \setmainfont [Linux Libertine O] \def\SDQP{⁓⁗}% Swung Dash Quad Prime U02053U02057 \starttext \SDQP {\bf \SDQP} {\it \SDQP} {\bf{\it \SDQP}} \stoptext -- Rik Kabel ___ 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 ___
Re: [NTG-context] Problem with urls.
Am 21.11.2013 um 23:41 schrieb Robert Blackstone blackstone.rob...@gmail.com: On 21 Nov 2013, at 19:53 , Wolfgang Schuster schuster.wolfg...@gmail.com wrotr I can process your example without problems. ConTeXt ver: 2013.11.16 12:43 MKIV beta fmt: 2013.11.21 int: english/english Wolfgang Thank you for your reaction. This is odd. Here this EM does not work with CONTEXT version 2013.11.14 23:22, (which uses LuaTeX version 0.76.0 as engine.) (to get this information I had of course to outcomment the \from[apurl]) Still stranger: when I plugged the url into some other TeX-file it did work with the same ConTeXt version. So it seems that there is some essential difference between these files (apart from their content) Do you have any idea what that could be? Could it be a matter of text encoding? (I use TeXShop as the front end.) Can you send your problematic file. There could be a encoding problem or you have a special character (nonbreakable space etc.) in your file which cause problems. Wolfgang ___ 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 ___
Re: [NTG-context] Numberconversion problem in caption prefixes
Am 21.11.2013 um 21:01 schrieb Géry Ogam maggy...@gmail.com: Thank you Wolfgang, it does what I want. However, I realised after trying the following code inside environments (frontmatter, bodymatter, backmatter and appendices) that the default behaviour is WRONG because the conversions of prefixes are not always automatic. For instance, in the appendix environment, by default chapter numbers are Characters and every prefix representing a chapter number is also a Character (section prefixes, caption prefixes and so on). Now if you decide to switch chapter numbers to Romannumerals, you will get something totally inconsistent if you don’t do many conversions manually: \startsectionblockenvironment[appendix] \defineconversionset[romannumeralsconversionset][][R] \setuphead[chapter][sectionconversionset=romannumeralsconversionset] \stopsectionblockenvironment \starttext \startappendices \chapter{Cool} \placefigure{A cow}{\externalfigure[cow]} \chapter{Cat} \section{Mouse} \section{Dog} \placefigure{A cow}{\externalfigure[cow]} \stopappendices \stoptext \defineconversionset [appendix:headconversionset] [n,R] [n] \defineconversionset [appendix:floatconversionset] [][n] \setuphead[sectionconversionset=headconversionset] \setupcaption[numberconversionset=floatconversionset] \starttext \startappendices \chapter{Cool} \placefigure{A cow}{\externalfigure[cow]} \chapter{Cat} \section{Mouse} \section{Dog} \placefigure{A cow}{\externalfigure[cow]} \stopappendices \stoptext Wolfgang ___ 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 ___