\starttext
\showcolor[rgb]
\stoptext
Numbers are next to each other. In MkII (with \setupcolors[state=start]) it
looks OK.
Regards.
Vedran Miletić
___
If your question is of interest to others as well, please add an
Am 25.02.2011 um 14:14 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
> Hello,
>
> maybe already questioned in the past, but I cannot find the answer:
>
> How to change the numbering style for a particular head (e.g. section) from
> numbers (1, 2...) to letters (A, B...)
Hello,
maybe already questioned in the past, but I cannot find the answer:
How to change the numbering style for a particular head (e.g. section) from
numbers (1, 2...) to letters (A, B...) - which option and value
(http://wiki.contextgarden.net/Reference/en/setuphead)?
Thank you in advance
On 23-2-2011 5:54, Marco wrote:
On 2011-02-23 Aditya Mahajan wrote:
[...]
I do not think that either of these options is worth the trouble.
No, definitely not.
I am not sure what you want.
Do you want
[...]
context --purgeall
This will probably be difficult to implement, since the
On Wed, 23 Feb 2011, Marco wrote:
On 2011-02-23 Aditya Mahajan wrote:
Actually, `context --purgeall` deteles all the files with .tmp and .md5
extension in the current directory. Only the .vimout files remain.
Does it on your system? Not on mine. If I compile the example posted earlier
in th
On 2011-02-23 Aditya Mahajan wrote:
> Actually, `context --purgeall` deteles all the files with .tmp and .md5
> extension in the current directory. Only the .vimout files remain.
Does it on your system? Not on mine. If I compile the example posted earlier
in the thread and execute context --pur
On Wed, 23 Feb 2011, Marco wrote:
Do you want
[...]
context --purgeall
This will probably be difficult to implement, since the complete directory
tree has to be scanned to find xyz-externalfilter-abc-X.___ remains.
Actually, `context --purgeall` deteles all the files with .tmp and .md5
e
On 2011-02-23 Aditya Mahajan wrote:
> [...]
> I do not think that either of these options is worth the trouble.
No, definitely not.
> I am not sure what you want.
> Do you want
> [...]
> context --purgeall
This will probably be difficult to implement, since the complete directory
tree has t
On Wed, 23 Feb 2011, Marco wrote:
So, the easiest solution is to move (or perhaps simlink) the file
to the temporary directory. Then you can include the file tmp/t.tex and
the md5 hash will be created in the tmp directory.
It will probably work, but is not a nice solution in my opinion. It loo
On 2011-02-23 Aditya Mahajan wrote:
> The md5 hashes are in the same directory as the file. So, in case you are
> including a file from the current directory, the md5 hash will also be
> there.
So it's on purpose. I wasn't sure about that.
> So, the easiest solution is to move (or perhaps sim
On Wed, 23 Feb 2011, Marco wrote:
I stumbled over one thing: When set directory=tmp the temporary files are sent
to the tmp directory except the md5 hashes of external file code, these are
put in the working dir.
The md5 hashes are in the same directory as the file. So, in case you are
includ
On 2011-02-22 Aditya Mahajan wrote:
> Check the latest dev version of t-vim.
> https://github.com/adityam/filter/blob/dev/t-vim.tex
Brilliant. Works like a charm.
I stumbled over one thing: When set directory=tmp the temporary files are sent
to the tmp directory except the md5 hashes of externa
On Tue, 22 Feb 2011, Marco wrote:
On 2011-02-21 Aditya Mahajan wrote:
1) You have »Add line numbers« on your TODO list. What's the progress?
No. I will look into them. I think that I should just be able to plug in
ConTeXt's line numbering mechanism.
I like the »just« in you
On 2011-02-21 Aditya Mahajan wrote:
> > 1) You have »Add line numbers« on your TODO list. What's the progress?
>
> No. I will look into them. I think that I should just be able to plug in
> ConTeXt's line numbering mechanism.
I like the »just« in your sentence
On Sat, 19 Feb 2011, Marco wrote:
I like your t-vim module. I think it's a nice concept not te reinvent the
wheel and to take advantage of the hundreds of syntax files of the vim
contributors.
1) You have »Add line numbers« on your TODO list. What's the progress?
No. I will look in
Hi everybodyoy
Hi Aditya
I like your t-vim module. I think it's a nice concept not te reinvent the
wheel and to take advantage of the hundreds of syntax files of the vim
contributors.
1) You have »Add line numbers« on your TODO list. What's the progress?
2) To set the font siz
);
k:= k+1;
endfor;
It draws a circle, points, label, but unwanted coordinate numbers like
(60.43535, 36.97691), too.
I didn't see such numbers in any example in metafun document.
If I use z[k] like
z[k] = point i of P;
draw z[k]
Then such a long numbers disappeared.
Is it the onl
circle, points, label, but unwanted coordinate numbers like
(60.43535, 36.97691), too.
I didn't see such numbers in any example in metafun document.
If I use z[k] like
z[k] = point i of P;
draw z[k]
Then such a long numbers disappeared.
Is it the only way to surpress those numbers not us
Ok, thanks for the info!
Daniel
Am 02.01.11 11:17, schrieb Thomas Schmitz:
On Sun, 02 Jan 2011 00:34:12 +0100
Daniel Schopper wrote:
I'm using
ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.12.31
which should be the newest version available on
http://tlcontrib.metatex.org/2010.
You will hav
On Sun, 02 Jan 2011 00:34:12 +0100
Daniel Schopper wrote:
I'm using
ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.12.31
which should be the newest version available on
http://tlcontrib.metatex.org/2010.
You will have to use a more recent (beta) version. I have
added a sentence to the wiki
Dear all,
on trying to reproduce the TEI to ConTeXt example on
http://wiki.contextgarden.net/TEI_xml I haven't been able to get the
line numbering per page working right. I directly copy-pasted the
relevant part of the seventh listing which goes like this:
\setuplinenumbering[location=inner,
a number if it matches a condition (here: be divisible by 5).
> This gets me what I wanted. Still fumbling greatly with the macro
> syntax. I'm not sure what the recursion is for, for example. On the
> other hand the lua seems rather straightforward to me by comparison. I
> tried retur
a number if it matches a condition (here: be divisible by 5).
> This gets me what I wanted. Still fumbling greatly with the macro
> syntax. I'm not sure what the recursion is for, for example. On the
> other hand the lua seems rather straightforward to me by comparison. I
> trie
On Thu, Dec 16, 2010 at 1:34 PM, Wolfgang Schuster
wrote:
>
> Am 16.12.2010 um 22:28 schrieb Jon Crump:
>
> In python-speak I'd interpret context.color() as a method call on a
> module 'context'. Could you, or anyone, direct me to any documentation
> for this module and a list of the properties an
Am 16.12.2010 um 22:28 schrieb Jon Crump:
> In python-speak I'd interpret context.color() as a method call on a
> module 'context'. Could you, or anyone, direct me to any documentation
> for this module and a list of the properties and methods that it
> supports?
http://pragma-ade.com/show-man-4
e by comparison. I
tried returning an empty string like this: context.color( {"blue"}, ''
) to remove the other numbers, but that seemed silly, so I just
removed the 'else' clause instead, and that seemed to work as well.
In python-speak I'd interpret context.col
On Dec 14, 2010, at 9:33 PM, Jon Crump wrote:
> All,
>
> Thanks to Thomas's help, I've been making my way up the learning curve.
>
> My TEI xml has empty lb elements indicating lines in the original and
> corresponding lb elements in the translation. I'd like
All,
Thanks to Thomas's help, I've been making my way up the learning curve.
My TEI xml has empty lb elements indicating lines in the original and
corresponding lb elements in the translation. I'd like to be able to
set these numbers in the margin so that readers may coordinate th
On 12-12-2010 12:49, Peter Münster wrote:
Hello,
Formatting numbers seems to be buggy:
\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid (0, 20, 1, 20cm, 10cm) ;
fmt_pictures := false ; % use TeX as formatting engine
draw hlintext.lft(0, 20
Hello,
Formatting numbers seems to be buggy:
\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid (0, 20, 1, 20cm, 10cm) ;
fmt_pictures := false ; % use TeX as formatting engine
draw hlintext.lft(0, 20, 1, 20cm, "@3e") ;
\stopMPcode
\sto
On Friday 03 December 2010 07:37:55 seasoul wrote:
> Dear All,
>
>After my updating context minimal, the equation and figure numbers
> became very weird.
>
> For example, all the figures in chapter 2 labeled as "figure 2." all the
> equations in chapter 2 as &
Dear All,
After my updating context minimal, the equation and figure numbers became
very weird.
For example, all the figures in chapter 2 labeled as "figure 2." all the
equations in chapter 2 as "(2.).
I have seen a report in the mailing list also mentioning a
Hello ConTeXist...
I work on my first module (t-scancsv) which allows to process external
CSV files.
Now I have a problem with the processing of tables that require
expansion line data.
Unable to discover why my macro is not capable of handling the expanded
rows.
It seems to me that the macro
Am Mittwoch 27 Oktober 2010, 16:52:07 schrieb Wolfgang Schuster:
> Am 27.10.2010 um 11:34 schrieb Stefan Müller:
> > Thanks Wolgang, this looks pretty nice. Unfortunately I get the following
> > error when running your example (ConTeXt ver: 2010.10.22 16:46 MKIV
> > fmt: 2010.10.27 int: english/
Am Dienstag 26 Oktober 2010, 21:12:01 schrieb Wolfgang Schuster:
> Am 26.10.2010 um 20:47 schrieb Stefan Müller:
> > One more question before wikifying: Is there a way to prevent the prefix
> > "line"? I want to say something like "In lines 3 to 13".
>
> The texts „line“ and „lines“ are set with \
Am 26.10.2010 um 20:47 schrieb Stefan Müller:
> One more question before wikifying: Is there a way to prevent the prefix
> "line"? I want to say something like "In lines 3 to 13".
The texts „line“ and „lines“ are set with \setuplabeltext but you can see
alternative texts with \inline{...}[].
On 26.10.2010 15:31, Wolfgang Schuster wrote:
Am 26.10.2010 um 10:30 schrieb Stefan Müller:
Hi list,
is there a (preferably easy) way to reference line numbers inside a typing?
Minimal (not working) example:
\setuptyping[numbering=line]
\starttext
In the following typing, \in{line
Am 26.10.2010 um 10:30 schrieb Stefan Müller:
> Hi list,
>
> is there a (preferably easy) way to reference line numbers inside a typing?
> Minimal (not working) example:
>
> \setuptyping[numbering=line]
> \starttext
> In the following typing, \in{line}{}[line:intypin
Hi list,
is there a (preferably easy) way to reference line numbers inside a
typing? Minimal (not working) example:
\setuptyping[numbering=line]
\starttext
In the following typing, \in{line}{}[line:intyping] is really interesting.
\starttyping
This line is so interesting.
\stoptyping
Hi,
in BibTeX databases ranges of numbers are usually listed with a single dash
(e.g. 3-7) for compatibility reasons. Therefore the standard BibTeX styles
convert a single dash in page numbers or range of numbers to a double dash
(3--7). How do I get the same behaviour for \volume \issue
On 07.10.2010 09:35, Alan BRASLAU wrote:
On Thursday 07 October 2010 09:19:42 Hans Hagen wrote:
On 7-10-2010 12:02, Stefan Müller wrote:
Splitting up long source code in several pieces (one per page) and put
them in separate figures doesn't seem right to me. Setting it as
numbered paragraph? P
On Thursday 07 October 2010 09:19:42 Hans Hagen wrote:
> On 7-10-2010 12:02, Stefan Müller wrote:
>
> > Splitting up long source code in several pieces (one per page) and put
> > them in separate figures doesn't seem right to me. Setting it as
> > numbered paragraph? Putting up a fake caption with
On 7-10-2010 12:02, Stefan Müller wrote:
Thank you very much for your effort. Pretty amazing what's doable.
Unfortunately there are two issues: The distance between numbers and
source lines is too small for bigger line numbers. I just have to make
"distance=0em" big enough f
ssues: The distance between numbers and
source lines is too small for bigger line numbers. I just have to make
"distance=0em" big enough for this to work, right?
The other thing: The width available for the caption is capped by the
width of the longest source line. I think I prefer the so
On 6-10-2010 4:26, Stefan Müller wrote:
Hi list,
I defined a float for typesetting algorithms, so I can reference them at
other places in the document.
\definefloat[algorithm][algorithms]
When I now place such a figure with
\placealgorithm[here][alg:myalgorithm]{Very neat algorithm.}{
\startt
On 6-10-2010 4:26, Stefan Müller wrote:
Hi list,
I defined a float for typesetting algorithms, so I can reference them at
other places in the document.
\definefloat[algorithm][algorithms]
When I now place such a figure with
\placealgorithm[here][alg:myalgorithm]{Very neat algorithm.}{
\startt
Hi list,
I defined a float for typesetting algorithms, so I can reference them at
other places in the document.
\definefloat[algorithm][algorithms]
When I now place such a figure with
\placealgorithm[here][alg:myalgorithm]{Very neat algorithm.}{
\starttyping
some source code
\stopt
Am 11.09.2010 um 22:50 schrieb Steffen Wolfrum:
>
> Hi all,
>
> how do I get my numbers in level nine (and higher) back?
> See example below please.
Add
\definestructureprefixset [myset]
[section-1,section-2,section-3,section-4,section-5,section-6,section-7,section-8,secti
Hi all,
how do I get my numbers in level nine (and higher) back?
See example below please.
Did someone change module[subsub] ??
Thanks in advance,
Steffen
[2010.09.05 13:23 MKIV]
=
\usemodule[subsub]
\starttext
\definehead [LevelSeven] [subsubsubsubsection]
\definehead [LevelNine
On Tue, Aug 24, 2010 at 6:01 PM, Michael Goerz
wrote:
> I'm trying to create a book where the front matter has no
> headers/footers, except roman numeral page numbers at the top outside of the
> page. The main matter should have Arabic numeral page numbers
> (restarting wit
Hi,
I'm trying to create a book where the front matter has no
headers/footers, except roman numeral page numbers at the top outside of the
page. The main matter should have Arabic numeral page numbers
(restarting with '1') at the top outside of each page, plus the name of
the boo
On 13-8-2010 7:54, John Haltiwanger wrote:
I seem to be full of problems today:
---
\setupcolors[state=start]
\setupinteraction[state=start, color=black]
\setupcolor[hex]
\definecolor[titleRed][h=910A00]
\starttext
This \footnote{should not have a red color, correct?}
\st
On 2010-08-13 <17:54:02>, John Haltiwanger wrote:
> I seem to be full of problems today:
>
> ---
> \setupcolors[state=start]
> \setupinteraction[state=start, color=black]
Hi John,
it's a link to the same page:
\setupinteraction[state=start, color=black, contrastcolor=black]
I seem to be full of problems today:
---
\setupcolors[state=start]
\setupinteraction[state=start, color=black]
\setupcolor[hex]
\definecolor[titleRed][h=910A00]
\starttext
This \footnote{should not have a red color, correct?}
\stoptext
---
The footnote
于 2010年08月13日 00:21, Wolfgang Schuster 写道:
Should be \setupuserpagenumber.
Thanks, this works.
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl
Am 12.08.10 05:35, schrieb Hongwen Qiu:
于 2010年08月12日 11:08, Wolfgang Schuster 写道:
Am 12.08.10 03:52, schrieb Hongwen Qiu:
Hi,
The following minimal example has no effect on page numbering(MkIV):
\setuppagenumbering[conversion=romannumerals] %
\setuppagenumbering[numberconversion=romannumera
于 2010年08月12日 11:08, Wolfgang Schuster 写道:
Am 12.08.10 03:52, schrieb Hongwen Qiu:
Hi,
The following minimal example has no effect on page numbering(MkIV):
\setuppagenumbering[conversion=romannumerals] %
\setuppagenumbering[numberconversion=romannumerals] has no effect too.
\setupuserpagenum
Am 12.08.10 03:52, schrieb Hongwen Qiu:
Hi,
The following minimal example has no effect on page numbering(MkIV):
\setuppagenumbering[conversion=romannumerals] %
\setuppagenumbering[numberconversion=romannumerals] has no effect too.
\setupuserpagenumbering[numberconversion=romannumerals]
Wo
Hi,
The following minimal example has no effect on page numbering(MkIV):
\setuppagenumbering[conversion=romannumerals] %
\setuppagenumbering[numberconversion=romannumerals] has no effect too.
\starttext
\chapter{Alpha}
\input tufte
\stoptext
$ context --version
MTXrun | current version: 2010.08.
ing
>> This is the first line.
>> Last line after an empty line.
>> \stoptyping
>> \stoptext
>>
>> the linenumbering setup of "location=intext" can not work. the line
>> numbers still b
ation=intext" can not work. the line
numbers still be inmargin.
Not "location=intext", but "location=text" will do.
___
If your question is of interest to others as well, please add an entry
Hi all,
this is an example.
\setuptyping[numbering=line]
\setuplinenumbering[location=intext]
\showframe
\starttext
\starttyping
This is the first line.
Last line after an empty line.
\stoptyping
\stoptext
the linenumbering setup of "location=intext" can not work. the line
number
ample
included below, it was the first three entries on each page (after the first
page) that were formatted as if they were on the previous page.
Related to this, I need "invisible" page numbers on the table of contents
pages to enable different formatting by odd/even page number (which I
ac
That's very close indeed. Thanks for putting me on the right track!
What I wanted is rather:
\setuphead
[chapter]
[page={yes,footer,right},
footer=nomarking]
Best
Piotr
2010/5/21 Wolfgang Schuster :
> Am 20.05.10 13:21, schrieb Piotr Kopszak:
>>
>> Many thanks for your help!
>>
>> First the
Am 20.05.10 13:21, schrieb Piotr Kopszak:
Many thanks for your help!
First the file according to the wiki example. Works if location=footer
in \setuppagenumbering but not when
\definepagebreak
[mychapterpagebreak]
[yes,header,right]
\setuphead
[chapter]
[page=mychapterpagebreak,foo
Many thanks for your help!
First the file according to the wiki example. Works if location=footer
in \setuppagenumbering but not when
\definepagebreak
[mychapterpagebreak]
[yes,header,right]
\setuphead
[chapter]
[page=mychapterpagebreak,footer=empty]
\setuppagenumbering[alternative=doubl
Am 20.05.10 12:53, schrieb Piotr Kopszak:
It would be handy to avoid inserting \page in this case, I think.
\setuphead[chapter][page={blank,right}]
Wolfgang
___
If your question is of interest to others as we
Am 20.05.10 12:58, schrieb Piotr Kopszak:
Yes, I know but even if it was working in all cases (and it is not,
for instace I need pagenumbers in the margin and it didn't work in
this case) it looks really, really ugly. Why not wrap something like
this in a definition and give users an option?
Yes, I know but even if it was working in all cases (and it is not,
for instace I need pagenumbers in the margin and it didn't work in
this case) it looks really, really ugly. Why not wrap something like
this in a definition and give users an option?
2010/5/20 Wolfgang Schuster :
> Am 20.05.10 11:
It would be handy to avoid inserting \page in this case, I think.
2010/5/20 Taco Hoekwater :
> Piotr Kopszak wrote:
>>
>> Hello list,
>>
>> I don't know if it is only an idiosyncrasy of Polish typography but if
>> a chapter ends with a blank page it should not display its number. It
>> would be v
Am 20.05.10 11:07, schrieb Piotr Kopszak:
Hello list,
I don't know if it is only an idiosyncrasy of Polish typography but if
a chapter ends with a blank page it should not display its number. It
would be very useful if this could be an option (if not a default
behaviour) of \setuppagenumbering .
Piotr Kopszak wrote:
Hello list,
I don't know if it is only an idiosyncrasy of Polish typography but if
a chapter ends with a blank page it should not display its number. It
would be very useful if this could be an option (if not a default
behaviour) of \setuppagenumbering . It's not a huge prob
Hello list,
I don't know if it is only an idiosyncrasy of Polish typography but if
a chapter ends with a blank page it should not display its number. It
would be very useful if this could be an option (if not a default
behaviour) of \setuppagenumbering . It's not a huge problem and I
think I will
On 13-5-2010 10:42, Otared Kavian wrote:
Dear all,
When defining abbreviations through \definesynonyms, if the abbreviation
contains a digit then it seems that the built-in macro is not recognized: in
the example below the command \EEG is recognized, whereas \M2 or \Y2K are not.
Is there a way
Dear all,
When defining abbreviations through \definesynonyms, if the abbreviation
contains a digit then it seems that the built-in macro is not recognized: in
the example below the command \EEG is recognized, whereas \M2 or \Y2K are not.
Is there a way around this difficulty? Or should one use
Jan Pohanka wrote:
Thank you,
I have an additional question. Is it possible to have the sum available
before the \question commands?
This is what I would do (but I suspect Wolfgang can come up
with something cleaner):
\def\startquestions
{\newcount\totalpoints}
\def\stopquestions
{\exp
Thank you,
I have an additional question. Is it possible to have the sum available
before the \question commands?
I mean
Total points: \the\totalpoints % or something like that
\question{5}{text text}
\question{3}{text text}
\question{1}{text text}
greetings,
Jan
Dne Tue, 11 May 2010 11:23
Jan Pohanka wrote:
Hello,
I'm preparing a simple template for exam tests. I have following commad.
\question{3}{text text text}
\newcount\totalpoints
\def\question#1#2{\global\advance\totalpoints #1\relax ... #2 ...}
where firtst parametr stands for points.
I'd like to compute the sum of p
Hello,
I'm preparing a simple template for exam tests. I have following commad.
\question{3}{text text text}
where firtst parametr stands for points.
I'd like to compute the sum of points to be used as "Total points: xx"
What is the correct approach to do that if I'm using MKII?
greetings Jan
use to set my left margins to 0pt. When I do this now in
>>> mkIV, I get misplaced footnote numbers (at the bottom).
>>>
>>> Example:
>>>
>>> \setuplayout
>>> [leftmargin=\zeropoint]
>>>
>>> \starttext
>>> just text\
Am 03.05.10 15:23, schrieb Thomas Floeren:
Without the leftmargin key, text and footer leave the page borders.
Guess I have to to change my way to setup the layout in mkIV(?)
There are a few things you should change:
1. Use 'middle' for the width and height keys in \setuplayout,
2. Place
Wolfgang Schuster <mailto:schuster.wolfg...@googlemail.com> wrote on Monday,
May 03, 2010 2:20 PM:
> Am 03.05.10 14:11, schrieb Thomas Floeren:
>>
>> Hello,
>>
>> in mkII I use to set my left margins to 0pt. When I do this now in
>> mkIV, I get mi
Am 03.05.10 14:11, schrieb Thomas Floeren:
Hello,
in mkII I use to set my left margins to 0pt. When I do this now in mkIV, I get
misplaced footnote numbers (at the bottom).
Example:
\setuplayout
[leftmargin=\zeropoint]
\starttext
just text\footnote{foot text}
\stoptext
To get
Hello,
in mkII I use to set my left margins to 0pt. When I do this now in mkIV, I get
misplaced footnote numbers (at the bottom).
Example:
\setuplayout
[leftmargin=\zeropoint]
\starttext
just text\footnote{foot text}
\stoptext
To get correctly placed numbers I have to either set
$ context --version
MTXrun | current version: 2010.04.16 21:08
$ luatex --version
This is LuaTeX, Version beta-0.60.0-2010040422
I found that \setuptyping[numbering=line] no longer produces line
numbers any more. So are there something changed, or just it's ought to
Am 24.03.10 13:37, schrieb Tom:
The Chicago Manual of Style, 14th edition, states that page numbers are
normally omitted on pages containing only illustrations or tables, except in
long sequences of figures or tables. Is it practical within ConTeXt to omit
page numbers from a single page within
The Chicago Manual of Style, 14th edition, states that page numbers are
normally omitted on pages containing only illustrations or tables, except in
long sequences of figures or tables. Is it practical within ConTeXt to omit
page numbers from a single page within a chapter?
Tom Benjey
717-258
On 15-3-2010 14:46, Thomas A. Schmitz wrote:
Hi all, Hans,
is there or can we have an easy, fast way of setting up the TeXGyre fonts so
that they use oldstyle numbers by default? I think this would be attractive at
least for the serif fonts termes, pagella, schola, which all have this feature
Hi all, Hans,
is there or can we have an easy, fast way of setting up the TeXGyre fonts so
that they use oldstyle numbers by default? I think this would be attractive at
least for the serif fonts termes, pagella, schola, which all have this feature.
All best
Thomas
On Mon, Feb 15 2010, Andreas Harder wrote:
>
> But the "$·$"-construct is problematic. It do not work in display style
> (\let\calcmath\displaycalcmath) and without the dollar-signs the placement
> and the spacing are wrong.
I don't know, why "·" doesn't work, but you can try this:
local exp_rep
Am 15.02.2010 um 20:35 schrieb Peter Münster:
> On Sun, Feb 14 2010, Hans Hagen wrote:
>
>>> sqrt = math.sqrt
>>> pi = math.pi
>>> function my_equation(s, r)
>>
>> beware, this creates (and possibly overloads) sqrt, pi and my_equation as
>> gobals
>
> Indeed...
>
> The following hack w
On 15-2-2010 20:35, Peter Münster wrote:
tex.write(r:gsub("%.", ","))
tex.write((r:gsub("%.", ",")))
gsub returns two values
-
Hans Hagen | PRAGMA ADE
Ridderstraat
On Sun, Feb 14 2010, Hans Hagen wrote:
>>sqrt = math.sqrt
>>pi = math.pi
>>function my_equation(s, r)
>
> beware, this creates (and possibly overloads) sqrt, pi and my_equation as
> gobals
Indeed...
The following hack was *not* so quick, but there is a bug somewhere
(a digit is adde
On 14-2-2010 14:10, Andreas Harder wrote:
\startluacode
local floor = math.floor
local round = function(n) return floor(1000*n+0.5)/1000 end
sqrt = math.sqrt
pi = math.pi
function my_equation(s, r)
r = round(r)
r = tostring(r)
tex.print(s:gsub("*", "$·$") .. "=" ..
Am 14.02.2010 um 13:11 schrieb Peter Münster:
> On Sun, Feb 14 2010, Andreas Harder wrote:
>
>> 1) Is it possible to have a comma as decimal separator?
>>
>> 2) If you look at the above definition, it works fine with +, –, /, but
>> not with *. Is it possible to expand my macro that it will als
On Sun, Feb 14 2010, Andreas Harder wrote:
> 1) Is it possible to have a comma as decimal separator?
>
> 2) If you look at the above definition, it works fine with +, –, /, but
> not with *. Is it possible to expand my macro that it will also work with
> a multiplication or even with the last two
On Sun, Feb 14, 2010 at 11:42 AM, Andreas Harder
wrote:
> Hi all!
>
> I played a little bit with LuaTeX in ConTeXt and two questions have arisen.
>
> \usemodule[calcmath]
> \starttext
> \def\calculate#1{\calcmath{#1=\ctxlua{tex.print(#1)}}}
> \calculate{1+2} \par
> \calculate{3/2-1}\par % the outp
Hi all!
I played a little bit with LuaTeX in ConTeXt and two questions have arisen.
\usemodule[calcmath]
\starttext
\def\calculate#1{\calcmath{#1=\ctxlua{tex.print(#1)}}}
\calculate{1+2} \par
\calculate{3/2-1}\par % the output should be 0,5
\calculate{3*2}\par
% \calculate{sqrt(2)} \calculate{2*π
On 10-2-2010 10:26, Mojca Miklavec wrote:
On Tue, Feb 9, 2010 at 20:55, Wolfgang Schuster wrote:
Am 09.02.10 20:36, schrieb Mojca Miklavec:
Hello Hans,
\currentpage (as already reported by Peter Münster) doesn't work in
MKIV (always returns 1) and \setnumber[page]{0} has zero effect (in
MKII;
numberofpages (or some other counter) doesn't count any
leftovers from the end? (I'll try to play a bit more with that, so you
don't need to answer me that last question, but I find the behaviour
of other counters real
601 - 700 of 971 matches
Mail list logo