Re: [NTG-context] problem with doublesided

2012-02-03 Thread luigi scarso
On Thu, Feb 2, 2012 at 6:54 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 02.02.2012 um 18:02 schrieb luigi scarso:

 (probably already poste)
 \setuplayout[width=300pt,backspace=4cm]
 \setuppagenumbering [alternative=doublesided,location=margin]
 \starttext \dorecurse{20}{\input knuth \par} \stoptext


 with latest standalone the pagenumbers on left and right margins are
 swapped. Is it intended ?

 page-txt.mkvi:

 \def\page_layouts_place_text_line_right
  {\hbox
     {\ifdim\leftedgewidth\zeropoint
        \page_layouts_left_edge_element\c!lefttext
      \fi
      \ifdim\leftmarginwidth\zeropoint
       
 %\page_layouts_left_margin_element\c!lefttext\page_layouts_extra_at_margin_left
        
 \page_layouts_left_margin_element\c!lefttext\page_layouts_extra_at_margin_right
      \fi
      \ifdim\makeupwidth\zeropoint
        
 \page_layouts_text_body_element\c!lefttext\c!middletext\c!righttext\page_layouts_extra_at_margin_left
      \fi
      \ifdim\rightmarginwidth\zeropoint
       
 %\page_layouts_right_margin_element\c!righttext\page_layouts_extra_at_margin_left
        
 \page_layouts_right_margin_element\c!righttext\page_layouts_extra_at_margin_right
      \fi
      \ifdim\rightedgewidth\zeropoint
       %\page_layouts_right_edge_element\c!lefttext
        \page_layouts_right_edge_element\c!righttext
      \fi}}

 \def\page_layouts_place_text_line_left
  {\hbox
     {\ifdim\leftedgewidth\zeropoint
        \page_layouts_left_edge_element\c!righttext
      \fi
      \ifdim\leftmarginwidth\zeropoint
       
 %\page_layouts_left_margin_element\c!righttext\page_layouts_extra_at_margin_right
        
 \page_layouts_left_margin_element\c!righttext\page_layouts_extra_at_margin_left
      \fi
      \ifdim\makeupwidth\zeropoint
        
 \page_layouts_text_body_element\c!righttext\c!middletext\c!lefttext\page_layouts_extra_at_margin_right
      \fi
      \ifdim\rightmarginwidth\zeropoint
       
 %\page_layouts_right_margin_element\c!lefttext\page_layouts_extra_at_margin_right
        
 \page_layouts_right_margin_element\c!lefttext\page_layouts_extra_at_margin_left
      \fi
      \ifdim\rightedgewidth\zeropoint
       %\page_layouts_right_edge_element\c!righttext
        \page_layouts_right_edge_element\c!lefttext
      \fi}}

 Wolfgang
yes, it works.
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] location=middle smashes the height

2012-02-03 Thread Hans Hagen

On 3-2-2012 01:16, Aditya Mahajan wrote:


but low hasn't changed (unless I look wrong)


Perhaps I don't remember correctly then. (I don't have an old version of
ConTeXt on this machine, so cannot test).


ok, I'll wait for more info then

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \startstopcomment fails on latest beta

2012-02-03 Thread Marco Pessotto
Hans Hagen pra...@wxs.nl writes:

 On 1-2-2012 19:31, Marco Pessotto wrote:

 Hello there.

 See the following minimal example. Without the \setupinteraction the
 document compiles just fine.

 as there is no beta this week, you can patch yourself ... scrn-wid.lua
 ... should either have

 b_scrn_comment_link

 or

 scrn_comment_box_link

 (depending on what's n your system; you can search in scrn-wid.mkiv
 for the right box name)


Well, I've applied this change and executed context --make

--- ./tex/texmf-context/tex/context/base/scrn-wid.lua~  2011-05-24 
11:32:54.0 +0200
+++ ./tex/texmf-context/tex/context/base/scrn-wid.lua   2012-02-03 
09:44:14.0 +0100
@@ -117,7 +117,7 @@
 end
 
 function commands.insertcomment(specification)
-tex.box[scrn_comment_box_link] = comments.insert(specification)
+tex.box[b_scrn_comment_link] = comments.insert(specification)
 end
 
 -- Soundclips

This is better, as the compilation doesn't fail and the comment appears
as comment, but on the page there is a literal [title=,] (in the first
example) or [title=commentname,] in the second and third example.

\setupinteraction[state=start]
\starttext
Regular 1
\startcomment
1. This won't be published, but attached as a comment
\stopcomment
Regular 2
\startcomment[commentname]
2. This won't be published, but attached as a comment
\stopcomment
Regular 3
\startcomment[commentname][]
3. This won't be published, but attached as a comment
\stopcomment
\stoptext

There is no problem in the current version (2011.05.18), but is
present in version 2011.11.29 23:11 (which is the other previous version
I have on my machine).

Thanks for your attention and all your work.

Best regards.

-- 
Marco
___
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] mirror one single character

2012-02-03 Thread Steffen Wolfrum
Hi,


one can use this ...

\rotate[rotation=180]{\utfchar{1D0E}}

... to rotate a single character when needed.


Do we have a similar, handy command for mirroring a single character?

Steffen
___
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] mirror one single character

2012-02-03 Thread Wolfgang Schuster

Am 03.02.2012 um 12:22 schrieb Steffen Wolfrum:

 Hi,
 
 one can use this ...
 
 \rotate[rotation=180]{\utfchar{1D0E}}
 
 ... to rotate a single character when needed.
 
 
 Do we have a similar, handy command for mirroring a single character?

\mirror{…}

http://wiki.contextgarden.net/Graphical_text_manipulation#.5Cmirror

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

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


Re: [NTG-context] mirror one single character

2012-02-03 Thread Steffen Wolfrum

Am 03.02.2012 um 12:44 schrieb Wolfgang Schuster:

 
 Am 03.02.2012 um 12:22 schrieb Steffen Wolfrum:
 
 Hi,
 
 one can use this ...
 
 \rotate[rotation=180]{\utfchar{1D0E}}
 
 ... to rotate a single character when needed.
 
 
 Do we have a similar, handy command for mirroring a single character?
 
 \mirror{…}

Hah! As expected ;o)


 http://wiki.contextgarden.net/Graphical_text_manipulation#.5Cmirror

I just found Rotating/mirorring characters in

http://wiki.contextgarden.net/Faking_characters

... and mirror was not mentioned there ;o(


Thanks!
Steffen
___
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] strc-lst.lua [was: Bibliography problem]

2012-02-03 Thread Philipp Gesang
On 2012-02-02 20:22, Michael Green wrote:
 On 2012-02-02 15:46 -800, Philipp Gesang wrote:
  On 2012-02-02 15:26, Michael Green wrote: 
   On 2012-02-01 12:48 -800, Philipp Gesang wrote: 
   
   Thanks for all your help, but I'm afraid it's still not working for me. 
   
   I did two tests. (1) Using this change alone and (2) using this change 
   together with the one you recommended to strc-lst.mkvi 
   http://archive.contextgarden.net/message/20120201.194023.3e8d62a3.en.html 
  
  I believe the second one should already have fixed it. Have you 
  run “context --make” after you modified both files? 
 
 Aha! That's what I didn't do. Thank you very much!
 
 So, of course, there's another problem.
 
 If I add \placepublications[criterium=all], I get errors that appear to be 
 related to what we changed. Note that if I press return twice, the document 
 is produced as expected.

Wait a sec -- this should have been fixed by the modification to
strc-lst.lua. Can it be that in the meantime you updated your
Context and this fix got overwritten? If so, please reapply it,
remake the format and report back.

Anyway it would appear that these issues will be fixed in the
next beta.

Best regards
Philipp




 
 Thanks again for the help.
 
 mjg
 
  file 
 
 \setupbibtex[database=test]
 \setuppublications[alternative=apa]
 
 \starttext
 Here is a cite command: \cite[hh2010a]
 \placepublications[criterium=all]
 
 \stoptext
 \endinput
 --
 
  test.bib -
 
 @ARTICLE{hh2010a,
   author = {Hans Hagen},
   title = {The Font Name Mess},
   journal = {MAPS},
   year = {2010},
   volume = {40},
   pages = {2-8},
   keywords = {context},
 }
 --
 
  log ---
 ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 2012.2.2  int: english/english
 
 system   cont-new.mkiv loaded
 (/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/base/cont-new.mkiv
 system   beware: some patches loaded from cont-new.mkiv
 )
 system   2012bib.top loaded
 (2012bib.top)
 fontslatin modern fonts are not preloaded
 languageslanguage en is active
 publications wrote a new auxiliary file \jobname.aux
 This is BibTeX, Version 0.99d (TeX Live 2011)
 The top-level auxiliary file: 2012bib.aux
 The style file: cont-no.bst
 Database file #1: test.bib
 publications loading formatting style from bibl-apa
 (/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/bib/bibl-apa.tex){/Users/michaelgreen/Applications/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
 fontspreloading latin modern fonts (second stage)
 fontstypescripts  unknown: library 'loc'
 {/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
 fontsfallback modern rm 12pt is loaded
 publications loading database from 2012bib.bbl
 (2012bib.bbl)
 publications placing all entries, use 'text' to be more selective
 ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-lst.lua:529: 
 attempt to index local 'l' (a nil value)
 stack traceback:
   ...text/tex/texmf-context/tex/context/base/strc-lst.lua:529: in 
 function 'location'
   ...text/tex/texmf-context/tex/context/base/strc-lst.lua:692: in 
 function 'listlocation'
   main ctx instance:1: in main chunk.
 
 system   tex  error on line 4 in file 2012bib.tex: LuaTeX error  ...
 
  1 \setupbibtex[database=test]
  2 \setuppublications[alternative=apa]
  3 
  4   \starttext
  5 Here is a cite command: \cite[hh2010a]
  6 \placepublications[criterium=all]
  7 
  8 \stoptext
  9 \endinput
 10 
 
 
 \ctxcommand ...\directlua \zerocount {commands.#1}
   
 inserted text ...cation {\structurelistlocation 
   }\fi 
 \doifstructurelisthas...
 \strc_lists_apply_renderingsetup ...enderingsetup 
   \edef 
 \currentlistalternat...
 l.4 }
  
 \typesetpubslist ...hacks.flush(\@@pbsorttype )}
   \stoppacked \endgroup 
 \dodoplacepublications ...sttrue \typesetpubslist 
   \inpublistfalse \global 
 \a...
 ...
 l.6 \placepublications[criterium=all]
  
 ? 
 ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-lst.lua:529: 
 attempt to index local 'l' (a nil value)
 stack traceback:
   ...text/tex/texmf-context/tex/context/base/strc-lst.lua:529: in 
 function 'location'
   ...text/tex/texmf-context/tex/context/base/strc-lst.lua:692: in 
 function 'listlocation'
   main ctx instance:1: in main chunk.
 
 system   tex  

Re: [NTG-context] mirror one single character

2012-02-03 Thread Hans Hagen

On 3-2-2012 12:44, Wolfgang Schuster wrote:


http://wiki.contextgarden.net/Graphical_text_manipulation#.5Cmirror


A nice page!

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \startstopcomment fails on latest beta

2012-02-03 Thread Wolfgang Schuster

Am 03.02.2012 um 10:13 schrieb Marco Pessotto:

 This is better, as the compilation doesn't fail and the comment appears
 as comment, but on the page there is a literal [title=,] (in the first
 example) or [title=commentname,] in the second and third example.

scrn-wid.mkvi

\def\scrn_comment_start_indeed[#title][#settings]%
  {\bgroup
   \doifassignmentelse{#title}
-{\setupcurrentcomment[\currentcomment][#title]}
-{\setupcurrentcomment[\currentcomment][\c!title=#title,#settings]}%
+{\setupcurrentcomment[#title]}
+{\setupcurrentcomment[\c!title=#title,#settings]}%
   \def\scrn_comment_stop{\scrn_comment_inject\egroup}%
   
\grabbufferdatadirect\v!comment{\e!start\currentcomment}{\e!stop\currentcomment}}

@Hans: \scrn_comment_start_indeed is defined twice 

\def\scrn_comment_start_indeed
  {\doifelse{\commentparameter\c!state}\v!start
 {\scrn_comment_start_indeed}
 {\scrn_comment_start_ignore}}

\def\scrn_comment_start_indeed[#title][#settings]%
  {\bgroup
   \doifassignmentelse{#title}
 {\setupcurrentcomment[\currentcomment][#title]}
 {\setupcurrentcomment[\currentcomment][\c!title=#title,#settings]}%
   \def\scrn_comment_stop{\scrn_comment_inject\egroup}%
   
\grabbufferdatadirect\v!comment{\e!start\currentcomment}{\e!stop\currentcomment}}

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

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


Re: [NTG-context] \startstopcomment fails on latest beta

2012-02-03 Thread Marco Pessotto
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 Am 03.02.2012 um 10:13 schrieb Marco Pessotto:

 This is better, as the compilation doesn't fail and the comment appears
 as comment, but on the page there is a literal [title=,] (in the first
 example) or [title=commentname,] in the second and third example.

 scrn-wid.mkvi

 \def\scrn_comment_start_indeed[#title][#settings]%
   {\bgroup
\doifassignmentelse{#title}
 -{\setupcurrentcomment[\currentcomment][#title]}
 -{\setupcurrentcomment[\currentcomment][\c!title=#title,#settings]}%
 +{\setupcurrentcomment[#title]}
 +{\setupcurrentcomment[\c!title=#title,#settings]}%
\def\scrn_comment_stop{\scrn_comment_inject\egroup}%

 \grabbufferdatadirect\v!comment{\e!start\currentcomment}{\e!stop\currentcomment}}


Tested and works like a charm. Thanks a lot.
Best wishes

-- 
Marco
___
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] \startstopcomment fails on latest beta

2012-02-03 Thread Hans Hagen

On 3-2-2012 15:19, Wolfgang Schuster wrote:


@Hans: \scrn_comment_start_indeed is defined twice

\def\scrn_comment_start_indeed
   {\doifelse{\commentparameter\c!state}\v!start
  {\scrn_comment_start_indeed}
  {\scrn_comment_start_ignore}}

\def\scrn_comment_start_indeed[#title][#settings]%
   {\bgroup
\doifassignmentelse{#title}
  {\setupcurrentcomment[\currentcomment][#title]}
  {\setupcurrentcomment[\currentcomment][\c!title=#title,#settings]}%
\def\scrn_comment_stop{\scrn_comment_inject\egroup}%

\grabbufferdatadirect\v!comment{\e!start\currentcomment}{\e!stop\currentcomment}}


should be

\unexpanded\def\scrn_comment_start#category%
  {\def\currentcomment{#category}%
   \doifelselocation
 {\dodoubleempty\scrn_comment_start_status}
 {\dodoubleempty\scrn_comment_start_ignore}}

\def\scrn_comment_start_status



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] strc-lst.lua [was: Bibliography problem]

2012-02-03 Thread Michael Green
On 2012-02-03 06:04 -800, Philipp Gesang wrote:
 On 2012-02-02 20:22, Michael Green wrote: 
  
  If I add \placepublications[criterium=all], I get errors that appear to 
  be related to what we changed...
 
 Wait a sec -- this should have been fixed by the modification to strc-lst.lua.

You're right. I made a simple error in modifying strc-lst.lua. I typed 1 
(numeral) rather than l (letter). Now it all works as you said it should. 
Thanks!
___
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
___