ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Appendix Page Numbering
@ 2014-02-05 16:55 Troy Henderson
  2014-02-06  3:17 ` Troy Henderson
  0 siblings, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-05 16:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I use

\definestructureconversionset [frontpart:pagenumber][][romannumerals]

to make sure the numbering of my pages in frontmatter use Roman numerals.
Not only are the pages numbered with Roman numerals, but the PDF index
links and PDF page numbers use this as well.  I would like to do something
similar for the backmatter, but I would like both the page numbers and the
PDF index links and PDF page numbers look like A1, A2, ... (for appendix).

How can this be done?

Thanks,

Troy Henderson

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

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

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-05 16:55 Appendix Page Numbering Troy Henderson
@ 2014-02-06  3:17 ` Troy Henderson
  2014-02-06 10:53   ` Wolfgang Schuster
  0 siblings, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-06  3:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

To give an idea of what I am wanting, the attached screenshot is from
Evince for a particular PDF that was created with some other program other
than ConTeXt.  Notice the custom page number names such as "Statement",
"P-1", "P-5", ..., "P-25", "APP-1", "APP-3", ...

How can I get this with ConTeXt?

Troy

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

[-- Attachment #2: screenshot.png --]
[-- Type: image/png, Size: 40814 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-06  3:17 ` Troy Henderson
@ 2014-02-06 10:53   ` Wolfgang Schuster
  2014-02-06 11:59     ` Troy Henderson
  0 siblings, 1 reply; 22+ messages in thread
From: Wolfgang Schuster @ 2014-02-06 10:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 06.02.2014 um 04:17 schrieb Troy Henderson <thenders@gmail.com>:

> To give an idea of what I am wanting, the attached screenshot is from Evince for a particular PDF that was created with some other program other than ConTeXt.  Notice the custom page number names such as "Statement", "P-1", "P-5", ..., "P-25", "APP-1", "APP-3", ...
> 
> How can I get this with ConTeXt?

\defineconversionset[frontpart:pagenumber][][romannumerals]

\definesectionblock[project][projectmatter]

\startsectionblockenvironment[project]
  \setcounter[userpage][1]
  \setuppagenumber[numberstarter=P-]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
  \setcounter[userpage][1]
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
  \setcounter[userpage][1]
  \setuppagenumber[numberstarter=APP-]
\stopsectionblockenvironment

\starttext

\startfrontmatter
\dorecurse{10}{\dontleavehmode\page}
\stopfrontmatter

\startprojectmatter
\dorecurse{10}{\dontleavehmode\page}
\stopprojectmatter

\startbodymatter
\dorecurse{10}{\dontleavehmode\page}
\stopbodymatter

\startappendices
\dorecurse{10}{\dontleavehmode\page}
\stopappendices

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


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

* Re: Appendix Page Numbering
  2014-02-06 10:53   ` Wolfgang Schuster
@ 2014-02-06 11:59     ` Troy Henderson
  2014-02-10 19:33       ` Troy Henderson
  0 siblings, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-06 11:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Wolfgang,

Thank you for your response.  Unfortunately, this does not quite work.  The
page numbers are correct, but they're not showing up like the previous
screenshot in Evince's index.  I've attached my ConTeXt source as well as
the output PDF and a screenshot of Evince's Index view.

Troy

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

[-- Attachment #2: foo.tex --]
[-- Type: application/x-tex, Size: 1226 bytes --]

[-- Attachment #3: foo.pdf --]
[-- Type: application/pdf, Size: 17837 bytes --]

[-- Attachment #4: screenshot.png --]
[-- Type: image/png, Size: 12448 bytes --]

[-- Attachment #5: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-06 11:59     ` Troy Henderson
@ 2014-02-10 19:33       ` Troy Henderson
  2014-02-13  6:53         ` Andreas Schneider
  0 siblings, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-10 19:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Any thoughts on getting these "custom PDF bookmark/index" entries?

Thanks in advance,

Troy

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

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

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-10 19:33       ` Troy Henderson
@ 2014-02-13  6:53         ` Andreas Schneider
  2014-02-13 12:39           ` Troy Henderson
  0 siblings, 1 reply; 22+ messages in thread
From: Andreas Schneider @ 2014-02-13  6:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/html, Size: 1496 bytes --]

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

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-13  6:53         ` Andreas Schneider
@ 2014-02-13 12:39           ` Troy Henderson
  2014-02-13 15:17             ` Hans Hagen
  0 siblings, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-13 12:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Andreas,

Thank you for the reply.  I'm afraid that I don't know how to manually
manipulate the PDF Catalog.  I was able to successfully build the code on
this page

http://www.ntg.nl/pipermail/ntg-context/2008/036947.html

but I had to add

\placebookmarks[chapter,section][chapter][force=yes]

and although I have Evince's "Index" visible, all of the PageLabels are "1"
and when I click on the entry it doesn't change to the correct page.  I do
get an error from Evince that says "failed to look up aut:3" or another
number.

I'm not sure what my options are.

Troy

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

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

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-13 12:39           ` Troy Henderson
@ 2014-02-13 15:17             ` Hans Hagen
  2014-02-13 15:28               ` Troy Henderson
  0 siblings, 1 reply; 22+ messages in thread
From: Hans Hagen @ 2014-02-13 15:17 UTC (permalink / raw)
  To: ntg-context

On 2/13/2014 1:39 PM, Troy Henderson wrote:
> Andreas,
>
> Thank you for the reply.  I'm afraid that I don't know how to manually
> manipulate the PDF Catalog.  I was able to successfully build the code
> on this page
>
> http://www.ntg.nl/pipermail/ntg-context/2008/036947.html
>
> but I had to add
>
> \placebookmarks[chapter,section][chapter][force=yes]
>
> and although I have Evince's "Index" visible, all of the PageLabels are
> "1" and when I click on the entry it doesn't change to the correct
> page.  I do get an error from Evince that says "failed to look up aut:3"
> or another number.
>
> I'm not sure what my options are.

mkiv:

\nopdfcompression

\setupinteraction
   [state=start]

\defineconversionset[frontpart:pagenumber][][romannumerals]
\defineconversionset[bodypart:pagenumber] [][numbers]
\defineconversionset[appendix:pagenumber] [][Characters]

\setupuserpagenumber[numberconverionset=pagenumber,way=byblock]

\setupheadertexts[Page \userpagenumber\ of \lastuserpagenumber]

\starttext

\startfrontmatter

     \startchapter[title=Fontpart]

         \dorecurse{20}{\input knuth \footnote{test}\par}

     \stopchapter

\stopfrontmatter

\startbodymatter

     \startchapter[title=Bodypart]

         \dorecurse{20}{\input tufte\par}

     \stopchapter

\stopbodymatter

\startappendices

     \startchapter[title=Appendix]

         \dorecurse{20}{\input zapf\par}

     \stopchapter

\stopappendices

\stoptext

gigves in the pdf:

/PageLabels << /Nums [ 0 << /S /r >> 6 << /S /D >> 11 << /S /A >> ] >>

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-13 15:17             ` Hans Hagen
@ 2014-02-13 15:28               ` Troy Henderson
  2014-02-13 15:36                 ` Hans Hagen
  2014-02-13 16:00                 ` Aditya Mahajan
  0 siblings, 2 replies; 22+ messages in thread
From: Troy Henderson @ 2014-02-13 15:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hans,

Attached is a screenshot of what your output looks like in Evince.  I am
trying to get the "Page Number" listed as "A" for the Appendix.

Troy

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

[-- Attachment #2: screenshot.png --]
[-- Type: image/png, Size: 8478 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-13 15:28               ` Troy Henderson
@ 2014-02-13 15:36                 ` Hans Hagen
  2014-02-13 16:00                 ` Aditya Mahajan
  1 sibling, 0 replies; 22+ messages in thread
From: Hans Hagen @ 2014-02-13 15:36 UTC (permalink / raw)
  To: ntg-context

On 2/13/2014 4:28 PM, Troy Henderson wrote:
> Hans,
>
> Attached is a screenshot of what your output looks like in Evince.  I am
> trying to get the "Page Number" listed as "A" for the Appendix.

It shows ok in Okular and Sumatrapdf (both on windows) so it's probably 
a bug in Evince then.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-13 15:28               ` Troy Henderson
  2014-02-13 15:36                 ` Hans Hagen
@ 2014-02-13 16:00                 ` Aditya Mahajan
  2014-02-13 16:46                   ` Troy Henderson
  1 sibling, 1 reply; 22+ messages in thread
From: Aditya Mahajan @ 2014-02-13 16:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 422 bytes --]

On Thu, 13 Feb 2014, Troy Henderson wrote:

> Hans,
>
> Attached is a screenshot of what your output looks like in Evince.  I am
> trying to get the "Page Number" listed as "A" for the Appendix.

If I add

\placebookmarks[chapter,section][chapter][force=yes]

to Hans's example and compile it (using the old ConTeXt ver 2013.12.24), I 
see the bookmarks in Evince (ver 3.10.3 on Linux). See the attached 
figure.


Aditya

[-- Attachment #2: Type: IMAGE/png, Size: 16386 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-13 16:00                 ` Aditya Mahajan
@ 2014-02-13 16:46                   ` Troy Henderson
  2014-02-13 22:16                     ` Troy Henderson
  0 siblings, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-13 16:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I do have an older version of Evince on this machine (v. 2.32.0).  I have a
new version installed on another machine.  I will check it there.  Thank
you very much.  My only question now would be how to remove the "1" and "A"
PRECEDING the chapter names (as indicated in the attached editing of
Aditya's screenshot).

Troy

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

[-- Attachment #2: screenshot.png --]
[-- Type: image/png, Size: 17772 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-13 16:46                   ` Troy Henderson
@ 2014-02-13 22:16                     ` Troy Henderson
  2014-02-14 15:54                       ` Hans Hagen
  0 siblings, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-13 22:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

My desired PDF PageLabels are in the attached PNG.  I have also attached a
ConTeXt source file that attempts attempts this, but clearly I am missing a
bit.  I would appreciate any help in accomplishing this effect.

Troy

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

[-- Attachment #2: screenshot.png --]
[-- Type: image/png, Size: 30250 bytes --]

[-- Attachment #3: foo.tex --]
[-- Type: application/x-tex, Size: 3073 bytes --]

[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-13 22:16                     ` Troy Henderson
@ 2014-02-14 15:54                       ` Hans Hagen
  2014-02-15  1:30                         ` Troy Henderson
  2014-02-21  1:20                         ` Troy Henderson
  0 siblings, 2 replies; 22+ messages in thread
From: Hans Hagen @ 2014-02-14 15:54 UTC (permalink / raw)
  To: ntg-context

On 2/13/2014 11:16 PM, Troy Henderson wrote:
> My desired PDF PageLabels are in the attached PNG.  I have also attached
> a ConTeXt source file that attempts attempts this, but clearly I am
> missing a bit.  I would appreciate any help in accomplishing this effect.

it's not that trivial to come up with an interface for that which also 
can be wikified and remembered well

anyhow, i'll add this:

     \setupuserpagenumber[viewerprefix=titlepage]
     \startstandardmakeup
         The first page
     \stopstandardmakeup
     \setupuserpagenumber[viewerprefix=p ]

so it's a semi-manual job

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-14 15:54                       ` Hans Hagen
@ 2014-02-15  1:30                         ` Troy Henderson
  2014-02-15  7:50                           ` Wolfgang Schuster
  2014-02-21  1:20                         ` Troy Henderson
  1 sibling, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-15  1:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

>     \setupuserpagenumber[viewerprefix=titlepage]
>     \startstandardmakeup
>         The first page
>     \stopstandardmakeup
>     \setupuserpagenumber[viewerprefix=p ]
>

I'm clearly missing something.

Troy

\setupinteraction[state=start]
\defineconversionset[frontpart:pagenumber][][romannumerals]
\defineconversionset[bodypart:pagenumber][][numbers]
\defineconversionset[appendix:pagenumber][][Characters]
\setupuserpagenumber[numberconverionset=pagenumber,way=byblock]
\placebookmarks[chapter,section][chapter][force=yes]
\starttext
    \startfrontmatter
        \startchapter[title={Cover}]\stopchapter
        \dorecurse{2}{\mbox{}\page}

        \setupuserpagenumber[viewerprefix=titlepage]
        \startstandardmakeup
            \startchapter[title={Title Page}]
            \stopchapter
        \stopstandardmakeup
        \setupuserpagenumber[viewerprefix=p ]

    \stopfrontmatter

   \startbodymatter

   \stopbodymatter
\stoptext
<http://www.ntg.nl/mailman/listinfo/ntg-context>

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

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

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-15  1:30                         ` Troy Henderson
@ 2014-02-15  7:50                           ` Wolfgang Schuster
  2014-02-15 13:43                             ` Troy Henderson
  0 siblings, 1 reply; 22+ messages in thread
From: Wolfgang Schuster @ 2014-02-15  7:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 15.02.2014 um 02:30 schrieb Troy Henderson <thenders@gmail.com>:

> 
>     \setupuserpagenumber[viewerprefix=titlepage]
>     \startstandardmakeup
>         The first page
>     \stopstandardmakeup
>     \setupuserpagenumber[viewerprefix=p ]
> 
> I'm clearly missing something.

Have you updated you installation because the viewerprefix key was added yesterday.

>         \dorecurse{2}{\mbox{}\page}

\dorecurse{2}{\dontleavehmode\page}

Wolfgang

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

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

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-15  7:50                           ` Wolfgang Schuster
@ 2014-02-15 13:43                             ` Troy Henderson
  0 siblings, 0 replies; 22+ messages in thread
From: Troy Henderson @ 2014-02-15 13:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Have you updated you installation because the viewerprefix key was added
> yesterday.
>

Oh no.  I'm using the TeXLive 2013 ConTeXt.  Is the update something I can
do on this, or do I have to download and install minimals?


> \dorecurse{2}{\dontleavehmode\page}
>

Thanks.

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

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

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-14 15:54                       ` Hans Hagen
  2014-02-15  1:30                         ` Troy Henderson
@ 2014-02-21  1:20                         ` Troy Henderson
  2014-02-26  1:42                           ` Troy Henderson
  1 sibling, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-21  1:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

anyhow, i'll add this:
>
>     \setupuserpagenumber[viewerprefix=titlepage]
>     \startstandardmakeup
>         The first page
>     \stopstandardmakeup
>     \setupuserpagenumber[viewerprefix=p ]
>

Thanks Hans.  That works great.  Is it possible to have ONLY the prefix
(not followed by the corresponding page number) with this implementation?
If not, is that a feature that can also be added?

Troy

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

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

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-21  1:20                         ` Troy Henderson
@ 2014-02-26  1:42                           ` Troy Henderson
  2014-02-26  2:09                             ` Aditya Mahajan
  0 siblings, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-26  1:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

>
> Is it possible to have ONLY the prefix (not followed by the corresponding
> page number) with this implementation?  If not, is that a feature that can
> also be added?
>

I tried to create a custom label called "viewercustom" (which operates like
"viewerprefix" but omits the userpage counter value), but I have been
unsuccessful .  I modified the following four files (which were the only
files that I could find containing "viewerprefix")

./tex/texmf-context/tex/context/base/strc-pag.mkiv
./tex/texmf-context/tex/context/base/strc-pag.lua
./tex/texmf-context/tex/context/base/mult-def.mkiv
./tex/texmf-context/tex/context/base/lpdf-mis.lua

Is there something else that needs to be modified that I am missing?

Troy

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

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

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-26  1:42                           ` Troy Henderson
@ 2014-02-26  2:09                             ` Aditya Mahajan
  2014-02-26  2:37                               ` Troy Henderson
  0 siblings, 1 reply; 22+ messages in thread
From: Aditya Mahajan @ 2014-02-26  2:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 25 Feb 2014, Troy Henderson wrote:

>>
>> Is it possible to have ONLY the prefix (not followed by the corresponding
>> page number) with this implementation?  If not, is that a feature that can
>> also be added?
>>
>
> I tried to create a custom label called "viewercustom" (which operates like
> "viewerprefix" but omits the userpage counter value), but I have been
> unsuccessful .  I modified the following four files (which were the only
> files that I could find containing "viewerprefix")
>
> ./tex/texmf-context/tex/context/base/strc-pag.mkiv
> ./tex/texmf-context/tex/context/base/strc-pag.lua
> ./tex/texmf-context/tex/context/base/mult-def.mkiv
> ./tex/texmf-context/tex/context/base/lpdf-mis.lua
>
> Is there something else that needs to be modified that I am missing?

Did you regenerate the format? context --make.

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
___________________________________________________________________________________


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

* Re: Appendix Page Numbering
  2014-02-26  2:09                             ` Aditya Mahajan
@ 2014-02-26  2:37                               ` Troy Henderson
  2014-02-26 11:38                                 ` Troy Henderson
  0 siblings, 1 reply; 22+ messages in thread
From: Troy Henderson @ 2014-02-26  2:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

>
> Did you regenerate the format? context --make.
>

I have now :-) which now reflects may changes, but now I have to figure out
why my changes aren't working as expected. :-/

Troy

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

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

___________________________________________________________________________________
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] 22+ messages in thread

* Re: Appendix Page Numbering
  2014-02-26  2:37                               ` Troy Henderson
@ 2014-02-26 11:38                                 ` Troy Henderson
  0 siblings, 0 replies; 22+ messages in thread
From: Troy Henderson @ 2014-02-26 11:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

>
> I have now :-) which now reflects may changes, but now I have to figure
> out why my changes aren't working as expected. :-/
>

After trying for quite some time, I believe it's safe to say that someone
with more knowledge of Lua and the internals of ConTeXt may have to look
into this as I may be underqualified.

Troy

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

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

___________________________________________________________________________________
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] 22+ messages in thread

end of thread, other threads:[~2014-02-26 11:38 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-05 16:55 Appendix Page Numbering Troy Henderson
2014-02-06  3:17 ` Troy Henderson
2014-02-06 10:53   ` Wolfgang Schuster
2014-02-06 11:59     ` Troy Henderson
2014-02-10 19:33       ` Troy Henderson
2014-02-13  6:53         ` Andreas Schneider
2014-02-13 12:39           ` Troy Henderson
2014-02-13 15:17             ` Hans Hagen
2014-02-13 15:28               ` Troy Henderson
2014-02-13 15:36                 ` Hans Hagen
2014-02-13 16:00                 ` Aditya Mahajan
2014-02-13 16:46                   ` Troy Henderson
2014-02-13 22:16                     ` Troy Henderson
2014-02-14 15:54                       ` Hans Hagen
2014-02-15  1:30                         ` Troy Henderson
2014-02-15  7:50                           ` Wolfgang Schuster
2014-02-15 13:43                             ` Troy Henderson
2014-02-21  1:20                         ` Troy Henderson
2014-02-26  1:42                           ` Troy Henderson
2014-02-26  2:09                             ` Aditya Mahajan
2014-02-26  2:37                               ` Troy Henderson
2014-02-26 11:38                                 ` Troy Henderson

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