Re: [NTG-context] Mini-survey: What do you do with ConTeXt?
What do I do with ConTeXT? 1. price-lists from xml (DB exports) ; 2. labels for shoes and dresses, from xml/csv ; 3. data sheetes (barcodes, code number and so on ), from xml/csv ; luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] spreadsheet
Hans Hagen Test wrote: Jilani Khaldi wrote: wait till pdfluatex is out -) Does it have to do with the Lua language, or "lua" in middle has an other meaning? the language http://www.pragma-ade.com/general/manuals/luatex.pdf Hans I cannot resist http://www.guit.sssup.it/GuITmeeting/2005/fotografie_1.php near "Sembra una bomba!" luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: function plotting
Peter Münster wrote: On Tue, 4 Oct 2005, Alexander Lazic wrote: \usemodule[pstric] \starttext \startPSTRICKS \psplot[plotpoints=100]{0}{1}{x 360 mul sin} \stopPSTRICKS \stoptext Thanx i have try an get: figures : figure pstest-texapp can not be found but there is the file: pstest-texapp.tex Hello Alexander, I don't understand your problem, but perhaps you should write the psplot command inside a \pspicture(0,-1)(1,1) ... \endpspicture. Cheers, Peter This works for me (I suppose your code is in pstest-texapp.tex): $> texexec --output=dvips pstest-texapp.tex $> dvips -o pstest-texapp.ps pstest-texapp.dvi $> ps2pdf14 pstest-texapp.ps luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bug in \seeindex
Thomas A. Schmitz wrote: And I don't have a solution, but another bug in registers: if you modify my example like so: \starttext This \index{This} and \index{And} that \index{That}. \placeindex \stoptext you'll see one interesting detail in the pdf: This and That are in the index under "h," And under "n" ==> capital letters are not taken into account in index generation, which is a trifle inconvenient. hmm, not for me. This and That are under 't', And under 'a' # texexec --version TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeXk, 3.141592-1.30.3-2.2 (Web2C 7.5.5) context : ver: 2005.08.31 cont-en : ver: 2005.08.31 fmt: 2005.9.8 mes: english cont-nl : ver: 2005.08.31 fmt: 2005.9.8 mes: english luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ruby, Lua, Megapost, tcl, ...
Hans Hagen wrote: btw, it's not a dependency: lua will be 'always pesent in the binary' and since we nowadays only have one binary ... also, my guess is that adding it to aleph is easy ok, secret link: http://www.pragma-ade.com/general/manuals/luatex.pdf FANTASTIC!! It's what I want. I always think about embedding python; but now this can be a private project . luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] lilypond inclusion + pdf crop (getting off-topic)
Henning Hraban Ramm wrote: wait till you see what a lua enhancec context can do (playing with it now) -) Oh no, not another language! TeX and MetaPost and PostScript, Perl and Ruby for ConTeXt, Guile for LilyPond, Perl, Python, PHP, Slang, VB and Shell for work, and now Lua - who will learn that lot? I understand this very well ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] [OT] lilypond inclusion + pdf crop
andrea valle wrote: My program is written in Python. wow, so i'm not the only one.. I don't want, too. I'd like to have python :) Did you see http://pyx.sourceforge.net/ and http://oedipus.sourceforge.net/py2tex/ luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Linux and Context on 64 bit
Taco Hoekwater wrote: Those executabless are now part of the minimal distribution: http://context.aanhet.net/context/install/linux64tex.zip $>uname -a Linux stanley.log.net 2.6.11-6mdksmp #1 SMP Tue Mar 22 15:40:42 CET 2005 i686 Intel(R) Xeon(TM) CPU 3.00GHz unknown GNU/Linux $> ldd dvips dvips: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped $> chmod 700 dvips ; ./dvips bash: ./dvips: cannot execute binary file It seem that I need to compile from sources... luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setupbodyfont[10dd]
Hans Hagen wrote: yeah, a nice job for the coming winter, in my just finished library anex study annex attic annex music room -) More I see style.pdf, more I like it (...about colors:with xpdf it's not easy to read) I'm sure that we need it : it will fill a hole. For programmer ,we have pdfs for pdftex (manuals and pdftex-web, ); for user/macro writer, we have pdfs for context (modules, cont-eni,ms-cb,metafun); for good design we will have style.pdf . luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setupbodyfont[10dd]
Hans Hagen wrote: Mojca Miklavec wrote: Don't ask me why, but apparently these minimalistic differences are pretty important in publishing. You're joking, aren't you? Publishing as dictated by the dtp world is only concerned about a few things: As soon as possible, you should complete style.pdf ( Typographic Programming ) luigi (by the way, I use dd because I have a nice dtp-typometer with Punkte and Cicero and 0.5mm) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] No parindent?
Giuseppe Bilotta wrote: (And keep your hopes up, I'm steadly heading towards the end of my PhD :)) shine on, you crazy diamond !!! luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Linux and Context on 64 bit
I build/install and run teTeX 3.0 on RHEL 3 IA64 & SUSE 9.0 AMD64 without any problem. And of course ConTeXt (standard with teTeX or updated for latest release) works very well too. FYI Thanks to all. With a bit of lucky, I will able to setup my new baby this week. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Linux and Context on 64 bit
Taco Hoekwater wrote: Those executabless are now part of the minimal distribution: http://context.aanhet.net/context/install/linux64tex.zip downloaded (many thanks taco!!) The last thing: what linux distro (SUSE, Mandriva , RH, Fedora..) ? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Linux and Context on 64 bit
Hi, I need some help in installing linux and context on a DellPowerEdge 1850 with IntelXEON (64 bit) I see something on mailing list about linux64inst.tar.bz2 (a broken link http://tex.aanhet.net/temp/linux64inst.tar.bz2 (7247788bytes) ) but it's unclear to me how to go on (well, it's friday) Thanks in advance luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Adobe reader 7.0.1 for linux
While downloading reader 7.0.1 for linux, I read this from adobe site: By downloading software from the Adobe web site, you agree to the terms of our license agreements, including that you agree not to use Adobe Reader software with any other software, plug-in or enhancement which uses or relies on Adobe Reader when converting or transforming PDF files into other file formats Does makempy.pl need acroread to work ? luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Undefined control sequence \starttypescriptcollection
Pearson, Mark (Capita Symonds) wrote: - START OUTPUT - $ texexec --version what about $>texexec --verbose luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Filling forms
Taco Hoekwater wrote: Hi Luigi, It is hard to benchmark stuff without the actual dataset, but I have some hints that may help you. (I hope my prose is not too confusing). It's very clear. I hope this helps, It's sure. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] strange behaviour of \mirror inside itemize
Mojca Miklavec wrote: Try this code out with: \startitemize \item \XETEX \item \PDFETEX \stopitemize it seems a bug.. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] strange behaviour of colors
Mojca Miklavec wrote: Hello, In the following example, the title color changes on the second page. How can I avoid that? I can probably switch the cmyk/rgb colors off, but I would like to keep them as rgb/cmyk if possible. \setupcolors[state=start] \setuphead[title][page=yes,color=blue] \starttext \title{first page} some text \title{second page} The title color has changed. \definecolor [transparentred] [r=1,t=.5,a=1] \blackrule[width=2cm,height=2cm,color=transparentred] \stoptext Thank you, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context And moving \definecolor [transparentred] [r=1,t=.5,a=1] before \starttext ? Under linux with acro7 I can't see differences. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Filling forms
Hi, I'm working on a project that require filling forms. Every field has (x,y,width,height) dimension and ui=(barcode,texEdit) type (textEdit has some attributes too) I wrote this %-- \unprotect \definelayer[BackLayer]% \setupbackgrounds[page][background={BackLayer}] \setuplayout[topspace=0pt,backspace=0pt,margin=0pt,leftmargin=0pt,location=middle, rightmargin=0pt,header=0pt,footer=0pt,top=0pt,bottom=0pt, leftedge=0pt,rightedge=0pt,headerdistance=0pt,footerdistance=0pt, topdistance=0pt,leftmargindistance=0pt,rightmargindistance=0pt, leftedgedistance=0pt,rightedgedistance=0pt,width=fit,height=fit] \def\BarcodeThreeOfNine#1{#1} %% todo \def\Field[#1]{% \bgroup \getparameters[!!][#1]%% collect key/val % % textEdit \doifsamestring{\!!ui}{textEdit}{% text field \setlayer[BackLayer][x=\!!x,y=\!!y ,location=br]{% [EMAIL PROTECTED] collect textEdit attributes [EMAIL PROTECTED] collect para attributes \ruledvbox to \!!h{\hsize=\!!w % \vss [EMAIL PROTECTED] single line [EMAIL PROTECTED] \hbox to \!!w {\getvalue\s!dummy \vphantom{K}\getvalue\!!name \hss}% }% [EMAIL PROTECTED] \hbox to \!!w {\getvalue\s!dummy \vphantom{K} \getvalue\!!name \hss}% }% [EMAIL PROTECTED] \hbox to \!!w {\hss \getvalue\s!dummy \vphantom{K} \getvalue\!!name}% }% [EMAIL PROTECTED] \hbox to \!!w {\hss \getvalue\s!dummy \getvalue\!!name \hss}% }% }{% multiline \getvalue\s!dummy \getvalue\!!name% } % \vss }}}% barcode \doifsamestring{\!!ui}{barcode}{% barcode (todo..) \setlayer[BackLayer][x=\!!x,y=\!!y ,location=br]{% \doifsamestring{\!!type}{39}{% type of barcode \ruledvbox to \!!h{\hsize=\!!w \vss \centerline{\expanded{\BarcodeThreeOfNine{\getvalue{\!!name \vss} }% }} \egroup } \protect %% %% Macros for filling forms %% \def\FillForm{% %% %% I have really 200 Fields %% \Field[% name={codicearticolo_len6},% ui={textEdit},% textEdit={multiLine={0},},% %x={0.520in},% x={0.520in},% y={0.217in},% w={3.096in},% h={0.882in},% para={vAlign={middle},hAlign={}},%% ] \Field[% ui={barcode},% type={39},% name={barcode_codice___matricola},% x={0.434in},% y={1.259in},% w={4.210in},% h={0.651in},% para={vAlign={middle},hAlign={}},%% ] } \starttext \bgroup %% I have really 200 \setvalue \setvalue{codicearticolo_len6}{957803} \setvalue{barcode_codice___matricola}{*9F9578030052201312*} \hskip1sp%% force flush layer ?? \FillForm\page \egroup %% and so on for 1000 /1500 pages... \stoptext % Problems 1) I have 200 fields for a single page; 2) I have 1000/1500 pages My code it's very slow: does anybody has another approach ? Thanks in advance luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] update modules.pdf to latest release
Update modules.pdf to 2005.08.31 distro, with pdftex 1.30.2 luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How this LaTeX code could be translated into ConTeXt?
Jilani Khaldi wrote: Hi All, Migrating to Context, for italian users there is also http://www.guit.sssup.it/forum/ I need to translate this code from Latex \begin{table} \begin{tabularx}{16cm}{|c|X|X|} \hline blabla & blabla & blabla\\ \hline ... \hline \end{tabularx} \end{table} Any hint? Do you see http://wiki.contextgarden.net/Tables_Overview luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] modules.pdf: release 2005.08.31 for tomorrow
I was busy, so i planned to make this new release for tomorrow. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cs translation in attachments (core-int)
Vit Zyka wrote: Hi, in core-int.tex (section deals with attachements) we need next control sequence translations: status -> state kleur -> color symbool -> symbol tekstlaag -> textlayer I also have some modifications to do in some files to compile modules.pdf . I post them at collector at http://context.literatesolutions.com/ I don't know if it's the right place. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] [Fwd: ConTEXt Newbie: Column/table background color - which table model/command?]
Taco Hoekwater wrote: Hi all, Forwarding this from c.t.t. It looks like perhaps the OP's code is correct and something in ConTeXt is wrong (at least I cannot find anything wrong with the example code, even with \setupcolors[state=start], I get no background color). Perhaps somebody who has actually used table backgrounds can help? I hope this can help; see chapter "Color and background" in cont-eni.pdf %-- \setupcolors[state=start] %% useful: default=stop \setupbackground[state=start] %% useless: default=start \starttext \placetable {Just a table.} %% from cont-eni.pdf :``The command \background expects %% an argument. Because a table is `grouped' it will generate %% by itself and no extra braces are necessary.`` \background \starttable[|c|c|c|] \HL \VL red\VL green\VL blue\VL \AR \VL cyan \VL magenta \VL yellow \VL \AR \HL \stoptable \stoptext %--- luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Unable to make cont-en.fmt
Taco Hoekwater wrote: Luigi, It attempts to read the file "*cont-en.ini", with the star included in the name. From personal experience, I know that this will happen when pdfetex is not really pdfetex, but a non-etex pdftex ... (because of a symlinked executable, i'll wager) symlink it's the magic word... Yes, the error happened when I copied latest pdfetex and pdftex: pdftex is symbolic link to pdfetex. I was so stupid to remade copy until i didn't read your answer... Now all it's ok. Many thanks Taco luigi PS: What do you think about to write a dense guide to programmer on how to add a pdftex primitive (something like \pdfhelloworld) and how to interface to an external libray (like zlib) ? I think that this will fill a hole in documentations. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Unable to make cont-en.fmt
Hi, while installing latest pdftex 1.30.1 I have messed with some configs files and now I am unable to remade format. So $> fmtutil --byfmt cont-en gives running `pdfetex -ini -jobname=cont-en -progname=context -8bit *cont-en.ini' ... This is pdfTeXk, Version 3.141592-1.30.1 (Web2C 7.5.5) (INITEX) %&-line parsing enabled. ! I can't find file `*cont-en.ini'. <*> *cont-en.ini Please type another input file name: ! Emergency stop. <*> *cont-en.ini No pages of output. Transcript written on cont-en.log. Error: `pdfetex -ini -jobname=cont-en -progname=context -8bit *cont-en.ini' failed ### fmtutil: Error! Not all formats have been built successfully. Visit the log files in directory /usr3/TeX/texmf-var/web2c for details. ### This is a summary of all `failed' messages and warnings: `pdfetex -ini -jobname=cont-en -progname=context -8bit *cont-en.ini' failed In file fmtutil.cnf there is the correct line : cont-en pdfetex cont-usr.tex-8bit *cont-en.ini (instead cont-en pdfetex cont-usr.tex-8bit cont-en.ini works ) I have cont-en.ini in $>kpsewhere cont-en.ini /usr3/TeX/texmf-dist/tex/context/config/cont-en.ini Any ideas ? thanks luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] modules.pdf
Fix partial contents; see http://contextgarden.net/User:Luigi.scarso/modules.pdf luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] modules.pdf
Update to latest distro;see http://contextgarden.net/User:Luigi.scarso/modules.pdf luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] pdfetex manuals
luigi.scarso wrote: I have compiled pdfetex 1.30 manuals ; they are at http://www.logosrl.it http://www.logosrl.it/context Sorry *)pdftex-a.pdf: A4 *)pdftex-l.pdf: letter *)pdftex-s.pdf: screen To compile, I have to patch pdftex-t.tex adding \loadmapfile [context-base] after \usetypescript [adobekb] [\defaultencoding] *)samplepdf.zip: samplepdf dir with samplepdf.tex compiled Typing error: SoundfFile.wav ==>SoundFile.wav *)pdfetex-web.pdf: "eTex -The Program" with pdf extension $> weave pdfetex.web replace first line \input webmac with \input pdfwebmac $> pdfetex pdfetex.tex luigi ___ 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] pdfetex manuals
I have compiled pdfetex 1.30 manuals ; they are at http://www.logosrl.it *)pdftex-a.pdf: A4 *)pdftex-l.pdf: letter *)pdftex-s.pdf: screen To compile, I have to patch pdftex-t.tex adding \loadmapfile [context-base] after \usetypescript [adobekb] [\defaultencoding] *)samplepdf.zip: samplepdf dir with samplepdf.tex compiled Typing error: SoundfFile.wav ==>SoundFile.wav *)pdfetex-web.pdf: "eTex -The Program" with pdf extension $> weave pdfetex.web replace first line \input webmac with \input pdfwebmac $> pdfetex pdfetex.tex luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] font missing for palatino
Fixed: \usetypescript [berry] [ec] \setupencoding[ec] \loadmapfile [context-base] %%add this \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,12pt] \starttext test \stoptext (cfr. http://contextgarden.net/Psnfss) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] font missing for palatino
Hi, with following code %--- \usetypescript[berry][ec] \setupencoding[ec] \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino] \starttext test \stoptext %-- I've a missingfonts.log: mktexpk --mfmode / --bdpi 72 --mag 1+14/72 --dpi 86 uplr8r Any ideas ? luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] modules.pdf
Mojca Miklavec wrote: I would suggest to keep the old files and name them like 2005-08-16-modules.pdf done (and perhaps to keep all the files (except ConTeXt itself of course) since they have to be updated from time to time as new files are added to the distribution). That way the old content will not misteriously disappear. patches.zip contains patches for files with some typo-errors (eg. $x4 instead of $x$) they are (almost) irrelevant at format-generation time, because they are not processed at all . Also, some macros are in dutch (eg, \blank[2*groot]); I excluded some others macros (\startpostponing ), correct some others ( \getvalue{period graybox} with \dotgray) added \loadmap[gbk] and so on. Partial contents are ugly (or broken ?) ; there are many important modules to document (see Core Commands in modules.pdf; inside modules.tex, 3=>ok, 1=>to be documented, 0=> to be exctract) There are some overfull lines; maybe there is a better sectioning (or multiple pdfs ?). So, I think that this is a good starting point I think that all patches should be approvated before to go into an official distro; after that we can discuss all other stuffs. It would be a nice idea to put that files on the garden anyway no problem to me luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] modules.pdf
I'm now synchronized with latest distro (2005.08.05) and pdfetex 1.3 Under http://www.logosrl.it/context/ there are *)modules.pdf (~21MByte) *) modules.zip, used to make modules.pdf *)patches.zip, a zip file with following patches: core-rul.patch font-chi.patch spec-fdf.patch supp-lan.patch supp-pdf.patch *) modules.log I found some problem with mill.png: I put it under base/ and it was correctly included. Also, partial indeces are not ok. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Latest distro
Is 2005-08-15 latest distro ? luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \type ,\meaning eror check
Taco Hoekwater wrote: Sorry, the correct solution is: \expandafter\expandafter\expandafter\type \expandafter\expandafter\expandafter {\expandafter\scantokens\expandafter{\Temp}}% sounds good, thanks (I was missing some \expandafter ...) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \type ,\meaning eror check
Taco Hoekwater wrote: AFAIK, there is only one way to do this: write a new tex file on- the-fly and run a separate texexec on that file (using \write18), then parse the resulting log file for the occurence of any errors. Not simple at all, I'm afraid. hmm, i've hundred of \startArticle.. 2. \type does not combine well with \meaning: ò (ie {\`o} ) is not show. \expanded\type{\expandafter\scantokens\expandafter{\Temp}}% good , but type also first \expandafter after \type thanks luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \type ,\meaning eror check
I have this problem: %% test.tex %-save this with utf-8 encoding-- \language[it] \enableregime[utf] \newif\ifArticleError %% \def\startArticle[#1]{% \getparameters[ARTICLE][#1] \setbox101=\vbox{% \csname ARTICLEdescription\endcsname% } %% here some sorts of checking %% if there are some errors %% while expanding %% \csname ARTICLEdescription\endcsname ; %% check will change state of \ifArticleError %% \ifArticleError %% errors: %% typescript macros \ARTICLEdescription \type{description:}% \edef\T{\expandafter% \meaning\csname ARTICLEdescription\endcsname}% \aftersplitstring \T \at>\to\Temp% \expandafter\type\expandafter{\Temp}% \else %% else ok \type{OK}% \fi } %% \starttext {{\bf Hòàà}\framed{wrong framed macros}} \startArticle[description={{\bf Hoòaà}\framed{ok framed macro}}] \startArticle[description={{\bf Hoòaà}\Framed{WRONG framed macro}}] \stoptext % where oò := {o\`o} aà := {a\`a} compile it with $>texexec --pdf --batch test.tex Problems 1. i dont't know how to make checking 2. \type does not combine well with \meaning: ò (ie {\`o} ) is not show. thanks in advance luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \page[+2]
Elena Fraboschi wrote: Dear All: This is like going to school: every evening I study a very narrow topic in ConTeXt, the idea being "Si va piano, si va lontano" ("go slow and you'll get far"). Well, i know "Chi va piano, va sano e lontano, chi va forte va alla morte", something as "One who goes slowly goes safely and far; one who goes quickly will die" But also, today "Chi va piano, va sano e lontano, ma arriva dopo!" One who goes slowly goes safely and far, but he come after! It's an italian proverb:there are two syllable rimes in 'NO' and 'TE', i.e. Chi va piaNO va saNO e lontaNO ,<> chi va forTE va alla morTE. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Feature request
Hans Hagen wrote: Mojca Miklavec wrote: for that, but it doesn't take the baseline into consideration, so it has to be manually tuned for every line, every font & every font size (printed and compared if it looks OK). \definelayer[text][height=\textheight,width=\textwidth] \showgrid \starttext \startstandardmakeup \setlayer[text][location=grid,line=10]{test} \setlayer[text][location=grid,line=10,x=10cm]{test} \flushlayer[text] \stopstandardmakeup %% add this line \stoptext % :-) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] PDF output versions?
Brooks Moses wrote: I just noticed that when I compile ConTeXt files with texexec -pdf, my copy of Acrobat 5 complains about "the PDF version of this file is too new for this viewer", but when I compile LaTeX files with pdflatex, I don't get that complaint. Is there some way to set ConTeXt and texexec to create PDF files of the earlier version? (I'll upgrade Acrobat eventually, but I have the full version and use the editing features a fair bit, and I gather that having the full version of Acrobat 5 and the free version of Acrobat 7 on the same machine causes lots of headaches.) - Brooks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Try \pdfoptionpdfminorversion=4 But also have look at http://sarovar.org/project/shownotes.php?group_id=106&release_id=475 (extract from notes) === Main changes of pdfTeX 1.30.0-rc5 === - pdfxtex (introduced with 1.20a) is gone; all extensions are now in pdf(e)tex. - Some primitives have been renamed; the old names will still work, but are deprecated and some give a warning that they are obsolete: \pdfoptionpdfminorversion -> \pdfminorversion luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] metapost:animations
Maybe someone doesn't know: http://melusine.eu.org/syracuse/metapost/animations/ (for swf: http://www.quiss.org/swftools/) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with interaction
luigi.scarso wrote: Hi, I would like that whan i click over 'Bho' at page 1 I go to page 2 and see the title Bho \setupinteraction[state=start, focus=width] \starttext \about[etichetta] \page \section[etichetta]{Bho} \input tufte \stoptext This piece of latex does the thing I want %%% latex \documentclass[a4paper, 12pt]{article} \usepackage[bookmarks=false, pdfstartview=FitH, pdfview=FitH]{hyperref} \usepackage{nameref} \begin{document} \nameref{etichetta} \clearpage \section{Bho}\label{etichetta} \input{tufte} \end{document} thanks luigi ___ If I use \setupinteraction[state=start, focus=minwidth] I have ! Undefined control sequence. \v!minwidth To work\unprotect \def\dosetuppageview#1% watch the v-h swapping here {\processaction [#1] [ \v!fit=>\def\PDFpageviewkey {fit}\def\PDFpageviewwrd{/Fit}, \v!width=>\def\PDFpageviewkey {fith}\def\PDFpageviewwrd{/FitH}, \v!height=>\def\PDFpageviewkey {fitv}\def\PDFpageviewwrd{/FitV}, minwidth=>\def\PDFpageviewkey{fitbh}\def\PDFpageviewwrd{/FitBH}, minheight=>\def\PDFpageviewkey{fitbv}\def\PDFpageviewwrd{/FitBV}, standard=>\def\PDFpageviewkey{xyz \PDFpagexyzspec}\def\PDFpageviewwrd{/XYZ \PDFpagexyzspec}, \s!unknown=>\def\PDFpageviewkey {fit}\def\PDFpageviewwrd{/Fit}]% \edef\PDFpageview{/View [\PDFpageviewwrd]}} \protect ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Help with interaction
Hi, I would like that whan i click over 'Bho' at page 1 I go to page 2 and see the title Bho \setupinteraction[state=start, focus=width] \starttext \about[etichetta] \page \section[etichetta]{Bho} \input tufte \stoptext This piece of latex does the thing I want %%% latex \documentclass[a4paper, 12pt]{article} \usepackage[bookmarks=false, pdfstartview=FitH, pdfview=FitH]{hyperref} \usepackage{nameref} \begin{document} \nameref{etichetta} \clearpage \section{Bho}\label{etichetta} \input{tufte} \end{document} thanks luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Paragraph internal graphic/layout inquiry.
Matthias Weber wrote: You can comment out the line \doifnotmode{demo}{\endinput} There is probably also an invocation of TeX with a command line option which sets the mode. I made it with $>texexec --pdf --mode=demo m-shape.tex luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Not possible to redefine inbetween in \definedescription
Radhelorn wrote: Thanks. So every command with brackets needs to be grouped? Maybe something else? Where to look at it? It's better grouping with {} with brackets; there should be nothing else. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] color transparency
Brooks Moses wrote: I've added it to http://contextgarden.net/index.php?title=Colors. - Brooks Really good; thanks. Some pdfs: 1. rgb-cmyk.pdf 2. cmyk-rgb.pdf 3. art-colo.pdf 4. msplit.pdf 5. metafun-s.pdf, Special effects, pag 317 6. mag-0006.pdf 7. cont-eni.pdf, Color and background luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting up chapter.
John R. Culleton wrote: This has been educational. Who says you can't teach an old dog new tricks? Did you seen mag-0001.pdf (Hiding parts of section titles) ? It has some useful hints. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] color transparency
Hi, I'm sure that i have seem a nice pdf (not msplit.pdf) with an example of colors transparencies and combinations. If i remember, there was 3 or 4 colored rectangles stacked at the first/second page of this pdf ... I have search on pragma site, but without results. Can somebody help me ? Thanks in advance luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting up chapter.
John R. Culleton wrote: On Monday 11 July 2005 09:34 pm, Stuart Jansen wrote: On Mon, 2005-07-11 at 17:12 +, John R. Culleton wrote: I am trying to set up chapter heads a certain way and my code keeps getting uglier. Here are the specs: 1. Chapter number centered, with decorations on either side. 2. Chapter title centered below chapter number. 3. Additional decoration centered below chapter title. 4. Both number and text show up in TOC in normal Context manner. Can this be done easily using the normal chapter macro or should I do it all from scratch? (If I roll my own I worry about getting info to the TOC.) I am doing something like that now. Sorry the example isn't very pretty, had to rip out parts that were specific to the font I'm using, but should give you an idea of what you need to do. = Your example was very helpful. Using it, and with some more RTFM, I came up with this configuration: \setuphead[chapter][numbercommand=\numcommand,page=right, header=none,textcommand=\texcommand,align=right] \def\numcommand#1{\hfil\webo m\hfil\tfd#1\hfil\webo m\hfil\break} \def\texcommand#1{\hfil #1 \hfil\crlf\deco} My problem remains with the horizontal alignment of the chapter text. I have tried left, right, normal, broad. All I want to do is center it, per my specification 2 above. Webo is the webomints dingbat font. Maybe this can help you ? \def\Command#1#2{\ruledvbox{\hbox to \textwidth{\hfill #1 \hfill}\\% \hbox to \textwidth{\hfill #2 \hfill}\\% \hbox to \textwidth{\hfill deco! \hfill}}} \def\NCommand#1{\framed{#1}}% Insert here other stuff for decorate number \def\TCommand#1{\framed{#1}}% Insert here other stuff for decorate text \setuphead[chapter][command=\Command,numbercommand=\NCommand,textcommand=\TCommand] Warning: \completecontent has a bizzarre look. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Making texshow easier to edit
Mojca Miklavec wrote: - a link to download documentation (pdf or png with html navigation) for single .tex files could be present (like in modules.pdf) Actually, modules.pdf is an old version. I'm making a new modules.pdf; news at http://contextgarden.net/User:Luigi.scarso/modules.pdf (actually useless link: maybe next week...) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Hans Hagen wrote: ah, so 'crepi' is not related to creperen which in dutch means that he's going down (into the gutter, etc) hmm, ""In Dutch, "creperen" means to =>DIE<= a slow, agonizing death (or something along that line :))..."" In italian, 'crepi' is 3th singular person from verb 'crepare': 'crepare': to die, to pop off, to kick the bucket | to burst| to crack (like 'the wall has cracked') From latin crepare. It seem that they share the same origin. -) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Animations in ConTeXt
[a little off topic] http://www.quiss.org/swftools/examples.html (pdf -> swf; open new views if we think mp->pdf->swf driven by context..) http://www.pragma-ade.com/dir/itdemos/internal/media/ (how to play mediashow.smi ? maybe https://player.helixcommunity.org can help ?) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] modules.pdf : unicode/fonts problems
luigi.scarso wrote: While making modules.pdf Sorry, I have not search into mail list ; forget it. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] modules.pdf : unicode/fonts problems
While making modules.pdf $>texmfstart texexec --pdf --modu font-chi fails with font-chi.log:! Font \unicodefont=gbsongcd at 10.0pt not loadable: Metric (TFM) file not found I have $>ls ./texmf-local/fonts/tfm/chinese b5kai/ b5kaii/ b5song/ b5songi/ gbkai/ gbkaii/ gbsong/ gbsongi/ $>ls ./texmf-local/fonts/tfm/chinese/gbsong/ gbsong01.tfm ..to.. gbsong89.tfm with some holes in between. Apparently I have loose some tfm. Any ideas ? luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Guit
Hans Hagen wrote: 2. at http://www.guit.sssup.it/forum there is a forum for ConTeXt in italian language; i grep no 'context' on that page, so no opportunity to polish my italian -) Only Forum su TeX, LaTeX e GuIT (grrr) I will send an email to our admin. BTW, http://www.guit.sssup.it/phpbb/index.php luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Guit
Hans Hagen wrote: hm, looking at list i count some 12 italian members Maybe useless, but for all these italian members: 1. http://www.guit.sssup.it is the official link for the Italian TeX Users Group; 2. at http://www.guit.sssup.it/forum there is a forum for ConTeXt in italian language; 3. Please, join the guit !! Note::the offial link for guit is http://www.guit.sssup.it luigi -Italian translation- Forse e' inutile, ma per tutti gli iscritti italiani: 1. http://www.guit.sssup.it e' il link ufficiale per l' Italian TeX Users Group; 2. in http://www.guit.sssup.it/forum c'e' un forum dedicato a ConTeXt in lingua italiana; 3. Iscrivetevi al guit !!! Nota:: Il link ufficiale per il guit e' http://www.guit.sssup.it luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Taco Hoekwater wrote: **tesi.tex This is a hidden sign that G. Billotta is working on his mathematics *dissertation... ('quasi finita', i hope) * I N B O C C A A L L U P O !!! Crepi il lupo! :) ""When someone tells you "in bocca al lupo" to wish you good luck, you are supposed to reply "crepi" (maybe you can use the extended sentence as well, i. e. "crepi il lupo"). If you simply reply "grazie", you are supposed not to have luck! "" Used sometimes by students to wish each other good luck before exams. Well, G. Billotta was the first (and last, for now) italian I met inside context code. I was able to find one of his article on context at http://obelix.ee.duth.gr/eft/eutupon/eutupon9.pdf which I'm reading for a (planned) presentation to guit 2005 meeting, together with modules.pdf which I'm building , with some efforts. I hope that when modules.pdf will be ok, answer sto questions like "Why does ConTeXt try to load Latin Moder" will be more rapid. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why does ConTeXt try to load Latin Modern?
Giuseppe Bilotta wrote: ConTeXt still tries to load lmr12, though: This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded format=cont-en 2005.7.6) 6 JUL 2005 15:47 entering extended mode **tesi.tex (tesi.tex I N B O C C A A L L U P O !!! luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Again modules.pdf
I will track changes on http://contextgarden.net/User:Luigi.scarso/modules.pdf luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Again modules.pdf
Patrick Gundlach wrote: I haven't had a look for a long time at this pdf. But if I remember correctly, it is a typeset version of each source file. You can create a typeset version of a source file with texexec --module tex. Yes, for single file. But modules.pdf has *all* modules . luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Again modules.pdf
Again http://www.pragma-ade.com/dir/general/sources/modules.pdf More I see it, more I like it. Is it possible to make it from sources ? Thanks luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \naarbox
Alan Bowen wrote: I have been reading through some of the source files (still working on that \note problem) and decided that I had better stop guessing what the English equivalent of \naarbox is. Is there a Dutch speaker who can tell me what I should replace this command with ? Many thanks. Alan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context maybe mult-com.tex: gotobox: naarbox gotobox luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] metafun not working
Hans Hagen wrote: Mojca Miklavec wrote: I tried it out before reading that paragraph and I can approve: unless you have an ancient GS, it doesn't work at all. 3.40 at least does something even though it crashes. but i have no problems here with gs 8.51 (all 8 versions worked ok) and pstoedit 3.33, so how recent is your gs? Confirm : under linux MP.tex works with pstoedit 3.33 , gs 8.51 and even ESP Ghostscript 7.07; pstoedit 3.40 does not works correctly with gs 8.51 and 7.07 (Sorry Mojca, I was confused by numbers -- too much hot today -- ) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] metafun not working
Wolfgang Zillig wrote: Hello, I have problems with this graphic too. First I noticed that I don't have pstoedit installed on my computer. I downloaded version 3.40 from http://www.pstoedit.net/pstoedit. When I now run this MP code I get a Windows (xp) errormessage: Unhandled exception in pstoedit.exe (STDDRIVERS.DLL): 0xC005: Access Violation. But I get the graphic rendered. Any suggestions? hmm, try on ctan: ctan/support/pstoedit/windows It should be an older (3.31) but good version . luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] metafun not working
MP.tex works after downgrading to pstoedit 3.33 luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] metafun not working
Taco Hoekwater wrote: > makempy --force --noclean MP-mpgraph.mpo The last lines in the (now kept) mpy-MP-mpgraph.tmp should be --cycle; endfig; end no, again --(144.658,2.99976)--(142.267,2.99976)..controls (133.659,2.99976) and (133.3,4.29492)..(133.3,9.08569) --cycle; --cycle; If not, your pstoedit is broken. It seem that last pstoedit for linux is broken. I make MP.tex with my old-friend Context.2002--still_crazy_after_all_these_years--, and pstoedit 3.33 and no problems. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] metafun not working
MP.tex does not work for me. MP.tex: \starttext \startMPcode graphictext "MP" scaled 8 outlinefill withdrawcolor .7blue withfillcolor .7white dashed evenly withpen pencircle scaled 2pt ; \stopMPcode run with $>texexec --pdf --automprun MP.tex &>MP.out MP.out: TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004 executable : pdfetex format : cont-en inputfile : MP output : pdftex interface : en current mode : none TeX run : 1 This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3) (/usr/share/texmf/web2c/natural.tcx) output format initialized to DVI entering extended mode (./MP.tex ConTeXt ver: 2005.01.13 fmt: 2005.3.7 int: english mes: english language : language en is active 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 27] color : palette rollover is available system (E-TEX) : [line 842] system (E-TEX) : [line 897] ) 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 ) system : cont-sys loaded (/usr/share/texmf/tex/context/base/cont-sys.tex) bodyfont : 12pt rm is loaded language : patterns af->default:default->1->2:2 ca->default:default->2->2 :2 cz->il2:il2->3->2:2 cz->ec:ec->4->2:2 da->default:default->5->2:2 de->texnan si:texnansi->6->2:2 de->ec:ec->7->2:2 en->default:default->8->2:2 es->default:d efault->9->2:2 fi->default:default->10->2:2 fr->texnansi:texnansi->11->2:2 fr-> ec:ec->12->2:2 hr->il2:il2->13->2:2 hr->ec:ec->14->2:2 hu->ec:ec->15->2:2 it->t exnansi:texnansi->16->2:2 it->ec:ec->17->2:2 nl->texnansi:texnansi->19->2:2 nl- >ec:ec->20->2:2 no->texnansi:texnansi->21->2:2 no->ec:ec->22->2:2 pl->pl0:pl0-> 23->2:2 pl->ec:ec->24->2:2 ru->default:default->27->2:2 sk->il2:il2->28->2:2 sk ->ec:ec->29->2:2 ua->default:default->34->2:2 uk->default:default->35->2:2 deo- >texnansi:texnansi->37->2:2 deo->ec:ec->38->2:2 loaded specials : tex,postscript,rokicki loaded system : MP.top loaded (./MP.top specials : loading definition file tpd (/usr/share/texmf/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/share/texmf/tex/context/base/spec-fdf.tex system (E-TEX) : [line 2247] \ifcsname ) specials : fdf loaded ) specials : fdf,tpd loaded ) specials : loading definition file tpd (/usr/share/texmf/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/share/texmf/tex/context/base/spec-fdf.tex system (E-TEX) : [line 2247] \ifcsname ) specials : fdf loaded ) specials : fdf,tpd loaded fonts : using map file: texnansi-public-lm.map fonts : using map file: original-public-vnr.map fonts : using map file: original-public-csr.map fonts : using map file: original-public-plr.map fonts : using map file: original-public-lm.map fonts : using map file: original-ams-euler.map fonts : using map file: original-ams-cmr.map fonts : using map file: texnansi-base.map fonts : using map file: t5-base.map fonts : using map file: qx-base.map fonts : using map file: 8r-base.map fonts : using map file: ec-base.map fonts : using map file: ec-public-lm.map fonts : using map file: original-base.map systems: begin file MP at line 3 systems: randomizer starts with 644225506 [MP MP-mpgraph.1] [1.1{/usr/share/texmf/fonts/map/pdftex/context/original-empty .map}{/usr/share/texmf/fonts/map/pdftex/context/texnansi-public-lm.map}{/usr/sh are/texmf/fonts/map/pdftex/context/original-public-vnr.map}{/usr/share/texmf/fo nts/map/pdftex/context/original-public-csr.map}{/usr/share/texmf/fonts/map/pdft ex/context/original-public-plr.map}{/usr/share/texmf/fonts/map/pdftex/context/o riginal-public-lm.map}{/usr/share/texmf/fonts/map/pdftex/config/context/origina l-ams-euler.map}{/usr/share/texmf/fonts/map/pdftex/config/context/original-ams- cmr.map}{/usr/share/texmf/fonts/map/pdftex/context/texnansi-base.map}{/usr/shar e/texmf/fonts/map/pdftex/context/t5-base.map}{/usr/share/texmf/fonts/map/pdftex /context/qx-base.map}{/usr/share/texmf/fonts/map/pdftex/context/8r-base.map}{/u sr/share/texmf/fonts/map/pdftex/context/ec-base.map}{/usr/share/texmf/fonts/map /pdftex/context/ec-public-lm.map}{/usr/share/texmf/fonts/map/pdftex/context/ori ginal-base.map}] systems: end file MP at line 11 [flush and process MP-mpgraph.mp afterwards] ) esky/cm/cmr12.pfb> Output written on MP.pdf (1 page, 3359 bytes). Transcript written on MP.log. return code : 0 run time : 0 seconds generating graphics : metaposting MP-mpgraph.mp TeXExec 5.2.3 - ConTeXt /
Re: [NTG-context] tables, etc.
Jörg Hagmann wrote: Dear list members, I have the following questions: 1) I want a table at textwidth. The contents of the boxes don't fit on one line. When I See http://contextgarden.net/Tables_Overview maybe TABLE (natural tables) can help you. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] I need some advices/guidelines before start writing my PhD thesis
Alexandra Ribeiro wrote: Hi, I need some advices/guidelines before start writing my PhD thesis. I'm completely new to TeX and of course to Context but I'm convinced that Microsoft Word is far away from being the right tool for writing a long document. Well, in the past I had some big big headaches. Here some useful pdfs : 1. mp-cb-en.pdf: a first guide to commands; 2. cont-enp.pdf: The manual; 3. metafun-p.pdf: a beautiful book on graphics. * mtexexec.pdf: explain at least how to make pdf from your tex document; * mtexfont.pdf: how to install new fonts; * mtexutil.pdf:sometimes I need it to make some works. You can find them starting from http://mirror.contextgarden.net/document-1.htm luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] modules.pdf
I discover (~8 years later) http://www.pragma-ade.com/dir/general/sources/modules.pdf I think it is a useful pdf: Is there any tool to generate it ? luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] conferences
Maurice Diamantini wrote: I think it's time to think about ConTeXt as an alternative to LaTeX! brave heart luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Metapost animation
Mojca Miklavec wrote: Can someone please post any example of JavaScript code to "toggle the states" like in either http://www.math.muni.cz/~plch/nkpm/nradanm6.pdf or https://www.pragma-pod.com/present/talks/fifteen.pdf? I hope this can help you: http://www.fi.muni.cz/~xholecek/animations/ luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Fill pdf forms
Looking for some stuff do manage pdf forms,I found this http://search.cpan.org/~clotho/CAM-PDF-0.99/ From http://search.cpan.org/src/CLOTHO/CAM-PDF-0.99/index.html "CAM::PDF is optimized for reading and manipulating existing PDF documents. We use CAM::PDF in production Linux environments to customize template PDF documents that were often created by non-programmers using standard tools." In standard distro there are already fdf2tan.pl and fdf2tex.pl, and after reading spec-fdf I don't understand if they work ( running fdf2tan.pl gives ! Undefined control sequence. \annotatepages ). luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ruby
Hans Hagen wrote: Hi, when pondering about some ruby to bin for unix and googling a bit, A little off-topic: why ruby and not python ? i ran into: http://www.erikveen.dds.nl/ruby.html amazing stuff, not only rubyscript2exe (cross platform)! bookmarked luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] how to align footer text
Paul Tremblay wrote: How do I set up the space between the bottom of the page and my footer text? I need to setup a 1 inch margin at the bottom of the page. I need for the pagenumber to be centered and 1/2 inch from the bottom. Here's what I have: \definelayout[MyCustomLayout][ topspace=1in, header=0in, bottomspace=1.0in, bottomdistance=.5in, footer=.5in, footerdistance=1mm, backspace=1.5in, cutspace=.75in, height=middle, width=middle,] \setuplayout[MyCustomLayout] \part{} setupfootertexts[\hfill{}\pagenumber{}\hfill{}][][\hfill{}\pagenumber{}\hfill{}][] The problem with this setup is that the page number appears to close to the bottom of the page. Thanks Paul Maybe this can help you \setupfootertexts[% {\vbox to 0.9\footerheight{\hsize=\textwidth % \vfil \centerline{\pagenumber}% \vfil}}] luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] inmarge figures and references
Taco Hoekwater wrote: Jörg Hagmann wrote: Would the beginner's book help in understanding the structure of the whole system? At the moment, the only way to get a feeling for that is to read the source code, I believe. Start with 'tex/context/base/context.tex'. Working through the included files in the order they are loaded is I find useful also $> texexec --pdf --module .tex On the other side, I'm reading "The Advanced TEXBook", and I find it good. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] recent ConTeXt reference manual
John R. Culleton wrote: I am not familiar with cont-emp. maybe cont-enp ? luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XYpic
Vit, the last things. After that I consider this topic closed. >>+ limitation by substance: drawing is mostly done via fonts Yes, I forget to write it. >>[XFIG]..Export to context is good news. But still no parametrization possible :-( ..maybe something to play this summer... Now for metapost: shell_escape= f in texmf.cnf so \write18 is disabled. $>texexec --pdf f No circle; it seems right, because f.log says systems: randomizer starts with 797065300 mpost -progname=mpost -mem=metafun f-mpgraph system()...disabled. $> shell_escape=x ; texutil --purgeall; texexec --pdf f As before. $> shell_escape= ; texutil --purgeall; texexec --pdf f As before. $> shell_escape=t ; texutil --purgeall; texexec --pdf f Circle ok; again it's right, f.log says systems: randomizer starts with 800565448 system(mpost -progname=mpost -mem=metafun f-mpgraph)...executed. $> shell_escape=f ; texutil --purgeall; texexec --pdf f Strange:circle again. I found into texexec.pl if (($ENV{shell_escape} eq 'f') || ($ENV{SHELL_ESCAPE} eq 'f')) { $AutoMPRun = 1 ; } Hence texexec/texutil has called mpost instead of \write18; it's like shell_escape=t (for this task, not in general sense, of course) Hmm, it's not crystal clear: shell_escape=f means "shell_escape is False" shell_escape=t means "shell_escape is True" but for processing f.tex 'True and False are the same' $>shell_escape=; texutil --purge; texexec --pdf --automprun f Circle ok; it seems right, because I force execution of mpost. Again, many thanks luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XYpic
Vit, many thanks for your answer. Vit Zyka wrote: 1. For a moment I set shell_escape =f in `kpsewhich texmf.cnf' ok, done 2. Input file f.tex: \startuseMPgraphic{A} draw unitcircle scaled\overlaywidth; \stopuseMPgraphic \defineoverlay [B] [\uniqueMPgraphic{A}] \starttext \framed[background=B]{Hallo frame!} \stoptext 3a. classical run texexec --pdf f No circle under frame, right? If not, I have a bad installation; please discard the rest (and some hints to repair will be really appreciate :) ). 3b. step by step texexec --pdf --nomp f mpost f-mpgraph texexec --pdf --nomp f A circle appear under the frame. But I have 3 runs ( texexec, mpost, texexec). Now, what is my goal ? To achieve a circle under the frame as quick as possible. For 3.a, in f.log I find mpost -progname=mpost -mem=metafun f-mpgraph system()...disabled. An attempt to run mpost failed: no circle, goal unsatisfied. For 3.b, I run manually mpost (and then again texexec): goal satisfied. With shell_export=t, 3.a) is ok, but f.log says system(mpost -progname=mpost -mem=metafun f-mpgraph)...executed. So it seems that my goal can be achieved only with a run of mpost. With XYPic, a similar result can be achieved without mpost: %% %% WARNING:: deprecated example %% Don't use it ! %% \input xy \xyoption{frame} \starttext \xy (0,0) *++=\hbox{\framed{Hallo frame}} *\frm{o} ; \endxy \stoptext Of course this doesn't mean that XY is better/worse than mpost, nor that using mpost coupled with context will be always slow than others ways; but sometimes a faster alternative may be required. Sure for XYPic, name spaces collisions, cpu/memory required, syntax are (some) items to consider: but it also comes with a bunch of features and may be faster than mpost in some circumstances. [OT] XFIG: fig2dev can be export to metapost and in multi-metapost. Hence, from the moon, I see that xfig can be used with context. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XYpic
Vit Zyka wrote: But a mp graphic must be preprocessed by mpost for inclusion, and I can do it only if I can execute sysytems commands; this open a security and performance issues. It is true only for very advanced features like text along line, AFAIK. For framed text it is possible to run mpost manually with several passes of tex. Ok, it seem I've missed something important because I don't understand when you say "For framed text it is possible to run mpost manually with several passes of tex. ". This seem in contrast with preprocessing as I write before. Can you give me a simple example ? Thanks luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XYpic
Vit Zyka wrote: before I started to use context I had prepared some diagrams in xypic. Me too, for some notes on a course on commutative algebra when I was student at university. It was the only way I knew for creating vector graphics for both tex and pdftex with text and graphics interaction possibility. I try xfig with poor results. For that experience I strongly discourage for using it with context: 1) Xypic has the most obscure syntax I have ever seen. After writing some commutative algebra exercises, xy code is not so obscure :) 2) Nobody knows if there are not some name-space problems (redefinitions). Big problem not only with xypic. (after grep-ing xp package and context base I found some possibles names collisions in core-pos.tex,page-lyr.tex,xtag-ini.tex) 3) Metapost is naturaly incorporated to context, strongly supported, higher possibilities and (my opinion) much more intuitive. Yes, I love metafun. But a mp graphic must be preprocessed by mpost for inclusion, and I can do it only if I can execute sysytems commands; this open a security and performance issues. So: "Can I typeset a framedbox with a rulestyle WITHOUT using MetaPost ?" I have posted an idea with XYPic; but \leaders can be used too. So I think that such a contextgarden xypic page would be only confusing. ok, I follow your suggestion. P.S. If you are still interesting google for xypic manual. Better: http://www.tug.org/applications/Xy-pic/ luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Rif: Re: [NTG-context] dotted line for \framed ?
Luigi Scarso wrote: [OT] Can XYpic be used under Context ? I will try . At least for me this works: \input xy \xyoption{frame} \starttext \framed[offset=10pt]{% \xy (0,0) *++=\hbox{text} *\frm{--} ; (50,0) *++=\hbox{text} *\frm{..} ; (100,0) *++=\hbox{text} *\frm{=} ; \endxy} \stoptext It can be a way to add some frame style without using metapost. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: total with of TABLE ?
Steffen Wolfrum wrote: Not much left of those defined spaces, right? Sorry, now I see. I had made the pdf before postings, but I had not understood well it. (option=stretch seem related with \hsize; I must admit that when I 'm typeset tables, I always fix dimension, to avoid surprises: I never use stretch.) And what has your proposal to do with the idea of setting a "total width"? core-ntb has changed from last time I saw it, and some things are not so clear to me now: I 'll try to investigate. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] arranging + multipage \bTABLE + transparent color = bug?
Johan Sandblom wrote: Mine is Did you compile the document with texexec --arrange --pdf ? Ok, now I can confirm your bug. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: total with of TABLE ?
Steffen Wolfrum wrote: For example: I'd like to set a "total width" that fits both tables without specifying also the 2nd and 3rd column: \setupTABLE[totalwidth=10cm,offset=5pt] \setupTABLE[column][1][width=1cm,align=left] \setupTABLE[column][5][width=1cm,align=middle] Try \bTABLE[option=stretch] \bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR \bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR \bTR\bTD aa \eTD\bTD \eTD\bTD cc \eTD\bTD dd \eTD\eTR \bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR \bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR \eTABLE \blank \bTABLE[option=stretch] \bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR \bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR \bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR \bTR\bTD aa \eTD\bTD bb \eTD\bTD \eTD\bTD dd \eTD\eTR \bTR\bTD aa \eTD\bTD bb \eTD\bTD cc \eTD\bTD dd \eTD\eTR \eTABLE luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] arranging + multipage \bTABLE + transparent color = bug?
Johan Sandblom wrote: The following code compiles flawlessly but the pdf that is generated opens with the error "Could not find the Extended Graphics State named 'Tr1'." in Acrobat Reader 7 for Linux (and Windows for that matter). Earlier readers give less informative messages but in all cases the pdf has almost entirely empty pages. If the second line is uncommented (so there is no arranging) there is no problem. If the color is non-transparent, there is no problem. If the table needs less than 4 sheets to be arranged on, there is no problem. Is this known, expected, fixable? Johan \setuppapersize [A6][A4] \setuparranging [2*4, doublesided] %\setuppapersize [A6][A6] \setupcolors[state=start] \definecolor[tgray][s=.8, t=.5, a=1] \starttext \bTABLE[split=repeat, frame=off, background=color, backgroundcolor=tgray] \dorecurse{200}{\bTR\bTD 1\eTD\bTD 2\eTD\eTR} \eTABLE \stoptext I have made it with TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004 texexec : TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.20a-2.2 (Web2C 7.5.3) context : ver: 2005.01.13 cont-en : ver: 2005.01.13 fmt: 2005.3.7 mes: english cont-nl : ver: 2005.01.13 fmt: 2005.3.7 mes: dutch under linux and I see no problems with xpdf, acrobat5 and acrobat 7. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] total with of TABLE ?
Duncan Hothersall wrote: If you want your TABLE to find natural column widths to fit the content, use [option=stretch] on the \bTABLE command. (NB it doesn't work as an option to \setupTABLE, only on the actual \bTABLE.) Then, assuming you don't need splitting over pages, you can set your TABLE inside a vbox to define its width. (If you do need splitting, try putting the TABLE into a textbackground - with no background color set unless you want it - and set the width and/or margins of that?) Hope that helps. Many thanks ! (I start from \ifautoTBLspread inside core-ntb but after 30secs it comes your answer..) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] total with of TABLE ?
Hans Hagen wrote: Hi, I'm fighting deadlines right now, but later i'll try to get a look at the current table thread (maybe someone can summarize the problem) Hans \SetTableToWidth{10cm} \starttable[|c|c|c|]...\stoptable set width to 10 cm, but if I don't care about cell I can have an overfull box. So the problem seem to be "Can I set the total width of a TABLE using a macros like \setupTABLE[tablewidth=10cm] ?" To solve this problem, I usually set every cell width using \setupTABLE[x][n][width=..]; But with \setupTABLE[tablewidth=...] I will avoid to specify every single cell width, and the TABLE will find the right dimensions. I will look into core-ntb.tex. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] total with of TABLE ?
Peter Münster wrote: Do you know, if this is possible with TABLE: \starttext \SetTableToWidth{10cm} \starttable[|c|c|c|] \HL \VL xxx \VL xxx \VL x \VL\AR \HL \stoptable \stoptext Cheers, Peter Hmm, I change a little your code to better understand it \starttext \SetTableToWidth{10cm} \setbox100=\vbox{\starttable[|c|c|c|] \HL \VL xxx xxx \VL xxx xxx \VL x x \VL\AR \HL \stoptable} \starttyping \SetTableToWidth{10cm} \setbox100=\vbox{% \starttable[|c|c|c|] \HL \VL xxx xxx \VL xxx xxx \VL x x \VL\AR \HL \stoptable} \stoptyping \type{\wd100=}{\tt \PtToCm{\wd100}}\par \type{\ruledvbox{\unvbox100}:}\par \ruledvbox{\unvbox100} \stoptext and I see on log Overfull \hbox (11.63779pt too wide) in paragraph at lines 14--14 [][]\*12pf* \VL[] []xxx[] [][] []xxx[] []\VL[] []xx x[] []xxx[] []\VL[] []x[] []x[] []\VL\AR If I fix table width, I must care about cell content to avoid overfull hbox; so fix table width is useless, because I have already calculate by fixing cell content. I will look into natural table to see something similar to \SetTableToWidth luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] total with of TABLE ?
luigi.scarso wrote: (x=0.25 in your example, because you have 4 columns: so you have \setupTABLE[x][width=0.25\textwidth] ) Of course this setup a TABLE with four columns of equal width and total width =\textwidth; For different width : \setupTABLE[x][1][width=0.2\textwidth] \setupTABLE[x][2][width=0.25\textwidth] \setupTABLE[x][3][width=0.25\textwidth] \setupTABLE[x][4][width=0.3\textwidth] luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] total with of TABLE ?
Steffen Wolfrum wrote: Hi, a quite basic question, nevertheless I couldn'T find an answer: How do I determine the total with of a TABLE? I though it should be ... \setupTABLE[width=\textwidth] \bTABLE \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR \bTR \bTD aa \eTD \bTD bb \eTD \bTD cc \eTD \bTD dd \eTD \eTR \eTABLE ... but this means that all column's INDIVIDUAL width=\textwidth ! But what about the TOTAL width - regardless of the individual column's width? With \setbox: \setbox100=\vbox{% \setupTABLE[...] \bTABLE...\eTABLE% } ht=\the\ht100 , dp=\the\dp100 , wd= \the\wd100 and you can determine the dimensions of your table. But I think you need to setup x dimension, so \setupTABLE[x][width=x\textwidth] where x = 1/number_of_columns (x=0.25 in your example, because you have 4 columns: so you have \setupTABLE[x][width=0.25\textwidth] ) luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to insert a full page pdf.
David Munger wrote: Hi John, John R. Culleton : I need to insert some example pages from one document into another. Both are 8.5 x 11. I have read the old posts about \startTEXpage etc. and looked at the source code. But I still have a few questions: 1. Can I select e.g., just page 2 from the external document to insert in my document? How? I'm no expert, but here's the way I do it: \externalfigure[filename][page=2] Then, I adjust the clipping to -- for instance -- get rid of the page number of the inserted `figure', as well as of its top and left margins. \clip [ voffset=1.25in, % clip the topmost part of the inserted page Also can help to specify width and height and factor \externalfigure[filename][page=2,width..,height=.., factor=..] See http://texshow.contextgarden.net/ and search for \externalfigure Actually it seems to me that inclusion doesn't manage things like comments etc. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Strange link on pragma site ?
Dear users, it seems that I have some problems with links to magazines. If I go to mag- at http://www.pragma-ade.com/show-mag-1.htm on bottom right there are PAGE 1 OF 10 and link 'previous' If I click on 'previous' I will go to http://www.pragma-ade.com/show-mag-10.htm (mag-0009) and on bottom right appears PAGE 10 of 11 mag-0009 is not last magazine, so from first I jump to last-1 . Is it right ? Does anybody have this 'problems' ? thanks luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] AutoScale and AutoSize
Hans Hagen wrote: luigi.scarso wrote: It seems that from mag- you jump to previous mag-0009 and not mag-0010). the zero issue is, well, the zero issue that any magazine has, explaining the magazine Yes, I know (mag- is a meta-magazine... :) ) When I try http://www.pragma-ade.com/show-mag-1.htm I see mag-, page 1 of 10 and link previous and next (on bottom right) Click on next: I am at http://www.pragma-ade.com/show-mag-2.htm mag-0001, pag 1 of 10 So on until PAGE 7 OF 10, and click next I am are at http://www.pragma-ade.com/show-mag-8.htm and I see PAGE 8 OF 11. (why?) Again from start http://www.pragma-ade.com/show-mag-1.htm click on previous: I am at http://www.pragma-ade.com/show-mag-10.htm it's mag-0009, and I see PAGE 10 OF 11. So previous of first is last -1 . click on next: mag-0010, which I had missed last night., which is last. Maybe a broken link on site ? luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] AutoScale and AutoSize
Hans Hagen wrote: see latest magazine for an example + some explanation Great, as usually (I lose it because if I I visit http://www.pragma-ade.com/show-mag-1.htm and from here I click on previous at bottom right, I will go http://www.pragma-ade.com/show-mag-10.htm which is mag 0009. It seems that from mag- you jump to previous mag-0009 and not mag-0010). I've printed and read it ; if I have understand, I 've tried to do something similiar with my \AutoScaled with implicit rettangular shape and one line of text; maybe \AutoSize is not the right way. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] AutoScale and AutoSize
% AutoSize seem better, but % I must setup ss and tfb inside body % (I need these) so it's no a general macros % Same problems of previous version. % \def\AutoSize#1#2#3{% #1=string #2=horiz.limit #3=startfont \newdimen\Limit \Limit=#2 % \newdimen\FontSize \FontSize=#3 % \doloop{% \setbox800=\hbox{\switchtobodyfont[ss,\the\FontSize]\tfb #1}% \ifdim\wd800 <\Limit\exitloop% \else% \ifdim\FontSize <1bp\exitloop% \else % \advance\FontSize by -0.5bp% \fi% \fi}% \box800\relax% } ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] AutoScale and AutoSize
I have to typeset a small paragraph inside fixed box. I don't have much control about it's content, so sometimes text overflow. I try the following two macros, but they aren't good. % AutoScaled: not what I really want, but % sometimes works % \def\AutoScaled#1#2#3#4#5{% % #1 horiz. limit % #2 unused (maybe vert. limit) % #3 horiz. scale % #4 vert. scale % #5 text \setbox800=\hbox{\color[black]{\scale[sx=#3,sy=#4]{\bf #5}}}% \newdimen\ScaleX \ScaleX=#3pt \newdimen\ScaleY \ScaleY=#4pt %% \newdimen\LimitX \LimitX=#1 % \ifdim\wd800 > \LimitX % \edef\Ratio{\withoutpt{\the\dimexpr( (2\LimitX/(\wd800 /32768))) }}% \edef\XSCALE{\withoutpt{\the\dimexpr( \Ratio\ScaleX ) }}% \edef\YSCALE{\withoutpt{\the\dimexpr( \Ratio\ScaleY ) }}% \setbox800=\hbox{\color[black]{\scale[sx=\XSCALE,sy=\YSCALE]{\bf #5}}}% \fi% \box800\relax% }%%enddef \Autoscaled %AutoSize is what I really want, but it's %WRONG!! \def\AutoSize#1#2#3{% % #1=string #2=horiz.limit #3=initial font size \newdimen\Limit \Limit=#2 \newdimen\FontSize \FontSize=#3 \doloop{% \setbox800=\hbox{#1}% \ifdim\wd800 <\Limit\exitloop \else % WARNING: eat memory , 1bp is bad step, % force ss it's wrong \advance\FontSize by -1bp\switchtobodyfont[ss,\the\FontSize]% %% \fi}% %\newdimen\Dimen \Dimen=0.3528\wd800 \pointless\Dimen mm\relax% \box800\relax% } luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] justification
Jörg Hagmann wrote: However, I noticed the following problem (no doubt the first of many to come): justification on the right is far from perfect - there are lines sticking out. After going through the manual, I decided that "\setuptolerance[horizontal,verystrict]" in the setup area should do the trick, but it didn't. Can you give some examples ? Any suggestions? (I set up ConTeXt on two Macs, once with teTeX and once with TeXLive, and on a Mac running Mandrakelinux and teTeX Brave heart. I am currently writing a textbook and I am looking forward to using ConTeXt. Context IS the right choice. luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context