Re: [NTG-context] file name in s-mod-??.tex
Aditya Mahajan wrote: Hans, In s-mod-??, the file name is simply typeset as \tt\Modulefile. This prevents an _ (underscore) in filenames. Can this be changed to \filename{\Modulefile} for a more robust solution? sure, Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beta (04.10.06)
Wolfgang Schuster wrote: 2006/10/4, Hans Hagen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Peter Rolf wrote: Hi Hans, there is a file missing in the new beta. [..] ConTeXt ver: 2006.10.03 21:08 MK II fmt: 2006.10.4 int: english/en \@@mslingualstitle: \@@mslinguals9 de \@@mssystemstitle: \@@mssystems2 cont-new (r:/tex/texmf-local/tex/context/base/cont- new.tex systems : beware: some patches loaded from cont-new.tex ! I can't find file `cont-new.mkii'. to be read again \relax l.1921 \loadmarkfile{cont-new} [..] ok, for the moment just make an empty file with that name Hans Hi Hans you also missed to move \def\currentspaceskip from supp-lan (replaced by lan-mis) to another file. The command is needed for \overstrikes. ok, added to syst-fnt thanks or noticing Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \combinepages[]: Change order
2006/10/9, Wolfgang Schuster [EMAIL PROTECTED]: 2006/10/7, Tobias Burnus [EMAIL PROTECTED]: Hello,Using \combinepages[some-pdf][nx=3,ny=5], I get:12345678910 11 12 However, I'd like to get:15926 1037 1148 12How can one achieve this? (I want to create again a poster out of talk.pdf.)Tobias Hi Tobias, I can provide a first draft of a solution to your problem. The frame around the combination should you show a small problem with my correction, it is up to you change this and maybe to wikify this. [old macro deleted] I changed the macro to a (for mee) more readable form. \unprotect % a new variable for horizontal (default) direction \startvariables dutch english german czech italian romanian french horizontal: horizontal horizontal horizontal horizontal horizontal horizontal horizontal \stopvariables % we extract the combine macros from the core \def\docombinepages[#1][#2]% a=perpag b=free {\bgroup \dontcomplain \getfiguredimensions[#1]% \getparameters [\??ip] [\c!alternative=\v!a, \c!n=\noffigurepages,\c!nx=2,\c!ny=2,\c!start=1,\c!stop=\!!maxcard, \c!distance=\bodyfontsize, \c!bottom=\vfill,\c!top=\vss, \c!left=\hss,\c!right=\hss, \c!before=\page,\c!after=\page,\c!inbetween=\blank, \c!frame=,\c!background="" \c!direction=\v!horizontal, #2]% \@@ipbefore %\doglobal\newcounter\combinedpagescounter \globallet\combinedpagescounter\@@ipstart \doifelse\@@ipalternative\v!b\!!doneafalse\!!doneatrue \doifelse\@@ipdirection\v!horizontal\docombinepageshorizontal\docombinepagesvertical#1 % watch the #1 ;-) \@@ipafter \egroup} % we work from left to right and from top to bottom \def\docombinepageshorizontal#1 {\if!!donea \doloop {\vbox to \textheight {\hsize\textwidth % ? ? \scratchdimen\@@ipdistance \!!widtha \dimexpr(\hsize-\@@ipnx\scratchdimen+\scratchdimen)/\@@ipnx\relax \!!heighta\dimexpr(\vsize-\@@ipny\scratchdimen+\scratchdimen)/\@@ipny\relax \dorecurse\@@ipny {\hbox to \hsize {\dorecurse\@@ipnx {\vbox to \!!heighta {\hsize\!!widtha \vsize\!!heighta \@@iptop \hbox to \hsize {\@@ipleft \ifnum\combinedpagescounter\@@ipstop\re lax \globallet\@@ipn\!!zerocount \else\ifnum\combinedpagescounter\@@ipn \else \externalfigure[#1] [\c!object=\v!no, \c!page=\combinedpagescounter, \c!factor=\v!max, \c!background=""> \c!backgroundcolor=\@@ipbackgroundcolor, \c!frame=\@@ipframe]% \fi\fi \@@ipright} \@@ipbottom}% \doglobal\increment\combinedpagescounter \hfil}% \hfilneg} \vfil}% \vfilneg}% \page \ifnum\combinedpagescounter\@@ipn \exitloop\fi} \else \doloop {\startbaselinecorrection \scratchdimen\@@ipdistance \!!widtha\dimexpr(\hsize-\@@ipnx\scratchdimen+\scratchdimen)/\@@ipnx\relax \hbox to \hsize {\dorecurse\@@ipnx {\doglobal\increment\combinedpagescounter \ifnum\combinedpagescounter\@@ipn \else \expanded{\externalfigure[#1] [\c!page=\combinedpagescounter, \c!width=\the\!!widtha,% todo \freezedimenmacro \c!background=""> \c!backgroundcolor=\@@ipbackgroundcolor, \c!frame=\@@ipframe]}% \hfill \fi}\hfillneg}% \stopbaselinecorrection \ifnum\combinedpagescounter\@@ipn\relax \@@ipinbetween \else \exitloop \fi} \fi} % we work from top to bottom and from left to right, no alternative=b \def\docombinepagesvertical#1 {\doloop {\vbox %to \textheight % neccesary? {\hsize\textwidth \vsize\textheight \scratchdimen\@@ipdistance \!!widtha \dimexpr(\hsize-\@@ipnx\scratchdimen+\scratchdimen)/\@@ipnx\relax \!!heighta\dimexpr(\vsize-\@@ipny\scratchdimen+\scratchdimen)/\@@ipny\relax \hbox to \hsize {\dorecurse\@@ipnx {\vbox to \vsize {\hsize\!!widtha \dorecurse\@@ipny {\@@iptop \hbox to \hsize {\@@ipleft \vbox to \!!heighta {\hsize\!!widtha \vsize\!!heighta \ifnum\combinedpagescounter\@@ipstop\relax \globallet\@@ipn\!!zerocount \else\ifnum\combinedpagescounter\@@ipn \else \externalfigure[#1] [\c!object=\v!no, \c!page=\combinedpagescounter, \c!factor=\v!max, \c!background=""> \c!backgroundcolor=\@@ipbackgroundcolor, \c!frame=\@@ipframe]% \fi\fi}% \@@ipright} \doglobal\increment\combinedpagescounter \@@ipbottom} \vfil}% \hfil} \hfilneg} \vfilneg} \page \ifnum\combinedpagescounter\@@ipn \exitloop\fi}} \protect \starttext \framed{\combinepages[your-pdf][nx=4,ny=6,direction=vertical]} \framed{\combinepages[your-pdf][nx=4,ny=6]} \stoptext Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \combinepages[]: Change order
Wolfgang Schuster wrote: I changed the macro to a (for mee) more readable form. i changed your first patch to an 'alternative c' option with split up macro's directiuon is reserved for directional typesetting \doifelse\@@ipdirection\v!horizontal\docombinepageshorizontal\docombinepagesvertical#1 % watch the #1 ;-) see patch i sent you; we can avoid the #1 ; will be in the next beta also imagine that #1 is blabla and not a \cs ... in sich cases you really need {#1} so: ...[alternative=a|b|c|horizontal|vertical] Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \combinepages[]: Change order
2006/10/10, Hans Hagen [EMAIL PROTECTED]: Wolfgang Schuster wrote: I changed the macro to a (for mee) more readable form.i changed your first patch to an 'alternative c' option with split up macro's directiuon is reserved for directional typesetting \doifelse\@@ipdirection\v!horizontal\docombinepageshorizontal\docombinepagesvertical#1 % watch the #1 ;-) see patch i sent you; we can avoid the #1 ; will be in the next betaalso imagine that #1 is blabla and not a \cs ... in sich cases you really need {#1}so: ...[alternative=a|b|c|horizontal|vertical] Hans Hi Hans, if I look at your it seems to me alternative=horizontal|vertical will be similiar to alternative=b and not horizontal==a and vertical==c as I thought. You're right about the #1 but this is my method of lerning of TeX. Help other people and try to understand how things work. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] color question
If this is OT, my apologies to all. I am currently using ConTEXt to produce PDFs with a colored background which I specify using R G B settings. Unfortunately, this background does not look the same when others open the files on their computers. Is there anything I can do at my end to correct this? Alan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] multipage tables
Another try: If I expand the example of tables in wiki.contextgarden.net/Tables beyond one page, there is no pagebreak, but the table continues at the bottom. Gerhard -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] multipage tables
2006/10/10, Gerhard Kugler [EMAIL PROTECTED]: Another try:If I expand the example of tables in wiki.contextgarden.net/Tables beyond one page, there is no pagebreak, but the table continues at thebottom.Gerhard Hi Gerhard, can you post a minimum example of your problem, because I can't find a solution only with your current describtion. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Can ConTeXt make dynamic barcoded forms?
Hi everyone, I've seen some marvelous samples on Adobe' official site about dynamic barcoded forms using XML: http://www.adobe.com/products/server/barcodedpaperforms/pdfs/sample_barcoded_demo.pdf can someone tell me that is it possible to build such pdfs using ConTeXt? Yours, Chen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] multipage tables
On Tue, Oct 10, 2006 at 04:58:33PM +0200, Wolfgang Schuster wrote: can you post a minimum example of your problem, because I can't find a solution only with your current describtion. Hi Wolfgang, I have modified the wiki-example only slightly in appendix 1. Appendix 2 is the log-file. Gerhard -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de \starttext \placetable[here][tab:sample]{sample table}{\start \starttablehead \HL \NC \TWO Obertext zum Ganzen \NC\SR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|p(0.2\textwidth)|p(0.75\textwidth)|] \NC Text1 \NC Text1a \NC\FR \NC \tex{HL} \NC horizontal line \NC\MR \NC \tex{VL} \NC vertical line \NC\MR \NC \tex{NR} \NC next row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \stoptables \stop} \stoptext This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) (format=cont-en 2006.1.23) 10 OCT 2006 18:03 entering extended mode **cont-en tables2.tex (./tables2.tex{/usr/share/texmf/pdftex/config/pdftex.cfg} ConTeXt ver: 2003.1.31 fmt: 2006.1.23 int: english mes: english language : language en is active protectionstate 0 system : cont-new loaded (/usr/share/texmf/tex/context/base/cont-new.tex systems: beware: some patches loaded from cont-new.tex! system (E-TEX) : [line 726] \ifcsname ) system : cont-old loaded (/usr/share/texmf/tex/context/base/cont-old.tex loading: Context Old Macros ) system : cont-fil loaded (/usr/share/texmf/tex/context/base/cont-fil.tex loading: Context File Synonyms ) bodyfont : 12pt rm is loaded language : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 7:2-it-2 8:2-nl-2 loaded specials : tex,postscript,rokicki loaded \openout2 = `tables2.tui'. system : tables2.top loaded (./tables2.top) \openout0 = `mpgraph.mp'. \openout0 = `mprun.mp'. \openout0 = `mpgraph.mp'. \openout0 = `mprun.mp'. pdftex : needs map file: original-context-symbol.map pdftex : needs map file: pl0-ams-cmr.map pdftex : needs map file: original-vogel-symbol.map (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) systems: begin file tables2 at line 1 TABLE : skipping \HL TABLE : \MR changed into \LR TABLE : change \MR into \LR/\SR TABLE : change \LR into \FR/\SR TABLE : skipping \HL floatblocks: 1 limited floatblocks: 1 placed [1.1] systems: end file tables2 at line 86 ) Here is how much of TeX's memory you used: 347 strings out of 68101 4871 string characters out of 753943 4388269 words of memory out of 5504175 30091 multiletter control sequences out of 1+5 10453 words of font info for 35 fonts, out of 50 for 1000 54 hyphenation exceptions out of 1000 44i,17n,48p,125b,632s stack positions out of 1500i,500n,5000p,20b,5000s 0 PDF objects out of 30 0 named destinations out of 131072 0 words of extra memory for PDF output out of 65536 Output written on
Re: [NTG-context] color question
On 10/10/06, Alan Bowen [EMAIL PROTECTED] wrote: If this is OT, my apologies to all. I am currently using ConTEXt to produce PDFs with a colored background which I specify using R G B settings. Unfortunately, this background does not look the same when others open the files on their computers. Is there anything I can do at my end to correct this? There are well-known differences between various computer brands, and individual PC's generally vary widely. If you need really good agreement, then all the systems need to be viewed under similar light conditions and calibrated (e.g., using a colorimeter, or at least the GretagMacbeth ColorChecker, a printed chart) and you want to generate PDF's with a specific colorspace (not just deviceRGB). For most purposes, it seems to work to use a rough sRGB setting where you adjust the monitor (brightness, contrast) to approximate gamma=2.2. Check this with: http://www.normankoren.com/makingfineprints1A.html#Monitor_test_pattern. Many LCD's and worn-out CRT's like the ancient NCD on my desk will fail even this simple test. -- George N. White III [EMAIL PROTECTED] Head of St. Margarets Bay, Nova Scotia ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Can ConTeXt make dynamic barcoded forms?
Am 2006-10-10 um 17:53 schrieb Zhichu Chen: I've seen some marvelous samples on Adobe' official site about dynamic barcoded forms using XML: can someone tell me that is it possible to build such pdfs using ConTeXt? Not yet ;-) I can think of 3 possibilities for a static barcodes module: - draw the bars with MetaPost - use psTricks/pdfTricks - call GNU barcode externally - use barcode fonts (makes no sense...) That would be interesting for price tags, ISBN or the like. But dynamical stuff like Adobe's must probably get drawn with JavaScript (or perhaps Flash?). I guess it would be *possible* but you'd have to hire a good programmer... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] color question
Am 2006-10-10 um 13:52 schrieb Alan Bowen: I am currently using ConTEXt to produce PDFs with a colored background which I specify using R G B settings. Unfortunately, this background does not look the same when others open the files on their computers. Is there anything I can do at my end to correct this? Color almost never looks the same on some other screen - you can't force everyone to calibrate theirs and use proper color management settings... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] multipage tables
2006/10/10, Gerhard Kugler [EMAIL PROTECTED]: On Tue, Oct 10, 2006 at 04:58:33PM +0200, Wolfgang Schuster wrote: can you post a minimum example of your problem, because I can't find a solution only with your current describtion.Hi Wolfgang,I have modified the wiki-example only slightly in appendix 1.Appendix 2 is the log-file.Gerhard--Gerhard Kugler PsychotherapeutBensheim (Germany)http://www.psychotherapie-kugler.de Hi Gerhard, I have at the moment no ConTeXt where I can test your example file but you should try to change the first line of your float from \placetable[here]... to \placetable[here,split]... I hope it works for you and I also try to run your file till tomorrow. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] multipage tables
I have at the moment no ConTeXt where I can test your example file but you should try to change the first line of your float from \placetable[here]... to \placetable[here,split]... I hope it works for you and I also try to run your file till tomorrow. I ran it here (ver: 2006.10.05). With just \placetable[here], it doesn't split. With \placetable[here,split], it splits it into two parts with Table 1.a on one page and Table 1.b on the other page. The Obertext zum Ganzen is only on the first page, which is what the .tex code should do (but maybe you wanted it repeated at the top of each split page?). -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setup-en.pdf
Hallo! I searched some of the first (p. 8-9) commands used in 'the details' in setup-en.pdf. But I didn't found \showgridboxes \setlayer \definelayer \layoutcolumnoffset ... Shouldn't be ALL the commands listet in setup-en.pdf? How is this document created? Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] figurenumbering
Hallo! With ConTeXt ver. 2006.09.26, figure numbering is working as expected. You need the option \setupfloats[numbering=nocheck] is not longer needed, but you can see a bad sideeffects by figurenumber=nocheck in my example this sideeffect is visible both, with nocheck and without this option (numbering=yes resp.). example \setupfloats[numbering=nocheck] \starttext \placefigure{}{\framed{Blub}} \placefigure[page][]{}{\framed{Bautz}} \placefigure{}{\framed{Bla}} This were \rawnumber[figure] figures by now! \setnumber[figure]{8} We want to count on with \rawnumber[figure]. \placefigure{}{\framed{Plong}} figurenumber is incremented to \rawnumber[figure]. \stoptext /example The number of the figures are set as they appear in the text and this did not work well when one figure is set later as another one typed later in your code. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Can ConTeXt make dynamic barcoded forms?
Zhichu Chen wrote: Hi everyone, I've seen some marvelous samples on Adobe' official site about dynamic barcoded forms using XML: http://www.adobe.com/products/server/barcodedpaperforms/pdfs/sample_barcoded_demo.pdf can someone tell me that is it possible to build such pdfs using ConTeXt? you mean forms? sure ; ths data can be sent to a server which then can send back a result barcodes ... if i need them i will play with metapost a bit (i never looked into barcodes) Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \combinepages[]: Change order
Wolfgang Schuster wrote: 2006/10/10, Hans Hagen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Wolfgang Schuster wrote: I changed the macro to a (for mee) more readable form. i changed your first patch to an 'alternative c' option with split up macro's directiuon is reserved for directional typesetting \doifelse\@@ipdirection\v!horizontal\docombinepageshorizontal\docombinepagesvertical#1 % watch the #1 ;-) see patch i sent you; we can avoid the #1 ; will be in the next beta also imagine that #1 is blabla and not a \cs ... in sich cases you really need {#1} so: ...[alternative=a|b|c|horizontal|vertical] Hans Hi Hans, if I look at your it seems to me alternative=horizontal|vertical will be similiar to alternative=b and not horizontal==a and vertical==c as I thought. can you test the beta? the code is in there now Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Can ConTeXt make dynamic barcoded forms?
2006/10/10, Henning Hraban Ramm [EMAIL PROTECTED]: I can think of 3 possibilities for a static barcodes module: - draw the bars with MetaPost - use psTricks/pdfTricks - call GNU barcode externally - use barcode fonts (makes no sense...) That would be interesting for price tags, ISBN or the like. GNU barcode works reasonably well. You have to trim the produced ps a bit, but that's easy. Best Martin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Can ConTeXt make dynamic barcoded forms?
Am 2006-10-10 um 22:40 schrieb Hans Hagen: barcodes ... if i need them i will play with metapost a bit (i never looked into barcodes) I collected some docs on barcodes for a project some years ago, I could sent that to you or anyone else. But I guess the best would be to look into the code of GNU barcode (only one C file, AFAIR). Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bug in beta: extra \else
Hi all, there is some deep bug that was discovered translating Beginners manual. Let take single chapter e.g. ma-cb-cz-alignments.tex With today beta I got .log attached (error ! Extra \else) This will appear in both modes screen and normal. Interesting is that no error appears in context 2006-05-28. In context 2006-09-10 this error appears only in normal mode. Screen mode is OK. Vit P.S. Today's beta shows even more problems: - inside typebuffer: only '\dochar {225}' instead of \'a in latin2 - some metapost graphics is wrong But I suggest to solve them step by step. This is pdfTeXk, Version 3.141592-1.40.0-beta-20060213 (Web2C 7.5.5) (format=cont-en 2006.10.10) 10 OCT 2006 23:50 entering extended mode \write18 enabled. %-line parsing enabled. (c:/TeXLive2005/texmf-update/web2c/natural.tcx) **ma-cb-cz-alignments.tex \emergencyend (./ma-cb-cz-alignments.tex ConTeXt ver: 2006.10.10 22:15 MK II fmt: 2006.10.10 int: english/english language: language en is active system : cont-new loaded (c:/TeXLive2005/texmf-update/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (c:/TeXLive2005/texmf-update/tex/context/base/cont-new.mkii)) system : cont-old loaded (c:/TeXLive2005/texmf-update/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (c:/TeXLive2005/texmf-update/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (c:/TeXLive2005/texmf-update/tex/context/user/cont-sys.tex (c:/TeXLive2005/texmf-update/tex/context/base/type-exa.tex) (c:/TeXLive2005/texmf-update/tex/context/base/type-syn.tex) (c:/TeXLive2005/texmf-update/tex/context/base/type-enc.tex) (c:/TeXLive2005/texmf-update/tex/context/base/type-siz.tex) (c:/TeXLive2005/texmf-update/tex/context/base/type-map.tex) (c:/TeXLive2005/texmf-update/tex/context/base/type-spe.tex) (c:/TeXLive2005/texmf-update/tex/context/base/type-akb.tex)) bodyfont: 12pt rm is loaded language: patterns nl-texnansi:texnansi-1-2:3 nl-ec:ec-2-2:3 fr- texnansi:texnansi-3-2:3 fr-ec:ec-4-2:3 de-texnansi:texnansi-5-2:3 de-e c:ec-6-2:3 it-texnansi:texnansi-7-2:3 it-ec:ec-8-2:3 pt-texnansi:texna nsi-9-2:3 pt-ec:ec-10-2:3 hr-ec:ec-11-2:3 pl-pl0:pl0-12-2:3 pl-ec:e c-13-2:3 pl-qx:qx-14-2:3 cz-il2:il2-15-2:3 cz-ec:ec-16-2:3 sk-il2:i l2-17-2:3 sk-ec:ec-18-2:3 sl-ec:ec-19-2:3 ru-t2a:t2a-21-2:3 en-ec:e c-22-2:3 uk-ec:ec-23-2:3 us-ec:ec-24-2:3 agr-agr:agr-25-2:3 da-ec:e c-26-2:3 sv-ec:ec-27-2:3 af-ec:ec-28-2:3 no-ec:ec-29-2:3 deo-ec:ec- 30-2:3 es-ec:ec-31-2:3 ca-ec:ec-32-2:3 la-ec:ec-33-2:3 ro-ec:ec-34 -2:3 tr-ec:ec-35-2:3 fi-ec:ec-37-2:3 hu-ec:ec-38-2:3 loaded specials: tex,postscript,rokicki loaded \openout3 = `ma-cb-cz-alignments.tui'. system : ma-cb-cz-alignments.top loaded (./ma-cb-cz-alignments.top specials: loading definition file tpd (c:/TeXLive2005/texmf-update/tex/context/base/spec-tpd.tex specials: loading definition file fdf (c:/TeXLive2005/texmf-update/tex/context/base/spec-fdf.tex (c:/TeXLive2005/texmf-update/tex/context/base/spec-fdf.mkii)) specials: fdf loaded ) specials: fdf,tpd loaded ) \openout0 = `ma-cb-cz-alignments-mpgraph.mp'. \openout0 = `mpgraph.mp'. systems : system commands are enabled (./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo) (c:/TeXLive2005/texmf-update/tex/context/base/sort-def.tex) (c:/TeXLive2005/texmf-update/tex/context/base/sort-lan.tex) (./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo) systems : begin file ma-cb-cz-alignments at line 3 systems : begin file ma-cb at line 4 systems : end file ma-cb at line 4 systems : begin file ma-cb-env-cz at line 7 (./ma-cb-env-cz.tex (../generic/ma-cb.tex systems : begin file ../generic/ma-cb-abbreviations at line 11 (./../generic/ma-cb-abbreviations.tex check : logo CONTEXT replaces a macro, use CAPITALS! check : logo PDFTEX replaces a macro, use CAPITALS! check : logo PICTEX replaces a macro, use CAPITALS! check : logo TABLE replaces a macro, use CAPITALS! check : logo TEX replaces a macro, use CAPITALS! check : logo METAPOST replaces a macro, use CAPITALS! check : logo METAFUN replaces a macro, use CAPITALS! ) systems : end file ../generic/ma-cb-abbreviations at line 11 systems : begin file ../generic/ma-cb-graphics at line 12 (./../generic/ma-cb-graphics.tex) systems : end file ../generic/ma-cb-graphics at line 12 systems : begin file ../generic/ma-cb-style at line 13 (./../generic/ma-cb-style.tex system : module res-trace loaded
[NTG-context] Bibtex and et al
Hi, I am using the bib module using the AMS format. I've noticed that all the publications that get appended et al to the authors, do not include any space between the authors name and et al. Example: John Doeetal, Publication Title Any ideas how to fix this? Thanks, Pepe ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Can ConTeXt make dynamic barcoded forms?
Thank you misters, Drawing static barcodes is very easy, but I really like the dynamic barcoded forms. I've downloaded some examples which is written in java, and it says that it uses XML. I've heard that ConTeXt can use XML but when I've finished reading the example.pdf (it is talking about XML in ConTeXt, right?), I totally have no idea about it. I love ConTeXt so much that I wish it can do everything. By the way, I have another question: how can we make reader-extension pdfs? I mean we can save, add anotations, etc., using Adobe Reader 7 or above. It is another cool function. On 10/11/06, Martin Schröder [EMAIL PROTECTED] wrote: 2006/10/10, Henning Hraban Ramm [EMAIL PROTECTED]: I can think of 3 possibilities for a static barcodes module: - draw the bars with MetaPost - use psTricks/pdfTricks - call GNU barcode externally - use barcode fonts (makes no sense...) That would be interesting for price tags, ISBN or the like. GNU barcode works reasonably well. You have to trim the produced ps a bit, but that's easy. Best Martin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Sincerely yours, Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problems mapping Xml into ConTeXt
Hi everyone, I am attempting to map some XML into ConTeXt as described in the manual XML in ConTeXt. Essentially we have a bunch of tagged text (the XML loosely based on some of the XHTML tags) from which we want to produce PDF letters for dispatch (via email, post etc). I am having particular problems implementing the following commands: - \underbar, \underbars, \overstrike, \overstrikes, \low, \high and \lohi I was expecting that they would all easily be defined using the \defineXMLgrouped [name] {command} element mapping. There is probably something very simple that I have not setup correctly since I am sure that this has been attempted before and would appreciate pointers as to where I am going wrong. The following attempts at mapping element u to \underbar illustrates my problem which also seems largely applicable to the strike, sub and sup mapping: - 1. This def of u does nothing ... \defineXMLgrouped [u] \underbar 2. This def of u also does nothing ... \defineXMLgrouped [u] {\groupedcommand{\underbar}{}} 3. This def of u underlines the 1st character only ... \defineXMLenvironment [u] {\bgroup\underbar} {\egroup} 4. In the mailing list, there is a suggestion that \underbar does not allow line-breaking, so I also tried the following. This def of u works partially, in that it does underline, however it causes havoc with alignment - everything seems to shift over to the right about 4cm ... \defineXMLenvironment [u] \startul \stopul \definetextbackground[ul] [location=text,alternative=1,background=""> \definestartstop[ul] [before={\starttextbackground[ul] }, after={\stoptextbackground\ }] Below is a sample .tex file that I have been playing with: - \usemodule[contml] \autoXMLnamespace [context] % Attempts at defining a mapping for u: - % This def of u does nothing ... %\defineXMLgrouped [u] \underbar % This def of u does nothing ... %\defineXMLgrouped [u] {\groupedcommand{\underbar}{}} % This def of u underlines the 1st character only ... %\defineXMLenvironment [u] {\bgroup\underbar} {\egroup} % % This def of u works partially, in that it does underline, however it % causes havoc with alignment - everything seems to shift over to the right % about 4cm ... \defineXMLenvironment [u] \startul \stopul \definetextbackground[ul] [location=text,alternative=1,background=""> \definestartstop[ul] [before={\starttextbackground[ul] }, % after={\stoptextbackground\fixedspaces}] after={\stoptextbackground\ }] % Other mappings \defineXMLgrouped [right] \rightaligned \defineXMLgrouped [centre] \midaligned \defineXMLgrouped [em] \em \defineXMLsingular [br] [nr=1] {\blank[\XMLop{nr}*medium]} \showstruts \showframe \starttext start of 'normal' \CONTEXT\ text \underbar{This} is {\em left} aligned \blank[medium] \rightaligned{\underbar{This} is {\em right} aligned} \blank[medium] \midaligned{\underbar{This} is {\em centre} aligned} end of 'normal' \CONTEXT\ text - starting xml ... \startXMLdata pThis is emleft/em aligned/p pcentreuThis/u is emcentre/em aligned/centre/p pcentreThis is emcentre/em aligned/centre/p prightThis is emright/em aligned/right/p \stopXMLdata \blank[medium] finished xml - back in 'normal' \CONTEXT\ text \stoptext NOTICE This e-mail and any attachments are intended for the addressee(s) only and may be confidential. They may contain legally privileged or copyright material. You should not read, copy, use or disclose them without authorisation. If you are not the intended recipient please contact the sender as soon as possible by return e-mail and then please delete both messages. This notice should not be removed. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Can ConTeXt make dynamic barcoded forms?
2006/10/11, Zhichu Chen [EMAIL PROTECTED]: By the way, I have another question: how can we make reader-extension pdfs? I mean we can save, add anotations, etc., using Adobe Reader 7 or above. It is another cool function. That is protected by DRM from Adobe; you need software from Adobe for this. Best Martin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context