Re: [NTG-context] reference error with startproduct
On Fri, 18 Feb 2005, Hans Hagen wrote: > >> \useencoding[ffr] > > this command should come first (i.e. even before any \startproject or so > since > it set an internal separator (has to do with active french quotes); some day > i > will change that to a more convenient method Thanks for your explanations. My goal is, to write things like \useencoding[ffr] and \mainlanguage[fr] only once in an environment file, and not in every product. What do you think about the following method, can I get other kinds of problems? Product file: \startproduct product \project project \section[bla:bla]{bla} test: \in[bla] \section[bla]{bla} test: \in[bla:bla] hallo «hallo» hallo «hallo», hallo hallo: hallo; hallo? hallo! hallo \stopproduct Project file: \startproject project \enableregime[il1] \mainlanguage[fr] \defineactivecharacter « {\leftguillemot\,} \defineactivecharacter » {\,\rightguillemot} \defineactivecharacter ! {\,\string!} \defineactivecharacter ? {\,\string?} \defineactivecharacter : {\,\string:} \defineactivecharacter ; {\,\string;} \product product \stopproject 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] strange color change
On Thu, 17 Feb 2005, Hans Hagen wrote: > Peter Münster wrote: > > Hello, > > could anybody explain, why the last 2 subsections have another color? > > > > \setupinteraction[state=start] > > \setupcolors[state=start] > > \starttext > > \placecontent > > \dorecurse{6}{\section{a section}} > > \dorecurse{6}{\subsection{a subsection}} > > \stoptext > > actually, it's the reverse, i guess you can find out why if you compare > > \placecontent > > with > > \placecontent \page > > (the magic is in setting color as well as contrastcolor) I'm sorry, but I do not understand... What should I do, if I don't want a pagebreak after \placecontent and only one color in the table of contents? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] looking for a grammar checker in linux/tex/context - or alternative
Some time ago I asked for a speller in linux. I found that aspell does a good job. Now I want one step up: a grammar checker. Since there is no such thing in linux (AFAIK), then my question is: Is there any way to ask context to output the file in a format importable by MS Office? (sorry, I don't like this solution, but if you have one within the realm of linux/gnu licenses, let me know). May be plain 'text' format, or rtf? So I can use the grammar in MS. I listen to any other idea... thank you Ciro ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Unconventional page number placement
Hi Matt. I don't have a total solution, but I think you were much closer than you thought. Matt Gushee said this at Fri, 18 Feb 2005 11:40:22 -0700: > * Use negative dimensions to cause the header and footer to overlap > the text area, e.g.: > > \setuplayout [...,headerdistance=-0.35in,footerdistance=-0.5in] > >As I said, this comes very close to the desired effect, but it seems >impossible to correctly align the header text and page numbers with the >main text. How about this: \setuppapersize[A4,landscape][A4,landscape] \setuplayout[width=16cm,rightedge=\marginwidth] \setuplayout[headerdistance=-2\lineheight, header=2\lineheight, footerdistance=-2\lineheight, footer=2\lineheight, height=middle] \setupheadertexts[margin][section][] \setupfootertexts[margin][pagenumber][] \setuphead[section][page=yes] \starttext \showframe \section{one} \section{two} You had it pretty much right, you just need to make sure that the text blocks reach the bottom, a la the grid or \setupalign[line] stuff on the list these past weeks. Actually, at first, I thought this was a job for texttexts (weird, yeah, but in the manual...), but I have not idea how to move those up and down, where you want them. And that rightedge block isn't really relevant here, but it looks nice on the page. :) \section{three} \setuptext[margin][style=bold] \setuptexttexts[margin][section][pagenumber] \section{four} \stoptext -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 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] help needed with special macro
On Fri, 18 Feb 2005, Hans Hagen wrote: > Peter Münster wrote: > > On Thu, 17 Feb 2005, Hans Hagen wrote: > > > >> \expanded{\bTR ... \eTR} > >> > >>table data is collected and processed four times so you need to freeze > >>the content > > can you send me a small sample Of course: \newcount\MyVersion \def\MyMacro#1{% \getgparameters[XXX][#1] \global\advance\MyVersion by 1 \expanded{\bTR\bTD \the\MyVersion \eTD \bTD \XXXDate \eTD\eTR} } \starttext \bTABLE \bTR \bTD Version \eTD \bTD Date \eTD \eTR \MyMacro{Date=1.2.2005} \MyMacro{Date=3.4.2005} \MyMacro{Date=5.6.2005} \eTABLE \stoptext Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Unconventional page number placement
Hello, all-- Sorry about the repost, but I asked about this several days ago and didn't get any response. If there is a documented way to do what I want, feel free to just give me a hint as to where it is documented; or if there is no way to do it without deep hackery, please just let me know that. Thanks! %% I am creating a layout for electronic books in which all the body text is in a single, fairly narrow column, with minimal space at the top and bottom of each page. I would like to place page numbers in the left margin, aligned with the bottom of the text, and the running heads (if any) also in the left margin, aligned with the top of the text. Is there a way to do this in ConTeXt? I can see that the standard page numbering and header commands don't support this kind of placement. I can come very close to the desired effect with the following: * Place the page numbers in the margin area of the footer, e.g.: \setuppagenumbering [...,location=inleft] * Place the header text in the margin area of the header, e.g.: \setupheadertext [margin] [section] [] * Use negative dimensions to cause the header and footer to overlap the text area, e.g.: \setuplayout [...,headerdistance=-0.35in,footerdistance=-0.5in] As I said, this comes very close to the desired effect, but it seems impossible to correctly align the header text and page numbers with the main text. Also, the header texts are mostly too long to fit on a single line in the margin, and I have not found a way to induce line wrapping. Your suggestions are greatly appreciated. -- Matt Gushee Englewood, CO, USA ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bib module: \cite with page numbers
It works pretty well, thanks a lot! David Taco Hoekwater wrote : > >\setupcite[author,year][left=,right=] % disable braces >\def\citewithpages[#1]#2{% new command > (\cite[author][#1], \cite[year][#1], #2)% >} > >\citewithpages[davidson2001]{pp. 163-170} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Strange interaction of \chapter and \AutoDroppedCaps
Hi, In this document: \setupindenting[medium] \setupwhitespace[medium] \setupbodyfont[16pt] \starttext \chapter{This is a test} \AutoDroppedCaps \input tufte \input tufte \stoptext I get output attached in gif file. It works fine without \chapter before. Any thoughts? Regards, /S <>___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] reference error with startproduct
Hi, yes indeed I changed the code of Peter in that sense and made a separate file of the product-code before testing. I did this not because I knew it, but it looked just more Context-like to me ;-) Willi \setupoutput[pdftex] \useencoding[ffr] \mainlanguage[fr] % This is the project file: \starttext \startproject project \product product \stopproject \stoptext Hans Hagen wrote: \useencoding[ffr] this command should come first (i.e. even before any \startproject or so since it set an internal separator (has to do with active french quotes); some day i will change that to a more convenient method 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 mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] reference error with startproduct
\useencoding[ffr] this command should come first (i.e. even before any \startproject or so since it set an internal separator (has to do with active french quotes); some day i will change that to a more convenient method 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] Several questions about format generation
Stefan Wachter wrote: in the diverse documentation about ConTeXt installation I find the instruction "texexec --make ... --language ..." for generating format files. Several questions arise: 1. What is the consequence of selecting specific languages after the --make option? Have the generated formats the same functionality, i.e. do they differ only in the user interface? In particular, do the different formats have the same hyphenation capabilities? it becomes the default 2. In the "How to install ConTeXt" manual I read that the "nl"-format is needed for some postprocessing features built in texexec. Is this still valid? The TeXLive distribution of 2004 contains only the cont-en.fmt file. some special purpose styles run on the nl interface 3. Is using the --language xy option equivalent to the using the \mainlanguage[xy] macro? kind of 4. In case that several format files exist: which one is selected by texexec? texexec makes a guess, unless the first line says: % interface=en - 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] Re: Choosing an encoding - what are the consequences?
Stefan Wachter wrote: Adam Lindsay wrote: > Okay, as far as I know, ConTeXt doesn't have an 8a/Adobe encoding vector > defined yet. What does it mean that ConTeXt doesn't have an 8a/Adobe encoding vector? Isn't it enough for ConTeXt that there is an 8a.enc file? (I am prepared to write the necessary typescripts myself.) you need to write an enco-ase file then; no reason for typescripts Yet, the results were in some way unexpected. It seems that the 8a encoding really isn't supported by ConTeXt. For example if I say \setupencoding[default=8a] and output the character \char251 then I get a "ß" in the resulting PDF. I am very astonished to receive that character because in 8a, T1, and texnansi encoding the glyph /ucircumflex is located at that slot. Maybe this has to do with virtual fonts? I still struggle with all these matters. no, just make me an enco-ase (adobe standard encoding) file; you can use enco-ans as starting point 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] help needed with special macro
Peter Münster wrote: On Thu, 17 Feb 2005, Hans Hagen wrote: \expanded{\bTR ... \eTR} } table data is collected and processed four times so you need to freeze the content can you send me a small sample 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] URL to d-en-all.pdf
John Culleton wrote: Don't find these on the showcase.pdf page, unfortunately. . And both Konqueror and Mozilla use external PDF readers. The anchors within the pdf's are apparently relative and not absolute. "Quit" works but not the others. just follow the documentation link 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] URL to d-en-all.pdf
John Culleton wrote: On Thursday 17 February 2005 11:52, Hans Hagen wrote: John Culleton wrote: I want to point people to the d-en-all.pdf example on the pragma-ade.nl site. Unfortunately the navigation of the site is now all pdf based and my browsers don't handle that well. Can someone either give me the URI for d-en-all.pdf or tell me how to navigate pragma-ade.nl in html only? eh ... all the info in pdf navigation is also there in html, just follow the 'next' and 'prev' links Hans Don't find these on the showcase.pdf page, unfortunately. . And both Konqueror and Mozilla use external PDF readers. The anchors within the pdf's are apparently relative and not absolute. "Quit" works but not the others. -- - 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] Several questions about format generation
On Fri, 18 Feb 2005 09:12:09 +0100, Stefan Wachter <[EMAIL PROTECTED]> wrote: > Hi all, > > in the diverse documentation about ConTeXt installation I find the > instruction > > "texexec --make ... --language ..." > > for generating format files. Several questions arise: > > 1. What is the consequence of selecting specific languages after the > --make option? Have the generated formats the same functionality, i.e. > do they differ only in the user interface? In particular, do the > different formats have the same hyphenation capabilities? > > 2. In the "How to install ConTeXt" manual I read that the "nl"-format is > needed for some postprocessing features built in texexec. Is this still > valid? The TeXLive distribution of 2004 contains only the cont-en.fmt file. The same for teTeX 3.0 So I think *-nl* is not need unless you need some things (e.g labels,...) related to NL, right ? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Several questions about format generation
Hi all, in the diverse documentation about ConTeXt installation I find the instruction "texexec --make ... --language ..." for generating format files. Several questions arise: 1. What is the consequence of selecting specific languages after the --make option? Have the generated formats the same functionality, i.e. do they differ only in the user interface? In particular, do the different formats have the same hyphenation capabilities? 2. In the "How to install ConTeXt" manual I read that the "nl"-format is needed for some postprocessing features built in texexec. Is this still valid? The TeXLive distribution of 2004 contains only the cont-en.fmt file. 3. Is using the --language xy option equivalent to the using the \mainlanguage[xy] macro? 4. In case that several format files exist: which one is selected by texexec? Thanks for your attention, --Stefan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context