RE: Page numbering for subpages

2009-12-15 Thread Rob Oakes
Hi, 

This could also be done using a set of LaTeX commands following your main
body text.  This is a rough first draft, but the general procedure goes like
this:

1.) Create a variable to keep track of the current page.

2.) Redefine \thepage macro so that it will paginate the sub-figures
appropriately.  This will involve resetting the "page" counter

3.) Set "page" back to its previous value.

If you follow this procedure at every figure/subfigure groups, it should
have the desired effect.  A rough draft of the code is below.  Also, you
might consider redefining one of the float environments (or creating your
own) so that it applies these definitions automatically.  That would spare
you from needing to add them before every block of figures.
%%

% Add to the document preamble
\newcommand{\currentpage}{\relax}

End of Body Text
___

% Add the following before the first "figure" as ERT

% Create Value to Keep Track of the Current Page
\renewcommand{\currentpage}{\value{page}}
\setcounter{page}{0} % Set the page counter value to zero
\renewcommand{\thepage}{\arabic{\currentpage}\alph{page}} % Track the sub
pages
___

Sub-figures
___

% Add the following before the next figure as ERT

\setcounter{page}{\currentpage} % Restores the currentpage value
\renewcommand{\thepage}{\arabic{page}} % Restores the previous definition

%%

This is an extremely rough solution, and I haven't tested it, but it would
generally have the effect that you're looking for.

Cheers,

Rob Oakes



Re: Page numbering for subpages

2009-12-15 Thread Les Denham
On Monday 14 December 2009 16:29:04 Dainis Zegners wrote:
> Hello to everybody!
> 
> I have the following problem to solve in Lyx:
> 
> I have a couple of graphics in floats that each fill a whole page. I want
>  that these pages are inserted as subpages, that is with numberings 40a,
>  40b, etc.
> 
> The reason is that I am writting a thesis with a maximum page limit of 40,
>  but I am allowed to count pages with graphs only as subpages.
> 
> I have already searched the internet for some hours but have not found a
> solution yet. I found a latex package called subfigure , but some how this
>  did not work together with the float environment.
> 
> I would greatly appreciate any help, thanks in advance !
> 
Dainis,

I don't know of any easy way of doing this, but the following process should 
work:

1.  Get the numbers of subsequent pages right.  You can do this with the LaTeX 
command \setpagenumber{41} inserted after your last figure, but if you don't 
have any pages after the last figure you won't need to do this.

2. Export to PDF from LyX.

3. Use PDFTK to uncompress the PDF file.
(http://www.accesspdf.com/pdftk/)

4. Use a text editor on the uncompressed PDF file, and change the page numbers 
as required.

5. If needed, use the text editor on the uncompressed PDF file to change any 
references to the page numbers of the figures on the pages you just 
renumbered.  If you only used figure numbers in crossreferences, you will only 
have to change the List of Figures.

6. Use PDFTK to compress the PDF file. 

I can see some potential problems. The justification of the edited numbers 
will be off slightly. Finding the numbers to edit in the uncompressed PDF file 
could be difficult.  You could simplify that problem by using PDFTK to extract 
the pages to be edited individually, and just uncompressing them.

Les
-- 
Les Denham
---
http://www.hal-pc.org/~ldenham
---
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Page numbering for subpages

2009-12-14 Thread Dainis Zegners
Hello to everybody!

I have the following problem to solve in Lyx:

I have a couple of graphics in floats that each fill a whole page. I want that
these pages are inserted as subpages, that is with numberings 40a, 40b, etc.

The reason is that I am writting a thesis with a maximum page limit of 40, but I
am allowed to count pages with graphs only as subpages.

I have already searched the internet for some hours but have not found a
solution yet. I found a latex package called subfigure , but some how this did
not work together with the float environment.

I would greatly appreciate any help, thanks in advance ! 

Dainis

P.S. I am using Lyx 1.6.2 on a Ubuntu 9.0.4 system.