[NTG-context] \cdots not displayed in latest beta

2011-04-16 Thread Mathieu Boespflug
Hi, in the latest beta (211.04.13), the cdots in the following, display as a blank: \starttext foo $x \cdots y$ bar. \stoptext ldots, however, work fine. Regards, Mathieu ___ If your question is of interest

[NTG-context] Alignment of arrows and spacing of indices

2011-04-16 Thread Mathieu Boespflug
Hi, in the following document, \starttext foo $a \longrightarrow_\sigma b$ bar. \stoptext the arrow doesn't look right and the spacing of the \sigma is wrong. Latest beta (2011.04.13). Regards, Mathieu ___ If your

[NTG-context] section headings

2011-04-09 Thread Herbert Voss
With the following code I get 1. Teil foo § 1 1 bar i baz but I need 1. Teil foo § 1 A. bar I. baz I cannot get the needed information from the wiki and the documentation. \def\PartNo#1{#1.\,Teil} \def\ChapterNo#1{§ \headnumber[part] \determineheadnumber[chapter

[NTG-context] Error with \section

2011-04-08 Thread Herbert Voss
{Foo} \section{A long title} \input knuth \section{A long title} \input knuth \section{A long title} \input knuth \chapter{Bar} \startitemize \item one \item two \item three \stopitemize \section{A long title} \input knuth \section{A long title} \input knuth %\section{A long title} \input knuth

[NTG-context] \blank[...]

2011-04-07 Thread Herbert Voss
From the source of the manual: \starttext bar\par \blank[2\bodyfontsize] bar \stoptext with latest minimal I get: [...] system tex error on line 8 in file zz.tex: Illegal unit of measure (pt inserted) ... 1 \starttext 2 bar\par 3 \blank[2\bodyfontsize] 4 bar 5

[NTG-context] \definepalet ignores transparency (mkiv)

2011-03-30 Thread Peter Rolf
Hi, the subject says it all. The question left is if this is a bug or a feature :-) Example: \starttext \definecolor[foo] [s=0,a=1,t=.5] \definepalet[bar] [foobar=foo] \blackrule[width=3cm,height=3cm,color=foo] % transparent black \blackrule[width=3cm,height=3cm,color=foobar] % pure black

Re: [NTG-context] focus=standard not respected

2011-03-29 Thread Marco
On 2011-03-28 Marco net...@lavabit.com wrote: In the following example the page focus jumps back to »fit« after clicking on the footnote number after »Foo«, although »focus=standard« is set. \setupinteraction [state=start, focus=standard] \starttext Foo \startfootnote Bar

[NTG-context] Reference jump location

2011-03-28 Thread Marco
=width] \starttext \completecontent [interaction=all] \startchapter [title=Foo] \stopchapter \page \startchapter [title=Bar] \stopchapter \stoptext Marco ___ If your question is of interest to others as well, please

[NTG-context] focus=standard not respected

2011-03-27 Thread Marco
In the following example the page focus jumps back to »fit« after clicking on the footnote number after »Foo«, although »focus=standard« is set. \setupinteraction [state=start, focus=standard] \starttext Foo \startfootnote Bar \stopfootnote \stoptext How to respect the users scaling factor

Re: [NTG-context] header entries semi-wrong

2011-03-10 Thread Wolfgang Schuster
and \getmarking use TeX’s mark mechanism which is meant for elements which are added after the page is finished. Here is a example which shows a problem with expansion: \setuplayout[lines=10] \def\foo{foo} \appendtoks\gdef\foo{bar}\to\everyaftershipout \starttext \dorecurse{20}{\foo\par} \stoptext What you

Re: [NTG-context] playing colors more

2011-03-01 Thread Taco Hoekwater
On 03/01/2011 03:43 PM, Hans van der Meer wrote: Oeps, I must have been spoiled by the \startxmlsetups where spaces at line end seem to be harmless. By the way, how can one get rid of the black bar under the color bars? It looks like a black background that has been shifted down somewhat. I

Re: [NTG-context] attachment attaches twice - more research

2011-02-23 Thread Michail Vidiassov
in the title bar of the annotation’s pop-up window when open and active. This entry shall identify the user who added the annotation. and shows as the upper line when mouse pointer is above attachment icon. Did not try to have file size and time information added to file stream - but it'd be nice

Re: [NTG-context] \useattachment: Embedding files in PDFs - was attachment attaches twice - more research

2011-02-21 Thread Michail Vidiassov
for an example PDF file.) --- what he names author/subject is the T entry in annotation dictionary (the same where /Subtype /FileAttachment goes), that is described as The text label that shall be displayed in the title bar of the annotation’s pop-up window when open and active. This entry shall

Re: [NTG-context] math: `\overbar` with fractions and subscripts

2011-02-07 Thread Paul Menzel
. `\overline` works as you say, but it looks typographically different in the respect that the bar is closer to the letter, which of course solves the issue for the inline fraction. For α this looks quite strange in my eyes. But I do not know a lot about typography. Please find the PDF-output attached

Re: [NTG-context] math: `\overbar` with fractions and subscripts

2011-02-07 Thread Aditya Mahajan
On Mon, 7 Feb 2011, Paul Menzel wrote: thank you for your answer. `\overline` works as you say, but it looks typographically different in the respect that the bar is closer to the letter, which of course solves the issue for the inline fraction. For α this looks quite strange in my eyes. But I

[NTG-context] math: `\overbar` with fractions and subscripts

2011-02-04 Thread Paul Menzel
/context.mkiv MTXrun | current version: 2011.02.04 10:01 1. The bar divides for subscripts/indices. 2. If you look at the first fraction, the bar is as long as the stroke from the fraction and therefore I think too long. 3. When inlining the fraction in text the bar fuses with the stroke

Re: [NTG-context] math: `\overbar` with fractions and subscripts

2011-02-04 Thread Otared Kavian
: 2011.02.04 10:01 1. The bar divides for subscripts/indices. 2. If you look at the first fraction, the bar is as long as the stroke from the fraction and therefore I think too long. 3. When inlining the fraction in text the bar fuses with the stroke from the fraction. Are these know

Re: [NTG-context] Differences for \Vert in mkii and mkiv

2011-02-02 Thread Otared Kavian
result. 0x2016 is described in char-def.lua, and in font-agl.lua. FF605 is referred to only in math-vfu.lua. Maybe if Hans has a little time, he can explain where the double vertical bar is constructed: the problem is that these bars are scaled swelled (or English) rules rather than bars

Re: [NTG-context] Pipe symbol

2011-01-25 Thread Khaled Hosny
} \stoptext Just in time! exactly what I was googling for a second ago (apart from the bar, I wanted the others too!) Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer

[NTG-context] Vertical rules in multiple column mode

2011-01-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
on the next page. It seems that the length (or range) of the vertical bar is given by the height of the FIRST column. It seems to me that the rule height should rather be given as (or related to): 1) MAXIMUM of height of all columns 2) or height of i-th rule as maximum of height of i- and (i+1

Re: [NTG-context] \e!start in lua

2011-01-16 Thread Wolfgang Schuster
}),\\startframedtext) context.setvalue(table.concat({stop ,foo}),\\stopframedtext ) \stopluacode \starttext \foo{foo} \startfoo bar\stopfoo \stoptext You can also write “context.setvalue(start..foo,…)” but table.concat looks better but the question is why don’t you use just tex to create the start

Re: [NTG-context] \e!start in lua

2011-01-16 Thread Aditya Mahajan
,\\framedtext) context.setvalue(table.concat({start,foo}),\\startframedtext) context.setvalue(table.concat({stop ,foo}),\\stopframedtext ) \stopluacode \starttext \foo{foo} \startfoo bar\stopfoo \stoptext This would just create \startfoo. \setvalue{\e!start foo} creates a interface specific command. The code

Re: [NTG-context] Error with \placetable ... \starttable

2011-01-11 Thread Aditya Mahajan
On Thu, 6 Jan 2011, Khaled Hosny wrote: Looks like \stattable ... \stoptable no longer do grouping, the following is broken unless \stattable ... \stoptable is grouped. \starttext \placetable[here,nonumber]{foo} \starttable[|r|r|] \NC foo \NC bar \AR \stoptable \stoptext This is still

[NTG-context] Error with \placetable ... \starttable

2011-01-05 Thread Khaled Hosny
Looks like \stattable ... \stoptable no longer do grouping, the following is broken unless \stattable ... \stoptable is grouped. \starttext \placetable[here,nonumber]{foo} \starttable[|r|r|] \NC foo \NC bar \AR \stoptable \stoptext Regards, Khaled -- Khaled Hosny Arabic localiser and member

Re: [NTG-context] Help: tweaking bibliography style

2010-12-15 Thread Nicola
the year appear at the end and how to make the publisher in italics, too? I would like such changes to apply to other types of references as well (books, inproceedings, etc...) Second, \cite[Thor:2010,Bar:2009] produces something like [6 and 9]. How do I get rid of 'and' and get simply [6,9

[NTG-context] Help: tweaking bibliography style

2010-12-14 Thread Nicola
to other types of references as well (books, inproceedings, etc...) Second, \cite[Thor:2010,Bar:2009] produces something like [6 and 9]. How do I get rid of 'and' and get simply [6,9]? This is my current setup (mainly code copied from the Wiki): \usemodule[bib] \setupbibtex[database=my-biblio,sort

Re: [NTG-context] TEI - conTeXt

2010-12-10 Thread Jon Crump
/div div xml:id=b bar /div /text /body set foo and not bar. This, for example, does not work: \startxmlsetups xml:minimalsetups \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{body|text|div}{xml:*} \xmlsetsetup{#1

Re: [NTG-context] TEI - conTeXt

2010-12-10 Thread Thomas Schmitz
. You then traverse all the elements and drill down to a witness element whose xml:id attribute is identical to the wit attribute of your current element. So element wit=#foo will pick up the content of witness xml:id=foobar/witness and print bar. This should get you going. Last point: I don't

[NTG-context] enumeration counters, way=bysection

2010-11-25 Thread Yury G. Kudryashov
Hi! I want to have the following (Theorems and Lemmas share the counter, way=bysection): Section 1. Foo Theorem 1.1 Bar Lemma 1.2 Baz Section 2. Foo Theorem 2.1 Bar Lemma 2.2 Baz The following used to work about a month or two ago. \setupenumerations[way=bysection] \newcounter\theorems

[NTG-context] tabulate

2010-11-20 Thread Herbert Voss
this worked some days ago: \starttext \starttabulate[|p(3cm)|p|] \NC foo \NC bar \NC \stoptabulate \stoptext minimal mkiv Herbert systems : begin file 09-02-15.ctxcrop at line 1 ! Undefined control sequence. \bskip ...bulatehook \ifconditional \autotabulate

Re: [NTG-context] tabulate

2010-11-20 Thread Hans Hagen
On 20-11-2010 9:27, Herbert Voss wrote: this worked some days ago: \starttext \starttabulate[|p(3cm)|p|] \NC foo \NC bar \NC \stoptabulate \stoptext minimal mkiv I'll check it ... I did some cleanup + added color support. For the moment add \NR to end the row

[NTG-context] tabulate font setting

2010-11-20 Thread Herbert Voss
trhe documentation says, that this should work: \starttext {\bs bold slanted} {\bi bold italic} \starttabulate[||f\bs|f\bi|] \NC foo\NC bar\NC baz\NC \stoptabulate \stoptext I get a foo bar baz in the default font setting Herbert

Re: [NTG-context] tabulate

2010-11-20 Thread Herbert Voss
\starttabulate[|p(0.35\textwidth)|p(0.125\textwidth)|p|]\HL \NC foo \NC bar \NC baz \NC\NR \stoptabulate \stoptext Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Numbering chapters from an arbitrary number

2010-11-16 Thread Herbert Voss
--- So it seems I'd need to reset an internal counter... The question remains. \starttext \setupheadnumber[chapter][2] \chapter{foo} bar \chapter{bar} baz \stoptext Herbert ___ If your question is of interest

Re: [NTG-context] Numbering chapters from an arbitrary number

2010-11-16 Thread Procházka Lukáš Ing . - Pontex s . r . o .
... How easy! Thanks. Lukas \setupheadnumber[chapter][2] \chapter{foo} bar \chapter{bar} baz \stoptext Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

[NTG-context] Grabbing first letter of a sentence

2010-11-15 Thread Mathieu Boespflug
[chapter][command=\MyChapterTitle] \starttext \chapter{Foo} bar \stoptext This doesn't work because the chapter title isn't expanded out before passing it to \MyChapterTitle. I know there is deeptextcommand but I need the chapter title during the layout of chapter number + title, so I need to use

[NTG-context] typescripts

2010-11-12 Thread Herbert Voss
[mylibertine,12pt,rm] foo bar baz \ss foo bar baz \tt foo bar baz %\showbodyfont \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] Lucida

2010-11-08 Thread Herbert Voss
seconds define fonts source file 'lbr' is not found define fonts unable to determine font format for '' define fonts source file 'lbd' is not found ... it looks for the yy filenames, but I have only the TUG ones. In which file is this defined? \setupbodyfont[lucida] \starttext foo \ss bar

Re: [NTG-context] Lucida

2010-11-08 Thread Hans Hagen
] \starttext foo \ss bar \stoptext context-minimal Lucida is somewhat special. Context has always supported lucida but used the original lucida names (lbr.* etc). However, when tig took over from yandy it decided not to ship those files and as a result lucida became unuseable. Recently we adapted

Re: [NTG-context] \Cap

2010-11-07 Thread Herbert Voss
#1% {{\def\\##1{\smallcapped{##1}}#1}} \unexpanded\def\SmallCapped#1% {\CAPPED{\\#1}} \def\Cap{\mathortext\normalCap\SmallCapped} \starttext \Cap{foo bar baz} \CAP{foo \\bar \\baz} \stoptext Herbert ___ If your

[NTG-context] \margintext

2010-11-06 Thread Herbert Voss
The documentation says, that this should work, but it didn't: \starttext \margintext{foo}bar baz \stoptext However, in the documentation the example also didn't show the margin text (p 64). Herbert ___ If your

Re: [NTG-context] \margintext

2010-11-06 Thread Aditya Mahajan
On Sat, 6 Nov 2010, Herbert Voss wrote: The documentation says, that this should work, but it didn't: \starttext \margintext{foo}bar baz \stoptext However, in the documentation the example also didn't show the margin text (p 64). There was an email about it yesterday with a fix. Did you see

Re: [NTG-context] \margintext

2010-11-06 Thread Herbert Voss
Am 06.11.2010 22:28, schrieb Aditya Mahajan: On Sat, 6 Nov 2010, Herbert Voss wrote: The documentation says, that this should work, but it didn't: \starttext \margintext{foo}bar baz \stoptext However, in the documentation the example also didn't show the margin text (p 64

[NTG-context] greek letters in itemize

2010-10-31 Thread Herbert Voss
Do I need some additional settings to get lower greek letters in the example? I get only a dot for g \starttext \startitemize[g] \item foo \item bar \item baz \item baz \stopitemize \startitemize[G] \item foo \item bar \item baz \item baz \stopitemize \stoptext MTXrun | current version

Re: [NTG-context] greek letters in itemize

2010-10-31 Thread Hans Hagen
On 31-10-2010 12:11, Herbert Voss wrote: Do I need some additional settings to get lower greek letters in the example? I get only a dot for g \starttext \startitemize[g] \item foo \item bar \item baz \item baz \stopitemize \startitemize[G] \item foo \item bar \item baz \item baz \stopitemize

Re: [NTG-context] greek letters in itemize

2010-10-31 Thread luigi scarso
2010/10/31 Herbert Voss herbert.v...@fu-berlin.de: Do I need some additional settings to get lower greek letters in the example? I get only a dot for g \setupbodyfont[dejavu] \starttext \startitemize[g] \item foo \item bar \item baz \item baz \stopitemize \startitemize[G] \item foo \item bar

[NTG-context] \mar

2010-10-24 Thread Herbert Voss
as default text. I suppose, that \mar has no optional argument? \starttext \startitemize \item baz \mar[foo]{+} bar baz \item barbaz \stopitemize \stoptext Herbert ___ If your question is of interest to others as well

[NTG-context] header setting

2010-10-20 Thread Herbert Voss
[DE][DE] \setuplayout[width=8cm,height=10cm] \setuparranging[doublesided] \setuppagenumbering[alternative=doublesided] \setupheads[alternative=margin,align=outer] \starttext \chapter{Foo} \section{A long title} \input knuth \section{A long title} \section{A long title} \input knuth \chapter{Bar

Re: [NTG-context] header setting

2010-10-20 Thread Andreas Harder
% {\ininnermargin{#1} \inframed[width=broad,align=inner,frame=off,offset=none]{#2}} \starttext \chapter{Foo} \section{A long title} \input knuth \section{A long title} \section{A long title} \input knuth \chapter{Bar} \section{A long title} \input knuth \section{A long title} \input knuth \section

Re: [NTG-context] offset for enumeration counter

2010-09-17 Thread Philipp Gesang
(apart from the reference) argument to “\item”, e.g. ···8 \startitemize[n] \item[n=1] foo \item[n=2] bar \item[n=3] foo \item[n=5] bar \item[n=8] foo \item[n=13] bar \stopitemize ···8

Re: [NTG-context] offset for enumeration counter

2010-09-17 Thread Wolfgang Schuster
this on per-item basis. This would amount to having another (apart from the reference) argument to “\item”, e.g. ···8 \startitemize[n] \item[n=1] foo \item[n=2] bar \item[n=3] foo \item[n=5] bar \item[n=8] foo \item[n=13] bar

[NTG-context] [***SPAM***] How to break lines with \type{}?

2010-08-26 Thread Peter Münster
Hello, How can I teach \type{} to break lines just as \hyphenatedurl{} does? \starttext \hsize1pt \type{C:bla/blub/foo/bar} \hyphenatedurl{C:bla/blub/foo/bar} \stoptext TIA for any help! Peter -- Contact information: http://pmrb.free.fr/contact

Re: [NTG-context] [***SPAM***] How to break lines with \type{}?

2010-08-26 Thread Hans Hagen
On 26-8-2010 11:02, Peter Münster wrote: Hello, How can I teach \type{} to break lines just as \hyphenatedurl{} does? \starttext \hsize1pt \type{C:bla/blub/foo/bar} \hyphenatedurl{C:bla/blub/foo/bar} \stoptext not, but there is \typ for normal text Hans

Re: [NTG-context] How to break lines with \type{}?

2010-08-26 Thread Peter Münster
On Thu, Aug 26 2010, Hans Hagen wrote: On 26-8-2010 11:02, Peter Münster wrote: Hello, How can I teach \type{} to break lines just as \hyphenatedurl{} does? \starttext \hsize1pt \type{C:bla/blub/foo/bar} \hyphenatedurl{C:bla/blub/foo/bar} \stoptext not, but there is \typ for normal

[NTG-context] \setupcite[authornum][...] not working

2010-06-08 Thread Stefan Müller
. \usemodule[bib] \setupbibtex[database={test.bib}] \setuppublications[alternative=ams, refcommand=authornum] \setupcite[authornum][left={\}, andtext={ foo }, namesep={ bar }] % just some random options, none of them works \starttext

Re: [NTG-context] Please fill out the following form

2010-06-04 Thread Taco Hoekwater
document message bar Best wishes, Taco ___ 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

Re: [NTG-context] ConTeXt for TL 2010

2010-04-21 Thread Hans Hagen
On 21-4-2010 2:51, Mojca Miklavec wrote: Dear Hans, since the version of LuaTeX will be frozen to 0.60.0 in TeX Live (I assume), would it make sense to put some effort into making sure that the version of ConTeXt that will be shipped with TeX Live will be at least compatible (and possibly free

Re: [NTG-context] code

2010-04-17 Thread R. Bastian
On Sat, 17 Apr 2010 06:37:02 +0200 Wolfgang Schuster schuster.wolfg...@googlemail.com scribit: [...] the sign | (vertical bar) seems to be a special char (context/mkiv) it is only compiled if present in pairs |text | the message: File ended while use of \next \type{|} works

Re: [NTG-context] code

2010-04-16 Thread R. Bastian
(): a = 3 b = 4 \stoplines \stoptext Wolfgang - the sign | (vertical bar) seems to be a special char (context/mkiv) it is only compiled if present in pairs | text | the message: File ended while use of \next \type{|} works - -- René

Re: [NTG-context] code

2010-04-16 Thread Wolfgang Schuster
lines environment. \definelines[code][style=mono,space=on] \startcode \bold{def} ra() ... \stopcode the sign | (vertical bar) seems to be a special char (context/mkiv) it is only compiled if present in pairs |text | the message: File ended while use of \next \type{|} works To keep

Re: [NTG-context] Building a guitar chord using MP

2010-04-10 Thread Taco Hoekwater
to overlay circles on it using TeX? Please, an example. First, create a metapost macro to draw a dot on a bar using two arguments. Let's assume this is mark(a,b). I won't write that metapost macro for you, you have to do that yourself. \startuseMPgraphic{chordgrid}{e,B,G,D,A,E} drawoptions(withpen

[NTG-context] InteractionsBar - another shot

2010-04-02 Thread Matthias Weber
[ContrastColor2][r=.1,g=.1,b=.4] %current actionbar bar \setupinteraction [ state=start, menu=on, page=yes, color=HyperlinkColor

Re: [NTG-context] setupinmargin failing?

2010-03-24 Thread Wolfgang Schuster
\processcommalist[foo,bar]\quotation \processcommalist[]\quotation \processcommalist[abc,xyz]\quotation \stoptext You expect to get “foo”“bar” “” “abc”“xyz” as output but what you really get is “foo”“bar” “abc”“xyz” The empty argument is ignored and nothing happens. Wolfgang

Re: [NTG-context] beta: \underbar is broken (mkiv)

2010-03-23 Thread Taco Hoekwater
Hans Hagen wrote: On 22-3-2010 21:06, Peter Rolf wrote: Hi, the underbar line is drawn vertically here. \starttext sonder\underbar{bar} \stoptext MTXrun | current version: 2010.03.20 22:59 This is LuaTeX, Version beta-0.53.0-2010032213 (rev 3535) looks like a but in luatex ... when

Re: [NTG-context] beta: \underbar is broken (mkiv)

2010-03-23 Thread Peter Rolf
Am 23.03.2010 11:02, schrieb Taco Hoekwater: Hans Hagen wrote: On 22-3-2010 21:06, Peter Rolf wrote: Hi, the underbar line is drawn vertically here. \starttext sonder\underbar{bar} \stoptext MTXrun | current version: 2010.03.20 22:59 This is LuaTeX, Version beta-0.53.0-2010032213

[NTG-context] beta: \underbar is broken (mkiv)

2010-03-22 Thread Peter Rolf
Hi, the underbar line is drawn vertically here. \starttext sonder\underbar{bar} \stoptext MTXrun | current version: 2010.03.20 22:59 This is LuaTeX, Version beta-0.53.0-2010032213 (rev 3535) Peter ___ If your

Re: [NTG-context] beta: \underbar is broken (mkiv)

2010-03-22 Thread Hans van der Meer
Just checked here in ConTeXt ver: 2010.03.20 22:59 MKIV fmt: 2010.3.21 int: english/ english Can confirm that: \starttext sonder\underbar{bar} gives vertical bar, but the following (note the blank line after starttext) does not. \starttext sonder\underbar{bar} met vriendelijke groet

Re: [NTG-context] beta: \underbar is broken (mkiv)

2010-03-22 Thread Hans Hagen
On 22-3-2010 21:06, Peter Rolf wrote: Hi, the underbar line is drawn vertically here. \starttext sonder\underbar{bar} \stoptext MTXrun | current version: 2010.03.20 22:59 This is LuaTeX, Version beta-0.53.0-2010032213 (rev 3535) looks like a but in luatex ... when i use a long word we get

[NTG-context] Page numbering and MkIV

2010-01-14 Thread Vedran Miletić
This code: \enableregime[utf] \starttext \title{BLAH BLAH\\ BLAH} \setuppagenumbering[state=stop] \page \setuppagenumbering[state=start,location={footer,center},conversion=romannumerals,style={\bf}] \completecontent \page \setuppagenumbering[state=stop] \chapter[chapter:foo]{Foo Bar

Re: [NTG-context] XML - creating a list by hand (mkiv)

2010-01-12 Thread Peter Rolf
, but not into the element. I'm not sure, if I have understood the meaning of the pattern parameter correctly. Is this equal to XPath? %- \starttext \startluacode local xmp = xml.convert(?xml version='1.0' standalone='yes'?\nroot\nbarbla/bar\n/root) --xml.before(xmp,/root/bar,subfoo/sub

Re: [NTG-context] Pretty Printing Python code

2009-12-29 Thread luigi scarso
] \setuptyping [PYTHON][bodyfont=10pt,option=color] \installprettytype[PYTHON] [PY] \definetyping [PYTHON][option=PYTHON] \starttext \section{Python sample} \startPYTHON #!/usr/local/bin/python import os.path, sys # Just a comment foo = os.environ.get('FOO') bar

Re: [NTG-context] XML - creating a list by hand (mkiv)

2009-12-22 Thread Hans Hagen
not sure, if I have understood the meaning of the pattern parameter correctly. Is this equal to XPath? %- \starttext \startluacode local xmp = xml.convert(?xml version='1.0' standalone='yes'?\nroot\nbarbla/bar\n/root) --xml.before(xmp,/root/bar,subfoo/sub) --xml.delete(xmp,bar

Re: [NTG-context] XML - creating a list by hand (mkiv)

2009-12-22 Thread Peter Rolf
\nbarbla/bar\n/root) --xml.before(xmp,/root/bar,subfoo/sub) --xml.delete(xmp,bar) --xml.inject(xmp,/sub,subbar/sub)-- only for xml-files? xml.insert(xmp,/root/bar,sub/) --xml.inject(xmp,/*/bar,sub/) this works sub/sub Mhh, not here. When I look into the saved file (test.xml) I get ?xml

Re: [NTG-context] XML - creating a list by hand (mkiv)

2009-12-22 Thread Hans Hagen
\nbarbla/bar\n/root) --xml.before(xmp,/root/bar,subfoo/sub) --xml.delete(xmp,bar) --xml.inject(xmp,/sub,subbar/sub)-- only for xml-files? xml.insert(xmp,/root/bar,sub/) --xml.inject(xmp,/*/bar,sub/) this works sub/sub Mhh, not here. When I look into the saved file (test.xml) I get add some

[NTG-context] XML - creating a list by hand (mkiv)

2009-12-21 Thread Peter Rolf
. Is this equal to XPath? %- \starttext \startluacode local xmp = xml.convert(?xml version='1.0' standalone='yes'?\nroot\nbarbla/bar\n/root) --xml.before(xmp,/root/bar,subfoo/sub) --xml.delete(xmp,bar) --xml.inject(xmp,/sub,subbar/sub)-- only for xml-files? xml.insert(xmp,/root/bar,sub

[NTG-context] Biblography list does not show numbers

2009-12-05 Thread Matthijs Kooijman
Hey all, I'm trying to use a bibliography, but it seems no numbers are show in the biblography that is generated. The following example: Test.tex: = \usemodule[bib] \setupbibtex[database=Test] \starttext \section{foo} Blaa \cite[foo] Bar

Re: [NTG-context] inothermargin overlaps

2009-12-02 Thread Matthijs Kooijman
W00ps, forgot to include the testcase I made: \starttext Foo \inmargin{Blerf} Bar \inmargin {Baz} \stoptext signature.asc Description: Digital signature ___ If your question is of interest to others as well, please

Re: [NTG-context] inothermargin overlaps

2009-12-02 Thread luigi scarso
On Wed, Dec 2, 2009 at 11:47 AM, Matthijs Kooijman matth...@stdin.nl wrote: W00ps, forgot to include the testcase I made: \starttext Foo \inmargin{Blerf} Bar \inmargin {Baz} \stoptext Your code is ok Try \starttext Foo Baz \inmargin {Blerf \\ Baz} \stoptext \starttext Foo Baz \inmargin

Re: [NTG-context] inothermargin overlaps

2009-12-02 Thread Matthijs Kooijman
. For example: Some short paragraph referencing foo. \refdef{foo} And another paragraph refering bar. \refdef{bar} This has the references in the logical places. With your suggestions, I must change this to: Some short paragraph referencing foo. \refdef{foo,bar} And another paragraph

Re: [NTG-context] Bib/bibtex duplicate entries

2009-10-21 Thread Émilien Tlapale
] \setupbibtex[database=ctx-tx] \starttext \startbodymatter \chapter{Chapter X} \cite[bar] \cite[bar] \stopbodymatter \startappendices \chapter{Bibliography} \placepublications \stopappendices \stoptext @article{bar, author={Bar, K.}, title={Hello world}, journal={Super Smurfs}, year

Re: [NTG-context] Cambria integral operator

2009-10-15 Thread Taco Hoekwater
font) virtual definitions are far from perfect (but that should not affect you, as you are using CambriaMath). * There is no support for skewed (text-style, with a diagonal bar, like in the frac feature) fractions yet in luatex. * The traditional TeX commands \atopwithdelims, \overwithdelims

[NTG-context] \setupquotation affecting \quote

2009-10-09 Thread Matthijs Kooijman
, I think this is not supposed to happen. This happens with MkII as well as MkIV, it seems. The following example shows the problem: \starttext \quote{Foo} \setupquotation[style=tfb] \quote{Bar} \stoptext Gr. Matthijs signature.asc Description: Digital signature

[NTG-context] overprint bug (mkiv)

2009-09-16 Thread Peter Rolf
}] \definelayer[BAR] \starttext % OK \setlayer[BAR][x=0mm,y=0mm] {\framed[background=color,backgroundcolor=lightgray,frame=off] {\startoverprint first one\stopoverprint}} \setlayer[BAR][x=50mm,y=0mm] {\framed[background=color,backgroundcolor=lightgray,frame=off] {\startoverprint second one

Re: [NTG-context] How can I start wiith 2 in itemize?

2009-09-13 Thread Peter Rolf
{\getitemparameter\currentitemlevel\c!placestopper}\v!yes {\def\tempsymbol{\getitemparameter\currentitemlevel\c!stopper}} {\let\tempsymbol\empty}% \fi} I get the correct numbers with the following example. \starttext \startitemize[n][start=2] \item foo \item bar \stopitemize

Re: [NTG-context] How can I start wiith 2 in itemize?

2009-09-03 Thread Peter Rolf
{\def\tempsymbol{\getitemparameter\currentitemlevel\c!stopper}} {\let\tempsymbol\empty}% \fi} I get the correct numbers with the following example. \starttext \startitemize[n][start=2] \item foo \item bar \stopitemize \startitemize[n] \item foo \item bar \stopitemize \stoptext

Re: [NTG-context] How can I start wiith 2 in itemize?

2009-09-03 Thread Xan
\currentitemlevel\c!placestopper}\v!yes {\def\tempsymbol{\getitemparameter\currentitemlevel\c!stopper}} {\let\tempsymbol\empty}% \fi} I get the correct numbers with the following example. \starttext \startitemize[n][start=2] \item foo \item bar \stopitemize \startitemize[n] \item foo \item

[NTG-context] Using \startalign outside of math mode?

2009-08-28 Thread Matthijs Kooijman
Hi, I'm using a custom pretty printer to apply some formatting to a buffer. However, I'm not using a monospaced font, but some sans serif font to display the result. In the original text, I have some lines that are nicely aligned using leading spaces. For example: foo = bar | baz

Re: [NTG-context] Using \startalign outside of math mode?

2009-08-28 Thread Matthijs Kooijman
Hi all, foo = bar | baz it seems I found some sort of a solution. Using the \setwidthof I found at [1], I wrote the following: \def\setwidthof#1\to#2% {\bgroup \setbox\scratchbox\hbox{#1}% \expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}} foo = bar \setwidthof{foo

Re: [NTG-context] Using \startalign outside of math mode?

2009-08-28 Thread Aditya Mahajan
spaces. For example: foo = bar | baz Obviously, when using a non monospaced font for this, the alignment is lost. When in math mode, I can use \startalign to force alignment, like: \startalign foo \NC= bar \NC| baz \stopalgin However, I haven't manage to switch to math mode inside

Re: [NTG-context] PDF x1a:2001 and Context

2009-08-27 Thread John Culleton
product or other which degrades the quality of both type and especially bar codes. It is perhaps not a problem that you choose to address in Context. But I am trying all avenues looking for an Open Source solution that can meet these draconian requirements. -- John Culleton Able Indexers

Re: [NTG-context] PDF x1a:2001 and Context

2009-08-27 Thread luigi scarso
, typically a cover layout, does not meet the above requirements then it is pre-rasterized by the printer prior to prepress in some product or other which degrades the quality of both type and  especially bar codes. It shouldn't. You should use vector type and vector barcode, not bitmap (ie gnu barcode

Re: [NTG-context] \overbar in math mode

2009-08-16 Thread Aditya Mahajan
On Sun, 16 Aug 2009, Xan wrote: Hi, Just a question: what's the equivalent of \overbar in math mode. \underbar works in math mode, but \overbar does not. \bar or \overline Aditya ___ If your question

Re: [NTG-context] git repository

2009-08-11 Thread Matthijs Kooijman
changes to multiple files, with a single message, so if you work on one logical change at a time, this should not be a problem. Perhaps you are thinking of CVS, which (AFAIK) provides only per-file versioning? Also, even short messages like, Added \foo command, or Fixed \bar alignment would probably

Re: [NTG-context] git repository

2009-08-11 Thread Hans Hagen
changes in files (even typos or just formatting) Also, even short messages like, Added \foo command, or Fixed \bar alignment would probably be helpful. i've probably forgotten that by the time i submit a zip as there can be quit esome time between a commit then Then again, you are completely

Re: [NTG-context] I can't change startitemize[n]-- startitemize[1]

2009-07-23 Thread Hans Hagen
] \usetikzlibrary[mindmap,arrows,calc,decorations.pathmorphing,decorations.markings] % it seems that something is loaded twice (or at least dimension registers are redefined) \setupunderbar[alternative=b] % Fix underline style % you can use the textbackgrounds for this (see anch-bar) Hans

Re: [NTG-context] I can't change startitemize[n]-- startitemize[1]

2009-07-23 Thread Xan
] % it seems that something is loaded twice (or at least dimension registers are redefined) \setupunderbar[alternative=b] % Fix underline style % you can use the textbackgrounds for this (see anch-bar) Thanks for this pointing Regards, Xan

[NTG-context] New to TeX, ConTeXt - How to conditionally include document sections?

2009-07-23 Thread Stephen Gadsby
, but not identical, equipment at a range of locations. My idea was to create one ConTeXt project that, depending upon the definition of one string in the project file, appropriately adjusts the resulting document's title and pulls in component foo for location A, bar for location B, etc. My problem

Re: [NTG-context] New to TeX, ConTeXt - How to conditionally include document sections?

2009-07-23 Thread Hans Hagen
information on similar, but not identical, equipment at a range of locations. My idea was to create one ConTeXt project that, depending upon the definition of one string in the project file, appropriately adjusts the resulting document's title and pulls in component foo for location A, bar for location

Re: [NTG-context] New to TeX, ConTeXt - How to conditionally include document sections?

2009-07-23 Thread Aditya Mahajan
and pulls in component foo for location A, bar for location B, etc. My problem is, after playing with if, ifx, and ifcase for some time and digging through all the ConTeXt and TeX documentation I can find, I'm still not understanding how to accomplish the TeX/ConTeXt equivalent

Re: [NTG-context] Inter-document Cross References

2009-07-20 Thread Hans Hagen
, google, this list, etc and I'm either searching for the wrong thing or there is nothing written about it. \goto{one}[document-1::foo] \goto{two}[document-2::bar] in mkii there is also \usereferences[somefile] that permits loading of references from another file Hans

<    5   6   7   8   9   10   11   12   13   >