Re: rel-0-9; Some inline math is shown at the beginning of the line
David Kastrup <[email protected]> Thu, 17 Mar 2005 01:36:39 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
Sebastian Schubert <[email protected]> writes: > David Kastrup wrote: > > [..] >> Just another question: in the error output, there >> are not any ^M characters at the end of the lines? > > Do you mean the run buffer? There is no ^, so no ^M. ^M is supposed to signify a carriage return, the single character with decimal code 13. > [..] > >>> When I try circ.tex (the one that came with preview latex) it is >>> even stranger. On the one hand, "Generate previews for document" >>> does everything perfectly. Even inline math near ä,ö,ü works and >>> \section{Einführung} gives Einführung. On the other hand, "... at >>> point" or "...for buffer" don't do anything and "for section" shows >>> the problem with non-English letters (eg \section{Einführung} >>> becomes EinfÄ1/4hrung). >>> >>> Somehow, I hope I don't do anything really stupid. :) >> >> It is expected that the run buffer looks awful. Since TeX splits >> characters at its whim, that is more or less the only way to ensure >> that we get the correct bytes (that we then convert to characters >> ourselves). > > No, I don't mean the run buffer (though it is also right for the run > buffer), I do mean the normal document buffer where I want to see the > previews. Doing "Generate previews for document" on circ.tex creates all > previews where and how I want it. The run buffer shows all special > characters correctly. (the others described above) > > I made some screenshots. > Here "Generate previews for document": > > http://www.schubert-online.net/sebastian/C-cC-pC-d.png > > Here "Generate previews for section": > > http://www.schubert-online.net/sebastian/C-cC-pC-s.png Does the following patch help? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum
(unnamed)
(text/x-patch, 462 B)
--- tex-buf.el 26 Jan 2005 13:39:32 +0100 1.221
+++ tex-buf.el 17 Mar 2005 01:33:09 +0100
@@ -1198,6 +1198,9 @@
(setq buffer-undo-list t)
(setq original-content (buffer-string))
(erase-buffer)
+ (when (boundp 'buffer-file-coding-system)
+ (setq buffer-file-coding-system
+ (with-current-buffer master-buffer buffer-file-coding-system)))
(insert "\\message{ !name(" master-name ")}"
header
TeX-region-extra