Lars Madsen | 14 Aug 11:58 2014
Picon
Picon

generalised paren-forward-sexp

Does anyone know about a generalized paren-forward-sexp functionality? As it is now there a few paren
implementations where you can jump from a ( to the proper matching )

It would be nice with a generalized version of this for AUCTeX, that is having a list of pairs of delimiters, like

(,); [,]; \{,\}, \langle,\rangle; \lbrace,\rbrace etc.

then upon standing at one of these the macro could be used to jump to the corresponding 'end' (or start)

Having such a function would allow us to define a function that should go to the next start string from the
list, find the corresponding end, identify any fence scalers, (\left,\right,\big,\Big,\bigg,\Bigg,
+ l,r variants) and then offer an interface to scale these differently.

I currently have one made, but it can only handle () and []

The function is very handly when most of your LaTeX work is editing things other people have written. There
are many people who stil write \left/right all over the place.

/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif <at> imf / More information: http://au.dk/en/daleif <at> imf
Uwe Brauer | 14 Aug 09:38 2014
Picon

-- expands to "=

Hi 

I just discovered that typing -- gives "= once 
TeX-source-correlate-mode has been activated

However I cannot get rid of this strange expansion. Abbrev-mode has
nothing to do with it and it does not happen  in all LaTeX buffers.

Any idea?

Uwe Brauer 
Attachment (smime.p7s): application/pkcs7-signature, 7510 bytes
_______________________________________________
auctex-devel mailing list
auctex-devel <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel
Uwe Brauer | 13 Aug 11:11 2014
Picon

german quotes and quail, latin-pre.

Hi 

I sometimes want to use the german quotes such as 
 „ ” “ mostly in LaTeX mode:

(Using for example 
\usepackage[german]{babel}
\usepackage[utf8x]{inputenc}
)

So I added to the quail package latin-pre the following entries 

(quail-define-package
 "german-prefix" "Latin-1" "DE>" t
 "German (Deutsch) input method with prefix modifiers
Key translation rules are:
 \"A -> Ä -> \"O -> Ö, \"U -> Ü, \"s -> ?ß \"' -> ” \"` -> „ \"\" -> “
" nil t nil nil nil nil nil nil nil nil t)

(quail-define-rules
 ("\"A" ?Ä)
 ("\"O" ?Ö)
 ("\"U" ?Ü)
 ("\"a" ?ä)
 ("\"o" ?ö)
 ("\"u" ?ü)
 ("\"`" ?„)
 ("\"'" ?”)
 ("\"\"" ?“)
 ("\"s" ?ß)
(Continue reading)

Uwe Brauer | 9 Aug 21:15 2014
Picon

(old) TeX definitions and query-replace-regexp

Hi

I am in a state of advanced desperation. I have a couple of old latex
files which contain a lot of definitions (with arguments) of the sort 

\newcommand{\nv}[2]{\|#1\|_{H^{#2}}}

which are used in the document like this
$\nv{G^a}{s} \leq C_2$ and

so I just wanted to have a simple elisp function which replaces the \nv
calls by its definition.

I thought it should be something like this 
(query-replace-regexp 
"\\(\\\\nv{[a-z,A-Z,0-9]*\\^[a-z,A-Z,0-9]*}{[a-z,A-Z,0-9]*}\\)" 
"\\\\|\\1\\\\|_{H^{\\2}}")

but it failed, I tried something simpler
(query-replace-regexp "\\(\\\\nv{G\\^a}{s}\\)" "\\\\|\\1\\\\|_{H^{\\2}}")

no success neither. I admit regexps drive me crazy and would appreciate
any help.

thanks

Uwe Brauer 
Attachment (smime.p7s): application/pkcs7-signature, 7510 bytes
(Continue reading)

Mosè Giordano | 1 Aug 20:18 2014
Picon

Manage auto insertion of labels

Hi list,

`LaTeX-label' function always inserts labels, but I don't like this
behavior since I want to automatically add labels for some but not all
environments.

The attached patch introduces a new customizable option to manage the
behavior of `LaTeX-label'.  This can be either a boolean or a cons
cell.  When the variable is a boolean, t makes `LaTeX-label' always
insert labels, otherwise with a nil value a label will never be
inserted.  To add a more fine-grained control, the variable can also
be a whitelist or a blacklist, the details are in the documentation of
the variable.  The default value is t, so there won't be any change in
the default behavior.

What do you think?

Bye,
Mosè
_______________________________________________
auctex-devel mailing list
auctex-devel <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel
Uwe Brauer | 24 Jul 15:48 2014
Picon

source-correlate mode always.


Hi 
what is the best method to turn TeX-source-correlate-mode always on:

    -  (add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)

    -  o via customize?

Uwe Brauer 
Attachment (smime.p7s): application/pkcs7-signature, 7510 bytes
_______________________________________________
auctex-devel mailing list
auctex-devel <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel
Uwe Brauer | 24 Jul 14:55 2014
Picon

(TeX-source-correlate-method 'auto) a subtle bug with customize?

Hello

It happened again:

I customize TeX-command-list, then automatically my custom-init.el 
file contains a line 
 '(TeX-source-correlate-method 'auto)

And then when I running latex with TeX-source-correlate-mode on, 
latex is running  with synctex but not with source-specials as it should.
So inverse/forward search does not work with xdvi.

I delete this line and restart Xemacs and everything is fine.

There is a subtle bug in customize I presume but where?

Uwe Brauer 
Attachment (smime.p7s): application/pkcs7-signature, 7510 bytes
_______________________________________________
auctex-devel mailing list
auctex-devel <at> gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel
Uwe Brauer | 23 Jul 15:28 2014
Picon

add (non) Latex commands to Latex command list.


Hello

I also use the following command on my Latex files 

latex2rtf foo.tex

or 

pandoc -s -R -f latex foo.tex -t rtf -o foo-B.rtf

In 11.84 I expanded the TeX-command list as follows:

(custom-set-variables
 '(TeX-command-list '(
  ("latex2rtf" "/usr/local/bin/latex2rtf -f0 %t" TeX-run-command t t)
  ("panltx2txt" "/home/oub/.cabal/bin/pandoc -t plain %t -o %T" TeX-run-command t t)
  ("panlatex2rft" "/home/oub/.cabal/bin/pandoc -s -R -f latex %t -t rtf -o %R" TeX-run-command t t))
 '(TeX-expand-list '(
  ("%T" file "txt" t)
  ("%R" file "rtf" t)
  ("%O" file "odt" t)
  ("%g" file "pdf" t)
  ("%f" file "ps" t)
  ("%b" TeX-current-file-name-master-relative)
  ("%m" preview-create-subdirectory)
  ("%h" file "html" t))))

Can I do something similar in 11.87??? I am asking since the syntax seems
to have changed between 11.84 and 11.87.
(Continue reading)

Uwe Brauer | 23 Jul 15:01 2014
Picon

\date insert american format

Hello

Look at the following german example document.
\documentclass[12pt]{article}
\usepackage[german]{babel}
\usepackage[latin1]{inputenc}
\begin{document}

\title{Title}
\author{Ich}
\date{2014/07/23}
\maketitle{}

\section{Einleitung}
\label{sec:einleitung}

Blabla
\end{document}

When I executed TeX-insert-macro
the minibuffer showed 

Date (default (2014/07/23))

The corresponding code seems to me:
(defun TeX-arg-date (optional &optional prompt)
  "Prompt for a date, defaulting to the current date.
If OPTIONAL is non-nil, insert the resulting value as an optional
argument, otherwise as a mandatory one.  Use PROMPT as the prompt
string."
(Continue reading)

Mosè Giordano | 23 Jul 14:37 2014
Picon

Re: auctex-11.87.6 - File mode specification error.

Hi Bernard,

2014-07-23 5:08 GMT+02:00 Bernard Hurley <bernard <at> marcade.biz>:
> Hi Mosè,
>
>>>>>> "Mosè" == Mosè Giordano <mose <at> gnu.org> writes:
>
>     Mosè> Hi Bernard, 2014-07-21 23:12 GMT+02:00 Bernard Hurley
>     Mosè> <bernard <at> marcade.biz>:
>     >> Hi all,
>     >>
>     >> I have just tried updating from version 11.87.4 to 11.87.6 using
>     >> elpa. AucTeX will now not load and I get the following error:
>     >>
>     >> File mode specification error: (error "Recursive load"
>         ...
>     >> "/home/think/.emacs.d/elpa/auctex-11.87.6/latex.elc"
>     >> "/home/think/.emacs.d/elpa/auctex-11.87.6/tex-site.elc"
>     >> "/home/think/.emacs.d/elpa/auctex-11.87.6/tex.elc")
>
>     Mosè> I cannot reproduce.  Do you experience it for every new TeX
>     Mosè> buffer?  Try purging and then reinstalling the ELPA package.
>
>     Thanks for the quick reply.
>
>     I experience it for new buffers and old ones I load up.  I tried
>     purging the package and reinstalling it but the same thing
>     happened.
>
>     For the moment I have reverted to 11.87.4 as I have a lot of work to
(Continue reading)

Bernard Hurley | 21 Jul 23:12 2014

auctex-11.87.6 - File mode specification error.

Hi all,

I have just tried updating from version 11.87.4 to 11.87.6 using
elpa. AucTeX will now not load and I get the following error:

File mode specification error: (error "Recursive load"
"/home/think/.emacs.d/elpa/auctex-11.87.6/tex.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/latex.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/tex-site.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/tex.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/latex.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/tex-site.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/tex.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/latex.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/tex-site.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/tex.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/latex.elc"
"/home/think/.emacs.d/elpa/auctex-11.87.6/tex-site.elc" "/home/think/.emacs.d/elpa/auctex-11.87.6/tex.elc")

Thanks,

Bernard

--

-- 

Your fortune cookie for today:

...Deep Hack Mode -- that mysterious and frightening state of
consciousness where Mortal Users fear to tread.
		-- Matt Welsh
(Continue reading)


Gmane