Many thanks for updating the thread and for the patch. To make it work for me, 
I had to make a small additional change. I need to replace “scribble.tex”, so 
I've tweaked my latex-render.rkt source at line 118 to wrap scribble-tex within 
a call to your maybe-replace function. With that done, it works just fine.

I don’t see a way for scribble-load-replace.tex to help me avoid loading 
scribble.tex or avoid loading the definitions within it, but I am no expert and 
might have misunderstood it. As I see it, scribble-load-replace is a way to 
redefine which graphicx, hyperref, etc. packages are loaded. The stabular 
macros are more deeply embedded in scribble.tex.

Tim

> On 31 Mar 2016, at 16:51, Spencer Florence <spen...@florence.io> wrote:
> 
> Oops, guess I forgot to update this thread.
> 
> This commit 
> (https://github.com/racket/scribble/commit/2881ef290ddfef6b645eaabc997c9bd6fddaa641
>  
> <https://github.com/racket/scribble/commit/2881ef290ddfef6b645eaabc997c9bd6fddaa641>)
>  tries to address this problem.
> 
> Roughly, you can use `latex-defaults+replacements` to replace 
> `scribble-load-replace.tex` and override the macros that generate the latex 
> includes.
> 
> --spf
> 
> 
> On Thu, Mar 31, 2016 at 2:45 AM Tim Jervis <t...@timjervis.com 
> <mailto:t...@timjervis.com>> wrote:
> Commenting out scribble.tex with an open comment in prefix.tex and closing 
> comment in scribble.tex works, to a point. It hides scribble.tex, but it also 
> hides any dynamic inclusions such as figure.tex.
> 
> I have been trying to use the longtable package in preference to the 
> stabular-based  package that Scribble uses for long tables. Unfortunately 
> scribble.tex creates some incompatible definitions, which I have been trying 
> to work around. My current best option appears to be hacking scribble.tex in 
> the Racket source to remove those definitions. It would be nice to avoid 
> hacking the source.
> 
>> On 6 Jan 2016, at 20:53, Matthew Flatt <mfl...@cs.utah.edu 
>> <mailto:mfl...@cs.utah.edu>> wrote:
>> 
>> There's not currently a simple way to replace "scribble.tex".
>> 
>> Probably you can hack anything by providing an alternate prefix file
>> (i.e., replacement for "scribble-prefix.tex"). For example, I bet it
>> would be possible to make the prefix file end with an unfinished
>> comment, have the comment swallow "scribble.tex" completely, and have a
>> style file (i.e., replacement for "scribble-style.tex") end the comment
>> and drop in your replacement for "scribble.tex".
>> 
>> At Wed, 06 Jan 2016 20:44:40 +0000, Spencer Florence wrote:
>>> Hey all,
>>> 
>>> I'm currently trying to use a custom tex style file with scribble.
>>> Unfortunately this style file conflicts with the line
>>> "\usepackage[usenames,dvipsnames]{color}" in the "scribble.tex" file
>>> include by the scribble to tex compiler.
>>> 
>>> Is there any way to tell scribble to use a different "scribble.tex"?
>>> 
>>> --spencer
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "Racket Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to racket-users+unsubscr...@googlegroups.com 
>>> <mailto:racket-users+unsubscr...@googlegroups.com>.
>>> For more options, visit https://groups.google.com/d/optout 
>>> <https://groups.google.com/d/optout>.
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users+unsubscr...@googlegroups.com 
>> <mailto:racket-users+unsubscr...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> Tim Jervis
> 
> http://timjervis.com/ <http://timjervis.com/>


Tim Jervis

http://timjervis.com/ <http://timjervis.com/>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to