Re: [NTG-context] new feature / manual
� wrote: On Sun, 18 Sep 2005, Hans Hagen wrote: concerning the code: interesting mix of scripting an texing-) but beware of redefining externalfigure; there is a hook \externalfigurepostprocessors since conversion normally happens once, the delayed postprocessing is not a real problem; the advantage is that you then have access to all those \applied... variables Thank you! I tried to use these macros, but I cannot get \appliedfigureoptions expanded to get the height or width of the figure. The new t-degrade.tex is on the same place. Could you take a look at it please? can you send me the file? (extremely crowded mail box so looking backward ...) 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
[NTG-context] Number of rows in tables
Hi everyone, In the process of learning the table mechanism I followed the discussions on the list, but could not figure out whether it is possible to create a table with a given number of rows. For instance, is it possible to add something to Mojca's solution for cells with backgrounds (see below) to have a table with (for example) 15 rows? Something like \setupTable[number_of_rows=15,number_of_columns=4] Thanks for your insight: OK Mojca's solution \setupcolors[state=start] \starttext % row 1 \setupTABLE[r][1] [style=bold,background=color,backgroundcolor=green,align=middle] \setupTABLE[c][1][width=3cm] % column 1 \setupTABLE[c][3][width=2.75cm] % column 3 \setupTABLE[c][4][width=7cm] \bTABLE \bTR \bTD Name \eTD \bTD Location \eTD \bTD Date \eTD \bTD Signature \eTD \eTR \bTR \bTD\strut \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \eTABLE \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Disappearing characters
Hello all. I have a file test-fonts.tex which just combines Palatino and Helvetica into one typescript: \loadmapfile[context-base] \usetypescriptfile[type-buy] \starttypescript [TESTfonts] \definetypeface [TESTCombo] [rm] [serif] [palatino] [default] [encoding=texnansi] \definetypeface [TESTCombo] [ss] [sans] [helvetica] [default] [encoding=texnansi] \stoptypescript And I have a simple test file which tries that typescript out: \usetypescriptfile[test-fonts.tex] \usetypescript[TESTfonts][texnansi] \setupbodyfont[TESTCombo,14pt] \starttext Palatino? Normal \Delta, Maths \mathematics\Delta, Greek \greekDelta\par Palatino? Normal \delta, Maths \mathematics\delta, Greek \greekdelta\par {\ss Helvetica? Normal \Delta, Maths \mathematics\Delta, Greek \greekDelta\par Helvetica? Normal \delta, Maths \mathematics\delta, Greek \greekdelta\par} \stoptext With the line '\setupbodyfont[TESTCombo,14pt]' everything works well, but when I change it to '\setupbodyfont[TESTCombo,10pt]' the Delta signs disappear! (The lowercase deltas remain - weird?) I am really confused (and it took ages to understand what was happening, since the disappearing Greek originally occurred in a 700 page book...). When comparing the log files for each version, the broken one (10pt) has the line: Warning: pdfetex.exe (file c:\tex\texmf/fonts/type1/urw/palatino/uplr8a.pfb): glyph `uni20AC' undefined whereas the working one (14pt) doesn't, and instead has: {c:\tex\texmf-local/fonts/enc/dvips/lm/cmrm.enc}c:\tex\texmf/fonts/type1/public/lm/lmr10.pfb So, it seems to be something to do with a missing switch to the font which contains the \Delta character, but why should it only happen at smaller font sizes? Experimentation suggests that 12pt and below has this problem, and over 12pt the problem disappears. Thanks to anyone who can explain and help me to fix it. Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Disappearing characters
I said: \starttypescript [TESTfonts] \definetypeface [TESTCombo] [rm] [serif] [palatino] [default] [encoding=texnansi] \definetypeface [TESTCombo] [ss] [sans] [helvetica] [default] [encoding=texnansi] \stoptypescript I realise that by adding \definetypeface [TESTCombo] [tt] [mono] [modern] [computer-modern] [encoding=\typescripttwo] \definetypeface [TESTCombo] [mm] [math] [modern] [computer-modern] [encoding=\typescripttwo] to that typescript, I can stop the Deltas disappearing; however, it would be really helpful if someone can tell me why I only need to do that for font sizes below 12pt?! Thanks, Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \appliedfigure... (was: new feature / manual)
On Wed, 21 Sep 2005, Hans Hagen wrote: since conversion normally happens once, the delayed postprocessing is not a real problem; the advantage is that you then have access to all those \applied... variables Thank you! I tried to use these macros, but I cannot get \appliedfigureoptions expanded to get the height or width of the figure. The new t-degrade.tex is on the same place. Could you take a look at it please? can you send me the file? (extremely crowded mail box so looking backward ...) In fact, the question is just: how to use \appliedfigureoptions and \appliedfigurefilename? In the following test-file, \appliedfigureoptions shows nothing and \appliedfigurefilename gives an error: \starttext \externalfigure[/opt/teTeX/texmf-local/tex/context/sample/spider][width=1cm] \appliedfigureoptions %\appliedfigurefilename %% ERROR: Undefined control sequence. %% \appliedfigurefilename -\@@effilename \stoptext Nevertheless I send here attached the new t-degrade.tex, in order to let you see how I want to use these two macros. Another question: when there are two files ./fig.eps and ./degrade/fig.eps how can I tell ConTeXt to prefer loading the second figure when using \externalfigure[fig][options] ? It seems, that \setupexternalfigures[directory={degrade,.}] does not help... Greetings, Peter -- http://pmrb.free.fr/contact/ t-degrade.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] t-rsteps and starttyping
David Munger wrote: \long\def\StartLong#1\StopLong{#1} \starttext \StartLong \starttyping hallo \stoptyping \StopLong \stoptext This will produce no error, but no output as well. Maybe we could use some alternate mechanism to define the \StartLong...\StopLong pair. \def\StartLong{} \def\StopLong{} Or, if you insist on having the argument, \long\def\StartLong#1\StopLong{\scantokens{#1}} should work. Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Number of rows in tables
Hi everyone, Actually the solution to my own question is quite simple... :-) The appropriate use of \dorecurse does the thing: \setupcolors[state=start] \starttext % row 1 \setupTABLE[r][1][% style=bold,background=color,backgroundcolor=green,align=middle] \setupTABLE[c][1][width=3cm] % column 1 \setupTABLE[c][3][width=2.75cm] % column 3 \setupTABLE[c][4][width=7cm] \bTABLE \bTR \bTD Name \eTD \bTD Location \eTD \bTD Date \eTD \bTD Signature \eTD \eTR \dorecurse{25}{ %we repeat here 25 times creating a row \bTR \bTD\strut \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR} \eTABLE \stoptext On 9/21/05, Otared Kavian [EMAIL PROTECTED] wrote: Hi everyone, In the process of learning the table mechanism I followed the discussions on the list, but could not figure out whether it is possible to create a table with a given number of rows. For instance, is it possible to add something to Mojca's solution for cells with backgrounds (see below) to have a table with (for example) 15 rows? Something like \setupTable[number_of_rows=15,number_of_columns=4] Thanks for your insight: OK Mojca's solution \setupcolors[state=start] \starttext % row 1 \setupTABLE[r][1] [style=bold,background=color,backgroundcolor=green,align=middle] \setupTABLE[c][1][width=3cm] % column 1 \setupTABLE[c][3][width=2.75cm] % column 3 \setupTABLE[c][4][width=7cm] \bTABLE \bTR \bTD Name \eTD \bTD Location \eTD \bTD Date \eTD \bTD Signature \eTD \eTR \bTR \bTD\strut \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \eTABLE \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] t-rsteps and starttyping
Le Mercredi 21 septembre 2005 à 14:38 +0200, Christopher Creutzig a écrit : David Munger wrote: \long\def\StartLong#1\StopLong{#1} \starttext \StartLong \starttyping hallo \stoptyping \StopLong \stoptext This will produce no error, but no output as well. Maybe we could use some alternate mechanism to define the \StartLong...\StopLong pair. \def\StartLong{} \def\StopLong{} Or, if you insist on having the argument, I do need the argument. Its use is repeated in the real macro. \long\def\StartLong#1\StopLong{\scantokens{#1}} This produces no output as well. texexec says: No pages of output. Thanks anyway. David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \appliedfigure...
� wrote: Another question: when there are two files ./fig.eps and ./degrade/fig.eps how can I tell ConTeXt to prefer loading the second figure when using \externalfigure[fig][options] ? you may try prefix=degrade/ this is what the rlx files use It seems, that \setupexternalfigures[directory={degrade,.}] does not help... \expanded{\getparameters[Deg][height=,\appliedfigureoptions]} else the scanner sees no key=value 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] t-rsteps and starttyping
Hi, \starttyping needs to be followed by a newline, but macro arguments cannot contain newlines unless \obeylines is in effect. So: \def\StartLong{\begingroup\obeylines\doStartLong} \long\def\doStartLong#1\StopLong{\scantokens{#1}\endgroup} Cheers, Taco David Munger wrote: I do need the argument. Its use is repeated in the real macro. \long\def\StartLong#1\StopLong{\scantokens{#1}} This produces no output as well. texexec says: No pages of output. Thanks anyway. David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ConTeXt to RTF Conversion
What are the options for conversion from ConTeXt to other formats, if any? I'm particularly interested in rtf and/or html. Lou ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt to RTF Conversion
andrea valle wrote: I've asked too, but it seems that that there are none to rtf. This lack of conversion is a problem for me. Would it be possible for you to use any of the software that converts PDF to RTF? Write in Context. When you need RTF you convert the PDF to RTF instead of the TEX. -Erich Fickel -- newbie to context and tex, reading TeXbook and Context manual -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.25/102 - Release Date: 9/14/2005 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] ConTeXt to RTF Conversion
Hi, = Original Message From Pr. Erich Fickel [EMAIL PROTECTED] = andrea valle wrote: I've asked too, but it seems that that there are none to rtf. This lack of conversion is a problem for me. Would it be possible for you to use any of the software that converts PDF to RTF? Write in Context. When you need RTF you convert the PDF to RTF instead of the TEX. Only works for the most trivial of documents, and if you have lots of accents and diacritics u r up the creek-) Best Idris Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Number of rows in tables
Hi Otared, I just started reading your previous mail and started to type you your own solution. So that is in your case the best way to do it! Willi Otared KAVIAN wrote: Hi everyone, Actually the solution to my own question is quite simple... :-) The appropriate use of \dorecurse does the thing: \setupcolors[state=start] \starttext % row 1 \setupTABLE[r][1][% style=bold,background=color,backgroundcolor=green,align=middle] \setupTABLE[c][1][width=3cm] % column 1 \setupTABLE[c][3][width=2.75cm] % column 3 \setupTABLE[c][4][width=7cm] \bTABLE \bTR \bTD Name \eTD \bTD Location \eTD \bTD Date \eTD \bTD Signature \eTD \eTR \dorecurse{25}{ %we repeat here 25 times creating a row \bTR \bTD\strut \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR} \eTABLE \stoptext On 9/21/05, Otared Kavian [EMAIL PROTECTED] wrote: Hi everyone, In the process of learning the table mechanism I followed the discussions on the list, but could not figure out whether it is possible to create a table with a given number of rows. For instance, is it possible to add something to Mojca's solution for cells with backgrounds (see below) to have a table with (for example) 15 rows? Something like \setupTable[number_of_rows=15,number_of_columns=4] Thanks for your insight: OK Mojca's solution \setupcolors[state=start] \starttext % row 1 \setupTABLE[r][1] [style=bold,background=color,backgroundcolor=green,align=middle] \setupTABLE[c][1][width=3cm] % column 1 \setupTABLE[c][3][width=2.75cm] % column 3 \setupTABLE[c][4][width=7cm] \bTABLE \bTR \bTD Name \eTD \bTD Location \eTD \bTD Date \eTD \bTD Signature \eTD \eTR \bTR \bTD\strut \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \eTABLE \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \appliedfigure...
On Wed, 21 Sep 2005, Hans Hagen wrote: \expanded{\getparameters[Deg][height=,\appliedfigureoptions]} else the scanner sees no key=value I've already tried this, but \appliedfigureoptions seems to be as empty as \relax... Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt to RTF Conversion
Louis F.Springer wrote: What are the options for conversion from ConTeXt to other formats, if any? I'm particularly interested in rtf and/or html. The main problem is: PDF is extremely complex format (and Hans tries to explore almost every single capability of it) and you can't grant a good conversion for obscure documents. You can't get html out of the box, but there are some options depending on what your documents look like, what effort are you ready to invest and what quality of HTML/RTF you expect. (I can't imagine a tool which would satisfactory convert the ConTeXt manuals into HTML without manual intervention.) 1. The best quality can be achieved if you prepare all your stuff in XML and then write both a stylesheet for conversion into HTML and a couple of ConTeXt definitions to handle formating for output in PDF documents. I never did that (I consider it too complex and time consuming), but if you're ready to go that way and sacrifice some time, there are some people on the list who can help you. 2. exTeX is going to natively support HTML output. The question is when a stable version is going to appear and if ConTeXt will ever support it / if they will support ConTeXt. (not a satisfactory answer yet) 3. latex2html, latex2word, tth - like No, no such tool yet and I doubt that anyone is going to write it soon. 4. PDF - HTML / PDF - RTF conversion Currently the best possibility if you have simple documents, you don't want to spend too much time on it and you don't mind too much about high quality of the produced HTML/RTF. I often use pdftotext and then manually reformat everything (not for my own documents however), but I was impressed by the quality of what ABBYY PDF Transformer was able to do with sample documents that I saw (it converts a table in PDF into a table in Word, preserves images and page layout, ...). About the accents that Idris mentioned: As long as the accented characters aren't faked, there is a way to get them out of PDF. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt to RTF Conversion
Mojca Miklavec said this at Wed, 21 Sep 2005 22:09:32 +0200: 1. The best quality can be achieved if you prepare all your stuff in XML and then write both a stylesheet for conversion into HTML and a couple of ConTeXt definitions to handle formating for output in PDF documents. I never did that (I consider it too complex and time consuming), but if you're ready to go that way and sacrifice some time, there are some people on the list who can help you. very much agreed here. I'd personally advocate an intermediate XML format (that matches your document needs), and transforming to Word- friendly HTML or to a ConTeXt-friendly format. For a taste of some XML workflows, see: http://pragma-ade.com/general/manuals/example.pdf http://pragma-ade.com/general/magazines/mag-0008.pdf and talk with the list! -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt to RTF Conversion
Thanks, I' ve never thought about that. Does anyone know about a free pdf2rtf converter for macosx? Best -a- On 21 Sep 2005, at 17:58, Pr. Erich Fickel wrote: andrea valle wrote: I've asked too, but it seems that that there are none to rtf. This lack of conversion is a problem for me. Would it be possible for you to use any of the software that converts PDF to RTF? Write in Context. When you need RTF you convert the PDF to RTF instead of the TEX. -Erich Fickel -- newbie to context and tex, reading TeXbook and Context manual -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.25/102 - Release Date: 9/14/2005 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Andrea Valle Laboratorio multimediale G. Quazza Facoltà di Scienze della Formazione Università degli Studi di Torino [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] t-rsteps and starttyping
Thanks Taco, This solution works in that particular case. Unfortunately, the \StartLong macro is not meant only for producing line-wise content. In the general case, it contains something else than just \starttyping block. David Le Mercredi 21 septembre 2005 à 16:13 +0200, Taco Hoekwater a écrit : Hi, \starttyping needs to be followed by a newline, but macro arguments cannot contain newlines unless \obeylines is in effect. So: \def\StartLong{\begingroup\obeylines\doStartLong} \long\def\doStartLong#1\StopLong{\scantokens{#1}\endgroup} Cheers, Taco David Munger wrote: I do need the argument. Its use is repeated in the real macro. \long\def\StartLong#1\StopLong{\scantokens{#1}} This produces no output as well. texexec says: No pages of output. Thanks anyway. David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context