Re: [NTG-context] footnotes setup

2012-03-17 Thread Wolfgang Schuster

Am 17.03.2012 um 20:38 schrieb Honza Hejzl:

> Hi,
> 
> I have installed the last standalone version from contextgarden and oops, my 
> (few days) old file does not work properly. My "old" setup of footnotes was 
> like:
> 
> \setupfootnotedefinition[loaction=page...]
> \setupfootnotes[bodyfontsize=8pt, style=\ss...]
> 
> Now the context does not understand to that. So I am trying to set up 
> footnotes with \setupnote[footnote] but it seems nothing works. I am not able 
> to use location=serried, location=page, style and so on... Is it connected 
> with some general update? :o(

The command \setupnotedefinition (where \setupfootnotedefinition is a shortcut 
for \setupnotedefinition[footnote]) is now \setupnotation and 
“location=serried” is now “alternative=serried”. The \setupnote command 
(\setupfootnotes is \setupnote[footnote]) has only a “bodyfont” key which 
accepts “{8pt,sans}” as argument but not “bodyfontsize” key and style is only 
available for \setupnotation (but as you saw you can add it to bodyfont).

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] Color Lost when Using 'texexec' vs 'context'

2012-03-17 Thread Malte Stien
Mojca, Wolfgang,

Thank you for explaining that. I had read about the two different versions MkII 
and MkIV, but did not realise that 'texexec' is the former while 'context' is 
the latter.

> How old was the manual that you were reading?

I got that from the "Context Manual" ("Context Manual (cont-eni).pdf"), Section 
1.4, which I downloaded quite recently from the website (I have been using 
Context for less than 2 months). It is dated November 2001, so quite old, 
you're right. What should I be reading instead? Is there something newer?

The reason I switched to "texexec" was this (from the "Context Manual": "During 
the processing of itemizations the number of items is counted. This is the case 
with all versions. The next pass this information is used to determine the 
optimal location to start a new page. So do not despair when at the first parse 
your itemizations do not look the way you expected. When using TEXexec this is 
all taken care of."

Is this still a problem with "context" or is this problem somehow solved with 
MkIV anyway?

Thank you for all your help; this mailing-list proves very helpful to a novice 
like me.

Regards,
Malte.


On 17/03/2012, at 20:03, ntg-context-requ...@ntg.nl wrote:

>> Hi all,
>> 
>> I am using some darkgray in my documents, as in
>> 
>> ?\color[darkgray] foo...
>> 
>> which was working out well as long as I was processing my documents with the 
>> 'context' command. I recently started using 'texexec' instead, as in
>> 
>> ?texexec --pdf definitions-acronyms-and-abbreviations.tex
>> 
>> (which, I understand is preferable) and strangely, all of my darkgray text 
>> is now rendered black. Any ideas why the command makes a difference and what 
>> to do about it?
> 
> You can either use ConTeXt MKII (with pdftex, invoked with "texexec")
> or ConTeXt MKIV (with luatex, invoked with "context"). How old was the
> manual that you were reading?
> 
> In MKII you need \setupcolors[state=start] to get the colors working.
> 
> MKII is not really preferable, except when you are looking for
> slightly more stability or when you don't need some advanced features.
> It is more stable, older and uses pdftex instead of luatex. But it
> also lacks many nice features and bugs from ConTeXt MKIV :).

___
If your question is of interest to others as well, please add an 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] Line Wrapping/Hyphenation in Chapter/Section Headings

2012-03-17 Thread Malte Stien
Hi Wolfgang,

> Use also the "broad" keyword for align which makes ConTeXt more tolerant to 
> break the line with ragged text.

That did the trick. Thank you so much.

Regards,
Malte.

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

2012-03-17 Thread Honza Hejzl
Hi,

I have installed the last standalone version from contextgarden and oops,
my (few days) old file does not work properly. My "old" setup of footnotes
was like:

\setupfootnotedefinition[loaction=page...]
\setupfootnotes[bodyfontsize=8pt, style=\ss...]

Now the context does not understand to that. So I am trying to set up
footnotes with \setupnote[footnote] but it seems nothing works. I am not
able to use location=serried, location=page, style and so on... Is it
connected with some general update? :o(

Thanks, Honza
___
If your question is of interest to others as well, please add an 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] setupinterlinespace (exact setting, smaller than 1.0)

2012-03-17 Thread Wolfgang Schuster

Am 17.03.2012 um 18:27 schrieb Honza Hejzl:

> Hello,
> 
> I am struggling with this for a very long time. I wish to know if there is 
> any sure way how to work with setupinterlinespace when I am setting ON GRID. 
> When bodyfont is, for my example, 9pt and I set up the interlinespace to 10.8 
> (i.e. 1.0 – small), there are strange line breaks in pages everywhere (as 
> soon as the command \setupinterlinespace is used, doesn't matter how big the 
> number of line is, the text is broken in that way (expecially when I am 
> trying to use smaller distances). I need working on grid with the possibility 
> to reach exact interlinespace (typically to be able to make linespacing 
> tighter) – my editor has often very strict demands for the page range. The 
> once  result is the grid is tighter but the lines are not.
> 
> According to my tests I think there is no possibility to set smaller 
> interlinespace than 1.0, is it?
> 
> Any ideas, please?

Do you have a real example, when you have problems like in your image you 
should change the height/depth ratio or increase the interlinespace.

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

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


[NTG-context] setupinterlinespace (exact setting, smaller than 1.0)

2012-03-17 Thread Honza Hejzl
Hello,

I am struggling with this for a very long time. I wish to know if there is
any sure way how to work with setupinterlinespace when I am setting ON
GRID. When bodyfont is, for my example, 9pt and I set up the interlinespace
to 10.8 (i.e. 1.0 – small), there are strange line breaks in pages
everywhere (as soon as the command \setupinterlinespace is used, doesn't
matter how big the number of line is, the text is broken in that way
(expecially when I am trying to use smaller distances). I need working on
grid with the possibility to reach exact interlinespace (typically to be
able to make linespacing tighter) – my editor has often very strict demands
for the page range. The once  result is the grid is tighter but the lines
are not.

According to my tests I think there is no possibility to set smaller
interlinespace than 1.0, is it?

Any ideas, please?

Here is the result:
http://dl.dropbox.com/u/4393365/interlinespace.png

bodyfont 9pt
interlinespace 10.8 (for test)

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

2012-03-17 Thread Meer, H. van der
There is something in the processing of mathml I do not understand.
I keep the xml-node in a
  \startxmlsetups my:setup
  \def\mynode{#1}
  \stopxmlsetups

Doing \xmlflush{\mynode} does typeset the contents of mynode, but not when 
mynode contains a mathml tree! Then the error is:

Undefined control sequence ...
\MMLhack ->\let \MMLpar
\par \let \par \relax \everyvbox {\let \par \MMLpar }
\12>:mml:math ...}} {\automathematics }}{\MMLhack
  \xmlflush {#1}}\endgroup

Tested it with a simple:
  
x  
  

The strange thing is, when putting the mathlml tree insize  
mathml-content  where:
  \startxmlsetups xam:text
  \xmltrim{#1}\par
  \stopxmlsetups
then typesetting goes without an error!

Can someone explain this behaviour?

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


Re: [NTG-context] mathml

2012-03-17 Thread luigi scarso
On Sat, Mar 17, 2012 at 12:38 PM, Meer, H. van der  wrote:
> I have a mathml question: how to typeset properly a function with an
> argument: f(x)?
> In the ConTeXt examples for mathml I see for one:
> 
>     x  
> 
> But is there something like this for f(x), that is an "f" properly typeset?
>
> Hans van der Meer


\setupbackend
  [export=fx.xml,
   xhtml=fx.xhtml,
   ]
\starttext $f(x)$ \stoptext

what about  fx.xhtml
-- 
luigi
___
If your question is of interest to others as well, please add an 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] mathml

2012-03-17 Thread Meer, H. van der
I have a mathml question: how to typeset properly a function with an argument: 
f(x)?
In the ConTeXt examples for mathml I see for one:

x  

But is there something like this for f(x), that is an "f" properly typeset?

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] Itemize without page break

2012-03-17 Thread Wolfgang Schuster

Am 17.03.2012 um 10:21 schrieb luigi scarso:

> On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner  wrote:
>> Hey list,
>> 
>> Is there any way to hint to ConTeXt that the contents of a \startitemize
>> \stopitemize pair should try to be all on the same page?
> plain old tex
> \vbox{%
> \startitemize
> \stopitemize%
> }

Better:

\startitemize[before=\startlinecorrection,after=\stoplinecorrection]
…
\stopitemize

You can control the space before/after the linecorrection environment with the 
optional
argument which accepts all values for \blank, e.g. \startlinecorrection[2*line].

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] Itemize without page break

2012-03-17 Thread luigi scarso
On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner  wrote:
> Hey list,
>
> Is there any way to hint to ConTeXt that the contents of a \startitemize
> \stopitemize pair should try to be all on the same page?
plain old tex
\vbox{%
\startitemize
\stopitemize%
}
?

-- 
luigi
___
If your question is of interest to others as well, please add an 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] Color Lost when Using 'texexec' vs 'context'

2012-03-17 Thread Wolfgang Schuster

Am 17.03.2012 um 09:55 schrieb Malte Stien:

> Hi all,
> 
> I am using some darkgray in my documents, as in
> 
>  \color[darkgray] foo...
> 
> which was working out well as long as I was processing my documents with the 
> 'context' command. I recently started using 'texexec' instead, as in
> 
>  texexec --pdf definitions-acronyms-and-abbreviations.tex
> 
> (which, I understand is preferable) and strangely, all of my darkgray text is 
> now rendered black. Any ideas why the command makes a difference and what to 
> do about it?

The is a big different between the “context” and the “texexec” commands, with 
“context” you use MkIV (LuaTeX) to process your document while “texexec” uses 
MkII (pdfTeX [default] or XeTeX) to produce the PDF. The reason why you don’t 
get colors is that they are disabled in MkII and you have to enable them first 
with \setupcolors[state=start] but for MkIV this has changed and colors are now 
enabled by default.

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] Color Lost when Using 'texexec' vs 'context'

2012-03-17 Thread Mojca Miklavec
On Sat, Mar 17, 2012 at 09:55, Malte Stien wrote:
> Hi all,
>
> I am using some darkgray in my documents, as in
>
>  \color[darkgray] foo...
>
> which was working out well as long as I was processing my documents with the 
> 'context' command. I recently started using 'texexec' instead, as in
>
>  texexec --pdf definitions-acronyms-and-abbreviations.tex
>
> (which, I understand is preferable) and strangely, all of my darkgray text is 
> now rendered black. Any ideas why the command makes a difference and what to 
> do about it?

You can either use ConTeXt MKII (with pdftex, invoked with "texexec")
or ConTeXt MKIV (with luatex, invoked with "context"). How old was the
manual that you were reading?

In MKII you need \setupcolors[state=start] to get the colors working.

MKII is not really preferable, except when you are looking for
slightly more stability or when you don't need some advanced features.
It is more stable, older and uses pdftex instead of luatex. But it
also lacks many nice features and bugs from ConTeXt MKIV :).

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

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

[NTG-context] Color Lost when Using 'texexec' vs 'context'

2012-03-17 Thread Malte Stien
Hi all,

I am using some darkgray in my documents, as in

  \color[darkgray] foo...

which was working out well as long as I was processing my documents with the 
'context' command. I recently started using 'texexec' instead, as in

  texexec --pdf definitions-acronyms-and-abbreviations.tex

(which, I understand is preferable) and strangely, all of my darkgray text is 
now rendered black. Any ideas why the command makes a difference and what to do 
about it?

Regards,
Malte.

PS: Sorry, for one of my previous emails in which I replied to the full daily 
digest, which resulted in a very long email to everyone. Won't happen again.

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

2012-03-17 Thread Mojca Miklavec
On Fri, Mar 16, 2012 at 10:17, Matej Barič wrote:
> Hello,
> In a document I'm writing I'm using urw-garamond font successfully. However I 
> also use metaUML library for metapost where I'd like to have helvetica (or 
> nimbus, heros, etc.).
>
> For latin modern sans, I can use this:
>
> string metauml_defaultFont;
> metauml_defaultFont:="ec-lmss10";
>
> But this only works for latin modern sans (which I don't like combined with 
> urwgaramond) but not helvetica. I've tried to use some of txfonts and 
> tex-gyre fonts (which use helvetica/heros/nimbus for their sans-serif) by 
> writing metauml_defaultFont:="txss" and metauml_defaultFont:="ec-qhvcb" but I 
> get an error "pdftex (file rtxss): Font rtxss at 600 not found".
>
> I've installed the latest context standalone.
>
> Is there any other way to use helvetica in metapost/metauml or how to 
> troubleshoot this error?

I'm almost sure that the reason are missing lines describing those
fonts in pdftex.map. It might be that your example would work fine
with TeX Live or MikTeX out of the box. I have never used metauml and
I'm not sure what it does. Another reason could be lack of fonts that
you desire to use (but txfonts are present).

Does including "original-youngryu-tx.map" with command fontmapfile (or
command fontmapline) help you to get rtxss working? If not, can you
please send a minimal example?

ConTeXt uses different mechanisms to get the fonts inside metapost
code working, but metauml is most certainly not aware of any of those,
so it cannot take any advantage of that.

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

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

[NTG-context] metapost fonts

2012-03-17 Thread Matej Barič
Hello,
In a document I'm writing I'm using urw-garamond font successfully. However I 
also use metaUML library for metapost where I'd like to have helvetica (or 
nimbus, heros, etc.).

For latin modern sans, I can use this:

string metauml_defaultFont;
metauml_defaultFont:="ec-lmss10";

But this only works for latin modern sans (which I don't like combined with 
urwgaramond) but not helvetica. I've tried to use some of txfonts and tex-gyre 
fonts (which use helvetica/heros/nimbus for their sans-serif) by writing 
metauml_defaultFont:="txss" and metauml_defaultFont:="ec-qhvcb" but I get an 
error "pdftex (file rtxss): Font rtxss at 600 not found".

I've installed the latest context standalone.

Is there any other way to use helvetica in metapost/metauml or how to 
troubleshoot this error?

Thanks,
matej

___
If your question is of interest to others as well, please add an 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] Line Wrapping/Hyphenation in Chapter/Section Headings

2012-03-17 Thread Wolfgang Schuster

Am 16.03.2012 um 23:34 schrieb Malte Stien:

> Wolfgang,
> 
>> Use ?align={flushleft,nothyphenated}?.
> 
> 
> You mean as in 
> 
> \setuphead[chapter][style=\tfc\ss\bf, alternative=inmargin, align={flushleft, 
> nothyphenated}]
> 
> I tried that and it has no effect. I also found this article here:
> 
> http://tex.stackexchange.com/questions/35686/avoid-hyphenation-in-chapter-title
> 
> ...which suggests using
> 
> \setuphead[chapter][align={flushleft, nothyphenated, verytolerant}]
> 
> ...but that makes no difference either. My chapter titles continue to run off 
> the page to the right. I am happy to post an example somewhere if that helps.


Use also the “broad” keyword for align which makes ConTeXt more tolerant to 
break the line with ragged text.

\setuphead[chapter][style=\ssbfc,alternative=inmargin, 
align={flushleft,broad,nothyphenated}]

\starttext
\chapter{Technical Definitions, Acronyms and Abbreviations}
\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
___