[NTG-context] Interactive documents

2012-07-11 Thread MANUEL GONZALEZ SUAREZ




Hi
My name is Manuel
Gonzalez and I am a teacher of Classical Greek at
the University of Oviedo (Spain). So far I've been using LaTeX
but recently I have discovered the extraordinary possibilities of ConTeXt.
However, I have continuously problems
which I solved as
I can (I'm a complete newbie and I do not know the details of programming languages​​). Well, theproblem is the following: I want
to make an interactive document and
I copy the code that appears in Context an excursion, page 65, but did not appear in
the final document navigation tools, such as EXIT, STOP, etc.. What
could be the cause?
Thanks very much and I apologize for
my bad English.

 Manuel González Suárez
___
If your question is of interest to others as well, please add an 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] misprint in wiki

2012-07-11 Thread Meer, H. van der
In the wiki under \setupexternalfigures one finds for the framing of the figure 
following in the table: frames on off
Mark the 's' at the end of 'frames'
I tested it and found it has to be 'frame' without the 's'.
This is the same misprint as occurred in the earlier ConTeXt manual of 2001.

Perhaps someone knowledageable about changing the wiki can verify this and will 
be so kind as to update the wiki.

Hans van der Meer



___
If your question is of interest to others as well, please add an 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 documents

2012-07-11 Thread Wolfgang Schuster

Am 11.07.2012 um 09:35 schrieb MANUEL GONZALEZ SUAREZ:

 
 Hi
 My name is Manuel Gonzalez and I am a teacher of Classical Greek at the 
 University of Oviedo (Spain). So far I've been using LaTeX but recently I 
 have discovered the extraordinary possibilities of ConTeXt. However, I have 
 continuously problems which I solved as I can (I'm a complete newbie and I do 
 not know the details of programming languages​​). Well, theproblem is the 
 following: I want to make an interactive document and I copy the code that 
 appears in Context an excursion, page 65, but did not appear in the final 
 document navigation tools, such as EXIT, STOP, etc.. What could be the cause?
 


\setuplayout
  [width=12cm,
   rightedge=2cm]

\setupinteraction
  [state=start,
   menu=on]

\setupinteractionmenu
  [right]
  [state=start,
   align=middle,
   background=screen,
   frame=on,
   width=broad,
   style=smallbold,
   color=]

\startinteractionmenu[right]
  \startbut [content]Content \stopbut
  \startbut [index]  Index   \stopbut
  \vfill
  \startbut [ExitViewer] Stop\stopbut
\stopinteractionmenu

\starttext

\completecontent %\showframe

\dorecurse{4}
  {\chapter{Chapter #1}\index{chapter #1}
   \input knuth\page}

\completeindex

\stoptext

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

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

Re: [NTG-context] Interactive documents

2012-07-11 Thread Hans Hagen

On 11-7-2012 09:35, MANUEL GONZALEZ SUAREZ wrote:


Hi
My name is Manuel Gonzalez and I am a teacher of Classical Greek at the
University of Oviedo(Spain). So far I've been using LaTeX but recently I have
discovered the extraordinary possibilities of ConTeXt. However, I have
continuously problems which I solved as I can (I'm a complete newbie and I do
not know the details of programming languages​​). Well, theproblem is the
following: I want to make an interactive document and I copy the code that
appears in Context an excursion, page 65, but did not appear in the final
document navigation tools, such as EXIT, STOP, etc.. What could be the cause?


it helps if you post a small example of your test source here

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


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

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

Re: [NTG-context] misprint in wiki

2012-07-11 Thread Otared Kavian

On 11 juil. 2012, at 10:04, Meer, H. van der wrote:

 In the wiki under \setupexternalfigures one finds for the framing of the 
 figure following in the table: frames on off
 Mark the 's' at the end of 'frames'
 I tested it and found it has to be 'frame' without the 's'.
 This is the same misprint as occurred in the earlier ConTeXt manual of 2001.
 
 Perhaps someone knowledageable about changing the wiki can verify this and 
 will be so kind as to update the wiki.
 
 Hans van der Meer

…done.___
If your question is of interest to others as well, please add an 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 documents

2012-07-11 Thread Wolfgang Schuster

Am 11.07.2012 um 10:12 schrieb Hans Hagen:

 On 11-7-2012 09:35, MANUEL GONZALEZ SUAREZ wrote:
 
 Hi
 My name is Manuel Gonzalez and I am a teacher of Classical Greek at the
 University of Oviedo(Spain). So far I've been using LaTeX but recently I have
 discovered the extraordinary possibilities of ConTeXt. However, I have
 continuously problems which I solved as I can (I'm a complete newbie and I do
 not know the details of programming languages​​). Well, theproblem is the
 following: I want to make an interactive document and I copy the code that
 appears in Context an excursion, page 65, but did not appear in the final
 document navigation tools, such as EXIT, STOP, etc.. What could be the cause?
 
 it helps if you post a small example of your test source here

The manuals uses

  \setupinteractionmenu
[mymenu]
[{Content[content]},
 {Index[index]},
 {\vfill},
 {Stop[ExitViewer]}]

to set the content for the menu and not

  \startinteractionmenu[mymenu]
\startbut [content] Content \stopbut
…
  \stopinteractionmenu


What’s also missing is a note that you have to adjust the layout (decrease
the text width and set rightwidth) to let the menu appear on the page.


@Hans: Can you take a look at the output from my example in the other mail
because the first button of the menu appears in the header of the document.

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

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

Re: [NTG-context] postponing broken?

2012-07-11 Thread Hans Hagen

On 11-7-2012 14:58, Alan BRASLAU wrote:

Hello,

In the latest beta, postponing seems to be broken (or changed).

Minimal example:

\starttext
\input tufte
(see \in{figure}[fig:cow].)
\startpostponing [+0]
\startplacefigure [location=here,reference={fig:cow},
title={A cow that does not break the paragraph}]
\externalfigure [cow] [width=.5\textwidth]
\stopplacefigure
\stoppostponing
\input tufte
\stoptext



quick hack (in cont-new.mkiv):

unexpanded\def\page_postponed_blocks_flush
  {\setfalse\c_page_postponed_busy
   \ifconditional\c_page_postponed_busy
 % probably a nested flush
   \else\ifnum\c_page_postponed_blocks_next_page=\zerocount
 % nothing in cache
   \else\ifnum\c_page_postponed_blocks_next_page\zerocount
 % generic cache
 \page_postponed_blocks_flush_indeed
   \else\ifnum\c_page_postponed_blocks_next_page\realpageno
 % future content
   \else
 % pending content
 \page_postponed_blocks_flush_indeed
   \fi\fi\fi\fi}


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


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

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


Re: [NTG-context] postponing broken?

2012-07-11 Thread Hans Hagen

On 11-7-2012 14:58, Alan BRASLAU wrote:

Hello,

In the latest beta, postponing seems to be broken (or changed).


in page-pst.mki a constant should be a conditional:

\newconditional\c_page_postponed_busy

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


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

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


[NTG-context] bodyfont message

2012-07-11 Thread Meer, H. van der
I get this message in the log because of font usage:
fontsbodyfont 70pt is defined (can better be done global)
fontsbodyfont 84pt is defined (can better be done global)
fontsbodyfont 56pt is defined (can better be done global)

I am inclined to follow the suggestion, but I cannot think of the most correct 
way to do this.
Someone willing to show it to me?

Hans van der Meer



___
If your question is of interest to others as well, please add an 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] bodyfont message

2012-07-11 Thread Hans Hagen

On 11-7-2012 16:08, Meer, H. van der wrote:

I get this message in the log because of font usage:
fontsbodyfont 70pt is defined (can better be done global)
fontsbodyfont 84pt is defined (can better be done global)
fontsbodyfont 56pt is defined (can better be done global)

I am inclined to follow the suggestion, but I cannot think of the most correct 
way to do this.
Someone willing to show it to me?


You probably use a large size locally, say \switchtobodyfont[25pt] and 
in that case you need to define a bodyfontenvironment in order to 
prevent endless local definitions.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


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

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


[NTG-context] setupcaptions

2012-07-11 Thread Meer, H. van der
I want to make my figure captions both slanted and small, or bold and small,etc.
The wiki has for setupcaptions:

headstyle normal, bold, .. , small, ..
style normal, bold, .. , small, ..

I therefore expected to work the following setup:

\setupcaptions[headstyle={slanted,small},style={bold,small}]
\starttext
\placefigure{A dummy figure}{\externalfigure[dummy]}
Caption test.
\stoptext

But no, two seems too much. style={bold} does work and style={small} but style 
= {bold,small} does not. From the general principles of ConTeXt's parameter 
handling I would have expected this to work.
Of course I could have used style={\bf\switchtobodyfont[small]}, but I would 
prefer to refrain from low level font commands when possible.

I am right the setupcaptions should work with combined fontsettings, or is it 
my mistake?

Hans van der Meer






setup.pdf
Description: setup.pdf
___
If your question is of interest to others as well, please add an 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] seeindex: accents and such

2012-07-11 Thread Andreas Mang
Dear all,

I have some minor problems with \seeindex

It seems that it does not render accents properly nor is it possible to 
introduce commands. Is this an intended behavior, am I doing something wrong or 
is there a bug?

Cheers,
Andreas

Minimal example:

\setupregister[index]
[
style={\bf\WORD},
balance=yes
]

\starttext

% seeindex does not render ssharp properly
Wei{\ssharp}wurst\index{Wei{\ssharp}wurst}\seeindex{German 
sausage}{Wei{\ssharp}wurst}

% same holds for accents
M\unchner Wei{\ssharp}bier\index{M\unchner Wei{\ssharp}bier}\seeindex{good 
beer}{M\unchner Wei{\ssharp}bier}

% switching font style
{\sc Test}\index[Test]{\sc Test}\seeindex[Test]{Testing}{\sc Test}

\completeindex
 
\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] seeindex: accents and such

2012-07-11 Thread Andreas Mang
I forgot to mention that I am using

ConTeXt  ver: 2012.07.10 09:52 MKIV

Sorry...

Am Jul 11, 2012 um 8:38 PM schrieb Andreas Mang:

 Dear all,
 
 I have some minor problems with \seeindex
 
 It seems that it does not render accents properly nor is it possible to 
 introduce commands. Is this an intended behavior, am I doing something wrong 
 or is there a bug?
 
 Cheers,
 Andreas
 
 Minimal example:
 
 \setupregister[index]
 [
 style={\bf\WORD},
 balance=yes
 ]
 
 \starttext
 
 % seeindex does not render ssharp properly
 Wei{\ssharp}wurst\index{Wei{\ssharp}wurst}\seeindex{German 
 sausage}{Wei{\ssharp}wurst}
 
 % same holds for accents
 M\unchner Wei{\ssharp}bier\index{M\unchner Wei{\ssharp}bier}\seeindex{good 
 beer}{M\unchner Wei{\ssharp}bier}
 
 % switching font style
 {\sc Test}\index[Test]{\sc Test}\seeindex[Test]{Testing}{\sc Test}
 
 \completeindex

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

___
If your question is of interest to others as well, please add an 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] seeindex: accents and such

2012-07-11 Thread Wolfgang Schuster

Am 11.07.2012 um 20:38 schrieb Andreas Mang:

 Dear all,
 
 I have some minor problems with \seeindex
 
 It seems that it does not render accents properly nor is it possible to 
 introduce commands. Is this an intended behavior, am I doing something wrong 
 or is there a bug?

Why don’t you use “ü” and “ß” in your document?

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

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


Re: [NTG-context] setupcaptions

2012-07-11 Thread Wolfgang Schuster

Am 11.07.2012 um 17:17 schrieb Meer, H. van der:

 I want to make my figure captions both slanted and small, or bold and 
 small,etc.
 The wiki has for setupcaptions:
 
 headstyle normal, bold, .. , small, ..
 style normal, bold, .. , small, ..
 
 I therefore expected to work the following setup:
 
 \setupcaptions[headstyle={slanted,small},style={bold,small}]
 \starttext
 \placefigure{A dummy figure}{\externalfigure[dummy]}
 Caption test.
 \stoptext
 
 But no, two seems too much. style={bold} does work and style={small} but 
 style = {bold,small} does not. From the general principles of ConTeXt's 
 parameter handling I would have expected this to work. 
 Of course I could have used style={\bf\switchtobodyfont[small]}, but I would 
 prefer to refrain from low level font commands when possible.
 
 I am right the setupcaptions should work with combined fontsettings, or is it 
 my mistake?

You misunderstand how named styles work. When you have style key (can be style, 
textstyle etc.)
for a command you can write “style=\bf” and use the font switch as argument. 
Another way to set
the font is to use a name, e.g. “style=bold”. The argument in this case is a 
identifier which is defined as

  \definealternativestyle [\v!bold]   [\bf] []

As you can see “bold” is only a synonym for \bf (with the third argument you 
can specify what should
happen when a command when the identifier is used in a heading, see below for a 
example.

\definehead[HeadA][section][style=bold]
\definehead[HeadB][section][style=italic]

\starttext

\HeadA{normal \style[style=italic]{italic} normal \style[style=bold]{bold} 
normal \style[style=\it]{it} normal \style[style=\bf]{bf} normal}

normal \style[style=italic]{italic} normal \style[style=bold]{bold} normal 
\style[style=\it]{it} normal \style[style=\bf]{bf} normal

\HeadB{normal \style[style=italic]{italic} normal \style[style=bold]{bold} 
normal \style[style=\it]{it} normal \style[style=\bf]{bf} normal}

normal \style[style=italic]{italic} normal \style[style=bold]{bold} normal 
\style[style=\it]{it} normal \style[style=\bf]{bf} normal
 
\stoptext


Having a list as argument for the style key is interesting and you have my vote 
for this but it would
be more complex and slower than the current mechanism.

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

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

Re: [NTG-context] seeindex: accents and such

2012-07-11 Thread Andreas Mang
Hi Wolfgang,

Thanks. That's truly an option. I have already looked into this and it works. 
As a matter of fact, this is what I decided to do if there is no quick fix. 
However, I thought I'd point it out, since it works for \index and just not for 
\seeindex. Secondly, the \sc (command) issue persists. 

Thirdly, once upon a time I have opened my tex files on a foreign machine and I 
realized that all accents were screwed. This was the day when I decided to 
become even more paranoid and by that not to use ü and friends in my source 
files. Maybe I should stop being paranoid, since all people around me seem to 
be using accents...

Cheers,
Andreas   

Am Jul 11, 2012 um 10:15 PM schrieb Wolfgang Schuster:

 
 Am 11.07.2012 um 20:38 schrieb Andreas Mang:
 
 Dear all,
 
 I have some minor problems with \seeindex
 
 It seems that it does not render accents properly nor is it possible to 
 introduce commands. Is this an intended behavior, am I doing something wrong 
 or is there a bug?
 
 Why don’t you use “ü” and “ß” in your document?
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


[NTG-context] PDF Preview Image

2012-07-11 Thread Kip Warner
Hey list,

Many different desktop environments display the first page of a PDF as
the file's thumbnail image. Is there any way to customize what is used
as the preview image for a PDF with ConTeXt? Or is it typesetting
environment agnostic and the thumbnailers always look for the first
page?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an 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
___