Hi Jean, >>>>> jfbu <j...@free.fr> writes:
> no bothering at all! >> Perhaps I should give up this particular case (non-ascii file name + >> preview-latex preamble cache) and commit the patch which fixes other >> issues. > surely not! Thank you! > What would helped me is to see the exact content of an ini file. It is designed to be deleted automatically after the format file dump, so I modified `preview-cache-preamble' temporarily not to delete it. The content thus obtained is: \ifx\pdfoutput\undefined\else\let\PREVIEWdump\dump\def\dump{% \edef\next{{\catcode`\ 9 \pdfoutput=\the\pdfoutput\relax\the\everyjob}}\everyjob\next\catcode`\ 10 \let\dump\PREVIEWdump\dump}\fi\input mylatex.ltx \relax > Then it is intriguing that the comment says > "mylatex.ltx expects a file name to follow. Bad." > and refers to empty file ".tex" but I see mylatex.ltx \relax not mylatex.ltx > .tex ?? I don't know well, but the log at the dumping says (/usr/local/texlive/2018/texmf-dist/tex/latex/carlisle/mylatex.ltx) (/usr/local/texlive/2018/texmf-dist/tex/latex/tools/.tex File ignored)) so I think it really reads ".tex". > ---- > about this ".tex" it was missing from TeXLive for a while due to a LaTeX > packaging > error but is since fixed > https://github.com/latex3/latex2e/issues/30 > ---- Yes, I had updated with tlmgr and restored ".tex" already. > It might take some time until I can say something about preview's > mechanism, as I am not even that familiar to its usage. I hope > David can kick in, that would be so much faster. I hope so as well. > I anticipate the role of the format is to catch up some common preamble, These two paragraphs are quotes from preview-latex.info: ---------------------------------------------------------------------- 'C-c C-p C-f' 'preview-cache-preamble' Preview/Turn preamble cache on Dump a pregenerated format file. For the rest of the session, this file is used when running on the same master file. Use this if you know your LaTeX takes a long time to start up, the speedup will be most noticeable when generating single or few previews. If you change your preamble, do this again. preview-latex will try to detect the necessity of that automatically when editing changes to the preamble are done from within Emacs, but it will not notice if the preamble effectively changes because some included file or style file is tampered with. ---------------------------------------------------------------------- * Automatically cache preambles Currently preview-latex asks you whether you want to cache the document preamble (everything before '\begin{document}') before it generates previews for a buffer the first time. Caching the preamble will significantly speed up regeneration of previews. The larger your preamble is, the more this will be apparent. Once a preamble is cached, preview-latex will try to keep track of when it is changed, and dump a fresh format in that case. If you experience problems with this, or if you want it to happen without asking you the first time, you can customize the variable 'preview-auto-cache-preamble'. ---------------------------------------------------------------------- I hope these help. > and the file primárias.tex should not be used here. I think the basic idea is to "embed" the particular document's preamble in the format file for efficiency, so I suppose that it is essential to input the document file (primárias.tex here). > And "\input" "\detokenize{primárias.tex}" should be either > "\expandafter\input" "\detokenize{primárias.tex}" > or > "\input" "{\detokenize{primárias.tex}}" OK, I'll change the relavant code accordingly. > PS: I am CCing to auctex-dev but it seems my messages get bounced Sorry, I misspelled the address in my previous message. The right address is "auctex-de...@gnu.org", not "auctex-dev@...". Best regards, Ikumi Keita _______________________________________________ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex