[racket] Help generating PDF documents with Scribble
scribble --pdf works fine if I leave out the number-style tag, yes.
If I do not specify a target file, I get the error saying I should specify one.
Note: I obfuscated user-specific path information with **** below.
scribble --latex ... generates a .tex file as expected, with numbered entries, but compiling the .tex file
example_paper2.tex in my LaTeX editor hangs. See below, snipped for brevity:
-------------------
Command Line: latex.exe --src --interaction=errorstopmode --synctex=-1 "example_paper2.tex"
Startup Folder: C:\Sp13\notes
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9)
entering extended mode
(C:\*****\example_paper2.tex
...
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\wasysym\uwasy.fd")
-----------------------------
WRT stack trace, when I run scribble --pdf example_paper2.scrbl
and ctl-c, the stacktrace is
delete-file: cannot delete file
path: C:\*****\AppData\Local\Temp\scribble-tex-to-pdf-13639620241363962024190\example_paper2.aux
system error: Permission denied; errno=13
context...:
c:\Racket\collects\racket\private/map.rkt:53:19: loop
c:\Racket\collects\racket\file.rkt:52:0: delete-directory/files
c:\Racket\collects\scribble\private\indirect-renderer.rkt:28:28: with-handlers-handler37
c:\Racket\collects\racket\private\more-scheme.rkt:161:2: select-handler/no-breaks
c:\Racket\collects\scribble\render.rkt:30:0: render31
c:\Racket\collects\scribble\run.rkt: [running body]
-----Original Message-----
From: Matthew Flatt [mailto:mflatt at cs.utah.edu]
Sent: Thursday, March 21, 2013 4:38 PM
To: George Rudolph
Cc: users at racket-lang.org
Subject: Re: [racket] Help generating PDF documents with Scribble
I guess that `scribble --pdf' normally works for you, and
scribble --latex example_paper2.scrbl
similarly hangs?
Does interrupting Scribble with Ctl-C provide a stack trace?
At Thu, 21 Mar 2013 16:30:48 -0400, "George Rudolph" wrote:
> Matt,
> I am running Racket 5.3.1 on Windows 7.
>
> When I include the style parameter as you have shown, either in your
> document or mine:
> 1. command line
> scribble example_paper2.scrbl
> generates the expected html document.
> 2. command line
> scribble --pdf example_paper2.scrbl hangs.
>
> George
>
> -----Original Message-----
> From: Matthew Flatt [mailto:mflatt at cs.utah.edu]
> Sent: Tuesday, March 19, 2013 7:17 PM
> To: George Rudolph
> Cc: users at racket-lang.org
> Subject: Re: [racket] Help generating PDF documents with Scribble
>
> At Thu, 14 Mar 2013 16:52:20 -0400, "George Rudolph" wrote:
> > 2. Where/how can I set the option to use number-style in the bibliography?
> > I assumed it was an option in (define-cite....), but I cannot figure
> > out how to specify it correctly.
>
> Yes, it's an option in `define-cite'.
>
> Here's an example:
>
> ----------------------------------------
>
> #lang scribble/base
> @(require scriblib/autobib)
>
> @(define-cite ~cite citet generate-bibliography
> #:style number-style)
>
> @(define a (make-bib #:author "Alpha" #:title "A" #:date 2013))
> @(define b (make-bib #:author "Beta" #:title "B" #:date 2014))
>
> @title{Example}
>
> The first letter@~cite[a] and the second@~cite[b].
>
> @generate-bibliography[]
>
>
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users