[NTG-context] How to define fallback font for symbols

2011-06-17 Thread Vianney le Clément
Hi all, Is it possible to set a fallback font from which glyphs will be taken if the current font doesn't have it? For example, I'd want to use fancy miscellaneous symbols from the Symbola font using their unicode codepoint without any extra font-changing command (and obviously, I don't want to

Re: [NTG-context] How to define fallback font for symbols

2011-06-17 Thread Vianney le Clément
2011/6/17 Hans Hagen pra...@wxs.nl: % \definefontfeature[zh][mode=node,script=hang,lang=zhs] % \definefontfallback[serifwhatever]          [lmroman10-regular] [0x-0x0400][force=yes] % \definefontfallback[serifboldwhatever]      [lmroman10-bold] [0x-0x0400][force=yes] %

[NTG-context] \rotate broken

2012-01-05 Thread Vianney le Clément
Hi, The latest beta seems to have broken the \rotate command. \starttext \rotate{Test} \stoptext gives the following error ! Missing { inserted. system tex error on line 2 in file test.tex: Missing { inserted ... 1 \starttext 2 \rotate{Test} 3 \stoptext 4 to be read

Re: [NTG-context] \rotate broken

2012-01-05 Thread Vianney le Clément
2012/1/5 Hans Hagen pra...@wxs.nl: indeed, i already fixed it yesterday but didn't upload yet Hans Always nice to hear. I'll patiently wait for the Wise Men then :o). Thanks, Vianney ___ If your question is of

[NTG-context] Inline itemize

2012-01-05 Thread Vianney le Clément
Hello, If I type Blabla. \startitemize[a,text] \item one \item two \stopitemize Blabla. I get a linebreak before and after the itemize. Is this the intended behaviour? How can I get a fully inline enumeration? Thanks, Vianney

Re: [NTG-context] Inline itemize

2012-01-06 Thread Vianney le Clément
On Fri, Jan 6, 2012 at 00:25, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: No, this is a bug because with the “text” keyword you can create a inline item which doesn’t start a new paragraph. Wolfgang Thanks for the confirmation. I hope it will be fixed soon. Vianney

[NTG-context] footnote way=bypage

2012-01-06 Thread Vianney le Clément
Hi, I think I've found another bug. When asking to number footnotes by page, context says the \checkpagechange macro is undefined. Minimal example: \setupnote[footnote][way=bypage] \starttext \input{tufte}\footnote{Note} \stoptext Vianney

Re: [NTG-context] beta

2012-01-09 Thread Vianney le Clément
On Sun, Jan 8, 2012 at 18:40, Hans Hagen pra...@wxs.nl wrote: I uploaded a new beta. Apart from some fixes the core font/type modules have been cleaned up so there might be temporary font side effects. Seems like those cleanups have broken the simplefonts module. \usemodule[simplefonts]

Re: [NTG-context] beta

2012-01-10 Thread Vianney le Clément
2012/1/9 Wolfgang Schuster schuster.wolfg...@googlemail.com: Fixed. Wolfgang Thanks Wolfgang, it works with today's minimals. @Hans: in the latest beta, the textdistance parameter for inline itemize does not work anymore. But it's not a showstopper for me as I'm happy with the new default

[NTG-context] Protrusion and expansion in simplefonts not working in latest beta?

2010-08-17 Thread Vianney le Clément
Hello, Protrusion and expansion seem to be not working anymore when using the simplefonts module in the latest betas. I used to write something like \usemodule[simplefonts][protrusion=quality,expansion=quality] \setupalign[hanging,hz] \setmainfont[Tex Gyre Bonum] but that doesn't

Re: [NTG-context] Protrusion and expansion in simplefonts not working in latest beta?

2010-08-17 Thread Vianney le Clément
On Tue, Aug 17, 2010 at 20:23, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \setmainfont[Tex Gyre Bonum][protrusion=quality,expansion=quality] Thanks, that does the trick. Any reason why we cannot set these settings as module parameters anymore? 2010/8/17 Hans Hagen pra...@wxs.nl:

[NTG-context] parsing custom syntax in lua

2010-08-31 Thread Vianney le Clément
Hello, What is the best way to pass verbatim text to lua for processing? I would like to write a lua parser for non-TeX text with a custom syntax (could be something like Markdown for instance). The interface would be \startMyFormat % custom syntax % \stopMyFormat

Re: [NTG-context] parsing custom syntax in lua

2010-08-31 Thread Vianney le Clément
On Tue, Aug 31, 2010 at 11:05, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Take a look at this module: http://github.com/adityam/filter You can find examples here: http://randomdeterminism.wordpress.com/ Wolfgang Thanks Wolfgang, that module does indeed seem very interesting

[NTG-context] No bleeding with 2UP arranging

2010-10-01 Thread Vianney le Clément
Hello, When using 2UP arranging, the pages are clipped to their bounding box, loosing any bleeding. Example: \setuppapersize[A6][A4,landscape] \setuparranging[2UP] \setuplayout[location=middle] \setuppagenumbering[alternative=doublesided] \showframe \startreusableMPgraphic{background}

[NTG-context] \structureheadnumber does not work before first section

2010-10-02 Thread Vianney le Clément
Hi, I'm trying to get the last section number using \structureheadnumber[section][last]. This works fine inside a section, but expands to nothing when used at the beginning of the document. Here is a minimal example: \starttext Last: \structureheadnumber[section][last] \dorecurse{4}

[NTG-context] looking for fonts in a project's subdirectory

2010-11-11 Thread Vianney le Clément
Hi, In order for some projects (mkiv) to be self-contained, I want to put the used fonts inside the project directory. Putting them next to the .tex files works fine, but I would like to put them in a subdirectory, e.g., to have the following kind of structure: project/ fonts/

Re: [NTG-context] \definenamespace

2010-11-19 Thread Vianney le Clément
Could there also be a bug in the \setup command definition: \unexpanded\def\doinstallsetuphandler#1#2#3#4#5% {\unexpanded\def#2{\dodoubleempty#4}% \newtoks#5% \def#4[##1][##2]% {\ifsecondargument \def\docommand1% we will have a simple one as well {\edef#3{##1}%

Re: [NTG-context] index sort question

2010-11-21 Thread Vianney le Clément
On Sun, Nov 21, 2010 at 22:48, Horacio Suarez horaciosua...@hotmail.com wrote: A\index[arbol+\pagenumber]{arbol+rojo}\page B\index[araña+\pagenumber]{araña+linda}\page C\index[arbol+\pagenumber]{arbol+verde}\page D\index[araña+\pagenumber]{araña+grande}\page

Re: [NTG-context] Updated manual

2010-11-27 Thread Vianney le Clément
On Sat, Nov 27, 2010 at 10:13, Alan BRASLAU alan.bras...@cea.fr wrote: Are the manuals available with the minimals? If not, could they be, perhaps via an optional switch? Second that. It would be awesome. Vianney

[NTG-context] some questions related to sorting in registers

2010-11-28 Thread Vianney le Clément
Hello, There has been some discussion about this lately, but I have some questions about the sort order in registers. Consider this example: \starttext \index{42 numbers} \index{'apostrophe} \index{‘apostrophe} \index{’apostrophe} \index{quote} \index{“quote} \index{”quote} \index{Oo} \index{ob}

Re: [NTG-context] Layout for the first page

2010-12-30 Thread Vianney le Clément
On Thu, Dec 30, 2010 at 01:32, Sam Qasbah samqas...@gmail.com wrote: I'm working on a document that must have a layout for the first page and a different layout for all the other pages. This works for me: \setuplayout[...=...] % global layout \definelayout[first][...=...] % layout for the

Re: [NTG-context] Layout for the first page

2010-12-30 Thread Vianney le Clément
Sorry Vianney, I don't understand how it works your code. Please can you type some lines more? Something with Even simpler than before, using your example: \setuplayout[% default layout for all the pages backspace=1cm, width=middle] \definelayout[1][% set this layout on the first page

Re: [NTG-context] Layout for the first page

2010-12-30 Thread Vianney le Clément
On Thu, Dec 30, 2010 at 16:05, Hans Hagen pra...@wxs.nl wrote: maybe good to put this on the wiki Done: http://wiki.contextgarden.net/Layout#Multiple_layouts ___ If your question is of interest to others as well,

Re: [NTG-context] Working with conditionals

2011-01-03 Thread Vianney le Clément
\def\Title{\dodoubleempty\doTitle} \def\doTitle[#1][#2]{ \ifsecondargument \testpage[#2] \else \testpage[10] \fi \startalignment[center] { \blank[2*big] \switchtobodyfont[1.5em] \bf\em#1 } \blank \stopalignment } Vianney On Mon, Jan 3, 2011 at 10:46, Cecil

Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia

2011-01-05 Thread Vianney le Clément
On Wed, Jan 5, 2011 at 19:57, luigi scarso luigi.sca...@gmail.com wrote: http://www.pro-linux.de/news/1/16560/freie-schrift-pt-serif-veroeffentlicht.html http://www.paratype.com/public/ What do you think ? I've already used PT Sans for some documents. It's a really nice font in my amateur

[NTG-context] Symbola font glyph size

2011-02-12 Thread Vianney le Clément
Hello, I have some troubles using the Symbola font mentioned some time ago on the mailing list (http://users.teilar.gr/~g1951d/Symbola602.zip). It seems like the font metrics are loaded correctly, but the glyphs in the pdf appear approximately half the size, leaving white space above and next to

Re: [NTG-context] Symbola font glyph size

2011-02-12 Thread Vianney le Clément
On Sat, Feb 12, 2011 at 21:09, Taco Hoekwater t...@elvenkind.com wrote: How old is your luatex and context combination? It sounds like a bug we fixed a while ago (the font is probably a postscript font with an abnormal units per em setting) Thanks for your answer. I'm using the latest

Re: [NTG-context] Symbola font glyph size

2011-02-13 Thread Vianney le Clément
On Sun, Feb 13, 2011 at 08:03, luigi scarso luigi.sca...@gmail.com wrote: No, it's a truetype font with 2048 UnitsPerEm. This font has not kerning at all: it is only usable as .. symbol ! :-) It is indeed what I want: use it as a symbol font. But even when trying to access symbols like this:

Re: [NTG-context] Symbola font glyph size

2011-02-13 Thread Vianney le Clément
2011/2/13 Taco Hoekwater t...@elvenkind.com: It is an error in the context font loader, apparently. It seems it assumes that .otf == postscript. Something for Hans to look at. Renaming the font to Symbola602.ttf is a usable workaround (but you have to clear the font cache). Best wishes,

Re: [NTG-context] Symbola font glyph size

2011-02-13 Thread Vianney le Clément
On Sun, Feb 13, 2011 at 09:56, luigi scarso luigi.sca...@gmail.com wrote: \definedfont[file:Symbola602.otf sa 2] seems ok. Try \setupbodyfont[18pt] \starttext Gg {\definedfont[file:Symbola602.otf sa 2]Gg} Gg M{\definedfont[file:Symbola602.otf sa 2 ]\char1F3AD}M and change \setupbodyfont

[NTG-context] \framed[location=top] and slanted tex gyre bonum

2010-04-05 Thread Vianney le Clément
Hello, Yet another new ConTeXt user here. To briefly introduce myself, I am a computer scientist interested in typography as a hobby. Up to now, I did most things in LaTeX (sometimes resorting to ugly TeX hacking). Recently I gave ConTeXt MkIV a try and am quite happy with it. Now my question: I

[NTG-context] temporarily disabling enumeration numbering

2010-04-05 Thread Vianney le Clément
Hello again, Section 10.3 of the manual says that one can disable numbering for one item of an enumeration by putting [-]. However, this seems to affect the following item instead of the current one. For example, \defineenumeration[MyEnum][location=left] \starttext \MyEnum First\par \MyEnum[-]

Re: [NTG-context] \framed[location=top] and slanted tex gyre bonum

2010-04-05 Thread Vianney le Clément
\setupinterlinespace without changing offset does the trick. Many thanks, Vianney On Mon, Apr 5, 2010 at 14:13, Peter Münster pmli...@free.fr wrote: On Mon, Apr 05 2010, Vianney le Clément wrote: \setupframed   [frame=none,    offset=0pt,    location=top] Hello, I cannot explain why

Re: [NTG-context] temporarily disabling enumeration numbering

2010-04-05 Thread Vianney le Clément
Thanks for the patch. Vianney On Mon, Apr 5, 2010 at 14:33, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.04.10 14:04, schrieb Vianney le Clément: Hello again, Section 10.3 of the manual says that one can disable numbering for one item of an enumeration by putting

Re: [NTG-context] temporarily disabling enumeration numbering

2010-04-05 Thread Vianney le Clément
The patch seems to break \footnote: \unprotect % workaround \def\@@makedescription[#1]#2% {\postponenotes % new, assumes grouping \doenumerationcheckconditions{#1}% \dodescriptioncomponent[\c!reference=#1,\c!label={\descriptionparameter\c!text},\c!title={#2},\c!bookmark=,\c!list=][]%

Re: [NTG-context] page layout

2010-04-07 Thread Vianney le Clément
I'm trying to find a French equivalent for back/cutspace... any idea? Marge intérieure / marge extérieure? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] page layout

2010-04-07 Thread Vianney le Clément
retourarriere is a litteral translation (to my opinion) and is not reflecting what the keyword backspace really means. In fact, I find it quite exotic in a definition of a page layout... I agree on that one. Maybe we can try some literal translation of the dutch terms: backspace - rugwit -

[NTG-context] No indicators in registers when using french as main language

2010-04-07 Thread Vianney le Clément
Hello, The subject says it all. \mainlanguage[fr] \starttext \index{Item}Item \placeindex \stoptext There is no indicator i in the index. It appears when you comment out the first line or change it to another language. Adding \setupregister[index][indicator=yes] does not help. Another,

Re: [NTG-context] No indicators in registers when using french as main language

2010-04-07 Thread Vianney le Clément
Can you add \startluacode sorters.entries ['fr'] = sorters.entries ['en'] sorters.mappings['fr'] = sorters.mappings['en'] \stopluacode at the begin of your file. Sorting for diacritics won't be perfect but you get now a index. Thanks. Works perfectly. Vianney

Re: [NTG-context] MetaPost in TABLEs ?

2010-04-11 Thread Vianney le Clément
use textbackgrounds ... instead of drawing lines you then do a textext that does a \left{ in math alongside a vbox that has the height of the lefgt boundary etc etc That would be really interesting for a project I'm working on (a songbook). I thought textbackgrounds could only put a color

[NTG-context] quotechar and command with database module

2010-05-09 Thread Vianney le Clément
Hello, There seems to be a bug in the database module when using the quotechar and command option at the same time. Here is a minimal example. \usemodule[database] \defineseparatedlist [CSV] [separator=comma, quotechar={}, command=\Whatever] \def\Whatever#1#2{[#1][#2]\par} \starttext

[NTG-context] processaction inside MP graphic

2010-05-12 Thread Vianney le Clément
Hello, I'm having some trouble with a macro using \processaction inside a metapost graphic. Here is a minimal example. \def\Shape#1% {\processaction[#1] [square=unitsquare, circle=unitcircle]} \starttext \startuseMPgraphic{test} fill \Shape{square} scaled 1cm; \stopuseMPgraphic

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Vianney le Clément
On Thu, May 13, 2010 at 09:30, Taco Hoekwater t...@elvenkind.com wrote: Like many of the more complex commands, \processaction does not expand totally. If you are using mkiv, you could define \Shape like this: \def\Shape#1%  {\directlua{     local known = {square = 'unitsquare', circle =

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Vianney le Clément
\getparameters[Shape][square={unitsquare },                     circle={unitcircle }] \starttext \startuseMPgraphic{test} fill \Shapesquare  scaled 1cm; \stopuseMPgraphic \useMPgraphic{test} \stoptext This one's very nice. Thanks. Vianney

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Vianney le Clément
becareful at the spaces at the end, ie \getparameters[Shape][square={unitsquare},                    circle={unitcircle}] doesn't work. That's logical, because \Shapesquare eats the spaces following it. In my case, I define my macros like \getparameters[Shape:] [square=unitsquare,

Re: [NTG-context] footnote in TABLE

2010-05-19 Thread Vianney le Clément
You may want to try localfootnotes. Have a look at the first example of http://wiki.contextgarden.net/Footnotes Regards, Vianney ___ If your question is of interest to others as well, please add an entry to the Wiki!

[NTG-context] \vskip-\baselineskip after section header in mkIV

2010-05-22 Thread Vianney le Clément
Hello, \vskip-\baselineskip behaves strangely when put after a section header. Here is a minimal example. \setuphead[subject][after=] \starttext \subject{Header} \vskip-\baselineskip Text \stoptext One would expect to have Header overprinted by Text. This is the case in mkII, but not in mkIV