[NTG-context] Roman numbers for chapters in chapter lines but not in section lines
Hi, I am trying to obtain the following result : CHAPITRE I Title of chapter1.1 Title of section1.1.1 Title of subsection In other words, I need my chapter numbers to be in roman number, but not in the numbers of the sections and subsections (1.1.1 and not I.1.1). Here is the base code : \setuplist [chapter] [label=yes,style={\blank[0cm]}]\setupsection[section-2][conversion=Romannumerals]\setuplabeltext[chapter=CHAPITRE~] \starttext \placecontent \chapter{Title of chapter}\section{Title of section}\subsection{Title of subsection} \stoptext which results in : CHAPITRE I Title of chapterI.1 Title of sectionI.1.1 Title of subsection Any idea ?All help is greatly appreciated. Thanks a bunch, Mathieu ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Appendix label in TOC (Table of Contents) : APPENDIX instead of CHAPTER
Hi, The following code : \setuplabeltext[chapter=CHAPTER~]\setuplabeltext[appendix=APPENDIX~]\setuplist [chapter] [label=yes,style={\blank[0cm]}] \starttext \completecontent \chapter{Title of a chapter} \startappendices\chapter{Title of an appendix}\stopappendices \stoptext results in : Contents CHAPTER 1 Title of a chapter CHAPTER A Title of an appendix Instead, I would like to get the following result : Contents CHAPTER 1 Title of a chapter APPENDIX A Title of an appendix In other words, this command :\setuplist [chapter] [label=yes]seems not to take this one :\setuplabeltext[appendix=APPENDIX~]into account. Am I forgetting to add another important command in my header ?Any help would be greatly appreciated. Thanks in advance, Mathieu ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: What reference management software do you use?
On Sat 21 May 2011, Paul Menzel wrote: > using ConTeXt and not LaTeX you maybe also use a nice reference > management software the main stream does not know about. But > probably it is not related to ConTeXt at all since it is BibTeX in > the end. As someone using stone-age reference management (i.e. a plain BibTeX file maintained by hand), I found the emacs snippet at the bottom of http://www.emacswiki.org/emacs/RefTeX incredibly useful. If you have the cursor over a bibliography key, it lets you open the corresponding pdf (or ps, dvi, djvu etc.) with a single keystroke. I've tried JabRef, Referencer, Mendeley and various others but plain emacs (I don't use RefTeX) and that snippet still seem to work best for me. Pont ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography: current status, Wiki page Bibliography, [[error 2]] and bibltx
On Sun 22 May 2011, yoraxe wrote: > Besides the title is a german one, but all letters except for first > one, are lower-case. This might help: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=capbibtex Pont ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: What reference management software do you use?
>using ConTeXt and not LaTeX you maybe also use a nice reference >management software the main stream does not know about. But probably it >is not related to ConTeXt at all since it is BibTeX in the end. I can warmly recommend Zotero. It works very well and can fetch content directly from web pages (also recognizes PubMed, ScienceDirect, Google Books etc. automatically). The best feature is automatic sync of content to either the Zotero server or your own. The Firefox plugin is nice, and now there is also an alpha standalone app in in development. The software is open source and in use in many universities worldwide. http://www.zotero.org/about/ Best, Otso Helenius ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: What reference management software do you use?
Hi Paul, I recently switched from "Papers" (Mac only, commercial) to JabRef. Advantages: JabRef is open source, and I can use it at work (Macs) and at home (Linux). I like it -- it has everything I need (searching PubMed etc., managing a collection of pdf-files...). Cheers, Jörg Quoting Paul Menzel : Dear ConTeXt folks, using ConTeXt and not LaTeX you maybe also use a nice reference management software the main stream does not know about. But probably it is not related to ConTeXt at all since it is BibTeX in the end. I found a comparison in Wikipedia [1] and consider to use JabRef. Thanks, Paul [1] https://secure.wikimedia.org/wikipedia/en/wiki/Comparison_of_reference_management_software This message was sent using IMP, the Internet Messaging Program. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Street-Fighting Mathematics
On Sun, 22 May 2011, Hans Hagen wrote: On 22-5-2011 12:32, luigi scarso wrote: Street-Fighting Mathematics The Art of Educated Guessing and Opportunistic Problem Solving Sanjoy Mahajan Foreword by Carver A. Mead The book is made with ConTeXt mkii (so it's not a 100% off-topic, because we know that Sanjoy uses ConTeXt) Nice reading too (Sanjoy sent me a copy a while ago). (btw, you can also look at http://freevideolectures.com/Course/2704/Teaching-College-Level-Science-and-Engineering to see the author live) And also: http://tedxcaltech.com/speakers/sanjoy-mahajan Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography: current status, Wiki page Bibliography, [[error 2]] and bibltx
Am Sonntag, den 22.05.2011, 20:06 +0200 schrieb yoraxe: > Am 20.05.2011 19:04, schrieb George N. White III: > > %orig: \usemodule[bib] > > %orig: \usemodule[bibltx] > > \setupbibtex[database=sample] > > \setuppublications[numbering=yes] % Show reference numbers in the > > generated list. > > > > \starttext > > As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program. > > > > \placepublications[criterium=all] > > %orig:\completepublications > > \stoptext > > It works. But now I got some other problems: Please always open a new thread for new problems or at least update the subject line. > I'd like to have the numbering in brackets, which is not case. I guess you have to read up about `\setuppublications` (and report back the solution). > Besides the title is a german one, but all letters except for first one, > are lower-case. Sorry, please be more specific and refer to the respective lines. Thanks, Paul signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Feature request: setuppapersize
On Tue, 22 Mar 2011, Aditya Mahajan wrote: On Tue, 22 Mar 2011, Hans Hagen wrote: so i changed it a bit in the next beta .. i also made middle the default location Thank you. I will document all this in the next TUGBoat article on "Context for users". http://wiki.contextgarden.net/PaperSetup Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography: current status, Wiki page Bibliography, [[error 2]] and bibltx
Am 20.05.2011 19:04, schrieb George N. White III: > %orig: \usemodule[bib] > %orig: \usemodule[bibltx] > \setupbibtex[database=sample] > \setuppublications[numbering=yes] % Show reference numbers in the > generated list. > > \starttext > As \cite[hh2010b] already indicated, bibtex is a \LaTeX-centric program. > > \placepublications[criterium=all] > %orig:\completepublications > \stoptext It works. But now I got some other problems: I'd like to have the numbering in brackets, which is not case. Besides the title is a german one, but all letters except for first one, are lower-case. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography: @ELECTRONIC entries not shown in references section
On 22-5-2011 6:57, Paul Menzel wrote: The question still remains if `@ELECTRONIC` are not allowed or if this is an error. it's more that @ELECTRONIC is not defined Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using text as a clip path for Metafun & free shape paragraphs
On 22-5-2011 5:09, Otso Helenius wrote: With this feature one could define for example a 2-page spread for a magazine (with free shape graphics and columns) in between two ordinarily defined pages and would not have to manually disrupt the body text flow through the document. It can probably be done with transparency (soft/hard masking) but I never looked into that (never needed it and I have no pdf examples anyway). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibliography: @ELECTRONIC entries not shown in references section (was: current status, Wiki page Bibliography, [[error 2]] and bibltx)
Am Sonntag, den 22.05.2011, 09:33 +0800 schrieb Li Yanrui (李延瑞): > 2011/5/21 Paul Menzel : > > > > Thank you very much for this hint. I am getting the same result as you. > > Everything works but the listing of all entries. > > You can try "\placepublications[criterium=text]" instead of > "\placepublications[criterium=all]". Thank you for the suggestion. Since the entry `@ELECTRONIC…` is not referenced in the sample text it is now not placed in the references section. The question still remains if `@ELECTRONIC` are not allowed or if this is an error. Thanks, Paul signature.asc Description: This is a digitally signed message part ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pdf attachments broken in latest minimal?
On 21-5-2011 5:44, Jesse Alama wrote: It seems that PDF attachments aren't working in the latest minimals: $ context --version mtx-context | main context file: /Users/alama/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2011.05.18 22:26 \useattachment[busted][hi.txt] \starttext attachment here: \attachment[busted] \stoptext Prepending \setupinteraction[state=start] to the document, and the compiling with, say, xetex, results in a PDF that has the attachment. But not with mkiv. fixed in next beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Using text as a clip path for Metafun & free shape paragraphs
Thanks to Wolfgang for the instructions on changing fonts, \switchtobodyfont works as expected. I still have to dig up the exact definitions of both \switchtobodyfont and \switchtotypeface, as the latter command seems to work in Hans' examples (for example showfont.pdf) but not with my installation. Now, I've been trying to use metapost for achieving magazine type layout with ConTeXt, and have a question about the following features: 1) Is it possible to use TeX typeset text as a clipping path for MP graphics? What I would like to achieve is a similar cut mask as seen in this picture: https://modernpost.files.wordpress.com/2009/10/rockstar11091.jpg i.e. the text outline cuts a hole in the brown filled rectangle revealing the bitmap below. I can cut pictures easily with paths in MP like so: \startMPcode fill unitsquare xysized (100mm,100mm) withcolor green; picture cur; cur := currentpicture; currentpicture := nullpicture; fill unitsquare xysized (100mm,100mm) withcolor blue; path mask; mask := unitsquare xysized (100mm,100mm) -- reverse unitsquare xysized (100mm,10mm) shifted (0mm,45mm) -- cycle; clip cur to mask; draw cur; \stopMPcode But I can't cut pictures with pictures (only with masks), nor have I found a way in any of the manuals (mmakempy.pdf, metafun-p.pdf, metapostmanual.pdf) to output text outline as paths which could be used for cutting a hole in the mask picture. Is this possible? 2) MP gives an easy way to format free flowing paragraph shapes similar to this image: http://www.davidlcade.com/images/gropius/g2.png . I have followed the instructions on pages 435-444. The problem with this approach is that the text which will be placed in a freely shaped paragraph will be a separate block which won't flow freely with other text in the document body if the contents on earlier pages change. I guess this drops in the category of big feature requests, but it would be nice to be able to define the shapes and positions of ConTeXt columns/paragraphs with MP graphics. In InDesign columns of any shape anywhere on the page can be connected without having to separate one block of text from the rest. With this feature one could define for example a 2-page spread for a magazine (with free shape graphics and columns) in between two ordinarily defined pages and would not have to manually disrupt the body text flow through the document. Best regards, Otso Helenius ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Street-Fighting Mathematics
On 22-5-2011 12:32, luigi scarso wrote: Street-Fighting Mathematics The Art of Educated Guessing and Opportunistic Problem Solving Sanjoy Mahajan Foreword by Carver A. Mead The book is made with ConTeXt mkii (so it's not a 100% off-topic, because we know that Sanjoy uses ConTeXt) Nice reading too (Sanjoy sent me a copy a while ago). (btw, you can also look at http://freevideolectures.com/Course/2704/Teaching-College-Level-Science-and-Engineering to see the author live) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Street-Fighting Mathematics
2011/5/22 Pontus Lurcock : > http://mitpress.mit.edu/books/full_pdfs/Street-Fighting_Mathematics.pdf - the /ArtBox is an inch too high - for linearizing you can also use qpdf Best Martin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [OT] Street-Fighting Mathematics
On Sun 22 May 2011, luigi scarso wrote: > Street-Fighting Mathematics > The Art of Educated Guessing and Opportunistic Problem Solving > Sanjoy Mahajan > Foreword by Carver A. Mead > > The book is made with ConTeXt mkii > (so it's not a 100% off-topic, because we know that Sanjoy uses ConTeXt) Saw this in the university library the other week, and almost postted about it. I'd like to add: it is freely available avilable in PDF ( http://mitpress.mit.edu/books/full_pdfs/Street-Fighting_Mathematics.pdf ) and (if I remember rightly) the author effusively thanks the authors of ConTeXt (and the other free software used in the book's production) in three different places :-). Pont ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [OT] Street-Fighting Mathematics
Street-Fighting Mathematics The Art of Educated Guessing and Opportunistic Problem Solving Sanjoy Mahajan Foreword by Carver A. Mead The book is made with ConTeXt mkii (so it's not a 100% off-topic, because we know that Sanjoy uses ConTeXt) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] request for a quick & dirty hack: shift accents in compose=yes
On 21-5-2011 12:52, Arthur Reutenauer wrote: Answering myself: I ended up using c\kern-7pt\hbox to 0pt{\textcaron\hss}\kern7pt but it would be nice to add some options to allow fixing fonts on a slightly more user-friendly level. And what do you expect the user interface to look like? You're going to need to add information in the font for each relevant glyph or glyph pairs; it's a little bit like using a macro to adjust accent placement at that point. actually there is a goodie that permits this (see lucida-one.lfg) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Font selection problem in MKIV
Am 21.05.2011 um 22:03 schrieb Otso Helenius: > Sorry, I was in error while referring to the font sizes. The actual "limit" > below > which typescripted fonts stop working is 12pt and it is not tied to the > \setupbodyfont > setting. Any font output with 12pt or less will be formatted as Latin Modern. > i.e. > > \switchtotypeface[Pompadour][ss,12pt] 01234567890 > > shows as Latin Modern whereas > > \switchtotypeface[Pompadour][ss,12.1pt] 01234567890 > > shows as Pompadour. 12pt is the default document font size so I can only > guess there > is some kind of a conflict. I'm using ConTeXt ver: 2011.05.18 22:26 MKIV Why do you insist on \switchtotypeface when \switchtobodyfont works? Here is a example which works on my machine (requires commercial fonts: \starttext \input ward\par \switchtobodyfont[calluna,8pt] \input ward\par \switchtobodyfont[cambria,10pt] \input ward\par \stoptext Wolfgang test.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Font selection problem in MKIV
Am 21.05.2011 um 20:21 schrieb Otso Helenius: > Syntax for the \switchtotypeface would be nice. showfont.pdf from Pragma > homepage shows \switchtotypeface[name][size,type] as one > possible calling syntax but a clear explanation of all the parameters is > missing. I would like to add this to the Wiki along other > tutorials for MKIV font usage, so as much information on the subject as > possible is appreciated. You’re right, \switchtotypeface accepts all parameters from \switchtobodyfont as second argument because the commands pass it’s arguments to \switchtobodyfont. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___