Skip to content

Commit da9139d

Browse files
committed
Fixing reference to PRLatexWirter in postWriteTransform:
1 parent cf7ee80 commit da9139d

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/Pillar-ExporterLaTeX/PRPDFDocument.class.st

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ PRPDFDocument >> postWriteTransform: aFile [
9090
'-f' .
9191
'-interaction=nonstopmode' .
9292
'-outdir=', (self toCommandPath: outputFileReference fullName).
93-
self toCommandPath: (PRLaTeXWriter toLatexPath: (aFile relativeTo: outputDirectory) pillarPrintString) }
93+
self toCommandPath: (self toLatexPath: (aFile relativeTo: outputDirectory) pillarPrintString) }
9494
workingDirectory: outputDirectory fullName
9595
]
9696

@@ -103,6 +103,22 @@ PRPDFDocument >> toCommandPath: aPathString [
103103
^ aPathString
104104
]
105105

106+
{ #category : 'writing' }
107+
PRPDFDocument >> toLatexPath: aString [
108+
"Replace all (windows style) back slashes in paths by (unix style) forward slashes.
109+
This is required as path in latex only support unix style pathes like
110+
111+
/home/xxx
112+
113+
or
114+
115+
C:/home/xxx
116+
117+
See https://tex.stackexchange.com/questions/9363/how-does-one-insert-a-backslash-or-a-tilde-into-latex
118+
"
119+
^ aString copyReplaceAll: '\' with: '/'
120+
]
121+
106122
{ #category : 'accessing' }
107123
PRPDFDocument >> transformations [
108124
self halt.

0 commit comments

Comments
 (0)