Re: [NTG-context] Possible inconsistency in the use of paragraphs in ConTeXt

2013-01-31 Thread Devendra Ghate


On 02/01/2013 01:16 PM, Alain Delmotte wrote:

Hi Wolfgang,

Using MkIV, version 2013.01.24 i get an error about \defineparagraph:

! Undefined control sequence.

system  > tex > error on line 25 in file first.tex: Undefined 
control sequence ...


[...]
24
25 >>  \defineparagraph[german][setups=paragraph:german]
26 \defineparagraph[big]   [setups=paragraph:double]
[...]
l.25 \defineparagraph
 [german][setups=paragraph:german]
?
! Emergency stop.

Thanks for all the answers you, patiently, give to newbies.

Regards,

Alain



Alain,

Update MKIV. I had the same problem earlier. It works.

Devendra


Le 1/02/2013 04:58, Wolfgang Schuster a écrit :


Am 31.01.2013 um 23:02 schrieb "Keith J. Schultz"
mailto:keithjschu...@web.de>>:


Hi Wolfgang,

You do seem to understand what I am getting at!

I purposely put "paragraph" in quotes. because the
environment that I have suggest was
one that had setups for bodyfont, color, indenting etc.
and one can just like the headers
have control over them.


\startsetups[paragraph:german]
   \language[german]
\stopsetups

\startsetups[paragraph:double]
   \setupinterlinespace[big]
\stopsetups

\startsetups[paragraph:indenting]
   \setupindenting[yes,medium]
\stopsetups

\defineparagraph[german][setups=paragraph:german]
\defineparagraph[big]   [setups=paragraph:double]
\defineparagraph[indent][setups=paragraph:indenting]
\defineparagraph[red]   [color=red]
\defineparagraph[italic][style=italic]

\setupwhitespace[line]

\starttext

\startparagraph
\input reich
\stopparagraph

\startparagraph[german]
\input reich
\stopparagraph

\startparagraph[big]
\input reich
\stopparagraph

\startparagraph[indent]
\input reich
\stopparagraph

\startparagraph[red]
\input reich
\stopparagraph

\startparagraph[italic]
\input reich
\stopparagraph

\stoptext


Furthermore, you have stated on the on the 30th:


ConTeXt provides also a paragraph environment but this
add only tags when you export the document
as XML or create a tagged PDF.

The paragraphs (note the "s") environment has a Hans
already mentioned nothing to do with paragraphs,
it just puts the content on columns where each column can
con tai multiple paragraphs. The name
for the environment is misleading because columns is
already taken as name.


Thank you anyway. I will look into creating what I need on
my own. I already have an idea.
Just need to figure out the implementation.


You can use \definestartsetup or \definebuffer to create
your own environments.

Wolfgang



___ 

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
___ 





___ 

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
___ 



___
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] Possible inconsistency in the use of paragraphs in ConTeXt

2013-01-31 Thread Alain Delmotte

Hi Wolfgang,

Using MkIV, version 2013.01.24 i get an error about 
\defineparagraph:


! Undefined control sequence.

system  > tex > error on line 25 in file first.tex: 
Undefined control sequence ...


[...]
24
25 >>  \defineparagraph[german][setups=paragraph:german]
26 \defineparagraph[big]   [setups=paragraph:double]
[...]
l.25 \defineparagraph
 [german][setups=paragraph:german]
?
! Emergency stop.

Thanks for all the answers you, patiently, give to newbies.

Regards,

Alain


Le 1/02/2013 04:58, Wolfgang Schuster a écrit :


Am 31.01.2013 um 23:02 schrieb "Keith J. Schultz"
mailto:keithjschu...@web.de>>:


Hi Wolfgang,

You do seem to understand what I am getting at!

I purposely put "paragraph" in quotes. because the
environment that I have suggest was
one that had setups for bodyfont, color, indenting etc.
and one can just like the headers
have control over them.


\startsetups[paragraph:german]
   \language[german]
\stopsetups

\startsetups[paragraph:double]
   \setupinterlinespace[big]
\stopsetups

\startsetups[paragraph:indenting]
   \setupindenting[yes,medium]
\stopsetups

\defineparagraph[german][setups=paragraph:german]
\defineparagraph[big]   [setups=paragraph:double]
\defineparagraph[indent][setups=paragraph:indenting]
\defineparagraph[red]   [color=red]
\defineparagraph[italic][style=italic]

\setupwhitespace[line]

\starttext

\startparagraph
\input reich
\stopparagraph

\startparagraph[german]
\input reich
\stopparagraph

\startparagraph[big]
\input reich
\stopparagraph

\startparagraph[indent]
\input reich
\stopparagraph

\startparagraph[red]
\input reich
\stopparagraph

\startparagraph[italic]
\input reich
\stopparagraph

\stoptext


Furthermore, you have stated on the on the 30th:


ConTeXt provides also a paragraph environment but this
add only tags when you export the document
as XML or create a tagged PDF.

The paragraphs (note the "s") environment has a Hans
already mentioned nothing to do with paragraphs,
it just puts the content on columns where each column can
con tai multiple paragraphs. The name
for the environment is misleading because columns is
already taken as name.


Thank you anyway. I will look into creating what I need on
my own. I already have an idea.
Just need to figure out the implementation.


You can use \definestartsetup or \definebuffer to create
your own environments.

Wolfgang



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



___
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] long tables in multicolumns / Interactive cross-referencing

2013-01-31 Thread Aditya Mahajan

On Thu, 31 Jan 2013, Thomas De Maet wrote:

Firstly, I'm interested in the "multicolumns table issue" raised in 
http://wiki.contextgarden.net/TABLE. Do you have an idea of a date for a fix 
? Alternatively, it's quite a huge work to skip portions of tables at the 
good size, especially when an entry is added at the beginning



Can you give an example? The following splits just fine across columns:

\starttext
\startcolumns[n=2]
\bTABLE[split=yes]
\dorecurse{10}
  {\bTR
  \bTD A table with a long line.
   A table with a long line.
   A table with a long line.
   A table with a long line.
   A table with a long line.
  \eTD
  \bTD A table with a long line.
   A table with a long line.
   A table with a long line.
   A table with a long line.
   A table with a long line.
  \eTD
   \eTR}
\eTABLE
\stopcolumns
\stoptext


Aditya
___
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] long tables in multicolumns / Interactive cross-referencing

2013-01-31 Thread Thomas De Maet

Hi !

I'm currently creating a book in context - it's a tremendous project ! - 
and I have a couple of questions:


Firstly, I'm interested in the "multicolumns table issue" raised in 
http://wiki.contextgarden.net/TABLE. Do you have an idea of a date for a 
fix ? Alternatively, it's quite a huge work to skip portions of tables 
at the good size, especially when an entry is added at the beginning


Secondly, I have here a code in which several cross-links are down with 
MKIV (2012.05.30). It happens for references to chapter (or 
section/subsection) when \startcomponent is used (with starttext it is 
just ok). When merged in the whole document, I only have the problem for 
cross-links interns to a file (and each file is a component...)


Thanks in advance !

Thomas


\setupcolors[state=start]
\setupinteraction[state=start]

\startcomponent comp

\chapter[one]{chapt 1}\reference[oneBis]{}
\input{knuth}
\page
this chapt : \in{chap}[one] or \at{page}[one] or \at{hard}[oneBis]

following chapt : \in{chap}[two] or \at{page}[two] or \at{hard}[twoBis]

\chapter[two]{chapt 2}\reference[twoBis]{}

\placecontent[criterium=all]

\stopcomponent comp


___
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] Possible inconsistency in the use of paragraphs in ConTeXt

2013-01-31 Thread Wolfgang Schuster

Am 31.01.2013 um 23:02 schrieb "Keith J. Schultz" :

> Hi Wolfgang,
> 
> You do seem to understand what I am getting at!
> 
> I purposely put "paragraph" in quotes. because the environment that I have 
> suggest was
> one that had setups for bodyfont, color, indenting etc. and one can just like 
> the headers
> have control over them.

\startsetups[paragraph:german]
  \language[german]
\stopsetups

\startsetups[paragraph:double]
  \setupinterlinespace[big]
\stopsetups

\startsetups[paragraph:indenting]
  \setupindenting[yes,medium]
\stopsetups

\defineparagraph[german][setups=paragraph:german]
\defineparagraph[big]   [setups=paragraph:double]
\defineparagraph[indent][setups=paragraph:indenting]
\defineparagraph[red]   [color=red]
\defineparagraph[italic][style=italic]

\setupwhitespace[line]

\starttext

\startparagraph
\input reich
\stopparagraph

\startparagraph[german]
\input reich
\stopparagraph

\startparagraph[big]
\input reich
\stopparagraph

\startparagraph[indent]
\input reich
\stopparagraph

\startparagraph[red]
\input reich
\stopparagraph

\startparagraph[italic]
\input reich
\stopparagraph

\stoptext

> Furthermore, you have stated on the on the 30th:
> 
>> ConTeXt provides also a paragraph environment but this add only tags when 
>> you export the document
>> as XML or create a tagged PDF.
>> 
>> The paragraphs (note the "s") environment has a Hans already mentioned 
>> nothing to do with paragraphs,
>> it just puts the content on columns where each column can con tai multiple 
>> paragraphs. The name
>> for the environment is misleading because columns is already taken as name.
> 
> Thank you anyway. I will look into creating what I need on my own. I already 
> have an idea.
> Just need to figure out the implementation.

You can use \definestartsetup or \definebuffer to create your own environments.

Wolfgang

___
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] Possible inconsistency in the use of paragraphs in ConTeXt

2013-01-31 Thread Keith J. Schultz
Hi Wolfgang,

You do seem to understand what I am getting at!

I purposely put "paragraph" in quotes. because the environment that I have 
suggest was
one that had setups for bodyfont, color, indenting etc. and one can just like 
the headers
have control over them.

Furthermore, you have stated on the on the 30th:

> ConTeXt provides also a paragraph environment but this add only tags when you 
> export the document
> as XML or create a tagged PDF.
> 
> The paragraphs (note the "s") environment has a Hans already mentioned 
> nothing to do with paragraphs,
> it just puts the content on columns where each column can con tai multiple 
> paragraphs. The name
> for the environment is misleading because columns is already taken as name.

Thank you anyway. I will look into creating what I need on my own. I already 
have an idea.
Just need to figure out the implementation.

regards
Keith


Am 31.01.2013 um 17:24 schrieb Wolfgang Schuster :

> 
> Am 31.01.2013 um 09:40 schrieb Keith J. Schultz :
> 
>>  It would have been nice, if ConTeXt had such an environment. I do not 
>> know how ConTeXt processes
>>  things internally, but since it is a front end, ConTeXt could have the 
>> syntactic sugar of a "paragraph"-environment.
>>  That is that, while parsing the source it injects groups into the code 
>> it outputs for the paragraphs.
>>  This would give us then "paragraph"-layout. Naturally, this is not a 
>> TeX way, but could be a ConTeXt way. 
> 
> ConTeXt *has* a paragraph environment!
> 
> \starttext
> 
> \startparagraph
> This is the first paragraph.
> \stopparagraph
> 
> \startparagraph
> This is another paragraph.
> \stopparagraph
> 
> \stoptext
> 
> Wolfgang

___
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] Typesetting LibreOffice (ODT) documents with ConTeXt

2013-01-31 Thread Bill Meahan

On 01/31/2013 04:19 AM, Keith J. Schultz wrote:

Hi Bill,

I will jump in here after I have been following this thread.


Saved the documents as standard text file. In LaTeX I set up the environments 
as I
needed then.

This work flow work quite well.

regards
Keith.




Yeah, if all else fails I can always write a few Perl scripts. :)

Before I retired, I wrote a LOT of Perl code that supplemented a huge 
corporate application in real time. Perl may not be the favored language 
these days but it gets the job done. :)


I also edit (and report for and ...) an organizational newsletter. I use 
Scribus for that.


Thanks for the input.

--
Bill Meahan
Westland, Michigan USA

___
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] ntg-context Digest, Vol 103, Issue 95

2013-01-31 Thread Wolfgang Schuster

Am 31.01.2013 um 19:40 schrieb H. Özoguz :

> Hi Wolfgang, thank you.
> 
> Am 31.01.2013 17:48, schrieb ntg-context-requ...@ntg.nl:
>> \setupbackgrounds[page][frame=on,frameoffset=10mm]
>> 
>> \setuppapersize[A4][A3]
>> 
>> \setuplayout[location=middle]
>> 
>> \starttext
>> \input knuth
>> \stoptext
> This does not work in my setting. I integrated you code in my setting, as 
> follows, but this does not work, what did I forget?

In your example the paper has the same size as the page but you try draw a 
frame which is larger than the page. The question is where you expect the frame 
to appear.

>> Did you read my answer for your question in the other thread?
> 
> Of course I did, but I unterstood, that your code adds only 1.5cm, maybe it 
> was easy to change and I oversaw that?
> For record: It was
> 
> \setuppapersize[MyBook][oversized]
> 
> I need variable oversizing (and mostly 3mm for printing and cutting)


\definepapersize[sheet]   [width=162mm,height=225mm]
\definepapersize[bigsheet][width=\dimexpr\paperwidth+6mm\relax,height=\dimexpr\paperheight+6mm\relax]

\setuppapersize[sheet][bigsheet]

\setupbackgrounds[page][frame=on,frameoffset=0mm]

\setuplayout
  [location=middle,
   topspace=17.4mm,
   header=1.1cm,
   footer=1.4cm,
   bottomspace=26mm,
   width=middle,
   cutspace=20mm,
   backspace=22.2mm,
   height=fit,
   grid=yes,
  %setups=mypenalties,
   ]

\starttext
\input knuth
\stoptext

BTW: Can you do something about the bad formatting of the examples from your 
mail client which adds a lot of empty lines.

Wolfgang
___
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] Rotating \copypages

2013-01-31 Thread Troy Henderson
> \copypages[…][][orientation=90]
>

Excellent.  Thank you!

Troy
___
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] ntg-context Digest, Vol 103, Issue 95

2013-01-31 Thread H. Özoguz

Hi Wolfgang, thank you.

Am 31.01.2013 17:48, schrieb ntg-context-requ...@ntg.nl:

\setupbackgrounds[page][frame=on,frameoffset=10mm]

\setuppapersize[A4][A3]

\setuplayout[location=middle]

\starttext
\input knuth
\stoptext
This does not work in my setting. I integrated you code in my setting, 
as follows, but this does not work, what did I forget?


\definepapersize[sheet][width=162mm,height=225mm]

\setuppapersize[sheet]

\setupbackgrounds[page][frame=on,frameoffset=10mm]

\setuplayout[location=middle,

topspace=17.4mm,

header=1.1cm,

footer=1.4cm,

bottomspace=26mm,

width=middle,

cutspace=20mm,

backspace=22.2mm,

height=fit,

grid=yes,

% setups= mypenalties

]

\starttext

\input knuth

\stoptext


Did you read my answer for your question in the other thread?


Of course I did, but I unterstood, that your code adds only 1.5cm, maybe 
it was easy to change and I oversaw that?

For record: It was

\setuppapersize[MyBook][oversized]

I need variable oversizing (and mostly 3mm for printing and cutting)

Best regards,
Huseyin
___
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] Rotating \copypages

2013-01-31 Thread Wolfgang Schuster

Am 31.01.2013 um 19:34 schrieb Troy Henderson :

> I have a PORTRAIT letter size PDF that I would like to include in my 
> LANDSCAPE letter size document.  I am doing
> 
> \setuppapersize[letter,landscape]
> \starttext
> \copypage[foo.pdf]
> \stoptext
> 
> but foo.pdf is being inserted "as-is" and thus is being clipped since the 
> height of a letter size page is 8.5in and the height of foo.pdf is 11in.  I 
> would like to use \copypages to insert foo.pdf rotated 90 degrees.  How can 
> this be done?

\copypages[…][][orientation=90]

Wolfgang
___
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] Rotating \copypages

2013-01-31 Thread Troy Henderson
I have a PORTRAIT letter size PDF that I would like to include in my
LANDSCAPE letter size document.  I am doing

\setuppapersize[letter,landscape]
\starttext
\copypage[foo.pdf]
\stoptext

but foo.pdf is being inserted "as-is" and thus is being clipped since the
height of a letter size page is 8.5in and the height of foo.pdf is 11in.  I
would like to use \copypages to insert foo.pdf rotated 90 degrees.  How can
this be done?

Troy Henderson
___
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] setupblock with starttyping doesn't work

2013-01-31 Thread Aditya Mahajan

On Thu, 31 Jan 2013, Hans Hagen wrote:


On 1/31/2013 4:07 PM, Ingo Hohmann wrote:

Hello,

this is my first post to this mailing list. I have played a little bit
with latex and context before, and now I am trying context for real.

To get a feel for it, I am setting up a letter style for my self, and
some problems are showing up now.

So here it goes ...

What I want to accomplish:

The user writes the address, and he should not have to use \crlf or have
to use several distinct commands.

Why does the following not work?


\defineblock[Address]
\setupblock[Address][
before=\starttyping,
after=\stoptyping
]


you pick the two more complex mechanisms .. the ones that intercept the input 
stream


\setupblock[Address][
   before=\startlines\tt,
   after=\stoplines,
]

will work ok for most text cases



\starttext
\beginAddress
Peter Pan
Somewhere over the Rainbow
Neverland
\endAddress

\useblocks[Address]

Some more text.

\stoptext


And if you really need a typing environment, you can use buffers:

\startbuffer[address]
#whatver&
\stopbuffer

\getbuffer[address]

or

\typebuffer[address]

Aditya
___
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] Possible inconsistency in the use of paragraphs in ConTeXt

2013-01-31 Thread Wolfgang Schuster

Am 31.01.2013 um 09:40 schrieb Keith J. Schultz :

>   It would have been nice, if ConTeXt had such an environment. I do not 
> know how ConTeXt processes
>   things internally, but since it is a front end, ConTeXt could have the 
> syntactic sugar of a "paragraph"-environment.
>   That is that, while parsing the source it injects groups into the code 
> it outputs for the paragraphs.
>   This would give us then "paragraph"-layout. Naturally, this is not a 
> TeX way, but could be a ConTeXt way. 

ConTeXt *has* a paragraph environment!

\starttext

\startparagraph
This is the first paragraph.
\stopparagraph

\startparagraph
This is another paragraph.
\stopparagraph

\stoptext

Wolfgang

___
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] Showing a cutting-frame

2013-01-31 Thread Wolfgang Schuster

Am 31.01.2013 um 10:18 schrieb H. Özoguz :

> Hi there,
> 
> to precize my question about the page-edges a few days ago, I know now what 
> the perfect solution for me would be:
> 
> 1. Is it possible, that context prints on every page an frame/box, which has 
> excactly X mm distance to each of the four borders, no matter how I change 
> the papersize? (Too the the real layout after cutting.)

\setupbackgrounds[page][frame=on,frameoffset=10mm]

\setuppapersize[A4][A3]

\setuplayout[location=middle]

\starttext
\input knuth
\stoptext

> 2. And in addition to this, again my last question: Is there an command like 
> "\addpapersize[x]" which increases the papersize x mm on all four directions 
> of the page?
> (Useful, because with that I would not have to add always x mm cutting-space 
> to topspace, bottomspace, cutspace and backspace manually, if I change the 
> layout.)

Did you read my answer for your question in the other thread?

Wolfgang
___
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] setupblock with starttyping doesn't work

2013-01-31 Thread Hans Hagen

On 1/31/2013 4:07 PM, Ingo Hohmann wrote:

Hello,

this is my first post to this mailing list. I have played a little bit
with latex and context before, and now I am trying context for real.

To get a feel for it, I am setting up a letter style for my self, and
some problems are showing up now.

So here it goes ...

What I want to accomplish:

The user writes the address, and he should not have to use \crlf or have
to use several distinct commands.

Why does the following not work?


\defineblock[Address]
\setupblock[Address][
before=\starttyping,
after=\stoptyping
]


you pick the two more complex mechanisms .. the ones that intercept the 
input stream


\setupblock[Address][
before=\startlines\tt,
after=\stoplines,
]

will work ok for most text cases



\starttext
\beginAddress
Peter Pan
Somewhere over the Rainbow
Neverland
\endAddress

\useblocks[Address]

Some more text.

\stoptext


Kind regards,

Ingo
___

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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] new version of OpenType Math fonts from Gust

2013-01-31 Thread Mojca Miklavec
Hello,

the distribution now contains the new (not yet on CTAN) version of
OpenType Math fonts: LM, TeX Gyre Pagella & Termes.

Please report if you experience any problems with installation
(problems with contents should be reported straight to the Polish
team).

Mojca
___
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] setupblock with starttyping doesn't work

2013-01-31 Thread Ingo Hohmann

Hello,

this is my first post to this mailing list. I have played a little bit 
with latex and context before, and now I am trying context for real.


To get a feel for it, I am setting up a letter style for my self, and 
some problems are showing up now.


So here it goes ...

What I want to accomplish:

The user writes the address, and he should not have to use \crlf or have 
to use several distinct commands.


Why does the following not work?


\defineblock[Address]
\setupblock[Address][
   before=\starttyping,
   after=\stoptyping
]

\starttext
\beginAddress
Peter Pan
Somewhere over the Rainbow
Neverland
\endAddress

\useblocks[Address]

Some more text.

\stoptext


Kind regards,

Ingo
___
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] \goto links to figures are inactive

2013-01-31 Thread Alan Bowen
The problem persists with the latest beta. Am I not encoding this properly?

And in such cases, should one include a sample .pdf file as well?

Alan

On Wed, Jan 30, 2013 at 8:17 AM, Alan Bowen  wrote:

> The following compiles in the latest beta standalone but with dead links
> to the Figure:
>
> \setupinteraction[state=start]
> \starttext
> \goto{Figure A}[fig:Figure.pdf]
>
> \goto{Text A}[TextA]
> \page
> \useexternalfigure[Graphic][Figure.pdf][]
> \placefigure
>  [here,page,force,nonumber]
>  [fig:Figure.pdf]
>   {Figure A}
>  {\externalfigure[Figure.pdf][type=pdf,
>  width=\textwidth]}
>
> \reference[TextA]{}
> \input knuth
> \stoptext
>
> Any suggestions?
>
> Alan
>
___
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] Node for startbuffer.

2013-01-31 Thread Sietse Brouwer
Hi André,

> Anyone can suggest a category for it?
> http://wiki.contextgarden.net/Category:Commands
>
> Nodes?

Yep. Creating [[Category:Command/Nodes]] seems like a good idea. To
create the command page, navigate to the intended title (e.g.
Command/boxmarker), click ‘Create’ in the top right, and
copy-and-modify the command page template that you can find here:
http://wiki.contextgarden.net/Help:Command_reference#Command_page_template

Possibly add it to the category [[Category:Command/LuaTeX]], too.

If you find yourself having questions about the wiki, or just wanting
help, even for trivial stuff, just poke me on my talk page:
http://wiki.contextgarden.net/User_talk:Esteis
Or send me a private e-mail, of course, that's also fine.

Hans wrote:
> I've added the example to the cld manual.
...
> google for cld-mkiv.pdf or browse the pragma website

For the benefit of future people:
http://www.pragma-ade.com/general/manuals/cld-mkiv.pdf
It's on page 33, in section 4.4, "Node lists".

Cheers,
Sietse

On Tue, Jan 29, 2013 at 9:57 PM, Andre Caldas  wrote:
>> It's somewhat experimental. Up to you to update the wiki.
>
> Anyone can suggest a category for it?
> http://wiki.contextgarden.net/Category:Commands
>
> Nodes?
>
>
> André Caldas.
> ___
> 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
> ___
___
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] Typesetting LibreOffice (ODT) documents with ConTeXt

2013-01-31 Thread Henning Hraban Ramm
Am 2013-01-31 um 00:54 schrieb Bill Meahan:

> Scribus (~InDesign) has an XML-based format, too but no direct conversion to 
> M$-word. Doesn't look all that bad to me but I'm hardly an XML expert.

Some 10 years ago I was looking for a XML based layout format to use as 
exchange standard for newspaper ads between a web-based editor and other 
layout/workflow tools. I looked at Scribus - at that time a nearly undocumented 
mess. Maybe it’s better now.

> At least it's free (beer and freedom). Sigil works directly on epub2 (XHTML+) 
> but doesn't support epub3 (XHTML++) yet. TEI tools can convert odt -> XHTML, 
> epub2 epub3 and several others including LaTeX but not ConTeXt. How 
> successfully is another question.

(X)HTML is also (used, even if not planned as) view-based, not structurally 
meaningful, so you'd need a limited and defined "subset" of HTML to make 
meaningful TeX code from it - not very different from word processor usage. It 
*is* possible to use MS Word with proper styles and structure...




Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Typesetting LibreOffice (ODT) documents with ConTeXt

2013-01-31 Thread Keith J. Schultz
Hi Bill,

I will jump in here after I have been following this thread.

There is a more direct method that you can use though at first it requires some 
work.
Then again, it might not work if the formatting used is quite complex.

A long while ago I had to join several Word documents to form a book and output 
as
a pdf for the publisher.
As usual with all collaborative work in acedemica, nobody followed the guide 
lines.
Word choked on putting such a large document together. A real mess! So, I 
decided
to convert every thing to LaTeX. I wrote a few Word macros that  converted the 
quotation marks  to commands, converted the footnotes to LaTeX commands,
translate the öäß, etc to LATeX, and the Word-formating to LaTeX- Commands 
environments of my own liking (names). 
Saved the documents as standard text file. In LaTeX I set up the environments 
as I 
needed then.  

This work flow work quite well. 

regards
Keith.

Am 30.01.2013 um 20:31 schrieb Bill Meahan :

> I scoured the wiki and mailing-list without finding a definite answer. The 
> most recent discussion I can find is from 2006 and at that time it was 
> "possible" but nobody had yet developed the appropriate template, XSLT 
> style-sheet, module or whatever to actually do it.
> 
> For a number of reasons (including an absolute necessity to produce MS 
> compatible .doc files) I need to maintain and write documents using 
> LibreOffice Writer (or OO.org Writer) but the quality of the PDF files is, 
> shall we say, not satisfactory. Exporting to LaTeX 2e is possible (and 
> standard equipment in LO-W) but after using both for a while now, I vastly 
> prefer ConTeXt. I could probably use something like the TEI tools to 
> transform the ODT file to XHTML or TEI p5 and process that but I've found 
> over many years such intermediate transformations have a lot of problems of 
> their own.
> 
> I don't need math support for /my/ work but I am sure others who do need it 
> would like to follow the same route to great PDFs.
> 
> Any solutions?

___
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] Showing a cutting-frame

2013-01-31 Thread H. Özoguz

Hi there,

to precize my question about the page-edges a few days ago, I know now 
what the perfect solution for me would be:


1. Is it possible, that context prints on every page an frame/box, which 
has excactly X mm distance to each of the four borders, no matter how I 
change the papersize? (Too the the real layout after cutting.)


2. And in addition to this, again my last question: Is there an command 
like "\addpapersize[x]" which increases the papersize x mm on all four 
directions of the page?
(Useful, because with that I would not have to add always x mm 
cutting-space to topspace, bottomspace, cutspace and backspace manually, 
if I change the layout.)


Thanks again
Huseyin

___
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] Typesetting LibreOffice (ODT) documents with ConTeXt

2013-01-31 Thread Alan BRASLAU
On Wed, 30 Jan 2013 18:54:49 -0500
Bill Meahan  wrote:

> Plus, most of my writer friends work in word processors 
> which means that it is far easier to exchange manuscripts for proofing & 
> feedback is via the (ugh) .doc file.

I have been able to teach some of my collaborators to exchange plain text. They 
mostly use MSWord as their editor. After one or two round trips in plain text 
format (.txt for them), they eventually learn to focus on content and forget 
about format. This is pretty easy with utf8 and ConTeXt as it is mostly 
readable text.

One constraint, though, is to keep paragraphs to one very long line with no \n 
or \r. This is not a problem for me as I simply configure my editor to wrap its 
view (not the file).

Alan
___
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] Possible inconsistency in the use of paragraphs in ConTeXt

2013-01-31 Thread Keith J. Schultz
Hi Wolfgang,


Am 30.01.2013 um 21:56 schrieb Wolfgang Schuster :

> 
> Am 30.01.2013 um 10:00 schrieb Keith J. Schultz :
> 
>> Hi Everybody,
>> 
[snip, snip]
>> Also, it took me awhile to find the setupwhitespace command, because for me 
>> whitespace can be
>> either horizontal or vertical. I think it would be better to rename it to 
>> setupparagraphspacing or something
>> like that. Or at least define a synonym for it. This would make things 
>> easier for the casual or beginning user. 
> 
> Which space do you mean in horizontal direction?
O.K. Traditionally in typesetting and typography whitespace is just 
that white space.
White space can also be inter-word spacing (horizontal).

Since ConTeXt's setupwhitespace just maps to the parskip-demension I 
personally find
the name confusing. 

Possible for a synonym one maybe should use then setparagraphskip. This 
is just a suggestion.

> 
>> Maybe I am missing something. Ideas welcome.
> 
> The problem with the formatting of paragraphs is that TeX (the engine) has no 
> big concept about paragraphs.
> 
> When you want to change the font or color for a paragraph you have to change 
> the values of the document
> with \setupbodyfont[…] or \setupcolors[textcolor=…]. For local changes for a 
> certain paragraph you can
> apply these values in a group (to change the color you can just use 
> \startcolor[…] … \stopcolor).
I am aware of this. Since,  I noticed the the paragraph(s) environment, 
I only assume that the functioned
similar to the header environments. My mistake! 

It would have been nice, if ConTeXt had such an environment. I do not 
know how ConTeXt processes
things internally, but since it is a front end, ConTeXt could have the 
syntactic sugar of a "paragraph"-environment.
That is that, while parsing the source it injects groups into the code 
it outputs for the paragraphs.
This would give us then "paragraph"-layout. Naturally, this is not a 
TeX way, but could be a ConTeXt way. 
> 
> ConTeXt provides also a paragraph environment but this add only tags when you 
> export the document
> as XML or create a tagged PDF.
> 
> The paragraphs (note the "s") environment has a Hans already mentioned 
> nothing to do with paragraphs,
> it just puts the content on columns where each column can con tai multiple 
> paragraphs. The name
> for the environment is misleading because columns is already taken as name.

regards
Keith

___
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] Invisibile page numbers for TOC

2013-01-31 Thread Eslamica-Beratung

Hi together,

I use \completecontent for the TOC. How to deactivate the printing of 
the pagenumbers on TOC-pages? But they should be counted invisibely, so 
that the first text-page begins with the real page number.


Best Regards
Huseyin


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