Re: latex writer style sheets
"Alan G. Isaac" <[email protected]> Sat, 14 Jan 2023 13:38:33 -0500
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply to the list.