Hi,
I've downloaded the beta today, which fails on one of my itemizes using the KR
numbering scheme. I'm using MkIV context, with the following file:
\starttext
\startitemize[KR]
\item Foo
\stopitemize
\stoptext
When compiling this file, I get the below errors. When using R instead of
I've downloaded the beta today, which fails on one of my itemizes using the
KR
numbering scheme. I'm using MkIV context, with the following file:
fixed in next beta
Thanks!
Gr.
Matthijs
signature.asc
Description: Digital signature
Hi all,
I've been struggling with verbatim printing in MkIV for a while now and found
some confusing things. I did finally get things working, but after quite some
effort. I'd like to hear if my conclusions are correct, perhaps I can put them
on the wiki then.
I was trying to set up some custom
Hi,
I'm trying to use a buffer together with a custom typing style using the
latest beta with MkIV, but so far I've only managed to do this using \startFOO
and \stopFOO inside the buffer:
\definetyping[FOO][option=FOO]
\startbuffer[bar]
\startFOO
baz
\stopFOO
\stopbuffer
\getbuffer[bar]
Hi all,
since \startFOO \getbuffer[bar] \stopFOO gives me compile errors.
Actually, that turned out to be my own typo. However, this doesn't give me
what I want, but just a verbatim \getbuffer[bar]...
Gr.
Matthijs
signature.asc
Description: Digital signature
Hi all,
Snip question about styled \typebuffer
Shortly after sending my email, I realized the actual problem I was trying to
solve was not the one I posted, so perhaps I can clarify that a bit.
What I'm trying to do, is pass some text to a custom command, which should
then be displayed in a
Hi all,
I've been trying to create a horizontal rule of limited width, using MkIV. My
best approach so far is using a \framed with only a bottom frame:
\framed[frame=off,bottomframe=on,width=.5\textwidth]{}
However, this is not quite elegant. Context provides two commands for drawing
lines,
Hi Peter,
\setuptyping[option=TEX]
This is what I am using now, but this changes the global settings and requires
resetting them afterwards. Not so pretty. I was hoping for a better method to
achieve this, but I'm starting to doubt there is one currently.
I've been trying to give \typebuffer a
Hi Hans,
\blackrule[width=10cm,height=1pt,depth=1pt,color=red]
That seems to work, thanks!
Is there any particular difference between all these line commands (\hairline,
\thinrule, \blackrule), apart from the options they support? Are they meant
for different situations, or is there some other
Hi Ciro,
I type:
sudo mtxrun -script fonts --list
and I get:
sudo: unable to execute /usr/bin/mtxrun: No such file or directory
Considering that mtxrun exist, I suspect the interpreter of the script does
not exist, which is texlua on my system:
$ head -1 /usr/bin/mtxrun
Hi all,
while working on a custom pretty printer, I was having the need to keep some
state variables for the duration of one buffer, and reset them again for the
next buffer. With the current hooks a pretty printer has available, this is
not possible, since you never know what the first and last
Hi Ciro,
How do I solve the problem then?
You should probably just install the luatex package (IIRC you were running
Ubuntu, which should ship it, Debian does at least).
Gr.
Matthijs
signature.asc
Description: Digital signature
-- comment : Pretty printing of (extended) lambda calculus
-- author : Matthijs Kooijman, Universiteit Twente, NL
-- copyright: Matthijs Kooijman
-- license : None
local utf = unicode.utf8
if not buffers then buffers = { } end
if not buffers.visualizers
Hi Kevin,
A colleague and I are experimenting with strategies to implement a literate
programming module for ConTeXt, and we'd like to have something like
Im not exactly sure what you're trying to achieve, but perhaps you could do
this using a prettyprinter? A pretty printer gets passed each
Hey all,
./tex/texmf-context/tex/context/base/verb-.*\.lua !
Actually, in newer versions (since a month or so), that's pret-*.lua.
Where to start with this topic (current state in Mark IV, roadmap, ...) ?
I've been struggling with this a bit as well lately and found there was next
to no
Hi Peter Khaled,
I think there is a way to use ConTeXt commands inside verbatim
environments, but I don't recall it.
I think this is the option=commands option for setuptyping friends. AFAIK
this means you need to use /TEX /ETEX around your commands or something, but
I'm not completely sure.
Hi,
any chance of looking at and perhaps committing this patch?
Is there any place where lua pretty printers are documented? The wiki seems to
say only wait for lua, but not how to use them. If there isn't, I'll try to
put something useful on the wiki.
I've created [1] to document the
Hi Hans,
i uploaded a beta zip with two extra hooks
I see the hooks, but I can't find the spot where they are called? It seems you
missed this part of my patch?
Also, I think you didn't update the definition of \type to use the typesingle
lua function I proposed, which means that \type{}
Hi Patrick,
I don't know if you have noticed that the git repository has been
replaced by a newer one.
I'm surprised that there is even a git repository at all. On the wiki and all
documents I've seen so far, there is only talk about rsyncing from an ftp, git
is never mentioned.
However,
well, such messages would not help much unless they would be detailed
(and then should be done for each file); as i work on all files at the
same time it would cost me way to much time and it gains me nothing;
looking at the diff in a git gui is more informative
A git commit contains
(I've sent this mail before, but I think the mailing list troubles might have
eaten it).
Hi Hans,
i uploaded a beta zip with two extra hooks
I see the hooks, but I can't find the spot where they are called? It seems you
missed this part of my patch?
Also, I think you didn't update the
Hi Hans,
any chance of replying to this mail? Currently, you only applied half of the
patch, so it's not usable yet at all.
Gr.
Matthijs
On Thu, Aug 13, 2009 at 12:10:54PM +0200, Matthijs Kooijman wrote:
(I've sent this mail before, but I think the mailing list troubles might have
eaten
Hi,
I just upgraded to the latest beta, and got an error saying I need luatex
0.42. I have 0.42, but a quick glance at context.mkiv shows that it really
wants luatex 0.43 (so the error message is wrong).
Gr.
Matthijs
signature.asc
Description: Digital signature
Hi all,
according to the wiki, and the current code, the arguments to
\installprettytype should be uppercased. E.g.:
\installprettytype [PHP][PHP]
Referring to them should be uppercased as well:
\definetyping[PHP] [option=PHP]
\setuptyping[option=PHP]
However, the filename
Hi Hans,
according to the wiki, and the current code, the arguments to
\installprettytype should be uppercased. E.g.:
\installprettytype [PHP][PHP]
because want uppercase
\startTEX
\stopTEX
Well, those would be coming from the first argument of definetyping. AFAIU,
neither
Hi all,
is there any command version of \em, like there is for \bold and friends? I
can write either \bold{foo} of {\bold foo}, but only {\em foo} and not
\em{foo}. Is there any way to do this already, or should I just define \emph
myself or something like that?
Gr.
Matthijs
signature.asc
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
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
Hi,
\definefontfeature[default][default][onum=yes]
Just for rerefence, this works for me as well using MkIV and luatex.
Gr.
Matthijs
signature.asc
Description: Digital signature
___
If your question is of
Hi Matthew,
I've been playing with metaobj and luatex 0.43 for a bit, and faced similar
problems. Lots of stuff about redundant equations and other stuff I didn't
understand.
However, I've found that cleaning up your objects when you're done pretty much
solves all my problems. For example, just
Hi,
I've been trying to use the \overrightarrow command within a metapost graphic,
but it doesn't work. Math mode does work, for example \vec works like
expected. Outside of metapost, \overrightarrow works as expected.
To illustrate the problem, I've created the following simple testcase:
Hi all,
I've been fiddling around with metaobj a bit, but defining my own objects
failed. After some debugging, I've reduced this to a metapost / context MkIV
issue (so no metaobj specifics anymore).
What happens, is that vardefs that use @# as a placeholder in their name only
work when they are
Hi Hans,
it's more that tex likes to duplicate the # internally
Ah, yes, I've seen some mentions on @## in error messages, but I thought that
was just part of the way metapost handled @#. Apparently not :-)
how about adding
let @## = @# ;
to mp-tool.mp (you need to remake the context
Hi Matthew,
However, I've found that cleaning up your objects when you're done pretty much
solves all my problems. For example, just add a clearObj line to your code
makes it work for me:
I've found that using save to declare the values as local also works. For
example:
\startMPinclusions
Hi Thomas,
linlibertineo LinLibertineO
LinLibertine_Re-4.4.1.otf
I've been struggling a bit with linlibertine as well, I've found that there
seems to be an issue with some characters in the font filenames (probably the
_ or ., I haven't figured out which ones exactly). I've got the
Hi all,
I've been fiddling around with floats a bit, and seeing a lot of references to
hangsidefloat. It seems to be the solution to all sorts of floating
problems, but I can't really see what it _does_. Looking around the source
doesn't really tell me either, so anyone care to tell me what it
Hi all,
I've been trying to make a metapost graphic, based on the \textwidth. However,
it seems I can't just pass in \textwidth as an option. For example, the
following breaks:
\startuniqueMPgraphic{HLine}
draw origin -- (\MPvar{width}, 0mm);
\stopuniqueMPgraphic
\starttext
Hi Taco,
You should try \the\textwidth
Thanks, that works. Could you enlighten me as to what \the does and why this
helps? Does Context treat \the specially within metapost code (which seems so,
since there are more \the examples in the metafun manual), or is it expanded
before getting inserted
I guess the question is whether or not you are happy with being
able to order from the Amazon store alone. Here is a (i think)
useful comparison chart (by iReX, a competitor):
I saw a presentation form iRex yesterday, and got to hold a few of their
projects. Pretty neat, the latest ones even
Hi,
I've been trying to use \setupquotation, but it seems it doesn't just affect
\quotation, but also \quote. In particular, setting style to tfb enlarges the
font used by \quote and somehow removes the quotes from around it.
Seeing that there is also a \setupquote, and from looking at the code,
Hi Wolfgang,
\setupinteraction[color=]
That does not work in the latest version. The style parameter is recognized,
but ot the color parameter.
Following produces red links, even if green is selected.
I've been fiddling with this a bit as well, and found that the color parameter
is only used
Hi all,
The following makes all links black again for me:
\setupinteraction[state=start,color=,contrastcolor=]
Thank you. That was the trick.
For completeness, I've documented the setupinteraction command a bit better at
http://wiki.contextgarden.net/Interaction as well.
Gr.
Matthijs
Hi,
luatex: ../../../source/texk/web2c/luatexdir/tex/printing.c:266: print:
Assertion `c 256' failed.
[329.327MTXrun | fatal error, no return code, message: luatex: execution
interrupted
A quick glance at the code, shows it's in the following part:
/*
An entire string is output by
Hi,
after upgrading to the latest context beta, I'm fased with the following lua
error:
define font | forced type otf of lmmono8-regular not found
define font | font with name lmmono8-regular is not found
[...]
! LuaTeX error /usr/share/texmf/tex/context/base/math-vfu.lua:366: table
Hi,
I've been trying to get \attachment to work, but I get a Lua error. The
following example, (taken from scrn-int.mkiv and stripped a bit) provides an
error:
\setupinteraction[state=start]
\useattachment[whatever][test.tex]
\starttext \attachment[whatever] \stoptext
The tail of the
Hi Pau,
\section{Introduction}
\label{intro}
In Section \ref{intro}, we show an example of labelling
\section[intro]{Introduction}
In
add
\registerctxluafile{scrn-int}{1.001}
to scrn-int.mkiv as it seems that it's not loaded
Yup, that removed the error. I even get something icon in the file, but
acrobat reader somehow silently fails to open the file... Oh well, let's do
without it.
Gr.
Matthijs
signature.asc
Hi Taco,
Have you tried the new current yet? There was a whole bunch of extra
\unexpanded-s in it already.
You're right, thanks! I had built the new context but forgot to install it on
this particular machine :-)
Sorry for the noise,
Matthijs
signature.asc
Description: Digital signature
Hi Hans,
thanks for the instant reply :-) I haven't tried your suggestion yet, but I've
got a few questions first.
\startluacode
function document.step_one(str)
tex.sprint(\\setbox0\\hbox{,str,})
Would there be any danger of overwriting an existing box by doing this? I'm
not quite sure
Hi all,
I've been trying my first steps into the land of ConTeXt modules, without much
success. What has been particularly annoying is that the \usemodule command
seems to give no error or other indication that a particular module was not
found. Consider below example:
\usemodule{foobar}
\usemodule{foobar}
Right, this should have been \usemodule[foobar] (square brackets instead of
curlies...). It would been nice if this would error out, but well...
When fixing this, there is a module foobar not found message, though it
doesn't error out.
So, never mind and sorry for the
Hi all,
I'm working with a few custom macros to simplify typing a bit, like:
\def\VHDL{\small{VHDL}}
However, when I use this macro in text, like \VHDL this, it gobbles the space
after it. I've seen some references that say to solve this by writing \VHDL{}
instead, but that is of course very
\autoinsertnextspace is the context version of \xspace (could be mkii
only)
Woah, that works (in MkIV). Thanks!
Gr.
Matthijs
signature.asc
Description: Digital signature
___
If your question is of interest to
Hi Luigi,
hm , some problem here
# context --version
MTXrun | main context file: context.tex
MTXrun | current version: 2009.11.10 13:30
Your example works fine for me on an older beta:
$ context --version
MTXrun | main context file: /usr/share/texmf/tex/context/base/context.tex
MTXrun
Hi Luigi,
hm , some problem here
# context --version
MTXrun | main context file: context.tex
MTXrun | current version: 2009.11.10 13:30
Your example works fine for me on an older beta:
$ context --version
MTXrun | main context file:
Hi Luigi,
forget my last post. I was in a hurry last week and put a
\def\autoinsertnextspace{}
in my document just to get it compiling on context 2009.11.24. If I remove
that, it stops working with texexec --lua (as well as just context) with
the same undefined control sequence error. It
Hi all,
I've been using \inmargin to put some stuff in the margin of my text, but when
I use multiple \inmargin's close together, the stuff in the margin will
overlap. Is there any way to let ConTeXt just move things down to prevent
overlap?
I'm not forced to move my \inmargin's around, guessing
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
Try
\starttext
Foo Baz \inmargin {Blerf \\ Baz}
\stoptext
Hmm, that might work, but my real case is slightly more complicated. I have
the \inmargin wrapped in a \refdef command, that references some topic on some
page. So I say \refdef{foo} and it looks up both the text and page number for
foo
Hi all,
the following example is not working for me:
\setupfloat[intermezzo][before=\startframedtext[width=10cm],after=\stopframedtext]
\starttext
\placeintermezzo{Caption}{Text}
\stoptext
It fails with the following message:
! Undefined control sequence.
\stopframedtext
Hi Hans,
however, floats can have frames anyway so you don't need the framedtext
I was not after the frame, but after the width. I want to put some text in a
float and have the main body text wrap around that. I can do this by putting
the startframedtext inside the placeintermezzo call, but I'd
Hi Hans,
% \setupinmargin[left][sidemethod=2]
% \setupinmargin[left][sidemethod=3]
% \setupinmargin[left][sidemethod=4]
I've tried each of them (with both left and right). In my minimal example,
there is no difference. In my complete document, I noticed sidemethod=3 caused
on margin text to
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
I'm trying to use a bibliography, but it seems no numbers are show in the
biblography that is generated. The following example:
Ah, using
\setuppublications[numbering=yes]
solves this. Any reason this is not the default?
I'll put this on the wiki (and stress the completeness of the manual
Hi Taco,
I have assumed that ConTeXt has more authors that need APA like
citations than bracketed numbers. ConTeXt has never had a very
strong presence in the exact sciences.
If that's the case, then the \cite command does the wrong thing by default,
since it generates references as bracketed
Hi all,
I'm currently using old-style numerals in my document using the onum otf font
feature:
\definefontfeature[default][default][onum=yes]
This gives very nice results, except for the cases where a 0 appears by itself
in the text. In these cases, it appears just like an o instead of a 0.
Hi Hans,
it assumes that you know what is provided by the font ... you cam
play with addff and subff and addfs and subfs (individual features
cq. current set)
I couldn't get the addff/subff stuff working to remove the font feature, but
the following did the trick:
Hi all,
I've come to understand taht using the \page[no] command should prevent a
pagebreak at that particular spot whenever possible. However, this seems to be
not working for me. My actual problem is with a \startframed directly after a
description header, but the problem is easily reproduced
Hi Wolfgang,
As you don't provide a example with a description where you have the problem
I can't make a test but this could work in MkIV
I reckoned that the \page[no] command by itself was already broken, so I first
want to fix that before making things more complicated (like doing stuff with
Hi Wolfgang,
\page[no] did work but only when you use it in the correct way.
snip exapmles
Aha, page[no] only works directly after a paragraph break. I haven't seen that
documented anywhere. I'll put it up on the \page reference page. Is only
after a paragraph break the right usage
70 matches
Mail list logo