Skip to content

Instantly share code, notes, and snippets.

@pjastr
Created July 6, 2019 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pjastr/b5bbb46d59edf44926833326153561a5 to your computer and use it in GitHub Desktop.
Save pjastr/b5bbb46d59edf44926833326153561a5 to your computer and use it in GitHub Desktop.
gap> path := Directory("/cygdrive/c/gap-4.10.2/pkg/GAPDoc-1.6.2/example");;
gap> main := "/cygdrive/c/gap-4.10.2/pkg/GAPDoc-1.6.2/example/example.xml";;
gap> files := [];;
gap> bookname := "Example";;
gap> doc := ComposedDocument("GAPDoc", path, main, files, true);;
gap> r := ParseTreeXMLString(doc[1], doc[2]);;
gap> MakeGAPDocDoc( path, main, files, bookname);
#I Composing XML document . . .
#I Parsing XML document . . .
#I Checking XML structure . . .
#I Text version (also produces labels for hyperlinks):
#I First run, collecting cross references, index, toc, bib and so on . . .
#I Table of contents complete.
#I Producing the index . . .
#I Reading bibliography data files . . .
#I   BibXMLext format: examplebib.xml
'export' is not recognized as an internal or external command,
operable program or batch file.
#W WARNING: could not find these references:
[ "CR1" ]
#I Writing bibliography . . .
#I Second run through document . . .
#I Producing simplified search strings and labels for hyperlinks . . .
#I Constructing LaTeX version and calling pdflatex:
#I Writing LaTeX file, 4 x pdflatex with bibtex and makeindex, 'sh' is not recognized as an internal or external command,
operable program or batch file.

#W WARNING: Something wrong, don't find log file /cygdrive/c/gap-4.10.2/pkg/GAPDoc-1.6.2/example//cygdrive/c/gap-4.10.\
2/pkg/GAPDoc-1.6.2/example/example.log

#I ERROR: no .pdf file produced (and no .six file)#I Finally the HTML version . . .
#I First run, collecting cross references, index, toc, bib and so on . . .
Error, List Element: <list>[1] must have an assigned value in
  Append( str, Concatenation( "<a href=\"chapBib", GAPDoc2HTMLProcs.ext, "#biB", key, "\">[", r.root.biblabels[pos] )
 ); at /proc/cygdrive/C/gap-4.10.2/pkg/GAPDoc-1.6.2/lib/GAPDoc2HTML.gi:1496 called from
GAPDoc2HTMLProcs.(r.name)( r, str ); at /proc/cygdrive/C/gap-4.10.2/pkg/GAPDoc-1.6.2/lib/GAPDoc2HTML.gi:529 called from
GAPDoc2HTML( a, s ); at /proc/cygdrive/C/gap-4.10.2/pkg/GAPDoc-1.6.2/lib/GAPDoc2HTML.gi:588 called from
GAPDoc2HTMLContent( r, par ); at /proc/cygdrive/C/gap-4.10.2/pkg/GAPDoc-1.6.2/lib/GAPDoc2HTML.gi:1103 called from
GAPDoc2HTMLProcs.ChapSect( r, par, "Section"
 ); at /proc/cygdrive/C/gap-4.10.2/pkg/GAPDoc-1.6.2/lib/GAPDoc2HTML.gi:1150 called from
GAPDoc2HTMLProcs.(r.name)( r, str ); at /proc/cygdrive/C/gap-4.10.2/pkg/GAPDoc-1.6.2/lib/GAPDoc2HTML.gi:529 called from
...  at *stdin*:7
you can 'return;' after assigning a value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment