ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with doublesided
@ 2012-01-11 10:40 Tomas Hala
  0 siblings, 0 replies; 5+ messages in thread
From: Tomas Hala @ 2012-01-11 10:40 UTC (permalink / raw)
  To: . Mailing list ConTeXt

Hello,

because of problems with a double-sided document,
I compared ConTeXt behaviour in TeXlive2010, TeXlive2011
and beta-version at contextgarden.net.

I found out, unfortunately, that the following code works differently:
only on TeXlive2010 version I received the proper design,
i.e. even page has mark on the left, odd one on the right,
while the TeXlive2011 and the beta produce single-sided layout,
i.e. marks are on the right side in all pages.

Or is there any special option in the current version?

Thanks for a help,

Tomas Hala




\starttext
        \setuppagenumbering[alternative=doublesided]
        \setuplayout[location=doublesided,marking=on]
        \setuppapersize[A5][A4]
                blablablabla
        \page
                blablablabla
        \page
                blablablabla etc.
\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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problem with doublesided
  2012-02-02 17:54 ` Wolfgang Schuster
@ 2012-02-03  8:25   ` luigi scarso
  0 siblings, 0 replies; 5+ messages in thread
From: luigi scarso @ 2012-02-03  8:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Feb 2, 2012 at 6:54 PM, Wolfgang Schuster
<schuster.wolfgang@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problem with doublesided
  2012-02-02 17:02 problem " luigi scarso
@ 2012-02-02 17:54 ` Wolfgang Schuster
  2012-02-03  8:25   ` luigi scarso
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-02-02 17:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* problem with doublesided
@ 2012-02-02 17:02 luigi scarso
  2012-02-02 17:54 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: luigi scarso @ 2012-02-02 17:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

(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 ?
-- 
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Problem with doublesided
@ 2012-01-09  9:53 Tomas Hala
  0 siblings, 0 replies; 5+ messages in thread
From: Tomas Hala @ 2012-01-09  9:53 UTC (permalink / raw)
  To: . Mailing list ConTeXt

Hello,

because of problems with a double-sided document,
I compared ConTeXt behaviour in TeXlive2010, TeXlive2011 
and beta-version at contextgarden.net.

I found out, unfortunately, that the following code works differently: 
only on TeXlive2010 version I received the proper design, 
i.e. even page has mark on the left, odd one on the right,
while the TeXlive2011 and the beta produce single-sided layout, 
i.e. marks are on the right side in all pages.

Or is there any special option in the current version?

Thanks for a help,

Tomas Hala




\starttext
	\setuppagenumbering[alternative=doublesided]
	\setuplayout[location=doublesided,marking=on]
	\setuppapersize[A5][A4]
		blablablabla
	\page
		blablablabla
	\page
		blablablabla etc.
\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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-03  8:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-11 10:40 Problem with doublesided Tomas Hala
  -- strict thread matches above, loose matches on Subject: below --
2012-02-02 17:02 problem " luigi scarso
2012-02-02 17:54 ` Wolfgang Schuster
2012-02-03  8:25   ` luigi scarso
2012-01-09  9:53 Problem " Tomas Hala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).