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-16 Thread Peter Münster
On Wed, Dec 16 2015, Sytse Knypstra wrote:

> The first link on http://wiki.contextgarden.net/Test_suite gives:
> "The requested URL /gf/project/contexttest/ was not found on this server."

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] 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
___


Re: [NTG-context] Problem in natural tables with nc= and alignmentcharacter

2014-06-23 Thread Peter Münster
On Mon, Jun 23 2014, Rik Kabel wrote:

 With the following example, the first two columns overlap.

No solution, just a smaller MWE:

\starttext
\setupTABLE[c][3][aligncharacter=yes]
\setupTABLE[height=2cm]
\bTABLE
\bTR \bTD A   \eTD \bTD[nc=2] A \eTD \eTR 
\bTR \bTD A x \eTD \bTD   A \eTD \bTD 1 \eTD \eTR
\eTABLE
\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] Problem in natural tables with nc= and alignmentcharacter

2014-06-23 Thread Peter Münster
On Mon, Jun 23 2014, Peter Münster wrote:

 No solution, just a smaller MWE:

Yet smaller, but I don't know, if it's still the same problem:

\starttext
\bTABLE
\bTR \bTD A x \eTD \bTD[nc=2] A \eTD \eTR 
\eTABLE
\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] [+-OT] reducing pdf file

2014-06-05 Thread Peter Münster
On Thu, Jun 05 2014, Andrea Valle wrote:

 The problem lies in its size: 220 Mb.
 Could anyone provide a method (if any) for reducing the size?

You could convert it to JPEG at the resolution that you need.

-- 
   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] Deleting The Blank Before Chapter Titles

2014-04-20 Thread Peter Münster
On Sun, Apr 20 2014, joasyann...@gmail.com wrote:

 However, I cannot delete the blank before the printing of chapter titles.

Do you mean the blank page before the title?
Do you want this:

\setuphead[chapter][page=no, before=]
\starttext
text
\chapter{Chapter title}
\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] typewriter style with Constantia

2014-03-27 Thread Peter Münster
Hi,

With the following setup and ConTeXt version 2014.02.14 I got typewriter
style:

--8---cut here---start-8---
\definefontfamily[constantia][sans][Constantia]
\setupbodyfont[constantia]
\starttext
normal and \type{mono}
\stoptext
--8---cut here---end---8---

But not with version 2014.03.25.

What should I do to get typewriter style 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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Peter Münster
On Tue, Feb 25 2014, Fabrice Couvreur wrote:

 I find that there is too much space between the text and the beginning of the
 paragraph. 

 \defineenumeration[ex]
 [text={\sc\bf Exercice},
 location=left,
 stopper={\bf.}]

stopper={\bf.}, inbetween=]


 For example, I use the \topset with LuaLaTeX order.

???

-- 
   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] reference to structureuservariable

2014-01-20 Thread Peter Münster
Hi,

How can I read a structureuservariable at the end of the section, when
there are subsections? Example:

--8---cut here---start-8---
\starttext
\startsection[title=sec][foo=bar]
%  \edef\myFoo{\structureuservariable{foo}} % workaround
  \startsubsection[title=sub 1]
sub 1
  \stopsubsection
  \startsubsection[title=sub 2]
sub 2
  \stopsubsection
  \par
  foo is \structureuservariable{foo}.
%  foo is \myFoo.  % workaround
\stopsection
\startsection[title=sec][foo=bar]
  no subsections...\par
  foo is \structureuservariable{foo}.
\stopsection
\stoptext
--8---cut here---end---8---

Is there a clean way or do I need to use something like the above
workaround?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] apply typing environment to \typebuffer

2014-01-15 Thread Peter Münster
On Wed, Jan 15 2014, Pablo Rodriguez wrote:

 \definetyping[buffer][option=TEX,before=\startframedtext,after=\stopframedtext]
 \setuptyping[buffer][style=\tt\setupinterlinespace,align={right,broad}]

Why \definetyping[buffer] ?  \typebuffer is already defined.

Shouldn't it be:

\setuptyping[buffer][style=\tt\setupinterlinespace,align={right,broad},
option=TEX,before=\startframedtext,after=\stopframedtext]

-- 
   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] invoices: make module or wikify

2014-01-13 Thread Peter Münster
Hi,

I'm writing my invoices like this:

\environment e-invoice
\beginInvoice
\startInvItem[amount=123] bla bla 1 \stopInvItem
\startInvItem[amount=456] bla bla 2 \stopInvItem
\endInvoice

If anybody is interested (e.g. for using it, making a module or
wikifying), then I can send my files (no time to do it myself...)

There are also calculations:

\environment e-calculation
\beginCalculation
\startCalcItem[title=Title 1][hours=123]
  Do this and that, bla bla bla.
\stopCalcItem
\startCalcItem[title=Title 2][hours=456]
  Do something else, a lot of work.
\stopCalcItem
\endCalculation

-- 
   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 with Emacs

2014-01-10 Thread Peter Münster
On Fri, Jan 10 2014, Fabrice Couvreur wrote:

 %%% Local Variables: 
 %%% Mode: LaTeX 
 %%% LaTeX-command LuaLaTeX-shell-escape 
 %%% End: 

%%% Local Variables: 
%%% Mode: context
%%% End: 

For using context instead of texexec, put this in your init-file:

(eval-after-load 'tex
  '(add-to-list
  'TeX-command-list
  '(ConTeXt context --nonstopmode %t
TeX-run-TeX nil (context-mode) :help Run ConTeXt)))

If you prefer to use context-mode by default for every file with .tex as
suffix, then you can add this to your init-file:

(add-to-list 'auto-mode-alist '(\\.tex\\' . context-mode))

Then you won't need the Local Variables section at the end of each
ConTeXt-file.

-- 
   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 with Emacs

2014-01-10 Thread Peter Münster
On Fri, Jan 10 2014, Fabrice Couvreur wrote:

 Only a second C-c C-c does not allow me to have 'Command : (default View)'.
 How ?

http://www.ntg.nl/pipermail/ntg-context/2013/075877.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt with Emacs

2014-01-10 Thread Peter Münster
On Sat, Jan 11 2014, Fabrice Couvreur wrote:

 Sorry Peter, but I do not understand what you mean by So just pressing up.

(savehist-mode 1) is your friend ... ;)

-- 
   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] Avoid system fonts

2014-01-03 Thread Peter Münster
On Fri, Jan 03 2014, Jörg Hagmann wrote:

 I created a directory ~/context/beta/empty
 I put into .profile OSFONTDIR=Users/bonasa/context/beta/empty

Perhaps better: export OSFONTDIR=/Users/bonasa/context/beta/empty
(I don't know Mac...)

-- 
   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] Understanding the basics of \define

2013-12-10 Thread Peter Münster
On Tue, Dec 10 2013, Wolfgang Schuster wrote:

 One way to set values is the \getparameters command but the disadvantage
 of this is that you to ensure not to call values (e.g. \testthree) which 
 aren’t set
 (e.g. not “three={…}” setting for the \test command).

You can preset the values: \getparameters[test][one=, two=my default 2, three=, 
#1]


 \def\test
   {\dosingleargument\dotest}

Wouldn't it be better (for users who don't know the source by heart),
to use camelcase names (for example \Test), to avoid clashes with
internal ConTeXt macros?

-- 
   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

2013-11-11 Thread Peter Münster
On Mon, Nov 11 2013, Jean Magnan de Bornier wrote:

 Here is my complete customization regarding ConTeXt:
 [...]
 context %s TeX-run-command nil t :help Run context (MarkIV)) (TeX

You use TeX-run-command instead of TeX-run-TeX. Thus you're not able
to handle errors the usual way.

-- 
   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

2013-11-10 Thread Peter Münster
On Sat, Nov 09 2013, Jean Magnan de Bornier wrote:

 emacs 24.3.1 ubuntu
 context minimal many versions (I update about once a week)
 auctex 11.87.2 (installed via elpa and frequently updated)

Strange. I use also the latest versions, but I observe the same
behaviour as the OP...

-- 
   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

2013-11-09 Thread Peter Münster
On Sat, Nov 09 2013, Jean Magnan de Bornier wrote:

 This problem does not appear on my machine where instead of context
 --nonstopmode %t I wrote PATH=~/context/tex/texmf-linux/bin:$PATH 
 context %s

Interesting. What's your ConTeXt version, AUCTeX version and
Emacs version?

-- 
   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] Argument of \startInvoice has an extra }.

2013-11-09 Thread Peter Münster
Hi,

How could I avoid that error here please:

--8---cut here---start-8---
\def\beginInvoice{\dosingleempty\dobeginInvoice}
\def\dobeginInvoice[#1]{\grabbufferdata[myLetter][beginInvoice][endInvoice]}
\def\startInvoice#1\stopInvoice{bla}
\starttext
\beginInvoice
\startInvoice test \stopInvoice
\endInvoice
\stoptext
--8---cut here---end---8---

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] Argument of \startInvoice has an extra }.

2013-11-09 Thread Peter Münster
On Sat, Nov 09 2013, Aditya Mahajan wrote:

 One possibility is to restrict optional arguments to one line:

 \def\beginInvoice{\bgroup\obeylines\dosingleempty\dobeginInvoice}
 \def\dobeginInvoice[#1]{\egroup\grabbufferdata[myLetter][beginInvoice][endInvoice]}

Thanks. How did you find the reason for the error (and the solution)?

Is there also a solution with support for multiple lines? Unfortunately
this does not work:

--8---cut here---start-8---
\def\beginInvoice{\bgroup\obeylines\dosingleempty\dobeginInvoice}
\def\dobeginInvoice[#1]{\egroup\getparameters[PRM][#1]%
  \grabbufferdata[myLetter][beginInvoice][endInvoice]}
\def\endInvoice{\getbuffer[myLetter]}
\def\startInvoice#1\stopInvoice{#1}
\starttext
\beginInvoice[bla=blub,
  blub=bla]
\startInvoice test \PRMblub \stopInvoice
\endInvoice
\beginInvoice
\startInvoice test \stopInvoice
\endInvoice
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tnum and aligncharacter=yes

2013-11-08 Thread Peter Münster
On Fri, Nov 08 2013, Hans Hagen wrote:

 i now changed the place where the align kicks in, which of course will have
 other side effects (one being less robust)

Hi Hans,

Thanks for your efforts, the alignment works now as expected!

You're right, there are side effects, the first digits are blue:
http://pmrb.free.fr/tmp/context-tnum/constantia-tnum-2013-11-08.pdf

-- 
   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

2013-11-08 Thread Peter Münster
On Fri, Nov 08 2013, Michael Ash wrote:

 Does anyone know how to change the command from texexec to context
 in emacs/AUCTeX?

I have this in my emacs init file:

--8---cut here---start-8---
(eval-after-load 'tex
  '(add-to-list
  'TeX-command-list
  '(ConTeXt context --nonstopmode %t
TeX-run-TeX nil (context-mode) :help Run ConTeXt)))
--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] Configure AUCTeX to run context not texec

2013-11-08 Thread Peter Münster
On Fri, Nov 08 2013, Michael Ash wrote:

 This fix is imperfect because even though context runs properly, AUCTeX
 reports ConTeXt: problems after [0] pages

It's on my todo-list to fix it, but at very low priority.
In this case problems after [0] pages just means success, so it's
only a cosmetic issue.


 AUCTeX doesn't believe that the file has been compiled and C-c C-c offers to
 run context again. It is necessary to select View 

Also on my todo-list, but again at low priority: View is in my
history, so just pressing up does it. And once the viewer (evince
in my case) is launched, there is no further need for View.


 Some googling suggests that the return codes from context are not properly
 interpreted by AUCTeX.

I don't think so, the return code is 0 (success). It's probably more a
matter of parsing the last lines of the terminal output.


 I'm not sure if this is a context non-standardization or an AUCTeX
 problem. thoughts?

An AUCTeX problem. If you have some time (I don't) and you like to
program with Emacs Lisp, then you could solve 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] tnum and aligncharacter=yes

2013-11-06 Thread Peter Münster
On Wed, Nov 06 2013, Hans Hagen wrote:

 One year ago we used a different method (less robust). The current mechanism
 assumes equal width digits but nevertheless forces [tnum=yes,lnum=no] so if
 you get weird widths it's a font issue and you nee to make sure that somehow
 you force it to use equal width digits.

Unfortunately I don't know how to do that... :(

Does it mean, that the only solution is to use an older ConTeXt version?
Or is there perhaps another work-around?

-- 
   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] tnum and aligncharacter=yes

2013-11-05 Thread Peter Münster
On Tue, Nov 05 2013, Hans Hagen wrote:

 That was already solved a while ago, driven by:

 % \enabletrackers[typesetters.characteralign.autofont]

 which is enabled by default. It's about the most I can do about it.

Hi Hans,

I'm sure, that you can do much better, because there was no such problem
about one year ago. Please find here a test file, the font, and the
outputs for versions 2012.12.10 and 2013.11.05:

http://pmrb.free.fr/tmp/context-tnum/

TIA for any further 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] reference error

2013-11-04 Thread Peter Münster
On Sun, Nov 03 2013, Wolfgang Werners-Lucchini wrote:

 \in{Kapitel}[chap:vorwort with space at the end ],
 \in{Kapitel}[chap:vorwort2 with space at the end ],
 \in{Kapitel}[chap:vorwort3 with space at the end ],
 \in{Kapitel}[chap:vorwort without space at the end] and
 \in{Kapitel}[chap:vorwort2 without space at the end]

 Only the last two are working! Not the second!!!
 Not very intuitive at all.

The first 3 are almost the same.
If you really want a space at the end, then you could add a feature
request to http://tracker.luatex.org/

If you just want to write \command[ key=value ], that does not work.
ConTeXt needs to know where the value ends: at a , or a ].
This could be a possibility for you: \command[ key=value, ].

-- 
   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] tnum and aligncharacter=yes

2013-11-04 Thread Peter Münster
Hi Hans,

Any news about this issue? Can it be solved? Should I add it to the
tracker?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference error

2013-11-03 Thread Peter Münster
On Sun, Nov 03 2013, Wolfgang Werners-Lucchini wrote:

 Puuh! If the parser of this reference strings allows spaces, why 
 doesn't work 'reference={chap:neu}'?

\starttext
\startchapter
[ title=Vorwort, reference=chap:vorwort with space at the end ]
\stopchapter

\startchapter
[ title=Vorwort, reference={chap:vorwort2 with space at the end} ]
\stopchapter

\startchapter
[ title=Vorwort, reference={chap:vorwort3 with space at the end }]
\stopchapter

\startchapter
[ title=Vorwort, reference=chap:vorwort without space at the end]
\stopchapter

\startchapter
[ title=Vorwort, reference={chap:vorwort2 without space at the end}]
\stopchapter

\startchapter
\ConTeXt\ does not support space at the end of references:
Siehe
\in{Kapitel}[chap:vorwort with space at the end ],
\in{Kapitel}[chap:vorwort2 with space at the end ],
\in{Kapitel}[chap:vorwort3 with space at the end ],
\in{Kapitel}[chap:vorwort without space at the end] and
\in{Kapitel}[chap:vorwort2 without space at the end]
\stopchapter
\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] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-10-29 Thread Peter Münster
Hello Hans,

Is it also possible, to break inside the \type{} only at well defined
characters and without hyphenation?

Example:

--8---cut here---start-8---
\definebreakpoint[compound][_]
\setuplayout[width=25mm]
\startsetups Test
  \setbreakpoints[compound]
\stopsetups
\definetype[Test][lines=hyphenated, setups=Test, space=stretch]
\showframe
\starttext
hellohello hellohello % should break like this: hel- lohello (ok)

hellohello \Test{hel_lohello} % should break like this: hel_ lohello (not ok)

hellohello \Test{hellohello} % should not break at all (not ok)
\stoptext
--8---cut here---end---8---

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] Setting structureuservariable

2013-10-21 Thread Peter Münster
On Mon, Jan 16 2012, Hans Hagen wrote:

 2. Is there a way to provide a default value for a
 structureuservariable? I'd like to set a reference number based on a
 global counter if the user doesn't supply their own.

 Currently not ... but I can add it.

Have you added it?  If yes, how can we use it 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] tnum and aligncharacter=yes

2013-10-21 Thread Peter Münster
Hi,

aligncharacter=yes does not work with \addfeature[with-tnum]:

--8---cut here---start-8---
\definefontfeature[with-tnum][default][tnum=yes]
\definefontfamily[mainface][sans][Alwyn New]
\setupbodyfont[mainface]
\setupTABLE[alignmentcharacter=., aligncharacter=yes]
\starttext
\startbuffer
  \bTABLE \bTR \bTD 111.111 \eTD \eTR \bTR \bTD 444.444 \eTD \eTR \eTABLE
\stopbuffer
\getbuffer\addfeature[with-tnum]\getbuffer
\stoptext
--8---cut here---end---8---

Please find attached the pdf file.

How could I solve this problem please?

TIA for any hints,
-- 
   Peter


test.pdf
Description: Adobe PDF document
___
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] total number of sections

2013-10-21 Thread Peter Münster
On Thu, Oct 17 2013, Hans Hagen wrote:

 \determinelistcharacteristics[section][criterium=text]
 \ifnum\structurelistsize=1 ... \fi

Thanks. Now I've found another example on the mailing list:

\determinelistcharacteristics[section][criterium=all]
number of sections: \utilitylistlength

That works too.
What is the difference between criterium=all and criterium=text?
And what is the difference between \structurelistsize and
\utilitylistlength?

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
___


Re: [NTG-context] tnum and aligncharacter=yes

2013-10-21 Thread Peter Münster
On Mon, Oct 21 2013, Hans Hagen wrote:

 How could I solve this problem please?

 \definefontfeature[oldstylenumbers][onum=yes]
 \definefontfeature[inlinenumbers]  [lnum=yes,tnum=no]
 \definefontfeature[tabularnumbers] [tnum=yes,lnum=no]

 \definefontfamily[mainface][sans][Constantia]
 \setupbodyfont[mainface]

 [...]

Hi Hans,

Does your answer mean, that you cannot reproduce the problem?
I've tried with Constantia, and I get the same horizontal shift as in my
previous example PDF file. My ConTeXt version is 2013.10.20 07:09

I attach a new PDF file with Constantia (from my Windows-XP installation).

Is there a problem with my fonts?

-- 
   Peter


test.pdf
Description: Adobe PDF document
___
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] open quotation not working

2013-10-21 Thread Peter Münster
On Mon, Oct 21 2013, john Culleton wrote:

 Not every change is an improvement, IMO.


On Sat, Jul 27 2013, Mojca Miklavec wrote:

 On the other hand many languages use different quotation marks and
 using ``these'' is completely americanocentric. On top,
 auto-replacement lead to inability to typeset the actual backtick (`)
 when it's needed. So yes, getting rid of `` replaced by quotation by
 default *was* an improvement.

(copied from http://www.ntg.nl/pipermail/ntg-context/2013/074277.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tnum and aligncharacter=yes

2013-10-21 Thread Peter Münster
On Tue, Oct 22 2013, Hans Hagen wrote:

 this is what i get

Ok, but you use LM instead of Constantia...

pdffonts oeps.pdf :
name type  encoding emb sub 
uni object ID
 -  --- --- 
--- -
KQRURB+LMSans10-Regular  CID Type 0C   Identity-H   yes yes 
yes 18  0

pdffonts test.pdf :
name type  encoding emb sub 
uni object ID
 -  --- --- 
--- -
CZUMAG+ConstantiaCID TrueType  Identity-H   yes yes 
yes 18  0

-- 
   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] Math in current beta

2013-10-08 Thread Peter Münster
On Tue, Oct 08 2013, Alan BRASLAU wrote:

 Math seems terribly broken in current beta.

 Minimal example: anything... :)

Works for me:

\starttext
$a = b$
\stoptext

mtx-context | current version: 2013.10.08 21:49

-- 
   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] \definetype[xxx][linebreaks=yes, breakpoints=name]

2013-10-07 Thread Peter Münster
On Mon, Oct 07 2013, Hans Hagen wrote:

 If not, here my feature request: something like
 \definetype[xxx][linebreaks=yes, breakpoints=compound]

 this should be redefined:

 \unexpanded\def\specialstretchedspace{\hskip.5\interwordspace\s!plus.125\interwordspace\relax}

Hi Hans,

Unfortunately it does not work:

--8---cut here---start-8---
\unprotect
\unexpanded\def\specialstretchedspace{\hskip.5\interwordspace\s!plus.125\interwordspace\relax}
\protect
\definetype[whatever][lines=yes, space=stretch]
\setbreakpoints[compound]
\starttext
\hsize4cm
\whatever{fasdfjkl-fjsdkal-jskla-fjksdla-fjksdl-afjksdla}
fasdfjkl-fjsdkal-jskla-fjksdla-fjksdl-afjksdla
\stoptext
--8---cut here---end---8---

What am I doing wrong please?

-- 
   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] image vertical positioning in xtable

2013-10-06 Thread Peter Münster
On Sun, Oct 06 2013, Pablo Rodríguez wrote:

 I have the following sample that places the image below the text in the
 same cell:

   \startxcell image \externalfigure[cow.pdf][height=.5em]
   \stopxcell

Perhaps a bug?

--8---cut here---start-8---
\setupexternalfigures[location=default]
\starttext
X\externalfigure[cow.pdf][frame=on, height=5mm]X
X\externalfigure[cow.pdf][frame=on, height=2mm]X
\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] scope and grouping in flowchart

2013-10-06 Thread Peter Münster
Hi,

Why is the \getvariable not in the same grouping level as the
\setvariables here:

--8---cut here---start-8---
\usemodule[chart]
\startFLOWchart[test]
  \startFLOWcell
\setvariables[test][test=test]
\text{\getvariable{test}{test}} % no text!
  \stopFLOWcell
\stopFLOWchart
\starttext
\FLOWchart[test]
\stoptext
--8---cut here---end---8---

Workaround: \setgvariables[test][test=test]

TIA for any explanation,
-- 
   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   >