olivierverdier / python-latex-highlighting

LaTeX style for Python highlighting
BSD 3-Clause "New" or "Revised" License
453 stars 125 forks source link

'=' formatting with spaces #2

Closed ackdav closed 7 years ago

ackdav commented 7 years ago

if I write a = 3 with spaces around the '=' character it reformats it to 'a =3'

I'm not that experienced with latex packages, but I though I let you know

olivierverdier commented 7 years ago

I do not have this problem. Can you be more specific?

ackdav commented 7 years ago

ehm ok I try:

\begin{python}[caption=Variable initialization]    
graph = tensorflow.Graph()    
with graph.as_default():    
    var = tensorflow.Variable(1)    
\end{python}

results in: bildschirmfoto 2017-05-01 um 18 14 37

so the spacing around '=' seems to be off somewhere...

olivierverdier commented 7 years ago

I tried the same code, no problem. It could be a conflict with another package, or caused by an older LaTeX installation?

olivierverdier commented 7 years ago

As I can't reproduce the error, I'm closing this issue for now. Feel free to reopen if you think that it is a bug in this package.

LittleNewton commented 5 years ago

Hey. I encountered this problem. May I show you all the details of my TeX source code after publishing?