Re: [NTG-context] Dimensions
On Mon, Jan 26, 2009 at 9:32 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 26.01.2009 um 20:12 schrieb Alan BRASLAU: The syntax of \dimexpr and \numexpr is subtle and mysterious. For example, \framed[width=.61\textwidth,height=\dimexpr.61\textwidth*1486/1200\relax]{} works, but I never understood the limitations. How about an entry on the wiki? \dimexpr and \numexpr are explaines in the e-tex manual. ... which you'll find here: http://www.ntg.nl/maps/20/38.pdf Best, Alan The only important thing for \dimexpr is to write the dimen value as first value after the \dimexpr command and then the numeric values. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] backgrounds: help needed
__ -Ursprüngliche Nachricht- Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Mittwoch, 21. Januar 2009 00:08 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] backgrounds: help needed Am 20.01.2009 um 23:51 schrieb Alan BRASLAU: I, too, do not understand the \definetextbackground \starttextbackground \stoptextbackground commands, even though I tried looking at details.pdf (and core- pgr.tex). My particular problem is rather classic, that of illustrating examples, set off from the main text. I first used \defineframedtext [example] [width=fit,background=screen,backgroundscreen=0.7] \startexample ... \stopexample and this is appropriate if the example is short enough to fit on one page. However, a long example (many paragraphs) that spans more than one page runs off the bottom. Textbackground seems more appropriate, so I tried \definetextbackground [example] [location=paragraph,backgroundcolor=middlegray,frame=off] \definestartstop [example] [before={\starttextbackground[example]},after=\stoptextbackground] but this does not work. I tried other variants (such as adding state=start, ...) with no success. Does anyone have suggestions on where to look for further documentation or examples of use? This works for me. \setupcolors[state=start] \definetextbackground [example] [location=paragraph, background=color, backgroundcolor=middlegray, frame=off] \starttext \input knuth \startexample \dorecurse{4}{\input knuth\par} \stopexample \input knuth \stoptext Wolfgang For me this works only with context 2008-10-31. It doesn't work with the beta from 2008-01-18 (no background). Greetings Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] backgrounds: help needed
On Tue, Jan 27, 2009 at 9:50 AM, Thomas Floeren thomas.floe...@boschung.com wrote: This works for me. \setupcolors[state=start] \definetextbackground [example] [location=paragraph, background=color, backgroundcolor=middlegray, frame=off] \starttext \input knuth \startexample \dorecurse{4}{\input knuth\par} \stopexample \input knuth \stoptext Wolfgang For me this works only with context 2008-10-31. It doesn't work with the beta from 2008-01-18 (no background). MkII or MkIV? Can you try texexec --make metafun --standalone. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Background on paragraphs
Hi all, I'm new to ConTeXt but not new to LaTeX and I really enjoy to learn again something new and that seems to be cleaner in syntax at least. By reading the excursion, I typed something that did not work on my computer. It is about the background on paragraphs. I've a big black background and we cannot see the text. I attached the PDF file produced. I used texexec : % texexec TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD and the following code : \setupbackground[background=screen,corner=round] \starttext \startbackground Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam semper mi pellentesque diam. Vestibulum tellus erat, vestibulum vel, blandit ac, placerat at, metus. Integer rhoncus neque vel dolor. Sed dapibus arcu eu lorem. In eleifend nunc nec justo. Maecenas sagittis ultricies orci. Proin nec est. Integer dictum dictum felis. Mauris nibh dui, tempus eget, auctor et, ultrices nec, nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Duis lacinia vehicula pede. Sed eros tellus, ultricies id, porttitor sed, bibendum quis, metus. Pellentesque et justo eu ante tristique aliquet. Quisque dui tellus, cursus sit amet, tincidunt nec, imperdiet et, nibh. Quisque sapien elit, semper ac, molestie et, dapibus vulputate, nunc. Sed in nisl. Vivamus ligula. Aliquam eros pede, iaculis vitae, imperdiet sit amet, commodo a, nibh. Pellentesque a turpis. \stopbackground \stoptext I hope to have some help and feedback about, Cheers, Antoine C. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Background on paragraphs
Obviously, I forgot the attachment. Here it is. background.pdf Description: Adobe PDF document ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bibtex problems
Hello, I have followed the indications of the wiki. In my document, I have: \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=cole] \setuppublications[numbering=yes, sort=author, criterium=all] where cole.bib contains entries such as --- @ARTICLE{Baker07, author = {{Baker}, J.~G. and {Boggs}, W.~D. and {Centrella}, J. and {Kelly}, B.~J. and {McWilliams}, S.~T. and {Miller}, M.~C. and {van Meter}, J.~R. }, title = {Modeling Kicks from the Merger of Nonprecessing Black Hole Binaries}, journal = {Astrophysical Journal}, eprint = {arXiv:astro-ph/0702390}, keywords = {Black Hole Physics, Galaxies: Nuclei, Gravitational Waves, Relativity}, year = 2007, month = oct, volume = 668, pages = {1140-1144}, doi = {10.1086/521330}, adsurl = {http://adsabs.harvard.edu/abs/2007ApJ...668.1140B}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{Baker08, author = {{Baker}, J.~G. and {Boggs}, W.~D. and {Centrella}, J. and {Kelly}, B.~J. and {McWilliams}, S.~T. and {Miller}, M.~C. and {van Meter}, J.~R. }, title = {Modeling Kicks from the Merger of Generic Black Hole Binaries}, journal = {Astrophysical Journal}, archivePrefix = arXiv, eprint = {0802.0416}, keywords = {Black Hole Physics, Galaxies: Nuclei, Gravitational Waves, Relativity}, year = 2008, month = jul, volume = 682, pages = {L29-L32}, doi = {10.1086/590927}, adsurl = {http://adsabs.harvard.edu/abs/2008ApJ...682L..29B}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } --- Later in the ConTeXt document, I have \completepublications[criterium=all] Nevertheless, when I try to texexec it, I get: -- Completed box being shipped out [11.10] Memory usage before: 12219652992; after: 3054650077; still untouched: 2428943 title : - References ! Undefined control sequence. \@@p...@journal -\apj argument ... \it \csname @@p...@journal\endcsname \egroup \firstoftwoarguments #1#2-#1 \@@pvdataarticle ... } {\insertcrossref {In }{}{}} \insertvolume {, } {\inser... \dotypesetapublication ...ve {\getvalue {pbdt-#1}} \fi \egroup argument ...etapublication {2007ApJ...668.1140B} \strut ... l.906 \completepublications[criterium=all] ? --- \apj is the shortcut used in bibtex for Astrophysical Journal but, as you can see, I have substituted it for the full name everywhere in the cole.bib file As a matter of fact, and just in case of, grep 'apj' GW2.tex and grep 'apj' cole.bib yield nothing A bit more of information: This is spree(p3)| uname -a OpenBSD spree 4.4 GENERIC#1638 i386 and spree(p3)| texexec -v TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD The full output of texexec follows below. As you can see, there are a lot of warnings, but they look as they look when in LaTeX I compile for the first time the document. The warnings disappear when I recompile it, because it needs a second time. I'm not sure of the meaning in ConTeXt. Any hint? Help will be appreciated Pau - spree(p3)| texexec GW2.tex TeXExec | processing document 'GW2.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file GW2.top TeXExec | using randomseed 534 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) %-line parsing enabled. (/usr/local/share/texmf/web2c/natural.tcx) entering extended mode (./GW2.tex ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2009.1.13 int: english/english language: language en is active system : cont-new loaded (/usr/local/share/texmf-dist/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/share/texmf-dist/tex/context/base/cont-new.mkii) (/usr/local/share/texmf-dist/tex/context/base/cont-mtx.tex)) system : cont-old loaded (/usr/local/share/texmf-dist/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/share/texmf-dist/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (/home/pau/treball/texinputs/cont-sys.tex (/usr/local/share/texmf-dist/tex/context/base/type-tmf.tex) (/usr/local/share/texmf-dist/tex/context/base/type-siz.tex) (/usr/local/share/texmf-dist/tex/context/base/type-one.tex) (/usr/local/share/texmf-dist/tex/context/base/type-akb.tex)) bodyfont: 12pt rm is loaded language: patterns
Re: [NTG-context] Background on paragraphs
Hi Antoine, By reading the excursion, I typed something that did not work on my computer. It is about the background on paragraphs. I've a big black background and we cannot see the text. I attached the PDF file produced. \setupcolors[state=start] \setupbackground[background=screen,corner=round] \starttext \startbackground Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam semper mi pellentesque diam. Vestibulum tellus erat, vestibulum vel, blandit ac, placerat at, metus. Integer rhoncus neque vel dolor. Sed dapibus arcu eu lorem. In eleifend nunc nec justo. Maecenas sagittis ultricies orci. Proin nec est. Integer dictum dictum felis. Mauris nibh dui, tempus eget, auctor et, ultrices nec, nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Duis lacinia vehicula pede. Sed eros tellus, ultricies id, porttitor sed, bibendum quis, metus. Pellentesque et justo eu ante tristique aliquet. Quisque dui tellus, cursus sit amet, tincidunt nec, imperdiet et, nibh. Quisque sapien elit, semper ac, molestie et, dapibus vulputate, nunc. Sed in nisl. Vivamus ligula. Aliquam eros pede, iaculis vitae, imperdiet sit amet, commodo a, nibh. Pellentesque a turpis. \stopbackground \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] backgrounds: help needed
-Ursprüngliche Nachricht- Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] Gesendet: Dienstag, 27. Januar 2009 10:12 An: thomas.floe...@boschung.com; mailing list for ConTeXt users Betreff: Re: [NTG-context] backgrounds: help needed On Tue, Jan 27, 2009 at 9:50 AM, Thomas Floeren thomas.floe...@boschung.com wrote: This works for me. \setupcolors[state=start] \definetextbackground [example] [location=paragraph, background=color, backgroundcolor=middlegray, frame=off] \starttext \input knuth \startexample \dorecurse{4}{\input knuth\par} \stopexample \input knuth \stoptext Wolfgang For me this works only with context 2008-10-31. It doesn't work with the beta from 2008-01-18 (no background). MkII or MkIV? Can you try texexec --make metafun --standalone. Wolfgang MkII. I just reinstalled the october version; everything ok. btw: It seems that it still worked fine with a context-beta from 2008-12-01. Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Background on paragraphs
Hi, Thank you a lot for your quick answer. It perfectly worked \setupcolors[state=start] Why is it needed, what does that do exactly? Where can I find more information about? Cheers, Antoine C. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [Fwd: PPCHTEX and LaTeX]
-- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ---BeginMessage--- Hello, I read about PPCHTEX and I would like to use it in my LaTeX environment. I got errors with the the first \usepackage{mp-ch-de}. Can you provide a link to a HOWTO-use-PPCHTEX-with-LaTeX? Best regards, Helge ---End Message--- ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Background on paragraphs
On Tue, Jan 27, 2009 at 11:52 AM, Antoine Cailliau antoinecaill...@gmail.com wrote: \setupcolors[state=start] Why is it needed, what does that do exactly? The command enable color support. Where can I find more information about? wiki: http://wiki.contextgarden.net/Colors Beginners manual (page 59): http://pragma-ade.com/show-man-1.htm Reference manual (page 113): http://pragma-ade.com/show-man-9.htm 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] installing fonts pdftex
On Jan 27, 2009, at 12:28 AM, Mohamed Bana wrote: Hi Thomas, Hi, please address questions to the mailing-list, not to me personally. 1. when is the last time you tried to install a font manually using texfont? i've been trying to get install warnockpro and cronospro - both of which are .otf - but i've had no lack. texfont --makepath --install --fontroot=`pwd` --vendor=adobe -- co=warnockpro --en=texnansi --lcdf --preproc -- variant=liga,kern,smcp,onum the last time i checked texfont was generating an empty map file. texfont is really old, it predates opentype fonts, so you can't expect it to handle such fonts. It was a brave and wonderful effort to automate installation of fonts, but I gave up using it - not because texfont itself is bad, but because so many fonts are just faulty and/ or idiosyncratic, and automatization just can't handle all these eceptions. I always had to double-check and edit files by hand, so I decided to go for a manual process. The --lcdf switch was added by Adam Lindsay, who also wrote a short article about otf and ConTeXt: http://www.tug.org/pracjourn/2005-2/lindsay/lindsay.pdf Too bad Adam isn't active anymore, he was a great help in ConTeXt development. If you search the mailing list archive for texfont lcdf, you will see that the problem with the empty map file is common and was never really solved, AFAIK. So you have several options: 1. install the fonts manually 2. use texfont and write the map file manually 3. try Patrick's otfinst http://wiki.contextgarden.net/otfinst 4. I have a set of support files for using Cronos and Warnock with pdftex; if you want, I can make a zip and send them to you (not before Thursday, however). the free version of lucida (.ttf) that ship with Java files worked fine 2. is there someone i must do to get to dashes working properly? as in, --- doesn't generate the right dash nor does --. These are defined as ligatures in the tfm/vf files. Doesn't texfont produce vpl-files as an intermediate format? You could open those and check whether the ligature is defined. It probably isn't, and then you have to hunt down the reason or add it manually... Good luck Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [Fwd: PPCHTEX and LaTeX]
On Tuesday 27 January 2009 12:01:20 Hans Hagen wrote: Encapsulated message PPCHTEX and LaTeX From: Helge Kruse helge.kruse-nos...@gmx.net To: pra...@wxs.nl Date: Today 11:08:17 Hello, I read about PPCHTEX and I would like to use it in my LaTeX environment. I got errors with the the first \usepackage{mp-ch-de}. Can you provide a link to a HOWTO-use-PPCHTEX-with-LaTeX? Best regards, Helge End of encapsulated message As an example: \documentclass[a4paper,12pt]{article} \usepackage{m-pictex,m-ch-en} \begin{document} \setupchemical[size=small,scale=200,width=fit,frame=off] \startchemical \chemical[SIX,B,C,R,RZ][R,R,R,R,R,R] \stopchemical \end{document} On my Debian system, I had to install the context package (of course) as well as the texlive-pictures package (for pictex) for this to work. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] BibTeX in ConTeXt natbib style
In LaTeX when using the natbib package I can use: \citet[p. 113]{Bell1992} to get: Bell (1992, p. 112) \cite[p. 113]{Bell1992} to get: (Bell, 1992, p. 112) Trying to do this in ConTeXt I came up with this: \setupcite [author][left=,right=] \setupcite [year][left=,right=] \def\CiteP#1#2% {(\cite[author][{#2}]% ,\ \cite[year][{#2}]% ,\ {#1} )} \CiteP{p. 13}{article-full} And: \def\CiteA#1#2% {\cite[author][{#2}]% \ (\cite[year][{#2}]% ,\ {#1} )} \CiteA{p. 13}{article-full} It works alright, but it seems rather crude to me. Is there a more elegant way? Or maybe more to the point: a way in which I do not have to use \setupcite? Thanks in advance, Adriaan. P.S. I made my first contribution to the wiki: http://wiki.contextgarden.net/Version_Control ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] BibTeX in ConTeXt natbib style
On Tue, 27 Jan 2009, J.A.J. Pater wrote: In LaTeX when using the natbib package I can use: \citet[p. 113]{Bell1992} to get: Bell (1992, p.\ 112) \cite[alternative=authoryear, extras={, p. 112}][Bell1992] \cite[p. 113]{Bell1992} to get: (Bell, 1992, p. 112) \cite[alternative=authoryears, extras={, p.\ 113}][Bell1992] Aditya Trying to do this in ConTeXt I came up with this: \setupcite [author][left=,right=] \setupcite [year][left=,right=] \def\CiteP#1#2% {(\cite[author][{#2}]% ,\ \cite[year][{#2}]% ,\ {#1} )} \CiteP{p. 13}{article-full} And: \def\CiteA#1#2% {\cite[author][{#2}]% \ (\cite[year][{#2}]% ,\ {#1} )} \CiteA{p. 13}{article-full} It works alright, but it seems rather crude to me. Is there a more elegant way? Or maybe more to the point: a way in which I do not have to use \setupcite? Thanks in advance, Adriaan. P.S. I made my first contribution to the wiki: http://wiki.contextgarden.net/Version_Control ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] backgrounds: help needed
yes, 2009 of course; thanks. Thomas -Ursprüngliche Nachricht- Von: Aditya Mahajan [mailto:adit...@umich.edu] Gesendet: Dienstag, 27. Januar 2009 14:57 An: thomas.floe...@boschung.com; mailing list for ConTeXt users Betreff: Re: [NTG-context] backgrounds: help needed On Tue, 27 Jan 2009, Thomas Floeren wrote: For me this works only with context 2008-10-31. It doesn't work with the beta from 2008-01-18 (no background). Do you mean 2009-01-18? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] BibTeX in ConTeXt natbib style
Thanks a lot! How can I have missed that ... it's in the wiki... On Tue, 27 Jan 2009, J.A.J. Pater wrote: In LaTeX when using the natbib package I can use: \citet[p. 113]{Bell1992} to get: Bell (1992, p.\ 112) \cite[alternative=authoryear, extras={, p. 112}][Bell1992] \cite[p. 113]{Bell1992} to get: (Bell, 1992, p. 112) \cite[alternative=authoryears, extras={, p.\ 113}][Bell1992] Aditya Trying to do this in ConTeXt I came up with this: \setupcite [author][left=,right=] \setupcite [year][left=,right=] \def\CiteP#1#2% {(\cite[author][{#2}]% ,\ \cite[year][{#2}]% ,\ {#1} )} \CiteP{p. 13}{article-full} And: \def\CiteA#1#2% {\cite[author][{#2}]% \ (\cite[year][{#2}]% ,\ {#1} )} \CiteA{p. 13}{article-full} It works alright, but it seems rather crude to me. Is there a more elegant way? Or maybe more to the point: a way in which I do not have to use \setupcite? Thanks in advance, Adriaan. P.S. I made my first contribution to the wiki: http://wiki.contextgarden.net/Version_Control ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] backgrounds: help needed
On Tuesday 27 January 2009 15:08:29 Thomas Floeren wrote: yes, 2009 of course; On Tue, 27 Jan 2009, Thomas Floeren wrote: For me this works only with context 2008-10-31. It doesn't work with the beta from 2008-01-18 (no background). Do you mean 2009-01-18? Aditya The example works correctly with ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.1.25 int: english/english as well as with MKII 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] unwanted rgb--gray conversion (mkiv)
Hi Hans, The attached example works fine with mkii (text and gfx both use RGB colors). Using mkiv reduces the colorspace of the graphic to GRAY. Sadly PDFX/-4 doesn't allow to mix color profiles of colorspace RGB with GRAY ones. So I'm forced to always use the RGB colorspace... Best wishes, Peter \setupcolors[state=start] \definecolor[rgbgray] [r=.5,g=.5,b=.5] \startuniqueMPgraphic{foo}{size} fill unitsquare xyscaled(\MPvar{size},\MPvar{size}) withcolor \MPcolor{rgbgray}; \stopuniqueMPgraphic \starttext \uniqueMPgraphic{foo}{size=5cm} \color[rgbgray] Gray text. \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [Fwd: Re: [Fwd: Re: [Fwd: PPCHTEX and LaTeX]]]
-- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ---BeginMessage--- Hello Mr. Hagen, Thanks for your kind reply. I have a MikTeX system installed on Windows XP. The context is part of the installation. Although I think that all packages mentioned below are installed I get some error messages in the log. The dvi output is generated, but the errors are strange. Is this a kind of incompatibility described in a FAQ? Best regards, Helge Kruse Hans Hagen wrote: Subject: Re: [NTG-context] [Fwd: PPCHTEX and LaTeX] From: Alan BRASLAU alan.bras...@cea.fr Date: Tue, 27 Jan 2009 12:58:59 +0100 To: mailing list for ConTeXt users ntg-context@ntg.nl To: mailing list for ConTeXt users ntg-context@ntg.nl On Tuesday 27 January 2009 12:01:20 Hans Hagen wrote: Encapsulated message PPCHTEX and LaTeX From: Helge Kruse helge.kruse-nos...@gmx.net To: pra...@wxs.nl Date: Today 11:08:17 Hello, I read about PPCHTEX and I would like to use it in my LaTeX environment. I got errors with the the first \usepackage{mp-ch-de}. Can you provide a link to a HOWTO-use-PPCHTEX-with-LaTeX? Best regards, Helge End of encapsulated message As an example: \documentclass[a4paper,12pt]{article} \usepackage{m-pictex,m-ch-en} \begin{document} \setupchemical[size=small,scale=200,width=fit,frame=off] \startchemical \chemical[SIX,B,C,R,RZ][R,R,R,R,R,R] \stopchemical \end{document} On my Debian system, I had to install the context package (of course) as well as the texlive-pictures package (for pictex) for this to work. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7 Beta 5) (preloaded format=latex 2007.11.26) 27 JAN 2009 18:20 entering extended mode **foo.tex (foo.tex LaTeX2e 2005/12/01 Babel v3.8h and hyphenation patterns for english, dumylang, nohyphenation, ge rman, ngerman, french, loaded. (C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (C:\Program Files\MiKTeX 2.7\tex\latex\base\size12.clo File: size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option) ) \...@part=\count79 \...@section=\count80 \...@subsection=\count81 \...@subsubsection=\count82 \...@paragraph=\count83 \...@subparagraph=\count84 \...@figure=\count85 \...@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (C:\Program Files\MiKTeX 2.7\tex\latex\context\m-pictex.sty Package: m-pictex 2004/07/30 package wrapper for m-pictex.tex (C:\Program Files\MiKTeX 2.7\tex\context\base\m-pictex.tex (C:\Program Files\MiKTeX 2.7\tex\generic\pictex\prepictex.tex) (C:\Program Files\MiKTeX 2.7\tex\generic\pictex\pictex.tex) (C:\Program Files\MiKTeX 2.7\tex\generic\pictex\postpictex.tex))) (C:\Program Files\MiKTeX 2.7\tex\latex\context\m-ch-en.sty Package: m-ch-en 2004/07/30 package wrapper for m-ch-en.tex (C:\Program Files\MiKTeX 2.7\tex\generic\context\m-ch-en.tex (C:\Program Files\MiKTeX 2.7\tex\generic\context\ppchtex.noc (C:\Program Files\MiKTeX 2.7\tex\context\base\supp-mis.tex loading : Context Support Macros / Miscellaneous (2004.10.26) \protectiondepth=\count103 \scratchcounter=\count104 \scratchtoks=\toks17 \scratchtoks=\toks18 \scratchtoks=\toks19 \scratchtoks=\toks20 \scratchtoks=\toks21 \scratchdimen=\dimen213 \scratchskip=\skip43 \scratchmuskip=\muskip10 \scratchmuskip=\muskip11 \scratchmuskip=\muskip12 \scratchmuskip=\muskip13 \scratchmuskip=\muskip14 \scratchmuskip=\muskip15 \scratchmuskip=\muskip16 \scratchmuskip=\muskip17 \scratchmuskip=\muskip18 \scratchmuskip=\muskip19 \scratchmuskip=\muskip20 \scratchmuskip=\muskip21 \scratchbox=\box32 \scratchread=\read1 \scratchwrite=\write4 \zeropoint=\dimen214 \onepoint=\dimen215 \onebasepoint=\dimen216 \minusone=\count105 \thousandpoint=\dimen217 \onerealpoint=\dimen218 \emptytoks=\toks22 \nextbox=\box33 \nextdepth=\dimen219 \everyline=\toks23 \!!counta=\count106 \!!countb=\count107 \recursecounter=\count108 ) (C:\Program Files\MiKTeX 2.7\tex\context\base\syst-gen.tex \protectionlevel=\count109 \scratchcounter=\count110 \globalscratchcounter=\count111
Re: [NTG-context] PPCHTEX and LaTeX
Hi Helge, Thanks for your kind reply. I have a MikTeX system installed on Windows XP. The context is part of the installation. Although I think that all packages mentioned below are installed I get some error messages in the log. The dvi output is generated, but the errors are strange. Is this a kind of incompatibility described in a FAQ? ! Missing { inserted. to be read again \def l.659 \unexpanded\def \complexstartchemical[#1]% This problem was mentioned once 2007 and Hans fixed it and I don't get it with TeXLive 2008. Can you send use the file ppchtex.noc from your system, it's possible MikTeX includes a old version of the file without the patch. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] for the brave
On Tue, 13 Jan 2009, Hans Hagen wrote: Hi, I uploaded beta zip with a prelude to the new structure related code. I hope that I didn't forget files. context --make xp will generate the experimental format (you really need a luatools --generate because there are many new files). With context --interface=xp yourfile will use that format. Eventually the xp format will go away but this is a nice intermediate step for those who are willing to help debugging the code. How do I use the new separator code? Using the hint in strc-sec I tried \let\spr\separatorlist % this will enable this feature \setuphead[section] [separator={?,!,*}] \setuphead[subsection][separator={??,!!,**}] \starttext \chapter{test} \section{test} \subsection{test} \subsection{test} \section{test} \subsection{test} \subsection{test} \stoptext I get the default separators. I do not see where \separatorlist is defined. Also, it is possible to use different separators in heads and when they are referenced. Specifically, I am trying to achieve IEEE formatting guidelines which state In the head only show the current number Section I. Subsection B. Subsubsection 3) paragraph a) While refereing to a section, use Section I Subsection I-A subsubsection I-A.1 paragraph I-A.1.a Can the current implementation of separator sets achieve this? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] backgrounds: help needed
-Ursprüngliche Nachricht- Von: Alan BRASLAU [mailto:alan.bras...@cea.fr] Gesendet: Dienstag, 27. Januar 2009 17:04 An: ntg-context@ntg.nl Cc: thomas.floe...@boschung.com; 'Aditya Mahajan' Betreff: Re: [NTG-context] backgrounds: help needed On Tuesday 27 January 2009 15:08:29 Thomas Floeren wrote: yes, 2009 of course; On Tue, 27 Jan 2009, Thomas Floeren wrote: For me this works only with context 2008-10-31. It doesn't work with the beta from 2008-01-18 (no background). Do you mean 2009-01-18? Aditya The example works correctly with ConTeXt ver: 2009.01.18 14:39 MKIV fmt: 2009.1.25 int: english/english as well as with MKII Alan Thanks for your answer. I installed the 2009-01-18 yesterday at home on my mac. Everything works fine! Now I re-reinstalled the 2009-01-18 on the windows machine at work, and I get the same result as before: no gray background. I even did the texexec --make metafun --standalone from Wolfgang, but still no background. I noticed that on the win system the filename-mpgraph.4000 etc. and -mpgraph.keep files don't appear at all; they do appear of course with 2008-10-31. Appearently these are holding the code for the background. Any ideas? Thanks in advance Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___