ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] unwanted blank page
@ 2023-11-19 10:56 Hans van der Meer via ntg-context
  2023-11-19 11:52 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Hans van der Meer via ntg-context @ 2023-11-19 10:56 UTC (permalink / raw)
  To: NTG ConTeXt; +Cc: Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 682 bytes --]

I should have a first page without pagenumber and pagenumbers on the subsequent ones.
However the MWE here introduces an unwanted blank page from the call to \setuppagenumbering[state=start].
And the \setuppagenumbering has to come after the \page, of course.

Should I program otherwise?

yours sincerely
dr. Hans van der Meer


% test pagenumbering start-stop
\setuppapersize[A5][A5]
\starttext
\setuppagenumbering[state=stop]
\ConTeXt\space\contextversion\blank
This is page 1 without pagenumber.\crlf
\page
\setuppagenumbering[state=start]
This should be a page with pagenumber 2.\crlf
But the pagenumber is 3 instead after blank page 2.
\stoptext




[-- Attachment #1.2.1: Type: text/html, Size: 1769 bytes --]

[-- Attachment #1.2.2: extrapage.pdf --]
[-- Type: application/pdf, Size: 8872 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 227 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: unwanted blank page
  2023-11-19 10:56 [NTG-context] unwanted blank page Hans van der Meer via ntg-context
@ 2023-11-19 11:52 ` Wolfgang Schuster
  2023-11-19 22:34   ` madiazm.eoicc
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2023-11-19 11:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans van der Meer via ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 739 bytes --]

Hans van der Meer via ntg-context schrieb am 19.11.2023 um 11:56:
> I should have a first page without pagenumber and pagenumbers on the 
> subsequent ones.
> However the MWE here introduces an unwanted blank page from the call 
> to \setuppagenumbering[state=start].
> And the \setuppagenumbering has to come after the \page, of course.
>
> Should I program otherwise?

There is nothing you can do here for the moment, the empty page is caused
by a new piece of code in page-lay.mkxl (see below) to go to the next 
odd page
when you use the \setuppagenumbering command.

page-lay.mkxl (line 1436):

\appendtoks
     \ifnum\realpageno>\plusone
         \page[\v!odd]%
         \setuplayout
     \fi
\to \everysetuppagenumbering

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1304 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: unwanted blank page
  2023-11-19 11:52 ` [NTG-context] " Wolfgang Schuster
@ 2023-11-19 22:34   ` madiazm.eoicc
  2023-11-20 17:51     ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: madiazm.eoicc @ 2023-11-19 22:34 UTC (permalink / raw)
  To: ntg-context

sorry if i dont get your problem right understood, but i'm completely new to context.

I use a hack not to get the number not printed in the title page (though I define sectionblocks for keeping different numbering systems for the table of contents and the document)

I use \setuppagenumbering[location=] for not getting the number printed and then I reset the page numbering for the next sections. I copy my code so that you know what I do.
Sorry if it doesnt help

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% LOS BLOQUES %%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\definesectionblock[portada][number=no]

\defineconversionset
[portada:pagenumber][][characters]
\defineconversionset
[frontpart:pagenumber][][romannumerals]
\defineconversionset
[bodypart:pagenumber][][numbers]
\defineconversionset
[appendixpart:pagenumber][][Characters]



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% NUMERACIÓN DE PÁGINAS, SETUP %%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setuppagenumbering[alternative=doublesided,location={footer,inmargin}]

\setupuserpagenumber[way=byblock] 



\starttext
      
      \startsectionblock[portada]
      \setuppagenumbering[location=]
      \input{03_portadaEval.tex}%this is my title page
      
    \stopsectionblock

    \startfrontmatter[] 
    \start
      \setuplayout[reset]
      \setupinterlinespace[.8ex]
      \completecontent
    \stop
  \stopfrontmatter

  \startbodymatter[]
  
    \input{50_Evaluacion.tex}%a piece of text
   
  \stopbodymatter

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: unwanted blank page
  2023-11-19 22:34   ` madiazm.eoicc
@ 2023-11-20 17:51     ` Pablo Rodriguez via ntg-context
  2023-11-22  8:57       ` madiazm.eoicc
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2023-11-20 17:51 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 11/19/23 23:34, madiazm.eoicc@gmail.com wrote:
> sorry if i dont get your problem right understood, but i'm completely
> new to context.

Hi Miguel,

I’m afraid it isn’t entirely clear whether you intend to ask something
or not.

> I use a hack not to get the number not printed in the title page
> (though I define sectionblocks for keeping different numbering systems
> for the table of contents and the document)

Section blocks are intended for that.

Just a comment, if your cover (or title) page involves a one and only
single page, you may use makeups, such as in:

  \starttext
  \startmakeup[standard][pagestate=start]
  \dorecurse{25}{\input knuth}
  \stopmakeup
  \stoptext

My sample explicitly displays that makeups are intended for a single page.

Since actual content for that makeup would fit in six pages without the
makeup, it looks weird inside it.

> I use \setuppagenumbering[location=] for not getting the number
> printed and then I reset the page numbering for the next sections. I
> copy my code so that you know what I do.
> Sorry if it doesnt help

If you are showing your code to list members, fine.

Sorry, but if there is a question here, I’m afraid you need to be more
explicit asking your question.

Just some comments:

> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%% LOS BLOQUES %%%%%%%%%%%%%%%%%
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

In a minimal sample, comments as the previous one don’t provide any clue
to understand your code or the issue you might be dealing with.

It is wiser to keep the sample to its minimal form.

>       \startsectionblock[portada]
>       \setuppagenumbering[location=]
>       \input{03_portadaEval.tex}%this is my title page

It is better to provide actual content than a file name.

BTW, if its contents cannot be in more than a single page, the approach
suggested above might be easier.


>     \startfrontmatter[]

Empty brackets are not required here.

>     \start
>       \setuplayout[re
>       \setupinterlinespace[.8ex]

I would say that this is extremely small even for an "x" to fit in.

Again, just in case it might help,

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: unwanted blank page
  2023-11-20 17:51     ` Pablo Rodriguez via ntg-context
@ 2023-11-22  8:57       ` madiazm.eoicc
  2023-12-03 15:28         ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: madiazm.eoicc @ 2023-11-22  8:57 UTC (permalink / raw)
  To: ntg-context

Thanks a lot Pablo for your comments, I think my bad Englisch did not let me be clear.

I just wanted to show my trick not to get the first page numbered, hiding the number with [location=] and then changing the number format to the wished option. I was not asking a question.
Of course, since this is all new for me, I possibly go around and aroung to get a little thing done. In the introductions to ConTeXt I never found the command startmakeup, so i had to figure out a way to do it. I will study it at weekend.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: unwanted blank page
  2023-11-22  8:57       ` madiazm.eoicc
@ 2023-12-03 15:28         ` Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; 6+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2023-12-03 15:28 UTC (permalink / raw)
  To: ntg-context; +Cc: Pablo Rodriguez

On 11/22/23 09:57, madiazm.eoicc@gmail.com wrote:
> Thanks a lot Pablo for your comments, I think my bad English did not
> let me be clear.
Sorry (also for my delay in answering), but it was totally my fault (I
totally missed your point)..

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2023-12-03 15:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-19 10:56 [NTG-context] unwanted blank page Hans van der Meer via ntg-context
2023-11-19 11:52 ` [NTG-context] " Wolfgang Schuster
2023-11-19 22:34   ` madiazm.eoicc
2023-11-20 17:51     ` Pablo Rodriguez via ntg-context
2023-11-22  8:57       ` madiazm.eoicc
2023-12-03 15:28         ` Pablo Rodriguez via ntg-context

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