Re: [NTG-context] full page images on fixed pages

2012-05-19 Thread Henning Hraban Ramm

Am 2012-05-17 um 13:49 schrieb Philipp Gesang:


In my current book project, I need to set images on fixed pages
(because only a few pages get printed in color),


I assume with “fixed pages” you mean “always on the page with a
certain number”. This, at least, might be solved with the
postponing mechanism:


\starttext

\startpostponing [3]
 \startstandardmakeup
   \externalfigure [cow] [width=\hsize]
 \stopstandardmakeup
\stoppostponing

\dorecurse{42}{\input knuth \par}

\stoptext



Thank you, that works, but the publisher decided to use glue binding  
to be able to put colored pages everywhere...


Can you explain, what standardmakeup really does? I know it’s used in  
free layout pages.




Not sure about your full page problem, though.


I'll open another thread on that.


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
___


[NTG-context] Citations in a frontmatter fail when placed in a component

2012-05-19 Thread Marco
Hi,

When a \cite command is placed in a frontmatter or bodymatter it
prints [[error 2]] as citation and no bibliography is created. This
only occurs when the \cite command is called from another component.
\cite calls from within the same file work, even inside a
frontmatter.

Example:

% file product.tex
\startproduct product

\startpublication[k=me,
  t=manual,
  a=Hoekwater,
  y=2006,
  s=TH2006,
  n=1,
  u=http://contextgarden.net/Bibliography]
  \author{Taco}[T.]{}{Hoekwater}
  \title{\CONTEXT\ Publication Module, The user documententation}
  \pubyear{2006}
  \note{In case you didn’t know: it’s the document you are reading now}
  \pages{14}
\stoppublication

% comment out the frontmatter and it works
\startfrontmatter
  \component component

  % this one works
% \cite[me]
\stopfrontmatter

\placepublications [criterium=text]

\stopproduct

% file component.tex
\startcomponent component
  cite: \cite[me]
\stopcomponent


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] full page images on fixed pages

2012-05-19 Thread Willi Egger
Hi Hraban,

Humble but is it that the page will be entirely covered with a float? In that 
case you might better use
the background mechanism so that you can place the float on the paper instead 
of the page?

Willi
On May 19, 2012, at 8:38 PM, Henning Hraban Ramm wrote:

 Am 2012-05-17 um 13:49 schrieb Philipp Gesang:
 
 In my current book project, I need to set images on fixed pages
 (because only a few pages get printed in color),
 
 I assume with “fixed pages” you mean “always on the page with a
 certain number”. This, at least, might be solved with the
 postponing mechanism:
 
 
 \starttext
 
 \startpostponing [3]
 \startstandardmakeup
   \externalfigure [cow] [width=\hsize]
 \stopstandardmakeup
 \stoppostponing
 
 \dorecurse{42}{\input knuth \par}
 
 \stoptext
 
 
 Thank you, that works, but the publisher decided to use glue binding to be 
 able to put colored pages everywhere...
 
 Can you explain, what standardmakeup really does? I know it’s used in free 
 layout pages.
 
 
 Not sure about your full page problem, though.
 
 I'll open another thread on that.
 
 
 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
 ___

___
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] full page images on fixed pages

2012-05-19 Thread Philipp Gesang
On 2012-05-19 20:38, Henning Hraban Ramm wrote:
 Am 2012-05-17 um 13:49 schrieb Philipp Gesang:
 
 In my current book project, I need to set images on fixed pages
 (because only a few pages get printed in color),
 
 I assume with “fixed pages” you mean “always on the page with a
 certain number”. This, at least, might be solved with the
 postponing mechanism:
 
 
 \starttext
 
 \startpostponing [3]
  \startstandardmakeup
\externalfigure [cow] [width=\hsize]
  \stopstandardmakeup
 \stoppostponing
 
 \dorecurse{42}{\input knuth \par}
 
 \stoptext
 
 
 Thank you, that works, but the publisher decided to use glue binding
 to be able to put colored pages everywhere...

Sounds like they are meaning it ...
 
 Can you explain, what standardmakeup really does? I know it’s used
 in free layout pages.

In its natural state (like \startmakeup without arguments), the
makeup 1. nil’s headers and footers, 2. zeroes whitespace
settings (\forgetall), (2.a. disables overfull box warnings,) and
3.  sets the text area to the current dimensions \textheight by
\textwidth. The output looks like most layout elements.

However, the personalized makeup environments as defined by
\definemakeup are much more complex. They basically allow to
insert parameterized layout and pagestyle exceptions without
affecting the layout of the surrounding pages. Implicitly, with
the makeup definition, a page layout is created as well, so the
options of \setuplayout work as well. This may be the key to the
solution to your full page issue. The *standardmakeup*
environment belongs to this second group, it is initialized as
(page-mak.mkvi):

  \definemakeup
[\v!standard]
[\c!width=\innermakeupwidth,
 \c!height=\textheight,
 \c!page=\v!right,
 \c!doublesided=\v!empty]

If you want to go hack on makeups, you might want to use the
“setups” key to add your code.  Of course, for the complete story
you’ll need to look up the definition of \page_makeup_start_yes.
(There’s some very basic info in “Layouts in Context”, pp. 49f,
too.)

Best regards
Philipp

 Not sure about your full page problem, though.
 
 I'll open another thread on that.
 
 
 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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpkt6PACpHEI.pgp
Description: PGP signature
___
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] about \hangaround, defineenumeration

2012-05-19 Thread dalyoung
Dear all,

I defined enumerations Theorem, Proof, and Example as in the sample code.
It works fine, but I'd like to arrange it in better shape.

1. Theorem 1 and it's proof look good.

2. The proof of Theorem 2
i) when I use \startitemize it starts from the next line not 
immediately after Proof.
 Q: How to start the sentence right after Proof?

ii) after \stopitemize, it changes the line and put blacksquare at the 
end. So, there is a blank line always.
 Q: How to place blacksquare at the end of the last line of the 
sentence?

iii) leading symbol of itemize, b is inside the figure.
 Q: How to correct this or is it possible to place the figure at the 
right side?

3. I'd like to put Example and it's number in a frame, but I couldn't. Is 
there a way of doing that? Should I make a new command to do that?

Thank you for reading.

Best regards,

Dalyoung

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