Re: [NTG-context] write18
On 5 Feb 2006, at 05:10, David Arnold wrote: > Gerben, > > With a default install of Context, I don't believe write18 is > enabled nor run time development of Metapost graphics. Do you do > any of that? I know about write18 and it is turned off bacause I have to ship a default `secure' setup. What the Metapost issue is, you'll have to explain. > If so, what configuration steps do you take? Me personally, none. I use ConTeXt and it works fine as is. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] eqalign
This will work. I have also tons of \eqalign groups, some of them nested, and all seems fine now. Matthias On Feb 4, 2006, at 11:08 PM, David Arnold wrote: > Taco, Hans, et al, > > I'm hesitant to upgrade as I have several hundred eqalign groups in > my work. Can you tell me if this now works in the new version? > > %output=pdf > \starttext > \placeformula[-] > \startformula > \eqalign{ > f(x)&=x^2-2x-3\cr > f(x)&=(x-3)(x+1)} > \stopformula > \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
[NTG-context] write18
Gerben, With a default install of Context, I don't believe write18 is enabled nor run time development of Metapost graphics. Do you do any of that? If so, what configuration steps do you take? David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] eqalign
Taco, Hans, et al, I'm hesitant to upgrade as I have several hundred eqalign groups in my work. Can you tell me if this now works in the new version? %output=pdf \starttext \placeformula[-] \startformula \eqalign{ f(x)&=x^2-2x-3\cr f(x)&=(x-3)(x+1)} \stopformula \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ToC Problem
Hi,Article names are not displayed in my ToC, the seperators and page numbers do appear though.I set upmy heads, lists, and contents as follows:\definehead[Article][chapter]\setuphead[Article][number=no] \definelist[Article][alternative=c, criterium=all]\definecombinedlist [MyContent] [Article] [level=Article, placehead=yes, criterium=all, alternative=c] The list will render correctly but not the ToC. I could use the list rather than the combined list, but I want get combined list working as I have yet to have any success with them whem using my own heads.Any ideas what I'm doing wrong? Thanks,Elliot ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Identifying context files
On 2/2/06, Aditya Mahajan wrote: > I use (g)vim to edit both context and latex files. Unfortunately, both > of them usually have *.tex extension. This mean that detecting > filetype from extension is not possible, so one should look into the > contents of the file to see if it a context file or not. > > I am planning to submit a ftdetect for context to vim. Right now, I > check if the first six lines of the file contain any of > '\\start\|\\enablemode\|\\unprotect\|\\setvariables\|\\module\|\\usemodule' > and if so, set the filetype to context, otherwise it is set to tex > (that loads latex plugins). > > This works for my context writing style. I would like to know about > other people's preference. > > 1. Do you write some keyword unique to context in the first few lines > of the file. Should I also check the last few line lines. \enableregime, \setupoutput Is \setup too general (will it recognize any LaTeX document)? I don't know how slow/fast the detection is since I only use short files, but if you check the last few lines, \stoptext (together with its international alternatives) isn't a bad idea. Also, if you check the last few lines: emacs users usually put some lines of code at the end to mark the document as being written in ConTeXt. > 2. Are there any other keywords that you will like to include. A keyword like set tex_preferred_dialect=latex/context :) and then if tex_preferred_dialect == context if the first few lines contain \documentclass or \documentstyle, declare it latex, otherwise ConTeXt else [your script]: if the first line contains % tex= or any keywords that Hans sent or if the first six lines contain the keywords you suggested (together with international alternatives) (don't take that suggestion too seriously) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two questions: Bib module and Headers
> You need also: > >\setuppublications[sorttype=bbl] > > Because the default is to sort by order of appearance > in \cite commands first, and only for the remaining > part use the bbl ordering. Yes. That was it. I did tested it with \setuppublications[sorttype=bbl] but I didn't run bibtex again. I suppose that was the problem. Thank you, Miguel Queirós ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Section Numbering
Well this should be very easy to do in context, but I can not seem to find the right switches. For a document that I am writing, I want section and subsection numbers to display as follows A. Section 1 A-1 Section 1, subsection 1 B. Section 2 and so on. What is the magic command? Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] rulethickness in \setupTABLE
Hello, I have 2 rows, and I would like to have a thick rule on the top and the bottom of the table, and in the middle a thin rule. I do this the following way: \starttext \setupTABLE[frame=off] \setupTABLE[r][1][topframe=on,rulethickness=1pt] \setupTABLE[r][2][topframe=on,rulethickness=0.3pt,offset=0pt,height=0pt] \setupTABLE[r][3][bottomframe=on,rulethickness=1pt] \bTABLE \bTR \bTD bla \eTD \eTR \bTR \eTR \bTR \bTD bla \eTD \eTR \eTABLE \stoptext Is there a cleaner way to achieve this? 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] starttyping
Hans van der Meer wrote: > Found something annoying with \starttyping...\stoptyping. > > I wanted side by side two framed texts in verbatim, one of them one > line longer than the other. > Of course they should align there lines. > > To accomplish this I put a blank line at the end of the shortest text. > Alas, \starttyping does not honor a blank line at the end, although > it does honors blank lines inbetween. > I am inclined to call this a bug. I agree, but only when \obeyemptylines is in effect (i have documents that depend on that auto-dropping of trailing empty lines in other cases). So my patch proposal is: \def\presetemptylastverbatimline% {\ifcase \verbatimstatus \or \or \or \doflushverbatimline \else \kern \zeropoint \doverbatimnobreak \doflushverbatimline \fi %TH the next \kern is new \kern \zeropoint } \def\obeyemptylines% {\let\donextemptyverbatimline\doemptyverbatimline %TH the next reassignment is new \let\presetlastverbatimline\presetemptylastverbatimline } You have to add an \obeyemptylines command in your document(s), of course. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] starttyping
Found something annoying with \starttyping...\stoptyping. I wanted side by side two framed texts in verbatim, one of them one line longer than the other. Of course they should align there lines. To accomplish this I put a blank line at the end of the shortest text. Alas, \starttyping does not honor a blank line at the end, although it does honors blank lines inbetween. I am inclined to call this a bug. Below a minimal example showing the blank line in between but not the one at the end. The ContextWiki site gives the same result. \starttext \startframedtext[strut=no,offset=0pt] \starttyping before blank line after blank line blank line follows \stoptyping \stopframedtext \stoptext yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Context 2006.02.03 released
Hello all, I am pleased to announce that the new ConTeXt release from Hans Hagen can be downloaded as of now from the Pragma ADE website or one of its mirrors. http://www.pragma-ade.com/context/current/cont-tmf.zip http://context.aanhet.net/context/current/cont-tmf.zip http://mirror.contextgarden.net/context/current/cont-tmf.zip The current release has version 2006.02.03. The total set of distributed files now consists of eight files; the zip containing a repackaging of cont-lmt.zip and the zip containing pattern files have been deleted. The zip with windows font support has merged with the remaining zip with font metrics. A very short list of changes is given below. As usual, there is an html page with more detailed release notes available on the Wiki, see: http://wiki.contextgarden.net/Release_Notes New major features since 2006.01.12: * Support for typesetting in japanese * A set of new higher-level math commands (alignments and arrays) * Support for fonts with kerns around quotation characters Bug fixes since 2006.01.12: * mptopdf now behaves correctly on cygwin * fix for (page) floats in columnsets mode * lots of small fixes Happy TeXing, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two questions: Bib module and Headers
Miguel Queiros wrote: > Hi, > > I'm using Bib module and bibtex to create my bibliography. > I would like to order it by author name, and I'v tried > it using: > > \setupbibtex[database=opensource-educacao,sort=author] > > But didn't get the desired result. > Should I be using anything else ? You need also: \setuppublications[sorttype=bbl] Because the default is to sort by order of appearance in \cite commands first, and only for the remaining part use the bbl ordering. > And now for the header question: > > I'm using the following code to change the font > size of my header from 12pt to 10pt. > > \setupheadertexts[][\setups{ta}] > > \startsetups[ta] > \setupbodyfont[10pt] > \getmarking[chapter] > \stopsetups > > Using \setupbodyfont[10pt] in this case > is the best solution ? \switchtobodyfont is somewhat better for this because does not do as much as a full document-wide switch (and is therefore faster). You may even get away with only a single font command like \tfx, but that does not work too well if there are embedded math formulas or font switches in your document. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context