Jason Lewis | 1 Apr 2009 06:05
Picon

ignore sections between Template Toolkit delimiters [% %]

Hi,

I am writing a program in Template Toolkit that dynamically generates
LaTeX. I currently edit this .tt file using AUCTeX mode in emacs.

Is there a way I can get AUCTeX to ignore everything between the
Template Toolkit delimiters of [% and %] and not mark that up at all?

Because the delimiters end in %] currently AUCTeX treats the rest of the
line as comment and it can make it hard to read.

Thanks,

Jason
Torben Knudsen | 1 Apr 2009 09:00
Picon
Picon

Re: Strange extra buffer filename.tex<2>

"Ed C." <eminmn <at> sysmatrix.net> writes:

> Torben Knudsen wrote:
>> For a while I have had this small but annoying problem when using
>> auc-tex.  Sometimes when I am writing to a filename.tex file I
>> suddenly see it has changed into filename.tex<2> buffer.  This usually
>> happens after spell checking.  Any help is appreciated.
>
> This is normal Emacs behavior whenever you have 2 or more file-buffers
> open with the same name but located in different directories. You can
> even get filename.tex<3> if you visit a new file with the same name in
> yet another directory. I suppose that ispell or aspell made a copy of
> the file somewhere else.

I know it is normal if I open more files with the same name.  However
I didn't.  Maybee it was spell, auctex or something else that opened
it.  My question is how to avoid this as I often find my self suddenly
spell checking in a copy finame.tex<2> when i started spell checking
in filename.tex.

--

-- 
Associate Prof. Ph.D Torben Knudsen	Mobile	: (+45) 2787 9826
Section of Automation and Control,	Direct	: 6 8694
Department of Electronic Systems,	Email	: tk <at> es.aau.dk   
Aalborg University 
Fredrik Bajersvej 7 
DK-9220 Aalborg Ø
Denmark 
Leo | 1 Apr 2009 11:38
Face
Picon
Gravatar

Re: Strange extra buffer filename.tex<2>

On 2009-04-01 08:00 +0100, Torben Knudsen wrote:
> I know it is normal if I open more files with the same name. However I
> didn't. Maybee it was spell, auctex or something else that opened it.
> My question is how to avoid this as I often find my self suddenly
> spell checking in a copy finame.tex<2> when i started spell checking
> in filename.tex.

I have never seen something like this except when more than one files
with the same name are open.

When you see this, have a look at the list of buffers (C-x C-b), do you
see something odd?

Best wishes,

--

-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.
Peter Skoglund Lindberg | 1 Apr 2009 13:16
Picon
Picon

I don't understand how to install Auctex

Hi auctex <at> gun.org,

 

I followed these steps

1)      Install emacs

a.       Download zipped file emacs-22.3

b.      Unzip it to C:\Program Files\emacs-22.3

c.       Try it by clicking C:\Program Files\emacs-22.3\bin\runemacs

d.      It works

2)      Install mictex

a.       Download “"Basic MiKTeX 2.7" Installer” from http://miktex.org/2.7/setup

b.      Install “basic-miktex-2.7.3248” it to C:\Program Files\MiKTeX 2.7

3)      Install Ghostscript

a.       Download from http://sourceforge.net/project/showfiles.php?group_id=1897&package_id=108733&release_id=658337

b.      Install “gs864w32.exe” to “C:\Program Files\gs”

4)      Install Auctex

a.       Download “auctex-11.85-e22.3-msw” from http://www.gnu.org/software/auctex/download-for-windows.html

b.      Unzip it to “C:\Program Files\emacs-22.3”

5)      Install Cygwin

a.       Have absolutely no idea why, but now it is there

 

1.       Here comes the tricky part.If AUCTEX is installed, you might still need to activate it, by inserting (load "auctex.el" nil t t) in your user init file.”.

2.       I have no idea what my “user init file”, and a google search did nothing to solve this (http://www.gnu.org/software/emacs/windows/big.html#Installing-Emacs didn’t tell me anything I could understand in 3.5).

3.      

 

4.       All I know is that, when opening emacs, I have the following options: File Edit Options Buffers Tools Help; and none of the extra functions in your screenshots. How in God’s name do I get it to work?

- - - - - - - - - - - - - - - - - - - - -

Peter Skoglund, PhD Student

Biomedical & X-Ray Physics

Dept. of Applied Physics

Royal Inst. of Technology (KTH)

 

_______________________________________________
auctex mailing list
auctex <at> gnu.org
http://lists.gnu.org/mailman/listinfo/auctex
Leo | 1 Apr 2009 16:32
Face
Picon
Gravatar

Re: I don't understand how to install Auctex

On 2009-04-01 12:16 +0100, Peter Skoglund Lindberg wrote:
> Hi auctex <at> gun.org<mailto:auctex <at> gun.org>,

You don't really need cygwin to run emacs+AUCTeX etc. In fact there is
precompiled emacs¹ for windows that has AUCTeX in it already, I mean no
extra installation of AUCTeX is needed.

When you have all those external tools (MiKTeX ghostscript etc.)
installed, you need to make sure the executable is in your PATH.

For preview to work in Windows, you also need to set:

;; stick this in your .emacs file
(setq preview-gs-command "C:/Program Files/gs/gs8.63/bin/gswin32c.exe")

Now when you start Emacs, you need to open a .TeX file to see AUCTeX.

Emacs is more like an operating system than a simple editor like vi/vim.
AUCTeX is one of its TeX/LaTeX editting environment. Actually Emacs has
TeX/LaTeX editting support built-in.

Footnotes: 
¹  http://www.gnu.org/software/auctex/download-for-windows.html
--

-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.
José Carlos Santos | 1 Apr 2009 16:43
Picon
Favicon

Re: Re: I don't understand how to install Auctex

On 01-04-2009 15:32, Leo wrote:

> You don't really need cygwin to run emacs+AUCTeX etc. In fact there is
> precompiled emacs¹ for windows that has AUCTeX in it already, I mean no
> extra installation of AUCTeX is needed.
> 
> When you have all those external tools (MiKTeX ghostscript etc.)
> installed, you need to make sure the executable is in your PATH.
> 
> For preview to work in Windows, you also need to set:
> 
> ;; stick this in your .emacs file
> (setq preview-gs-command "C:/Program Files/gs/gs8.63/bin/gswin32c.exe")

Why? I don't have such a line on my .emacs file and everything works
fine. Besides, I see no reference to such a line at the AucTeX manual.

Best regards,

Jose Carlos Santos
Ed C. | 1 Apr 2009 18:23

Re: ignore sections between Template Toolkit delimiters [% %]


Jason Lewis wrote:
> Hi,
> 
> I am writing a program in Template Toolkit that dynamically generates
> LaTeX. I currently edit this .tt file using AUCTeX mode in emacs.
> 
> Is there a way I can get AUCTeX to ignore everything between the
> Template Toolkit delimiters of [% and %] and not mark that up at all?
> 
> Because the delimiters end in %] currently AUCTeX treats the rest of the
> line as comment and it can make it hard to read.
> 
> Thanks,
> 
> Jason
> 
> 
> _______________________________________________
> auctex mailing list
> auctex <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/auctex

You could use this:
"
font-lock-keywords-only is a variable defined in `font-lock.el'.
Its value is nil [in my Emacs]

Documentation:
*Non-nil means Font Lock should not fontify comments or strings.
This is normally set via `font-lock-defaults'.
"

or even put that in a minor mode hook written specifically for .tt 
files. Of course then you wouldn't get any syntax highlighting in those 
files.
Ed C. | 1 Apr 2009 19:07

Re: Re: I don't understand how to install Auctex


José Carlos Santos wrote:
> On 01-04-2009 15:32, Leo wrote:
> 
>> You don't really need cygwin to run emacs+AUCTeX etc. In fact there is
>> precompiled emacs¹ for windows that has AUCTeX in it already, I mean no
>> extra installation of AUCTeX is needed.
>>
>> When you have all those external tools (MiKTeX ghostscript etc.)
>> installed, you need to make sure the executable is in your PATH.
>>
>> For preview to work in Windows, you also need to set:
>>
>> ;; stick this in your .emacs file
>> (setq preview-gs-command "C:/Program Files/gs/gs8.63/bin/gswin32c.exe")
> 
> Why? I don't have such a line on my .emacs file and everything works
> fine. Besides, I see no reference to such a line at the AucTeX manual.
> 
> Best regards,
> 
> Jose Carlos Santos
> 
> 
> _______________________________________________
> auctex mailing list
> auctex <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/auctex
> 

You only need this if you want to preview with ghostscript. The op 
should do M-x cd ~/ ret
Then Menu > File > Visit New File .emacs ret
Copy-paste this into buffer:

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

(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)

C-x C-s

Exit Emacs
Re-start Emacs

Also since he is on msw he might want to make a shortcut to runemacs.exe 
--debug-init with "Start In" set to his most common edit directory.
Oleksandr Manzyuk | 2 Apr 2009 01:35

diagrams.sty confuses AUCTeX

Hi!

I just have noticed that Paul Taylor's package diagrams.sty confuses
AUCTeX. A minimal example:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass{article}
\usepackage{diagrams}
\diagramstyle[height=2em]
\begin{document}
\begin{diagram}
XXXXXXXXXXXXXXX &\rTo &XXXXXXXXXXXXXXX &\rTo &XXXXXXXXXXXXXXX
\\
\dTo &&=&&\dTo
\\
XXXXXXXXXXXXXXX &&\rTo && XXXXXXXXXXXXXXX
\end{diagram}
\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Try to compile it (be sure to put the attached file diagrams.sty
somewhere TeX can find it). This should produce an error message, but
when you hit C-c `, you should get an empty *TeX Help* window and a
message in the minibuffer

Search failed: "^l\\."

However if you press C-c C-l and check the TeX output, you'll see that
the compilation was successful. My guess is that this happens because
diagrams.sty echoes its error messages (which are not TeX errors but
merely internal errors of the package itself) in lines starting with
bang (!). I usually use XY-pic, but my collaborators are more
comfortable with diagrams. Are there any chances that this peculiarity
will be fixed in future releases of AUCTeX?

Best,
Oleksandr
Attachment (diagrams.sty): text/x-tex, 114 KiB
_______________________________________________
auctex mailing list
auctex <at> gnu.org
http://lists.gnu.org/mailman/listinfo/auctex
Joel J. Adamson | 3 Apr 2009 16:51
Picon
Gravatar

Auto-fill-mode totally dead in LaTeX mode

Dear AUCTeX Users,

Yesterday I was trying out some of the features of AUCTeX for a large
manuscript I am writing.  I turned on TeX-fold-mode and
outline-minor-mode and then auto-fill-mode would not work.  Even after I
removed the customizations, auto-fill-mode would not come on whether I
disabled it and re-enabled it manually or through LaTeX-mode-hook as
usual.  In all other major modes I have tested, auto-fill-mode works
just fine.  I have removed all of my customizations for LaTeX mode and
text-mode, and paragraphs will still not auto-fill.

It will work with `emacs -q' then loading AUCTeX  with (load "auctex.el"
nil t t), then turning on auto-fill-mode.

I have spent several hours removing customizations and trying to track
down the problem.

What are your suggestions?

Thanks,
Joel
--

-- 
Joel J. Adamson	-- http://www.unc.edu/~adamsonj
University of North Carolina at Chapel Hill
CB #3280, Coker Hall
Chapel Hill, NC 27599-3280

Gmane