|
From: Alan G. I. <ala...@gm...> - 2023-01-14 18:38:41
|
This is fixed by changing the return of LaTeXTranslator.stylesheet_call to
return cmd % path.as_posix()
(I.e., by converting the path to a posix representation.)
Alan Isaac
On 1/14/2023 12:39 PM, Alan G. Isaac wrote:
> With current docutils on Windows:
> --stylesheet=C:/Users/aisaac/svn/aisaac/mydocs/372/372slides
> is producing
> %%% User specified packages and stylesheets
> \usepackage{C:\Users\aisaac\svn\aisaac\mydocs\372\372slides}
>
> The forward slashes need to be retained, of course.
>
> This might (?) be related to this in the history:
>
> docutils/utils/__init__.py
>
> find_file_in_dirs() now returns a POSIX path also on Windows; get_stylesheet_list() no longer converts "" to "/".
>
> If so, that is a breaking change.
>
> Alan Isaac
|