From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93983 Path: news.gmane.org!not-for-mail From: Chicho Pep Newsgroups: gmane.comp.tex.context Subject: A document composed only of TEXpages Date: Thu, 3 Mar 2016 19:49:40 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1739516079779686987==" X-Trace: ger.gmane.org 1457082860 2624 80.91.229.3 (4 Mar 2016 09:14:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Mar 2016 09:14:20 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 04 10:14:06 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1abloE-0002Q3-0S for gctc-ntg-context-518@m.gmane.org; Fri, 04 Mar 2016 10:14:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 16A5F7986; Fri, 4 Mar 2016 10:13:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pMxdHZv5URuZ; Fri, 4 Mar 2016 10:13:36 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F0337990; Fri, 4 Mar 2016 10:13:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 19C7C79CE for ; Thu, 3 Mar 2016 19:49:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L3WISiv-WkVk for ; Thu, 3 Mar 2016 19:49:52 +0100 (CET) Original-Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5A79179CC for ; Thu, 3 Mar 2016 19:49:42 +0100 (CET) Original-Received: by mail-vk0-f54.google.com with SMTP id e185so31070718vkb.1 for ; Thu, 03 Mar 2016 10:49:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=s8iT64gs3o2Es0btdosMiece2mf8V0XcLg4Rn+kQtEY=; b=a6zM0VLu8dzWRTGcgtwYf+EMFwo2fLpgh3E5uP8XBJWfPQREImOKaEc2RJuNjLgA1b 0SCm7JFApXAoPvBm07qS1KPnzEmLU3p5437c+nkBUxkhlddkCk+KMx8lwe7MybbkjJat gOqjpJ4AE0sLBaCsZ84PdINS1accASsg7kO3bgRgijmtgIMTPK5uC7TnPpMzvw83VMLr vKQ57G7tHFIENH2V0Ra1hqAs3Lexz5iwZmIQZZATJsXv8Lei8fElkPa9IDjkMNwPZqrc o+jJp2RtaI6os6WOU+8OJXY3eiFm1d3LonakXkWGFYOM9fWG0ZIHN+p8PcsCJ58t3NCy TwPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=s8iT64gs3o2Es0btdosMiece2mf8V0XcLg4Rn+kQtEY=; b=Vox0COEznPwaBP8pA4EQ/r8qfEBx6h3Vf6VBw3K/Q0NrIrdlTgM9dN4N5kTC36qrLU 8BHKcLt9Y3cr98POC7Wbqwj8ReUFE0jx518tXn/APQxMXP4Wy1Fm9+33WGl+nbgmfJgL RaF1a2O6VmYxRFvbWWXOe3vr2ryb46n/0xYowM7CospVUcu77qmCO1tMqLO37Pd4LvJ3 40ibHIAzaO9ZeJ7D5dzsJ9xkgUp0WZWyYdYSmlpF0K9Kd3mkujtUvMTcAveJwAhnVl0S Lizgs1Opm2B5Ow96Jsiw3f2e6q1gWbLaz0k8HfBP1o3RmOp05TddEmi03/Y16MCEnfuh MCTA== X-Gm-Message-State: AD7BkJIAUNZTnaEeMCQ4icPp1uAXvI1E6wMd+fD9Y9OMOsqYKBDdUfBZUEUX1bkDUiqFiudnWw2sL59JJEYiyQ== X-Received: by 10.31.50.202 with SMTP id y193mr3091983vky.48.1457030980931; Thu, 03 Mar 2016 10:49:40 -0800 (PST) Original-Received: by 10.176.0.112 with HTTP; Thu, 3 Mar 2016 10:49:40 -0800 (PST) X-Mailman-Approved-At: Fri, 04 Mar 2016 10:13:34 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:93983 Archived-At: --===============1739516079779686987== Content-Type: multipart/alternative; boundary=001a1143f79e0b95df052d297618 --001a1143f79e0b95df052d297618 Content-Type: text/plain; charset=UTF-8 Hello everybody, I would like to have a document composed of TEXpages only, where each TEXpage contains one whole subsection or section. I have achieved that indeed, but I don't get to understand how the numbering of pages works in this case. I've tried to use \setcounter[userpage][\pagenumber+1]. Here is my document: *** \setupinteraction[state=start] \startsetups[myTEXpagesetup] \setupwhitespace[line] \setuptolerance[space] \stopsetups \setupfittingpage[TEXpage] [command=\texsetup{myTEXpagesetup}, height=fit, width=210mm, offset=10mm] \starttext \startTEXpage \startsection[title={My Section}] \placecontent \stopTEXpage \setcounter[userpage][\pagenumber+1] \startTEXpage \startsubsection[title={My First Subsection}] Contents \stopsubsection \stopTEXpage \setcounter[userpage][\pagenumber+1] \startTEXpage \startsubsection[title={My Second Subsection}] Contents \stopsubsection \stopTEXpage \setcounter[userpage][\pagenumber+1] \startTEXpage \startsubsection[title={My Third Subsection}] Contents \stopsubsection \stopTEXpage \stopsection \stoptext *** The PDF browser numbers the pages correctly, and in this case they get numbers 1 to 4. But the generated list of contents in page 1 says that section "My Third Subsection" is in page 3 instead of 4, though the link correctly jumps to page 4. The (sub)section in the last TEXpage of the document gets always numbered as if it would be in the next to last TEXpage. To make the list of contents look good, I may add one last empty TEXpage at the end of the document. But I'd still like to ask how, or if, it would be possible to make this use case work without that trick. There's a pair more things: When the document is composed of only one single TEXpage, then that page gets number 0 in the PDF browser, instead of number 1. When I don't use \setcounter[userpage][\pagenumber+1] in between the TEXpages, they get numbers 1,1,1,2 in the PDF browser, while the list of contents says my subsections are in pages 1,1,0 (but the links jump always to the correct page). Thank you for your help Pep p.s. As PDF browsers, I use Evince, Okular and Firefox's built-in PDF Viewer p.p.s. I love ConTeXt :) --001a1143f79e0b95df052d297618 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello everybody,

I would like to have a docume= nt composed of TEXpages only, where each TEXpage contains one whole subsect= ion or section. I have achieved that indeed, but I don't get to underst= and how the numbering of pages works in this case. I've tried to use \s= etcounter[userpage][\pagenumber+1]. Here is my document:

***

= \setupinteraction[state=3Dstart]

\startsetups[myTEXpagesetup]
=C2= =A0 \setupwhitespace[line]
=C2=A0 \setuptolerance[space]
\stopsetups<= br>
\setupfittingpage[TEXpage]
=C2=A0 [command=3D\texsetup{myTEXpages= etup},
=C2=A0=C2=A0 height=3Dfit,
=C2=A0=C2=A0 width=3D210mm,
=C2= =A0=C2=A0 offset=3D10mm]

\starttext

\startTEXpage
\startse= ction[title=3D{My Section}]
\placecontent
\stopTEXpage

\setcou= nter[userpage][\pagenumber+1]

\startTEXpage
\startsubsection[titl= e=3D{My First Subsection}]
Contents
\stopsubsection
\stopTEXpage
\setcounter[userpage][\pagenumber+1]

\startTEXpage
\startsu= bsection[title=3D{My Second Subsection}]
Contents
\stopsubsection
= \stopTEXpage

\setcounter[userpage][\pagenumber+1]

\startTEXpa= ge
\startsubsection[title=3D{My Third Subsection}]
Contents
\stops= ubsection
\stopTEXpage

\stopsection

\stoptext

***
The PDF browser numbers the pages correctly, and in this case they ge= t numbers 1 to 4. But the generated list of contents in page 1 says that se= ction "My Third Subsection" is in page 3 instead of 4, though the= link correctly jumps to page 4. The (sub)section in the last TEXpage of th= e document gets always numbered as if it would be in the next to last TEXpa= ge.

To make the list of contents look good, I may add one last empty= TEXpage at the end of the document. But I'd still like to ask how, or = if, it would be possible to make this use case work without that trick.
=
There's a pair more things:

When the document is composed of= only one single TEXpage, then that page gets number 0 in the PDF browser, = instead of number 1.

When I don't use \setcounter[userpage][\pag= enumber+1] in between the TEXpages, they get numbers 1,1,1,2 in the PDF bro= wser, while the list of contents says my subsections are in pages 1,1,0 (bu= t the links jump always to the correct page).

Thank you for your hel= p

Pep

p.s. As PDF browsers, I use Evince, Okular a= nd Firefox's built-in PDF Viewer

p.p.s. I love ConTeXt :)<= br>

--001a1143f79e0b95df052d297618-- --===============1739516079779686987== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1739516079779686987==--