Re: [NTG-context] Producing quotesingle glyph

2011-03-19 Thread Mojca Miklavec
On Sat, Mar 19, 2011 at 01:29, Pontus Lurcock wrote: Hello, This may be a stupid question, but I can't work out how to produce the ' character (quotesingle, unicode 0x0027) glyph in a document. Just typing the character in the source produces a quoteright as expected. Here are my other

Re: [NTG-context] cals tables - UNSOLVED

2011-03-19 Thread R. Ermers
Dear All, After having succeeded with Aditya's kind help to typeset a table file in a separate pdf, I have been trying to typeset the cals tables in my docbook xml file in two ways: A. directly in the document. The table is in //section/cals:table. The cals module is loaded at the beginning

Re: [NTG-context] Producing quotesingle glyph

2011-03-19 Thread Mojca Miklavec
On Sat, Mar 19, 2011 at 09:05, Mojca Miklavec wrote: If you want to disable that behaviour, you need to turn trep feature off, for example with    \definefontfeature[default][liga=yes,kern=yes,tlig=yes] ... or maybe just disable the font feature temporary with \subff{trep}. In theory that

Re: [NTG-context] Some problems I experienced when using ConTeXt

2011-03-19 Thread Mojca Miklavec
On Sat, Mar 19, 2011 at 03:41, Cecil Westerhof wrote: When I use a sentence like:     In de boxen van de stam vul je voor iedere dag (maandag t/m zondag)     een activiteit in die je op die dag afrond. I would prefer t/m kept together. It is, but the way it is displayed, it looks like there

Re: [NTG-context] Producing quotesingle glyph

2011-03-19 Thread Khaled Hosny
On Sat, Mar 19, 2011 at 09:12:42AM +0100, Mojca Miklavec wrote: On Sat, Mar 19, 2011 at 09:05, Mojca Miklavec wrote: If you want to disable that behaviour, you need to turn trep feature off, for example with    \definefontfeature[default][liga=yes,kern=yes,tlig=yes] ... or maybe just

Re: [NTG-context] ... and emoticons

2011-03-19 Thread Mojca Miklavec
On Sat, Mar 19, 2011 at 04:15, Aditya Mahajan wrote: On Sat, 19 Mar 2011, Cecil Westerhof wrote: Are there codes for ... and emoticons in ConTeXt? \setupbodyfont[libertine] \starttext \unknown\ or \ldots ☺☹ \stoptext If font supports the emoticons in the first place, one could also

Re: [NTG-context] Some problems I experienced when using ConTeXt

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 03:41 schrieb Cecil Westerhof: I would prefer t/m kept together. It is, but the way it is displayed, it looks like there is (a) space between the '/' and the 'm'. Is there something that can be done about this, or have I to live with it? Use a different font or add manual

Re: [NTG-context] Some problems I experienced when using ConTeXt

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 03:41 schrieb Cecil Westerhof: I found also an obscure problem with table. I had to dabble a bit to reproduce it. (For a moment I thought I had imagined it.) The table does not fit on the space that is left on the page, so it is moved to the next page. So far so good. But

Re: [NTG-context] Some problems I experienced when using ConTeXt

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 03:41 schrieb Cecil Westerhof: Lastly a question about a long click-able email address. I would like it not to be broken up. But sometimes this can happen. See the end of the document.(Can of-course also happen with a short address, but will happen less often.) What is the

Re: [NTG-context] Macro for acronyms

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 03:29 schrieb Cecil Westerhof: At the moment I have I my document: {\switchtobodyfont[1.25em]\bf M}ust {\switchtobodyfont[1.25em]\bf S}hould {\switchtobodyfont[1.25em]\bf C}ould {\switchtobodyfont[1.25em]\bf N}ot now But I like to have a macro for this, so I could

Re: [NTG-context] Macro for acronyms

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 04:08 schrieb Aditya Mahajan: \def\FancyUppercase#1% {\dostartFancyUppercase#1\dostopFancyUppercase} \def\dostartFancyUppercase#1#2\dostopFancyUppercase {\FancyFirstLetter{#1}#2} \def\Acronym#1% {\dostartAcronym#1 \dostopAcronym} \def\dostartAcronym#1

Re: [NTG-context] ... and emoticons

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 09:21 schrieb Mojca Miklavec:If font supports the emoticons in the first place, one could alsodefine ligatures to create them automatically with :-)etc. But personally I would prefer to use \externalfigure and findsome really nice images out there as opposed to using whatever

[NTG-context] Defining new head grid problem

2011-03-19 Thread Bart Wise
The code below prints out the word Text: in bold and then follows with the text. However, if I turn the grid on (as is coded below), the first line of the paragraph is printed, followed by a blank line, followed by the remaining text. The blank line after the first line should not be there. If

[NTG-context] Simplefonts, \setcjk....font has some side effect on verbatim typing

2011-03-19 Thread 尹冠皓
Did I miss anything? \usemodule[simplefonts] \setcjkmainfont[whatever] \starttext \type{'} % expect ', but get ’ \type{--}% expect --, but get – \stoptext ___ If your question is of interest to others as well,

Re: [NTG-context] Simplefonts, \setcjk....font has some side effect on verbatim typing

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 13:33 schrieb 尹冠皓: Did I miss anything? Fixed. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Defining new head grid problem

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 12:57 schrieb Bart Wise: The code below prints out the word Text: in bold and then follows with the text. However, if I turn the grid on (as is coded below), the first line of the paragraph is printed, followed by a blank line, followed by the remaining text. The blank

Re: [NTG-context] Defining new head grid problem

2011-03-19 Thread Bart Wise
Wolfgang, Works great. Thanks! Bart On Sat, Mar 19, 2011 at 6:54 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 19.03.2011 um 12:57 schrieb Bart Wise: The code below prints out the word Text: in bold and then follows with the text. However, if I turn the grid on (as

Re: [NTG-context] PDF Version Selection

2011-03-19 Thread Raymond LeClair
Fantastic! This fixes my problem uploading documents to Lulu. Thank you. This has been one tough bug to track down. On Mar 18, 2011, at 5:05 PM, Aditya Mahajan wrote: On Fri, 18 Mar 2011, Hans Hagen wrote: On 18-3-2011 8:51, Raymond LeClair wrote: Is it possible to select the PDF version

Re: [NTG-context] Simplefonts, \setcjk....font has some side effect on verbatim typing

2011-03-19 Thread 尹冠皓
On Sat, Mar 19, 2011 at 01:46:15PM +0100, Wolfgang Schuster wrote: Fixed. Thanks. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] missing or ungrouped '=' after 'reset'

2011-03-19 Thread Reviczky, Adam
Hi I'm getting lines like these since context experimental 2011.03.11 (including 2011.03.18) by using definelayout reset. checkmissing or ungrouped '=' after 'reset' in line 8 (@@ly2) checkmissing or ungrouped '=' after 'reset' in line 12 (@@ly9) Did something change

[NTG-context] Different fontsize in header and footer

2011-03-19 Thread Cecil Westerhof
I thought I saw it once, but I can not find it. I like to use another fontsize in my headers and footers. At the moment I have solved it in this way: \setupfootertexts[{\switchtobodyfont[6pt]Pagina \pagenumber \space van \lastpage}] But then I have to do this everywhere I change the text for

Re: [NTG-context] Different fontsize in header and footer

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 15:08 schrieb Cecil Westerhof: I thought I saw it once, but I can not find it. I like to use another fontsize in my headers and footers. At the moment I have solved it in this way: \setupfootertexts[{\switchtobodyfont[6pt]Pagina \pagenumber \space van \lastpage}]

Re: [NTG-context] Different fontsize in header and footer

2011-03-19 Thread Cecil Westerhof
2011/3/19 Wolfgang Schuster schuster.wolfg...@googlemail.com I thought I saw it once, but I can not find it. I like to use another fontsize in my headers and footers. At the moment I have solved it in this way: \setupfootertexts[{\switchtobodyfont[6pt]Pagina \pagenumber \space van

Re: [NTG-context] missing or ungrouped '=' after 'reset'

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 15:01 schrieb Reviczky, Adam: Hi I'm getting lines like these since context experimental 2011.03.11 (including 2011.03.18) by using definelayout reset. checkmissing or ungrouped '=' after 'reset' in line 8 (@@ly2) checkmissing or ungrouped '='

Re: [NTG-context] missing or ungrouped '=' after 'reset'

2011-03-19 Thread Reviczky, Adam
The example is wrong, for \definelayout only assignments are valid parameters while \setuplayout accepts also “reset” for the first (with one argument) or second (with two arguments) argument. Hmm, but it's the only way it produces the output with the right layouts. So what needs to be changed for

Re: [NTG-context] missing or ungrouped '=' after 'reset'

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 16:08 schrieb Reviczky, Adam: The example is wrong, for \definelayout only assignments are valid parameters while \setuplayout accepts also “reset” for the first (with one argument) or second (with two arguments) argument. Hmm, but it's the only way it produces the output

[NTG-context] How to get the style definitions from \chapter, \section, \subsection

2011-03-19 Thread Cecil Westerhof
The style of chapter is significant bigger as the style from section, but it looks like the style from section and subsection are about the same. I have a workaround with the following: \setuphead[section][before={\blank[3*big] \testpage[15]}]

Re: [NTG-context] How to get the style definitions from \chapter, \section, \subsection

2011-03-19 Thread Wolfgang Schuster
Am 19.03.2011 um 17:21 schrieb Cecil Westerhof: The style of chapter is significant bigger as the style from section, but it looks like the style from section and subsection are about the same. I have a workaround with the following: \setuphead[section][before={\blank[3*big]

Re: [NTG-context] Different fontsize in header and footer

2011-03-19 Thread Aditya Mahajan
On Sat, 19 Mar 2011, Cecil Westerhof wrote: It rang a bell and sure enough I already used in one of my documents, but I forgot about it. Can you add some of the answers to your recent questions to the wiki. Aditya

Re: [NTG-context] Feature request: setuppapersize

2011-03-19 Thread Aditya Mahajan
On Mon, 10 Jan 2011, Aditya Mahajan wrote: On Mon, 10 Jan 2011, Hans Hagen wrote: more elegant and downward compatible is this: \definepapersize [samesized] [ \c!width=\paperwidth, \c!height=\paperheight] \setuppapersize [A4][samesized] in page-lay.mkiv Indeed. This will also work

[NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Procházka Lukáš
Hello, I'm trying to create an overlay - text with a line drawn bellow. The following code: --- \defineoverlay[Label][\useMPgraphic{Label}] \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0); draw p yshifted -1cm withpen pencircle scaled 1mm withcolor .667red;

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Peter Münster
Procházka Lukáš l...@pontex.cz writes: draw p yshifted -1cm withpen pencircle scaled 1mm withcolor .667red; draw p withpen pencircle scaled 0mm withcolor white; draw p yshifted -OverlayHeight withpen pencircle scaled 1mm withcolor .667red; (quick and dirty, there is certainly a cleaner

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Peter Münster
Procházka Lukáš l...@pontex.cz writes: \def\Text#1{\inframed[background=Label,frame=off]{#1}} Or like this (less quick and perhaps less dirty): \def\Text#1{\inframed[location=top, background=Label, boffset=\lineheight, frame=off]{#1}} -- Peter

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Peter Münster
pmli...@free.fr (Peter Münster) writes: Procházka Lukáš l...@pontex.cz writes: \def\Text#1{\inframed[background=Label,frame=off]{#1}} Or like this (less quick and perhaps less dirty): \def\Text#1{\inframed[location=top, background=Label, boffset=\lineheight, frame=off]{#1}} Oh, no,

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Procházka Lukáš
... Thanks, so a dirty trick must be done anyway? A trick which would cause MP to evaluate a higher bounding box? draw p withpen pencircle scaled 0mm withcolor white; --- draw (0,0); --- instead works as well. draw p yshifted -OverlayHeight withpen pencircle scaled 1mm withcolor .667red;

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Aditya Mahajan
On Sat, 19 Mar 2011, Procházka Lukáš wrote: Hello, I'm trying to create an overlay - text with a line drawn bellow. The following code: --- \defineoverlay[Label][\useMPgraphic{Label}] \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0); draw p yshifted -1cm withpen

[NTG-context] [OT] No panic --- it's a polar bear

2011-03-19 Thread luigi scarso
http://en.wikipedia.org/wiki/Knut_(polar_bear) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Text with background (overlay with a line by MP)

2011-03-19 Thread Procházka Lukáš
On Sat, 19 Mar 2011 23:13:46 +0100, Aditya Mahajan adit...@umich.edu wrote: You do not need yshifted. But you need to set the bounding box of the resulting image correctly. \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0); draw p withpen pencircle scaled 1mm withcolor

Re: [NTG-context] Producing quotesingle glyph

2011-03-19 Thread Pontus Lurcock
Thanks, Mojca and Khaled! Taking trep out of the default features works nicely, but since in this case I want quote-replacement as the default and straight quotes only occasionally, I ended up with the following solution: \definefontfeature[default][liga=yes,kern=yes,tlig=yes,trep=yes,mode=node]

Re: [NTG-context] Producing quotesingle glyph

2011-03-19 Thread Pontus Lurcock
On Sun 20 Mar 2011, Pontus Lurcock wrote: Will wikify later today in case anyone else ever needs this. Done: http://wiki.contextgarden.net/Quotesingle . At present it is only linked from http://wiki.contextgarden.net/Visuals , because I couldn't find many appropriate related pages. Pont