Re: "LaTeX-fill-paragraph" behavior for latex preamble

2023-03-14 Thread Denis Bitouzé
Le 14/03/23 à 16h19, Ikumi Keita a écrit : > Does anyone see a good solution? Not an idea but a workaround (suggested on the present list IIRC) that I find convenient: --8<---cut here---start->8--- ;; Stay in the corresponding lines on their own (setq LaTeX-pa

Re: Manually enable package completion

2022-05-30 Thread Denis Bitouzé
Le 30/05/22 à 15h30, Denis Bitouzé a écrit : >> I was thinking about the missing definition for environments like >> ltx-code and such. Also other macros like \package, \software, \file, >> \letgutacro etc. > > Okay :) Well, not that easy when you don't know anyth

Re: Manually enable package completion

2022-05-30 Thread Denis Bitouzé
Le 24/05/22 à 12h43, Arash Esbati a écrit : > Hi Denis, Hi Arash, >>> and is probably more convenient. >> >> Than what? And why? > > Than the suggestion by Mandar who said: > > My understanding is that if you have TeX-auto-save and TeX-parse-self > both set to t, and have opened YourCustomCl

Re: Manually enable package completion

2022-05-23 Thread Denis Bitouzé
Le 13/05/22 à 14h29, Arash Esbati a écrit : > Hi Denis, Hi Arash, really sorry for the delay! > Denis Bitouzé writes: > >> Thanks to Mandar's (excellent!) suggestion, I easily obtained the joined >> style file. > > Ah, Ok, a larger custom class file :) Indee

Re: Manually enable package completion

2022-05-13 Thread Denis Bitouzé
Le 13/05/22 à 11h15, Arash Esbati a écrit : > Hi Denis, Hi Arash and Mandar, many thanks to both of you! >> Is there a way to manually enable the completion of these packages? > > The easiest way is to write a small AUCTeX style file for your custom > class like this: > > (TeX-add-style-hook >

Manually enable package completion

2022-05-13 Thread Denis Bitouzé
Hi, I have a document with a custom LaTeX class which loads several packages. Because these packages aren't explicitly loaded in the preamble of the document, the completion of them is, AFAICS, not enabled by AUCTeX. Is there a way to manually enable the completion of these packages? Thanks. --

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2022-05-03 Thread Denis Bitouzé
Le 03/05/22 à 14h07, Denis Bitouzé a écrit : > │ Here is an example of the > │ declaration I made for the `graphicx` package (the distribution in the > │ different classes being perhaps suboptimal) and you can see its effect > │ in the attached TeX and PDF files: Sor

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2022-05-03 Thread Denis Bitouzé
Hi, Le 18/12/21 à 14h00, Mandar Mitra a écrit : > Denis Bitouzé wrote (Wed, Dec 15, 2021 at 10:31:41PM +0100): >> >> Agree, but tedious. That's why I proposed to benefit from the `.cwl` >> >> completion files of TXS: it's also probably not so hard to provide

Re: Indenting the code written in square brackets as optional parameters

2022-03-04 Thread Denis Bitouzé
Le 04/03/22 à 17h47, Ikumi Keita a écrit : > Thanks for your suggestion, I think it is useful. So am I... -- Denis

Re: Encoding trouble

2022-01-30 Thread Denis Bitouzé
Le 30/01/22 à 15h52, David Kastrup a écrit : > That would be pretty annoying for people working with any Latin-x > encoding other than Latin-1 (or in general, any encoding not in Emacs > default autodetection set). In case of encoding Emacs cannot detect, AUCTeX would rely of the `inputenc` optio

Encoding trouble

2022-01-30 Thread Denis Bitouzé
Hi, several years ago, I already faced the following problem and, unfortunately, it happened again yesterday, which made me lose quite some time. Let me explain myself: I had a LaTeX file encoded in latin1 that I wanted to encode in UTF-8. I used an external tool, in this case `utrac`, which conf

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2021-12-18 Thread Denis Bitouzé
Le 18/12/21 à 14h00, Mandar Mitra a écrit : >> OK. I'll contact this guy in few weeks. > > Could you please post here when you do? Of course. > If time and ability permits, > I would like to help. Much appreciated! :) > Thanks, You're welcome. -- Denis

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2021-12-18 Thread Denis Bitouzé
Le 16/12/21 à 22h58, Arash Esbati a écrit : >>> Agreed, but \includegraphics is indeed more an exception. >> >> In that case, could it be treated differently? > > I don't see how this can be achieved the way currently > `LaTeX-arg-graphicx-includegraphics-key-val'[1] and the workhorse > `TeX-read-

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2021-12-15 Thread Denis Bitouzé
Hi Arash, sorry for the late answer. Le 09/12/21 à 18h41, Arash Esbati a écrit : > Denis Bitouzé writes: > >> Le 09/12/21 à 12h44, Arash Esbati a écrit : >> >>> You can always drop a line to auctex-devel asking for an addition. Or >>> even better provide

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2021-12-09 Thread Denis Bitouzé
Le 09/12/21 à 12h44, Arash Esbati a écrit : >> Not for `\linewidth`: > > Maybe I wasn't clear, I meant \linewidth is available for completion of > \hspace. Ah, I see. >> with `C-c C-m line', I only get: >> >> ┌ >> │ Click on a completion to select it. >> │ In this buffer, type RET to s

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2021-12-08 Thread Denis Bitouzé
Le 08/12/21 à 17h37, Jean-Jacques Rétorré a écrit : > Does TXS can easyly provide completion for home made macros ? Yes: it is enough to have e.g. \newcommand{\dst}{Dostoïevski} in your document to get completion for `\dst`. And that works as well for macros with (mandatory or optional) argument

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2021-12-08 Thread Denis Bitouzé
Le 08/12/21 à 12h39, Arash Esbati a écrit : > Denis Bitouzé writes: > >> IMO, it's something that should be provided by the editor (or, here, by >> AUCTeX), not done by the user. > > AUCTeX has support for \hspace, just try `C-c C-m hs RET' and > when aske

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2021-12-08 Thread Denis Bitouzé
Le 08/12/21 à 11h45, Jean-Jacques Rétorré a écrit : >> Compared to LaTeX IDE, e.g. TeXstudio, AUCTeX is much less handy from >> this point of view. Would be nice for this aspect to be improved :) >> > > Adds > > (TeX-add-symbols '("linewidth")) : > > in your intit file, and all symbol

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2021-12-08 Thread Denis Bitouzé
Le 08/12/21 à 16h12, Hongyi Zhao a écrit : >> Compared to LaTeX IDE, e.g. TeXstudio, AUCTeX is much less handy from >> this point of view. > > But Emacs also has its strength, e.g., company-ispell based words > completion with a customized exhaustive word-list [1]. Indeed! >> Would be nice for t

Re: Some LaTeX commands, such as \boldsymbol and \hspace, can't be completed in AUCTeX.

2021-12-07 Thread Denis Bitouzé
Le 08/12/21 à 11h34, Hongyi Zhao a écrit : > On Ubuntu 20.04.3 LTS, I use the self-compiled git master version of > Emacs and installed AUCTeX, company-math, cdlatex, etc. as a > LaTeX-based document preparation environment. > > But I still found there are some LaTeX commands, such as \boldsymbol

Re: \hologo with selected text

2021-03-03 Thread Denis Bitouzé
Hi Tassilo, Le 03/03/21 à 20h49, Tassilo Horn a écrit : >>> Please test! >> >> I would love but I must admit I don't know how to proceed. Any >> pointer? > > See (info "(auctex) Advice for non-privileged users"), especially the > section "1.2.6.1 Using AUCTeX from local Git repo" which explains h

Re: \hologo with selected text

2021-03-02 Thread Denis Bitouzé
Hi Tassilo, Le 02/03/21 à 20h54, Tassilo Horn a écrit : > I've now implemented that. If the region is active and the region's > text is a logo name contained in `LaTeX-hologo-logo-names', it'll just > be wrapped like \hologo{existingLogoName} instead of being queried. Looks nice, thanks! > Ple

\hologo with selected text

2021-03-02 Thread Denis Bitouzé
Hi, when the `hologo` package is loaded and its \hologo command used, it is asked to specify the logo name in the minibuffer. It is nice, except if the logo name is already present and selected in the document. IMO, it would be nice when this command is used: - without any selected text, to ask

Re: wrong-type-argument stringp nil

2021-01-23 Thread Denis Bitouzé
Le 23/01/21 à 10h14, Tassilo Horn a écrit : > Hi Denis, Hi Tassilo, > Done, GNU AUCTeX 13.0.4 should appear on ELPA shortly. Still the same phenomenon (buffer open, but not on the front, but available nevertheless), with the following message: ┌ │ TeX-auto-parse-region: The TeX auto-pa

Re: File local-variables error: (error Lisp nesting exceeds ‘max-lisp-eval-depth’)

2021-01-22 Thread Denis Bitouzé
Le 22/01/21 à 12h48, David Kastrup a écrit : > Denis Bitouzé writes: > >> while it used to work nicely, > > Also known as: why this utter disregard of the documentation did not > trigger a fatal error before as far as I remember. No: I used to edit and compile my `.dtx` fi

File local-variables error: (error Lisp nesting exceeds ‘max-lisp-eval-depth’)

2021-01-22 Thread Denis Bitouzé
Hi, while it used to work nicely, I'm now facing an issue when I open my `.dtx` files, loaded with some specific local variables. # Context - GNU Emacs 27.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.8). - AUCTeX 13.0.3. # Steps to reproduce to see the issue 1. emacs -Q & 2. C-x C-e on e

Re: wrong-type-argument stringp nil

2021-01-21 Thread Denis Bitouzé
Le 21/01/21 à 16h34, Tassilo Horn a écrit : > I'll probably make a new ELPA release this weekend. Thanks! -- Denis

Re: wrong-type-argument stringp nil

2021-01-21 Thread Denis Bitouzé
Hi Tassilo, Le 19/01/21 à 18h39, Tassilo Horn a écrit : > If you can run auctex from the Git master, I'd welcome some testing. I guess I could (tomorrow) if: - someone give me a pointer (I don't where the Git master is), - there is a way to easily come back to the "normal" installation. Thanks

Re: wrong-type-argument stringp nil

2021-01-19 Thread Denis Bitouzé
Le 19/01/21 à 14h32, Tassilo Horn a écrit : > No, the problem is that the regexp which gets built for parsing the > buffer inceases in size and eventually ends up having more than 255 > groups in it. That's the maximum supported by emacs. If you have > more, you won't get an error but it simply

Re: wrong-type-argument stringp nil

2021-01-19 Thread Denis Bitouzé
Le 19/01/21 à 13h29, Tassilo Horn a écrit : >> │ entry: >> ("use\\(package\\)\\(\\[\\([^]]*\\)\\]\\)?{\\(\\([^#}\\.%]\\|%[^ >> │ ]*[ >> │ ]\\)+?\\)}" (3 4 1) LaTeX-auto-style) >> │ entry: nil >> │ if: Wrong type argument: stringp, nil >> └ > > Oh, the complete entry is nil. T

Re: wrong-type-argument stringp nil

2021-01-19 Thread Denis Bitouzé
Le 19/01/21 à 07h07, Tassilo Horn a écrit : > Of course, I forgot to attach the patch (as I always do). Here it is. Please, don't disappoint me: you're not as dizzy as I am, are you?! ;) Here is the content of the *Messages* buffer: ┌ │ Loading /home/bitouze/.emacs.d/undo-tree/undo-tre

Re: wrong-type-argument stringp nil

2021-01-17 Thread Denis Bitouzé
Le 16/01/21 à 21h12, Tassilo Horn a écrit : > The backtrace is helpful but having your test file as well would be > perfect. Could you please send (maybe gzipped)? Sure, here it is (if attachment are allowed). -- Denis test.tex.gz Description: application/gzip

wrong-type-argument stringp nil

2021-01-16 Thread Denis Bitouzé
Hi, each I open my test file `test.tex`, which is rather big (5452 lines: it accumulates all my LaTeX tests :), the buffer is open but not on the front (it is available, nevertheless) because of a `wrong-type-argument stringp nil` error. After toggling `debug-on-error`, the backtrace is the follo

Re: [13.0.0] TeX-auto-parse-region: Wrong type argument: stringp, nil

2020-12-30 Thread Denis Bitouzé
Le 30/12/20 à 23h08, Ikumi Keita a écrit : > I expect that we can be forgiven You are, at least by me! ;) > because of increment of major version number (^_^)... Indeed! -- Denis

Re: [13.0.0] TeX-auto-parse-region: Wrong type argument: stringp, nil

2020-12-30 Thread Denis Bitouzé
Le 30/12/20 à 07h00, Tassilo Horn a écrit : >> But I have found the culprit, which in my init file: sorry for the >> noise! > > Good to hear. Out of curiosity, was it some breaking change we did or > just an error of yours? In fact, something which used to work was indeed broken. This is not my

Re: [13.0.0] TeX-auto-parse-region: Wrong type argument: stringp, nil

2020-12-29 Thread Denis Bitouzé
Le 29/12/20 à 16h41, Tassilo Horn a écrit : > Denis Bitouzé writes: > > Hi Denis, Hi Tassilo, > [...] > > Please do `M-x toggle-debug-on-error RET' after step 2 and before step > 3 above. That should pop up a *Backtrace* buffer telling us where the > error happens

[13.0.0] TeX-auto-parse-region: Wrong type argument: stringp, nil

2020-12-28 Thread Denis Bitouzé
Hi, since AUCTeX has been updated to 13.0.0, it cannot be used anymore with GNU Emacs 27.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.8). Steps to reproduce: 1. emacs -Q & 2. C-x C-e on each line of: ┌ │ (package-initialize) │ (setq TeX-auto-save t) │ (setq TeX-parse-self

Re: Empty line after an environment & bug#35284: 12.1.1; new verbatim environment wrongly commented out

2020-12-26 Thread Denis Bitouzé
Le 26/12/20 à 19h21, Ikumi Keita a écrit : >> I'd say, let's first try without option and maybe add one later if >> and only if someone complains. Agree. > Thanks, I installed the change with some comments added. Nice addition, Ikumi: thanks! -- Denis

Re: latexmk default compilation

2020-09-11 Thread Denis Bitouzé
Le 11/09/20 à 12h50, François Patte a écrit : > Is it possible to run latexmk as the default compilator while using > Ctrl-c-c in auctex? Maybe with this (don't know if it is enough): --8<---cut here---start->8--- (add-hook 'LaTeX-mode-hook '(lambda () (setq T

Re: add-to-list: factorization?

2020-05-20 Thread Denis Bitouzé
Le 20/05/20 à 17h10, Joost Kremers et Vladimir Lomov ont écrit : > If you use `with-eval-after-load`, the problem should go away. > > Did you try to wrap (dolist...) by (with-eval-after-load...) as above? Well... indeed guys! :$ Many thanks! -- Denis

add-to-list: factorization?

2020-05-20 Thread Denis Bitouzé
Hi, in my `.emacs`, I have something like the following: ┌ │ (setq TeX-auto-save t) │ (setq TeX-parse-self t) │ (setq-default TeX-master nil) │ │ (setq LaTeX-verbatim-environments-local '("foo" │ "bar" │

Re: Empty line after an environment & bug#35284: 12.1.1; new verbatim environment wrongly commented out

2019-12-24 Thread Denis Bitouzé
Le 24/12/19 à 01h20, Ikumi Keita a écrit : > Hi Denis, Jean, sorry for very late response. Hi Ikumi and Jean(-François), > Each of you reported[1][2] about unsatisfactory results of > `LaTeX-insert-environmnt' (i.e., C-c C-e) before. I wasn't aware of the Jean-François's bug report. Sorry for t

Empty line after an environment

2019-11-28 Thread Denis Bitouzé
Hi, (In the following, >>text<< to express that "text" is selected.) With: --8<---cut here---start->8--- abc >>def<< ghi --8<---cut here---end--->8--- running C-c C-e c + TAB gives: --8<---cut here-

Re: [AUCTeX] Auctex prompting for optional arguments

2018-09-17 Thread Denis Bitouzé
Hi Santiago and Mosè, Le 18/09/18 à 01h34, Mosè Giordano a écrit : >> My specific question: is there a way to get Auctex to prompt me >> automatically for an optional overlay specification when I invoke the >> \alert command with TeX-insert-macro (i.e. C-c "alert")? > > You have to manually patch

Re: [AUCTeX] How to overstep the TeX-clean confirmation?

2018-02-11 Thread Denis Bitouzé
Le 11/02/18 à 12h13, Marcin Borkowski a écrit : > On 2018-02-11, at 11:37, Denis Bitouzé wrote: > >> TeX-clean always asks for confirmation: "Delete files? (y or n)". Is it >> possible to override this step? > > Does the `TeX-clean-confirm' variable fulf

[AUCTeX] How to overstep the TeX-clean confirmation?

2018-02-11 Thread Denis Bitouzé
Hi, TeX-clean always asks for confirmation: "Delete files? (y or n)". Is it possible to override this step? Thanks in anticipation. -- Denis ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex

Re: [AUCTeX] `\pause' instead of `\pause{}'

2017-06-14 Thread Denis Bitouzé
Le 14/06/17 à 22h52, Ikumi Keita a écrit : > Hi Denis, Hi Ikumi, >>>>>> Denis Bitouzé writes: >>> Have you set `TeX-insert-braces' to t? > >> Well, I don't think so: I couldn't find `TeX-insert-braces' neither in >> `emacs-l

Re: [AUCTeX] Entering maths

2017-06-14 Thread Denis Bitouzé
Le 14/06/17 à 08h54, David Kastrup a écrit : > Frankly, I never use anything but a U.S. keyboard layout (with > whatever actual keyboard layout may be printed on the keys themselves) > with some mode shift or whatever else provides compose-key similar > functionality. Wow! I wouldn't be able to t

Re: [AUCTeX] `\pause' instead of `\pause{}'

2017-06-14 Thread Denis Bitouzé
Le 13/06/17 à 22h51, Arash Esbati a écrit : > Denis Bitouzé writes: > >> as stated in Beamer's documentation, the syntax of the \pause command >> is: >> >> ┌ >> │ \pause[⟨number⟩] >> └ > > Hi Denis, Hi Arash, > my apolog

Re: [AUCTeX] Entering maths

2017-06-13 Thread Denis Bitouzé
Le 13/06/17 à 19h58, goj...@gmail.com a écrit : > On 13 June 2017 at 18:12, Jean-Jacques Rétorré wrote: >> , >> | (define-key key-translation-map [?µ] [?\\]) >> ` >> >> and the very useless key "µ" is now "\" > > Indeed, and there are similar solutions for Windows if you use that > operat

Re: [AUCTeX] Entering maths

2017-06-13 Thread Denis Bitouzé
Le 13/06/17 à 18h12, Jean-Jacques Rétorré a écrit : > mar. 13 juin 2017, Denis Bitouzé disait : > > > > (hitting the backslash key on a French keyboard is a nightmare) > > As an example > > , > | (define-key key-translation-map [?µ] [?\\]) > ` > &

Re: [AUCTeX] Entering maths

2017-06-13 Thread Denis Bitouzé
Le 13/06/17 à 15h19, goj...@gmail.com a écrit : > Hi Denis, Hi, > take a look at the smartparens package (available on Elpa): > > https://github.com/Fuco1/smartparens/wiki > > I use it to get self-inserting parentheses and dollar signs instead of > Auctex's electric capabilities, and it works fi

Re: [AUCTeX] Entering maths

2017-06-13 Thread Denis Bitouzé
Le 13/06/17 à 14h52, Mosè Giordano a écrit : > 2017-06-13 14:21 GMT+02:00 Denis Bitouzé : >> IMHO, too bad TeX-electric-math is nil by default... > > I'd expect some people complaining about any value we'd choose as > default ;-) Except that this is the only one which

[AUCTeX] `\pause' instead of `\pause{}'

2017-06-13 Thread Denis Bitouzé
Hi, as stated in Beamer's documentation, the syntax of the \pause command is: ┌ │ \pause[⟨number⟩] └ Hence, after ┌ │ C-c C-c pau TAB ENT └ shouldn't AUCTeX insert `\pause' instead of `\pause{}'? All the best. -- Denis ___

Re: [AUCTeX] Entering maths

2017-06-13 Thread Denis Bitouzé
Le 13/06/17 à 13h09, Mosè Giordano a écrit : > Hi Denis, Hi Mosé, > 2017-06-13 12:51 GMT+02:00 Denis Bitouzé : >> Hi, >> >> does AUCTeX provide something making life easier for inline-math >> expressions (`|' standing for the cursor position): >> >&g

[AUCTeX] Entering maths

2017-06-13 Thread Denis Bitouzé
Hi, does AUCTeX provide something making life easier for inline-math expressions (`|' standing for the cursor position): - `\(|\)', - `$|$' (OK, it's easy to type two dollar signs and go back to write the expression between the dollar signs, but would be better if done by a shortcut)? In the

[AUCTeX] Fwd: [tldoc] tl17 doc: synctex news

2017-05-14 Thread Denis Bitouzé
Hi, this may be useful for AUCTeX (see "Front ends and build systems that want to remove temp files may need adjusting."). All the best. Start of forwarded message Date: Sun, 14 May 2017 01:03:24 +0200 From: Karl Berry To: tl...@tug.org Subject: [tldoc]

Re: [AUCTeX] AUCTeX has a logo!

2017-01-11 Thread Denis Bitouzé
Le 12/01/17 à 01h10, Mosè Giordano a écrit : > yesterday a new version of AUCTeX was released [...] Many thanks for all this nice work... > I hope you'll enjoy it! Indeed! -- Denis ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman

Re: [AUCTeX] Completion in minibuffer

2016-12-20 Thread Denis Bitouzé
Hi Mosè, Le 20/12/16 à 10h13, Mosè Giordano a écrit : > Hi Denis, > > 2016-12-19 22:03 GMT+01:00 Denis Bitouzé : >>> because they only support recent Emacsens. >> >> Sorry, I'm not sure to understand what that means. > > AUCTeX is probably one of the few

Re: [AUCTeX] Completion in minibuffer

2016-12-19 Thread Denis Bitouzé
Le 18/12/16 à 16h42, Eastern Daylight Time a écrit : >> On 17 Dec 2016, at 05:10, Denis Bitouzé wrote: >>> I use helm to get a sort of minibuffer completion when using AUCTeX. >>> I type until it’s convenient to scroll to the option I want, then >>> highlight

Re: [AUCTeX] Completion in minibuffer

2016-12-19 Thread Denis Bitouzé
Le 18/12/16 à 11h50, Mosè Giordano a écrit : > I use helm for completion in minibuffer, but I didn't try > alternatives, like the already mentioned ivy. Here is a longish guide > for configuring helm: https://tuhdo.github.io/helm-intro.html OK, thanks. > However, regarding compatibility with AU

Re: [AUCTeX] Completion in minibuffer

2016-12-18 Thread Denis Bitouzé
Le 18/12/16 à 06h36, Marcin Borkowski a écrit : >> I could try it (it is installed as a dependency package) but same >> question than for helm: how do you invoke it? > > M-x ivy-mode? Indeed. In fact, I suspected something as complicated as for `helm': the latter is already invoked (mode on) but

Re: [AUCTeX] Completion in minibuffer

2016-12-17 Thread Denis Bitouzé
Le 16/12/16 à 22h45, Joost Kremers a écrit : > On Fri, Dec 16 2016, Eastern Daylight Time wrote: >> Hi Denis, >> >>> On 16 Dec 2016, at 15:07, Denis Bitouzé wrote: >>> >>> Would it be possible to have completion in minibuffer? Or maybe >>> th

Re: [AUCTeX] Completion in minibuffer

2016-12-17 Thread Denis Bitouzé
Le 16/12/16 à 16h03, Eastern Daylight Time a écrit : > Hi Denis, Hi EDT, >> On 16 Dec 2016, at 15:07, Denis Bitouzé wrote: >> >> Would it be possible to have completion in minibuffer? Or maybe there is >> a better solution? > > I use helm to get a sort of

[AUCTeX] Completion in minibuffer

2016-12-16 Thread Denis Bitouzé
Hi, thanks to completion packages (`auto-complete', `company'), one can save a lot of time and pain while typing text and code. It would be helpfull as well for LaTeX but, with C-c , everything takes place in the mini-buffer where, AFAIK, completion of commands or environments already present in

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Denis Bitouzé
Le 16/12/16 à 15h44, Mosè Giordano a écrit : > 2016-12-16 15:34 GMT+01:00 Denis Bitouzé : >> I see. So you meant `myenv' instead of `foo', don't you? > > Yes, I didn't look back to the name of the environment ;-) Hence my puzzlement :) >> Anyway, regar

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Denis Bitouzé
Le 16/12/16 à 15h25, Mosè Giordano a écrit : > 2016-12-16 15:17 GMT+01:00 Denis Bitouzé : >> But what's the point with `\\|foo'? AFAICS: >> >> ┌ >> │ (setq LaTeX-document-regexp "myenv") >> └ >> >> does the trick as w

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Denis Bitouzé
Le 16/12/16 à 15h09, Mosè Giordano a écrit : >> Regexp? Sigh... why life is to complicated?! ;) > > I don't know why it was conceived as a regexp rather than as a list of > environment names (a regexp can be then built automatically). Good news! :) >> Anyway, I couldn't find any reference concer

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Denis Bitouzé
Hi Mosè, Le 16/12/16 à 14h38, Mosè Giordano a écrit : > 2016-12-16 8:17 GMT+01:00 Denis Bitouzé : > >> I'd like to achieve for `myenv' environment the same behavior as the >> `document' environment. For instance, with the following content: >> &

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Denis Bitouzé
Le 16/12/16 à 14h27, Tamas Papp a écrit : > An alternative approach is use-package, eg > > (use-package latex > :config (add-to-list 'LaTeX-indent-environment-list >'("myenv" current-indentation))) > > See https://github.com/jwiegley/use-package Interesting package I'll

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-15 Thread Denis Bitouzé
Le 15/12/16 à 22h22, Mosè Giordano a écrit : > 2016-12-15 20:27 GMT+01:00 Denis Bitouzé : >> Maybe I didn't understand what `current-indentation' is supposed to do >> but with the following: >> >> ┌ >> │ \begin{myenv} >> │ \begin{frame} &

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-15 Thread Denis Bitouzé
Le 15/12/16 à 19h56, Mosè Giordano a écrit : > Hi Denis, Hi Mosè, > When you use `add-to-list' is almost always a good idea to wrap it in > a `with-eval-after-load' (or `eval-after-load' in older Emacsens), > unless you know when the variable is defined in your init file: Okay, I've written you

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-15 Thread Denis Bitouzé
Le 21/05/16 à 20h36, Mosè Giordano a écrit : > 2016-05-21 16:52 GMT+02:00 François Patte > : >> And AucTex continues to indent longtable environment as it did >> previously ie: an unreadable source file as soon as you have a table >> with very long rows > > The problem was that file styles ov

Re: [AUCTeX] (New?) No indentation in some circumstances

2016-06-21 Thread Denis Bitouzé
Le 20/06/16 à 23h37, Mosè Giordano a écrit : > Hi *Denis*, Congratulations! ;) >>> Hi Denise, >> >> Denise is a female name and mine is Denis, a male one ;) > > oh my bad, I have a (female) friend called Denise, that's why I'm more > used to type Denise than Denis, sorry :-) You are forgiven :)

Re: [AUCTeX] (New?) No indentation in some circumstances

2016-06-20 Thread Denis Bitouzé
Hi Mosè, Le 19/06/16 à 23h24, Mosè Giordano a écrit : > Hi Denise, Denise is a female name and mine is Denis, a male one ;) > Are you sure it used to work in this case? Yes, I am quite sure as I didn't noticed this behavior earlier in multiple files where several parts of the code are of the s

Re: [AUCTeX] (New?) No indentation in some circumstances

2016-06-19 Thread Denis Bitouzé
Le 19/06/16 à 18h18, Denis Bitouzé a écrit : > consider the following minimal `.dtx' example: > > [...] > > The content of the \blah macro can be indented as usually with the TAB > key. > > But, I guess because of the disruptive two \begin{tabular} for only > one \

[AUCTeX] (New?) No indentation in some circumstances

2016-06-19 Thread Denis Bitouzé
Hi, consider the following minimal `.dtx' example: --8<---cut here---start->8--- %\begin{macrocode} \newcommand{\blah}{% \textbf{% blah% }% } \newcommand*{\bleh}{% \ifthenelse{\isnamedefined{@foo}}{% \begin{tabular}{l} }{% \begin{t

Re: [AUCTeX] Logo for AUCTeX: request for ideas

2016-03-05 Thread Denis Bitouzé
Le 04/03/16 à 22h59, Mosè Giordano a écrit : > Indeed this is better. I'd like to propose some further changes: > > [...] > - add to the background the code used to produce the logo itself, to > make it "recursive" (but cheating with \lstinputlisting). Nice idea! > Please find attached t

Re: [AUCTeX] Snippet for tabular

2016-02-29 Thread Denis Bitouzé
Le 01/03/16 à 00h19, Mosè Giordano a écrit : > Hi Denis, Hi Mosè, > 2016-02-29 18:36 GMT+01:00 Denis Bitouzé : >> Hi, >> >> I just came across the following yasnippet (see >> https://groups.google.com/d/msg/smart-snippet/8Og-1U5zJ2E/3aIMTNmwrKAJ): >

Re: [AUCTeX] Snippet for tabular

2016-02-29 Thread Denis Bitouzé
Le 29/02/16 à 21h20, Joost Kremers a écrit : > On Mon, Feb 29 2016, Denis Bitouzé wrote: >> I just came across the following yasnippet (see >> https://groups.google.com/d/msg/smart-snippet/8Og-1U5zJ2E/3aIMTNmwrKAJ): > [...] >> What's nice: you are able to specify the

[AUCTeX] Snippet for tabular

2016-02-29 Thread Denis Bitouzé
Hi, I just came across the following yasnippet (see https://groups.google.com/d/msg/smart-snippet/8Og-1U5zJ2E/3aIMTNmwrKAJ): --8<---cut here---start->8--- # -*- mode: snippet -*- # name: nxm matrix # key: pm # type: command # -- (insert "\\begin{pmatrix}\n") (

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-04-22 Thread Denis Bitouzé
Le 23/04/15 à 06h20, Tassilo Horn a écrit : >> Could you explain what is the relevant line to add to the .emacs in >> order to automatically run PDF Tools with `C-c C-c v RET' ? > > I use this: > > (setq TeX-view-program-selection '((output-dvi "Evince") >(outp

Re: [AUCTeX] OT: Have a look at PDF Tools (new PDF viewer for Emacs)

2015-04-22 Thread Denis Bitouzé
Le 05/02/15 à 09h53, Tassilo Horn a écrit : > I've just added it to `TeX-view-program-list-builtin' in AUCTeX git. It > calls a new command `TeX-pdf-tools-sync-view'. See > > http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=5276f35d9dc7b37cfb0881ddcaf11c05783aac15 Could you explain what

Re: [AUCTeX] Listing and not listing regions inverted if `\begin{lstlisting}' not followed by what is expected

2015-04-12 Thread Denis Bitouzé
Hi Tassilo, Le 10/04/15 à 11h36, Tassilo Horn a écrit : >> Bad news! But good news: I'm smarter than AUCTeX! ;) > > Humans write programs, so in general I hope we are all smarter than the > programs we produce. At least in the middle term. And then comes the > Terminator. ;-) SOS! ;) > Anyw

Re: [AUCTeX] Listing and not listing regions inverted if `\begin{lstlisting}' not followed by what is expected

2015-04-09 Thread Denis Bitouzé
Hi Tassilo, sorry for the delay... Le 23/03/15 à 13h53, Tassilo Horn a écrit : > Denis Bitouzé writes: > >> Wouldn't it be possible for `\end{...}' to never be considered as the >> /beginning/ of `...' environment? > > No, actually syntactic font-lock

Re: [AUCTeX] Listing and not listing regions inverted if `\begin{lstlisting}' not followed by what is expected

2015-03-23 Thread Denis Bitouzé
Hi Tassilo, Le 23/03/15 à 09h12, Tassilo Horn a écrit : > Yes, nested verbatim environments is certainly not the scenario working > best. Basically, any \begin{X} where X is some verbatim environment > will enable verbatim fontification, and the next \end{Y} will disable it > again. But X and

Re: [AUCTeX] GNU AUCTeX 11.88.3 released via ELPA

2015-03-22 Thread Denis Bitouzé
Hi Mosè, Le 22/03/15 à 22h38, Mosè Giordano a écrit : >> Many thanks for this! Is there some change log somewhere? > > You can see the list of changes between 11.88.2 and 11.88.3 in this diff: > > [...] Thanks! Nice to see `tcolorbox' supported. Bye. -- Denis ___

Re: [AUCTeX] GNU AUCTeX 11.88.3 released via ELPA

2015-03-22 Thread Denis Bitouzé
Le 22/03/15 à 10h30, Tassilo Horn a écrit : > I've just released GNU AUCTeX 11.88.3 via ELPA with the latest and > greatest changes from our Git master. Many thanks for this! Is there some change log somewhere? -- Denis ___ auctex mailing list auctex

Re: [AUCTeX] Listing and not listing regions inverted if `\begin{lstlisting}' not followed by what is expected

2015-03-22 Thread Denis Bitouzé
Le 22/03/15 à 10h02, Tassilo Horn a écrit : > Denis Bitouzé writes: > > Hi Denis, Hi Tassilo, >> \newenvironment{latexcode} >> {% >> \VerbatimOut{tmp.tex}% >> }{% >> \endVerbatimOut% >> \lstinputlisting{tmp.tex}% >> } >> >>

[AUCTeX] Listing and not listing regions inverted if `\begin{lstlisting}' not followed by what is expected

2015-03-21 Thread Denis Bitouzé
Hi, the following MWE compiles like a charm from a LaTeX point of view but has a syntax highlighting problem from an AUCTeX point of view: because the character just after the 1st `\begin{lstlisting}' is not what is expected (not a `['): 1. what follows until the 1st `\end{lstlisting}' is not con

Re: [AUCTeX] Is it possible to use the buffer-file-name in a local variable ?

2015-02-05 Thread Denis Bitouzé
Le 05/02/15 à 17h52, Nicolas Richard a écrit : >>> I deprecated \includeonly in favor of TeX-command-region, and I now do >>> collaborative editing through auto-synchronisation of files (owncloud, >>> dropbox) instead of sending files around. So I'm now a happy >>> one-file-does-it-all kind of La

Re: [AUCTeX] Is it possible to use the buffer-file-name in a local variable ?

2015-02-03 Thread Denis Bitouzé
Le 03/02/15 à 08h54, Tassilo Horn a écrit : > Denis Bitouzé writes: > >> I'd like to use the buffer-file-name in a local variable, like this: >> >> ┌ >> │ %%% Local Variables: >> │ %%% mode: latex >> │ %%% TeX-master: "main&qu

[AUCTeX] Is it possible to use the buffer-file-name in a local variable ?

2015-02-02 Thread Denis Bitouzé
Hi, I'd like to use the buffer-file-name in a local variable, like this: ┌ │ %%% Local Variables: │ %%% mode: latex │ %%% TeX-master: "main" │ %%% LaTeX-command: "pdflatex '\includeonly{}\input{main}'" │ %%% End: ^^ └ Is it

Re: [AUCTeX] Local variable for a .dtx file to be processed by Plain TeX?

2014-11-20 Thread Denis Bitouzé
Hi Mosè and Tassilo, Le 20/11/14 à 10h17, Tassilo Horn a écrit : > % TeX-command-default: "TeX" That's exactly what I was looking for. In fact, I wrongly tried to set the engine (my bad). Thanks! -- Denis ___ auctex mailing list auctex@gnu.org http

[AUCTeX] Local variable for a .dtx file to be processed by Plain TeX?

2014-11-19 Thread Denis Bitouzé
Hi, what should I add to the following `Local Variables` of a .dtx file: ┌ │ % Local Variables: │ % mode: doctex │ % TeX-master: t │ % End: └ to make it by default processed by Plain TeX? Thanks in anticipation. -- Denis ___ auc

Re: [AUCTeX] Defining env with key-val in opt. argument

2014-10-07 Thread Denis Bitouzé
Le 07/10/14 à 19h05, Denis Bitouzé a écrit : > Le 07/10/14 à 18h52, Fabrice Niessen a écrit : > >> La vie est belle ? > > Non : j'ai une semaine pourrie, avec plein de cours et d'inintéressantes > tâches annexes... > >> Emacs marche bien ? > > Oui,

Re: [AUCTeX] Defining env with key-val in opt. argument

2014-10-07 Thread Denis Bitouzé
Le 07/10/14 à 18h52, Fabrice Niessen a écrit : > La vie est belle ? Non : j'ai une semaine pourrie, avec plein de cours et d'inintéressantes tâches annexes... > Emacs marche bien ? Oui, depuis que le bug Yas est réglé. Non car il y a encore le bug de Company ! > Leuven rocks (or jams)? Les

Re: [AUCTeX] How to know the version of AUCTeX?

2013-12-15 Thread Denis Bitouzé
Le dimanche 15/12/13 à 12h28, David Kastrup a écrit : > The mouse-over help for "Report Bug" in the TeX or LaTeX menu contains > the version number as well... Okay, though maybe not a standard way to find this information. > And clicking Report Bug (after all, you don't need to actually send >

Re: [AUCTeX] How to know the version of AUCTeX?

2013-12-15 Thread Denis Bitouzé
Le dimanche 15/12/13 à 12h06, Joost Kremers a écrit : > There's a variable AUCTeX-version. To see its value, do: > > C-h v AUC TAB v TAB RET > > or > > M-: AUC TAB - v TAB RET OK. > HTH A lot! Many thanks! -- Denis ___ auctex mailing l

[AUCTeX] How to know the version of AUCTeX?

2013-12-15 Thread Denis Bitouzé
Hi, some s let you know their version with: M-x -version but that's not the case with AUCTeX. Hence my question: how then could I know the version of the one installed on my PC? Thanks. -- Denis ___ auctex mailing list auctex@gnu.org https://list

  1   2   >