[NTG-context] Float on opposite page

2012-03-01 Thread Charles

Hi,

I have a problem with float positioning. I would like to have text on 
even pages and text on odd pages. I tried:


- \placetable[opposite] but then the tables are not included.
- \placetable[rightpage] but then each table is on a new page.

I would like to have my figures/tables on a new even page, but if 2 
figures/tables fit on one page, they should not be on two different 
pages but together on the same even page (I was thinking opposite 
should do that).


Thanks for your help

Charles


\setuppagenumbering[alternative=doublesided]

\starttext

Lorem ipsum dolor sit amet, maecenas malesuada, ut tellus ac a egestas 
donec, lectus aliquam, purus orci fermentum porta sed. Ut quis risus 
suspendisse, convallis vel velit suspendisse amet diam urna, erat auctor 
vestibulum nec amet lorem, at fringilla cursus aenean donec dui at. 
Neque duis luctus netus magna, orci nulla vivamus consectetuer nulla, 
amet felis in sodales dictum parturient ipsum, consequuntur malesuada.


\placetable[opposite]{Legend 1}{Content of Table 1}

\placetable[opposite]{Legend 1}{Content of Table 2}

Vestibulum ut pretium fringilla dui dui odio, pellentesque arcu leo id. 
Malesuada curabitur, urna nostrum mauris lobortis, ante luctus donec a, 
congue arcu placerat dictum non integer, nulla non.


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

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


Re: [NTG-context] Float on opposite page

2012-03-01 Thread Aditya Mahajan

On Thu, 1 Mar 2012, Charles wrote:


Hi,

I have a problem with float positioning. I would like to have text on even 
pages and text on odd pages. I tried:


- \placetable[opposite] but then the tables are not included.
- \placetable[rightpage] but then each table is on a new page.

I would like to have my figures/tables on a new even page, but if 2 
figures/tables fit on one page, they should not be on two different pages but 
together on the same even page (I was thinking opposite should do that).


Untested:


\setuppagenumbering[alternative=doublesided]

\starttext

Lorem ipsum dolor sit amet, maecenas malesuada, ut tellus ac a egestas donec, 
lectus aliquam, purus orci fermentum porta sed. Ut quis risus suspendisse, 
convallis vel velit suspendisse amet diam urna, erat auctor vestibulum nec 
amet lorem, at fringilla cursus aenean donec dui at. Neque duis luctus netus 
magna, orci nulla vivamus consectetuer nulla, amet felis in sodales dictum 
parturient ipsum, consequuntur malesuada.


\startpostponing[+1]


\placetable[top]{Legend 1}{Content of Table 1}

\placetable[top]{Legend 1}{Content of Table 2}


\stoppostponing

Vestibulum ut pretium fringilla dui dui odio, pellentesque arcu leo id. 
Malesuada curabitur, urna nostrum mauris lobortis, ante luctus donec a, 
congue arcu placerat dictum non integer, nulla non.


\stoptext


Aditya
___
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] Float on opposite page

2012-03-01 Thread Charles

Le 01/03/2012 18:17, Aditya Mahajan a écrit :

On Thu, 1 Mar 2012, Charles wrote:


Hi,

I have a problem with float positioning. I would like to have text on
even pages and text on odd pages. I tried:

- \placetable[opposite] but then the tables are not included.
- \placetable[rightpage] but then each table is on a new page.

I would like to have my figures/tables on a new even page, but if 2
figures/tables fit on one page, they should not be on two different
pages but together on the same even page (I was thinking opposite
should do that).


Untested:


\setuppagenumbering[alternative=doublesided]

\starttext

Lorem ipsum dolor sit amet, maecenas malesuada, ut tellus ac a egestas
donec, lectus aliquam, purus orci fermentum porta sed. Ut quis risus
suspendisse, convallis vel velit suspendisse amet diam urna, erat
auctor vestibulum nec amet lorem, at fringilla cursus aenean donec dui
at. Neque duis luctus netus magna, orci nulla vivamus consectetuer
nulla, amet felis in sodales dictum parturient ipsum, consequuntur
malesuada.


\startpostponing[+1]


\placetable[top]{Legend 1}{Content of Table 1}

\placetable[top]{Legend 1}{Content of Table 2}


\stoppostponing


Vestibulum ut pretium fringilla dui dui odio, pellentesque arcu leo
id. Malesuada curabitur, urna nostrum mauris lobortis, ante luctus
donec a, congue arcu placerat dictum non integer, nulla non.

\stoptext


Aditya


Thanks but it doesn't work (TeX capacity exceeded) and anyway the 
figures would not be centered on the page.


Charles

___
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] Opposite Blocks or Spread Based Layouts

2009-03-16 Thread Corin Royal Drummond

Hi ConTeXt ComRaDes,

Trying to design a travelogue book with photos on the left page, and 
text on the right.  Tried \startopposite to get an opposite block, and 
turned it on with \setupoppositeplacing[state=start], to no discernable 
effect.  Am I doing something wrong, or is there another way to do this? 

Any tips much appreciated. 


Corin Royal Drummond

P.S. My poetry book is coming along nicely.  I'll be sure to send along 
a link when it's finished. 
___

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Opposite Blocks or Spread Based Layouts

2009-03-16 Thread Wolfgang Schuster


Am 16.03.2009 um 07:00 schrieb Corin Royal Drummond:


Hi ConTeXt ComRaDes,

Trying to design a travelogue book with photos on the left page, and  
text on the right.  Tried \startopposite to get an opposite block,  
and turned it on with \setupoppositeplacing[state=start], to no  
discernable effect.  Am I doing something wrong, or is there another  
way to do this?


\definestartstop
  [leftpage]
  [before={\page[yes,left]}]

\definestartstop
  [rightpage]
  [before={\page[yes,right]}]

\starttext

\startleftpage
...
\stopleftpage

\startrightpage
...
\stoprightpage

\stoptext

Wolfgang


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

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


Re: [NTG-context] Opposite Blocks or Spread Based Layouts

2009-03-16 Thread Corin Royal Drummond
Oops, I did forget to mention I'm using a recent ConTeXt minimal and 
texexec --lua. 


Corin Royal Drummond wrote:

Hi ConTeXt ComRaDes,

Trying to design a travelogue book with photos on the left page, and 
text on the right.  Tried \startopposite to get an opposite block, and 
turned it on with \setupoppositeplacing[state=start], to no 
discernable effect.  Am I doing something wrong, or is there another 
way to do this?

Any tips much appreciated.
Corin Royal Drummond

P.S. My poetry book is coming along nicely.  I'll be sure to send 
along a link when it's finished. 


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Opposite Blocks or Spread Based Layouts

2009-03-16 Thread Corin Royal Drummond

Wolfgang Schuster wrote:

\definestartstop
  [leftpage]
  [before={\page[yes,left]}]

\definestartstop
  [rightpage]
  [before={\page[yes,right]}]

\starttext

\startleftpage
...
\stopleftpage

\startrightpage
...
\stoprightpage

\stoptext

Wolfgang

Wolfgang,

Thanks for the solution.  That pretty much get's me what I need. 

Still wondering what's up with opposite blocks though, if any one 
knows.  \startopposite \setupoppositeplacing et al. 


Cheers,

Corin Royal Drummond
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Opposite Blocks or Spread Based Layouts

2009-03-16 Thread Wolfgang Schuster


Am 16.03.2009 um 14:17 schrieb Corin Royal Drummond:

Still wondering what's up with opposite blocks though, if any one  
knows.  \startopposite \setupoppositeplacing et al.


I think the can be called broken and Hans hadn't needed them
in the past so no one noticed it. In this case it shoudn't be
a problem to replace the current definition with something
working, tell use what do you need to do this.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Opposite Blocks or Spread Based Layouts

2009-03-16 Thread Corin Royal Drummond

Wolfgang Schuster wrote:


Am 16.03.2009 um 14:17 schrieb Corin Royal Drummond:

Still wondering what's up with opposite blocks though, if any one 
knows.  \startopposite \setupoppositeplacing et al.


I think the can be called broken and Hans hadn't needed them
in the past so no one noticed it. In this case it shoudn't be
a problem to replace the current definition with something
working, tell use what do you need to do this.

Wolfgang
Ah, I see.  No one ever used it, so opposite float placements died a 
lonely death from malnutrition.  Seems like a lovely concept for laying 
out photo books with text, but I can route around.  Thanks for the heads 
up, Wolfgang. 


Corin
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Force all floats on opposite even pages

2007-03-31 Thread Wolfgang Schuster
On Fri, 30 Mar 2007 17:15:20 +0200
Taco Hoekwater [EMAIL PROTECTED] wrote:

 
 
 Luuk Beurskens wrote:
  Thank you Sanjoy, Hans and Taco for the suggestions made.
  
  My interpretation of Taco's remark is that Sanjoy's solution might not 
  work as expected, is that correct?
 
 Mostly for practical reasons: it depends on how complex your pages
 really are. In a document with complicated headers and footers and
 different margin widths, it could become quite a challenge to make
 everything in the final printed pages come out in the right spot.
 Other issues are things like: you 'll have to fool the page number
 conversion, and such pages will frustrate impositioning software
 completely (putting all float pages at the end results in the same
 practical problems).
 
 But if such things are not a concern, then it will definately beat
 my solution especially for a long document. Manual page breaking
 is tedious at best, and really only workable for static texts.
 
 Taco
 

Hi all,

there is a way to move all text to the right page and put the figures
on the left page. The hard thing is to get all figures before the text
and not on the following one. You can do this by manipulating the
pagefloats macro. I created a minimum example that shows the results
and effects.

\setupfloat[figure][default=leftpage]
\setupframed[width=8cm,height=12cm]

\def\flushpagefloats
  {\doifoddpageelse
 {\ifvoid\collectedleftpagefloats
\ifvoid\collectedrightpagefloats\else
   \unvbox\collectedrightpagefloats
   \page
  %\the\everytopofpage
\fi
  \fi}
 {\ifvoid\collectedleftpagefloats
\dontleavehmode\page % added
  \else
\unvbox\collectedleftpagefloats
\page
   %\the\everytopofpage
  \fi
  \ifvoid\collectedrightpagefloats\else
 \unvbox\collectedrightpagefloats
 \page
%\the\everytopofpage
  \fi}%
   \ifvoid\collectedpagefloats\else
 % message
 \unvbox\collectedpagefloats
   \fi}

\def\oddpagenumbers#1{\ifodd\pageno\the\numexpr(\pageno-1)/2+1\relax
\else\fi} \defineconversion [oddpagenumber][\oddpagenumbers]
%\setuppagenumbering[conversion=oddpagenumber]

\starttext

\dorecurse
  {10}
  {\dorecurse
 {12}
 {\section{Knuth}\input knuth\par}
   \placefigure{}{\framed{}}
   %\page[right]
   \midaligned{Figure \recurselevel}
   \dorecurse
 {4}
 {\section{Knuth}\input knuth\par}}

\stoptext

You can try to start with this and adapt it to your own requirements.
It would be also better to write a macro that did all the dirty things
like place the figure on the left page, make a page break etc.

Wolfgang
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Force all floats on opposite even pages

2007-03-30 Thread Taco Hoekwater


Hans Hagen wrote:
 Sanjoy Mahajan wrote:
 What I would like is that all text is put on the odd pages (n), and
 that all floats are put on the opposite even pages (n-1).
 

It would be nice if this was supported by the output routine,
but it is not all that easy. I remember I had a document that had
the same requirement years ago, but I do not recall anoymore how
I solved it. Since it was short, possible I just did it all by
hand. The idea of that approach is that you do a test run to see
where TeX breaks the page, then force a page break at that point,
by breaking the input:

 bla bla bla bla

into

bla bla{\parfillskip0pt\par\page}

 \noindent bla bla

Inbetween those two lines, you can now do anything you like.

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Force all floats on opposite even pages

2007-03-30 Thread Luuk Beurskens
Thank you Sanjoy, Hans and Taco for the suggestions made.

My interpretation of Taco's remark is that Sanjoy's solution might not 
work as expected, is that correct?

My document is rather long, so manual page breaking is not my preferred 
way of doing it.

Myself I was thinking that the floats belonging to odd page n could be 
put on even page n+1, and then try to renumber the pages (i.e. PDF page 
n+1 gets page number n-1 printed) and then reshuffle the PDF pages. 
Would that work?

Kind regards,

Luuk Beurskens
The Netherlands


Taco Hoekwater wrote:
 
 Hans Hagen wrote:
 Sanjoy Mahajan wrote:
 What I would like is that all text is put on the odd pages (n), and
 that all floats are put on the opposite even pages (n-1).
 
 
 It would be nice if this was supported by the output routine,
 but it is not all that easy. I remember I had a document that had
 the same requirement years ago, but I do not recall anoymore how
 I solved it. Since it was short, possible I just did it all by
 hand. The idea of that approach is that you do a test run to see
 where TeX breaks the page, then force a page break at that point,
 by breaking the input:
 
  bla bla bla bla
 
 into
 
   bla bla{\parfillskip0pt\par\page}
 
  \noindent bla bla
 
 Inbetween those two lines, you can now do anything you like.
 
 Taco
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Force all floats on opposite even pages

2007-03-30 Thread Taco Hoekwater


Luuk Beurskens wrote:
 Thank you Sanjoy, Hans and Taco for the suggestions made.
 
 My interpretation of Taco's remark is that Sanjoy's solution might not 
 work as expected, is that correct?

Mostly for practical reasons: it depends on how complex your pages
really are. In a document with complicated headers and footers and
different margin widths, it could become quite a challenge to make
everything in the final printed pages come out in the right spot.
Other issues are things like: you 'll have to fool the page number
conversion, and such pages will frustrate impositioning software
completely (putting all float pages at the end results in the same
practical problems).

But if such things are not a concern, then it will definately beat
my solution especially for a long document. Manual page breaking
is tedious at best, and really only workable for static texts.

Taco


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Force all floats on opposite even pages

2007-03-29 Thread Luuk Beurskens
Dear all,

For the document I am currently working on I would like to have some
control on the placing of the floats.

What I would like is that all text is put on the odd pages (n), and that
all floats are put on the opposite even pages (n-1).

This can result in sub-optimal breaking of pages, but that depends on
the ratio of the amount of floats versus the amount of text.

Does anyone have an idea how to tackle this? Has something similar been
done already?

Thanks in advance for suggestions.

Best regards,

Luuk Beurskens
The Netherlands

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Force all floats on opposite even pages

2007-03-29 Thread Sanjoy Mahajan
 What I would like is that all text is put on the odd pages (n), and
 that all floats are put on the opposite even pages (n-1).

One option is to use a big papersize, e.g. A3, equivalent to two
regular pages side by side.  Then put the floats in the new left
margin, where the new left margin is the old even-numbered page.

-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Force all floats on opposite even pages

2007-03-29 Thread Hans Hagen
Sanjoy Mahajan wrote:
 What I would like is that all text is put on the odd pages (n), and
 that all floats are put on the opposite even pages (n-1).
 

 One option is to use a big papersize, e.g. A3, equivalent to two
 regular pages side by side.  Then put the floats in the new left
 margin, where the new left margin is the old even-numbered page.
   
ah, interesting idea! 

Hans 


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context