Setting the distance parameter for item list to something greater than zero:
\setupitemgroup[itemize][each][joinedup,packed][distance=3pt]
generates in item lists overfull boxes: Overfull \hbox (3.0pt too wide).
(1) At the time I teached programming we always learned students "Silence the
compi
The \startxmlsetups definition has under #1 the current xml node available.
Is it possible to add one or more parameters?
Such that for example \xmlcommand{node}{lpath}{command {#1}{#2}…? } can be
called with extra parameters?
Hans van der Meer
_
Is there a single macro/setup that walks the xml-tree, visiting each node?
Either in preorder, inorder or postorder?
Thus instead of:
\xmlfilter{#1}{./command(xml:thecommand)}
\xmlfilter{#1}{./*/command(xml:thecommand)}
\xmlfilter{#1}{./*/*/command(xml:thecommand)}
\xmlfilter{#1}{./*/*/co
There is something in the processing of mathml I do not understand.
I keep the xml-node in a
\startxmlsetups my:setup
\def\mynode{#1}
\stopxmlsetups
Doing \xmlflush{\mynode} does typeset the contents of mynode, but not when
mynode contains a mathml tree! Then the error is:
Undefined contro
I have a mathml question: how to typeset properly a function with an argument:
f(x)?
In the ConTeXt examples for mathml I see for one:
x
But is there something like this for f(x), that is an "f" properly typeset?
Hans van der Meer
___
Where to order? Is there special pricing for NTG members? Or else what does it
cost?
Hans van der Meer
On 16 mrt. 2012, at 21:50, Hans Hagen wrote:
Hi,
It's now possible to order the new lucida open type (+math) fonts.
Pretty cheap for user group members,
Hans
I would like to accomplish the following in xml processing.
and then define the attribute value as a TeX
macro.
For example, to use this in font switching:
Doing this in the following manner does not work:
\startxmlsetups namespace
\def\macro{\xmlattdef{#1}{macro}{\empty}}
\stopxmlsetups
Is it possible to have the following order of actions?
..
The file contains an xml-tree starting at ..
At the moment I am processing the files with
\xmlprocessfile{fileroot}{filename}{}, but this generate separate node-lists
for and ; at least, that is my understanding of its workin
, Meer, H. van der wrote:
Processing xml I get with:
\writestatus{}{\xmlattributedef{#1}{.}{default}{???}}
output: > ???
and \writestatus{}{\xmlattribute{#1}{.}{default}} has no attribute
output
but with: \writestatus{}{\xmlattdef{#1}{defa
Processing xml I get with:
\writestatus{}{\xmlattributedef{#1}{.}{default}{???}}
output: > ???
and \writestatus{}{\xmlattribute{#1}{.}{default}} has no attribute
output
but with: \writestatus{}{\xmlattdef{#1}{default}{???}}
output: ***
Using the NTG-style to reprocess an older article I get the following error:
ConTeXt ver: 2012.03.10 13:15 MKIV
...
! Undefined control sequence.
...
system > tex > error on line 358 in file exammaps2.tex: Undefined
control sequence ...
\setupfootnotedefinition ->\setupnotedefinition
I ventured a first try of mathml in my code, but clearly I am doing something
wrong.
One of the examples in the XML-publication is:
3
ab
cd
It doesn't result in a neat formula, bu
This setting gives an overfull hbox of exactly 3 points:
\setupitemgroup[itemize][each]
[joinedup,packed]
[symbol=n,distance=3pt,
align=right,itemalign=flushright,
stopper={.\,}
]
In the logfile: Overfull \hbox (3.0pt too wide) detected at line 7
Changing to distance=4pt makes the hbox 4pt too wid
Of these two variants the second works.
The first gives as error an old enemy: the \Umathquad error
% gives an error:
\startsetups[test]
$\displaystyle
a=1
$
\stopsetups
\setup[test]
\stoptext
% works:
\starttext
$$\displaylines{a=1\cr b+c+d=3\cr}$$
\stoptext
ConTeXt ver: 2012.01.16 18:33 MKIV
Is the following impossible? The aim is checking the value of an attribute on a
node:
\xmlfilter{#1}{/content[@type ==\whatever]/command(xmlcommon:content)}
It seems the \whatever macro is not expanded.
How to?
Hans van der Meer
___
I have seen that I can load a file (containing ConTeXt code) with
\startxmlsetups xmlcommon:texinclude
\writestatus{TEST HVDM}{file: \xmlatt{#1}{file}}
\xmlload{#1}{\xmlatt{#1}{file}}
\stopxmlsetups
But how to use these loaded data? I want them included in ConTeXt-processing
like this but it does
Did I miss in the recent past some changes in the xmlverbatim API?
Exercising from the manual the macros
\xmldisplayverbatim{#1}{.} and \xmlinlineverbatim{#1}{.}
I get as an error:
! Undefined control sequence.
\startxmlinlineverbatim ... \doinitializeverbatim
l.4 ]
\ctxlxml #1->\directlua \zerocou
I think I can nail the responsible one.
As far as I can see the problem is tightly coupled with the following structure:
\placefigure[][]{caption}{\startcombination[]{contents}{}{contents}{}\stopcombination}
The other figures I have seem to placed well enough, the above structures
behaving err
In my document I have a number of \placefigures, some pdf's, some jpg's etc.
Mostly the figure are placed correct with respect to, the caption but sometimes
for no apparent reason I can spot, the picture is shifted up. In the first
illustration taken from the document this is clearly seen, pictu
Thanks. I couldn't find out myself.
I examined the wiki's referencepage before asking, but \setuppagenumbering and
\setuppagenumber didn't mention this.
Hans van der Meer
On 11 jan. 2012, at 17:06, Wolfgang Schuster wrote:
Am 11.01.2012 um 16:58 schrieb Meer, H. van der:
Trying to use roman numerals as pagenumbers failed. What am I doing wrong or
has some other thing changed?
A minimal example follows. Changing romannumerals into characters doesn't make
a difference.
This is ConTeXt ver: 2012.01.09 10:08 MKIV
% test pagenumber conversion
\setuppapersize[A6][A6
On 11 jan. 2012, at 11:33, luigi scarso wrote:
On Wed, Jan 11, 2012 at 11:11 AM, Hans van der Meer
mailto:havdm...@xs4all.nl>> wrote:
Something must have been changed with buffers between the versions:
ConTeXt ver: 2011.11.29 18:47 MKIV fmt: 2011.12.31
and
ConTeXt ver: 2012.01.09 10:08 MKI
It seems the problem was caused by older user-base files repeairing some
problems I had with older versions.
I find the following problems:
(1) \starthiding-\stophiding is not functioning. Minimal example:
\starttext
\starthiding
CRY:
\stophiding
Hello world.
\stoptext
Error message: ! Too many
Allthough typesetting through xmlcontext crashed, while direct typesetting did
not, the culprit does not seem to be in the different routes. After one day
ploughing through \halign and friends, I think I can nail it to a specific
\omit in my code. Not that all problems are solved with that find,
Reccently I did something random in ctxlua. I post it in the hope it will be
useful.
Hans van der Meer
\startluacode
-- Define our namespace as hvdm
hvdm = hvdm or {}
-- Return random series of numbers 1..n depending on the number of
arguments
function hvdm.ra
but I
keep my fingers crossed ;-)
No cause for calling "bug" therefore.
Hans van der Meer
On 5 jan. 2012, at 20:10, Wolfgang Schuster wrote:
>
> Am 05.01.2012 um 19:51 schrieb Meer, H. van der:
>
>> The macro \expandoneargafter seems to have been disappeared. Is that tr
The macro \expandoneargafter seems to have been disappeared. Is that true?
I need it for repairing an appearent failure in the \Word macro to capitalize
the first letter in some case.
Hans van der Meer
___
If your
That is it! Thanks.
Hans van der Meer
On 4 jan. 2012, at 17:09, Wolfgang Schuster wrote:
>
> Am 04.01.2012 um 16:25 schrieb Hans van der Meer:
>
>> Why does framedtext extends to the right in \itemize? Shouldn't the width be
>> reduced by the extend of the item-shift? Isn't that the idea beh
van der Meer
On 2 jan. 2012, at 20:04, Meer, H. van der wrote:
> The macro \xmlstripped{node}{lpath} gives me the xml resulting from the
> strip. after some operations on this result I would like to reprocess this in
> order to typeset.
> How do I accomplish this?
>
>
The macro \xmlstripped{node}{lpath} gives me the xml resulting from the strip.
after some operations on this result I would like to reprocess this in order to
typeset.
How do I accomplish this?
Hans van der Meer
_
The following setup gives an error.
\startxmlsetups xam:parameter
\edef\parameter{\xmltrim{#1}}
\stopxmlsetups
system > tex > error on line 7 in file xam-test.tex: Undefined control
sequence ...
\@@su:xam:parameter #1->\edef \parameter
{\xmltr
I have the following problem with xml processing. Spurious space is typeset,
annoyingly visible when nearly equivalent structures are typeset one under
another.
Take the following node structure where the node is the one intended to
contribute to the typeset material, whereas is not.
Is there a macro to retrieve the name of the file when inside a call to
\xmlprocessfile?
Hans van der Meer
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-co
In the processing of xml data path expressions like a/(b|c)/*/d etc. can be
used.
However, I have a node that can be present inside every node of the tree.
One method to collect these all together is bij successive calls:
\xmlall{#1}{/node}, \xmlall{#1}{/*/node}, \xmlall{#1}{/*/*/node}, etc.
But t
Has the following been found and corrected?
>> \definetypeface [\typescriptone] [tt] [mono] [cursor]
>> [default] \@tlstyle
\@tlstyle
\dousestyleparameter ...\currentstyleparameter {#1
}\ifx \curre
I am afraid I did not phrase my question clear enough. The problem is producing
a rearranged pdf from an existing one.
Hans van der Meer
On 17 dec. 2011, at 17:50, Marco Pessotto wrote:
> Hans van der Meer writes:
>
>> I think I saw in the recent past here something about rearranging the pa
Thanks. That solves the problem.
I obviously missed the fact that textext is an \hbox, a fact that explains its
behaviour.
Hans van der Meer
On 15 dec. 2011, at 16:06, Aditya Mahajan wrote:
> On Thu, 15 Dec 2011, Hans van der Meer wrote:
>
>> Is it correct that the use of textext(label,pos)
Is it impossible to typeset displaylines in textext called inside metapost?
The gives an error:
\starttext
\startMPpage
label(textext("$$\displaylines{a=b\cr}$$\strut"),origin);
\stopMPpage
\stoptext
metapost/context/base/metafun.mpiv
! Missing } inserted.
--
}
1]{label with space}{\externalfigure[arrows.pdf]}
> \setupcaptions[number=no]
> \placefigure{}{\externalfigure[arrows.pdf]}
> \setupcaptions[number=yes, suffix=\hskip5mm]
> \placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
> \stoptext
>
> Dne 26.11.2011
Something seems amiss in the code below. The idea is having in general figures
with numbered labels, but now and then a figure without. First I thought to use
[location=none] on the placement, but then the numbering is not interrupted:
label-1 (label-2 invisible), label-3. That is disturbing to
On 25 nov. 2011, at 17:33, Wolfgang Schuster wrote:
>
> Am 25.11.2011 um 17:26 schrieb Hans van der Meer:
>
>> I have troubles with interaction in a screen document.
>>
>> (1) I took the example from the wiki:
>> \setuppapersize[A6][A6]
>> \setupinteraction[state=start]
>> \setupreferencing[in
ConTeXt still has some mysteries for me ;-)
This time it is the equationnumbering.
Doing \placeformula\startformula..\stopformula gives the equation a certain
number, lets say (1.5).
Now I change the call to \placeformula[equ:thisfml]\startformula..\stopformula
and the number changes to (1.6).
W
On 21 nov. 2011, at 14:55, Wolfgang Schuster wrote:
>
> Am 21.11.2011 um 14:25 schrieb Hans van der Meer:
>
>> In my documents I use a macro in footnotes, which is defined though
>> \dodoubleargument.
>> However, enabling interactions (which must be done too) plays havoc with
>> \dodoubleargu
Thanks Wolfgang for the code.
Just in case it is of use I concocted my variation on this theme. Now this
simply replaces the \in, \at and \about macro's with one that does not show on
the page where the link originates, but behaves as of old everywhere else. I
introduced the unskip in order to
I guess I have found the culprit in the bad placement of formulas without an
equationnumber.
The minimal example I used is that found in strc-mat.mkiv, added a [-] in the
middle one.
\setuppapersize[A6][A6]
\setupformulae[spacebefore=0pt,spaceafter=0pt]
%
\starttext
\placenamedformula[one]{firs
Sofar I received 2 reactions.
(1)
Can't reproduce here; I get a 70KB pdf with your file and image.
ConTeXt standalone, 32-bit Linux, mkiv, version 2011.10.01 10:48.
(2)
I've encountered the same problem. The PDF is 1.8MB big. Compressed with qpdf
(qpdf --stream-data=compress) its only 60KB!
Lat
I find I get a fairly large whitespace after the formulas placed with:
\placeformula\startformula <> \stopformula
How can I reduce this? The wiki does not give a parameter description for
\setupformulas. In the code I can only find some [distance=] parameter. But
using it with for example \set
Works here too, MacOSX 10.7.2.
That is, I installed the latest context beta.
If it might help: I have a directory ~/TeX/context containing the following two
files:
contextbeta
Description: contextbeta
first-setup.sh
Description: first-setup.sh
and in the directory ~/TeX/context/tex/texmf
The goal is to make the following string in metapost:
string s; where s must become "\MPcolor{Blue}".
and ultimately execute this at the right moment with: scantokens s;
The following makes s = "MPcolor{Blue}":
s := "MPcolor" & char oct"134" & char oct"173" & "Blue" & char oct"134" &
char oct
After some struggling with text colouring in metafun I finally encountered on
the wiki:
Another difference is the way text is handled in mkiv. In particular, color
(withcolor) is not applied to metapost text. For example,
draw thelabel(decimal i, (i, 0) scaled 1cm) withcolor red ;
currently doe
Peter,
Thanks for trying to help. Because I solved the problem in another way you
might be interested or even benefit from it.
The underlying problem was drawing a border around a picture of given
dimensions. The border being either colored or left uncolored. The border color
should come from a
On 21 okt. 2011, at 17:13, Peter Rolf wrote:
> Am 21.10.2011 15:05, schrieb Hans van der Meer:
>> I cannot find the answer to the following question in Knuth's Metafont book.
>> The following definition with a trailing text argument:
>>
>> def mydef (expr a, b, c) text modifier =
>> if :
>
Does your result differ from mine here?
The endpoints on the line suggest it was fully drawn and thus metapost behaves
correctly.
This was with ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.19 int:
english/english on a Macintosh.
standalone.pdf
Description: standalone.pdf
Hans van der
syst-ini.mkiv line 626: \tracingstats\plusone
The only one I find, but I skipped yhe mkii files.
Hans van der Meer
On 19 okt. 2011, at 11:46, Hans Hagen wrote:
> On 19-10-2011 10:03, luigi scarso wrote:
>
>>> Any ideas what's going wrong here?
>>>
>>> Thanks in advance!
>> it seems that there
:32, Wolfgang Schuster wrote:
>
> Am 16.10.2011 um 19:14 schrieb Meer, H. van der:
>
>> Thanks, but I am afraid I do not understand the mechanism well enough.
>> I did the follwoing call in the shell:
>> context --fontchoice="my font choice" test
>>
>
t work.
Hans van der Meer
On 16 okt. 2011, at 18:02, Thomas A. Schmitz wrote:
> On 10/16/11 5:35 PM, Meer, H. van der wrote:
>> The "context --help" shows the following option:
>> --arguments=list set variables that can be consulted during a run
>> (key/value
The "context --help" shows the following option:
--arguments=list set variables that can be consulted during a run
(key/value pairs)
It looks like something I need at the moment. There seems to be no further
information on it, at least not be searching the wiki with "context arguments".
I h
Changing to the [mathtimes] font did help with the \lll and \ggg math symbols,
present in mathtimes but not in lucida.
But now the \oplus is absent in mathtimes whereas it is present in lucida.
I am thus stuck with having two fonts missing different math symbols. Is Math
Times suffering from t
On 14 okt. 2011, at 11:26, Wolfgang Schuster wrote:
>
> Am 14.10.2011 um 10:38 schrieb Meer, H. van der:
>
>> I made an example of the effect of this on \doifmode and \startmode. The
>> example shows that the appearance of extra space in \doifmode follows a
>> reg
I made an example of the effect of this on \doifmode and \startmode. The
example shows that the appearance of extra space in \doifmode follows a regular
pattern. The startmode case differs in that respect because
\startmode[condition-true] has the extra space but \startmode[condition-false]
has
It seems that margin notes when called from inside
\startcombination..\stopcombination do not reach the margin of the paper.
Instead they use a margin inside the combination.
Is that as intended or unavoidable?
It was my objective to have them at the edge of the paper.
See minimal example below.
I have this question on the implementation of metapost.
The following program ends in an error:
\startMPpage
picture v;
draw origin--(1cm,1cm);
v = currentpicture;
clearit;
draw (1cm,0)--(0,1cm);
currentpicture := currentpicture + v;
\stopMPpage
The error is: ! Not implemented: (picture)+(picture
It seems that margin notes when called from inside
\startcombination..\stopcombination do not reach the margin of the paper.
Instead they use a margin inside the combination.
Is that as intended or unavoidable?
It was my objective to have them at the edge of the paper.
See minimal example below.
On 4 okt. 2011, at 20:44, Wolfgang Schuster wrote:
>
> Am 04.10.2011 um 20:37 schrieb Aditya Mahajan:
>
>> On Tue, 4 Oct 2011, Meer, H. van der wrote:
>>
>>> I find that "abc \doifmode{mode}{text} more text" can introduce extra
>>>
I find that "abc \doifmode{mode}{text} more text" can introduce extra
whitespace. I conclude therefore that there is no \ignorespaces at work here.
As a consequence the \doifmode does not completely disappear if mode is not
satisfied.
Is this intentional or should this behaviour be changed?
Han
Thanks, this works indeed. But I hoped to be able to produce in this manner at
one stroke a series of separate figures, each in its own pdf file. Or is this
an impossible action?
Hans van der Meer
On 3 okt. 2011, at 09:09, Wolfgang Schuster wrote:
>
> Am 03.10.2011 um 09:05 schrieb M
}\egroup \placeMPgraphic \...
\doprocessMPbuffer ...("\currentMPgraphicname ")}}
\endMPgraphicgroup
l.8 \processMPbuffer[fig-1]
Hans van der Meer
On 29 sep. 2011, at 21:21, Aditya Mahajan wrote:
> On Thu, 29 Sep 2
I am fairly sure the Lucida font has oldstyle numbers. But I don't get them
with the \os macro. Here two minimal examples. The one with lmodern does the
oldstyle numbers, the one with lucida not. I would be obliged for a solution.
Hans van der Meer
\setuppapersize[A6][A6]
\setupbodyfont[lucida]
definitions missing.
Hans van der Meer
On 29 sep. 2011, at 21:05, Wolfgang Schuster wrote:
>
> Am 29.09.2011 um 20:57 schrieb Meer, H. van der:
>
>> I do not understand while \readfile behaves differently from \input with
>> regard to TeX-code processing.
>>
I do not understand while \readfile behaves differently from \input with regard
to TeX-code processing.
I have the following code:
\readfile{metapost-setup} %(file with metapost inclusions)
\starttext
\startMPpage
..
\stopMPpage
\stoptext
Replace the \readfile by:
\input ../../../metapost-set
I would like to generate metapost figures in separate pdf-files (in some
convenient directory, they are reused elsewhere). This as part of a project
structure. I know that on a separate run such a pdf can be generated with:
context figurefile running on input
\input some-metapost-inclusions
\
ster wrote:
>
> Am 29.09.2011 um 17:18 schrieb Meer, H. van der:
>
>> What are \usepath and \usesubpath supposed to do? I looked into the
>> mkiv-code but could not find an explanation.
>> I have a problem finding files from within a project-product-component
>> s
What are \usepath and \usesubpath supposed to do? I looked into the mkiv-code
but could not find an explanation.
I have a problem finding files from within a project-product-component
structure and I hoped to solve through these macros. Sofar without success.
In the wiki there is an item on proje
eer
On 27 sep. 2011, at 15:07, Stefan Müller wrote:
> On 27.09.2011 14:56, Taco Hoekwater wrote:
>> On 09/27/2011 02:51 PM, Meer, H. van der wrote:
>>> My best guess now is the description of the
>>> FUNCTION {format.crossref}
>>> { "" "\crossref&
My best guess now is the description of the
FUNCTION {format.crossref}
{ "" "\crossref" crossref do.out
}
entry on the .bst file. Probably this generates the bad code leading to a
missing \endcsname.
Hans van der Meer
On 27 sep. 2011, at 13:33, Meer, H. van der wrote:
>
> "" "\city" address do.out
> format.pages
> format.incoll.inproc.crossref
> "" "\pubname" publisher do.out
> "" "\organization" organization do.out
> stop.entry
> }
>
>
> in cont-*.bst? I don't know
I'm not the only
> one who's having trouble with that.
>
> I didn't know what I should expect when using "crossref", so I decided to not
> mind the missing booktitle. But it would still be nice (as seen in your
> example) if the actual citation style could
iously has been
switched "out of the loop"?
Is there another way to force these crossref's to be carried out?
Hans van der Meer
On 27 sep. 2011, at 10:07, Meer, H. van der wrote:
> An addtionial remark here: in the .bib file this is caused by a missing "book
> title&
An addtionial remark here: in the .bib file this is caused by a missing "book
title".
On 27 sep. 2011, at 10:03, Hans van der Meer wrote:
> Recently I reported the following problem:
>
> On 25 sep. 2011, at 19:58, H. van der Meer wrote:
>
>> I used the following macro for typsetting literature
Thanks. But after having a closer look I decided to abandon the mechanism. It
looks fairly sophisticated: finding positions in the TeX-result and producing
overlays for them. Because I used it solely inside table-like structures for
pointing from one cell to another, I can replace them by MetaPo
I used the following macro for typsetting literature references in footnotes.
It worked without problems until now, but then I didn't use the bib module for
some time.
It looks like a problem has crept in with the type.
the macro setup:
\usepublications[literature]
\setuppublications
I get the impression there is something wrong with typesetting math with the
lucida setup in ConTeXt. I find that the \colon is not printed. Below is a
minimal example. See the colon in the first formula that is absent in the
second.
Perhaps someone is willing to check if this is ConTeXt in gen
gt; Am 22.09.2011 um 08:13 schrieb Meer, H. van der:
>
>> Here is your minimal example.
>>
>> \starttext
>> \setupblank[line]
>> \setupfootnotes[way=bychapter,rule=off,split=verystrict]
>> Hello\crlf
>> \stoptext
>>
>> The error is triggered b
Here is your minimal example.
\starttext
\setupblank[line]
\setupfootnotes[way=bychapter,rule=off,split=verystrict]
Hello\crlf
\stoptext
The error is triggered by \setupblank[normal].
The manual lists as possibilities: normal, standard, line dimension big medium
small fixed flexible.
Of these
I am using code between \startMPinclusions .. \stopMPinclusions while later
additions can be accumulated with \startMPinclusions[+] .. \stopMPinclusions
Hans van der Meer
On 19 sep. 2011, at 17:01, Marcin Borkowski wrote:
> Hi all,
>
> I'd like to have some MP code shared between unique graphi
Thanks,
This does the trick for me.
Hans van der Meer
On 19 sep. 2011, at 15:49, Aditya Mahajan wrote:
> On Mon, 19 Sep 2011, Meer, H. van der wrote:
>
>> How can one set the size of a \startMPpage..\stopMPpage generated picture.
>> For example forcing its dimensions to 5X4c
How can one set the size of a \startMPpage..\stopMPpage generated picture. For
example forcing its dimensions to 5X4cm. Or better still, derived from
variables in the code.
Hans van der Meer
___
If your question is
I used to put an invisible frame around figures in MetaPost by setting a pen
scaled at 0pt. That left no trace, but defined the area.
However I (now) see a thin line drawn by code:
pickup pencircle scaled 0pt;
draw origin--(w,h);
Did I always mis this or has something cha
>From the Wiki I learn about \startstaticMPfigure that it "creates a separate
>pdf file containing the graphic". But when I exercise the example given I do
>not see those staticMPfigure's in sepaarte pdf's. What am I missing? I thought
>to use this for generating a series of separate pdf's, to b
201 - 289 of 289 matches
Mail list logo