friendly / VCDR

Visualizing categorical data with R
0 stars 0 forks source link

Index warnings #72

Closed friendly closed 8 years ago

friendly commented 8 years ago

Some index problems arose in #70 and #71 I checked the new index visually, but didn't look at the book.ilg log file. That shows 67 warnings, the first few of which look like this:

This is makeindex, version 2.15 [MiKTeX 2.9] (kpathsea + Thai support).
Scanning style file C:/Dropbox/Documents/VCDR/book.ist....done (4 attributes redefined, 0 ignored).
Scanning input file book.idx.......done (3461 entries accepted, 0 rejected).
Sorting entries...................................done (47353 comparisons).
Generating output file book.ind....
## Warning (input = book.idx, line = 1189; output = book.ind, line = 23):
   -- Unmatched range closing operator ).

## Warning (input = book.idx, line = 1130; output = book.ind, line = 63):
   -- Inconsistent page encapsulator textbf within range.

## Warning (input = book.idx, line = 1838; output = book.ind, line = 100):
   -- Inconsistent page encapsulator textbf within range.

## Warning (input = book.idx, line = 1864; output = book.ind, line = 100):
   -- Unmatched range closing operator ).

## Warning (input = book.idx, line = 593; output = book.ind, line = 219):
   -- Extra range opening operator (.

## Warning (input = book.idx, line = 830; output = book.ind, line = 219):
   -- Unmatched range closing operator ).

## Warning (input = book.idx, line = 79; output = book.ind, line = 249):
   -- Unmatched range closing operator ).

Most have to do with page range operators from \ixon{} and \ixoff{}. They are warnings, but probably mean that the page ranges are printed wrongly.

@mattsigal : Can you please try to check and correct as many of these as possible over the next day? It would work best if you could run knit2pdf("book.Rnw", quiet=TRUE) in your repo after making any changes an examine the book.ilg file. After you do, run

git checkout -- 'ch*/fig/*.pdf'

so only the changed other files become part of your commit.

mattsigal commented 8 years ago

I may be missing something but here goes.

1) I made a new branch, index2. 2) I opened RStudio and set my working directory to ~/.../VCDR/ 3) In RStudio, I ran knit2pdf("book.Rnw", quiet=TRUE) It started to compile, but crashed at:

Quitting from lines 1244-1254 (./ch02.Rnw) 
Quitting from lines 152-155 (./ch02.Rnw) 
Error in nrow(tv_data) : object 'tv_data' not found

Would it be possible to just send me the ilg file to look over rather than having me recompile the book locally? Probably would be easier in the long run (since I won't have a ton of time tomorrow).

EDIT: The above error was because I didn't have vcdExtra installed (running a fairly fresh install).

EDIT2: Well, I sorted out all of the package errors (there were quite a few). But now the process crashes with:

Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  : 
  Running 'texi2dvi' on 'book.tex' failed.
LaTeX errors:
! LaTeX Error: Something's wrong--perhaps a missing \item.
``
philchalmers commented 8 years ago

You're probably missing some of the core packages. Check book.Rnw for a list of the required packages and install those first.

mattsigal commented 8 years ago

Yeah, I caught of of those - see the edits. Now it is a different problem.