• No results found

User Manual of pdfpagediff Package

N/A
N/A
Protected

Academic year: 2021

Share "User Manual of pdfpagediff Package"

Copied!
4
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

CVR.CC, http://www.cvr.cc

JWRA 34, Jagathy, Trivandrum 695014, India 1

Version: 1.5 Date: 2015/07/24 Contact: cvr@cvr.cc

User Manual of pdfpagediff Package

C. V. R ADHAKRISHNAN KEYWORDS: PDF, PDF

TEX, LATEX

QUICK LINKS

I Principles I Dependencies

I Usage I Examples

I Limitations I Acknowledgements I Download

We often encounter nightmarish scenario while generating final versions of a long document when one or more of the following happens:

1. New revised versions of packages used.

2. Smaller changes to a fewer number of pages of a long document.

3. No change in the document, but recompiled with revised page numbers as it happens during compilation of journal articles into an issue for printing.

4. Simply you happened to retypeset for no reason and then you’re forced to check each page for surprises.

Now you are left with the job of comparing the PDFs generated now and that of previous version and it is not fun. To make the job easier, pdgpagediff package is written.

1. Principles

We have a version of document, say, file1.pdf and we have its revised version, file2.pdf . pdfpagediff will create a composite pdf by juxtaposing each page of file1.pdf over the corresponding page of file2.pdf or vice-versa. Since the pdf’s are transparent, you can notice the slightest change visually by simply flipping through the pages.

2. Dependencies

pdfpagediff depends on the following packages:

1. geometry.sty 2. graphicx.sty 3. color.sty 4. substr.sty

3. Usage

Package can be loaded with the following command:

\usepackage{pdfpagediff}

Another command \layerPages has been defined to include two versions of the PDF documents to create the composite document, the syntax is:

\layerPages[<optional page numbers>]{<file1>}{<file2>}|

First one doesn’t have an optional argument of page numbers, which means all the pages will be used to create the composite document. Second one has comma separted page numbers and hyphen separated page ranges which can be mixed in any order as shown in subsequent examples of usage. The last one has 10- which means from page 10 to end of the document.

1. \layerPages{file1.pdf}{file2}

2. \layerPages[1,2,4-6,8]{file1}{file2.pdf}

3. \layerPages[1,2,4-6,8,10-22]{file1.pdf}{file2.pdf}

(2)

CVR.CC, http://www.cvr.cc

JWRA 34, Jagathy, Trivandrum 695014, India 2

Version: 1.5 Date: 2015/07/24 Contact: cvr@cvr.cc

User Manual of pdfpagediff Package

C. V. R ADHAKRISHNAN KEYWORDS: PDF, PDF

TEX, LATEX

QUICK LINKS

I Principles I Dependencies

I Usage I Examples

I Limitations I Acknowledgements I Download

4. \layerPages[1,2,4-6,8-13,17]{file1}{file2.pdf}

5. \layerPages[10-]{file1.pdf}{file2.pdf}

You need Adobe Reader to view the composite document which only provides to view each layer or all layers together or no layers at all. There is a small layer button at top left hand side of the Adobe Reader window, see the figure below:

You can see Layers icon, clicking on the icon will show you the layers. We have two layers in this example, namely, First and Second which are also the default. These labels can be changed with

\FirstDoc and \SecondDoc commands respectively.

First Document

The above figure shows the first document alone. You might note that icon for second layer is not visible now.

Second Document

(3)

CVR.CC, http://www.cvr.cc

JWRA 34, Jagathy, Trivandrum 695014, India 3

Version: 1.5 Date: 2015/07/24 Contact: cvr@cvr.cc

User Manual of pdfpagediff Package

C. V. R ADHAKRISHNAN KEYWORDS: PDF, PDF

TEX, LATEX

QUICK LINKS

I Principles I Dependencies

I Usage I Examples

I Limitations I Acknowledgements I Download

The second document is generated with 30% gray instead of black to facilitate easy indication of locations with differences. Also, note that icon for first layer is invisible since the second layer alone is mode visible here.

4. Examples

You might take a look at Clip 1 which has a paragraph from the composite document. The last word of the paragraph has a mismatch.

Clip 1 A paragraph from composite document., p. 3

Chapter 1

Matrix manipulation

It is convenient to represent multivariate data by means of n × p matrix such as X. We could consider the USArrests data in this way. We follow the convention of using n to denote the number of rows of individuals who have been observed, and p to denote the number of columns (variables). We will formalise some some aspects from linear algebra that will be important in understanding multivariate analysis. These are very brief notes, there is a wealth of readable material on linear algebra as well as material specific for statistical applications such as Healy (2000) and Schott (1997). There is also an interesting presentation from a more geometric perspective in Wickens (1995) which supplements more algebraic presentations of matrix concepts.

1.1 Vectors

Consider a vector x ∈ R

p

, by convention this is thought of as a column vector:

x =

 

 



x

1

x

2

.. . x

n

 

 



A row vector such as 

x

1

x

2

. . . x

n

 will be denoted by x

T

.

A vector is a basic unit of numbers within R , but the R objects don’t entirely conform to a formal mathematical definition (look at the way vecctor recycling works for example) and some caution is needed. The following instruction:

> x <- c(3.289, 4.700, 10.400)

assigns the values to the object x creating the following R vector:

1

Chapter 1

Matrix manipulation

It is convenient to represent multivariate data by means of n × p matrix such as X. We could consider the USArrests data in this way. We follow the convention of using n to denote the number of rows of individuals who have been observed, and p to denote the number of columns (variables). We will formalise some some aspects from linear algebra that will be important in understanding multivariate analysis. These are very brief notes, there is a wealth of readable material on linear algebra as well as material specific for statistical applications such as Healy (2000) and Schott (1997). There is also an interesting presentation from a more geometric perspective in Wickens (1995) which supplements more algebraic presentations of matrix concepts.

1.1 Vectors

Consider a vector x ∈ R

p

, by convention this is thought of as a column vector:

x =

 

 



x

1

x

2

.. . x

n

 

 



A row vector such as 

x

1

x

2

. . . x

n

 will be denoted by x

T

.

A vector is a basic unit of numbers within R , but the R objects don’t entirely conform to a formal mathematical definition (look at the way vecctor recycling works for example) and some caution is needed. The following instruction:

> x <- c(3.289, 4.700, 10.400)

assigns the values to the object x creating the following R vector:

1

Now let us take a look at the last two lines of the above para from the first document:

Clip 2 Last two lines from first document., p. 3

Chapter 1

Matrix manipulation

It is convenient to represent multivariate data by means of n × p matrix such as X. We could consider the USArrests data in this way. We follow the convention of using n to denote the number of rows of individuals who have been observed, and p to denote the number of columns (variables). We will formalise some some aspects from linear algebra that will be important in understanding multivariate analysis. These are very brief notes, there is a wealth of readable material on linear algebra as well as material specific for statistical applications such as Healy (2000) and Schott (1997). There is also an interesting presentation from a more geometric perspective in Wickens (1995) which supplements more algebraic presentations of matrix concepts.

1.1 Vectors

Consider a vector x ∈ R

p

, by convention this is thought of as a column vector:

x =

 

 



x

1

x

2

.. . x

n

 

 



A row vector such as 

x

1

x

2

. . . x

n

 will be denoted by x

T

.

A vector is a basic unit of numbers within R , but the R objects don’t entirely conform to a formal mathematical definition (look at the way vecctor recycling works for example) and some caution is needed. The following instruction:

> x <- c(3.289, 4.700, 10.400)

assigns the values to the object x creating the following R vector:

1

Here is the same location of the second document:

Clip 3 Last two lines from second document., p. 3

Chapter 1

Matrix manipulation

It is convenient to represent multivariate data by means of n × p matrix such as X. We could consider the USArrests data in this way. We follow the convention of using n to denote the number of rows of individuals who have been observed, and p to denote the number of columns (variables). We will formalise some some aspects from linear algebra that will be important in understanding multivariate analysis. These are very brief notes, there is a wealth of readable material on linear algebra as well as material specific for statistical applications such as Healy (2000) and Schott (1997). There is also an interesting presentation from a more geometric perspective in Wickens (1995) which supplements more algebraic presentations of matrix concepts.

1.1 Vectors

Consider a vector x ∈ R

p

, by convention this is thought of as a column vector:

x =

 

 



x

1

x

2

.. . x

n

 

 



A row vector such as 

x

1

x

2

. . . x

n

 will be denoted by x

T

.

A vector is a basic unit of numbers within R , but the R objects don’t entirely conform to a formal mathematical definition (look at the way vecctor recycling works for example) and some caution is needed. The following instruction:

> x <- c(3.289, 4.700, 10.400)

assigns the values to the object x creating the following R vector:

1

The difference is a space added before the last word ‘concepts’. If you look at Clip 1 now, you will get to know the difference quickly.

Further differences can be observed in pages 9 and 17 of the included document, ltest.pdf .

5. Limitations

Following limitations apply:

1. Documents with enormous changes cannot be comapared.

2. Documents with opaque backgrounds cannot be compared.

3. Tables and figures with background will not provide any meaningful information even if there are differences.

4. This is not a character by character or word by word diff program, instead it depends largely on your eyes very much.

5. pdfpagediff will work only with PDF TEX and will not work with any other TEX compilers.

(4)

CVR.CC, http://www.cvr.cc

JWRA 34, Jagathy, Trivandrum 695014, India 4

Version: 1.5 Date: 2015/07/24 Contact: cvr@cvr.cc

User Manual of pdfpagediff Package

C. V. R ADHAKRISHNAN KEYWORDS: PDF, PDF

TEX, LATEX

QUICK LINKS

I Principles I Dependencies

I Usage I Examples

I Limitations I Acknowledgements I Download

6. Acknowledgements

The test document is a chapter namely, matrices.tex from a freely available textbook, Matrix

Overview by Paul Hewson, at: http://knowledgeforge.net/opentextbook/svn/multivariatestatistics/ . Permission to use this chapter to demonstrate the features of pdfpagediff is gratefully acknowl-

edged.

7. Download

The package can be downloaded from http://www.ctan.org/pkg/pdfpagediff . Bug reports, fea-

ture requests and suggestions can be posted at http://www.cvr.cc/pdfpagediff/ . The author

can be contacted at <cvr@cvr.cc> .

Referenties

GERELATEERDE DOCUMENTEN

Wel kan een impliciete relatie worden gelegd tussen de verkeersonveilig- heid van de 80 km/uur-wegen en de in de Richtlijnen aanbevolen markeringen voor enkelbaanswegen. Dit is

Met de kennis uit het onderzoek worden ‘evidence based’ maatregelen geformuleerd voor herstel, ontwikkeling en beheer van bos, natuur en cultuurgrond, die door

wegeninfrastructuur herkenbaar is op recente luchtfoto’s en satellietfoto’s en omdat de grenzen tussen de gemeenten Overpelt en Neerpelt en tussen Overpelt en Lommel zijn

In the case where the initial settlement cracks only consist of shear cracks that do not penetrate the entire concrete section above the steel bar, a pure plastic shrinkage

The extraction of the fetal electrocardiogram from mul- tilead potential recordings on the mother’s skin has been tackled by a combined use of second-order and higher-order

134 In situations where an institution does not manage information behaviour, it translates into some of the following: common information cultures to support the delivery

The main research question was: What are the conceptions of lecturers concerning the integration of graduate attributes into a Master of Divinity programme after participation in

De maximale aanvoer van werkzame stikstof berekend volgens de gebruiksnormen van 2007 en 80% van 2006 (alleen voor suikerbieten), de landbouwkundige hoeveelheid werkzame stikstof uit