RE: [AUCTeX] Editing of a beamer file if \documentclass{beamer} is absent?

2007-07-30 Thread mirko.vukovic
 -Original Message-
 From: David Kastrup [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, July 28, 2007 2:32 AM
 To: Ralf Angeli
 Cc: TTCA Vukovic, Mirko; auctex@gnu.org
 Subject: Re: [AUCTeX] Editing of a beamer file if 
 \documentclass{beamer} is absent?
 
 Ralf Angeli [EMAIL PROTECTED] writes:
 
  * mirko vukovic (2007-07-27) writes:
 
  I compile by beamer files by doing
 
  Pdfetex beamtikz file.tex
 
  The preamble of file.tex is: 
 
  %%\documentclass{beamer}  !!! Commented out
  [...]
  The \documentclass command is commented out, because the 
 format file 
  contains the beamer definitions.  So AucTeX does not know 
 that it is 
  looking at a beamer file.  How do I inform it of that?
 
  You could use something like
  \iffalse
  \documentclass{beamer}
  \fi
 
 I think it would be less confusing and more flexible if he 
 used mylatex.ltx for creating the format.
 
 --
 David Kastrup, Kriemhildstr. 15, 44793 Bochum
 

That will be my next move.  When I first went through this exercise, I was
not aware of mylatex.ltx

As for my lines being too long, I'll look in Outlook for the setting.

Thanks,

Mirko


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


RE: [AUCTeX] Editing of a beamer file if \documentclass{beamer} is absent?

2007-07-27 Thread mirko.vukovic
 -Original Message-
 From: Ralf Angeli [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, July 26, 2007 5:35 PM
 To: TTCA Vukovic, Mirko
 Cc: auctex@gnu.org
 Subject: Re: [AUCTeX] Editing of a beamer file if 
 \documentclass{beamer} is absent?
 
 * mirko vukovic (2007-07-26) writes:
 
  I have beamer files that I process using a custom format 
 for quicker 
  loading.  The format pre-loads beamer.  So, my file is missing the 
  \documentclass{beamer} line.
 
  How can I tell AucTeX that this is a beamer file?
 
 (info (auctex)Automatic Private)
 
 --
 Ralf
 
I am sorry Ralf, but I fail to see the connection between these directories and 
how auctex can recognize my file as a beamer file.  

Thanks,

Mirko


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] Editing of a beamer file if \documentclass{beamer} is absent?

2007-07-26 Thread mirko.vukovic
Hello,

I have beamer files that I process using a custom format for quicker loading. 
 The format pre-loads beamer.  So, my file is missing the 
\documentclass{beamer} line.

How can I tell AucTeX that this is a beamer file?  (I recall that this was 
discussed recently on the list, but could not find the thread.).

Thanks,

Mirko 


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


RE: [AUCTeX] AucTeX preview error: DviPS sentinel: Spawning child process: invalid argument

2007-07-05 Thread mirko.vukovic
 -Original Message-
 From: David Kastrup [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 02, 2007 5:05 PM
 To: TTCA Vukovic, Mirko
 Cc: auctex@gnu.org
 Subject: Re: [AUCTeX] AucTeX preview error: DviPS sentinel: 
 Spawning child process: invalid argument
 
 [EMAIL PROTECTED] writes:
 
  Package: 11.84
  ==
  (setq
 
 [...]
 
   preview-gs-command /gswin32c.exe
 
 Could you check whether this is set in your .emacs file (in 
 which case it is your own fault) or in preview-latex.el?  If 
 it is the latter, you might want to give us the contents of 
 preview/config.log to figure out what went wrong.
 
 --
 David Kastrup, Kriemhildstr. 15, 44793 Bochum
 
I changed the value of preview-gs-command to gswin32c.exe via the customize 
feature, and preview now works.  Beautiful!



___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] AucTeX preview error: DviPS sentinel: Spawning child process: invalid argument

2007-07-02 Thread mirko.vukovic
Hello,

When trying to invoke the preview mode I get the error listed in the subject 
line.  

I am using emacs 22.1 and AucTeX 11.84.  I use the cygwin environment, and 
ghostscript for windows.  

When I try to generate a preview on a region (equation in this example)

\documentclass{article}
\begin{document}
\begin{equation}
a=b
\end{equation}
\end{document}

I get the following in my error buffer: 

Preview-LaTeX exited as expected with code 1 at Mon Jul 02 14:32:18
Running `Preview-DviPS' with ``dvips -Pwww _region_.dvi -o 
_region_.prv/tmp43288un/preview.ps''
This is dvips(k) 5.95b Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2007.07.02:1432' - _region_.prv/tmp43288un/preview.ps
tex.protexps.prospecial.pro. cmr10.pfbcmmi10.pfb[1] 

Preview-DviPS finished at Mon Jul 02 14:32:18
DviPS sentinel: Spawning child process: invalid argument

I think that auctex can see dvips and gswin32.exe:  It can generate a ps file 
and if I invoke the shell command gswin32, I get a gs window with a prompt.

Here is the AucTeX bug-info:


Emacs  : GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)
 of 2007-06-02 on RELEASE
Package: 11.84

current state:
==
(setq
 AUCTeX-date 2007-01-12
 window-system 'w32
 LaTeX-version 2e
 TeX-style-path '(style auto d:/The-Works/Bibliographies/style
  d:/The-Works/Bibliographies/auto
  e:/program-files/emacs-22.1/site-lisp/auctex/style
  e:/program-files/emacs-22.1/var/auctex)
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 TeX-command-list '((TeX %(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t
 TeX-run-TeX nil
 (plain-tex-mode ams-tex-mode texinfo-mode) :help
 Run plain TeX)
(LaTeX %`%l%(mode)%' %t TeX-run-TeX nil
 (latex-mode doctex-mode) :help Run LaTeX)
(Makeinfo makeinfo %t TeX-run-compile nil
 (texinfo-mode) :help Run Makeinfo with Info output)
(Makeinfo HTML makeinfo --html %t TeX-run-compile nil
 (texinfo-mode) :help Run Makeinfo with HTML output)
(AmSTeX %(PDF)amstex %`%S%(PDFout)%(mode)%' %t
 TeX-run-TeX nil (ams-tex-mode) :help Run AMSTeX)
(ConTeXt texexec --once --texutil %(execopts)%t
 TeX-run-TeX nil (context-mode) :help Run ConTeXt once)
(ConTeXt Full texexec %(execopts)%t TeX-run-TeX nil
 (context-mode) :help Run ConTeXt until completion)
(BibTeX bibtex %s TeX-run-BibTeX nil t :help
 Run BibTeX)
(View %V TeX-run-discard t t :help Run Viewer)
(Print %p TeX-run-command t t :help Print the file)
(Queue %q TeX-run-background nil t :help
 View the printer queue :visible TeX-queue-command)
(File %(o?)dvips %d -o %f  TeX-run-command t t :help
 Generate PostScript file)
(Index makeindex %s TeX-run-command nil t :help
 Create index file)
(Check lacheck %s TeX-run-compile nil (latex-mode)
 :help Check LaTeX file for correctness)
(Spell (TeX-ispell-document \\) TeX-run-function nil
 t :help Spell-check the document)
(Clean TeX-clean TeX-run-function nil t :help
 Delete generated intermediate files)
(Clean All (TeX-clean t) TeX-run-function nil t :help
 Delete generated intermediate and output files)
(Other  TeX-run-command t t :help
 Run an arbitrary command)
)
 )


Thanks,

Mirko


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


RE: [AUCTeX] AucTeX preview error: DviPS sentinel: Spawning child process: invalid argument

2007-07-02 Thread mirko.vukovic


Mirko Vukovic, Ph.D.
Technology Development Center, US
Tokyo Electron America, US Holdings, Inc.
255 Fuller Road, Suite 244
Albany, New York 12203
(518) 320-1948 (office)
(518) 320-1983 (fax)
[EMAIL PROTECTED]
 

 -Original Message-
 From: David Kastrup [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 02, 2007 4:12 PM
 To: TTCA Vukovic, Mirko
 Cc: auctex@gnu.org
 Subject: Re: [AUCTeX] AucTeX preview error: DviPS sentinel: 
 Spawning child process: invalid argument
 
 [EMAIL PROTECTED] writes:
 
  When trying to invoke the preview mode I get the error 
 listed in the subject line.  
 
  I am using emacs 22.1 and AucTeX 11.84.  I use the cygwin 
 environment, and ghostscript for windows.  
 
  When I try to generate a preview on a region (equation in this 
  example)
 
  \documentclass{article}
  \begin{document}
  \begin{equation}
  a=b
  \end{equation}
  \end{document}
 
  I get the following in my error buffer: 
 
 Try reporting your problem with
 M-x preview-report-bug RET
 since the AUCTeX report contains too little information for diagnosis.
 
 --
 David Kastrup, Kriemhildstr. 15, 44793 Bochum
 

Something interesting shows up:  Preview's bug report tries to invoke 
/gswin32c.exe and reports that it cannot find it.  (Why the forward slash? 
Maybe something in one of my path specs?)

I have to run home now.  I'll look into this some more tomorrow and also try to 
answer Ralf's questions.


Emacs  : GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)
 of 2007-06-02 on RELEASE
Package: 11.84

current state:
==
(setq
 AUC-TeX-version 11.84
 LaTeX-command-style '(( %(PDF)%(latex) %S%(PDFout)))
 image-types '(png gif tiff jpeg xpm xbm pbm)
 preview-image-type 'png
 preview-image-creators '((dvipng (open preview-gs-open 
preview-dvipng-process-setup)
   (place preview-gs-place) (close 
preview-dvipng-close))
  (png (open preview-gs-open) (place preview-gs-place) 
(close preview-gs-close))
  (jpeg (open preview-gs-open) (place preview-gs-place)
   (close preview-gs-close))
  (pnm (open preview-gs-open) (place preview-gs-place) 
(close preview-gs-close))
  (tiff (open preview-gs-open) (place preview-gs-place)
   (close preview-gs-close))
  )
 preview-dvipng-image-type 'png
 preview-dvipng-command dvipng -picky -noghostscript %d -o 
\%m/prev%%03d.png\
 preview-pdf2dsc-command pdf2dsc %s.pdf %m/preview.dsc
 preview-gs-command /gswin32c.exe
 preview-gs-options '(-q -dSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted 
-dTextAlphaBits=4
  -dGraphicsAlphaBits=4)
 preview-gs-image-type-alist '((png png -sDEVICE=png16m) (dvipng png 
-sDEVICE=png16m)
   (jpeg jpeg -sDEVICE=jpeg) (pnm pbm 
-sDEVICE=pnmraw)
   (tiff tiff -sDEVICE=tiff12nc))
 preview-fast-conversion t
 preview-prefer-TeX-bb nil
 preview-dvips-command dvips -Pwww -i -E %d -o %m/preview.000
 preview-fast-dvips-command dvips -Pwww %d -o %m/preview.ps
 preview-scale-function 'preview-scale-from-face
 preview-LaTeX-command '(%`%l \\\nonstopmode\\nofiles\\PassOptionsToPackage{
 (, . preview-required-option-list)
 
}{preview}\\AtBeginDocument{\\ifx\\ifPreview\\undefined
 preview-default-preamble \\fi}\%' %t)
 preview-required-option-list '(active tightpage auctex 
(preview-preserve-counters counters))
 preview-preserve-counters nil
 preview-default-option-list '(displaymath floats graphics textmath 
sections footnotes)
 preview-default-preamble '(\\RequirePackage[ (, . 
preview-default-option-list)
]{preview}[2004/11/05])
 preview-LaTeX-command-replacements nil
 preview-dump-replacements '(preview-LaTeX-command-replacements
 (\\`\\([^ ]+\\)\\(\\( +-\\([^ 
\]\\|\\.\\|\[^\]*\\\)*\\)*\\)\\(.*\\)\\' \\1 -ini 
-interaction=nonstopmode \\\1\  preview-format-name .ini \\5)
 )
 preview-undump-replacements '((\\`\\([^ ]+\\) .*? \input\ \\(.*\\)\\'
\\1 -interaction=nonstopmode \ 
preview-format-name \ \\2)
   )
 preview-auto-cache-preamble 'ask
 preview-TeX-style-dir nil
 )

Output from running `/gswin32c.exe -h':


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


RE: [AUCTeX] Re: TeX-next-error takes me to the supp-pdf.tex buffer

2007-04-02 Thread mirko.vukovic
 -Original Message-
 From: Ralf Angeli [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, April 01, 2007 11:34 AM
 To: auctex@gnu.org; auctex-devel@gnu.org
 Subject: Re: [AUCTeX] Re: TeX-next-error takes me to the 
 supp-pdf.tex buffer
 
 * Ralf Angeli (2007-03-31) writes:
 
  * mirko vukovic (2007-03-30) writes:
 
   When I try to go to the next error, I end up in the 
 supp-pdf.tex 
   buffer.  I have not seen this discussed in the archive.
  [...]
  It is the tikz package that causes the problem when compiling with 
  pdflatex.  If I compile it with latex, C-c ` works fine.
 
  I don't even come as far as having supp-pdf.tex being 
 displayed since 
  error parsing cannot handle a quoted file name with spaces. )c:
 
  The output buffer contains stuff like
 
  tex))) (tikz-test.aux) (C:\Programme\MiKTeX 
  2.5\tex\context\base\supp-pdf.tex 
  [Loading MPS to PDF converter (version 2006.09.02).]
  ) [1{psfonts.map}]
  ! Misplaced alignment tab character .
  l.15 *
 ^*
  ! Missing $ inserted.
  inserted text 
  $
 
  and when parsing the file name after the second opening 
 paren it stops 
  after MiKTeX.  That means something like \C:\\Programme\\MiKTeX
  is pushed onto `TeX-error-file'.  That means the file in 
 question will 
  be found as MiKTeX and the directory part will be C:\Programme.
  Ouch.
 
 The following patch fixes the bug for me:
 


I am including the log file of my failed pdflatex compilation, which results in 
mis-direction.  On my system, I do not have white-spaces in my file names.

Thanks for looking into this problem,

Mirko


err-link.log
Description: err-link.log
___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] TeX-next-error takes me to the supp-pdf.tex buffer

2007-03-30 Thread mirko.vukovic
Hello,
 
When I try to go to the next error, I end up in the supp-pdf.tex buffer.  I 
have not seen this discussed in the archive. 
(I am using next to the latest auctex+emacs distro for windows).
 
Thanks,

Mirko

___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


RE: [AUCTeX] TeX-next-error takes me to the supp-pdf.tex buffer

2007-03-30 Thread mirko.vukovic
 -Original Message-
 From: David Kastrup [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 30, 2007 2:17 PM
 To: TTCA Vukovic, Mirko
 Cc: auctex@gnu.org
 Subject: Re: [AUCTeX] TeX-next-error takes me to the 
 supp-pdf.tex buffer
 
 [EMAIL PROTECTED] writes:
 
  Hello,
   
  When I try to go to the next error, I end up in the supp-pdf.tex 
  buffer.  I have not seen this discussed in the archive.
 
 Which should have been a clue to you that it happens not for 
 every file or every person.  So you should have provided an 
 example file exhibitin the problem.
 
  (I am using next to the latest auctex+emacs distro for windows).
 
 M-x TeX-submit-bug-report RET exists, and it will give more 
 reliable information.
 
 --
 David Kastrup, Kriemhildstr. 15, 44793 Bochum
 

David, here is the minimal example, and the bug report.  Sorry about the lack 
of information in the first email.  


Here is the minimal example:

\documentclass{article}

%\usepackage{tikz}
\begin{document}
\title{title}

\author{Mirko Vukovic}
\begin{abstract}
abstract text
\end{abstract}
\maketitle

main text

*^* 
\end{document}

It is the tikz package that causes the problem when compiling with pdflatex.  
If I compile it with latex, C-c ` works fine.

The output of TeX-submit-bug-report is (I don't know how to teach emacs to 
email on windows)



Emacs  : GNU Emacs 22.0.93.1 (i386-mingw-nt5.1.2600)
 of 2007-01-26 on NEUTRINO
Package: 2007-01-23

current state:
==
(setq
 AUCTeX-date 2007-01-23
 window-system 'w32
 LaTeX-version 2e
 TeX-style-path '(style auto d:/The-Works/Bibliographies/style
  d:/The-Works/Bibliographies/auto
  e:/program-files/emacs-22/site-lisp/auctex/style
  c:/Programme/Emacs/var/auctex)
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 TeX-command-list '((TeX %(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t TeX-run-TeX 
nil
 (plain-tex-mode ams-tex-mode texinfo-mode) :help Run 
plain TeX)
(LaTeX %`%l%(mode)%' %t TeX-run-TeX nil
 (latex-mode doctex-mode) :help Run LaTeX)
(Makeinfo makeinfo %t TeX-run-compile nil 
(texinfo-mode) :help
 Run Makeinfo with Info output)
(Makeinfo HTML makeinfo --html %t TeX-run-compile nil
 (texinfo-mode) :help Run Makeinfo with HTML output)
(AmSTeX %(PDF)amstex %`%S%(PDFout)%(mode)%' %t 
TeX-run-TeX nil
 (ams-tex-mode) :help Run AMSTeX)
(ConTeXt texexec --once --texutil %(execopts)%t 
TeX-run-TeX
 nil (context-mode) :help Run ConTeXt once)
(ConTeXt Full texexec %(execopts)%t TeX-run-TeX nil
 (context-mode) :help Run ConTeXt until completion)
(BibTeX bibtex %s TeX-run-BibTeX nil t :help Run 
BibTeX)
(View %V TeX-run-discard t t :help Run Viewer)
(Print %p TeX-run-command t t :help Print the file)
(Queue %q TeX-run-background nil t :help
 View the printer queue :visible TeX-queue-command)
(File %(o?)dvips %d -o %f  TeX-run-command t t :help
 Generate PostScript file)
(Index makeindex %s TeX-run-command nil t :help
 Create index file)
(Check lacheck %s TeX-run-compile nil (latex-mode) :help
 Check LaTeX file for correctness)
(Spell (TeX-ispell-document \\) TeX-run-function nil 
t :help
 Spell-check the document)
(Clean TeX-clean TeX-run-function nil t :help
 Delete generated intermediate files)
(Clean All (TeX-clean t) TeX-run-function nil t :help
 Delete generated intermediate and output files)
(Other  TeX-run-command t t :help Run an arbitrary 
command))
 )

Mirko 
 



___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


RE: [AUCTeX] Re: Inconvenient format of latex-insert-environment forBeamer frames

2006-11-29 Thread mirko.vukovic
 -Original Message-
 From: Ralf Angeli [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 28, 2006 1:46 PM
 To: TTCA Vukovic, Mirko
 Cc: auctex@gnu.org
 Subject: [AUCTeX] Re: Inconvenient format of 
 latex-insert-environment forBeamer frames
 
 
 * mirko vukovic (2006-11-28) writes:
 
  From: Ralf Angeli [mailto:[EMAIL PROTECTED]
  
  Assuming the file is from the AUCTeX 11.82 installation and not an
  ancient leftover, if you remove your own code for inserting a frame
  environment, aren't you asked for a frame title when 
 typing `C-c C-e
  frame RET' after that beamer.elc got loaded?
  
  Yes, I get prompted for a title, and I get:
  \begin{frame} \frametitle{some title}

  \end{frame}
 
  This is very close to what I really want:
  \begin{frame}
  \frametitle{some title}

  \end{frame}
 
  This latter form reftex can process and I can get frame titles inits
  table of contents.
 
 Then upgrade to 11.83.
 
 -- 
 Ralf
 
I just did that (and to Emacs 22 from the auctex site).  I'll lete you know the 
results.

Thanks,

Mirko


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] RE: Inconvenient format of latex-insert-environment for Beamer frames

2006-11-28 Thread mirko.vukovic


 -Original Message-
 From: Ralf Angeli [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 28, 2006 2:12 AM
 To: TTCA Vukovic, Mirko
 Cc: auctex@gnu.org
 Subject: Re: Inconvenient format of latex-insert-environment 
 for Beamer frames
 
 
 * mirko vukovic (2006-11-27) writes:
 
  OK, I admit that I did not read it until your second reply. 
  However I
  think my set-up is correct.  This was my set up for some time now
  (except for one item - marked below):
 
  (add-to-list 'load-path (local-setting 'auctex)) ; add 
 auctex to load-path
 
 What is this good for?  How did you install AUCTeX?  A default
 install places AUCTeX in Emacs' load-path.
I am running on Windows XP.  I have a drive for all my(non windows and non-
IS programs), and there I have both emacs and my site-lisp directory.

This is a leftover from ages ago, when I was worried that a new installation 
of emacs would overwrite my lisp files.
 
  (load tex-mik)
 
 That should be `(require 'tex-mik)', but I don't think this makes a
 big difference.
Will change
 
  (load auctex.el nil t t)
  (load preview-latex.el nil t t)
  (setq TeX-auto-save t) ;; enable parsing of latex documents
  (setq TeX-parse-self t)
 
 That looks okay.  After loading your beamer test file, do you see
 something like
 Loading 
 /usr/local/share/emacs/site-lisp/auctex/style/beamer.elc...done
 in the *Messages* buffer?

Yes:
Loading e:/program-files/site-lisp/auctex/style/beamer.elc...done

 
  (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
  (add-hook 'LaTeX-mode-hook #'LaTeX-install-toolbar) ; added 
 on 11/25/06
 
 That's not necessary with AUCTeX 11.83.  Do you have 11.83?  Perhaps
 you could send the output of `M-x TeX-submit-bug-report RET'?
 

I have AUCTeX 11.82.  I'll upgrade to 11.83

  (setq reftex-plug-into-AUCTeX t)
  ;; set ispell parser to tex
  (add-hook 'tex-mode-hook (function (lambda () (setq 
 ispell-parser 'tex
 
 `tex-mode-hook' is not an AUCTeX variable.  And you don't need
 `function' because `lambda' quotes itself.
 
This is also very ancient.  I don't even know what it does.
 -- 
 Ralf
 
Thanks,

Mirko


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] RE: Inconvenient format of latex-insert-environment for Beamer frames

2006-11-28 Thread mirko.vukovic
 -Original Message-
 From: Ralf Angeli [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 28, 2006 1:00 PM
 To: TTCA Vukovic, Mirko
 Cc: auctex@gnu.org
 Subject: Re: Inconvenient format of latex-insert-environment 
 for Beamer frames
 
 
 * mirko vukovic (2006-11-28) writes:
 
  From: Ralf Angeli [mailto:[EMAIL PROTECTED]
 
  That looks okay.  After loading your beamer test file, do you see
  something like
  Loading 
  /usr/local/share/emacs/site-lisp/auctex/style/beamer.elc...done
  in the *Messages* buffer?
 
  Yes:
  Loading e:/program-files/site-lisp/auctex/style/beamer.elc...done
 
 Assuming the file is from the AUCTeX 11.82 installation and not an
 ancient leftover, if you remove your own code for inserting a frame
 environment, aren't you asked for a frame title when typing `C-c C-e
 frame RET' after that beamer.elc got loaded?
 
Yes, I get prompted for a title, and I get:
\begin{frame} \frametitle{some title}
  
\end{frame}

This is very close to what I really want:
\begin{frame}
\frametitle{some title}
  
\end{frame}

This latter form reftex can process and I can get frame titles inits table of 
contents.

Mirko


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] RE: Inconvenient format of latex-insert-environment for Beamer frames

2006-11-27 Thread mirko.vukovic
 Please don't top-post and please keep your line lengths below 72
 characters.

Oops and double oops

 
 * mirko vukovic (2006-11-25) writes:
 
  Ralf Angeli [mailto:[EMAIL PROTECTED] wrote:
  
  * mirko vukovic (2006-11-21) writes:
  
   However, I would prefer it to produce 
   \begin{frame}
   \frametitle{frame title}
  
  If you enabled parsing as suggested on the first page of AUCTeX's
  manual and removed your own code, you'll get the format you want
  because then the beamer.el style file shipped with AUCTeX will get
  loaded.
 
  I am not sure how to implement your suggestion:
 
 Did you read the first page of AUCTeX's manual as suggested before?
 
 -- 
 Ralf
 

OK, I admit that I did not read it until your second reply.  However I
think my set-up is correct.  This was my set up for some time now
(except for one item - marked below):

(add-to-list 'load-path (local-setting 'auctex)) ; add auctex to load-path
(load tex-mik)
(load auctex.el nil t t)
(load preview-latex.el nil t t)
(setq TeX-auto-save t) ;; enable parsing of latex documents
(setq TeX-parse-self t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(add-hook 'LaTeX-mode-hook #'LaTeX-install-toolbar) ; added on 11/25/06
(setq reftex-plug-into-AUCTeX t)
;; set ispell parser to tex
(add-hook 'tex-mode-hook (function (lambda () (setq ispell-parser 'tex

Regards,

Mirko


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] Inconvenient format of latex-insert-environment for Beamer frames

2006-11-21 Thread mirko.vukovic
Hello,

I use (LaTeX-insert-environment frame {frame-title}) to insert a frame into 
my file.
(I have a routine that converts Freemind's mindmaps to beamer presentations).

The command works fine in the sense that it produces
\begin{frame}{frame title}

However, I would prefer it to produce 
\begin{frame}
\frametitle{frame title}

because I can then teach RefTeX to insert the frame titles into the table of 
contents.

I can easily write my own code to insert this snippet, but I suspect that there 
are benefits to using the built in LaTeX-insert-environement (although I do not 
know those benefits).

So, this is a very mild suggestion for improvement down the line.

Thanks,

Mirko

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Behalf Of [EMAIL PROTECTED]
 Sent: Monday, November 20, 2006 12:16 PM
 To: auctex@gnu.org
 Subject: auctex Digest, Vol 21, Issue 18
 
 
 Send auctex mailing list submissions to
   auctex@gnu.org
 
 To subscribe or unsubscribe via the World Wide Web, visit
   http://lists.gnu.org/mailman/listinfo/auctex
 or, via email, send a message with subject or body 'help' to
   [EMAIL PROTECTED]
 
 You can reach the person managing the list at
   [EMAIL PROTECTED]
 
 When replying, please edit your Subject line so it is more specific
 than Re: Contents of auctex digest...
 


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


RE: [AUCTeX] Re: How to use auctex/beamer commands to insert environments

2006-10-26 Thread mirko.vukovic
Thank you Ralf.  

Looks like the right tool for the job

Mirko

 -Original Message-
 From: Ralf Angeli [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 25, 2006 1:42 PM
 To: auctex@gnu.org
 Subject: [AUCTeX] Re: How to use auctex/beamer commands to 
 insert environments
 
 
 * mirko vukovic (2006-10-25) writes:
 
  Suppose I have a string that is supposed to be a frame title (and
  optionally subtitle).  Is there a function that will insert the
  \begin\end frame, together with the frame title, and optional
  subtitle, and position the cursor
 
 beamer.el uses `LaTeX-insert-environment' for inserting the
 environment and adds the frame title by means of some special code.
 See the part
(LaTeX-add-environments
 [...]
 '(frame  (lambda (env rest ignore)
 [...]
 in style/beamer.el.
 
 -- 
 Ralf
 
 
 
 
 


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] How to use auctex/beamer commands to insert environments

2006-10-25 Thread mirko.vukovic
Hello,

I am writing an emacs utility to convert mind maps (See for example Freemind on 
http://freemind.sourceforge.net/wiki/index.php/Main_Page) to beamer 
presentations.  There is a Perl utility that does an OK job, but needs 
tweaking.  Since I find programming in Perl much harder than in elisp (even 
though I only recently started in elisp), I decided to try to re-write it in 
elisp (That is how I get my thrills instead of bungee cord jumping and similar 
activities).

I can read the maps (which are in xml format) using the xml library, and parse 
the resulting nested list into a flattened list, This list has depth info 
attached to each node.  Using the depth info, I can now start generating the 
.tex file.  Here I am wondering whether I can re-use some of the auctex/beamer 
facilities.  Here is an example of what I have in mind:

Suppose I have a string that is supposed to be a frame title (and optionally 
subtitle).  Is there a function that will insert the \begin\end frame, together 
with the frame title, and optional subtitle, and position the cursor

The same question goes for document structure commands, blocks and columns 
(Here I am trying to do it in a way to be compatible with RefTex, if possible). 
 I realize that I could go digging through the existing code, but I am afraid 
that I will mis-understand some of the functions, etc (or you could label it as 
just plain lazy).

Thanks,

Mirko


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


[AUCTeX] reftex toc and beamer frame titles not meshing perfectly

2006-07-13 Thread mirko.vukovic
I am not sure if this is the right group for this topic.  If not and not of 
interest to you, please disregard.

I use a fairly recent auctex+reftex for beamer presentations (authors, please 
when near Albany, NY, beer is on me)

I wanted to include beamer slide titles in the reftex table of contents.  With 
that in mind, I added the following snippet to reftex-section-levels:

(begin{frame} . 4)

This is supposed to match, for example, the ``\begin{frame}{General 
Deliverables}'' snippet, where General Deliverables is the frame title.

In the reftex toc, I get the following:

 3.0.3 Frame: General Deliverables} \begin{block}{Documentation} 
\begin{itemize}



reftex picks up the title, but also a few lines after that.

This behavior is not a show-stopper, but is beyond my regexp knowledge to fix.  
To a wizard out there, it may be a breeze.

Thanks,

Mirko


This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please notify the originator of the 
message.

Any views expressed in this message are those of the individual sender.

This message has been scanned for viruses and spam by SurfControl RiskFilter - 
E-mail.



___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


RE: [AUCTeX] reftex toc and beamer frame titles not meshing perfectly

2006-07-13 Thread mirko.vukovic
(My reply is at the very bottom of this email)

-Original Message-
From: Ralf Angeli [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 4:49 PM
To: TTCA Vukovic, Mirko
Cc: auctex@gnu.org
Subject: Re: [AUCTeX] reftex toc and beamer frame titles not meshing perfectly


* mirko vukovic (2006-07-13) writes:

 I wanted to include beamer slide titles in the reftex table of
 contents.  With that in mind, I added the following snippet to
 reftex-section-levels:

 (begin{frame} . 4)

 This is supposed to match, for example, the ``\begin{frame}{General
 Deliverables}'' snippet, where General Deliverables is the frame
 title.

 In the reftex toc, I get the following:

  3.0.3 Frame: General Deliverables}
 \begin{block}{Documentation} \begin{itemize}

 reftex picks up the title, but also a few lines after that.

Does it work if you specify the frame title with the \frametitle macro
(that's how AUCTeX does it when inserting a frame environment) and use
frametitle instead of beging{frame}?

-- 
Ralf

Thanks Ralf.

If I use

\begin{frame}
\frametitle{foo}

I get in the reftex toc \frametitle{foo}+contents of several additional lines.

I did not know that auctex could insert a frame environment (other than the 
plain \begin,\end{frame}).  I am using version 11.82

Mirko


This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please notify the originator of the 
message.

Any views expressed in this message are those of the individual sender.

This message has been scanned for viruses and spam by SurfControl RiskFilter - 
E-mail.



___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


RE: [AUCTeX] New version of Emacs/AUCTeX bundle for Windows available

2006-06-26 Thread mirko.vukovic
What version of emacs for windows is that?  The latest I was able to find on 
the gnu.org is 21.3.  I keep looking for the port of 21.4

Thanks,

Mirko

-Original Message-
From: Masayuki Ataka [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 25, 2006 5:42 PM
To: [EMAIL PROTECTED]
Cc: auctex@gnu.org
Subject: Re: [AUCTeX] New version of Emacs/AUCTeX bundle for Windows available


From: Ralf Angeli [EMAIL PROTECTED]
Subject: [AUCTeX] New version of Emacs/AUCTeX bundle for Windows available
Date: Sun, 25 Jun 2006 00:15:24 +0200

 There is a new version of the Emacs/AUCTeX bundle for Windows
 available.

ANNOUNCE: I noticed that Ralf's emacs+auctex have the
portability -- that Windows users can put emacs+auctex into
their USB flash memory and bring it anywhere!

I wrote some tips for Portable Emacs in my blog.  If you are
interested in the portable applications, please read
- http://at-aka.blogspot.com/2006/06/portable-emacs-22050-on-usb.html

regards,
---
email: [EMAIL PROTECTED]
Name:: Masayuki Ataka // (Japan)





This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please notify the originator of the 
message.

Any views expressed in this message are those of the individual sender.

This message has been scanned for viruses and spam by SurfControl RiskFilter - 
E-mail.



___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex