A trick (?) is to change the separator such that the number
parsing in the otp see separate numbers as well:
\setupcaptions[separator={{.}}]
\setupheads [separator={{.}}]
\setupcaptions[separator={{.}}]
this still gives problems with refering to a graphic but for that we need
more
\setupheads [separator={{.}}]
\setupcaptions[separator={{.}}]
this still gives problems with refering to a graphic but for that we
need more hackery
Also, probably because it uses the same cross-referencing mechanism,
this leaves the section numbers in tables of contents the other way
Idris wrote:
I doubt it, but something along these lines should do it:
==
% tex=aleph output=dvipdfmx
\pagedir TRT
\bodydir TRT
\pardir TRT
\textdir TRT
\hoffset=0pt % bug
\starttext
\chapter{Cow}
\section{Dutch Cow}
\placefigure
[middle]
[fig:cow]
{This is an
Idris Samawi Hamid (15/06/2006 17:28) said:
You could edit the cuni2oar otp (and recompile it) so that it
ignores the ligatures you don't like, or you could put a kashidah
between the two letters whose ligature you want to break. Better is to
define an empty kashidah so that you can manually
Am following this up via another route to try to better
understand what to do, but if you really did want a reminder about this
- here it is :-)
Well, I don't know which ligatures the proofreader liked/did not like so...
Sorry, I realise that was a bit stupid of me... Thanks for your
Hello all (especially Idris :-) )
Using the fantastic resources from Idris' messages on this list, and the
Aleph page on the Wiki, I have managed to start producing Arabic PDF
output directly from UTF-8 sources using Aleph and dvipdfmx. This is
great, thanks so much.
I have just one or two
\startregister[index]{Menippean}
\stopregister[index]
and it works. However, when I try to replace [index] with my own key
(because I have overlapping ranges)
\startregister[satire]{Menippean}
\stopregister[satire]
I get errors: ...
Hi Thomas.
The first [...] in the \startregister
I'm trying to solve a problem with a TABLE in a large-ish (600 page)
book. The table occurs in an appendix, and the contents of one column
are spilling out into the next column on the right.
The weird thing is that when I process just that bit of the book, the
effect is much smaller, and when I
Hans wrote:
can you try (test extensively):
\def\dodoregister[#1]#2#3%
{\dogotopar{\dontleavehmode\doprocesspageregister[#1]{#2}{#3}}}
Well, it has some problems, introducing vertical space in certain
circumstances. Will try to work up a minimal, but two observations:
1. The extra
Hans wrote:
chinese is not yet defined in utf so if you want that, we need to do it
...
assuming this, how about making a set of tfm,enc,map files that match
the unicode positions (volunteers ...)
I'm very willing to help, especially if there is some drudge work
involved in constructing the
The manual suggests that you can put index calls between a \section
heading and its first paragraph without worry, but for me it breaks the
page-breaking mechanism, allowing the section title to end up at the
bottom of a page like this:
\starttext
\section{Tufte}
\dorecurse{4}{\input tufte \par}
I said:
Is there any workaround/fix?
I find that the addition of \dontleavehmode fixes it. Is this safe to
use in general?
\starttext
\section{Tufte}
\dorecurse{4}{\input tufte \par}
\section{Knuth}
\dontleavehmode\index{knuth}
\input knuth \par
\stoptext
Thanks,
Duncan
Tobias Burnus asks:
What would be needed to get UTF-8 input running with Chinese?
If there is a recipe, I would like to help cook it. Getting UTF-8 input
running with Chinese would be a godsend to me too.
Duncan
___
ntg-context mailing list
Hans wrote:
yes, you can use the old binaries, no problem;
hm, a copy of previous binaries ... i can make a zip of an old tree
That would be great, thanks!
Thanks Taco for the suggestions, I was exploring both of those in
parallel to hoping that someone had kept a copy of the old ones..
Hans, many thanks for the recent fixes on index sorting in the new ruby
scripts. Can I offer another test file in which some errors still show
up, in the hope that these too can be ironed out?
The following shows two problems, culled from a much bigger project. It
should be clear from the output
What do you do with ConTeXT?
I have a repository of learning materials which are marked up in
(DocBook-based) XML. They are in a few different languages (majority
English, with Spanish, Dutch and recently Chinese) and belong to several
different universities/training organisations on whose
Lutz Haseloff said:
i prepared a small perl script to convert chinese utf-8 encoded
tex-files to gbk coded tex-files.
Thanks so much, I look forward to trying it out next week when I get
back to work, and will let you know how I get on. Thanks for taking the
time.
Duncan
(beware, the font-chi modules talk about unicode while actually it's
about dedicated mapings resembling a unicode approach; this
\defineucharmapping stuff)
Yes indeed, that had me going... :-) Oh well.
Thanks for the insight, I'll feedback further.
I have to say I'm unable to make any sense
Salvete,
I just started to think about using ConTeXt on XML input files, so I've
got a question which should be easy to answer: My MathML source
generates presentation code which includes mo#x02061;/mo between a
function symbol and its arguments. I get a black rectangle for that;
I'd
Hans wrote:
that's tricky. the utf handler assumes named glyphs and noone named
the 5000 chinese ones so far
...
some variant on:
...
\startunicodevector chinese_unicode_page_number_1
getglyph\endcsname{ChineseFont1}{#1}\gobbleoneargument
\stopunicodevector
so, then you only need to
Hi all.
I have ConTeXt set up to output Chinese using usemodule[chinese], all
fonts, encodings and maps are installed and the sample file works well.
Now I have a whole load of Chinese text in utf-8 encoding. Can ConTeXt
process this, or do I have to convert it to another encoding? I tried
Hi.
I'm trying to include some PDF files generated by Acrobat 7, which means
they are PDF v1.6. ConTeXt (recent distribution, on linux) complains
that PDF version 1.6: Xpdf only supports 1.5. I thought that maybe I
could switch to using Ghostscript instead of Xpdf-tools to process the
files, in
On 31 Aug I wrote:
I have page ranges in my index, such as 1/1-1/3, or 2/24-2/26.
I would like these ranges to be elided - in other words, the first one
would read 1/1-3 (remove repeated chapter number), and the second would
read 2/24-6 (remove repeated chapter number and also the repeated
just ignore the message; a new version of pdftex will support the
latest pdf, and in most cases new features are just more entri4e sin
dictionaries; i can imagine that it affects pdftops but not pdf
inclusion because that's mostly copying and object reference
tracking.
Do you get faulty files?
No need for rtf. That would loose lots of information anyway, wouldn't it?
RTF can capture everything that .doc can (MS update it every time they
rev the .doc format), and it has the advantage that it is defined in a
spec with a grammar, which means that importing routines (like the one
in
Slightly OT, sorry:
OpenOffice.org does allow you to attach an XSLT stylesheet to an export
process which therefore allows you to do a (limited) transformation from
the visual markup which is its native format to a more structured one
Why „limited“?
Well, XSLT seems to have been designed,
- xml in not an input format but (a well structured) interchange
format.
XML is a very good master format from which to derive all outputs. For
example, I receive wordprocessor files from academics and convert them
to XML by a combination of automated processes and hand-tagging. The XML
is
Hello all.
I have a file test-fonts.tex which just combines Palatino and Helvetica
into one typescript:
\loadmapfile[context-base]
\usetypescriptfile[type-buy]
\starttypescript [TESTfonts]
\definetypeface [TESTCombo] [rm] [serif] [palatino] [default]
[encoding=texnansi]
\definetypeface
I said:
\starttypescript [TESTfonts]
\definetypeface [TESTCombo] [rm] [serif] [palatino] [default]
[encoding=texnansi]
\definetypeface [TESTCombo] [ss] [sans] [helvetica] [default]
[encoding=texnansi]
\stoptypescript
I realise that by adding
\definetypeface [TESTCombo] [tt]
I said:
Followup: I would be willing to help to code this if it doesn't exist
(I have some experience with such systems) if someone can point me at
the right bit of code to look at (things seem to be changing around
texutils, newtexexec etc. so I don't want to start at the wrong
place).
To
Bug or feature?
In a register (such as the index), a command like
\index[key]{entry}
creates an index entry sorted as 'key', and there exists also
\startregister[key]{entry} ... \stopregister[key]
which creates a page range. As far as I can tell, the [key] here plays
two roles - the ID of the
Hi.
\getmarking[chapter][current] should give you the title of the current
chapter. Similarly \getmarking[section][current], etc.
In order to rid yourself of the default pagenumber in the middle of the
top header, use \setuppagenumbering[location=], or add location= to
your existing
Another question on registers (just getting into indexing!).
I have a book which numbers its pages by chapter, and so page numbers
are 1/1, 1/2 ... for the pages of chapter 1, and then 2/1, 2/2 ... for
the pages of chapter 2.
I have page ranges in my index, such as 1/1-1/3, or 2/24-2/26.
I
Hans said:
wikiable:
And I said:
Will do; would be great to fix (or at least understand) the alignment
before I do though, for completeness. :-)
I've added this to the wiki now, since having tested it out I don't
think my alignment problems were anything to do with the issue at hand.
To fix
Hello all.
I have set up page numbering for the bodymatter and appendices of my
document with:
\setuppagenumbering[way=bychapter,chapternumber=yes,numberseparator={/}]
so that \completepagenumber in my footer lines shows, e.g. 1/3 for
chapter 1 page 3. This works well for the actual page
My guess would be (untested):
\setuplist [part][separator={/}]
\setuplist [chapter] [separator={/}]
\setuplist [section] [separator={/}]
\setuplist [subsection] [separator={/}]
\setuplist [subsubsection] [separator={/}]
I have three issues where page number formatting in the table of
contents is wrong compared to the pages themselves:
1. The separator character in the actual pagenumbers is /. In the ToC
it displays as a -.
2. I used left=A on the pagenumbering command in the appendices
because appendices are
\start
\setuppagenumbering[numberseparator=/]
\placecombinedlist[Xontents]
\stop
Ah, I see, \placecombinedlist uses the value of numberseparator active
at the time it is called! Thanks.
indeed, since left/right is cosmetics an dit's easier to add that than
to remov eit when you dont wan
Hans wrote:
I attached a small test file. Some trickery is needed to get utf working in
mathml
- the map patch goes into xtag-map.tex
- the other one into xtag-mmp
part of the problem is that the current font must provide the characters
Hans, thank you very much. I've ben banging my head
I'm still having trouble with UTF contents in mtext tags in MathML
content.
It's difficult to send a sample because UTF isn't preserved well either
by email or when sending files to the ConTeXt Live server, but I'd
really appreciate it if somebody could help. When I replace 'HERE' in
the
Randall wrote:
I'm bumping my last question here... As Duncan suggested,
\setupsection[section-3][previousnumber=no]
supresses the chapter section numbers in my section headings. Is
there an easy way to do likewise for the figure and equation numbers
such that the numbering does not
I'm processing some Spanish from Unicode and some of it is in MathML,
for which I use ConTeXt's native processing. There seems to be a problem
with accents. When I run this on Live:
--
\mainlanguage[es]\enableregime[utf]\useencoding[uc]
\useXMLfilter[utf]\usemodule[mathml]
\starttext
Maths with
I said:
Interestingly, if I forget about unicode and use eacute; instead of é,
then no matter what I put in the preamble I get the e with a guillemot
superimposed. So whatever is mapping é incorrectly seems also to be
mapping eacute; incorrectly.
Further testing suggests that my problem is
Hello all.
I'm processing some Spanish from Unicode and some of it is in MathML,
for which I use ConTeXt's native processing. There seems to be a problem
with accents. When I run this on Live:
--
\mainlanguage[es]\enableregime[utf]\useencoding[uc]
\useXMLfilter[utf]\usemodule[mathml]
\starttext
Hello MathMLers.
I just discovered the very promising \setupMMLappearance command, which
looked like it held the answer to one of my most niggling of problems
with display MathML processing - the fact that in a tabular layout using
mtable I couldn't make the left-hand-side right-aligned, the
Randall Skelton wrote:
I've fiddled with almost every parameter in sethead but cannot seem to
find the correct one. I'd like to suppress the chapter numbers in a
relatively large document such that numbering of sections, tables,
figures and equations begins at 1 instead of 1.1. Is there a
Luigi wrote:
\SetTableToWidth{10cm} \starttable[|c|c|c|]...\stoptable set width to
10 cm, but if I don't care about cell I can have an overfull box.
So the problem seem to be Can I set the total width of a TABLE using
a macros like \setupTABLE[tablewidth=10cm] ?
To solve this problem, I
I appreciate the effort you've put into this, Paul, but
This primary audience for this page is XML authors who want to use
ConTeXt to format an XML document.
is still not enough of a disclaimer. I use ConTeXt as part of a large
XML-based workflow, but don't use TeXML (nor do I use much of the
I am one night from a deadline and I have just noticed that my index is
silently ignoring some entries... Help!!
The following demonstrates the problem (tested on live.contextgarden.net):
--
\starttext
\startregister[index]{this term+in+particular} This term is discussed
from the start of this
I wrote:
--
\starttext
\startregister[index]{this term+in+particular} This term is discussed
from the start of this page.\page[yes]
Some more text about the term, and another page.\page[yes]
And the end of the info about that term. \stopregister[index]{this
term+in+particular}\page[yes]
A page
Dear all,
I have noticed that when I set my index as a \chapter within the
\startbackmatter...\stopbackmatter structure of a document, my headers
and footers, including page numbers, disappear. Even the backgrounds
disappear.
The only commands I can find which seem to influnce the sectionblock
Gerben Wierda wrote:
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\def\ChQuoteFormat#1{\starttext%
\startalignment[left]%
\startnarrower[4*left] \noindent{\nohyphens\em #1}%
\stopnarrower\stopalignment\stoptext\blank}
\setuphead[chapter]
Thanks Hans, fixes problem 2, but 1 remains.
So this is maybe a bug?
you forgot \setupbackgrounds[state=repeat]
Ach. I tried adding it to my \setupbackgrounds[header] command not
realising that it needed to be on its own. Sorry for the noise. Your
solution worked in its entirety. Thank you very
Hans wrote:
you can do a stepwise page change:
\setuphead[part][page={yes,blank,right}]
\setuphead[chapter][header=high,page={yes,blank,right}]
also, in order to let backgrounds adapt to each page, say:
\setupbackgrounds[state=repeat]
otherwise only text|page backgrounds will be
Resurrecting a thread from June last year... (sorry!)
On 26-jun-04 Hans van der Meer identified a bug/issue with text backgrounds:
When the textbackground falls at a page crossing -- i.e. starts at
the top of a page -- the coloring extends backwards on the page just
left.
On 29-jun-04 Hans H
Sorry for all the messages; I am exploring things I don't really
understand. I hope someone can enlighten me!
With the following colour set-up:
\setupcolors[rgb=no,cmyk=yes,spot=yes,state=start]
\definecolor[PantoneTwoNineFour][c=1,m=.56,y=0,k=.18]
2. is there a way I can check that it is working properly without
sending it to the printer each time?
Acrobat has an overprint preview since v5; AFAIK Reader got it in v7.
Yes... but it doesn't show up any problem. (Well, it just displays the
same thing with overprint preview as without.) *But*
whow, a demanding color user -)
...
overprint=yes
...
Aaaah. Thanks you so very much Hans. Of course, as ever, the answer is a
single setting which solves all my problems.
Off to add this gold to the wiki...
Duncan
___
ntg-context mailing list
Hi all.
I have a book with parts and chapters, which wants a tint in the
background of the header line. I have the following set-up producing
almost what I want (apologies for the length but I've stripped out as
much as I can to still show the same effect):
--
Peter Rolf said
\definecolor[PANTONE 294CV] [c=1,m=.56,y=0,k=.18]
% test \framed[background=color, backgroundcolor={PANTONE
294CV}]{Test}
\color[PANTONE 294CV] Test
% the only thing that doesn't work is \PANTONE 294CV
Thanks very much for responding Peter! Interesting behaviour - the above
will
More questions!
I'm using black plus one spot colour in a document, and I include PDF
images generated in an external program (CorelDraw) which use the same
spot colour. In the images the color is called 'PANTONE 294 CV', but I
can't use that name for my colour in ConTeXT because names can't
I said:
So - is there a parameter which represents the current width of the
layout area, taking into account itemisations, textbackgrounds and
anything else? Thanks.
I came up with a rather ugly kludge which solves my immediate problem
but might not be best. I created a new dimen, \RealWidth,
I asked about a mechanism to allow tables to extend into the outer
margin, in a double-sided layout. Hans said:
see the manual details.pdf
Thanks - I think I now almost understand how I would do this for
*floats*, but... my question was (perhaps) simpler - I'm just talking
about fixed blocks of
Hello all.
The following code (tested at contextgarden) illustrates my current problem:
--
\definetextbackground[TestBackground]
[leftoffset=1em,rightoffset=1em,topoffset=8pt,
bottomoffset=8pt,frame=on,location=paragraph]
\starttext
\starttextbackground[TestBackground]
Some text
I have a double-sided page layout with mirrored margins. For certain
displays (tables, etc) I would like to place a box such that it will
extend into the margin. At the moment, just by making a box the width of
the textarea + margin, I can get what I want half the time :-) - it
always extends
I'm using the minimal windows installation of ConTeXt, texsync'ed today.
The vptovf.exe program as used by the texfont script seems to have a
version mismatch. It throws an error saying that it can't find
tl80kpse.dll. In fact the version in the minimal tree is tl90kpse.dll.
This means that
Hans wrote:
quick and dirty:
\setuphead[chapter][before=\vbox to 10cm\bgroup,after=\vss\egroup]
\starttext
\chapter{test} \input tufte
\chapter{test\endgraf test} \input tufte
\stoptext
there are other solutions (synchronizing stuff) but that's more complex
Great! This solution worked for me. I
Hello. I have a style request that I haven't come across before and
don't know how to handle in ConTeXt.
I need the first line of text following a chapter title to always start
15 picas from the top edge of the text area. In other words, no matter
how little space the title takes up, the first
Hi all.
The following, when run through live.contextgarden.net (and my own
installation), produces odd results:
%Input is utf8 (Unicode)
\enableregime[utf]
\useencoding[uc]
%MathML is processed directly
\useXMLfilter[utf]
\usemodule[mathml]
\starttext
Test normal text: 180°
Test MathML:
Hello ConTeXters.
I am using the wonderful ability of ConTeXt to directly typeset MathML
equations, and have come across a problem with trying to put a line
above a character using the mover element. Here's what I try:
\setuppagenumbering[state=stop]
\starttext
\startXMLdata
math display=block
Hi all.
I have the following code, used to set quotations with over-large quote
marks either side. I use the bTABLE/eTABLE model because it is easy, and
because it allows for the variable width of the quotation part (the
middle column) and for it to carry over into multiple lines.
When this
Hans wrote:
in cont-new (or cont-sys) you can say:
\def\testbytesequence{}
This 'test' was added in order to determine of tex runs in 8 bit
mode. I wonder where the Malformed message comes from. Since when is
perl utf-8 by default?
(i run perl 5.8.0)
I'm running 5.8.0 too (on Redhat).
I have
although the .tui file is full of entries as far as I can tell. Maybe
something esle is wrong - still working on minimal file.
\starttext
\placelist[chapter][criterium=text]
\placeindex[criterium=text]
\chapter{test}
\index{test} test
\stoptext
can you send me the tui file?
Hans
This works
Taco said:
On Mon, 23 Aug 2004 09:03:36 +0100, Duncan wrote:
(i run perl 5.8.0)
I'm running 5.8.0 too (on Redhat).
I'd definately try to get away from 5.8.0 as soon as possible. There were
quite a lot of (sometimes rather serious) bugs in 5.8.0, esp. in the multibyte
handling, but also in other
Ach.
I have fixed my second problem with missing register entries - I was
using a header defined as a derivative of \chapter as the heading of my
table of contents, rather than a derivative of \title which it should
have been. Making that change fixed things.
Oddly, the output from texutil is
I wrote:
Malformed UTF-8 character (unexpected end of string) at
/usr/TeX/texmf/scripts/context/perl/texutil.pl line 1520, TUI line 3.
etc.
Forgot to say, the /tui file in question has this at line 3:
c \thisisbytesequence{^^G^^[#}
which certainly does look a bit funny.
Duncan
I'm running the latest beta on top of a TeXlive 2003 install on linux.
The job I'm currently running needs various tables of contents (and a
set of bookmarks) but texutil (v. 8.2) seems to be choking on the .tui
file at the very end of the run with this message:
TeXUtil 8.2 - ConTeXt / PRAGMA
Hello all.
I have a series of documents which use \section to create a numbered
heading and \subject to create an unnumbered one. I would like the
unnumbered headings (the \subjects) to do put the titles in the running
heads and in the tables of contents, like the \sections do. I have
Hello all.
I have an odd behaviour which I think I just about understand but can't fix.
I use \margintext{Note that ...} to place little notes into the margin
next to things in the running text. It has worked beautifully for all my
content up till now, but I now find myself wanting to put a
Apologies. I found the \pagereference[ref] command about a minute after
sending this email. I had thought it output the page number, as the
manual was slightly unclear on the issue. Sorry for the noise.
Duncan
___
ntg-context mailing list
[EMAIL
Hi all.
I'm using the nice \bTABLE natural tables commands to set my tables. I'm
now running into tables which need a little extra space, and since I
have a wide left margin I would like them to extend into it. By default
they extend into the right marging, which doesn't have very much space
I'm having another problem with \placefigure[left] and this time I'm pretty
sure I can't solve it myself.
I'm using ConTeXt ver 2003.7.21 on a TeXlive base with pdfetex
3.14159-1.00b-pretest-20020211-2.1 (Web2C 7.3.7).
The following source overlaps the text on top of the graphic rather than
Hans wrote:
% output=pdftex
\starttext
\definetextbackground
[underbared]
[alternative=1,location=text,
background=,frame=]
\def\underbared
{\groupedcommand
{\starttextbackground[underbared]}
{\stoptextbackground}}
\underbared{\input tufte\relax}
I wrote:
When I use \placefigure[left] the top of the figure is aligned
with the second line of the text. I would like it to be aligned
with the first line. If you look at the example on page 243/4 of
the manual you can see it happening there too:
And then immediately afterwards I tried
Bill wrote:
So begin your text with:
\strut {\bf }
or one of the other commands. \strut is a zero-width character.
Excellent, thanks. I had experimented with just {}, and even \,\! but the
problem remained. This solves it, thanks a lot.
Duncan
[EMAIL PROTECTED]
In answer to my own question, and possibly as a bug report: line breaking
within \underbar{...} is broken when used in conjunction with
\setupalign[{right,nothyphenated}]
Duncan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Duncan Hothersall
Sent: 29
A quick question: \underbar is demonstrated in the manual as allowing lines
to break normally (page 204). In my texts line breaks won't happen in an
underlined phrase, meaning that they stick out into the right hand margin.
Is this a known problem, or does it work for other people?
Thanks
Duncan
Hi Willi
You can always define your own commands e.g.
\define[1]\CircleFramed{%
...
Aah! My eyes are opened. Thank you very much. That will be useful in a
number of areas.
Duncan
[EMAIL PROTECTED]
___
ntg-context mailing list
[EMAIL PROTECTED]
I have the following test file:
--
\setupoutput[pdftex]\setupcolor[rgb]\starttext
\items[symbol=none,location=top]{{\inframed[frame=on,corner=round,radius=3mm
,offset=1mm]{demand-pull
inflation}},{\inframed[frame=on,corner=round,radius=3mm,offset=1mm]{in
comparison}},capital-intensive}
I'm setting a document which is made up of lots of questions, and I want to
keep the questions whole on a page, breaking the page before the question if
the whole question isn't going to fit on it.
Since all the questions are done in ConTeXt as enumerations or descriptions,
I have been looking
101 - 190 of 190 matches
Mail list logo