LINUX.ORG.RU

emacs проблемы с предпросмотром latex


0

1

В целом документ компилируется без ошибок. В предварительном просмотре из emacs мелкие формулы по тексту между долларами отображаются, а формулы между begin{equation} и end{equation} нет.

Что можно сделать?

gs -dOutputFile\=\(_region_.prv/tmp3131aVT/pr5-2.png\) -q -dSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r65.3173x65.3977
GS>{DELAYSAFER{.setsafe}if}stopped pop/.preview-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<</BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1 ne or{.preview-BP }{pop}ifelse}bind/PageSize[1 1]>>setpagedevice/preview-do{[count 3 roll save]3 1 roll dup length 0 eq{pop}{setpagedevice}{ifelse .runandhide}stopped{handleerror quit}if aload pop restore}bind def [(_region_.prv/tmp3131aVT/preview.ps)(r)file]aload exch dup 0 setfileposition 258098()/SubFileDecode filter cvx .runandhide aload pop dup dup 260284 setfileposition 723()/SubFileDecode filter cvx<<>>preview-do
Error: /undefined in H.S
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   %loop_continue   --nostringval--   --nostringval--   false   1   %stopped_push   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   false   1   %stopped_push   1148   --nostringval--   %end_runandhide   --nostringval--
Dictionary stack:
   --dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--   --dict:112/300(L)--   --dict:19/200(L)--
Current allocation mode is local
Last OS error: 2

Preview-Ghostscript finished

>В целом документ компилируется без ошибок. В предварительном просмотре из emacs мелкие формулы по тексту между долларами отображаются, а формулы между begin{equation} и end{equation} нет.

По-моему, у тебя действительно какой-то крякнутый Emacs. УМВР. Дай какую-нибудь свою формулу — проверим. Может, ты в формуле ошибся?

Zubok ★★★★★
()

Для меня тоже актуально. На некоторых стилях, например prb нету пред просмотра, или точнее он работает из рук вон плохо. Долго думал почему, но потом забил.

RCV ★★★★
()
Ответ на: комментарий от Zubok

Закономерность такая, не рисуется формула внутри equation.

\begin{equation}
\label{doubleLayerHomogeneous}
G_Lg=\int\limits_Lg\Omega dl \quad \text{в} \quad D\setminus L,
\end{equation}

gs -dOutputFile\=\(_region_.prv/tmp36454Km/pr1-1.png\) -q -dSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r65.3173x65.3977
GS>{DELAYSAFER{.setsafe}if}stopped pop/.preview-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if def<</BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1 ne or{.preview-BP }{pop}ifelse}bind/PageSize[1 1]>>setpagedevice/preview-do{[count 3 roll save]3 1 roll dup length 0 eq{pop}{setpagedevice}{ifelse .runandhide}stopped{handleerror quit}if aload pop restore}bind def [(_region_.prv/tmp36454Km/preview.ps)(r)file]aload exch dup 0 setfileposition 110217()/SubFileDecode filter cvx .runandhide aload pop dup dup 110217 setfileposition 457()/SubFileDecode filter cvx<<>>preview-do
Error: /undefined in H.S
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   %loop_continue   --nostringval--   --nostringval--   false   1   %stopped_push   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   false   1   %stopped_push   1148   --nostringval--   %end_runandhide   --nostringval--
Dictionary stack:
   --dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--   --dict:106/300(L)--   --dict:19/200(L)--
Current allocation mode is local
Last OS error: 2

Preview-Ghostscript finished
tmfd
() автор топика
Ответ на: комментарий от Zubok

По-моему, у тебя действительно какой-то крякнутый Emacs. УМВР.

Что значит крякнутый?

обновил из репозиториев Убунты 10.10.

This is GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-03-30 on rothera, modified by Debian
Copyright (C) 2009 Free Software Foundation, Inc.

tmfd
() автор топика
Ответ на: комментарий от tmfd

Закономерность такая, не рисуется формула внутри equation.

Даже не знаю, что у тебя такое. У меня твоя формула нарисовалась в preview.

Zubok ★★★★★
()
Ответ на: комментарий от Zubok

а вот так работает?

$ cat main.tex | iconv -f cp1251 -t utf8
\documentclass[a4paper]{report}
\mag 1440
\hoffset=6.9mm \voffset=5.0mm
\topmargin-11.6mm \oddsidemargin-1.4mm
\textwidth110mm \textheight166mm
\headsep6.9mm
\usepackage[cp1251]{inputenc}
\usepackage[russian]{babel}
\usepackage{euscript}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{citehack}
\usepackage{caption2}
\usepackage[colorlinks,urlcolor=blue,linktocpage=true]{hyperref}
\usepackage{algorithmic}
\usepackage{algorithm}
\pagestyle{headings}
\makeatletter
\renewcommand{\@oddhead}{\hfil --- \thepage \ --- \hfil}
\makeatother
\makeatletter \@addtoreset{equation}{section}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\newcounter{pict}[section]
\setcounter{pict}{1}
\newcommand{\pc}{\refstepcounter{pict}{}}
\renewcommand{\thepict}{\thesection.\arabic{pict}}
\renewcommand{\captionlabeldelim}{.}
\newtheorem{theorem}{Теорема}[section]
\newtheorem{lemma}{Лемма}[section]
\numberwithin{algorithm}{section}
\floatname{algorithm}{Алгоритм}
\sloppy
\usepackage{euscript}
\graphicspath{{figure/}}
\begin{document}
\tableofcontents 
\chapter{Заголовок для главы}
\input{sect.tex}
\end{document}
%%% Local variables: 
%%% coding: cp1251
%%% mode: latex 
%%% TeX-master: "main.tex"
%%% End: 

$ cat sect.tex | iconv -f cp1251 -t utf8
\section{Заголовок для секции}
\begin{equation}
y=x^2
\end{equation}
$$
y=x^4
$$
%%% Local variables: 
%%% coding: cp1251
%%% mode: latex 
%%% TeX-master: "main.tex" 
%%% End: 

tmfd
() автор топика
Ответ на: комментарий от tmfd

>а вот так работает?

Работает. :)

Emacs 22.2, AuCTeX 11.83, GPL Ghostscript 8.62

Zubok ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.