Re: [NTG-context] notes changes

2012-02-19 Thread Peter Park Nelson
Seems like an on/off option would be cleaner.

On Sat, Feb 18, 2012 at 12:01 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 17.02.2012 um 16:40 schrieb Steffen Wolfrum:

 Hi,

 with current beta I get an interesting symbol in cases when my footnotetext 
 doesn't fit on the same page as its marker:

 PastedGraphic-2.pdf

 Nice! But how can I switch it off?

 \setupnote[symbolcommand=\gobbleoneargument]

 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
 ___



-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] columnsets error in 2.08 beta

2012-02-16 Thread Peter Park Nelson
Columnset error is gone in 2.16 beta -- Thanks, Hans.

But there still seems to be a problem in the output routine:

if I place a font switch like \bf or \ss at the beginning of a
paragraph that falls in the first column of my columnset, that column
is suppressed and only the second column is typeset.

If the switch is in the second column, both columns are output, but
there is extra vertical space at the beginning of the first column.

%%- START -%%

\definecolumnset[body][n=2]
\setupbodyfont[10pt]
\starttext
\showframe
\startcolumnset[body]

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus
scelerisque sapien in tellus mattis sodales. Sed condimentum, arcu sit
amet condimentum adipiscing, eros justo condimentum odio, et dapibus
nisl dolor nec urna. Maecenas ut orci dolor. Fusce non nisl
dolor. Pellentesque non nunc metus, in vehicula nibh. Sed quis tortor
purus. Proin hendrerit posuere nunc, in gravida libero semper
ac. Donec aliquam lorem {\bf non sapien pellentesque volutpat sed ut
mauris. Nulla felis odio, consequat at interdum id, aliquet dictum
lacus. Praesent cursus eros at eros dictum porta. In hendrerit diam
sodales tellus porttitor sit amet fringilla orci posuere. Nunc et ante
eget massa feugiat iaculis eu id nisi.} Ut ac risus sit amet diam
tempor mattis eget sit amet felis. Vestibulum ligula nunc, elementum
ut tincidunt sed, {\ss commodo at dui}.

%\column % TEST: FORCE COLUMN BREAK
%\dorecurse{4}{\input tufte\par} % TEST: PUSH NEXT PARAGRAPH TO SECOND COLUMN
\ss \input tufte\par

\stopcolumnset
\stoptext

%%---STOP%%

On Wed, Feb 15, 2012 at 9:52 AM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 Hans, it still does not work.
 BTW, is it possible to revert the Context standalone installation to
 an earlier beta (without going all the way back to the last stable)?

 Error below:

 (K2.tex

 ConTeXt  ver: 2012.02.08 21:58 MKIV  fmt: 2012.2.15  int: english/english

 system           cont-new.mkiv loaded
 (/home/peter/contextbeta/tex/texmf-context/tex/context/base/cont-new.mkiv
 system           beware: some patches loaded from cont-new.mkiv
 )
 system           K2.top loaded

 system           options  start used options

 used options     % runtime options files (command line driven)
 used options     \unprotect
 used options     % feedback and basic job control
 used options     % handy for special styles
 used options     \startluacode
 used options     document = document or { }
 used options     document.arguments={
 used options     }
 used options     document.files={
 used options      K2.tex,
 used options     }
 used options     \stopluacode
 used options     % process info
 used options     \setupsystem[inputfile=K2.tex]
 used options     \setupsystem[\c!n=1,\c!m=1]
 used options     % modes
 used options     % options (not that important)
 used options     \startsetups *runtime:options
 used options     \stopsetups
 used options     % styles and modules
 used options     \startsetups *runtime:modules
 used options     \stopsetups
 used options     % done
 used options     \protect \endinput

 system           options  stop used options

 (K2.top)
 fonts            latin modern fonts are not preloaded
 languages        language en is active
 {/home/peter/contextbeta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
 fonts            preloading latin modern fonts (second stage)
 fonts            typescripts  unknown: library 'loc'
 {/home/peter/contextbeta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/peter/contextbeta/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
 fonts            virtual math  unable to resolve name mapsfromchar
 fonts            fallback modern rm 12pt is loaded
 ! Undefined control sequence.

 system           tex  error on line 6 in file K2.tex: Undefined
 control sequence ...

 1
 2     \definecolumnset[body][n=2]
 3
 4     \starttext
 5     \startcolumnset[body]
 6   \input tufte\par
 7     \stopcolumnset
 8
 9     \stoptext


 \154columnset:page_otr_command_routine ...outine

 \page_otr_commands_process ...outineparameter {#1}
                                                  }\ifx \page_otr_specifics_...
 inserted text ...cess {page_otr_command_routine}
                                                  \page_otr_commands_process...
 inserted text ...eset \the \t_page_otr_commands
                                                  \let \page_otr_commands_pr...
 \setup_outputroutine ...\everyswitchoutputroutine
                                                  \fi \else \let \previousou...
 to be read again
                   \doifelsenothing
 ...
 l.6 \input
           tufte\par
 ?
 ! Interruption.

 system           tex  error on line 6 in file K2.tex: Interruption ...

 1
 2     \definecolumnset[body][n=2]
 3
 4     \starttext
 5     \startcolumnset[body]
 6   \input tufte\par
 7     \stopcolumnset
 8
 9     \stoptext

[NTG-context] \definedescription problems (beta)

2012-02-16 Thread Peter Park Nelson
Two problems using \definedescription the 2.16 beta:

\definedescription[mydescription][location=serried,text={Description}]

%% This gives an error (no blank lines around content):
\startmydescription
This is a description
\stopmydescription

%% But this works (with blank lines):
\startmydescription

This is a description

\stopmydescription

2. location=serried worked correctly before, but now I get a hanging
indent instead.
-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] \definedescription problems (beta)

2012-02-16 Thread Peter Park Nelson
   tufte\par
End of file on the terminal!

!  == Fatal error occurred, no output PDF file produced!





On Thu, Feb 16, 2012 at 2:59 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 16.02.2012 um 21:41 schrieb Peter Park Nelson:

 Two problems using \definedescription the 2.16 beta:

 \definedescription[mydescription][location=serried,text={Description}]

 %% This gives an error (no blank lines around content):
 \startmydescription
 This is a description
 \stopmydescription

 %% But this works (with blank lines):
 \startmydescription

 This is a description

 \stopmydescription

 What error message do you get, make a *working* example.

 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
 ___



-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] columnsets error in 2.08 beta

2012-02-15 Thread Peter Park Nelson
...@wxs.nl wrote:
 On 15-2-2012 06:56, Peter Park Nelson wrote:

 Updated to Feb. 8 beta, now none of my documents with columnsets will
 compile. Without the columnset, the example below works fine:

 \definecolumnset[body][n=2]
 \starttext
 \startcolumnset[body]
 \input tufte\par
 \stopcolumnset
 \stoptext


 you can try the following patch in page-set.mkiv

 \page_otr_set_routine - \page_otr_set_command_routine

 \s!page_otr_command_set_hsize=\page_one_command_set_hsize,

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



-- 
Peter Park Nelson
peter.park.nel...@gmail.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] columnsets error in 2.08 beta

2012-02-14 Thread Peter Park Nelson
Updated to Feb. 8 beta, now none of my documents with columnsets will
compile. Without the columnset, the example below works fine:

\definecolumnset[body][n=2]
\starttext
\startcolumnset[body]
\input tufte\par
\stopcolumnset
\stoptext

Error message:

1 \definecolumnset[body][n=2]
2 \starttext
3 \startcolumnset[body]
4   \input tufte\par
5 \stopcolumnset
6 \stoptext


\154columnset:page_otr_command_routine ...outine

\page_otr_commands_process ...outineparameter {#1}
  }\ifx \page_otr_specifics_...
inserted text ...cess {page_otr_command_routine}
  \page_otr_commands_process...
inserted text ...eset \the \t_page_otr_commands
  \let \page_otr_commands_pr...
\setup_outputroutine ...\everyswitchoutputroutine
  \fi \else \let \previousou...
to be read again
   \doifelsenothing
...
l.4 \input
   tufte\par
?

-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Details.pdf -- how current?

2012-02-04 Thread Peter Park Nelson
Given that ConTeXt has been under development for 10 years since the
Details manual was written, can someone tell me how much of the
material in is still applicable to recent betas? The examples use
parameters that are not documented on the wiki, such as inner
(\setupfloat) in this example on p.61:

\setupfloat
[edgefigure]
[default={inner,height,high,low,none},
maxwidth=4cm,
margin=\strutdepth]


-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Graphics positioning problems in current/recent betas

2012-02-04 Thread Peter Park Nelson
I have been studying the Details manual and have found that many of
the examples presented there do not work correctly with the current or
recent betas. The ones I have tested work correctly on texshow and
with the Texlive 2011 (MkIV Luatex) version.

1. In the first example below (based on Details p. 25), note that the
graphic is positioned very high relative to the paragraph, although
vertical space appears to be reserved correctly:

%% start --%%

\starttext

\setupfloat[figure]
[sidespacebefore=none,sidespaceafter=none,sidealign=depth]

\input tufte\par

\placefigure[inner,none]{caption}{\framed[height=3cm]{graphic}}

\input tufte\par
\stoptext

%% stop ---%%


2. Figure position in the second example below (Details p.65) is
similar, but an empty box is placed instead of the figure:

%% -- start - %%
\starttext
\showboxes

\definelayer[text-1][position=yes]
\defineanchor[rightbottom][text-1][location=lt,hoffset=max,voffset=max]
\definefloat[myfigure][figure]
\setupfloat[myfigure][sidespaceafter=,sidespacebefore=]
\defineanchor[rightbottom][text-1][location=lt,hoffset=max,voffset=max]

\input tufte\par

\placemyfigure
[left,none]
{}
{\anchor[rightbottom]
{\externalfigure[dummy][width=5cm,frame=on]}}

\input tufte\par

\stoptext

%% - stop --%%

-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] Set a block of content at minimum distance from top of page?

2012-02-03 Thread Peter Park Nelson
Aright, whatever, but does anybody use the positioning mechanism with
\anchor described in the Details manual?

On Thu, Feb 2, 2012 at 6:35 PM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 On Thu, Feb 2, 2012 at 3:46 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 Am 02.02.2012 um 21:51 schrieb Peter Park Nelson:

 Hi ConTeXt list,

 I have a document with a graphic (logo) in the upper right corner
 (positioned on a layer and placed as a background). To the left of
 this graphic are several text elements (Title, Author List, etc.) that
 don't go all the way across the page. (Currently I have wrapped them
 in \startnarrower...\stopnarrower -- is there a better way?) But this
 is followed by an Abstract paragraph that uses the full width of the
 page.

 I would like to ensure that the full-width text never starts high
 enough on the page that it encroaches on the upper-right-corner
 graphic. So, I'm looking for a way to protect the graphic, or to force
 the Abstract to start a minimum distance from the top of the page.

 The Abstract can be forced down the page if necessary by manually
 inserting a \godown[] command before it, but I would prefer a
 programmatic solution.

 Floating the graphic and wrapping text around it does not seem like a
 good option, because I want to ensure that its position is absolute
 and it never moves. Also, the Abstract needs to be full-width
 throughout, so I need to force it to start after the graphic rather
 than partially wrapping it.

 Any suggestions appreciated…

 You can use something like the following code but without a example from you 
 it’s difficult to give a answer.

 \showframe[text][text]

 \starttext

 \maxaligned\bgroup

        \startframed[frame=off,location=top,width=10cm,align=flushleft]%
        line 1\\
        line 2\\
        line 3
        \stopframed

        \hfill

        \tbox{\externalfigure[dummy][width=3cm,height=4cm]}%

 \egroup

 \input knuth

 \stoptext

 Wolfgang

 ___

 Here's a minimal example of what I'm talking about.

 I would like the Abstract to not start until it will be clear of the
 logo graphic on the right side.

 In the real document, I cannot be sure how much vertical space will
 taken up by text items (Authors, subtitle, etc.) between the Title and
 the Abstract, hence my question.

 Maybe I am thinking about this in the wrong way and there is a
 different approach? I have more of a DTP background.

 %%---start example ---%%

 %
 %% PAGE LAYOUT
 %

 \setuppapersize[letter][letter]

 \setuplayout
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=5mm,
  headerdistance=3mm,
  footer=5mm,
  footerdistance=3mm,
  grid=yes]

 %
 % LOGO ON FIRST PAGE:
 %

 \useexternalfigure[logo][dummy][type=pdf,width=35mm,height=50mm]

 \definelayer
  [logo-layer]
  [width=\paperwidth,height=\paperheight]

 \setlayer
  [logo-layer]
  [preset=righttop,hoffset=15mm,voffset=10mm]
  {\externalfigure[logo]}

 \setupbackgrounds[page][background={logo-layer}]

 %%%
 %% HEADS
 %%%

 \setuphead[title]
  [header=high,
  footer=high,
  grid={page},
  width=140mm,
  textstyle=\tfc\ss\bf]

 %
 %% ARTICLE ABSTRACT
 %

 \definedescription[Abstract][%
  location=serried,
  width=broad,
  text={Abstract},
  indentnext=no]%,

 %%
 %% ARTICLE TEXT
 %%
 \starttext

 \title{The title of this article wraps at 140 mm so it doesn't hit the logo}

 % A VARIABLE NUMBER OF TEXT ITEMS WILL BE PLACED HERE...

 % \godown[3cm] % UNCOMMENT TO FORCE THE ABSTRACT BELOW THE LOGO

 \startAbstract
 But the abstract can continue all the way across the page...\input tufte\par
 \stopAbstract

 \stoptext

 %%--- end example --%

 --
 Peter Park Nelson
 peter.park.nel...@gmail.com



-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-02-03 Thread Peter Park Nelson
Yeah! Woo!

On Thu, Jan 26, 2012 at 2:40 PM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 On Thu, Jan 26, 2012 at 12:18 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 Am 26.01.2012 um 03:41 schrieb Peter Park Nelson:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread: 
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html.

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 Is MkIV a option for you? The problem had been there for a while as well but 
 now it’s fixed
 you can decide what ConTeXt should do after the first page.

 With the “state” you can control whether the layout at the second page 
 should be switched
 back to the global layout with \definelayout[…][state=start] (this is the 
 default setting) or
 it should remain with \definelayout[…][state=repeat].

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,      % no header
  headerdistance=0mm,
  footer=25mm,      % big footer
  footerdistance=5mm,
  grid=yes]

 You have to set only what’s different from the global layout.

 \definelayout
  [first]
  [header=0mm,
  headerdistance=0mm,
  footer=25mm,
  footerdistance=5mm]

 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
 ___

 Wolfgang and Wagner, thank you for taking the time to respond to this.

 I am using MkIV. I just updated to the latest beta (I had been running
 one beta behind). I was intentionally not using layout inheritance in
 my \definelayout commands to eliminate the possibility of a problem in
 the inheritance mechanism.

 Interaction with columnsets also seems to be part of the problem, as I
 will try to explain.

 1.  In a layout with no columnset: \definelayout[first] creates a
 unique layout for the first page and returns to the default layout on
 page 2. BUT from page 3 onwards, the text does not go all the way to
 the bottom of the text area (although \showframe indicates that the
 text area is correct). A workaround is to add
 \definelayout[current][...parameters that undo the first-page
 parameters...].

 2.  In a layout with a columnset
 (\definecolumnset[body][n=2,balancing=yes]): use of
 \definelayout[first] causes failure with the error message below.
 Ignoring warnings and forcing Context to continue results in a pdf
 with \showframe lines drawn correctly, but text not filling the whole
 column height, as described previously.

 #

 ERROR MESSAGE:

 system           tex  error on line 70 in file J2-pagearea.tex:
 Emergency stop ...

 60       [footer]
 61       [footer]
 62
 63     \starttext
 64     \showframe
 65     \showgrid
 66
 67
 68     \startcolumnset[body]
 69
 70   \dorecurse{40}{\input tufte \par }
 71
 72     %\input tufte \par
 73
 74     \stopcolumnset
 75
 76     \stoptext
 77


 \OTRSETdoifcellelse ...er #1:\number #2\endcsname
                                                  \@EA \secondoftwoarguments...
 \@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell
                                                  {\global \advance \columnl...
 \redoloop -\expandrecursecontent
                                  \endofloop
 to be read again
                   {
 inserted text
                44
 \endofloop ...expr \recurselevel +\plusone \relax
                                                  }
 ...
 l.70 \dorecurse{40}{\input tufte \par }

 End of file on the terminal!

 !  == Fatal error occurred, no output PDF file produced!

 --
 Peter Park Nelson
 peter.park.nel...@gmail.com



-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Set a block of content at minimum distance from top of page?

2012-02-02 Thread Peter Park Nelson
Hi ConTeXt list,

I have a document with a graphic (logo) in the upper right corner
(positioned on a layer and placed as a background). To the left of
this graphic are several text elements (Title, Author List, etc.) that
don't go all the way across the page. (Currently I have wrapped them
in \startnarrower...\stopnarrower -- is there a better way?) But this
is followed by an Abstract paragraph that uses the full width of the
page.

I would like to ensure that the full-width text never starts high
enough on the page that it encroaches on the upper-right-corner
graphic. So, I'm looking for a way to protect the graphic, or to force
the Abstract to start a minimum distance from the top of the page.

The Abstract can be forced down the page if necessary by manually
inserting a \godown[] command before it, but I would prefer a
programmatic solution.

Floating the graphic and wrapping text around it does not seem like a
good option, because I want to ensure that its position is absolute
and it never moves. Also, the Abstract needs to be full-width
throughout, so I need to force it to start after the graphic rather
than partially wrapping it.

Any suggestions appreciated...
PPN
-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] Set a block of content at minimum distance from top of page?

2012-02-02 Thread Peter Park Nelson
On Thu, Feb 2, 2012 at 3:46 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 02.02.2012 um 21:51 schrieb Peter Park Nelson:

 Hi ConTeXt list,

 I have a document with a graphic (logo) in the upper right corner
 (positioned on a layer and placed as a background). To the left of
 this graphic are several text elements (Title, Author List, etc.) that
 don't go all the way across the page. (Currently I have wrapped them
 in \startnarrower...\stopnarrower -- is there a better way?) But this
 is followed by an Abstract paragraph that uses the full width of the
 page.

 I would like to ensure that the full-width text never starts high
 enough on the page that it encroaches on the upper-right-corner
 graphic. So, I'm looking for a way to protect the graphic, or to force
 the Abstract to start a minimum distance from the top of the page.

 The Abstract can be forced down the page if necessary by manually
 inserting a \godown[] command before it, but I would prefer a
 programmatic solution.

 Floating the graphic and wrapping text around it does not seem like a
 good option, because I want to ensure that its position is absolute
 and it never moves. Also, the Abstract needs to be full-width
 throughout, so I need to force it to start after the graphic rather
 than partially wrapping it.

 Any suggestions appreciated…

 You can use something like the following code but without a example from you 
 it’s difficult to give a answer.

 \showframe[text][text]

 \starttext

 \maxaligned\bgroup

        \startframed[frame=off,location=top,width=10cm,align=flushleft]%
        line 1\\
        line 2\\
        line 3
        \stopframed

        \hfill

        \tbox{\externalfigure[dummy][width=3cm,height=4cm]}%

 \egroup

 \input knuth

 \stoptext

 Wolfgang

 ___

Here's a minimal example of what I'm talking about.

I would like the Abstract to not start until it will be clear of the
logo graphic on the right side.

In the real document, I cannot be sure how much vertical space will
taken up by text items (Authors, subtitle, etc.) between the Title and
the Abstract, hence my question.

Maybe I am thinking about this in the wrong way and there is a
different approach? I have more of a DTP background.

%%---start example ---%%

%
%% PAGE LAYOUT
%

\setuppapersize[letter][letter]

\setuplayout
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=5mm,
  headerdistance=3mm,
  footer=5mm,
  footerdistance=3mm,
  grid=yes]

%
% LOGO ON FIRST PAGE:
%

\useexternalfigure[logo][dummy][type=pdf,width=35mm,height=50mm]

\definelayer
  [logo-layer]
  [width=\paperwidth,height=\paperheight]

\setlayer
  [logo-layer]
  [preset=righttop,hoffset=15mm,voffset=10mm]
  {\externalfigure[logo]}

\setupbackgrounds[page][background={logo-layer}]

%%%
%% HEADS
%%%

\setuphead[title]
 [header=high,
  footer=high,
  grid={page},
  width=140mm,
  textstyle=\tfc\ss\bf]

%
%% ARTICLE ABSTRACT
%

\definedescription[Abstract][%
  location=serried,
  width=broad,
  text={Abstract},
  indentnext=no]%,

%%
%% ARTICLE TEXT
%%
\starttext

\title{The title of this article wraps at 140 mm so it doesn't hit the logo}

% A VARIABLE NUMBER OF TEXT ITEMS WILL BE PLACED HERE...

% \godown[3cm] % UNCOMMENT TO FORCE THE ABSTRACT BELOW THE LOGO

\startAbstract
But the abstract can continue all the way across the page...\input tufte\par
\stopAbstract

\stoptext

%%--- end example --%

-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
Wagner,

Thanks for pointing this out, it works:

\definelayout
  [1]
  [first page layout...]

\definelayout
  [2]
  [reset] % call for a reset when the second page is reached

\setuplayout
  [default layout...]

But the question of why \definelayout[first] does not work correctly
remains. Perhaps the developers will look into it.

PPN

On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo wagnerluis1...@gmail.com wrote:
 According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you can
 do this by using the commands \setuplayout[yourcustomlayout] and
 \setuplayout[reset] at the location you want to change the layout.

 --
 Wagner Macedo


 On 25 January 2012 23:41, Peter Park Nelson peter.park.nel...@gmail.com
 wrote:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread:
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
 .

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 %%---

 setuppapersize[letter][letter]
 \setupindenting[yes, medium]

 \setuplayout
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=10mm,  % normal header
  headerdistance=5mm,
  footer=5mm,
  footerdistance=5mm,
  grid=yes]

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,      % no header
  headerdistance=0mm,
  footer=25mm,      % big footer
  footerdistance=5mm,
  grid=yes]

 \definecolumnset[body][n=2,balancing=yes]

 \setupheadertexts
  [This is a header]
  [pagenumber]
  [pagenumber]
  [Some text]

 \setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

 \starttext

 \startcolumnset[body]

 \dorecurse{20}{\input tufte\par}

 \stopcolumnset

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



-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
Oh crap, I thought Wagner's solution worked but it doesn't -- quite.

\showframe indicates that the page areas are defined correctly, and
the footer frame on page 2 and later is the correct size. But Context
is not filling the text columns all the way to the bottom; The body
text is still stopping short as though the larger footer was still in
effect.

Frustrating.

On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo wagnerluis1...@gmail.com wrote:
 According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you can
 do this by using the commands \setuplayout[yourcustomlayout] and
 \setuplayout[reset] at the location you want to change the layout.

 --
 Wagner Macedo


 On 25 January 2012 23:41, Peter Park Nelson peter.park.nel...@gmail.com
 wrote:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread:
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
 .

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 %%---

 setuppapersize[letter][letter]
 \setupindenting[yes, medium]

 \setuplayout
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=10mm,  % normal header
  headerdistance=5mm,
  footer=5mm,
  footerdistance=5mm,
  grid=yes]

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,      % no header
  headerdistance=0mm,
  footer=25mm,      % big footer
  footerdistance=5mm,
  grid=yes]

 \definecolumnset[body][n=2,balancing=yes]

 \setupheadertexts
  [This is a header]
  [pagenumber]
  [pagenumber]
  [Some text]

 \setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

 \starttext

 \startcolumnset[body]

 \dorecurse{20}{\input tufte\par}

 \stopcolumnset

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



-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
On Thu, Jan 26, 2012 at 12:18 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 26.01.2012 um 03:41 schrieb Peter Park Nelson:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread: 
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html.

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 Is MkIV a option for you? The problem had been there for a while as well but 
 now it’s fixed
 you can decide what ConTeXt should do after the first page.

 With the “state” you can control whether the layout at the second page should 
 be switched
 back to the global layout with \definelayout[…][state=start] (this is the 
 default setting) or
 it should remain with \definelayout[…][state=repeat].

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,      % no header
  headerdistance=0mm,
  footer=25mm,      % big footer
  footerdistance=5mm,
  grid=yes]

 You have to set only what’s different from the global layout.

 \definelayout
  [first]
  [header=0mm,
  headerdistance=0mm,
  footer=25mm,
  footerdistance=5mm]

 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
 ___

Wolfgang and Wagner, thank you for taking the time to respond to this.

I am using MkIV. I just updated to the latest beta (I had been running
one beta behind). I was intentionally not using layout inheritance in
my \definelayout commands to eliminate the possibility of a problem in
the inheritance mechanism.

Interaction with columnsets also seems to be part of the problem, as I
will try to explain.

1.  In a layout with no columnset: \definelayout[first] creates a
unique layout for the first page and returns to the default layout on
page 2. BUT from page 3 onwards, the text does not go all the way to
the bottom of the text area (although \showframe indicates that the
text area is correct). A workaround is to add
\definelayout[current][...parameters that undo the first-page
parameters...].

2.  In a layout with a columnset
(\definecolumnset[body][n=2,balancing=yes]): use of
\definelayout[first] causes failure with the error message below.
Ignoring warnings and forcing Context to continue results in a pdf
with \showframe lines drawn correctly, but text not filling the whole
column height, as described previously.

#

ERROR MESSAGE:

system   tex  error on line 70 in file J2-pagearea.tex:
Emergency stop ...

60   [footer]
61   [footer]
62
63 \starttext
64 \showframe
65 \showgrid
66
67
68 \startcolumnset[body]
69
70   \dorecurse{40}{\input tufte \par }
71
72 %\input tufte \par
73
74 \stopcolumnset
75
76 \stoptext
77


\OTRSETdoifcellelse ...er #1:\number #2\endcsname
  \@EA \secondoftwoarguments...
\@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell
  {\global \advance \columnl...
\redoloop -\expandrecursecontent
  \endofloop
to be read again
   {
inserted text
44
\endofloop ...expr \recurselevel +\plusone \relax
  }
...
l.70 \dorecurse{40}{\input tufte \par }

End of file on the terminal!

!  == Fatal error occurred, no output PDF file produced!

-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
On Thu, Jan 26, 2012 at 2:40 PM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 On Thu, Jan 26, 2012 at 12:18 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 Am 26.01.2012 um 03:41 schrieb Peter Park Nelson:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread: 
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html.

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 Is MkIV a option for you? The problem had been there for a while as well but 
 now it’s fixed
 you can decide what ConTeXt should do after the first page.

 With the “state” you can control whether the layout at the second page 
 should be switched
 back to the global layout with \definelayout[…][state=start] (this is the 
 default setting) or
 it should remain with \definelayout[…][state=repeat].

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,      % no header
  headerdistance=0mm,
  footer=25mm,      % big footer
  footerdistance=5mm,
  grid=yes]

 You have to set only what’s different from the global layout.

 \definelayout
  [first]
  [header=0mm,
  headerdistance=0mm,
  footer=25mm,
  footerdistance=5mm]

 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
 ___

 Wolfgang and Wagner, thank you for taking the time to respond to this.

 I am using MkIV. I just updated to the latest beta (I had been running
 one beta behind). I was intentionally not using layout inheritance in
 my \definelayout commands to eliminate the possibility of a problem in
 the inheritance mechanism.

 Interaction with columnsets also seems to be part of the problem, as I
 will try to explain.

 1.  In a layout with no columnset: \definelayout[first] creates a
 unique layout for the first page and returns to the default layout on
 page 2. BUT from page 3 onwards, the text does not go all the way to
 the bottom of the text area (although \showframe indicates that the
 text area is correct). A workaround is to add
 \definelayout[current][...parameters that undo the first-page
 parameters...].

 2.  In a layout with a columnset
 (\definecolumnset[body][n=2,balancing=yes]): use of
 \definelayout[first] causes failure with the error message below.
 Ignoring warnings and forcing Context to continue results in a pdf
 with \showframe lines drawn correctly, but text not filling the whole
 column height, as described previously.

 #

 ERROR MESSAGE:

 system           tex  error on line 70 in file J2-pagearea.tex:
 Emergency stop ...

 60       [footer]
 61       [footer]
 62
 63     \starttext
 64     \showframe
 65     \showgrid
 66
 67
 68     \startcolumnset[body]
 69
 70   \dorecurse{40}{\input tufte \par }
 71
 72     %\input tufte \par
 73
 74     \stopcolumnset
 75
 76     \stoptext
 77


 \OTRSETdoifcellelse ...er #1:\number #2\endcsname
                                                  \@EA \secondoftwoarguments...
 \@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell
                                                  {\global \advance \columnl...
 \redoloop -\expandrecursecontent
                                  \endofloop
 to be read again
                   {
 inserted text
                44
 \endofloop ...expr \recurselevel +\plusone \relax
                                                  }
 ...
 l.70 \dorecurse{40}{\input tufte \par }

 End of file on the terminal!

 !  == Fatal error occurred, no output PDF file produced!

 --
 Peter Park Nelson
 peter.park.nel...@gmail.com

More testing with the old columns mechanism instead of columnset:

\startcolumns[n=2] produces roughly the same result as no columns, the
text stops short of the bottom of the page. However, the
\definelayout[current] workaround I mentioned does not solve the
problem in this case.

I'm quite willing to abandon the columnset mechanism if I can get a
working solution with columns.

-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
If your question is of interest to others as well, please

Re: [NTG-context] formulas (display math) and grid

2012-01-25 Thread Peter Park Nelson
On Wed, Jan 25, 2012 at 2:16 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 25.01.2012 um 07:13 schrieb Peter Park Nelson:

 I have a layout using a columset and grid. When I insert a formula
 into a column of text, the text following the formula is not snapped
 to the grid, and the next paragraph is not indented. How can I make
 the text return to the grid after a formula?

 Can you provide a full minimal example and not only a snipped?

 And have normal paragraph indentation?

 \setupformulas[indentnext=yes]

 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
 ___


Oops, I figured it out while putting together the minimal example -- I
had set the grid tolerance  to verytolerant while testing. A good
reason to always make an MWE before asking.

Thanks for responding,
PPN

-- 
Peter Park Nelson
peter.park.nel...@gmail.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] \definelayout[first] does not yield to default layout on page 2

2012-01-25 Thread Peter Park Nelson
First-page layout is an issue that I have asked about before, but
maybe I am doing something wrong. Here is my question in an earlier
thread: 
http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
.

I want to define a layout for the first page of my document with
different header and footer formatting -- specifically, no header and
a large footer to hold publication information. Based on examples on
Contextgarden and this list, I think my code below is correct.
However, the first page formatting is continued on all pages of the
document. The effect is the same when using \definelayout[first] and
\definelayout[1].

%%---

setuppapersize[letter][letter]
\setupindenting[yes, medium]

\setuplayout
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=10mm,  % normal header
  headerdistance=5mm,
  footer=5mm,
  footerdistance=5mm,
  grid=yes]

\definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,  % no header
  headerdistance=0mm,
  footer=25mm,  % big footer
  footerdistance=5mm,
  grid=yes]

\definecolumnset[body][n=2,balancing=yes]

\setupheadertexts
  [This is a header]
  [pagenumber]
  [pagenumber]
  [Some text]

\setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

\starttext

\startcolumnset[body]

\dorecurse{20}{\input tufte\par}

\stopcolumnset

\stoptext

%%---

Thanks,
-- 
Peter Park Nelson
peter.park.nel...@gmail.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] formulas (display math) and grid

2012-01-24 Thread Peter Park Nelson
I have a layout using a columset and grid. When I insert a formula
into a column of text, the text following the formula is not snapped
to the grid, and the next paragraph is not indented. How can I make
the text return to the grid after a formula? And have normal paragraph
indentation?

\input tufte\par

\placeformula\startformula
q = \delta \frac{\partial p}{\partial x} =
\delta(\phi) p_{vsat}(\theta) \frac{\partial \phi}{\partial x} =
\left[ \frac{\delta_a}{\mu(\theta)} p_{vsat}(\theta) \right]
\frac{\partial \phi}{\partial x}
\stopformula

\input tufte\par

Thanks,
-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Footnote marker inside custom list environment - font problem

2012-01-23 Thread Peter Park Nelson
Hello,

Maybe this is related to the problems with \definenote posted
recently...I have played with setups but have been unable to figure
this one out.

I have a custom enumeration environment to display the names of
journal authors in a paragraph format, with local footnotes for their
affiliations. Since updating, it no longer works as expected; the
footnote markers after author names use the document roman font
instead of the sans font.

Also, if I use this inside a \startnarrower...\stopnarrower block, the
environment extends past where it should stop, which didn't happen
before.


\defineitemgroup[Authorlist]

\setupitemgroup[Authorlist]
   [each]
   [text]
   [symbol=0,
margin=no,
align=normal,
width=-10pt,
distance=0pt,
leftmargin=no,
location=top,
textdistance=big]

\definenote[affiliation]
  [numberconversion=Characters,
   style=\tfa\ss\bf,
   numbercommand=,
   paragraph=yes]

\setupnotedefinition[affiliation]
   [location=serried,
distance=.2em,
display=no,
style=\tfa\ss]

\starttext

\startAuthorlist
\item Doris Doe\affiliation[misk]{Miskatonic University, Dept. of
Allopatric Studies}
\stopAuthorlist

\stopAuthorlist

\stoptext
-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] Footnote marker inside custom list environment - font problem

2012-01-23 Thread Peter Park Nelson
On Mon, Jan 23, 2012 at 3:56 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 23.01.2012 um 22:47 schrieb Peter Park Nelson:

 Hello,

 Maybe this is related to the problems with \definenote posted
 recently...I have played with setups but have been unable to figure
 this one out.

 It was \setupnote and this problem is fixed.

 I have a custom enumeration environment to display the names of
 journal authors in a paragraph format, with local footnotes for their
 affiliations. Since updating, it no longer works as expected; the
 footnote markers after author names use the document roman font
 instead of the sans font.

 You have to use the textstyle key, the value of the style is only used
 when nothing is set for the headstyle or textstyle keys but textstyle
 already has a different value.

 Also, if I use this inside a \startnarrower...\stopnarrower block, the
 environment extends past where it should stop, which didn't happen
 before.

 Can you show a example.

 Wolfgang

Thank you, that textcommand parameter was the missing piece.

I will try to put together a minimal example of the width thing, but
this document setup is getting complicated now so I should see if it
can be refactored first to be simpler.

I have another related command that is not working now -- I defined
this little macro for convenience so that I could reuse the a single
affiliation for multiple authors after I had used it once.

\def\useaffiliation#1{\high{\note[#1]}}

Now, it inserts the numbers correctly but they are in the wrong font
-- everything else is in sans, they are in document roman. Oddly, if I
just use \note[] without the \high{}, the note numbers are in the
correct font.

-- 
Peter Park Nelson
peter.park.nel...@gmail.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] \note does not preserve formatting -- example

2012-01-23 Thread Peter Park Nelson
After updating to the current beta, I discovered that the \note macro
does not format the note marker correctly.

In the minimal example below, I define an item group for a
paragraph-formatted list of article authors, and an affiliation note
for a paragraph-formatted list of affiliations below them. (This is
fairly common in academic journals; I have left out most of the text
formatting.)

The note marks for the third and fourth authors (Jones and Mandrell),
which are created using the \note macro to reference previous
affiliations, are too small and not bold.

I would guess this is related to changes around line 122 of
strc-not.mkiv, dealing with the handling of note attributes (see:
\def\usenotestyleandcolor).
\setuppapersize[letter][letter]

\defineitemgroup[Authorlist]
\setupitemgroup[Authorlist]
   [each]
   [text]
   [symbol=0,
margin=no,
align=normal,
width=-10pt,
distance=0pt,
leftmargin=no,
location=top,
textdistance=big]

\definenote[affiliation]
  [numbercommand=\ss,
   textstyle=\tfx\bf,
   paragraph=yes]

\setupnotedefinition[affiliation]
   [location=serried,
distance=.4em,
display=no]

\starttext

\startlocalnotes[affiliation]

\startAuthorlist

% Convenience macros for setting up some affiliations separately:
\def\useaffiliation#1{\note[#1]}
\def\makeaffiliation[#1]#2{\setnotetext[affiliation][#1]{#2}}
\makeaffiliation[opry]{The Grand Ole Opry}


% The list of authors:
\item Doris Doe\affiliation[misk]{Miskatonic University}
\item Robert Roe\affiliation[love]{Lovecraft Institute}
\item Cleopatra~Jones\note[misk]
\item Barbara Mandrell\useaffiliation{opry}

\stopAuthorlist

\placelocalnotes[affiliation]
\stoplocalnotes

\stoptext
-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] SciTE configuration to use mkiv instead of mkii

2012-01-03 Thread Peter Park Nelson
Thanks for your responses. I should have specified that I am using
Linux (Ubuntu). I don't have any previous SciTE configuration files in
my home directory.

I used the instructions from contextgarden and
scite-context-readme.pdf, including creating a launch script that sets
the PATH to include my context standalone binary. What I don't
understand now is that SciTE finds the correct standalone binary but
uses texexec to run mkii instead of mkiv as is supposed to be the
defuault:

ConTeXt  ver: 2011.12.31 15:44 MKII

and calls an old pdftex from a separate TexLive installation:

This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)

Any suggestions?
Thanks.

texexec --pdf H1.tex
/home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
warning: Insecure world writable dir /usr/local/texlive in PATH, mode
040777
TeXExec | processing document 'H1.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file H1.top
TeXExec | using randomseed 1125
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en.mkii
warning: Could not open char translation file `natural.tcx'.
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 \write18 enabled.
entering extended mode
(./H1.tex

ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

system  : cont-new.mkii loaded
(/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii
systems : beware: some patches loaded from cont-new.mkii
)
system  : cont-sys.rme loaded
(/home/peter/context1220/tex/texmf-context/tex/context/user/cont-sys.rme
(/home/peter/context1220/tex/texmf-context/tex/context/base/type-siz.mkii)
(/home/peter/context1220/tex/texmf-context/tex/context/base/type-one.mkii))
system  : H1.top loaded
(./H1.top)

On Tue, Jan 3, 2012 at 9:58 AM, John Kitzmiller jki...@gmail.com wrote:
 It looks like you need to point Scite to
 /home/peter/context1220/texmf-mswin/bin (assuming you are using
 windows) in your PATH.



 On Mon, Jan 2, 2012 at 10:52 PM, Peter Park Nelson
 peter.park.nel...@gmail.com wrote:

 Hello, I installed and configured SciTE today to try it out. I am
 using the standalone distribution. When I try to process a context
 document with F7, SciTE calls texexec and uses mkii instead of mkiv (I
 always use mkiv/luatex). How do I configure SciTE to use mkiv?

 Here's the beginning of the output:

 texexec --pdf H1.tex
 /home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
 warning: Insecure world writable dir /usr/local/texlive in PATH, mode
 040777
 TeXExec | processing document 'H1.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file H1.top
 TeXExec | using randomseed 202
 TeXExec | tex engine: pdftex
 TeXExec | tex format: cont-en.mkii
 warning: Could not open char translation file `natural.tcx'.
 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
  \write18 enabled.
 entering extended mode
 (./H1.tex

 ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

 system          : cont-new.mkii loaded
 (/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii

 [...more output...]
 --
 Peter Park Nelson
 peter.park.nel...@gmail.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
 ___
 ___
 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
 ___



-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] SciTE configuration to use mkiv instead of mkii

2012-01-03 Thread Peter Park Nelson
OK, I just realized that the pdftex Tex Live 2010 actually is the
pdftex in the current context beta...

peter@computer:~$ which pdftex
/home/peter/context1220/tex/texmf-linux/bin/pdftex

peter@computer:~$ pdftex -v
pdfTeX 3.1415926-1.40.11-2.2 (TeX Live 2010)
kpathsea version 6.0.0
Copyright 2010 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.40; using libpng 1.2.40
Compiled with zlib 1.2.3; using zlib 1.2.3
Compiled with xpdf version 3.02pl4

so the problem is really just mkii vs. mkiv.


On Tue, Jan 3, 2012 at 2:07 PM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 Thanks for your responses. I should have specified that I am using
 Linux (Ubuntu). I don't have any previous SciTE configuration files in
 my home directory.

 I used the instructions from contextgarden and
 scite-context-readme.pdf, including creating a launch script that sets
 the PATH to include my context standalone binary. What I don't
 understand now is that SciTE finds the correct standalone binary but
 uses texexec to run mkii instead of mkiv as is supposed to be the
 defuault:

 ConTeXt  ver: 2011.12.31 15:44 MKII

 and calls an old pdftex from a separate TexLive installation:

 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)

 Any suggestions?
 Thanks.

texexec --pdf H1.tex
 /home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
 warning: Insecure world writable dir /usr/local/texlive in PATH, mode
 040777
 TeXExec | processing document 'H1.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file H1.top
 TeXExec | using randomseed 1125
 TeXExec | tex engine: pdftex
 TeXExec | tex format: cont-en.mkii
 warning: Could not open char translation file `natural.tcx'.
 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
  \write18 enabled.
 entering extended mode
 (./H1.tex

 ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

 system          : cont-new.mkii loaded
 (/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii
 systems         : beware: some patches loaded from cont-new.mkii
 )
 system          : cont-sys.rme loaded
 (/home/peter/context1220/tex/texmf-context/tex/context/user/cont-sys.rme
 (/home/peter/context1220/tex/texmf-context/tex/context/base/type-siz.mkii)
 (/home/peter/context1220/tex/texmf-context/tex/context/base/type-one.mkii))
 system          : H1.top loaded
 (./H1.top)

 On Tue, Jan 3, 2012 at 9:58 AM, John Kitzmiller jki...@gmail.com wrote:
 It looks like you need to point Scite to
 /home/peter/context1220/texmf-mswin/bin (assuming you are using
 windows) in your PATH.



 On Mon, Jan 2, 2012 at 10:52 PM, Peter Park Nelson
 peter.park.nel...@gmail.com wrote:

 Hello, I installed and configured SciTE today to try it out. I am
 using the standalone distribution. When I try to process a context
 document with F7, SciTE calls texexec and uses mkii instead of mkiv (I
 always use mkiv/luatex). How do I configure SciTE to use mkiv?

 Here's the beginning of the output:

 texexec --pdf H1.tex
 /home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
 warning: Insecure world writable dir /usr/local/texlive in PATH, mode
 040777
 TeXExec | processing document 'H1.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file H1.top
 TeXExec | using randomseed 202
 TeXExec | tex engine: pdftex
 TeXExec | tex format: cont-en.mkii
 warning: Could not open char translation file `natural.tcx'.
 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
  \write18 enabled.
 entering extended mode
 (./H1.tex

 ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

 system          : cont-new.mkii loaded
 (/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii

 [...more output...]
 --
 Peter Park Nelson
 peter.park.nel...@gmail.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
 ___
 ___
 If your question is of interest to others as well, please add an entry to 
 the Wiki!

 maillist

[NTG-context] SciTE configuration to use mkiv instead of mkii

2012-01-02 Thread Peter Park Nelson
Hello, I installed and configured SciTE today to try it out. I am
using the standalone distribution. When I try to process a context
document with F7, SciTE calls texexec and uses mkii instead of mkiv (I
always use mkiv/luatex). How do I configure SciTE to use mkiv?

Here's the beginning of the output:

texexec --pdf H1.tex
/home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
warning: Insecure world writable dir /usr/local/texlive in PATH, mode
040777
TeXExec | processing document 'H1.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file H1.top
TeXExec | using randomseed 202
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en.mkii
warning: Could not open char translation file `natural.tcx'.
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 \write18 enabled.
entering extended mode
(./H1.tex

ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

system  : cont-new.mkii loaded
(/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii

[...more output...]
-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] Header/footer fonts problem in 20 DEC 2011 beta

2011-12-28 Thread Peter Park Nelson
Thank you, Hans.

Can you tell me a better way to do the header rule than \hairline? I
was using \setupbackgrounds[header][bottomframe=on] but I wanted to
have an empty header (with vertical header space and no bottomframe)
on the first page and I could not figure out how to turn off the frame
on that page only. I suppose I could use header=high and define a
different layout for the first page... but if there is a better way to
do a rule that would be handy.

PPN

On Wed, Dec 28, 2011 at 4:05 AM, Hans Hagen pra...@wxs.nl wrote:
 On 28-12-2011 06:55, Peter Park Nelson wrote:

 Hans, I'm including a minimal example below. Behavior is the same
 using the 23 dec 2011 beta: odd page headers are not sans, and odd
 page footers are not bold.  Even though I set state=empty for headers
 and footers, they appear on the first page.


 Another odd thing -- if I use \setupheader[options...] instead of
 \setupheader[text][options...], I get an extra horizontal rule
 (\hairline?) on the left side of the page...


 - I fixed the font
 - I added an extra hsize setting to get the rule right (btw, hairline is not
 the best choice here)

 I'll upload a beta later today.

 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
 -



-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] \definelayout

2011-12-28 Thread Peter Park Nelson
Update with a minimal working example.

If a layout is specified for the first page
(\definelayout[first][...=...], that specification is carried on
through all subsequent pages; the layout does not return to the
default specified with \setuplayout[...=...] on the second page.

If a layout is specified for a single later page
(\definelayout[3][...=...]), that specification is carried on too. In
the case of header/footer size, the body text overruns the footer area
on subsequent pages. In the case of backspace (text width), the first
paragraph on the page with the new layout is the default layout width
but the rest are OK. (I have seen this width issue mentioned before
and it may not be possible to change this behavior, but the
header/footer size is a problem for me.)

Thanks.

%%-snip-%%

\setuppapersize[letter][letter]
\setupindenting[yes, medium]

\setuplayout[% Default page layout
  width=middle,
  backspace=20mm,
  topspace=10mm,
  header=5mm,
  headerdistance=5mm,
  footer=5mm,
  footerdistance=5mm,
  grid=tolerant]

%% First page layout does not return to default on page 2
\definelayout[first][%
  footer=25mm,
  header=25mm]

%% Text after page 3 runs over footer area:
% \definelayout[3][% Layout for page 3
%   footer=25mm,
%   header=25mm]

%% Testing a change in text width:
%\definelayout[3][%
% backspace=50mm]

%%
 HEADERS AND FOOTERS:
%%

\setuppagenumbering
  [alternative=doublesided,
   location=]

\setupheader[text]
  [state=empty,
   style=\ss]


\setupheadertexts
  [Header]
  [pagenumber]
  [pagenumber]
  [Header]

\setupfooter[text]
  [state=empty,style=bold]

\setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

%
 TEXT STARTS HERE:
%

\showframe

\starttext

\title{Title}

\dorecurse{30}{\input tufte\par}

\stoptext

%%-snip-%%

On Tue, Dec 27, 2011 at 10:19 PM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 The example is not working correctly for me with the 23 Dec. beta. If
 I set a larger footer size for the first page, that larger size is
 carried over to all the rest of the document.

 Here's my code:

 \setuplayout[%
  width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=5mm,
  headerdistance=5mm,
  footer=5mm, % Normal footer size
  footerdistance=5mm,
  grid=tolerant]

 \definelayout[first][% Larger footer on first page
  footer=15mm,
  footerdistance=5mm]


 On Tue, Dec 13, 2011 at 12:20 PM, Andreas Harder ahar...@uni-koblenz.de 
 wrote:

 On 13.12.2011, at 16:44, Wolfgang Schuster wrote:


 Am 13.12.2011 um 16:26 schrieb Andreas Harder:

 Hi all,

 would someone please enlighten me. What is the correct usage of 
 \definelayout?

 \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt]
 % \setuplayout[default] % needed?
 \definelayout[first]  [default][header=2cm]
 \definelayout[unknown][default]%[reset]
 % \definelayout[2]      [default]%[reset]
 \definelayout[last]   [default][footer=2cm]

 \starttext  \showframe % \checkcurrentlayout
 %% Variant A: fails with \default[unknown]
 first\page unknown=(2)\page \page unknown=(3)\page last

 %% Variant B: fails with \definelayout[2]
 % first\page unknown=(2)=last
 \stoptext

 By the way the output differs with the latest beta in comparison with the 
 latest experimental.

 Hans changed part of the \setuplayout code in the last betas (there are 
 more than you can see in the ctx suite).

 When context checks the layout (happens with \starttext and when it starts 
 a new page) it test for the following defined layouts:

 • “pagenumber”
 • “-pagenumber”
 • “last” (is only used for the last page of the document)
 • “first” (is only used for the first page of the document)
 • “unknown”
 • “current”
 • “odd” and “even” (used for left and right pages)

 All entries in this list are reserved names but you can also define your 
 own layout but in this case
 you have to enable it with \setuplayout[name].

 One of the new features in MkIV is that layout parameters can be inherited, 
 e.g. when
 you define a layout with the name “one” {\definelayout[one][..,..=..,..]) 
 and another one with
 the name two (\definelayout[two][one][..,..=..,..]) this will take the 
 values from one of there
 are nothing set for a value from one and when there is also nothing set for 
 one the global
 values are used (\setuplayout[..,..=..,..]).

 Hi Wolfgang,

 I modified the example (hopefully in a meaningful manner). I get the desired 
 output with the old beta, but it still fails with todays beta.

 \setuplayout [width=middle,height=middle,header=0pt,footer=0pt]
 \definelayout[first]  [header=2cm]
 \definelayout[last]   [footer=2cm]
 \definelayout[current]

 \starttext  \showframe % \checkcurrentlayout

Re: [NTG-context] \definelayout

2011-12-27 Thread Peter Park Nelson
The example is not working correctly for me with the 23 Dec. beta. If
I set a larger footer size for the first page, that larger size is
carried over to all the rest of the document.

Here's my code:

\setuplayout[%
  width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=5mm,
  headerdistance=5mm,
  footer=5mm, % Normal footer size
  footerdistance=5mm,
  grid=tolerant]

\definelayout[first][% Larger footer on first page
  footer=15mm,
  footerdistance=5mm]


On Tue, Dec 13, 2011 at 12:20 PM, Andreas Harder ahar...@uni-koblenz.de wrote:

 On 13.12.2011, at 16:44, Wolfgang Schuster wrote:


 Am 13.12.2011 um 16:26 schrieb Andreas Harder:

 Hi all,

 would someone please enlighten me. What is the correct usage of 
 \definelayout?

 \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt]
 % \setuplayout[default] % needed?
 \definelayout[first]  [default][header=2cm]
 \definelayout[unknown][default]%[reset]
 % \definelayout[2]      [default]%[reset]
 \definelayout[last]   [default][footer=2cm]

 \starttext  \showframe % \checkcurrentlayout
 %% Variant A: fails with \default[unknown]
 first\page unknown=(2)\page \page unknown=(3)\page last

 %% Variant B: fails with \definelayout[2]
 % first\page unknown=(2)=last
 \stoptext

 By the way the output differs with the latest beta in comparison with the 
 latest experimental.

 Hans changed part of the \setuplayout code in the last betas (there are more 
 than you can see in the ctx suite).

 When context checks the layout (happens with \starttext and when it starts a 
 new page) it test for the following defined layouts:

 • “pagenumber”
 • “-pagenumber”
 • “last” (is only used for the last page of the document)
 • “first” (is only used for the first page of the document)
 • “unknown”
 • “current”
 • “odd” and “even” (used for left and right pages)

 All entries in this list are reserved names but you can also define your own 
 layout but in this case
 you have to enable it with \setuplayout[name].

 One of the new features in MkIV is that layout parameters can be inherited, 
 e.g. when
 you define a layout with the name “one” {\definelayout[one][..,..=..,..]) 
 and another one with
 the name two (\definelayout[two][one][..,..=..,..]) this will take the 
 values from one of there
 are nothing set for a value from one and when there is also nothing set for 
 one the global
 values are used (\setuplayout[..,..=..,..]).

 Hi Wolfgang,

 I modified the example (hopefully in a meaningful manner). I get the desired 
 output with the old beta, but it still fails with todays beta.

 \setuplayout [width=middle,height=middle,header=0pt,footer=0pt]
 \definelayout[first]  [header=2cm]
 \definelayout[last]   [footer=2cm]
 \definelayout[current]

 \starttext  \showframe % \checkcurrentlayout
  % \dorecurse{2}{test\page} % last is wrong
  \dorecurse{5}{test\page} % page 2 and „last“ are wrong
 \stoptext


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



-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] Header/footer fonts problem in 20 DEC 2011 beta

2011-12-27 Thread Peter Park Nelson
Hans, I'm including a minimal example below. Behavior is the same
using the 23 dec 2011 beta: odd page headers are not sans, and odd
page footers are not bold.  Even though I set state=empty for headers
and footers, they appear on the first page.

Another odd thing -- if I use \setupheader[options...] instead of
\setupheader[text][options...], I get an extra horizontal rule
(\hairline?) on the left side of the page...

%%-snip-%%

\setuppapersize[letter][letter]
\setupindenting[yes, medium]



 COLUMNS AND SPANS:


\definecolumnset[body][n=2,balancing=yes]
\definecolumnsethsize{body}{1}{1}\One
\definecolumnsethsize{body}{1}{2}\Two


%%
 HEADERS AND FOOTERS:
%%

\setuppagenumbering
  [alternative=doublesided,
   location=]

\setupheader[text]
  [state=empty,
   style=\ss,
   after=\hairline]

%\setupheader % Try this to see the extra horizontal hairline
%  [state=empty,
%   style=\ss,
%   after=\hairline]


\setupheadertexts
  [{\it Effects of transit scheduling management mitigation}]
  [pagenumber]
  [pagenumber]
  [Doe et al.]

\setupfooter[text]
  [state=empty,style=bold]

\setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

%
 TEXT STARTS HERE:
%

\starttext

\title{Title}

\startcolumnset[body]

\setupindenting[yes]


\dorecurse{30}{\input tufte\par}

\stopcolumnset

\stoptext

%%snip-%%

On Thu, Dec 22, 2011 at 2:21 AM, Hans Hagen pra...@wxs.nl wrote:
 On 22-12-2011 02:26, Peter Park Nelson wrote:

 Hello, I just installed the 20 Dec beta and noticed the following
 (compared to 29 Nov beta):

 1. Headers and footers on ODD PAGES ONLY do not respect text styles
 set via \setupheader[style=\ss] and \setupfooter[style=\cg]. Text in
 both cases is in serif type. Headers and footers on EVEN pages have
 correct fonts. However, setting the font variant and size directly in
 \setupfootertexts[\cg\bf Footer Text] works for odd pages.


 This seems to work ok here:

 \setuppagenumbering[alternative=doublesided]
 \setupheadertexts[Bla Bla]
 \setupheader[style=bold]

 \starttext
    \dorecurse{100}{test \page}
 \stoptext


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



-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] Header bottomframe on first page of document

2011-12-22 Thread Peter Park Nelson
Hraban,

 So why don’t you simply set the rulecolor to something invisible on the
 first occurrence?
That sounds good, but I don't know how to do it. I'm new to ConTeXt
and figuring this stuff out as I go.

 Maybe you want to use the frontmatter section for your title page setup.
The title is not on a separate title page; the body of the document
follows after the title.

On Thu, Dec 22, 2011 at 3:59 AM, Henning Hraban Ramm hra...@fiee.net wrote:

 Am 2011-12-22 um 07:07 schrieb Peter Park Nelson:


 Hello,

 If I have a bottom frame under my page headers, is it possible to have
 NO bottom frame under the header on ONLY the first page of a document?

 I am using:
 \setupbackgrounds[header][text][bottomframe=on]
 to put a border line underneath all my page headers. I want to have a
 header on the first page of my document but no line under it (the
 first page header will be unique). I want to keep the vertical space
 for the header, so \setupheader[text][state=high] is not what I need.


 So why don’t you simply set the rulecolor to something invisible on the
 first occurrence?
 Maybe you want to use the frontmatter section for your title page setup.


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

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

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



-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Header/footer fonts problem in 20 DEC 2011 beta

2011-12-21 Thread Peter Park Nelson
Hello, I just installed the 20 Dec beta and noticed the following
(compared to 29 Nov beta):

1. Headers and footers on ODD PAGES ONLY do not respect text styles
set via \setupheader[style=\ss] and \setupfooter[style=\cg]. Text in
both cases is in serif type. Headers and footers on EVEN pages have
correct fonts. However, setting the font variant and size directly in
\setupfootertexts[\cg\bf Footer Text] works for odd pages.

On the plus side:

2. \restoreinterlinespace is no longer needed with section headers in
a grid layout.  (See:
http://archive.contextgarden.net/message/20050620.212538.c081f1e4.en.html).
Thank you for fixing that.

3. columnsets no longer run into the page footer area when using
\setupheader[state=high]. Thanks, Hans!

Thanks,
PPN
-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Header bottomframe on first page of document

2011-12-21 Thread Peter Park Nelson
Hello,

If I have a bottom frame under my page headers, is it possible to have
NO bottom frame under the header on ONLY the first page of a document?

I am using:
\setupbackgrounds[header][text][bottomframe=on]
to put a border line underneath all my page headers. I want to have a
header on the first page of my document but no line under it (the
first page header will be unique). I want to keep the vertical space
for the header, so \setupheader[text][state=high] is not what I need.

The reason for this is to have the option of placing a banner over
the document title using the header. Some documents will need this,
and some will not. So, if the extra banner is needed, I will put it in
the first page header, and if not I will leave that header blank. The
unique header will be set using:

\definetext[firsthead][header][First Page Header Banner Text] % or
leave it blank...
\setuphead[title][header=firsthead,...]

Thanks,
PPN

-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___


Re: [NTG-context] MnSymbol (math) support in ConTeXt

2011-12-15 Thread Peter Park Nelson
Thanks Mojca, I will study the source and see if I can understand it enough
to proceed further.

For my purposes, I think a single optical size would be sufficient (at
least that would be a good start and enough of a challenge).

What happens when  --font=mnsymbol is used -- is there some level of font
support added, or does it just download the font files?

PPN

On Thu, Dec 15, 2011 at 7:29 AM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 On Wed, Dec 14, 2011 at 19:08, Peter Park Nelson wrote:
 
  If adding MnSymbol support were only a matter of tedious manual labor, I

 That is more or less the case. There is no reason why it should not
 work with ConTeXt.

 The main reason why I never looked into it is that the font offers
 different optical sizes. And supporting optical sizes is something
 that complicates matters a lot. If you would be happy with a single
 optical size, that would be a lot easier.

  would be willing to give it a try, but without an understanding of font
  internals I don't know where to start. Perhaps someone can suggest
 resources
  for learning?

 Are we talking about MKIV?

 ConTeXt sources. math-vfu.lua and other math-*.mkiv/lua files, as well
 as font-*.mkiv/lua.

 You need to define a mapping vector to map from 8bit font to UTF-8.
 See for example
 mathencodings[tex-mi] = {
[0x1D6E4] = 0x00, -- Gamma
[0x1D6E5] = 0x01, -- Delta
 in math-vfu.lua or tex/context/fonts/lucida-math.lfg or keep asking
 questions. There is no manual to explain how to write such vectors.

  Also, I see that there are MnSymbol files in
  http://minimals.contextgarden.net/current/fonts/extra/mnsymbol/ but
 these
  don't appear to be included in my ConTeXt Standalone installation. Does
  anyone know about them?

 You need an extra switch. I think that --font=mnsymbol should work,
 but I need to test (there's a chance that it doesn't and I plan to
 change that anyway).

 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

 ___




-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___

Re: [NTG-context] MnSymbol (math) support in ConTeXt

2011-12-14 Thread Peter Park Nelson
Minion Math does appear to be ideal for this application.

However, given current budget constraints, it is unlikely that my
department can purchase Minion Math for this project (an open-access
academic journal). We already own Minion Pro. Thus my interest in MnSymbol.

If adding MnSymbol support were only a matter of tedious manual labor, I
would be willing to give it a try, but without an understanding of font
internals I don't know where to start. Perhaps someone can suggest
resources for learning?

Also, I see that there are MnSymbol files in
http://minimals.contextgarden.net/current/fonts/extra/mnsymbol/ but these
don't appear to be included in my ConTeXt Standalone installation. Does
anyone know about them?

PPN

On Wed, Dec 14, 2011 at 11:44 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 14.12.2011 um 18:38 schrieb Khaled Hosny:

  On Wed, Dec 14, 2011 at 06:16:29PM +0100, Mojca Miklavec wrote:
  the same author as MnSymbol:
 
  Is he?

 No, MnSymbol is from Achim Blumensath and Minion Math from Johannes Küster.

 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

 ___




-- 
Peter Park Nelson
peter.park.nel...@gmail.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] MnSymbol (math) support in ConTeXt

2011-12-11 Thread Peter Park Nelson
Hello,

I have been developing a new layout environment using Adobe Minion Pro for
the main body font. My document will include a significant number of math
formulas. I found a thread from earlier this year on the possibility of
adding support for the LaTeX MnSymbol font package in ConTeXt, and wondered
if anyone has gone farther with this idea.

The last recommendation on the thread (
http://www.ntg.nl/pipermail/ntg-context/2011/057426.html) was to merge the
Opentype MnSymbol font with Minion Pro using FontForge -- I tried that
using the steps outlined, but reached the same obstacle mentioned by the
last poster: the new (merged) font is not recognized by ConTeXt.

That approach probably violates the Adobe font license anyway...

In a 2009 thread on dev-context, Wolfgang Schuster mentioned an attempt to
create a virtual font and typescript for MnSymbol, but he encountered
problems with Greek characters. (
http://archive.contextgarden.net/message/20091122.164136.5757ec1f.en.html)

So, as I don't know how to proceed further, I would be interested in
hearing from anyone who has experimented with MnSymbol support, or in
finding out what specific steps would be involved in adding support.

Also, any recommendations of other math fonts suitable for use with Minion
Pro would be welcome. I am currently playing with XITS math, which is
Times-like but not too bad a fit.

Thanks,
PPN

-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Footnotes break out of columnset (current beta)

2011-12-09 Thread Peter Park Nelson
Hello,

In TeXLive 2011, the following works correctly (footnotes in column) --
although the footnote rule does not appear, as I have noted in another
post.

In the current beta (29 nov 2011), the footnotes span the whole page and
are run over by the body text columns. The footnote rule also continues to
be absent.

(The actual format I'm using has more formatting options but this is
minimal).

%%%%

\definecolumnset[body][n=2,balancing=yes]

\setupnote[footnote]
  [location=columns]

\setupnotedefinition[footnote]
  [location=left]

\starttext
\startcolumnset[body]

\definecolumnset[body][n=2,balancing=yes]

\def\myfootnotecommand#1{\hbox to 1.5em{#1}}% space for footnote number.

\setupnote[footnote]
  [location=columns,
way=bytext,
command=\myfootnotecommand,
   rule=on]

\setupnotedefinition[footnote]
  [location=left]

\starttext
\startcolumnset[body]

Some text\footnote{Cluster, aggregate, outline, summarize, itemize, review,
dip into, flip through, browse, glance into, leaf through, skim, refine,
enumerate, glean, synopsize, winnow the wheat from the chaff and separate
the sheep from the goats.}

\dorecurse{5}{\input tufte \par}

\stopcolumnset
\stoptext
\dorecurse{5}{\input tufte \par}

\stopcolumnset
\stoptext

%%%%
-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Columnset error with \setupheader[state=high]

2011-12-07 Thread Peter Park Nelson
Update:

I don't have a solution yet, but here is my attempt to figure out where
this problem comes from. I may be (probably am) wrong; I am new to ConTeXt
and not an expert on its internals. But I'll toss this out to see if anyone
is interested.

When \startcolumnset is called, it seems to take a snapshot of the state
of the layout (via setuplayout). However, layout can change, even without
\setuplayout being explicitly called again, as in the case of header
state=high (which modifies the layout of  the first page only). By visual
inspection, it looks like the columnset output routine continues to use the
page dimensions from the first page on subsequent pages. Since the first
page has no header space, height of the text box on the first page will be
larger than on subsequent pages. Therefore, applying the first page height
on subsequent pages will result in text that runs over the footer area.

To see if a new call to \startcolumnset would fix things, I tried to find a
way to automatically do \startcolumnset again at the beginning of the
second page. A crude hack, using the startpostponing mechanism:

\startpostponing[2] % do this block on the second page
\unexpanded\stopcolumnset\unexpanded\startcolumnset[name] % manually end
the current columnset and then start it again.
\stoppostponing

This unfortunately results in a blank page after the first page; however,
the rest of the pages after that blank page have correct columnsets and
footers.

So a real solution to this problem could perhaps be done in two different
ways -- the difference being where in the ConTeXt code it is implemented:
A. The columnset output routine listens for changes in the layout state
and reloads or adjusts itself when layout state changes; or,
B. Any change in layout state passed to the output routine triggers a
re-call of the \startcolumnset macro.

These are probably oversimplified, but I hope someone who understands the
columnset output routine can see what I am trying to get at.
-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___

Re: [NTG-context] Columnset error with \setupheader[state=high]

2011-12-07 Thread Peter Park Nelson
Those \unexpanded 's are not necessary, sorry.

On Wed, Dec 7, 2011 at 4:42 PM, Peter Park Nelson 
peter.park.nel...@gmail.com wrote:

 Update:

 I don't have a solution yet, but here is my attempt to figure out where
 this problem comes from. I may be (probably am) wrong; I am new to ConTeXt
 and not an expert on its internals. But I'll toss this out to see if anyone
 is interested.

 When \startcolumnset is called, it seems to take a snapshot of the state
 of the layout (via setuplayout). However, layout can change, even without
 \setuplayout being explicitly called again, as in the case of header
 state=high (which modifies the layout of  the first page only). By visual
 inspection, it looks like the columnset output routine continues to use the
 page dimensions from the first page on subsequent pages. Since the first
 page has no header space, height of the text box on the first page will be
 larger than on subsequent pages. Therefore, applying the first page height
 on subsequent pages will result in text that runs over the footer area.

 To see if a new call to \startcolumnset would fix things, I tried to find
 a way to automatically do \startcolumnset again at the beginning of the
 second page. A crude hack, using the startpostponing mechanism:

 \startpostponing[2] % do this block on the second page
 \unexpanded\stopcolumnset\unexpanded\startcolumnset[name] % manually end
 the current columnset and then start it again.
 \stoppostponing

 This unfortunately results in a blank page after the first page; however,
 the rest of the pages after that blank page have correct columnsets and
 footers.

 So a real solution to this problem could perhaps be done in two different
 ways -- the difference being where in the ConTeXt code it is implemented:
 A. The columnset output routine listens for changes in the layout state
 and reloads or adjusts itself when layout state changes; or,
 B. Any change in layout state passed to the output routine triggers a
 re-call of the \startcolumnset macro.

 These are probably oversimplified, but I hope someone who understands the
 columnset output routine can see what I am trying to get at.
 --
 Peter Park Nelson
 peter.park.nel...@gmail.com




-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Columnset error with \setupheader[state=high]

2011-12-06 Thread Peter Park Nelson
Hello, I hope someone has solved this problem already but I haven't been
able to find a solution.

When using \setupheader[state=high], my columnset behaves correctly on the
first page but runs over the footer area on all subsequent pages.

If I do not use state=high (i.e. normal header on first page) the columnset
works correctly. However I need to get rid of that first page header. The
result is the same if I set state=high using
\setuphead[title][header=high].

I found a mention of this in a forum thread from 2006, but no solution:

http://www.ntg.nl/pipermail/ntg-context/2006/018535.html:

Ehrt, Michael wrote:
* ** Do you know if the column text overrunning the footer when using** 
state=high is a general problem or just me? If it's just me I'll** 
probably try installing a plain context distribution without miktex on a** 
separate machine...*
I expect it to be a general problem.
Taco

I have tried with TexLive 2011 and the 29 nov 2011 beta, but get the same
result.

Any help will be appreciated,
PPN

-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Footnote rule is not drawn in columnset layout

2011-11-29 Thread Peter Park Nelson
In my new 2-column columnset layout, the rule above the footnotes is not
appearing. I found an old question in the list archive dealing with a
similar problem (
http://archive.contextgarden.net/message/20050626.123839.5318050e.en.html)
but the relevant code has been changed since then.

Is there a problem with my setup (excerpt) below?

%%---%%


\definecolumnset[body][n=2,distance=2em,balance=yes]

% Use superior figures from the font for footnote marks, instead of \high:
\defineconversion[supnumbers][\setff{sups}]

% Just create space for the footnote number at the bottom of the column:
\def\myfootnotecommand#1{\hbox to 1.5em{#1}}

\setupnote[footnote]
  [location=page,
   numberconversion=supnumbers,
   numbercommand=,
   textcommand=,
   way=bytext,
   rule=on,
   align={hanging,hz},
   command=\myfootnotecommand]

\setupnotedefinition[footnote]
  [location=left]

%%-%%

Thanks,
PPN

-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Columnsets: bug in current beta?

2011-11-26 Thread Peter Park Nelson
Hello,

Following the example in the Columns manual, the following works with
TeXLive 2011 but not with the current context suite beta (25 nov 2011):

\definecolumnset[body][n=2]
\definecolumnsethsize{body}{1}{1}\One
\definecolumnsethsize{body}{1}{2}\Two

\starttext
\startcolumnset[body]

\dorecurse{5}{\input tufte\par}

\startbuffer
\placefigure[btlr]{A placeholder
figure.}{\externalfigure[widefigure][width=\Two]}
\stopbuffer

\dorecurse{5}{\input tufte\par}

\getbuffer

\stopcolumnset
\stoptext

Using the current beta, the figure only cleanly spans one column --
vertical space for the graphic and caption is reserved in one column; in
the other column, text flows on beneath the graphic, which is superimposed.

Using TeXLive 2011, the wide figure spans both columns correctly.

Thanks,
PPN
-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Layout: partial width blocks

2011-11-23 Thread Peter Park Nelson
Hello again,

I'm working on a 2-column layout for a journal, and I want to keep the
title and abstract of each article from running across the full width of
the page (a small graphic will appear in the upper right corner of the
first article page).

For the article title, this works:

\def\ArticleTitle#1#2%
  {\hbox to \hsize\bgroup
\setupframed[frame=off]%
\tbox{\framed[offset=0pt,width=.8\makeupwidth,align=right]{#2}}%
\hfill
\egroup}

\setuphead[title][%
  header=high,
  before={\hbox{}\blank[5mm]\vfill{}},
  after={\hbox{}\blank[5mm]\vfill{}},
  command=\ArticleTitle,
  style=\tfb\se,
  textstyle=\ss]

And for the abstract, I have come up with this:

\definebodyfontenvironment[10pt][text=10pt,interlinespace=12pt]

\defineframedtext[topwidth][%
  style={\switchtobodyfont[10pt]},
  width=.8\makeupwidth,
  offset=0pt,
  frame=off]

\definedescription[abstract][%
  location=serried,
  width=broad,
  headstyle={\ss\se},
  text={Abstract},
  before=\starttopwidth,
  after=\stoptopwidth]

However I can't control the lineheight within the abstract; I'm stuck with
the default lineheight but I would ilke it to be larger.

1. Can someone tell me why I can change the font size inside the abstract
block but not control the line height?

2. Is there a more efficient way of defining an area that is narrower than
the full page width to hold these items, instead of using
defineframedtext/definedescription for each one?

Thanks,
PPN

-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Fonts in Mk IV -- \definefontalternative documentation?

2011-11-10 Thread Peter Park Nelson
Hello, I am coming to ConTeXt from LaTeX and have a typescript question. I
was searching for information on the mailing list about defining semibold
and other font variants, and found the following. Can you tell me if
further information is only available in the book context mkiv -- Fonts
or can I find it somewhere else? I have searched through the revised Fonts
chapter of the ConTeXt manual but the \definefontalternative macro and the
approach described here are not documented there.

The approach below works for me if I adapt it to Adobe Garamond Premier
Pro, but I am attempting to build a typescript for that handles optical
weights, small caps, etc and I have not been able to make it work yet.

Before I try posting a minimal example, I would like to be sure that I am
looking at the right documentation. I have looked at the Fonts in LuaTeX
page on Contextgarden as well, but I don't think I have a full
understanding of typescripts using OSFONTDIR fonts yet. If there is
something I am missing please let me know.

Thanks,
PPN

**
Based on ideas from the forthcoming book context mkiv -- Fonts:

% note: I have deleted all lines except the relevant ones for defining
% the semi bold alternatives

\definefontalternative [sb]
\definefontalternative [si]

\definebodyfont [default] [ss]
  [sb=SansSemiBold sa 1,
   si=SansSemiBoldItalic sa 1]

\starttypescript [sans] [myriadpro]
   \definefontsynonym [MyriadPro-SemiBold]  [name:myriadprosemibold]
   \definefontsynonym [MyriadPro-SemiBoldIt][name:myriadprosemiboldit]
\stoptypescript

\starttypescript [sans] [myriadpro]
   \definefontsynonym [SansSemiBold] [MyriadPro-SemiBold]
[features=default]
   \definefontsynonym [SansSemiBoldItalic]   [MyriadPro-SemiBoldIt]
[features=default]
\stoptypescript

\starttypescript [myriadpro]
\definetypeface [myriadpro] [ss] [sans] [myriadpro] [default]
\stoptypescript

\usetypescript[myriadpro]

\starttext

\switchtobodyfont[myriadpro,ss]

\sb Hello
\si Italic

\stoptext



-- 
Peter Park Nelson
peter.park.nel...@gmail.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] BibLaTeX

2010-06-01 Thread Peter Park Nelson
I frequently use LaTeX with BibLaTeX and the BibLaTeX-Chicago Style package
to typeset scholarly material. For me, BibLaTeX is a great tool. However, I
am attracted to ConTeXt because, coming from a desktop-publishing
background, ConTeXt gives me more/easier control over document layout and
structure. Thus I began to dream of a chocolate + peanut butter
combination of the two.

I would like to know if anyone has thoughts on the possibility of using
BibLaTeX  Biber with ConTeXt -- perhaps through a wrapper module of some
kind? I don't understand the internals of LaTeX or ConTeXt well enough to
know if this is a ridiculous question. I respect the ConTeXt Bib module, but
BibLaTeX-Chicago offers exactly what I'm looking for.

Both BibLaTeX and ConTeXt use e-TeX, and the internals of BibLaTeX appear
not to be LaTeX-specific. So, would it be possible to write a ConTeXt module
that bypasses Bib and provides an interface between ConTeXt bibliography
commands and BibLaTeX/Biber?

Thanks,
PPN
___
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] Chicago citations in endnotes; short titles in bibliographies

2009-11-24 Thread Peter Park Nelson
I was just looking at the documentation for the Bibliography module and
wondering if anyone has tried to implement the full-on Chicago Manual of
Style Author-Title documentation format for endnotes/footnotes in books --
i.e. citations of the form Author, Full Title, Publisher, page followed in
subsequent references by Author, Short Title, page plus support for
Ibid, op.cit, and so forth.

Seems like this would be hard, but there are a lot of books out there that
follow this style (at least in the U.S.), especially in history/social
sciences.

To do so would require supporting a \shorttitle field and adding
mechanisms to keep track of what has been cited (in order to implement
switching between full and shortened reference forms and enable ibid/op.cit.
).

As an editor, this is probably beyond my technical abilities. Even so, if I
wanted to mess around with this, where would I start learning about the
internals of bibliography support in Context (beyond the documentation for
the bib module)?

Thanks,
PPN
-- 
Peter Park Nelson
peter.park.nel...@gmail.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
___