[NTG-context] Re: self defined conversion in \date

2024-05-30 Thread Peter Münster
On Thu, May 30 2024, Wolfgang Schuster wrote:

> The \date mechanism can only use conversions which are defined on the Lua side

Ok. How please?

This does not work:

--8<---cut here---start->8---
\startluacode
-- from https://wiki.contextgarden.net/Command/defineconversion:
  interfaces.implement {
name  = "FRdate",
public= true,
arguments = "string",
actions   =
function(s)
local n = tonumber(s)
if n == 1 then
context"1\\ier"
else
context(s)
end
end
}
\stopluacode
\def\ier{\highordinalstr{er}}
\mainlanguage[fr]
\defineconversion[frd][\FRdate]
\setuplanguage[fr][date={day:frd,\ ,month,\ ,year}]
\starttext
Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK)\\
Dates: \date[d=1], \date[d=2] (not OK)
\stoptext
--8<---cut here---end--->8---

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] missing space with French quotation

2024-05-30 Thread Peter Münster
Hi,

When using \start/stopquotation in French documents, there is a missing space:

\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]
\starttext
bla \quotation{OK} bla\\
bla «OK» bla
\startquotation
  Not Ok: a space is missing
\stopquotation
\stoptext

Is this a bug or a feature?

How could I get a space before "»" please?

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] self defined conversion in \date

2024-05-30 Thread Peter Münster
Hi,

It seems, that you cannot use self defined conversions in \date:

\defineconversion[mytest][X-\romannumerals]
\starttext
Self defined conversion: \convertnumber{mytest}{1} (OK)\\
Predefined conversion in date: \date[d=1][day:a] (OK)\\
Self defined conversion in date: \date[d=1][day:mytest] (not OK)
\stoptext

Is this a bug, or a feature?

How could one use self defined conversions in \date please?

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] bug tracker

2024-05-27 Thread Peter Münster
Hi,

Is there a bug tracker for ConTeXt?
(It seems, that https://tracker.luatex.org/ is no more used...)

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: preventing column break after section title

2024-04-18 Thread Peter Münster
On Thu, Apr 18 2024, Peter Münster wrote:

> How could I prevent a column break after the second section title please?

Ok, found it:

\setupitemize[each][autointro]

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] preventing column break after section title

2024-04-18 Thread Peter Münster
Hi,

How could I prevent a column break after the second section title please?

Minimal example:

\starttext
\startcolumns[n=2]
  \section{title 1}
  \dorecurse{22}{bla\par}
  \section{title 2} % Here starts a new column.
  \startitemize
\dorecurse{15}{\item bla}
  \stopitemize
\stopcolumns
\stoptext

I’ve tried "\setuphead[section][after={\columnbreak[no]}]", but it does
not help.

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: error with \sc

2024-04-02 Thread Peter Münster
On Tue, Apr 02 2024, Andres Conrado Montoya wrote:

> You shouldn't run context as root in any case.

I don’t run context as root. But I need to erase the cache in
/opt/context/tex/texmf-cache as root, because the user doesn’t have the
permission to do that.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: error with \sc

2024-04-02 Thread Peter Münster
On Tue, Apr 02 2024, Pablo Rodriguez via ntg-context wrote:

>   mtxrun --script cache --erase && mtxrun --generate

Thanks. It did not work after doing it as root, but then I saw, that
there is also a cache in the user home-directory, so I’ve done it as the
user too, and now it works.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] error with \sc

2024-04-02 Thread Peter Münster
Hi,

With ConTeXt version 2024.04.01, the \sc command produces an error:

fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern rm 12pt' is loaded
pages   > flushing realpage 1, userpage 1, subpage 1
close source> level 1, order 3, name './test.tex'
backend > xmp > using file 
'/opt/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
mtx-context | fatal error: return code: 1

Test file:
  \starttext
  \sc test
  \stoptext

Is this a bug, or some misconfiguration of my installation?

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] offset with \copypages

2024-03-21 Thread Peter Münster
Hi,

When inserting pages with \copypages, the included pages are slightly
shifted to the left and to the bottom.

Minimal example:

% test-file.tex:
\setuplayout[page]
\starttext
\input tufte
\vfill
\input tufte
\stoptext

% test.tex:
\starttext
\copypages[test-file.pdf]
\stoptext

How could I avoid this offset please?

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: usage of conversion in \date

2023-12-18 Thread Peter Münster
On Wed, Nov 29 2023, Peter Münster wrote:

> According to https://wiki.contextgarden.net/Command/date:
> "The name suffixes indicate number conversions. Any conversion, either
>  built-in or defined by \defineconversion, can be used there."
>
> But it does not seem to work...

Hi,

Should I add this to the bug-tracker?  If yes, where please?
It seems, that tracker.luatex.org is no more used.

TIA,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: error with definestartstop and startmode

2023-12-17 Thread Peter Münster
On Sat, Dec 16 2023, Hans Hagen via ntg-context wrote:

> \usemodule[abbreviations-logos]
> \defineblock [H] [before=\startcolor[blue],after=\stopcolor]
> \keepblocks[H]

Thanks for this solution.

Is there also something for inline-mode? Example:

test \beginH TEST\endH test

TIA,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] error with definestartstop and startmode

2023-12-16 Thread Peter Münster
Hi,

I get an "runaway error" with the following example:

--8<---cut here---start->8---
\definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}]
\starttext
test
\startH
  TEST
\stopH
\stoptext
--8<---cut here---end--->8---

How could I create such start-stop pair please?

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: usage of conversion in \date

2023-11-29 Thread Peter Münster
On Wed, Nov 29 2023, Hans Hagen wrote:

> \setuplanguage[fr][date={day:++,\ ,month,\ ,year}]

Unfortunately this does not work as I need. Only the "1" should be
converted to 1er, not the other numbers.

French is a bit special:
You say "le premier novembre" but not "le un novembre".
You say "le deux novembre" but not "le deuxième novembre".

According to https://wiki.contextgarden.net/Command/date:
"The name suffixes indicate number conversions. Any conversion, either
 built-in or defined by \defineconversion, can be used there."

But it does not seem to work...

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] usage of conversion in \date

2023-11-28 Thread Peter Münster
Hi,

When printing a date in French, I would like to convert the "1" to
"1\ier", but it does not work as I expect:

--8<---cut here---start->8---
\startluacode
-- from https://wiki.contextgarden.net/Command/defineconversion:
interfaces.implement {
name  = "FRdate",
public= true,
arguments = "string",
actions   =
function(s)
local n = tonumber(s)
if n == 1 then
context"1\\ier"
else
context(s)
end
end
}
\stopluacode
\def\ier{\highordinalstr{er}}
\mainlanguage[fr]
\defineconversion[frd][\FRdate]
\setuplanguage[fr][date={day:frd,\ ,month,\ ,year}]
\starttext
Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK)\\
Dates: \date[d=1], \date[d=2] (not OK)
\stoptext
--8<---cut here---end--->8---

How could I get "1\ier\ novembre 2023" please?

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: list of modules: need changes/testing/response

2023-08-30 Thread Peter Münster
On Wed, Aug 30 2023, Henning Hraban Ramm wrote:

> If their authors are present, I’d appreciate a comment if we should keep them.

Hi Hraban,

I don't know. My modules are probably all outdated and don't work with
the latest ConTeXt version. On the one hand they are probably no more
useful, on the other hand there could be perhaps some future users
and/or developers, who would like to use them and send patches.
Perhaps a flag like "unmaintained" would do the trick?
But it's no problem for me, if you prefer to delete them.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

Re: [NTG-context] English-Vietnamese facing pages

2023-04-03 Thread Peter Münster via ntg-context
On Mon, Apr 03 2023, jbf via ntg-context wrote:

> Q 1: Has anybody reading this actually produced a bilingual book (it doesn't
> have to be en-vn) with ConTeXt?

Hi,

Only some pages of a book: https://wiki.contextgarden.net/Catalogue_raisonné

HTH,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] bold small caps

2023-04-03 Thread Peter Münster via ntg-context
Hi,

I'm quite sure, that this worked some time ago with the standard font (LM):

\setff{smallcaps} Normal and \bf bold Small Caps.
(See also https://wiki.contextgarden.net/Bold_small_caps).

But it does not work with the latest ConTeXt version.

How could I get bold small caps with the latest version please?

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] missing space with French quotation

2022-09-22 Thread Peter Münster via ntg-context
On Thu, Sep 22 2022, Jean-Pierre Delange via ntg-context wrote:

> But why use \startquotation when \quotation{something} does the job
> just fine?

It's not the same:

\starttext
bla \quotation{quotation} bla
\blank[big]
bla
\startquotation
  quotation
\stopquotation
bla
\stoptext


> I use the command \startnarrower and \stopnarrower.

It's not the same:

\starttext
\startquotation
  quotation\\quotation
\stopquotation
\startnarrower
  \quotation{quotation\\quotation}
\stopnarrower
\stoptext

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] missing space with French quotation

2022-09-21 Thread Peter Münster via ntg-context
Hi,

With the latest ConTeXt version, there is a missing space:

\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]
\starttext
bla \quotation{OK} bla\\
bla «OK» bla
\startquotation
  Here is missing space
\stopquotation
\stoptext

How could I get back the space before "»" please?

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Typearea module fails with “Missing number”

2022-08-31 Thread Peter Münster via ntg-context
On Mon, Aug 29 2022, Wolfgang Schuster via ntg-context wrote:

> remove one pair of curly braces

Hi Wolfgang,

Thanks. Here a new version: http://pmrb.free.fr/tmp/t-typearea.zip

Unfortunately, I can not upload it to modules.contextgarden.net:
"Unknown user or bad password!"

Taco, what should I do please?

TIA,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] shapepar for ConTeXt

2022-02-14 Thread Peter Münster via ntg-context
Hi,

Is there something like shapepar (LaTeX-package) for ConTeXt?
I would like to do the same as "\heartpar{text}" (see
http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf
page 9) with ConTeXt.

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Influence location of luametatex-cache

2021-11-29 Thread Peter Münster via ntg-context
On Mon, Nov 29 2021, Marco Patzer via ntg-context wrote:

> How to influence the location of the cache directory?

Hi,

I have the line "export TEXMFCACHE=~/.cache" in my ~/.profile and then
context creates the directory ~/.cache/luametatex-cache.

Cheers,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] compatibility with AucTeX (was: result saved in file: ./file.pdf)

2021-08-16 Thread Peter Münster via ntg-context
On Mon, Aug 16 2021, Peter Münster via ntg-context wrote:

> that breaks the error-checker of AucTeX.

No, sorry. It's something else, that breaks it: lines, that begin like
"4:5: [glue]<1: ...".

Such lines look like errors to AucTeX. What does "4:5" mean? Is this
going to change?

TIA,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] result saved in file: ./file.pdf

2021-08-16 Thread Peter Münster via ntg-context
Hi,

The latest version of ConTeXt writes "result saved in file: ./file.pdf"
instead of "saved in file: file.pdf", that breaks the error-checker of
AucTeX. Is this wanted? Or are you going to change it back to a filename
without the "./"?

TIA,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] missing space after \date[] (was: printing the current date)

2021-03-12 Thread Peter Münster
On Wed, Jan 27 2021, Wolfgang Schuster wrote:

> When not all optional arguments are used the space after the last
> given argument is gobbled. This was normal behavior for a long time
> until you changed the code in MkIV to keep them.

Hi,

What does that mean? Is that going to be changed?
How should \date[] be used now in the text?
For now, I do it like "bla \date[d=3]\ bla".
Is there a nicer way?

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] vertical offset with "i" in position-command

2021-02-12 Thread Peter Münster
On Fri, Feb 12 2021, Wolfgang Schuster wrote:

> 2. Add \strut, e.g. \position(1, 1){\strut i}

Ah, thanks. So the anchor is not the baseline, but the top-left corner of
the content.

Since "\setuppositioning[before=\strut]" does not work, I use this
workaround now:
\def\myPosition(#1, #2)#3{\position(#1, #2){\strut#3}}

Would it make sense to add the "before" key to \setuppositioning?

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] vertical offset with "i" in position-command

2021-02-12 Thread Peter Münster
Hi,

When I want to type an "i" in the position-command, there is some
vertical offset:

\starttext
\startpositioning
\position(1, 1){i} \position(2, 1){x}
\position(1, 2){x} \position(2, 2){i}
\position(1, 3){a} \position(2, 3){x}
\position(1, 4){x} \position(2, 4){a}
\stoppositioning
\stoptext

Why is it so, and how could I avoid that please?

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] printing the current date

2021-01-27 Thread Peter Münster
On Sun, Jan 10 2021, Peter Münster wrote:

> \currentdate% same as \date, but I would expect the day of today...

Should I fill a bug-report on the tracker?
Perhaps also for the missing space after \date[]?

TIA,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] understanding \startTEXpage

2021-01-27 Thread Peter Münster
Hi,

According to https://wiki.contextgarden.net/Command/startTEXpage it
"starts a page that fits its contents exactly".

But it seems, that part of the content is cropped here:
\startTEXpage X \hskip20cm X \stopTEXpage

No problem with 10cm instead of 20cm...

Is this a bug or expected behaviour?

TIA,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] --extra=combine no more working

2021-01-27 Thread Peter Münster
On Wed, Jan 27 2021, Hans Hagen wrote:

> then it's an invalid pdf ... maybe you can use QPDF to fix those files

Yes, indeed, QPDF fixes it.
So my old ConTeXt-version is no more needed, thanks!

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] --extra=combine no more working

2021-01-27 Thread Peter Münster
On Wed, Jan 27 2021, Hans Hagen wrote:

> Works here so how do these pdf files look?

I've just checked with other PDF-files, and it works ok here too.
But unfortunately it does not work with PDF-files from my bank, that I
cannot share here.
There is no such problem with context-2017.08.29-19:35.

The files start like this:

--8<---cut here---start->8---
%PDF-1.4
%\200\201\202\203\204
76 0 obj
<<
/Length 3961/Filter/FlateDecode
>>
stream
--8<---cut here---end--->8---

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] --extra=combine no more working

2021-01-26 Thread Peter Münster
Hi,

The command "context --extra=combine file-1.pdf file-2.pdf" doesn't work
any more with the latest version. Here is the output:

--8<---cut here---start->8---
mtx-context | processing extra: 
/opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine.tex

resolvers   | formats | executing runner 'run luametatex format': 
/opt/context/tex/texmf-linux-64/bin/luametatex --jobname="mtx-context-combine" 
--fmt=/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 /opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine.tex 
--c:currentrun=1 --c:extra="combine" --c:files="file-1.pdf,file-2.pdf" 
--c:fulljobname="/opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine.tex"
 
--c:input="/opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine.tex"
 --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall --c:result="context-extra" 
--c:texmfbinpath="/opt/context/tex/texmf-linux-64/bin"
open source > level 1, order 1, name 
'/opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine.tex'
system  > 
system  > ConTeXt  ver: 2021.01.24 16:07 LMTX  fmt: 2021.1.26  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 2, order 2, name 
'/opt/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name 
'/opt/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname 'mtx-context-combine', input 
'/opt/context/tex/texmf-context/tex/context/base/mkiv/mtx-context-combine', 
result 'context-extra'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name 'mtx-context-common.tex'
close source> level 2, order 3, name 'mtx-context-common.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
mtx-context | fatal error: return code: 139
--8<---cut here---end--->8---

How could that be fixed please?

TIA,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] printing the current date

2021-01-10 Thread Peter Münster
On Sun, Jan 10 2021, Fabrice L wrote:

> For exemple:
>
>  \date[][weekday,day,month,year] and \currenttime[h,{\,:\,},m] 

Sorry, I should have mentioned, that I use the latest version:
context-2021.01.08

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] printing the current date

2021-01-10 Thread Peter Münster
Hi,

I would expect, that \currentdate prints the current date, but it does
not:

--8<---cut here---start->8---
\starttext
\date[d=1]% first day of this month, ok

\date% again first day, last parameters are used, this is ok

\currentdate% same as \date, but I would expect the day of today...
\stoptext
--8<---cut here---end--->8---

How could I print the current date please?

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] space after \date[]

2021-01-08 Thread Peter Münster
Hi,

There is no more space after \date[] with the latest version.
Is this wanted, or a bug?

Example:

\starttext
\date[d=1] X % no space before "X"
\stoptext

Kind regards,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] cow-font

2020-12-22 Thread Peter Münster
Hi,

How could I make use of the cow-font please?

I've tried this test-file:

--8<---cut here---start->8---
\setupbodyfont[cow]
\starttext
test
\stoptext
--8<---cut here---end--->8---

But the page is empty.

With version 2017.08.29 it worked well...

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] specify column-width, with option=stretch

2020-11-05 Thread Peter Münster
On Wed, Nov 04 2020, Peter Münster wrote:

> I would like to specify the column-width of the first column to 5mm:
>
> \starttext
> [...]
> \stoptext

Sorry, that wasn't really a minimal example.

Here a better file, to show what I'm looking for:

\setupTABLE[textwidth=10cm, option=stretch]
\setupTABLE[c][1][width=15mm]
\starttext
Width of first column should be 15mm, but it is not:\par
\bTABLE
\bTR \bTD ? \eTD \bTD bla \eTD \bTD blablablabla \eTD \eTR
\eTABLE\par
\stoptext

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] specify column-width, with option=stretch

2020-11-04 Thread Peter Münster
Hi,

I would like to specify the column-width of the first column to 5mm:

--8<---cut here---start->8---
\starttext
\setupTABLE[textwidth=99mm, option=stretch]
\setupTABLE[c][each][align={lohi, middle}]
\setupTABLE[c][1][height=5mm, style=\tfxx]
\framed[width=5mm, offset=0pt]{5}
\bTABLE
\bTR \bTD[nr=2] \setupinterlinespace[1.8ex] 1\\2\\3 \eTD
 \bTD bla \eTD \bTD blablabla \eTD \eTR
\bTR \bTD[nc=2] blabla \eTD \eTR
\eTABLE\par
\framed[width=99mm, offset=0pt]{99}
\stoptext
--8<---cut here---end--->8---

How could I do that please?

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] More table questions

2020-09-22 Thread Peter Münster
On Tue, Sep 22 2020, Aditya Mahajan wrote:

> The same effect is rather easy to achieve when using natural tables as
> well.

But it fails, when there is only one data-row... :(

\startsetups booktabs
  \setupTABLE[each][each][frame=off]
  \setupTABLE[row][first][topframe=on,rulethickness=1.2bp]
  \setupTABLE[row][2][topframe=on,rulethickness=0.6bp]
  \setupTABLE[row][last] [bottomframe=on, rulethickness=1.2bp]
  \setupTABLE[row][first][style=bold]
\stopsetups
\startsetups workaround
  \setupTABLE[each][each][frame=off]
  \setupTABLE[row][first][topframe=on,rulethickness=1.2bp,offset=0pt]
  \setupTABLE[row][2][style=bold, bottomframe=on,rulethickness=0.6bp]
  \setupTABLE[row][last] [bottomframe=on, rulethickness=1.2bp]
\stopsetups
\starttext
\startTABLE[setups=booktabs]
  \NC Heading 1 \NC Heading 2 \NC Heading 3 \NC \NR
  \NC Value 1   \NC Value 2   \NC Value 3   \NC \NR
\stopTABLE
\blank
\startTABLE[setups=workaround]
  \NC\NC\NC\NC\NR
  \NC Heading 1 \NC Heading 2 \NC Heading 3 \NC \NR
  \NC Value 1   \NC Value 2   \NC Value 3   \NC \NR
\stopTABLE
\stoptext

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] white-space after section-head in columns

2020-07-15 Thread Peter Münster
Hi,

What is the right way please to get normal white-space after a section in
columns, i.e. not too much?

Example, that shows the problem:

--8<---cut here---start->8---
\starttext
\startsection[title=Space is ok here]
  \input tufte
\stopsection
\startcolumns[n=2]
\startsection[title=Too much white-space here]
  \input tufte
\stopsection
\setuphead[section][after=\vskip-2ex]
\startsection[title=Space is ok here with workaround]
  \input tufte
\stopsection
\stopcolumns
\stoptext
--8<---cut here---end--->8---

TIA,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] paperformat=landscape not working

2020-05-20 Thread Peter Münster
On Wed, May 20 2020, Hans Hagen wrote:

>> [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]
>
> shouldn't that one then become
>
> \setuppaper
>   [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]

Yes, I guess.


>> With LMTX, --extra=select is not working at all. I get this error:
>>
>> mtx-context | processing extra: mtx-context-select.tex
>> mtx-context | redirect luametatex -> luatex: luatex --luaonly
>> "/opt/context-lmtx/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context
>> --extra=select --selection=2 file.pdf --redirected
>> mtx-context | processing extra: mtx-context-select.tex
>> mtx-context | warning: lua mismatch (luv: 0 <> bin: 5.2), forcing remake
>> /usr/share/texmf/scripts/context/lua/mtx-context.lua:1176: attempt to index 
>> field 'instance' (a nil value)

> that's not lmtx, but mkiv that you call

Ok, I've found the problem: context.lua and mtxrun.lua in
texmf-linux-64/bin did not have the execute permissions. It works after
adding the permissions.

Thanks,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] paperformat=landscape not working

2020-05-20 Thread Peter Münster
Hi,

When the PDF-document is in landscape format, this does not work:

context --extra=select --selection=X
--paperformat=A4,landscape*A4,landscape file.pdf

This patch helps:

--- mtx-context-select.tex~ 2020-05-20 10:28:42.702314061 +0200
+++ mtx-context-select.tex  2020-05-20 10:28:53.730225887 +0200
@@ -31,8 +31,8 @@
 \input mtx-context-common.tex
 
 \setuppapersize
-  [\getdocumentargumentdefault{paperformat_from}{A4}]
-  [\getdocumentargumentdefault{paperformat_to}{A4}]
+  [\getdocumentargumentdefault{paperformat_paper}{A4}]
+  [\getdocumentargumentdefault{paperformat_print}{A4}]
 
 \setuppaper
   [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]


With LMTX, --extra=select is not working at all. I get this error:

mtx-context | processing extra: mtx-context-select.tex
mtx-context | redirect luametatex -> luatex: luatex --luaonly 
"/opt/context-lmtx/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context 
--extra=select --selection=2 file.pdf --redirected
mtx-context | processing extra: mtx-context-select.tex
mtx-context | warning: lua mismatch (luv: 0 <> bin: 5.2), forcing remake
/usr/share/texmf/scripts/context/lua/mtx-context.lua:1176: attempt to index 
field 'instance' (a nil value)


Kind regards,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] \setbreakpoints[compound] and numbers

2020-05-19 Thread Peter Münster
Hi,

How could I get breaking lines with numbers please?

Example:

\setbreakpoints[compound]
\setuplayout[width=1mm]
\starttext
xxx/xxx % line break is ok here
xx1/xxx % I would like a linebreak here too
\stoptext

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Produce multiple versions in one run

2019-08-23 Thread Peter Münster
On Fri, Aug 23 2019, Denis Maier wrote:

> Or is a makefile better suited for this?

Probably yes.
Example is here: https://wiki.contextgarden.net/Catalogue_raisonné

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \startcolumns and multi-line footnotes

2019-06-08 Thread Peter Münster
On Wed, Jan 16 2019, Taco Hoekwater wrote:

> Which is a tad annoying,

Indeed. Any news about this issue?

To what version should I downgrade to get multi-line footnotes in
columns please?

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] t-downsample.lua

2019-02-24 Thread Peter Münster
On Sun, Feb 17 2019, Hans Hagen wrote:

>> +if width then
>> +hash = hash .. "[w:" .. width .. "]"
>> +end
>> +if height then
>> +hash = hash .. "[h:" .. height .. "]"
>> +end
>>
> hm that needs a bit of thinking because here we have cases where we downsample
> from say 600 to 150 dpi but then use that same one for all kind of sizes (and
> then a different wd/ht should not trigger an extra downsample)

Ok. Perhaps with a configuration option? Like "conversion-if-new-dimens=yes/no"?

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-22 Thread Peter Münster
On Fri, Feb 22 2019, Rudolf Bahr wrote:

> The picture sizes in px One gets by invoking for instance graphics Magick's 
> identify
> in a lua program:

Or just img.scan():

\startluacode
  local image = img.scan{filename = "my-image.jpg"}
  logs.report("xsize", image.xsize)
  logs.report("ysize", image.ysize)
\stopluacode

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] degrade module

2019-02-19 Thread Peter Münster
On Mon, Feb 18 2019, Alan Braslau wrote:

> manipulating them on the fly as one changes layout or image placement
> hardly seems efficient,

Our use cases are perhaps different: in my case, manipulating them on
the fly automatically is *very* efficient.


> even if one were to be clever in storing copies and looking at time
> stamps.

ConTeXt does it already in grph-inc.lua, no need to be clever... ;)

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] degrade module

2019-02-18 Thread Peter Münster
On Mon, Feb 18 2019, Alan Braslau wrote:

> Incorrect, an image file contains width and height (in pixels) as well as a
> resolution,

Optionally a resolution in the metadata. Then, of course, you have a
"natural size". But that doesn't matter, if you want other dimensions.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] degrade module

2019-02-18 Thread Peter Münster
On Mon, Feb 18 2019, Alan Braslau wrote:

> My working solution is to put figures in subdirectories by resolution,

The purpose of the downsample module is something else: a well defined
resolution of the image in the PDF-file. A bitmap image does not have a
resolution, only a width and a height in pixels. The resolution gets
defined, when you specify the real dimensions.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] degrade module

2019-02-18 Thread Peter Münster
On Mon, Feb 18 2019, Marco Patzer wrote:

> assumed there is a better solution.

I guess, that Hans will tell us, if there is. And in the meantime, it
can be distributed IMO.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] degrade module

2019-02-17 Thread Peter Münster
On Fri, Feb 15 2019, Marco Patzer wrote:

> - It's 99% Peter's code, he's the maintainer of the module and
>   probably he should just fix his code.

Done.


> - My modification contains an ugly hack that just renames all files
>   to pdf, regardless of the actual file type because I have no clue
>   how to do that properly.

I've included your hack, because I don't have any better idea...


> That code shouldn't make it into the distribution.

Why not? Just because of the hack?

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] t-downsample.lua

2019-02-17 Thread Peter Münster
On Sun, Feb 17 2019, Peter Münster wrote:

> Later, I'll upload it to modules.contextgarden.net.

Ok, done.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] t-downsample.lua

2019-02-17 Thread Peter Münster
Hi,

Please find attached a new version of the module, with some ideas
from Marco. Later, I'll upload it to modules.contextgarden.net.

Here a usage example:

\usemodule[downsample]
\setupexternalfigures[
  location=default,  % find hacker.jpg and mill.png
  cache=/tmp,% where to put the low resolution images
  resolution=50, % resolution in DPI
  conversion=downsample.pdf] % use this module
\starttext
\externalfigure[hacker][width=0.4\textwidth]
\setupexternalfigures[resolution=20]
\externalfigure[mill][width=4in, height=3in]
\setupexternalfigures[resolution=200]
\externalfigure[mill][width=4in, height=3in]
\stoptext

Hans, it would be nice, to apply this patch, to trigger new conversion,
when figure dimensions change:

--- grph-inc.lua~   2019-02-14 17:04:12.0 +0100
+++ grph-inc.lua2019-02-17 08:45:38.129971581 +0100
@@ -864,6 +864,14 @@
 newbase = prefix .. newbase
 end
 local hash = ""
+local width  = figures.current().request.width
+local height = figures.current().request.height
+if width then
+hash = hash .. "[w:" .. width .. "]"
+end
+if height then
+hash = hash .. "[h:" .. height .. "]"
+end
 if resolution then
 hash = hash .. "[r:" .. resolution .. "]"
 end

TIA,
-- 
   Peter


t-downsample.lua
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] degrade module

2019-02-14 Thread Peter Münster
On Thu, Feb 14 2019, Wolfgang Schuster wrote:

> Take a look at section 3.2 of the workflows [1] document.
>
> [1] http://www.pragma-ade.nl/general/manuals/workflows-mkiv.pdf

Sorry, I don't understand. How will the "convert" command
"convert -geometry %nx%x%ny% -compress JPEG ..." ever know, that the
target height is 10cm?

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] degrade module

2019-02-14 Thread Peter Münster
On Thu, Feb 14 2019, Marco Patzer wrote:

> Apparently it's not on the wiki

It's here:
https://modules.contextgarden.net/dl/grph-downsample.lua-1.001.zip

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] degrade module

2019-02-14 Thread Peter Münster
On Thu, Feb 14 2019, Lutz Haseloff wrote:

> I wanted to use the degrade module with recent ConTeXt and LuaTeX.

Hi Lutz,

Could you please check, if the module grph-downsample.lua could fit your
needs?


> The minimal example from the degrade manual gives an error.
> See the attached log.
> Is there any chance to get the module working again?

There is always a chance. The question is just: who will afford the
efforts...
Please check first the downsample module, and then let's see, if you
still need this very old and hackish degrade module.

Cheers,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Invoice Forms

2018-06-14 Thread Peter Münster
On Wed, Jun 13 2018, jdh wrote:

> Is there a source of context document forms for invoices, (and other
> documents), that have been contributed for open modifications and use? If not
> it would be very beneficial to people to have such a depository. Please let me
> know.

These pages can help perhaps:
- https://mailman.ntg.nl/pipermail/ntg-context/2008/031680.html
- https://mailman.ntg.nl/pipermail/ntg-context/2009/037920.html
- https://mailman.ntg.nl/pipermail/ntg-context/2014/076641.html

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Feature request: \digits command

2018-04-29 Thread Peter Münster
On Wed, Jun 25 2008, Flavien Lambert wrote:

> did not found a way to cut a number by group of three digits like the
> numprint command, e.g. 100 becomes 1 000 000. With the digits
> option 3, dots become thinmuskips. I would like to do something
> similar but automatically for groups of three digits.

Hi,

Does this feature exist now in ConTeXt?

TIA for any hints,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] path for luatex cache

2018-04-25 Thread Peter Münster
On Wed, Apr 25 2018, Hans Hagen wrote:

> the cache is created in the first writeable path found

Ah, thanks! I had /opt/context/tex/texmf-cache/luatex-cache writeable,
but even /opt/context/tex/texmf-cache must be writeable, then it works.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] path for luatex cache

2018-04-25 Thread Peter Münster
Hi,

What should I do please, to prevent ConTeXt from creating
$HOME/luatex-cache?

I tried:
- TEXMFCACHE=/opt/context/tex/texmf-cache
- TEXMFVAR=/opt/context/tex/texmf-cache
- LUATEX_CACHE=/opt/context/tex/texmf-cache/luatex-cache

but without success...

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] External graphics directory

2017-10-23 Thread Peter Münster
On Thu, Oct 19 2017, N. Raghavendra wrote:

> Is it possible to specify an external graphics directory either as an
> environment variable, or as a command line option to `context', instead
> of writing `\setupexternalfigures [directory=../../foo]'?

Yes.
Command: "context --arguments=imagedir=../../foo file"
File: "\setupexternalfigures[directory=\env{imagedir}]"

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] avoid space after title

2017-08-16 Thread Peter Münster
On Wed, Aug 16 2017, Henning Hraban Ramm wrote:

>> I’d like to get rid of the blank line after section titles in grid mode. How?
>> 
>> \setuplayout[grid=yes,]
>> \setuphead[section][page=no,before={},after={}]

Sorry, no real solution, just a workaround:

\setuphead[section][page=no,before={},after=\vskip-\lineheight]

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-11 Thread Peter Münster
On Thu, Aug 10 2017, Aditya Mahajan wrote:

> You need to remove the --once call from the context call. (Not sure
> how to do this in Emacs)

You run the command "ConTeXt Full" instead of "ConTeXt".

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Wrtiting in two languages

2016-11-18 Thread Peter Münster
On Fri, Nov 18 2016, Jean-Pierre Delange wrote:

> There is somehow a problem with a dorecurse command setting up on '1000' !

It was just to show, that there is no page break...


> If I remember well, Ursula was in a want of a trick which allow to print
> Greek/German parallel text only time to time, inside of a regular
> page.

Sorry, I missed that. My solution is only for whole pages.


> To doing so, I've scrutinized the solution I gave, and I don't see the
> error you have mentionned.

It's no error, you just don't get page breaks inside the \startTwoColumns
\stopTwoColumns blocs. My example was just an MWE to show you that.


> Would you please explain how this sample may work :
> https://mailman.ntg.nl/pipermail/ntg-context/2012/068387.html ?

- create pages for first language, page size is size of column
- create pages for second language with same page size
- create new document with pages of first language at the left and pages
  of second language at the right (inclusion with \externalfigure)

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Wrtiting in two languages

2016-11-15 Thread Peter Münster
On Tue, Nov 15 2016, Jean-Pierre Delange wrote:

> The best way is to use the TwoColumns command

When the text spans several pages, there is a problem:

\defineparagraphs[TwoColumns][n=2]
\setupparagraphs[TwoColumns][1][width=250pt, style=italic, align=left]
\starttext
\startTwoColumns
  \dorecurse{1000}{left }
  \TwoColumns
  \dorecurse{1000}{right }
\stopTwoColumns
\stoptext

This works: https://mailman.ntg.nl/pipermail/ntg-context/2012/068387.html

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Wrtiting in two languages

2016-11-14 Thread Peter Münster
On Mon, Nov 14 2016, Ursula Hermann wrote:

> If i write a text in acient greek and in german side by side, how can
> I do this?

Hi,

This can help perhaps: http://wiki.contextgarden.net/Catalogue_raisonné

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Peter Münster
On Mon, Oct 31 2016, Fabrice Couvreur wrote:

> how to add the option -- purgeall ?

(setq ConTeXt-mode-hook
  (lambda () (setq TeX-command-extra-options "--purgeall")))

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Peter Münster
On Mon, Oct 31 2016, Fabrice Couvreur wrote:

> /home/fab/context/tex/texmf-linux-64/bin/context:...

Please replace this with /home/fab/context/tex/texmf-linux-64/bin:...

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Peter Münster
On Mon, Oct 31 2016, Fabrice Couvreur wrote:

> it's always texlive context and not standalone.

What is the output of M-x getenv RET PATH RET ?

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Peter Münster
On Sun, Oct 30 2016, Fabrice Couvreur wrote:

> (setenv „PATH" „/home/fab/tex/texmf-linux-64/bin/:$PATH" t)
>
>  I do not understand this symbol „ and how to access

You should replace „ with ".

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
On Thu, Sep 08 2016, Wolfgang Schuster wrote:

> \blank[fixed,depth]

Thanks, it works even in my original document! (Beforehand I'd tried
combinations of line, nowhite, none..., but without success...)

Does it mean, that \crlf is deprecated and should always be replaced by
\blank[...] ?  Or is this just a work-around, until the "underscore-bug"
is fixed?

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
On Thu, Sep 08 2016, Wolfgang Schuster wrote:

> bla bla\blank[depth]

I'm really really sorry, Wolfgang, but the result is not the same, when
the white-space needs stretching:

--8<---cut here---start->8---
\setupalign[height]
\setupwhitespace[0.5ex plus 0.2ex]
\setupxtable[frame=off, boffset=0pt, toffset=0pt, rulethickness=0pt]
\starttext
Good\crlf
\startxtable
  \startxrow \startxcell spacing \stopxcell \stopxrow
  \startxrow \startxcell here. \stopxcell \stopxrow
\stopxtable

Unwanted\blank[depth]
\startxtable
  \startxrow \startxcell vertical \stopxcell \stopxrow
  \startxrow \startxcell space. \stopxcell \stopxrow
\stopxtable

\framed[height=16cm]{bla}

\framed[height=16cm]{bla}
\stoptext
--8<---cut here---end--->8---

Nevertheless, thanks for your efforts!

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
On Thu, Sep 08 2016, Wolfgang Schuster wrote:

> bla bla\blank[nowhite]
> bla bla

Sorry, but the result is still not the same:

--8<---cut here---start->8---
\setupwhitespace[1ex]
\starttext
bla bla:\crlf
\startxtable
  \startxrow \startxcell bla \stopxcell \stopxrow
\stopxtable

bla bla\blank[nowhite]
\startxtable
  \startxrow \startxcell bla \stopxcell \stopxrow
\stopxtable
\stoptext
--8<---cut here---end--->8---

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
On Thu, Sep 08 2016, Wolfgang Schuster wrote:

>  bla bla:\crlf
>
> Use \par or add a empty line between the text and the table.

With whitespace, the result is not the same:

--8<---cut here---start->8---
\setupwhitespace[1ex]
\starttext
bla bla\crlf
bla bla\par
bla bla
\stoptext
--8<---cut here---end--->8---

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] underscore added by xtable

2016-09-08 Thread Peter Münster
Hi,

Just after the table, there is an unwanted underscore:

--8<---cut here---start->8---
\starttext
bla bla:\crlf
\startxtable[split=yes]
  \startxrow \startxcell bla \stopxcell \stopxrow
\stopxtable
\stoptext
--8<---cut here---end--->8---

How could I avoid that please?

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] url with umlaut

2016-07-15 Thread Peter Münster
On Fri, Jul 15 2016, Alan Bowen wrote:

> The following link 
>
> \goto{http://brunelleschi.imss.fi.it/galileopalazzostrozzi/object/RegiomontanusJohannesMullerVonKönigsbergAstrolabe.html}[url
> (http://brunelleschi.imss.fi.it/galileopalazzostrozzi/object/RegiomontanusJohannesMullerVonKönigsbergAstrolabe.html)]

Perhaps this would work: "K\letterpercent C3\letterpercent B6nigsberg"
(not tested)

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with urls

2016-05-14 Thread Peter Münster
On Sat, May 14 2016, Pablo Rodriguez wrote:

> the coma is the problematic character in url:
>
> \setupinteraction[state=start]
> \starttext
> \goto{http://a,b.c}[url(http://a,b.c)]
> \stoptext
>
> I’m afraid this might be a bug.

Workaround: url(http://a\letterpercent2Cb.c)

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Why does 0.0001pt make such a big difference?

2016-03-24 Thread Peter Münster
Hi,

Please compare \setupwhitespace[0.0001pt plus 2ex] with
\setupwhitespace[0pt plus 2ex] here:

\showframe
\setuphead[section][style={\switchtobodyfont[72pt]}]
\setupalign[height]
\setupwhitespace[0.0001pt plus 2ex]  % desired result
%\setupwhitespace[0pt plus 2ex]  % "plus 2ex" is unused
\starttext
\dorecurse{5}{\dorecurse{150}{bla }\par}
\section{test}
bla
\stoptext

Why is there such a difference please?

TIA,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] item list: indent only first 2 or 3 lines

2016-03-16 Thread Peter Münster
Hi,

I would like to produce an item list like this:


- bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
  bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaa bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaa bla
bla bla bla bla bla bla bla bla

or

- bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
  bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
  bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaa bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla blaaa bla
bla bla bla bla bla bla bla bla

How could I do this please?

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Unexpected float numbering in unnumbered subsubsection

2015-12-15 Thread Peter Münster
On Tue, Dec 15 2015, Sytse Knypstra wrote:

> 'way= bychapter'

Better: 'way=bychapter'


> P.S. I couldn't find the test suite.

http://bfy.tw/3IIV  ;)

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] location of old ConTeXt versions?

2015-11-10 Thread Peter Münster
On Tue, Nov 10 2015, Sanjoy Mahajan wrote:

> Could you point me to a linux/64-bit minimal for 2014.05.17?  I'll
> update the wiki accordingly.

I have context-2014.03.25-16:58 and context-2014.06.22-19:58.
If you want, I can prepare 1 or 2 tar-files (or zip) for you.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question on typesetting paragraphs with non rectangle shape

2015-10-22 Thread Peter Münster
On Tue, Oct 20 2015, Joseph Canedo wrote:

> I am quite new to ConTeXt and I wished to know if it was possible to easily 
> typeset paragraphs with non rectangle shape. More specifically I’d
> like to make a paragraph which ends with a tailpiece, ie finishes like a 
> triangle (the text width decreases until reaching very narrow width at
> last line).

\starttext
\parshape 5
0\textwidth   \textwidth
0.1\textwidth 0.8\textwidth
0.2\textwidth 0.6\textwidth
0.3\textwidth 0.4\textwidth
0.4\textwidth 0.2\textwidth
\dorecurse{69}{bla }
\stoptext

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] No space after a closing delimiter

2015-08-27 Thread Peter Münster
On Thu, Aug 27 2015, Fabrice Couvreur wrote:

 I did not know it because, before migrating to context, I used latex with
 this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.

In LaTeX there is no space neither:

--8---cut here---start-8---
\newcommand{\repere}{$\bigl(O\,;I,J\bigr)$}
\documentclass{article}
\begin{document}
x \repere x
\end{document}
--8---cut here---end---8---

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bad PDF to text crawlers

2015-08-19 Thread Peter Münster
On Wed, Aug 19 2015, Kip Warner wrote:

 I was thinking that there must be some way of tricking these bots, 
 depending on how they are implemented, and let's assume they will always 
 find the PDF, to get them to extract only a small invisible layer that 
 just contains some hidden text directing a user to the location to 
 download the original high quality ConTeXt PDF.

Even if you would find a way today, tomorrow there would be other bots,
that see the same text, as the humans.


 Any suggestions?

Get the value of HTTP_USER_AGENT and send the replacement text, if the
agent is a bot. Or use robots.txt.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] external figure sizing

2015-05-09 Thread Peter Münster
On Sat, May 09 2015, Csikos Bela wrote:

 \placefigure, \externalfigure and combinations. The images should be scaled 
 to the
 same size, eg to .25\textwith and .3\textheight so that the  aspect ratios of 
 the images
 are kept and the appropriate value is used for width or height.

What is the appropriate value?


 That is the smaller value from .25\textwith and .3\textheight is used
 for the image size.

The smaller value from .25\textwith and .3\textheight does only depend
on the layout, but not on the image.


This is perhaps, what you need:  maxwidth=..., maxheight=...

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] shrink JPGs to some resolution (dpi) ?

2015-03-10 Thread Peter Münster
On Mon, Mar 09 2015, Harald Koenig wrote:

 is it possible that context (lua?) will shrink all \externalfigure jpegs
 automatically to some specified dpi resolution and quality
 (e.g. 300 dpi with 95% jpeg 'quality' for print and
 100 dpi and 75% for screen quality) ?

Hi,

Does this work: http://modules.contextgarden.net/grph-downsample ?
(I did not test it with the latest context version...)

There is no support for changing the quality, but it should be easy to
add it.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] shrink JPGs to some resolution (dpi) ?

2015-03-10 Thread Peter Münster
On Tue, Mar 10 2015, Harald Koenig wrote:

 but how do I use it ?

- Copy grph-downsample.lua to
  
.../context/tex/texmf-local/tex/context/third/grph-downsample/grph-downsample.lua

- context --generate

- Copy hacker.jpg to your directory.

- Write this to test.tex:

--8---cut here---start-8---
\loadluafile[grph-downsample]
\setupexternalfigures[conversion=lowres.jpg, resolution=10]
\starttext
\externalfigure[hacker.jpg][width=5cm]
\stoptext
--8---cut here---end---8---

- Then: context test (I hope it works...)

- Perhaps wikify it.


 first-setup.sh --modules=grph-downsample

 which removed the unzipped module:-(

Unfortunately, grph-downsample is not in the context-suite.
Mojca, could you add it?


 what's the real way here ?

For now, you have to put it to texmf-local.


 next problem: how to use your module ?  
 I can't find the docs and just a 

   \usemodule[grph-downsample]

\loadluafile seems to do the trick, but perhaps there is an official
context-way, Hans?


 btw, I've added your suggested patch to grph-inc.lua

The patch is only needed, when you change the size of the image, for
example 5cm - 6cm. Without the patch, the down-sampled file won't be
regenerated.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] context - docx ??

2015-01-14 Thread Peter Münster
On Wed, Jan 14 2015, Idris Samawi Hamid ادريس سماوي حامد wrote:

 3. My assumption is this: If I can get the xml/xhtml file looking right in the
 browser, I should be able to build a working docx file via pandoc.

Can't Office-Word load html and save it as docx?

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] expand date from CSV file

2014-12-18 Thread Peter Münster
On Thu, Dec 18 2014, Jaroslav Hajtmar wrote:

 if (year2000) then year=year+2000 end;

Hi,

What about Test;11/11/1999 ... ;-)

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] pagefigure cow

2014-12-10 Thread Peter Münster
On Wed, Dec 10 2014, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 the following code doesn't find cow image with the latest beta; what am I 
 doing wrong?

 local C = context

C.setupexternalfigure{location = default}

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

2014-12-09 Thread Peter Münster
On Tue, Dec 09 2014, Aditya Mahajan wrote:

 \definesynonyms[mathnotation][mathnotations][\infull]

Perhaps better: \inFull  ;)

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \Words and uppercase letters

2014-12-03 Thread Peter Münster
On Wed, Dec 03 2014, Pablo Rodriguez wrote:

 I thought \Words{A} would do the same for the characters others
 than the first one in each word.

\def\myWords#1{\Words{\lowercase{#1}}}
\starttext
\myWords{A  CCC}
\stoptext

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] advanced documents (was: \resetsetups)

2014-08-14 Thread Peter Münster
On Thu, Aug 14 2014, Aditya Mahajan wrote:

 Please add the relavant information to the wiki, and then one will be able to
 find them in the advanced documents :-)

You can also send patches for the ConTeXt Manual:
https://foundry.supelec.fr/svn/contextman/context-reference/

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Which Image quality should I use ?

2014-07-15 Thread Peter Münster
On Sun, Jul 13 2014, Pol Stra wrote:

 I can be done automatically for example by using this module:
 http://modules.contextgarden.net/grph-downsample

 Thank you, it looks interesting. Is there a documentation somewhere or could 
 you provide an example about how to use it ?

Hi,

Here an example: http://wiki.contextgarden.net/Catalogue_raisonné


 Also, it changes the resolution only at inclusion into the pdf or it does it 
 on original files ? My concern is to give the sources in attachment of the 
 document, so if I don't change those files, the document will still be huge. 

The downscaled images are kept on disk in the cache sub-directory.


 There is a way to include the source without duplicates images ?

Yes.


There is also an old module t-degrade.tex but I don't know, if it still
works with recent ConTeXt versions.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Which Image quality should I use ?

2014-07-12 Thread Peter Münster
On Sat, Jul 12 2014, Pol Stra wrote:

 I think I should do something like:
 `convert -density 300 input.png -resize AAAxBBB output.png`

 but I don't know if it’s the good way to do it

Hi,

I can be done automatically for example by using this module:
http://modules.contextgarden.net/grph-downsample


 or which resolution is appropriate.

It depends on the printer. 300dpi is often enough.

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] problem with cow-font

2014-06-29 Thread Peter Münster
Hi,

When I try to use the cow-font, the latest beta exits with an error:

mtx-context | fatal error: no return code, message: luatex: execution 
interrupted

No problem with context-2014.03.25-16:58.

Test file:

\setupbodyfont[cow]
\starttext
test
\stoptext

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Configure AUCTeX to run context not texec

2014-06-27 Thread Peter Münster
On Fri, Jun 27 2014, Gour wrote:

 What is the recommnded way to configure one's preferred viewer in AUCTeX
 to by used when processing ConTeXt files?

I don't know what is recommended, but this works for me:

(setq-default
 TeX-PDF-mode   t
 TeX-default-mode   'context-mode
 TeX-view-program-list
 '((Okular (okular %(oo) (mode-io-correlate #src:%n%a
 TeX-view-program-selection
 '(((output-dvi style-pstricks) dvips and gv) (output-dvi xdvi)
   (output-pdf Okular) (output-html xdg-open)))

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] letter-module: the first letter is lost

2014-06-24 Thread Peter Münster
Hi,

With latest context, the T is lost:

\usemodule[letter]
\starttext
\startletter
This is a letter.
\stopletter
\startletter
TThis is a workaround.
\stopletter
\stoptext

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   3   4   5   6   7   8   9   10   >