Tamas Papp | 8 Feb 16:45
Picon

adding background for transparent images in preview-latex

Hi,

I am using a low-contrast light-on-dark color scheme (Solarized-dark)
in Emacs.  In preview-latex, the preview for some PDF images (dark
lines on transparent background) is very hard to see (screenshot:
[1]).  I understand that this is not the fault of preview-latex, but I
was wondering if it was possible to render these images on a white (or
custom color, eg the foreground color) background.

I tried reading the archives, fiddling with preview-transparent-color
(currently set to NIL), even setting

(setq preview-dvipng-command
       "dvipng -bg white -picky -noghostscript %d -o \"%m/prev%%03d.png\"")

but none of these changed anything.  I was wondering whether, for
example, GS or dvipng can be made to render on a white background,
preferably only for PDF files, but any suggestions (also emacs code
snippets) would be appreciated.  I am using emacs-version 24.0.93.1,
preview-latex 11.86.

Best,

Tamas

[1] http://www.zimagez.com/zimage/screenshot-02082012-042751pm.php
tririver | 29 Jan 01:51
Picon

Preview-latex deletes pdf output


Hi,

I use both preview-latex and the traditional compile command to generate
output. However, when I generate pdf output (say, de.tex -> de.pdf), the
preview-latex command will generate a temporary de.pdf file, which
overwrites the de.pdf file that I compiled using c-c c-c. 

Is it possible for preview-latex to generate a pdf file with another file
name, say, with a prefix? Otherwise I need to c-c c-c again every time to
get my pdf file back again, which is really annoying.

Thank you!
--

-- 
View this message in context: http://old.nabble.com/Preview-latex-deletes-pdf-output-tp33222334p33222334.html
Sent from the Gnu - AUCTeX - General mailing list archive at Nabble.com.
Marco Stronati | 22 Jan 17:39
Picon
Gravatar

visual-line-mode long-line-mode indent problem

Dear developers,

I am trying to switch from auto-fill-mode that insert hard line-break to either visual-line-mode or long-line-mode that use soft line-break. This is convenient because when using a version control system it is much easier to spot the actual modification, and it make easier to work with other people too.

Unfortunately if I enable one of these two modes with auctex I have no indentation inside environments


\begin{definition}

Bla bla bla bla bla bla bla bla

bla bla bla bla bla bla

bla bla bla bla bla bla

\end{definition}


is there a way to solve this?


Thanks for your time.


Marco


p.s. can you please write To: me and CC: the list, I'm not subscribed.

_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
waterloo | 22 Jan 15:57
Picon
Gravatar

Does preview of auctex support xetex now ?

Does preview of auctex support xetex now ?
Thanks

_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
waterloo | 20 Jan 16:02
Picon
Gravatar

I can not use preview function of auctex 11.86 .

I use emacs 23.3.1, ghostscript 9.04, texlive 2009 and auctex 11.86 in Linux Mint 12 (Based on Ubuntu11.10) .

Below is my latex file :

\documentclass[11pt]{article}
\begin{document}
asdf
$\pi$
\end{document}

I can compile it use latex to dvi and pdflatex to pdf .
But I can not preview $\pi$ .
When I preview it , emacs gives the follow error :
gs -dOutputFile\=\(_region_.prv/tmp16297tkX/pr1-1.png\) -q -dSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r85.9178x86.0533
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/tmp16297tkX/preview.ps)(r)file]aload exch dup 0 setfileposition 24343()/SubFileDecode filter cvx .runandhide aload pop dup dup 24343 setfileposition 105()/SubFileDecode filter cvx<<>>preview-do
Error: /invalidfileaccess in --file--
Operand stack:
   --nostringval--   (_region_.prv/tmp16297tkX/preview.ps)   (r)
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--
Dictionary stack:
   --dict:1164/1684(ro)(G)--   --dict:0/20(G)--   --dict:79/200(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 442
GS<3>

What is the matter ?
Thanks a lot !
_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
Shiyuan | 18 Jan 22:27
Picon

TeX-add-style hook not working properly

Hi, 
    It seems that AUCTeX automatically generates .el files from latex source files. But it is not working in my case. One possible reason could be that I have a setspace.sty in the project directory which is different from texmf-texlive/tex/latex/setspace/setspace.sty.  When Emacs loads the tex file, it refers to some setspace.elc but fails with the following message

Loading /opt/local/share/emacs/site-lisp/auctex/style/setspace.elc...done
if: Wrong type argument: stringp, quote


I also notice another problem: I have two versions of AUCTeX installed, I want to use the version in my home directory. I setup the the load-path variables and put my home directory as the first one in the list. It looks like that Emacs does load the AUCTeX in my home directory as I want. But I notice when .tex files are loaded, emacs refers to the  directory /var/lib/auctex/emacs23 for some elc files(like color.elc, graphicx.elc, ect.). That directory looks like  from another version of AUCTeX. But those files don't exist in the AUCTeX in my home directory. Are those elc files part of AUCTeX distribution? I want to make sure every related file come from the same AUCTeX version in my home directory. 

Thanks. 

Shiyuan  
_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
Shiyuan | 15 Jan 00:50
Picon

RefTeX reference not current

Hi, 

     When I try to insert a reference by running the command reftex-reference "C-c )", the label list is not current. I try to run clean from the command menu but it only cleans tex intermediate files and doesn't not help. Which command should I run to get the current list of labels.  Thanks.

Shiyuan 

_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
bnickel | 14 Jan 22:15
Picon

Cross-References in multiple documents AucTeX/RefTeX


I'm trying to solve a problem that's come up in producing a large document
that I'm breaking up into smaller ones. The basic structure is this.

A main document (`main.tex`) that includes formatting info for the whole
project, and individual files for chapters (`part1.tex`, `part2.tex`, etc).

I need to produce a lot of cross-references, mostly to enumerate items
within a part, but ideally also to some elements across parts.

My basic workflow is editing LaTeX documents in emacs using the RefTeX
capabilities to produce cross-references. My problem is that when RefTex
automatically supplies me with labels (and I'm not willing to give up that
convenience), it'll start numbering the labels from scratch for each part.

Thus, `part1.tex` might look like this.

    \begin{enumerate}
    \item first thing in part 1.\label{item:1}
    \item second thing in part 1.\label{item:2}
    \end{enumerate}
    Reference to \ref{item:1}

Correspondingly, `part2.tex` might look like this.

    \begin{enumerate}
    \setcounter{enumi}{2}
    \item first thing in part 2.\label{item:1}
    \item second thing in part 2.\label{item:2}
    \end{enumerate}
    Reference to \ref{item:1}

(NB: I've got the `\setcounter` command just to ensure that the numbers
differ between the two parts so I can see whether the cross-referencing
works properly.)

The main document that calls these is the basic `main.tex`.

    \documentclass{book}

    \begin{document}
    \input{part1}
    \input{part2}
    \end{document}

The problem is that, because RefTeX starts over in the labels it provides,
the cross-references are screwed up. Both of the references in `part1.tex`
and `part2.tex` shown above will be "3", the number of the enumerate item
the last `\label{item:1}` is attached to.

In the past, I've simply brute-forced the issue. When it came time for a
final compile, I search-and-replaced all of the labels in my code to include
unique prefixes for each input-file. For example, all of the `item:xx`
labels in `part1.tex` would be turned into `item-part1:xx` labels, mutatis
mutandis for `part2.tex`. But that is ugly, and surely there must be a
better way.

I don't know if there are packages that solve this problem for me (I looked
at `xr`, but couldn't get it to work out for me), or if there is a way to
customize RefTeX so that, when it automatically produces labels within one
of the parts, it's automatically aware of the labels that are in use in all
of the other parts and hence ensures that no duplicates will be created.

For what it's worth, I'm running TeX on OSX, in case that matters.

Thanks much,
Bernhard
--

-- 
View this message in context: http://old.nabble.com/Cross-References-in-multiple-documents-AucTeX-RefTeX-tp33140811p33140811.html
Sent from the Gnu - AUCTeX - General mailing list archive at Nabble.com.
Shiyuan | 9 Jan 22:44
Picon

expand file name with special characters

Hi, 

    I add a function to use Skim as pdf viewer. It works well except when the file name contains special characters. In that case, (buffer-file-name) returns the file name as it is without appropriate quoting. I notice that the function named file seems to do the trick but I cannot see what is in it.  How can I get the buffer-file name with appropriate quoting?  Thanks.  

(defun skim-make-url () (concat
(TeX-current-line)
" "
(expand-file-name (funcall file (TeX-output-extension) t)
(file-name-directory (TeX-master-file)))
" "
(buffer-file-name)))
(add-hook 'LaTeX-mode-hook
 (lambda ()
   (add-to-list 'TeX-expand-list
'("%qq" skim-make-url))))
(setq  TeX-view-program-list 
       '(("Skim" "/Applications/Skim.app/Contents/SharedSupport/displayline %qq")))

Shiyuan 
_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
Jean | 9 Jan 17:20
Picon
Favicon

disable \% and \$ fontification

Hello, 
Is there a way to disable the fontification of \$ and \% but keep % and $ 
something like elisp when \; is typed emacs does not fontify but when ; is typed
it will fontify. 

I am using GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.4) 

Thanks
Finn Årup Nielsen | 7 Jan 01:37
Picon
Picon
Favicon

Commands work but menu-bar not

I am experiencing the same problem with the speciel auctex-menu items
that do not open: 

http://lists.gnu.org/archive/html/help-gnu-emacs/2011-11/msg00169.html

I have not seen any solution to the problem. My C-c C-c works, emacs -Q
doesn't help me. I have nothing of importance in my ~/.emacs except
(column-number-mode t) and custom-set-faces. I am using Ubuntu 10.10
(Maverick Meerkat) on the system that got the problem. 

/Finn

Gmane