[NTG-context] Cellspacing like in HTML-Tables?

2014-04-07 Thread Jan Heinen

  
  
Do you know cellspacing for HTML-Tables?
How to do something simmilar for TABLE in ConTeXt?

\starttext
   \bTABLE
  \bTR
          \bTD{Text 1}\eTD
          \bTD{Text 2}\eTD
  \eTR
   \eTABLE
\stoptext



-- 
  
  
  
  
  
  
  
  
  
  
  

  
  


  Dr. Jörg Kopp
  
  Am Pützberg 2
  51674 Wiehl
  
  Tel.: 02262/751086
  eMail: i...@dr-kopp.com
  Internet: www.dr-kopp.com
  
  

  

  
  

  

  

___
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 two lines in a table

2014-04-07 Thread Jan Heinen

  
  
I am searching since several days  now  tomorow y need a
solution :-(

I want to rotate two lines with:

\starttext
   \bTABLE
  \bTR
          \bTD{\rotate[rotation=90]{first line\crlf second
line}}\eTD
  \eTR
   \eTABLE
\stoptext


but instead of: (rotated 90°)
   first line
   second line

I get:
   first linesecond line


Help. Please.



-- 
  
  
  
  
  
  
  
  
  
  
  

  
  


  Dr. Jörg Kopp
  
  Am Pützberg 2
  51674 Wiehl
  
  Tel.: 02262/751086
  eMail: i...@dr-kopp.com
  Internet: www.dr-kopp.com
  
  

  

  
  

  

  

___
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 two lines in a table

2014-04-07 Thread Jan Heinen

  
  
 I am searching since several days  now  tomorow y need a solution :-(

 I want to rotate two lines with:

 \starttext
\bTABLE
   \bTR
   \bTD{\rotate[rotation=90]{first line\crlf second line}}\eTD
   \eTR
\eTABLE
 \stoptext


 but instead of: (rotated 90°)
first line
second line

 I get:
first linesecond line


 Help. Please.


Perhaps using two cells (one per line) will work:

\bTABLE
   \bTR
   \bTD[rightframe=off]{\rotate[rotation=90]{first line}}\eTD
   \bTD[leftframe=off]{\rotate[rotation=90]{second line}}\eTD
   \bTD{and some text in the next column}\eTD
   \eTR
   \eTABLE

Of course this solution works but it is unhandy for my needs.
I have lots of cells in the table with different amounts of lines.

Isn't there an easy way to rotate a cell which has has a text with
several linebreaks?

I hope there is a ConTeXt-way ... otherwise I have to generate a
graphic of the whole table with gimp ... I don't like this idea.



-- 
  
  
  
  
  
  
  
  
  
  
  

  
  


  Dr. Jörg Kopp
  
  Am Pützberg 2
  51674 Wiehl
  
  Tel.: 02262/751086
  eMail: i...@dr-kopp.com
  Internet: www.dr-kopp.com
  
  

  

  
  

  

  

___
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] Metapost: I only need a little bit padding

2014-04-05 Thread Jan Heinen
I want to have a rectangle (box) with a word in it (i.g. 
Headline). And all should be rotated 90°.
Below I found a solution I am quite happy with. How can I 
get a little bit more padding around the text in the box?


You can copy the example to http://live.contextgarden.net/  
- it is running:


\startuseMPgraphic{rotatedHeadline}
% Text Headline in a box which is rotated
draw btex {\strut\tfd Headline} etex;

% rectangle with rounded corners
path p;
p := llcorner currentpicture+(0mm,3mm){down}..{right}llcorner
currentpicture+(3mm,0mm)--
lrcorner currentpicture+(-3mm,0mm){right}..{up}lrcorner
currentpicture+(0mm,3mm)--
urcorner currentpicture+(0mm,-3mm){up}..{left}urcorner
currentpicture+(-3mm,0mm)--
ulcorner currentpicture+(3mm,0mm){left}..{down}ulcorner
currentpicture+(0mm,-3mm)--cycle;
pickup pencircle scaled 0.5pt;
clip currentpicture to p;
draw p;
currentpicture := currentpicture rotated 90;
\stopuseMPgraphic


\starttext
\useMPgraphic{rotatedHeadline}
\stoptext
___
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] label in Metapost

2014-04-03 Thread Jan Heinen

Ten years ago I made a book with ConText and some Metapost.
I made a circle and wrote the number into it:


\startuseMPgraphic{Pagenumber}
defaultfont := pxb;
defaultscale := 1.5;
fill fullcircle scaled 36pt withcolor .75white;
numeric i;
string pagex;
i := PageNumber;
pagenum = decimal i;
label( pagenum, center currentpicture) withcolor black;
\stopuseMPgraphic


label does not write the number into the circle - years 
ago this was working.
What changed in new Metapost? How can I get the number into 
the circle?


___
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] codefolding with Kate or Kwrite

2013-04-28 Thread Jan Heinen

Hello,

is someone else using the editors kate and kwrite?

Code-highlighting is working.

What I need ist code-folding for ConTeXt. Is this possible?
I have huge makros with lots of  \doif ... \else ... \fi
and it is hard to surf through the code.

What else would be nice: auto-indentation ... marking all 
the code and let kwrite/kate do the job to indent.


Regards
Janis
___
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] space before and after headlines

2013-04-28 Thread Jan Heinen

I want to create a macro for headlines.
- before the headline there should be a big space
- after it a small space
- when  the headline is at the beginning of the page there 
shouls be no space before the headline.


A workaround could be this - although it's not very comfortable:


\starttext

{bf Headline 1}
\blank
text text text text text text text text text text text text 
text text text text text text text text text text text text 
text text text text text text text text text text text text 
text text .\par


\blank[2*big]
{bf Headline 2}
\blank
text text text text text text text text text text text text 
text text text text text text text text text text text text 
text text text text text text text text text text text text 
text text .\par


\blank[2*big]
{bf Headline 3}
\blank
text text text text text text text text text text text text 
text text text text text text text text text text text text 
text text text text text text text text text text text text 
text text .\par


\stoptext

Greetings
Jannis
___
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] space before and after headlines

2013-04-28 Thread Jan Heinen

It's working. I have put the example into the wiki.

What can be done to say: 26pt before the heading and 13pt 
after the heading instead of using \blank ?



 \setuphead
   [subject]
  [before={\blank[2*big]},
   after={\blank[big]},
   style=bold]

\starttext

\subject{Headline 1}
 \stoptext





___
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] space before and after headlines

2013-04-28 Thread Jan Heinen



 What’s wrong with the \blank command?


 \setuphead
   [subject]
  [before={\blank[2*big]},
   after={\blank[big]},


  before={\blank[26pt]},
  after={\blank[13pt]}



Nothing wrong - everithing in best order. I didn't know that 
it's possible to use sizes with \blank.

I put the information into the wiki.

Thanx
Jannis
___
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] calculating with dimension unit

2013-04-23 Thread Jan Heinen

Ok, I now put the \ctxlua into an other chapter:

http://wiki.contextgarden.net/Calculating_with_dimension_units

Can you say something to the missing points there? Wich 
meethod?, \the and Expanding


If you don't know how to edit the context-wiki, please write 
your information here in the mailinglist - then I will put 
it into the wiki.


Regards
Jannis
___
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] calculating with dimension unit

2013-04-22 Thread Jan Heinen

Hello,

thanks for the helpfull tipps. Only one wasn't working:

\defineexpandable\ColumnABii   {\ctxlua{context([==[\ColumnA 
+ \ColumnB]==])}}


ColumnABii: \ColumnABii

The result is:   ColumnABii: 30mm+ 40mm
And it should be ColumnABii: 70mm

And in the other cases I get back:  199.16928pt instead of 
70mm but this seems to be the same.


I think this calculating with dimension is not very well 
documented in the context-wiki.
Thus I would like to write a small article about 
Calculating with dimension units in the 
wiki.contextgarden.net to help others a bit.

Or is there already an article somewhere?

Regards
Jannis


___
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] calculating with dimension unit

2013-04-22 Thread Jan Heinen

Thank you all!!

My book from last year (15.000 lines text + context-code and 
1.500 lines macro-code  now was compiled without no further 
problems!


I only had to change all
\define\variable ...

to
\defineexpandable\variable ...


I think, now I understand a little bit more about ConTeXt 
and try again to give a little bit back to the community.

I have started a new article on the context-wiki:

http://wiki.contextgarden.net/Calculating_with_dimension_units

Hopefully the more sophisticated ConTeXter help a little bit 
to improve the article. Please have a look what is wrong and 
what I have forgotten (or don't know).


Regards
Janis
___
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] calculating with dimension unit

2013-04-21 Thread Jan Heinen
In a book I produced with ConTeXt last year, I did a lot of 
calculation to be able to change the layout dynamicaly.


With the actual version of ConTeXt I can't compile the book. 
I have tried a lot of things today ... without success.
I hope my minimal-example helps you to understand, what I 
want to do - and what I am doing wrong:



\starttext
\setupexternalfigures[location={local,global,default}]

\defineexpandable\ColumnA{30mm}
\defineexpandable\ColumnB{40mm}
\defineexpandable\ColumnABi{\dimexpr(\ColumnA + \ColumnB)}
\defineexpandable\ColumnABii   {\ctxlua{context(\ColumnA + 
\ColumnB)}}
\newdimen\ColumnABiii \ColumnABiii = \dimexpr(\ColumnA + 
\ColumnB)


A  \ColumnA% ok

B  \ColumnB% ok

% I sadly get only errors when I delete the comments:
%ColumnABi: \ColumnABi

%ColumnABii: \ColumnABii

%ColumnABiii: \ColumnABiii

%\externalfigure[cow][width=\ColumnABiii]

~
\page
\stoptext



___
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] ConText on webspace

2013-04-19 Thread Jan Heinen

Is it possible to instal and runl ConText on webspace?
Which requirements and limitations are needed?

Have a nice weekend ... in Germany sun is shining :-)
Regards
Janis
___
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] Kile for ConTeXt

2013-04-19 Thread Jan Heinen
Does anyone here uses Kile for ConTeXt? On 
contextgarden-wiki I read has native ConTeXt support as 
well. I installed Kile and as the only thing concerning 
ConTeXt II found


Build - Compile - ConTeXt

But no highlighting or autocompletion. Google gave no answer.
Do I have to install an additional aplugin?

Regards
Janis
___
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 on webspace

2013-04-19 Thread Jan Heinen

Is it possible to instal and runl ConText on webspace?
   Which requirements and limitations are needed?

 define webspace


I have webspace hosted at the german provider (1und1) where 
my homepage is running.

It contains php, perl, python, mysqld.

I have access via
- ssh
- ftp

It's NOT a managed server - there are lot's of other 
customers on the same server.


Is this enough for your answer or which else information do 
you need?


Regards
Janis

___
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] Again: LuaTeX error: invalid escape sequence near '\i'

2013-04-19 Thread Jan Heinen
An example which was working with ConText (version beginning 
2012) - and now I get an error:


\define\imagepath {/home/janis/images}
\starttext
  \externalfigure[\imagepath/test.jpg]
\stoptext

LuaTeX error [string \directlua ]:1: invalid escape 
sequence near '\i'



Without my parameter \imagepath there ist no problem.
And if I want to see the echo of the parameter with
\imagepath
I get /home/janis/images which I expect.

I need parameters very often. How can I use my parameter 
\imagepath in \externafigure?



Regards
Janis

___
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] Again: LuaTeX error: invalid escape sequence near '\i'

2013-04-19 Thread Jan Heinen

The following two commands seem to do the same:
\defineexpandable\...
\def\...

And this two also do the same:
\define\...
\unexpanded\def\...


\def is a low-level-command and shouldn't be used. Right?

Regards
Janis

___
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] Again: LuaTeX error: invalid escape sequence near '\i'

2013-04-19 Thread Jan Heinen

In last year Context this worked:
 \define\imagepath {/home/janis/images}
  \externalfigure[\imagepath/test.jpg]

Now this change is necesarry:
 \defineexpandble\imagepath {/home/janis/images}

Where do the change come from: Context, Tex or Luatex? Is 
there a genereal change which we have to take care off?


Last year I made a book with a lot of programming in Context 
and I would like to use the code for the next book.


Regards
Janis

___
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] [***SPAM***] Updating Context or Never change a running System?

2013-04-17 Thread Jan Heinen

Hello,

I did my last Context-Project 15 months ago - a small book. 
Now I want to write the next book. Do you suggest to update 
my Context-installation?


I have installed ConTeXt Standalone (Minimal?)

My versions are:

Contextversion: 2011.11.04 14:15
Contextversion -Number: 20004 14:15 MKIV
Textengine LuaTeX
Textengine-Number: 0.70.1

Which are the new versions?
Are there important changes in the new versions? Where can I 
find an actual changelog?


Regards
Janis
___
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] [***SPAM***] Updating Context or \Never change a running System\?

2013-04-17 Thread Jan Heinen


 I have installed ConTeXt Standalone (Minimal?)

 My versions are:

 Contextversion: 2011.11.04 14:15
 Contextversion -Number: 20004 14:15 MKIV
 Textengine LuaTeX
 Textengine-Number: 0.70.1
 old

The release notes here seem to be old: 
http://wiki.contextgarden.net/Release_Notes


What nice new things can I find in the new version?

Or is anywhere an actual changelog/release_note?

Regards
Janis
___
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] doublesided PDF - first and last page singlesided

2012-04-17 Thread Jan Heinen

Hello,

someone, who understood what I want to achieve?

http://www.imagebanana.com/view/shoayek5/onlinebook.jpg

Or more questions?

Regards
Janis


- Copy -
Re: [NTG-context] doublesided PDF - first and last page 
singlesided


Jan Heinen
Mon, 16 Apr 2012 04:29:20 -0700

Hello,

some were guessing, what I want to achieve.

I made a screenshot for you:

http://www.imagebanana.com/view/shoayek5/onlinebook.jpg


It ist the online-version of a printed book. For printing it 
was ok to have one bookpage on one sheet of paper. For the 
online-version I want to have two bookpages on one sheet of 
paper


but the coverpage should be alone on one sheet of paper.

The online-version is a PDF ... no html.

sheet of paper is of course only virtualy meant ... it is 
online


The difficulty is that there a bunch of (hyperlinked) 
cross-references in the book ... so people can use the pdf 
interactively.


Without this I could put the pages manualy together.

Hope that now you know what I want to do.
And I am hoping very much for a solution ...

Regards
Jannis

Regards
Jannis
--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist




___
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] doublesided PDF - first and last page singlesided

2012-04-16 Thread Jan Heinen

Hello,

some were guessing, what I want to achieve.

I made a screenshot for you:

http://www.imagebanana.com/view/shoayek5/onlinebook.jpg


It ist the online-version of a printed book. For printing it 
was ok to have one bookpage on one sheet of paper.
For the online-version I want to have two bookpages on one 
sheet of paper

but the coverpage should be alone on one sheet of paper.

The online-version is a PDF ... no html.
sheet of paper is of course only virtualy meant ... it is 
online


The difficulty is that there a bunch of (hyperlinked) 
cross-references in the book ... so people can use the pdf 
interactively.

Without this I could put the pages manualy together.

Hope that now you know what I want to do.
And I am hoping very much for a solution ...

Regards
Jannis
--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] doublesided PDF - first and last page singlesided

2012-04-15 Thread Jan Heinen

Hello, someone here on a sunday?

I want to have a PDF-screen-version of my booklet:
The book has 8 pages including the coverpages.

The result should look like this: (first and last page NOT 
doublesided)


1 first page of the pdf (coverpage)
2 3  second
4 5  third
6 7  fourth
8 fifth (coverpage)


With the following commands I get the wrong result:

\setuppapersize[A5][A4,landscape]% A5 wird auf A4 gedruckt
\setuparranging[2SIDE]

1 2  first page of the pdf
3 4  second
5 6  third
7 8  fourth


Have a nice weekend
Jannis
--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] doublesided PDF - first and last page singlesided

2012-04-15 Thread Jan Heinen
I was lucky to get a fast answer - but with your code I 
don't get the right result:


 -- start your code

\startmode[booklet]
\setuppapersize[A5][A4,landscape]
\setuparranging[2SIDE]
\stopmode
\starttext
First page
\startmode[booklet]
\null \page
\stopmode
etc.
\stoptext

Thomas

 -- stop

With your code I get:

1 2  first page of the pdf
3 4  second
5 6  third
7 8  fourth



But I want to get:

1 first page of the pdf (coverpage)
2 3  second
4 5  third
6 7  fourth
8 fifth (coverpage)


I know how to use with modes - but the answer must be an other.

Maybe I have to explain it more clearly:

on the first PDF-Page (A5) there should be only the 
cover-page (page 1)

\setuppapersize[A5][A5]

 \setuparranging[1SIDE]%- I don't know how to write it - nothing was 
working


On the second PDF-Page there should be page 2 and page 3
\setuppapersize[A5][A4,landscape]

 \setuparranging[2SIDE]


It must be a problem lot's of people have when they make a 
book with ConTeXt

and want to make a second PDF-version for the Internet.


Regards
Jannis
--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] Integration of the ConTeXt-Wiki and the ConTeXt-Mailinglist

2012-04-04 Thread Jan Heinen

Hello Mari,

 On Wed, Mar 28, 2012 at 15:33, Jan Heinen 
jahei...@gmx.de wrote:
  It's not perfekt jet - but it helps to get more 
information to each command

  and to integrate the wiki and the mailinglist.
  What do you think about this and could it be improved?

 I really like it!

 concerning the mailing list part - could it be possible 
to easily sort

 the results by date or even filter them?

 But in general this is already a great improvement, thank 
you!

 Mari


Thank you very much for your nice feedback!
And you are right - sorting the results from newest to 
oldest would be an improvement. And I just changed the code 
a littlebit - and now you will find everything in the 
mailinglist starting at the ConTeXt-commands in the Wiki. 
Try it: http://wiki.contextgarden.net/Category:Commands


With a little help of some ConTeXters more ... we can 
improve the ConTeXt-documentation much more.
At this point you can help to categorize some commands: 
http://wiki.contextgarden.net/Category:Commands


Regards
Jannis
--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] Integration of the ConTeXt-Wiki and the ConTeXt-Mailinglist

2012-03-28 Thread Jan Heinen

Hello,

in the wiki I have built links for every command to the 
archiv of the ConTeXt-Mailinglist: e.G. 
http://wiki.contextgarden.net/Command/pagereference

See at the bottom.

It's not perfekt jet - but it helps to get more information 
to each command and to integrate the wiki and the mailinglist.

What do you think about this and could it be improved?

Maybe we should give ConTeXt-beginners this hint when they 
ask questions in the mailinglist - what do you think?


Best wishes
Jannis
--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] Request to help categorizing commands on wiki

2012-03-21 Thread Jan Heinen


 Jan Heinen did some heaving wiki editing in order to 
achieve better

 categorization of different topics on the wiki.

 One particular part where your help would be welcome is a 
big number

 of different commands listed here:
http://wiki.contextgarden.net/Category:Commands
 It would be great to assign one or more categories to 
each command.


Mojca


I hope we get some help of all the people around here that 
use ConTeXt.
With organizing existing information we can improve the 
documentation of ConTeXt and help beginners and maybe also 
experts.


Woutld be nice if everyone who gets help from this 
mailinglist gives a little back to ConTeXt :-) This was my 
motivation to engage for the documentation.


You can count on me :-)

Regards
Jannis





--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] interactive pdf with rotated buttons don't work

2012-03-18 Thread Jan Heinen

Good morning :-)

I am still not able to rotate the buttons without loosing 
the hyperlinks; see code at the bottom.


And I have an extra question:
How can I make a linebreak after each button. I have tried 
\crlf and \par before every  \button

 ... it's not working :-(

Best wishes, Janis


-- copy

Hello,


I built an interactive PDF with some buttons. Without 
rotation everithing works.


But with rotation the hyperlinks are gone:



\definelayer [Kontaktdaten]
  [state=start]%

\setupbackgrounds [page]
  [ background=Kontaktdaten,
state=start]%

\setupinteraction[state=start]
\define\navmenue{%
  \setlayerframed [Kontaktdaten]
[hoffset=1cm,
voffset=3cm]
  [strut=no, offset=overlay,frame=off]
  {
 \rotate[rotation=90]{%
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Go Back}
  [PreviousJump]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Anfang}
  [FirstPage]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Ende}
  [LastPage]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {S. 6}
  [SeiteSechs]
  }
  }
}%

\starttext

\dorecurse{5}{\navmenue \input tufte \page}
\pagereference[SeiteSechs]
\dorecurse{5}{\navmenue \input tufte \page}

\stoptext



Regards
Jannis

--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] interactive pdf with rotated buttons don't work

2012-03-18 Thread Jan Heinen

Hello Wolfgang,

I like your solution and will take it.

For everyone who engages with this issue here is my own less 
elegant solution:



\definelayer [Kontaktdaten]
  [state=start]%
\setupbackgrounds [page]
  [ background=Kontaktdaten,
state=start]%
\setupinteraction[state=start]
\define\navmenue{%
  \setlayerframed [Kontaktdaten]
[hoffset=1cm,
voffset=1.5cm]
[align=right,strut=no, offset=overlay,frame=off]
{%
  \button  {\rotate[rotation=90]{\strut Go Back}} 
[PreviousJump]

  \par
  \button  {\rotate[rotation=90]{\strut Anfang}}
[FirstPage]

  \par
  \button  {\rotate[rotation=90]{\strut Ende}}  
[LastPage]

  \par
  \button  {\rotate[rotation=90]{\strut S. 6}}  
[SeiteSechs]

  \par
}
}%
\starttext
\dorecurse{5}{\navmenue \input tufte \page}
\pagereference[SeiteSechs]
\dorecurse{5}{\navmenue \input tufte \page}
\stoptext




-- copy

Can be done with less lines and the hyperlinks are on the correct position too:

\define\navmenue
  {\setlayerframed
 [Kontaktdaten]
 [x=1cm,y=3cm]
 [offset=overlay,frame=off]
 {\vbox\bgroup

\setupbutton[background=color,backgroundcolor=darkgray,color=white,framecolor=black,corner=round,rulethickness=2pt,orientation=90]
\button {Go Back} [PreviousJump]
\button {Anfang}  [FirstPage]
\button {Ende}[LastPage]
\button {S. 6}[SeiteSechs]
  \egroup}}

Wolfgang



--
Better organization and integration of all ConTeXT-information:
... http://wiki.contextgarden.net/Category:ConTeXt  
 All information arround ConTeXt
... http://wiki.contextgarden.net/Category:Commands  
Commands
...  !!! new: One-Click from every command in the wiki to 
the rich resources of the ConTeXt-mailinglist


___
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] Translate tooltip on button in pdf

2012-03-18 Thread Jan Heinen

Hello

how to change the tooltipps from english First page to  
german Erste Seite?


\setupinteraction[state=start]
\starttext
\button {\scale[height=2em] {\symbol[navigation 
1][nextpage]}}  [NextPage]

\page
\button {\scale[height=2em] {\symbol[navigation 
1][previouspage]}}  [PreviousPage]

\page
\stoptext


Regards
Jannis

--
Better organization and integration of all ConTeXT-information:

http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt


http://wiki.contextgarden.net/Category:Commands  
Commands


!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] Integration of all the information around ConTeXt

2012-03-17 Thread Jan Heinen

Nearly half of the work is done now.

I 've grouped lots of the ConTeXt-commands into categories 
(subcategories):

http://wiki.contextgarden.net/Category:Commands

There you also find commands which are not grouped in 
subcategories yet.

Do you have ideas for more subcategories?

If you don't know how to generate them in the Wiki,
write the subcategories you suggest here ... and I gladly do 
the necessary work in the wiki.


Regards
Jannis
___
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] interactive pdf with rotated buttons don't work

2012-03-17 Thread Jan Heinen

Hello,

I built an interactive PDF with some buttons. Without 
rotation everithing works.

But with rotation the hyperlinks are gone:



\definelayer [Kontaktdaten]
  [state=start]%

\setupbackgrounds [page]
  [ background=Kontaktdaten,
state=start]%

\setupinteraction[state=start]
\define\navmenue{%
  \setlayerframed [Kontaktdaten]
[hoffset=1cm,
voffset=3cm]
  [strut=no, offset=overlay,frame=off]
  {
 \rotate[rotation=90]{%
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Go Back}
  [PreviousJump]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Anfang}
  [FirstPage]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {Ende}
  [LastPage]
\button[
  background=color,
  backgroundcolor=darkgray,
  color=white,
  framecolor=black,
  framecorner=round,
  rulethickness=2pt]
  {S. 6}
  [SeiteSechs]
  }
  }
}%

\starttext

\dorecurse{5}{\navmenue \input tufte \page}
\pagereference[SeiteSechs]
\dorecurse{5}{\navmenue \input tufte \page}

\stoptext



Regards
Jannis
--
Better organization and integration of all ConTeXT-information:
http://wiki.contextgarden.net/Category:ConTeXt   
All information arround ConTeXt
http://wiki.contextgarden.net/Category:Commands  
Commands
!!! new: One-Click from every command in the wiki to the 
rich resources of the ConTeXt-mailinglist


___
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] Integration of all the information around ConTeXt

2012-03-16 Thread Jan Heinen

Hello,

with the help of ConTeXt and the ConTeXt-Mailinglist I 
successfully have generated a book which will be printed 
next week :-)

Thankl you - everyone!

And now I would like to give something back to ConTeXt :-)

There is a lot of information around ConTeXt: Material of 
Hans Hagen, this very dynamic Mailinglist/Forum, the 
command-reference-list of Wolfgang Schuster  and the 
Contextgarden-Wiki.


I think the best what I can do for ConTeXt is helping to 
structure, organize and integrating the huge amount of 
existing information.

And the wiki ist a very good place to do al this work.

Since several years I am running an own wiki with mediawiki.
After informing Hans, Taco and Mojca Miklavec, I no have 
started, to rename all the commands from reference/en/... to 
command/...
The .htaccess takes care, that all the old names will be 
forwarded to the new names.


Then I have build a startting-category: ConTeXt and every 
subcategory is a branch of it. So we have a tree with all 
the wiki-information starting at ConTeXt. You can find 
this startingpoint on http://www.contextgarden.net on the 
right side: Categories.
I have started to organize the sub-categories ... but 
everyone who likes ConTeXt is invited to improve the wiki.


A very good help would be:
All the commands of context (more than 500) are in one huge 
category:commands
For the users it would be usefull to build subcategories for 
the commands.


1. login (or first register on contextgarden.net)
2. Go to a command, e.g. command/about: 
http://wiki.contextgarden.net/Command/about

3. Click on edit (top of page)
4. go to the bottom of the source-code
5. add to
[[category:Commands]]
[[category:xxx]] xxx = new name or existing name
6. save the changes
7. now you can see the category at the bottom of the page.
8. if it is red - click on it
9. then write
[[category:commands]]
to link it to the tree,

I hope lot's of you help at least a little bit ... it's fun 
:-) And it's for ConTeXt.


Regards
Jannis

___
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] Integration of all the information around ConTeXt

2012-03-16 Thread Jan Heinen

At step 5 (see below) please delete
[[category:Commands]]

But only when you write a new category.


And I just got the proof for my book ... it looks great!

Regards
Jannis


- Copy -

Hello,


with the help of ConTeXt and the ConTeXt-Mailinglist I 
successfully have generated a book which will be printed 
next week :-)


Thankl you - everyone!

And now I would like to give something back to ConTeXt :-)


There is a lot of information around ConTeXt: Material of 
Hans Hagen, this very dynamic Mailinglist/Forum, the 
command-reference-list of Wolfgang Schuster and the 
Contextgarden-Wiki. I think the best what I can do for 
ConTeXt is helping to structure, organize and integrating 
the huge amount of existing information.


And the wiki ist a very good place to do al this work.

Since several years I am running an own wiki with mediawiki.

After informing Hans, Taco and Mojca Miklavec, I no have 
started, to rename all the commands from reference/en/... to 
command/... The .htaccess takes care, that all the old names 
will be forwarded to the new names. Then I have build a 
startting-category: ConTeXt and every subcategory is a 
branch of it. So we have a tree with all the 
wiki-information starting at ConTeXt. You can find this 
startingpoint on http://www.contextgarden.net on the right 
side: Categories. I have started to organize the 
sub-categories ... but everyone who likes ConTeXt is invited 
to improve the wiki.


A very good help would be:

All the commands of context (more than 500) are in one huge 
category:commands For the users it would be usefull to build 
subcategories for the commands.


1. login (or first register on contextgarden.net)

2. Go to a command, e.g. command/about: 
http://wiki.contextgarden.net/Command/about


3. Click on edit (top of page)
4. go to the bottom of the source-code
5. add to
[[category:Commands]]
[[category:xxx]] xxx = new name or existing name
6. save the changes
7. now you can see the category at the bottom of the page.
8. if it is red - click on it
9. then write
[[category:commands]]
to link it to the tree,


I hope lot's of you help at least a little bit ... it's fun 
:-) And it's for ConTeXt.


Regards
Jannis




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

2012-02-25 Thread Jan Heinen
I have tried every combination of Luigis solution and get 
Black text do not overprint (german: schwarzer Text wird 
nicht überdruckt) for every page of the example for the 
following code in the Preflight of Acrobat:
Here is an online version of the Preflight: 
http://www.gronenberg.de/werkzeuge/pdf-online-check/upload.html


Here my code:



%%% overprint.tex
\nopdfcompression
\setupcolors[state=start,rgb=no,cmyk=yes,overprint=yes]
%% to be sure
\definecolor[CYAN][c=1.0,m=0,y=0,k=0]
\definecolor[MAGENTA][c=0,m=1,y=0,k=0]
\definecolor[YELLOW][c=0,m=0,y=1,k=0]
\starttext

\framed[background=color,backgroundcolor=CYAN,
frame=off,offset=.25cm,strut=no]{%BEGIN
\startcolorintent[overprint]

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint \\ 
\startcolorintent[knockout]{knockout}\stopcolorintent}%


\stopcolorintent

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,align={lohi,middle},
frame=off,width=2.5cm,height=2cm]{knockout\\
\startcolorintent[overprint]{overprint}\stopcolorintent}%
}%END


\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint \\ 
\startcolorintent[knockout]{knockout}\stopcolorintent}%


\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint}%

\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{\startcolorintent[knockout]{knockout}\stopcolorintent}%

\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,align={lohi,middle},
frame=off,width=2.5cm,height=2cm]{knockout\\
\startcolorintent[overprint]{overprint}\stopcolorintent}%

\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,align={lohi,middle},
frame=off,width=2.5cm,height=2cm]{knockout}%

\page

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,align={lohi,middle},
frame=off,width=2.5cm,height=2cm]{\startcolorintent[overprint]{overprint}\stopcolorintent}%

\page

\framed[background=color,backgroundcolor=CYAN,
frame=off,offset=.25cm,strut=no]{%BEGIN
\startcolorintent[overprint]

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint \\ 
\startcolorintent[knockout]{knockout}\stopcolorintent}%


\stopcolorintent
}

\page

\framed[background=color,backgroundcolor=CYAN,
frame=off,offset=.25cm,strut=no]{%BEGIN
\startcolorintent[overprint]

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{overprint}%

\stopcolorintent
}

\framed[background=color,backgroundcolor=CYAN,
frame=off,offset=.25cm,strut=no]{%BEGIN
\startcolorintent[overprint]

\framed[background=color,backgroundcolor=MAGENTA,
foregroundcolor=YELLOW,
align={lohi,middle},
frame=off,width=2.5cm,height=2cm]
{\startcolorintent[knockout]{knockout}\stopcolorintent}%

\stopcolorintent
}


\stoptext





Regards
Jannis

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

2012-02-24 Thread Jan Heinen
I got an answer from my printer to the example I have shown 
in this thread:


 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[overprint]2 Overprinted or 
not?\stopcolorintent}


His answer in german:
Die Texte, welche auf Kasten 2  stehen, sind innerhalb 
Ihrer erzeugten Datei zwar alle überdruckend eingestellt, 
visuell allerdings aussparend.


My translation:
The text on box 2 is formated as overprinted but visualy 
spared out.


What the hell is going on?

Regards
Jannis


On Wed, Feb 22, 2012 at 11:59 PM, Jan Heinen 
jahei...@gmx.de wrote:
 I again must come to this point. At the end of this week 
I want to give my

 book (pdf) to the printer to print.
 But he says: Your texts are not overprinted over colored 
areas.


 What do I have to do?



 The company who prints my books says that my text
 is not overprinted over the framed boxes.
 They do a preflight with Adobe.

 I think, I made no mistake - what do you think?
 I hope it is not a missing  \par?


 \setupcolors[state=start,rgb=no,cmyk=yes]
 \definecolor[myc] [c=.40, m=.10, y=.50, k=0]
 \starttext
 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]
  {1 Overprinted or not?}

 \blank[big]

 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[overprint]2 Overprinted or 
not?\stopcolorintent}


 \blank[big]

 \framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
 ]

 {\startcolorintent[knockout]3 Overprinted or 
not?\stopcolorintent}


 \stoptext


 Regards
 Jannis



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


 Have you seen if this is ok ?
 http://www.pragma-ade.com/general/magazines/mag-0006.pdf
 (Use AdobeReader under linux with overprint enable)

___
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] Preparing the print: ICC-Profiles, Fogra, (in german untranslatable)

2012-02-24 Thread Jan Heinen

My book is ready and I want to print it next week.

1. The printer told me to set up my PDF with the following 
values:

PDF/X-1a:2003,
ISO Coated v2 (ECI)

2. And I did:

\setupbackend
 [format=PDF/X-1a:2003,
  intent={ISO Coated v2 (ECI)}]

3. Then I send a test-PDF to my printer and got the 
following answer:


4. The printers answer in german:
Die Ausgabebedingung ist mit FOGRA 39 hinterlegt. Dadurch 
erscheint eine falsche Farbvoransicht. FOGRA 39 sind nur 
Charakterisierungsdaten zur Erzeugung von ICC-Profilen für 
die entsprechenden Ausgabebedingungen. Wenn die Bilddaten in 
den ISO Coated v2 (ECI)  Farbraum separiert wurden, sollte 
dieser am Besten hier als Name hinterlegt werden. Die 
Kennung der Ausgabebedingung wäre Fogra 39.


I failed trying to translate this answer into english. I 
hope there is someone here who understands the german answer.


Regards
Jannis

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

2012-02-22 Thread Jan Heinen
I again must come to this point. At the end of this week I 
want to give my book (pdf) to the printer to print.

But he says: Your texts are not overprinted over colored areas.

What do I have to do?



The company who prints my books says that my text
is not overprinted over the framed boxes.
They do a preflight with Adobe.

I think, I made no mistake - what do you think?
I hope it is not a missing  \par?


\setupcolors[state=start,rgb=no,cmyk=yes]
\definecolor[myc] [c=.40, m=.10, y=.50, k=0]
\starttext
\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]
 {1 Overprinted or not?}

\blank[big]

\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]

{\startcolorintent[overprint]2 Overprinted or 
not?\stopcolorintent}


\blank[big]

\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]

{\startcolorintent[knockout]3 Overprinted or 
not?\stopcolorintent}


\stoptext


Regards
Jannis



___
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] Layout: odd, even and newLayout

2012-02-19 Thread Jan Heinen

Hi,

no answer to my question?
To easy or to difficult? Please see above.

Isn't it possible to define individual layouts when using 
the default layouts like odd and even?


Regards
Jannis

= Copy

I first want to use layouts for odd and even pages
and then I want to use a newLayout
but it does not work:


\setuppapersize[A5][A4]
\setuppagenumbering[alternative=doublesided,  location=inleft]
\setuplayout [marking=on, location=middle]
\showframe

\definelayout [odd][topspace=5cm,backspace=0cm]
\definelayout [even][topspace=0cm,backspace=0cm]
\definelayout [newLayout] [topspace=2cm,backspace=10cm]

\starttext
\dorecurse{10}{\input tufte}
\page

\setuplayout [newLayout] % Now backspace must be 10cm, but 
it is still 0cm


\dorecurse{10}{\input tufte}
\page
\stoptext



Regards
Jannis


___
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] Layout: odd, even and newLayout

2012-02-16 Thread Jan Heinen

I first want to use layouts for odd and even pages
and then I want to use a newLayout
but it does not work:


\setuppapersize[A5][A4]
\setuppagenumbering[alternative=doublesided,  location=inleft]
\setuplayout [marking=on, location=middle]
\showframe

\definelayout [odd][topspace=5cm,backspace=0cm]
\definelayout [even][topspace=0cm,backspace=0cm]
\definelayout [newLayout] [topspace=2cm,backspace=10cm]

\starttext
\dorecurse{10}{\input tufte}
\page
\setuplayout [newLayout]   % Now backspace must be 10cm, 
but it is still 0cm

\dorecurse{10}{\input tufte}
\page
\stoptext



Regards
Jannis

___
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] A5 on A4 - top/left-corner of A5 should be 0,0

2012-02-05 Thread Jan Heinen

Hello I have put an A5-page on A4-paper.
And then I put a cow on to the page ... but it should be on 
the top/left-corner of the A5-page instead of the A4-page:
I know, one posibility would be to use x=...  and y=...  in 
\definelayer.
Isn't there an easier way to refer to the A5 instead to the 
A4 so tha x=0mm and y=0mm ist the top/left-corner of the A5?



\setuppapersize [A5][A4]
\setuplayout[marking=on, location=middle]

\definelayer[newlayer]
[width=\paperwidth, height=\paperheight]
\setupbackgrounds [paper] [background=newlayer,state=start ]%

\starttext

\setlayerframed [newlayer]
   [width=60mm,height=60mm,hoffset=0mm,voffset=0mm]
   [strut=no,offset=overlay,frame=on]
   {\externalfigure[cow][frame=on,width=40mm,height=40mm]}%

Hello world.
\stoptext


Regards
Jannis

___
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] Stop hyphenation and have normal linebreaks

2012-01-22 Thread Jan Heinen

Hello,

I read 300 messages in the mailinglist but didn't find the 
solution:


How to stop hyphenation and have normal linebreaks?


\language[de]
\starttext
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft\par

\blank
\blank

{\bf This is not hyphenated - the problem is, there are no 
linebreaks and the text is written till the end of the page:}

\blank

{\nohyphens Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft\par}


\page
\stoptext


Regards
Jannis

___
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] Stop hyphenation and have normal linebreaks

2012-01-22 Thread Jan Heinen

I was reading another 200 emails and found the solution myself:

= \setupalign[nothyphenated,right,broad]

This example is working:


\language[de]
\starttext
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft\par

\blank

{\setupalign[nothyphenated,right,broad] 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft 
Donaudampfschifffahrtsgesellschaft\par}

\page
\stoptext



Regards
Jannis

___
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] bold is not working (simplefonts)

2012-01-18 Thread Jan Heinen

Hello,

I want to get bold text - without simplefonts it is 
working - with simplefonts it does not work.

What is wrong and what do I have to do?

My example:

\usemodule[simplefonts]
\setmainfont[Allerlight]
\starttext
This is not bold! {\bf Is this bold?} This is not bold!
\stoptext


Regards
Jannis

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

2012-01-07 Thread Jan Heinen

Here the results of my question:

I asked my print-service, if the pdf I generated with the 
code (look at the end of this email), is ok.

The text in the second frame should be overprinted.

The answer of the printer:

in the preflight he can see the overprinting,
in the print-preview he can't.
He was astonished - because he never had the difference 
between print-preview and preflight before.

He is using Adobe Acrobat 10.

Hope this information helps others to be cautious -
an maybe someone can tell what's to do.

Regards
Jannis




 \setupcolors[state=start,rgb=no,cmyk=yes]
 \definecolor[myc] [c=.40, m=.10, y=.50, k=0]
 \starttext
 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {1 Overprinted or not?}

 \blank[big]

 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {\startcolorintent[overprint]2 Overprinted or not?\stopcolorintent}

 \blank[big]

 \framed[%
   width=80mm,height=50mm,
   background=color,
   backgroundcolor=myc,
 ]
  {\startcolorintent[knockout]3 Overprinted or not?\stopcolorintent}




 \stoptext



Regards
Jannis

___
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] Not wanted hidden spaces when you compress fonts

2012-01-06 Thread Jan Heinen

Hello,

when I turn off the compression [extend=0.8]  - [extend=1] 
the problems are gone :-) ... the compression unfourtunately 
also :-(
What do I have to configure to get the compression without 
spaces? :-)


Regards
Jannis

= copy
Hello,


if I compress a font, there are suddenly hidden spaces 
between words. You can't see the spaces in the PDF, but when 
you copy the text from the PDF to an editor you can see the 
spaces. And when you search for a word (with hidden spaces) 
in the PDF, the word can't be found.


This is the result when you copy the text from the PDF into 
an editor: The quick brow n fox jum ps over the lazy dog.


There is a space in brow n and one in jum ps.
When you search for brown in the PDF you get no result.

Here is an example:


\definefontfeature[cond][default][extend=0.8]
\usemodule[simplefonts]
\setmainfont[Allerlight][features=cond]

\starttext
The quick brown fox jumps over the lazy dog.
\stoptext


How to get rid of this hidden spaces?

Regards
Jannis
___
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] Overprinting

2012-01-06 Thread Jan Heinen

The company who prints my books says that my text
is not overprinted over the framed boxes.
They do a preflight with Adobe.

I think, I made no mistake - what do you think?
I hope it is not a missing  \par?


\setupcolors[state=start,rgb=no,cmyk=yes]
\definecolor[myc] [c=.40, m=.10, y=.50, k=0]
\starttext
\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]
 {1 Overprinted or not?}

\blank[big]

\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]
 {\startcolorintent[overprint]2 Overprinted or 
not?\stopcolorintent}


\blank[big]

\framed[%
  width=80mm,height=50mm,
  background=color,
  backgroundcolor=myc,
]
 {\startcolorintent[knockout]3 Overprinted or 
not?\stopcolorintent}


\stoptext


Regards
Jannis

___
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] CMYK and Linux

2012-01-06 Thread Jan Heinen
I am working with Linux and it seems to be a littlebit 
difficult to test if a resulting PDF from Context is cmyk (I 
don't have Adobe).


With the frontend display from Imagemagick I get the 
following information about the pdf:

Type=PaplatteMatte
Colorspace=RGB
Debth=16/8-bit

Hasn't the PDF to be Colorspace=CMYK?
Here is what I did:


\setupcolors[state=start]
\definecolor[myc] [c=.30, m=.60, y=.60, k=0]
\starttext
{\color[myc] Only some words}
\page
\stoptext


Ho can I say to ConText: This PDF has to be CMYK?

Regards
Jannis

___
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] Not wanted hidden spaces when you compress fonts

2012-01-04 Thread Jan Heinen

Hello,

if I compress a font, there are suddenly hidden spaces 
between words.
You can't see the spaces in the PDF, but when you copy the 
text from the PDF to an editor you can see the spaces.
And when you search for a word (with hidden spaces) in the 
PDF, the word can't be found.


This is the result when you copy the text from the PDF into 
an editor: The quick brow n fox jum ps over the lazy dog.

There is a space in brow n and one in jum ps.
When you search for brown in the PDF you get no result.

Here is an example:


\definefontfeature[cond][default][extend=0.8]
\usemodule[simplefonts]
\setmainfont[Allerlight][features=cond]

\starttext
The quick brown fox jumps over the lazy dog.
\stoptext


How to get rid of this hidden spaces?

Regards
Jannis

___
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] Pagereferences to more than one page

2012-01-02 Thread Jan Heinen

Though I searched a lot for the question in the bottom,
- I could not find a parameter for \at which solves my problem
- I could not find any other command which helps me

Is this a limitation of ConText? I can't imagin that I am 
the only one and first who wants to reference to more than 
one page.


Regards, Jannis

= Copy
I want to reference to more than one page. In the exampe 
above only page 2 is referenced - how to get 2,4 ?


\starttext
You can find red vehicles on \at{page:}[red]


Here I want to see: You can find red vehicles on page 2,4 
(only page 2 is wrong)


\page

\pagereference[red]Here is a red car.
\page

\pagereference[green]Here is a green car.
\page

\pagereference[red]Here is a red bus.
\page

\pagereference[green]Here is a green car.
\page

\stoptext




___
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] Pagereferences to more than one page

2012-01-01 Thread Jan Heinen

Happy New Year!

I want to reference to more than one page. In the exampe 
above only page 2 is referenced - how to get 2,4 ?



\starttext
You can find red vehicles on \at{page:}[red]

Here I want to see: You can find red vehicles on page 2,4 
(only page 2 is wrong)

\page

\pagereference[red]Here is a red car.
\page

\pagereference[green]Here is a green car.
\page

\pagereference[red]Here is a red bus.
\page

\pagereference[green]Here is a green car.
\page

\stoptext



Regards
Jannis

___
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] Center (horizontal + vertical) an image in \setframed

2011-12-31 Thread Jan Heinen

Hello

I want to center (horizontal and vertical) an image in a frame.
1. What Do I have to add?

\setlayerframed [Kontaktdaten]
  [
width=120mm,
height=120mm,
hoffset=50mm,
voffset=50mm
  ]
  [strut=no,offset=overlay,frame=on]
  {\externalfigure[cow][width=100mm,height=100mm]}%



2. This is a complete example. I used a second \setframed to 
show the area in which the cow should be centered and middled:




\definelayer[Kontaktdaten]
[x=0mm, y=0mm,
width=\paperwidth, height=\paperheight]
\setupbackgrounds [paper]
  [
background=Kontaktdaten,
state=start
  ]%
\starttext
\setlayerframed [Kontaktdaten]
  [
width=120mm,
height=120mm,
hoffset=50mm,
voffset=50mm
  ]
  [strut=no,offset=overlay,frame=on]
  {\framed [width=120mm, height=120mm]{~}}%

\setlayerframed [Kontaktdaten]
  [
width=120mm,
height=120mm,
hoffset=50mm,
voffset=50mm
  ]
  [strut=no,offset=overlay,frame=on]
  {\externalfigure[cow][width=100mm,height=100mm]}%

test
\page
\stoptext



I wish You a Happy New Year
Jannis

___
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] Center (horizontal + vertical) an image in \setframed

2011-12-31 Thread Jan Heinen

Dear luigi,

 You have missed a '}'...

I didn't forget the brace. In the eMail I sent to the 
mailinglist there was a

leftbrace tilde rightbrace rightbrace

tilde rightbrace were eaten by the internet :-(


Thanxs for the solution with hss and vss
Jannis

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

2011-12-30 Thread Jan Heinen


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

2011-12-29 Thread Jan Heinen

I found another way to compress PDFs: The ConText-command

\pdfcompresslevel=9

qpdf and ghostwriter also helped.

Thanx
Jannis
___
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] Huge PDFs

2011-12-29 Thread Jan Heinen

Hello,

lots of my images are huge 200x250mm. I reduce their size with:
\externalfigure[cow][width=20mm, heigth=25mm]

After generating the PDF, the pdf is very huge.

1. Can't Context put the reduced image into the PDF?
2. How can I generate one PDF version for printing (300dpi) 
and one for the screen (72dpi)?


I am using Context mk-IV.

Regards
Jannis

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

2011-12-29 Thread Jan Heinen

/   pdf -   pdftops -ps -ghostscript -pdf

//   seems to be more robust and gives better results
//   -- 
//   luigi

/
I will give it a try:
Can you tell me the commands with all the parameters I need ?


I have tried the following:

#!/bin/sh
suffix=_opt.pdf
pdftops -paper match -level3 $1.pdf tmp.ps
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook 
-dColorConversionStrategy=/LeaveColorUnchanged -dBATCH -dNOPAUSE 
-sOutputFile=$1.pdf$suffix tmp.ps
rm tmp.ps


But in some cases the PDF-files got bigger instead of smaller.


Regards
Jannis


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

2011-12-29 Thread Jan Heinen

 pdf -  pdftops -ps -ghostscript -pdf
 seems to be more robust and gives better results
 -- 
 luigi


I will give it a try:
Can you tell me the commands with all the parameters I need ?

Regards
Jannis

___
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] Whitespacing and Interlinespacing for \startitemize ... \stopitemize

2011-12-29 Thread Jan Heinen

Hello two questions for \startitemize

(1) Start ... Stop for interlinespacing

How can I declare some spacing only for an itemization: 
\setupinterlinespace [0.4em]{ ... } does not work:



\starttext

\setupinterlinespace [0.4em]{
\startitemize
\item aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa
\item  bbb bbb 
bbb bbb bbb 
bbb bbb bbb 
bbb bbb bbb
\item ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc

\stopitemize
}

\stoptext



(2) How to define whitespacing?


\starttext

At the first itemization there should be no extra whitespace 
between the items. Whitespace and interlinespace should be 
the same: 0.4em. What can I do against the whitespace?


\setupwhitespace[0.4em]
\setupinterlinespace [0.4em]
\startitemize
\item aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa
\item  bbb bbb 
bbb bbb bbb 
bbb bbb bbb 
bbb bbb bbb
\item ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc

\stopitemize

\blank[3*big]

And here I want to have the default white- and 
interlinespace again:


\startitemize
\item aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa aaa 
aaa aaa \par
\item  bbb bbb 
bbb bbb bbb 
bbb bbb bbb 
bbb bbb bbb\par
\item ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc ccc 
ccc ccc \par

\stopitemize

\stoptext


Regards
Jannis

___
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] Interlinespace in layers

2011-12-04 Thread Jan Heinen

Hello,

I am struggling with interlinespace and layers. With the 
help of this mailinglist I managed to use layers and to 
format the text in the layers. There is only one error I 
can't get rid of:
before and after the first line of my text in a layer there 
ist a bigger space. In all the other lines of the text the 
interlinespace is ok.


You can see the result here:
http://www.imagebanana.com/view/gvv2twwv/paragraphinlayersetupinterlinespace.png

And this is my soucecode:


\usemodule[simplefonts]
\setmainfont[latinmodernsans]
\definefont[FontKlein][Serif  at  8pt]

\definelayer [Kontaktdaten]
  [
x=0mm,
y=0mm,
width=\paperwidth,
height=\paperheight,
state=start
  ]% size is ignored!

\setupbackgrounds [paper]
  [
background=Kontaktdaten,
state=start
  ]%

\starttext
\setlayerframed [Kontaktdaten]
  [
width=80mm,
height=180mm,
hoffset=50mm,
voffset=50mm,
frame=on,
align=right]
{\FontKlein\setupinterlinespace[8pt]Ich bin 
Blindtext. Von Geburt an. Es hat lange gedauert, bis ich 
begriffen habe, was es bedeutet, ein blinder Text zu sein: 
Man macht keinen Sinn. Man wirkt hier und da aus dem 
Zusammenhang gerissen. Oft wird man gar nicht erst gelesen.\par
Aber bin ich deshalb ein schlechter Text? Ich weiss, dass 
ich nie die Chance haben werde, im Stern zu erscheinen.\par
Aber bin ich darum weniger wichtig? Ich bin blind! Aber ich 
bin gerne Text. Und sollten Sie mich jetzt tatsächlich zu 
Ende lesen, dann habe ich etwas geschafft, was den meisten 
normalen Texten nicht gelingt.Ich bin Blindtext. Von 
Geburt an. Es hat lange gedauert, bis ich begriffen habe, 
was es bedeutet, ein blinder Text zu sein: Man macht keinen 
Sinn. Man wirkt hier und da aus dem Zusammenhang gerissen. 
Oft wird man gar nicht erst gelesen.\par
Aber bin ich deshalb ein schlechter Text? Ich weiss, dass 
ich nie die Chance haben werde, im Stern zu erscheinen.\par
Aber bin ich darum weniger wichtig? Ich bin blind! Aber ich 
bin gerne Text. Und sollten Sie mich jetzt tatsächlich zu 
Ende lesen, dann habe ich etwas geschafft,

was den meisten normalen Texten nicht gelingt.\par}
~
\page
\stoptext


Though I can't imagine, what's wrong - I hope the solution 
is easy.


Regards
Jannis

___
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] Interlinespace in layers

2011-12-04 Thread Jan Heinen

I solved the problem myself:

First I used \showstruts to se struts - and only before and 
after the first line there were struts.


Then I added the following argument into the \setlayerframed:
   strut=no

\setlayerframed [Kontaktdaten]
  [
width=80mm,
height=180mm,
hoffset=50mm,
voffset=50mm,
frame=on,
align=right,
strut=no]
{\FontKlein\setupinterlinespace[8pt] Ich bin 
Blindtext ...}



I don't understand this problem with the strut but I solved 
it :-)


Regards
Jannis

___
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] Problems with linespacing

2011-11-05 Thread Jan Heinen
As a newby I am already able to do lot's of nice things with 
ConTeXt -

but I am struggling with some basics: fonts and linespacing.

Ok ... I have to learn more than I thought :-)

1. Where can I find the typescript for aller? Or do I have 
to write my own typescripts?


2. As a second font I am using Linux-libertine ... is there 
a typescript for this font anywhere too?


Regards
Jannis

___
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] Problems with linespacing

2011-11-05 Thread Jan Heinen

Excuse me Wolfgang ...
your typescript type-aller.mkii and type-aller.mkiv was 
already on my computer.


I ran:
first-setup.sh --modules=t-typescripts

And then I compiled your code with: context test.tex

\starttext
\start 
\setupalign[right,broad]\definedfont[file:allerlt*default at

36pt]\setupinterlinespace
Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis 
ich begriffen
habe, was es bedeutet, ein blinder Text zu wer wer wer wer 
wer wer wer wer wer
wer wer keinen Sinn. Man wirkt hier und da aus dem 
Zusammenhang gerissen. Oft

wird man gar nicht erst gelesen.

Aber bin ich deshalb ein schlechter Text? Ich weiss, dass 
ich nie die Chance

haben werde, im Stern zu erscheinen.
\stop
\stoptext


The result: instead of the font aller the default-font (and 
fontsize) is used:


The messages I got while compiling your example, you can 
find at the bottom of this post.


Regards
Jannis


Janis@Heinen:~/Buero/ConText/Uebungen/test$ context x.tex

mtx-context | run 1: luatex 
--fmt=/home/joerg/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en 
--lua=/home/joerg/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui 
--backend=pdf ./x.tex \stoptext

This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)
 \write18 enabled.
(x.tex

ConTeXt  ver: 2011.11.04 14:15 MKIV  fmt: 2011.11.5  int: 
english/english


system  cont-new.mkiv loaded
(/home/joerg/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system  beware: some patches loaded from cont-new.mkiv
)
system  x.top loaded
(x.top)
fonts  latin modern fonts are not preloaded
languages  language en is active
{/home/joerg/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts  preloading latin modern fonts (second stage)
(/home/joerg/context/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(/home/joerg/context/tex/texmf-context/tex/context/base/type-otf.mkiv)

files  readfile  asked name: 'loc', not found
{/home/joerg/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/joerg/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts  virtual math  unable to resolve name mapsfromchar
fonts  fallback modern rm 12pt is loaded
fonts  defining  font with asked name 'allerlt' is not 
found using lookup 'file'

fonts  defining  unknown font allerlt, loading aborted
fonts  defining  unable to define allerlt as 
\**thedefinedfont**
backend  xmp  using file 
'/home/joerg/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'

pages  flushing realpage 1, userpage 1, subpage 1
 )/home/joerg/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats  used config file  - 
selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  used cache path   - 
/home/joerg/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats  resource resolver - loadtime 0.007 
seconds, 0 scans with scantime 0.000 seconds, 0 shared 
scans, 47 found files, scanned paths:
mkiv lua stats  stored bytecode data  - 302 modules, 63 
tables, 365 chunks
mkiv lua stats  cleaned up reserved nodes - 39 nodes, 9 
lists of 427
mkiv lua stats  node memory usage - 2 glue, 2 
penalty, 9 attribute, 27 glue_spec, 3 attribute_list
mkiv lua stats  node list callback tasks  - 6 unique task 
lists, 5 instances (re)created, 2440 calls
mkiv lua stats  used backend  - pdf (backend 
for directly generating pdf output)

mkiv lua stats  loaded patterns   - en::2
mkiv lua stats  callbacks - 2587 direct, 
3036 indirect, 5623 total
mkiv lua stats  randomizer- resumed with 
value 0.95138319626049
mkiv lua stats  lxml preparation time - 0.000 seconds, 
0 nodes, 15 lpath calls, 0 cached calls

mkiv lua stats  result saved in file  - x.pdf
mkiv lua stats  loaded fonts  - 33 files: 
stmary10.afm lmmono12-regular.otf lmmono8-regular.otf 
lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf 
lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf 
lmroman9-regular.otf lmsans12-regular.otf 
lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm 
eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm 
msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm 
lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm 
rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm

mkiv lua stats  fonts load time   - 0.244 seconds
mkiv lua stats  luatex banner - this is luatex, 
version beta-0.70.1-2011051923 (rev 4277)

mkiv lua stats  control sequences - 31309 of 165536
mkiv lua stats  current memory usage  - 31 MB (ctx: 31 MB)
mkiv lua stats  runtime   - 0.765 seconds, 
1 processed pages, 1 shipped pages, 1.307 pages/second



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

maillist : ntg-context@ntg.nl / 

Re: [NTG-context] Problems with linespacing - typescript

2011-11-05 Thread Jan Heinen




 Where do you got the font files from, I checked the version from fontsquirrel
 [1]
 and dalton maag [2] and saw that both use different file names and in my
 ypescripts I used the names from fontsquirrel.


You are right - my aller und my libertine were from other 
website with diferences in the naming.

Now I have them from font-squirrel and cpan.

\setupbodyfont[aller] is now working.


But your example above for the typescript does not work:


 \start \setupalign[right,broad]\definedfont[file:allerlt*default at 
36pt]\setupinterlinespace
 Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis ich begriffen
 habe, was es bedeutet, ein blinder Text zu wer wer wer wer wer wer wer wer wer
 wer wer keinen Sinn. Man wirkt hier und da aus dem Zusammenhang gerissen. Oft
 wird man gar nicht erst gelesen.

 Aber bin ich deshalb ein schlechter Text? Ich weiss, dass ich nie die Chance
 haben werde, im Stern zu erscheinen.
 \stop
 \stoptext



I don't get allerlt and also no 36pt. Error-message while compiling:

fonts  fallback modern rm 12pt is loaded
fonts  defining  font with asked name 'allerlt' is not found using lookup 
'file'
fonts  defining  unknown font allerlt, loading aborted
fonts  defining  unable to define allerlt as \**thedefinedfont**

I hope someone knows an answer.
Janis






___
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] Problems with linespacing - typescript

2011-11-05 Thread Jan Heinen


 Regenerate the font database with “mtxrun --script font 
--reload” and try it  again.


That was not successful.

However, I changed your code a bit and now it seems ok:

When I use:
   \definedfont[name:allerlight*default at 36pt]

instead of:
   \definedfont[file:allerlt*default at 36pt]

then it works.
Changed:
   file: - name:
   allerlt - allerlight


Do I still use type-aller? Or did I destroy the connection 
to the typescript with my changes?

Maybe important? The aller-files are ttf not otf.

Regards
Jannis

___
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] Problems with linespacing

2011-11-05 Thread Jan Heinen
 When “file:allerlt” doesn’t work your fonts have a 
different filename than mine.

 What output on the command line do you get?
 keima:TeX wolf$ mtxrun --script font --list --all aller*

 aller aller /Users/wolf/Library/Fonts/Aller_Rg.ttf
 allerbold allerbold /Users/wolf/Library/Fonts/Aller_Bd.ttf

Was my fault: I had installed both versions of aller: from 
daltonmaag and from font-squirell.
I think that caused a conflict. I now deleted the 
daltonmaag-version and the typescript is running well.


Linespacing is still not working in every case - I try a 
little bit more, maybe I find my error ... otherwise I start 
another thead.


Regards
Jannis

___
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] Problems with linespacing

2011-11-04 Thread Jan Heinen

I can't find what I am doing wrong in my tex-file.

1.
I have little problems with the linespacing when I use big 
fontsizes.

The text looks uneasy.

Here you can see the problem ... (1) and (2) on the image
http://www.imagebanana.com/view/bipcpje7/Linespacing.png
And why does (3) runs to the right end of the page?


... and here my tex-file:



\definefont[Gross] [name:allerlight at 36pt]
\starttext
\Gross
Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis 
ich begriffen habe, was es bedeutet, ein blinder Text zu wer 
wer wer wer wer wer wer wer wer wer wer keinen Sinn. Man 
wirkt hier und da aus dem Zusammenhang gerissen. Oft wird 
man gar nicht erst gelesen.


Aber bin ich deshalb ein schlechter Text? Ich weiss, dass 
ich nie die Chance haben werde, im Stern zu erscheinen.


\stoptext



2.
And using a very small fontsize, eg. 8pt the linespacing 
looks to be the same in every line

but it is to big.


3.
What is to do to have only a small linespacing in a 
paragraph and a bigger linespacing after a break and then 
again a small linespacing in the next paragraph, and so on.

And I don't want to put \blank after a paragraph.

-
---
-
--



-
--


-
---
-
---
--





Regards
Jannis

___
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] Problems with linespacing

2011-11-04 Thread Jan Heinen

Wolfgang, thanx for your fast response.

The typescript does not find my allerlight. I have tried 
name:allerlight ... without success.


But I am happy with
\definefont[name:...]
and
\setupinterlinespace

Now I still need a possibility to have a bigger linespacing 
after a paragraph

and
why does (3) runs to the right end of the page?

 http://www.imagebanana.com/view/bipcpje7/Linespacing.png

Regards
Jannis

___
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] Scite-syntax-highlighting (solved)

2011-11-01 Thread Jan Heinen

Hello,

problem solved!

1. I made a new installation of Scite
2. put the lexer from scintillua into the 
scite-rootdirectory (including the directoryname /lexer/)

3. and then the lexer from my context-installation

And now highlighting works :-)

Regards
Jannis

___
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] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Jan Heinen

Hello,

I am just programming a catalog which should be printed.

I have a lot of data, text and pictures in a MySQL-database 
and want to generate a nice catalog with ConTeXt.

To get the data from MySQL to ConTeXt I use PHP as an Interface:

MySQL - PHP - ConTeXt

And lot's of ConTeXt-macros will make a nice layout :-)

To give something back to this ConTeXt-community, I will put 
some helpfull PHP-functions into the wiki of contextgarden.net.


Today I wrote the function ConvertToConteXt which converts 
special ConTeXt-characters. You can see it below.



Before I put it into contextgarden.net ...
1. ... please test it.
2. You see three characters, where I don't know the 
code-number \char??? for ConTeXt. Do you know them?

3. Did I forget to convert a character?

Regards
Jannis



function ConvertToConteXt ( $xstring ) {
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
* * * * * * * * *

 *
 *  author: Jörg Kopp
 *  www.dr-kopp.com
 *  01.11.2011
 *
 *  Convert special ConTeXt-characters with php
 *  Works with PHP5
 *
 *  Call it with the string you want to convert ...
 * ConvertToConteXt ($xstring);
 *
 *  ... and you get back the converted string
 *
 *  e.g.:
 *  Input:
 *  $string = My root-Directory: /home/hans;
 *  $string = ConvertToConteXt ( $string );
 *
 *  Output/Return:
 *  $string = My root\\char45Directory\\char58 
\\char47home\\char47hans;

 *
 *  When you write this into a file ...
 *  file_put_contents ( example.tex, My 
root\\char45Directory\char58 \\char47home\\char47hans, 
FILE_APPEND );

 *
 *  ... You will find the following in example.tex:
 *  My root\char45Directory\char58 
\char47home\char47hans

 *
 *  An when you compile example.tex with ConTeXt
 *  context example.text
 *
 *  You can read the following in the resulting 
example.pdf:

 *  My root-Directory: /home/hans
 *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
* * * * * * * * */


  $xstring = html_entity_decode ( $xstring ); 
// convert HTML-entities into normal characters
  $xstring = str_replace ( !,  \\char33,  $xstring ); 
// Ausrufungszeichen/ConvertToConteXt
  $xstring = str_replace ( \, \\char34,  $xstring ); 
// Anführungszeichen/quotation mark
  $xstring = str_replace ( #,  \\char35,  $xstring ); 
// Raute/number sign
  $xstring = str_replace ( $,  \\char36,  $xstring ); 
// Dollar-Zeichen/dollar sign
  $xstring = str_replace ( %,  \\char37,  $xstring ); 
// Prozent-Zeichen/percent sign
  $xstring = str_replace ( ,  \\char38,  $xstring ); 
// Kaufmännisches Und/ampersand
  $xstring = str_replace ( ',  \\char39,  $xstring ); 
// Apostroph/apostrophe
  $xstring = str_replace ( (,  \\char40,  $xstring ); 
// Klammer auf/left parenthesis
  $xstring = str_replace ( ),  \\char41,  $xstring ); 
// Klammer zu/right parenthesis
  $xstring = str_replace ( *,  \\char42,  $xstring ); 
// Stern/asterisk
  $xstring = str_replace ( +,  \\char43,  $xstring ); 
// Plus/plus sign
  $xstring = str_replace ( ,,  \\char44,  $xstring ); 
// Komma/comma
  $xstring = str_replace ( -,  \\char45,  $xstring ); 
// Minus/hyphen
  $xstring = str_replace ( .,  \\char46,  $xstring ); 
// Punkt/period
  $xstring = str_replace ( /,  \\char47,  $xstring ); 
// Schrägstrich/period
  $xstring = str_replace ( :,  \\char58,  $xstring ); 
// Doppelpunkt/colon
  $xstring = str_replace ( ;,  \\char59,  $xstring ); 
// Semikolon/semicolon
  $xstring = str_replace ( ,  \\char60,  $xstring ); 
// Kleinerzeichen/less-than
  $xstring = str_replace ( =,  \\char61,  $xstring ); 
// Gleichzeichen/equals-to
  $xstring = str_replace ( ,  \\char62,  $xstring ); 
// Größerzeichen/greater-than
  $xstring = str_replace ( ?,  \\char63,  $xstring ); 
// Fragezeichen/question mark
  $xstring = str_replace ( @,  \\char64,  $xstring ); 
// at-Zeichen/at sign
  $xstring = str_replace ( [,  \\char91,  $xstring ); 
// eckige Klammer auf/left square bracket
  $xstring = str_replace ( \\, \\char92,  $xstring ); 
// Backslash/backslash
  $xstring = str_replace ( ],  \\char93,  $xstring ); 
// eckige Klammer zu/right square bracket
  $xstring = str_replace ( ^,  \\char94,  $xstring ); 
// Zirkumflex/caret
  $xstring = str_replace ( _,  \\char95,  $xstring ); 
// Unterstrich/underscore
  //$xstring = str_replace ( °,  \\char,  $xstring ); 
// Grad/  -- missing
  $xstring = str_replace ( `,  \\char96,  $xstring ); 
// accent aigu/acute accent
  $xstring = str_replace ( {,  \\char123, $xstring ); 
// geschweifte Klammer auf/left curly brace
  $xstring = str_replace ( |,  \\char124, $xstring ); 
// Pipezeichen/vertical bar
  $xstring = str_replace ( },  \\char125, $xstring ); 
// geschweifte Klammer zu/right curly brace
  $xstring = str_replace ( ~,  \\char126,  $xstring ); 
// Tilde/tilde
  //$xstring = str_replace ( •,  \\char,  $xstring ); 
// ?/  -- missing
  //$xstring = str_replace ( º,  \\char,  

[NTG-context] ConvertToConteXt 0.2 - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Jan Heinen

At first: I am ConTeXt-newby and know PHP very well.

@Peter Münster/Aditya Mahajan  : I think \startasci and 
\stopasci is not the solution, when you generate 
ConTeXt-code with php full of ConTeXt-macro-calls:
because sometimes the special-characters are 
ConTeXt-special-characters and sometimes they are purely the 
wanted text.
@Philipp Gesang: I think Luatex could do the same job for me 
as PHP - however I am familar with PHP.
@all: of course not every Character, i am converting, is a 
ConTeXt-special-character. Though I don't know all important 
characters I took all I could imagine. Shurly I converted

too much however it is no problem:
I have tested my function ConvertToConteXt with 400 Pages 
full of text and lots of ConTeXt-special-characters and 
ConTeXt-macro-calls and compiled a nice book with ConText.


Which character must not be converted?

I had a mistake in the function, below is the next version:

Regards, Janis

function ConvertToConteXt ( $xstring ) {
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
* * * * * * * * *

 * ConvertToConteXt()
 * Version 0.2
 * 01.11.2011
 *
 *  author: Jörg Kopp
 *  www.dr-kopp.com
 *
 *  Convert special ConTeXt-characters with php
 *  Works with PHP5
 *
 *  Call it with the string you want to convert ...
 * ConvertToConteXt ($xstring);
 *
 *  ... and you get back the converted string
 *
 *  e.g.:
 *  Input:
 *  $string = My root-Directory: /home/hans;
 *  $string = ConvertToConteXt ( $string );
 *
 *  Output/Return:
 *  $string = My root\\char45Directory\\char58 
\\char47home\\char47hans;

 *
 *  When you write this into a file ...
 *  file_put_contents ( example.tex, My 
root\\char45Directory\char58 \\char47home\\char47hans, 
FILE_APPEND );

 *
 *  ... You will find the following in example.tex:
 *  My root\char45Directory\char58 
\char47home\char47hans

 *
 *  An when you compile example.tex with ConTeXt
 *  context example.text
 *
 *  You can read the following in the resulting 
example.pdf:

 *  My root-Directory: /home/hans
 *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
* * * * * * * * */


  $xstring = html_entity_decode ( $xstring );// 
convert HTML-entities into normal characters


  // Braces and Backslash need to be handled first 
otherwise trash will be produced
  $xstring = str_replace ( {,  *$##char123##$*, 
$xstring );   // geschweifte Klammer auf/left 
curly brace
  $xstring = str_replace ( },  *$##char125##$*, 
$xstring );   // geschweifte Klammer zu/right 
curly brace
  $xstring = str_replace ( \\, {\\char92},  $xstring ); 
// Backslash/backslash
  $xstring = str_replace ( *$##char123##$*,  
{\\char123}, $xstring ); // This trick is nessecary ...
  $xstring = str_replace ( *$##char125##$*,  
{\\char125}, $xstring ); // ...  !!!


  $xstring = str_replace ( !,  {\\char33},  $xstring ); 
// Ausrufungszeichen/ConvertToConteXt
  $xstring = str_replace ( \, {\\char34},  $xstring ); 
// Anführungszeichen/quotation mark
  $xstring = str_replace ( #,  {\\char35},  $xstring ); 
// Raute/number sign
  $xstring = str_replace ( $,  {\\char36},  $xstring ); 
// Dollar-Zeichen/dollar sign
  $xstring = str_replace ( %,  {\\char37},  $xstring ); 
// Prozent-Zeichen/percent sign
  $xstring = str_replace ( ,  {\\char38},  $xstring ); 
// Kaufmännisches Und/ampersand
  $xstring = str_replace ( ',  {\\char39},  $xstring ); 
// Apostroph/apostrophe
  $xstring = str_replace ( (,  {\\char40},  $xstring ); 
// Klammer auf/left parenthesis
  $xstring = str_replace ( ),  {\\char41},  $xstring ); 
// Klammer zu/right parenthesis
  $xstring = str_replace ( *,  {\\char42},  $xstring ); 
// Stern/asterisk
  $xstring = str_replace ( +,  {\\char43},  $xstring ); 
// Plus/plus sign
  $xstring = str_replace ( ,,  {\\char44},  $xstring ); 
// Komma/comma
  $xstring = str_replace ( -,  {\\char45},  $xstring ); 
// Minus/hyphen
  $xstring = str_replace ( .,  {\\char46},  $xstring ); 
// Punkt/period
  $xstring = str_replace ( /,  {\\char47},  $xstring ); 
// Schrägstrich/period
  $xstring = str_replace ( :,  {\\char58},  $xstring ); 
// Doppelpunkt/colon
  $xstring = str_replace ( ;,  {\\char59},  $xstring ); 
// Semikolon/semicolon
  $xstring = str_replace ( ,  {\\char60},  $xstring ); 
// Kleinerzeichen/less-than
  $xstring = str_replace ( =,  {\\char61},  $xstring ); 
// Gleichzeichen/equals-to
  $xstring = str_replace ( ,  {\\char62},  $xstring ); 
// Größerzeichen/greater-than
  $xstring = str_replace ( ?,  {\\char63},  $xstring ); 
// Fragezeichen/question mark
  $xstring = str_replace ( @,  {\\char64},  $xstring ); 
// at-Zeichen/at sign
  $xstring = str_replace ( [,  {\\char91},  $xstring ); 
// eckige Klammer auf/left square bracket
  $xstring = str_replace ( ],  {\\char93},  $xstring ); 
// eckige Klammer zu/right square bracket
  $xstring = 

[NTG-context] syntax-highlighting

2011-10-31 Thread Jan Heinen

Hello,

I've installed Scite on a Linux-Computer.
I can build the pdf with F5; when I start to write a 
context-command the completion is suggested, e.g. \pa - \page


There is no syntax-highlighting. How to switch it on?

Regards
Jannis

___
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] nice friends-book with ConText - quite ready

2011-10-14 Thread Jan Heinen

Hello it was a ConText-night,

and as a newby I learned a lot about ConText :-)

Here is what I wanted to get: 
http://www.imagebanana.com/view/f4o3un2c/Entwurffriends.png


And here are my results: 
http://www.imagebanana.com/view/8vq30irn/ContextLayers.png


There are only little things which could be improved: How??
1. where comes the frame around the foto from? How can I 
switch it off?
2. There is a thin white line between layer A and the 
Infobox. How to rid of it?
3. How can I get padding into the Infobox? top, botttom, 
right and left



And here is my code for everyone who likes the layout of my 
friends-book ;-)



\definelayer[Kontaktdaten][x=20mm,y=30mm,width=65mm,height=30mm,state=start]
\setupbackgrounds[paper][setups=ALayer,background=Kontaktdaten,state=start]

\starttext
\strut

\setlayerframed[Kontaktdaten][background=color,backgroundcolor=lightgreen,width=10mm,height=130mm,frame=off,hoffset=-20mm,voffset=145mm,align=right]{A}
\setlayerframed[Kontaktdaten][background=color,backgroundcolor=darkgreen,width=10mm,height=60mm,frame=off,hoffset=-20mm,voffset=85mm,align=right]{B}
\setlayerframed[Kontaktdaten][background=color,backgroundcolor=lightgreen,width=60mm,height=175mm,frame=off,hoffset=-10mm,voffset=100mm,align=right]%
{Infobox:\crlf
Peter\crlf
New York\crlf
0171/782801\crlf
t...@test.de}
\setlayerframed[Kontaktdaten][width=30mm,height=40mm,frame=\LayoutTest,hoffset=-10mm,voffset=60mm][strut=no,offset=overlay]%
 {\externalfigure[niceImage][width=30mm,height=40mm]}

\page
\stoptext



Regards
Jannis

___
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] nice friends-book with ConText

2011-10-13 Thread Jan Heinen

Hello,

I hope the answer is easier than the question :-)

I am a ConText-Newby and am struggeling with the huge amount 
of ConText-commands.


I want to make a little book with infos and fotos of our 
friends - and I am afraid, the nice layout I have in mind is 
to complicated or impossible with ConText - at least for me.


The book will have 40 pages and every page with the same 
layout. I have posted the layout I want to use as a .png to 
http://www.imagebanana.com/view/f4o3un2c/Entwurffriends.png


Which ConText-commands do I need for this layout? I tried 
\inmargin - without success.
\definelayer and \setlayerframed worked (a littlebit) - 
though the running text (beneath the headline) runs through 
the layer.


What seems the easiest way? layers, columns, ?

Maybe someone here has a little example which I can finetune.

Which hints can be given? I would be very happy about a 
rough structure of the context-code - I think then I am able 
to do the finetuning with the manuals.


I am working with Linux - so Indesign is no alternative for 
me :-)


Regards
Jannis

___
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] nice friends-book with ConText

2011-10-13 Thread Jan Heinen

Step by Step I'm going forward.

This shuld be the result, when I am ready: 
http://www.imagebanana.com/view/f4o3un2c/Entwurffriends.png


At the moment I try to get the foto into a layer.
Though the layer is definded as 30x40mm and the foto as well 
- the foto does not fit into the layer: the layer is a bit 
bigger.


See here: 
http://www.imagebanana.com/view/29611n9s/FotoinLayer.png


And here is what I did:

\definelayer[Kontaktdaten][x=50mm,y=150mm,width=30mm,height=40mm,state=start] 
% size is ignored!

\setupbackgrounds[paper][setups=ALayer,background=Kontaktdaten,state=start]
\starttext
\strut
\setlayerframed[Kontaktdaten][frame=on,hoffset=0mm,voffset=0mm,align=left]
{
  {\externalfigure[jkopp][width=30mm][height=40mm]}
}
\stoptext


How can I fit the foto exactly into the layer?
Jannis



___
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] nice friends-book with ConText

2011-10-13 Thread Jan Heinen
With the change to [strut=no,offset=overlay] the result 
looks a litlebit better. Though there is still whitespace to 
the left and to the right.


\definelayer[Kontaktdaten][x=50mm,y=150mm,width=30mm,height=40mm,state=start] 
% size is ignored!

\setupbackgrounds[paper][setups=ALayer,background=Kontaktdaten,state=start]
\starttext
\strut
\setlayerframed[Kontaktdaten][frame=on,hoffset=0mm,voffset=0mm][strut=no,offset=overlay]   
%  look here

{
  {\externalfigure[jkopp][width=30mm][height=40mm]}
}
\stoptext

Look here: 
http://www.imagebanana.com/view/ksjzn63e/FotoinLayer.png


Janis



Am 14.10.2011 00:22, schrieb Mojca Miklavec:

\setlayerframed[Kontaktdaten][frame=on,hoffset=0mm,voffset=0mm,align=left]

strut=no,offset=overlay

align=left doesn't do what you want it to do.

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
___