Tamas Papp | 8 Feb 2012 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
Christoph Bier | 10 Feb 2012 14:22
Picon

Drag and drop

Hello,

since I'm writing a document with many weird named figures I
searched for "auctex drag and drop" and found Michal Sojka's
posting: <878vzs8ppj.fsf <at> steelpick.2x.cz>.[1] Dieter created a patch
to tex.el that "will not work 'out of the box'"[2]. What do I need
to do to get Michal's code to work? I have no programming skills ...

I use Emacs 23.3.1 on Ubuntu 11.10.

Regards
Christoph

[1] http://www.mail-archive.com/auctex <at> gnu.org/msg04106.html
[2] http://www.mail-archive.com/auctex <at> gnu.org/msg04118.html
--

-- 
(La)TeX-FAQ: http://projekte.dante.de/DanteFAQ +++ Minimalbeispiel
erstellen und Einführung in dctt: http://www.latex-einfuehrung.de/
+++ Veraltete Befehle, Pakete und andere Fehler:
ftp://ftp.dante.de/tex-archive/info/l2tabu/german/l2tabu.pdf
+++ Typografie-Regeln (1.7): http://bit.ly/typokurz-cb
Christoph Bier | 10 Feb 2012 19:04
Picon

Re: Drag and drop

JFTR: I can't find my question in the mailing list's archive.
Therefore I asked on http://tex.stackexchange.com, too:
http://tex.stackexchange.com/questions/44126/drag-and-drop-in-auctex
--

-- 
(La)TeX-FAQ: http://projekte.dante.de/DanteFAQ +++ Minimalbeispiel
erstellen und Einführung in dctt: http://www.latex-einfuehrung.de/
+++ Veraltete Befehle, Pakete und andere Fehler:
ftp://ftp.dante.de/tex-archive/info/l2tabu/german/l2tabu.pdf
+++ Typografie-Regeln (1.7): http://bit.ly/typokurz-cb
Ralf Angeli | 12 Feb 2012 13:17

Re: context-mode

* Philip Brown (2012-01-03) writes:

> Unfortunately, it seems that context-mode is not working (running
> context gives an error: Context Full: succesfull formatted [0] pages).
>
>  I am able to run Context from the Windows command line and it works
> fine, so I don't htink there is anything wrong with the Tex Live
> installation.

When you run ConTeXt from within AUCTeX you can check the command which
was used in the output buffer.  The output buffer can be displayed by
typing `C-c C-l'.  At the top if it there should be something like this:

Running `ConTeXt Full' on `my-file' with ``texexec --interface=en
--nonstop my-file.tex''

Does it work if you run the indicated command in the Windows prompt?

--

-- 
Ralf
Christoph Bier | 12 Feb 2012 19:12
Picon

Re: Drag and drop

Christoph Bier schrieb am 10.02.2012 19:04:

> JFTR: I can't find my question in the mailing list's archive.
> Therefore I asked on http://tex.stackexchange.com, too:
> http://tex.stackexchange.com/questions/44126/drag-and-drop-in-auctex

With the help of Dieter I solved the problem. He sent me a tex.el
with Michal's code that I had to byte-compile in Emacs. Drag and
drop for AUCTeX is a great feature!
--

-- 
(La)TeX-FAQ: http://projekte.dante.de/DanteFAQ +++ Minimalbeispiel
erstellen und Einführung in dctt: http://www.latex-einfuehrung.de/
+++ Veraltete Befehle, Pakete und andere Fehler:
ftp://ftp.dante.de/tex-archive/info/l2tabu/german/l2tabu.pdf
+++ Typografie-Regeln (1.7): http://bit.ly/typokurz-cb
Michael Bach | 15 Feb 2012 13:19
Picon

AUCTeX cannot find pdflatex (Windows)

Hello,

I am running AUCTeX 11.86 on emacs 24.0.92.1 obtained from [1].  I
installed AUCTeX via `package.el' from elpa.  I did no customization of
`TeX-command-list' or relatives.  My OS is Windows 7 because this is a
box at work.  I already installed MiKTeX 2.9 for Windows.  When doing a
C-c C-c LaTeX on the file (with TeX-PDF-mode t) the error is:

Running `LaTeX' on `monitoring' with ``pdflatex  -interaction=nonstopmode "\input" "monitoring.tex"''
'pdflatex' is not recognized as an internal or external command,
operable program or batch file.

When I issue the exact same command from the command line, i.e. from
cmd.exe, all works well and also a `where pdflatex' shows me "C:\Program
Files\MiKTeX 2.9\miktex\bin\pdflatex.exe".

Now I presume that I need to set the TeX-command to `pdflatex.exe'.  Can
you give me a pointer on where to start looking for a suitable variable?
I read some of the docs, but my attempts so far have all failed.

Best Regards,
Michael Bach

Footnotes:
[1]  http://code.google.com/p/emacs-for-windows/

_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
Michael Bach | 15 Feb 2012 16:20
Picon

Re: AUCTeX cannot find pdflatex (Windows)

I am very sorry for the format of my last email. I wrote the text in emacs but had trouble setting up gnutls under windows so I copied the text from emacs to gmail and sent it from there. After viewing my message from within gnus, I realized how terrible it looks.

_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex
Uwe Siart | 15 Feb 2012 16:30
Picon
Favicon

Re: AUCTeX cannot find pdflatex (Windows)

On 15 Feb 2012 at 16:20, Michael Bach wrote:

> I wrote the text in emacs but had trouble setting up gnutls under 
> windows so I copied the text from emacs to gmail and sent it from there.

Just get gnutls from there
<http://homes.esat.kuleuven.be/~nikos/gnutls-win32/>
unzip and put it on PATH. That's it.

--

-- 
Uwe
Sivaram Neelakantan | 15 Feb 2012 17:22
Picon

Re: AUCTeX cannot find pdflatex (Windows)

On Wed, Feb 15 2012,Michael Bach wrote:

> Hello,
>
> I am running AUCTeX 11.86 on emacs 24.0.92.1 obtained from [1].  I
> installed AUCTeX via `package.el' from elpa.  I did no customization of
> `TeX-command-list' or relatives.  My OS is Windows 7 because this is a
> box at work.  I already installed MiKTeX 2.9 for Windows.  When doing a
> C-c C-c LaTeX on the file (with TeX-PDF-mode t) the error is:
>
> Running `LaTeX' on `monitoring' with ``pdflatex  -interaction=nonstopmode
> "\input" "monitoring.tex"''
> 'pdflatex' is not recognized as an internal or external command,
> operable program or batch file.
>

not sure on the Emacs version that you're using, however from Emacs,
what does M-x getenv RET PATH RET show?  Does it have the path to the
MikTex bin directory?

[snipped 11 lines]

> Footnotes:
> [1]  http://code.google.com/p/emacs-for-windows/

 sivaram
 -- 
Michael Bach | 15 Feb 2012 21:21
Picon

Re: AUCTeX cannot find pdflatex (Windows)

Sivaram Neelakantan <nsivaram.net <at> gmail.com> writes:

> not sure on the Emacs version that you're using, however from Emacs,
> what does M-x getenv RET PATH RET show?  Does it have the path to the
> MikTex bin directory?

Back at my home computer.

Emacs version is a pre-compiled bzr snapshot dating to 23.12.11.  But
thanks to your advice regarding the PATH, I realized that some part of
my .emacs configuration (stemming for a GNU/Linux system) sets a custom
PATH inside emacs (à la /usr/local/bin et al.).  Since MiKTeX's bin dir
is present in the Windows PATH, it works now without setting PATH inside
emacs.

Thanks for your advice.  The issue is solved.

Best Regards,
Michael Bach

_______________________________________________
auctex mailing list
auctex <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex

Gmane