all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Enable pdfLaTeX mode
@ 2012-02-22 21:31 Riccardo Romoli
  2012-02-22 21:40 ` Michael Markert
  2012-02-22 21:43 ` Peter Dyballa
  0 siblings, 2 replies; 6+ messages in thread
From: Riccardo Romoli @ 2012-02-22 21:31 UTC (permalink / raw)
  To: help-gnu-emacs

Hi, my name is Riccardo. My question is about enabling pdfLaTeX mode  
while I open a .tex file.
As in the wiky-emacs I added this to my .emacs:

(setq TeX-PDF-mode t)

but when I open a .tex nothing appens, pdfLaTeX is not enabled.

Do you have any suggestion?

Best
Riccardo

P.S. I work with ubuntu 10.04, emacs 23.2.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Enable pdfLaTeX mode
  2012-02-22 21:31 Enable pdfLaTeX mode Riccardo Romoli
@ 2012-02-22 21:40 ` Michael Markert
  2012-02-23  8:59   ` Riccardo Romoli
  2012-02-22 21:43 ` Peter Dyballa
  1 sibling, 1 reply; 6+ messages in thread
From: Michael Markert @ 2012-02-22 21:40 UTC (permalink / raw)
  To: Riccardo Romoli; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 887 bytes --]


Hi Riccardo,

Riccardo Romoli <ric.romoli@gmail.com> writes:

> As in the wiky-emacs I added this to my .emacs:
>
> (setq TeX-PDF-mode t)
>
> but when I open a .tex nothing appens, pdfLaTeX is not enabled.

See the documentation:

,----[ C-h v TeX-PDF-mode RET ]
| TeX-PDF-mode is a variable defined in `tex.el'.
| Its value is nil
| 
|   Automatically becomes buffer-local when set in any fashion.
|   This variable is safe as a file local variable if its value
|   satisfies the predicate `TeX-booleanp'.
| 
| Documentation:
| Non-nil if Tex-Pdf mode is enabled.
| Use the command `TeX-PDF-mode' to change this variable.
| 
| You can customize this variable.
| 
| [back]
`----

The variable is buffer-local, that means you have to set in the relevant
buffer or you use

       (setq-default TeX-PDF-mode t)

to change the default value.

Michael

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Enable pdfLaTeX mode
  2012-02-22 21:31 Enable pdfLaTeX mode Riccardo Romoli
  2012-02-22 21:40 ` Michael Markert
@ 2012-02-22 21:43 ` Peter Dyballa
  2012-02-22 21:54   ` Riccardo Romoli
  1 sibling, 1 reply; 6+ messages in thread
From: Peter Dyballa @ 2012-02-22 21:43 UTC (permalink / raw)
  To: Riccardo Romoli; +Cc: help-gnu-emacs


Am 22.2.2012 um 22:31 schrieb Riccardo Romoli:

> Do you have any suggestion?

What do you expect to happen?

Do you know AUCTeX? No? Then get to know it! It has knowledge of file-local variables and also has some mechanism to make a distinction between plain TeX and LaTeX files (and also for LuaTeX and XeTeX and ConTeXt) and choose the proper mode and engine.

--
Greetings

  Pete

Bake pizza not war!




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Enable pdfLaTeX mode
  2012-02-22 21:43 ` Peter Dyballa
@ 2012-02-22 21:54   ` Riccardo Romoli
  2012-02-23  0:05     ` Peter Dyballa
  0 siblings, 1 reply; 6+ messages in thread
From: Riccardo Romoli @ 2012-02-22 21:54 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: help-gnu-emacs

Certainly I know it!! ...and I use it


On 22/feb/12, at 22:43, Peter Dyballa wrote:

>
> Am 22.2.2012 um 22:31 schrieb Riccardo Romoli:
>
>> Do you have any suggestion?
>
> What do you expect to happen?
>
> Do you know AUCTeX? No? Then get to know it! It has knowledge of  
> file-local variables and also has some mechanism to make a  
> distinction between plain TeX and LaTeX files (and also for LuaTeX  
> and XeTeX and ConTeXt) and choose the proper mode and engine.
>
> --
> Greetings
>
>  Pete
>
> Bake pizza not war!
>




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Enable pdfLaTeX mode
  2012-02-22 21:54   ` Riccardo Romoli
@ 2012-02-23  0:05     ` Peter Dyballa
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2012-02-23  0:05 UTC (permalink / raw)
  To: Riccardo Romoli; +Cc: help-gnu-emacs


Am 22.2.2012 um 22:54 schrieb Riccardo Romoli:

> Certainly I know it!! ...and I use it

Then you need a pretty good explanation why it fails for you!

Are you loading AUCTeX and Preview-LaTeX at all? The documentation recommends:

  (load "auctex.el" nil t t)
  (load "preview-latex.el" nil t t)

which I put into the system's init file, site-start.el. It should also work from your init file. You can check in *Messages* whether these file were loaded.

--
Greetings

  Pete

If it does exist, it's out of date. 
				– Arnold's Second Law of Documentation




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Enable pdfLaTeX mode
  2012-02-22 21:40 ` Michael Markert
@ 2012-02-23  8:59   ` Riccardo Romoli
  0 siblings, 0 replies; 6+ messages in thread
From: Riccardo Romoli @ 2012-02-23  8:59 UTC (permalink / raw)
  To: Michael Markert; +Cc: help-gnu-emacs

Thanks for your precious suggestion. The problem is solved!!

Best
Riccardo
On 22/feb/12, at 22:40, Michael Markert wrote:

>
> Hi Riccardo,
>
> Riccardo Romoli <ric.romoli@gmail.com> writes:
>
>> As in the wiky-emacs I added this to my .emacs:
>>
>> (setq TeX-PDF-mode t)
>>
>> but when I open a .tex nothing appens, pdfLaTeX is not enabled.
>
> See the documentation:
>
> ,----[ C-h v TeX-PDF-mode RET ]
> | TeX-PDF-mode is a variable defined in `tex.el'.
> | Its value is nil
> |
> |   Automatically becomes buffer-local when set in any fashion.
> |   This variable is safe as a file local variable if its value
> |   satisfies the predicate `TeX-booleanp'.
> |
> | Documentation:
> | Non-nil if Tex-Pdf mode is enabled.
> | Use the command `TeX-PDF-mode' to change this variable.
> |
> | You can customize this variable.
> |
> | [back]
> `----
>
> The variable is buffer-local, that means you have to set in the  
> relevant
> buffer or you use
>
>       (setq-default TeX-PDF-mode t)
>
> to change the default value.
>
> Michael




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-23  8:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-22 21:31 Enable pdfLaTeX mode Riccardo Romoli
2012-02-22 21:40 ` Michael Markert
2012-02-23  8:59   ` Riccardo Romoli
2012-02-22 21:43 ` Peter Dyballa
2012-02-22 21:54   ` Riccardo Romoli
2012-02-23  0:05     ` Peter Dyballa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.