Utilizing Emacs and AUCTeX for Large-Scale LaTeX Academic Monograph Typesetting.

2024-01-14 Thread Hongyi Zhao
Dear AUCTeX Team, I am writing to you with regards to a query that I have currently. I am considering using Emacs in combination with AUCTeX as a tool for typesetting a large-scale academic monograph in LaTeX. This project will likely contain a substantial number of mathematical equations,

Re: AUCTeX does not ask for width for \includegraphics macro anymore

2023-11-10 Thread Hongyi Zhao
On Fri, Nov 10, 2023 at 6:28 PM Arash Esbati wrote: > > Kourosh Kalayeh writes: > > > On Nov 09, 2023 Arash Esbati wrote: > > > >> You are not asked for the next optional argument which can contain > >> 'width', and that's what you're looking for. So you can set > >>

Re: The auto-completion behavior of parenthesis.

2023-07-30 Thread Hongyi Zhao
On Sun, Jul 30, 2023 at 3:40 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > > 1. You said: > > > > "emacs -Q" session resulted in built-in latex mode > > > > Yes. This is true in all my testings. > > > > After the above step 1, I

Re: The auto-completion behavior of parenthesis.

2023-07-28 Thread Hongyi Zhao
On Sat, Jul 29, 2023 at 11:53 AM Ikumi Keita wrote: > > Hi Hongyi, > > >>>>> Hongyi Zhao writes: > > On Sat, Jul 29, 2023 at 12:03 AM Ikumi Keita wrote: > >> > >> >>>>> Hongyi Zhao writes: > >> > I se

Re: The auto-completion behavior of parenthesis.

2023-07-28 Thread Hongyi Zhao
On Sat, Jul 29, 2023 at 12:03 AM Ikumi Keita wrote: > > >>>>> Hongyi Zhao writes: > > I see, due to auctex has already been installed, I must test it as follows: > > > emacs -Q > > M-x package-reinstall RET auctex RET > > > Open a tex file, an

Re: The auto-completion behavior of parenthesis.

2023-07-28 Thread Hongyi Zhao
On Fri, Jul 28, 2023 at 2:43 PM Ikumi Keita wrote: > > Hi, > > >>>>> Hongyi Zhao writes: > > After starting with 'emacs -Q', I tried to do the above test with the > > guidance here [1] to install auctex: > > > M-x package-install RET auctex R

Re: The auto-completion behavior of parenthesis.

2023-07-28 Thread Hongyi Zhao
On Fri, Jul 28, 2023 at 3:43 PM Hongyi Zhao wrote: > > On Fri, Jul 28, 2023 at 2:43 PM Ikumi Keita wrote: > > > > Hi, > > > > >>>>> Hongyi Zhao writes: > > > After starting with 'emacs -Q', I tried to do the above test with the > >

Re: The auto-completion behavior of parenthesis.

2023-07-27 Thread Hongyi Zhao
On Fri, Jul 28, 2023 at 2:36 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > Very strange. I've enabled this option, as shown below: > > > > [ C-h v LaTeX-electric-left-right-brace RET ] > > LaTeX-electric-left-right-brace is a variable defined in ‘

Re: The auto-completion behavior of parenthesis.

2023-07-27 Thread Hongyi Zhao
On Fri, Jul 28, 2023 at 12:23 PM Hongyi Zhao wrote: > > On Fri, Jul 28, 2023 at 2:36 AM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > Very strange. I've enabled this option, as shown below: > > > > > > [ C-h v LaTeX-electric-lef

Re: The auto-completion behavior of parenthesis.

2023-07-27 Thread Hongyi Zhao
On Thu, Jul 27, 2023 at 10:05 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > In AUCTeX mode, I noticed that `{', and `[' can be completed > > automatically, while `(' doesn't. Any tips for this behavior? > > AUCTeX provides a variable called `LaTe

The auto-completion behavior of parenthesis.

2023-07-22 Thread Hongyi Zhao
Hi here, In AUCTeX mode, I noticed that `{', and `[' can be completed automatically, while `(' doesn't. Any tips for this behavior? Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West

Re: Let \ref{} and \eqref{} trigger the already defined labels list for completion.

2023-05-27 Thread Hongyi Zhao
On Sun, May 28, 2023 at 12:47 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > Thank you. It works. But why must you first run `C-c C-n'? > > AUCTeX parsing abilities are disabled by default for various reasons > (search the archives for the reasons). C

Re: Let \ref{} and \eqref{} trigger the already defined labels list for completion.

2023-05-27 Thread Hongyi Zhao
On Sat, May 27, 2023 at 6:31 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > Is there a way to let \ref{} and \eqref{} trigger the already defined > > labels list for completion? > > This feature is already implemented in AUCTeX, just parse your document > with

\mathbb and \mathbf cannot be complted.

2023-05-23 Thread Hongyi Zhao
Hi here, I noticed that \mathbb and \mathbf cannot be completed, as shown in the attached screenshot. I'm not sure whether this is the desired behavior when using auctex. Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational University of Technology

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-22 Thread Hongyi Zhao
On Mon, May 22, 2023 at 7:50 AM Mosè Giordano wrote: > > On Mon, 22 May 2023 at 00:45, Hongyi Zhao wrote: > > Mine is as follows: > > > > --8<---cut here---start->8--- > > $ runs the command cdlatex-dolla

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
On Mon, May 22, 2023 at 7:50 AM Mosè Giordano wrote: > > On Mon, 22 May 2023 at 00:45, Hongyi Zhao wrote: > > Mine is as follows: > > > > --8<---cut here---start->8--- > > $ runs the command cdlatex-dolla

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
On Mon, May 22, 2023 at 12:35 AM Mosè Giordano wrote: > > On Sun, 21 May 2023 at 14:34, Hongyi Zhao wrote: > > But I still cannot observe the desired behavior, as shown in the > > attached screenshot. > > Are you sure that `$' is bound to `TeX-insert-dollar'? In a LaTeX

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
On Sun, May 21, 2023 at 9:33 PM Hongyi Zhao wrote: > > On Sun, May 21, 2023 at 7:14 PM Mosè Giordano wrote: > > > > Hi Zhao > > > > On Sun, 21 May 2023 at 09:41, Hongyi Zhao wrote: > > > I want to convert `bla` to `$bla$` automatically when be highlig

Let \ref{} and \eqref{} trigger the already defined labels list for completion.

2023-05-21 Thread Hongyi Zhao
Hi here, Is there a way to let \ref{} and \eqref{} trigger the already defined labels list for completion? Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District,

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
On Sun, May 21, 2023 at 7:14 PM Mosè Giordano wrote: > > Hi Zhao > > On Sun, 21 May 2023 at 09:41, Hongyi Zhao wrote: > > I want to convert `bla` to `$bla$` automatically when be highlighted > > and typeset a `$'. > > I believe you want to look at `TeX-electri

Re: Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
On Sun, May 21, 2023 at 4:41 PM Hongyi Zhao wrote: > > Hi here, > > I want to convert `bla` to `$bla$` automatically when be highlighted > and typeset a `$'. > > Currently, my observed result is `bla$$`, which is not consistent with > the LaTeX math environment. I tried t

Convert bla to $bla$ automatically when be highlighted and typeset a $.

2023-05-21 Thread Hongyi Zhao
Hi here, I want to convert `bla` to `$bla$` automatically when be highlighted and typeset a `$'. Currently, my observed result is `bla$$`, which is not consistent with the LaTeX math environment. Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational

Conditionally activate `helm-bibtex` based on AUCTeX's `LaTeX-mode`.

2023-05-16 Thread Hongyi Zhao
Hi here, I'm using the following configuration for `helm-bibtex`: ; begin configuration (use-package helm :demand t :config (require 'helm-autoloads)) (use-package helm-bibtex :demand t :init (setq ;;https://github.com/tmalsburg/helm-bibtex#insert-latex-cite-commands

Re: LaTeX, long line, and synctex.

2023-05-10 Thread Hongyi Zhao
On Thu, May 11, 2023 at 10:54 AM Hongyi Zhao wrote: > > Hi here, > > When working with AUCTeX, if I have long-lines in LaTeX file, then the > SyncTeX positioning will not so accurate. How to tackle this problem? It seems that the only feasible way is to use `M-q ( fill-par

LaTeX, long line, and synctex.

2023-05-10 Thread Hongyi Zhao
Hi here, When working with AUCTeX, if I have long-lines in LaTeX file, then the SyncTeX positioning will not so accurate. How to tackle this problem? Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No.

Re: Outline based LaTeX source code navigation.

2023-05-10 Thread Hongyi Zhao
On Thu, May 11, 2023 at 12:40 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I've added the following setting into my init.el according to the above > > guide: > > > > (setq TeX-outline-extra > > '(("[ \t]*\\(bib\\)?item\\b" 7)

Re: Outline based LaTeX source code navigation.

2023-05-10 Thread Hongyi Zhao
On Wed, May 10, 2023 at 3:58 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > But I still cannot figure out how to use the method described here: > > https://www.gnu.org/software/auctex/manual/auctex/Outline.html > > Did you try 'M-x outline-minor-mode RET'

Re: Outline based LaTeX source code navigation.

2023-05-09 Thread Hongyi Zhao
On Tue, May 9, 2023 at 4:00 PM Mandar Mitra wrote: > > Hongyi Zhao wrote (Tue, May 09, 2023 at 08:51:59AM +0800): > > Hi here, > > > > I'm not sure whether there is a convenient way to generate an outline > > based on the current master tex source file to facilitate

Re: Outline based LaTeX source code navigation.

2023-05-08 Thread Hongyi Zhao
On Tue, May 9, 2023 at 9:13 AM Hongyi Zhao wrote: > > On Tue, May 9, 2023 at 8:51 AM Hongyi Zhao wrote: > > > > Hi here, > > > > I'm not sure whether there is a convenient way to generate an outline > > based on the current master tex source file to facil

Re: Outline based LaTeX source code navigation.

2023-05-08 Thread Hongyi Zhao
On Tue, May 9, 2023 at 8:51 AM Hongyi Zhao wrote: > > Hi here, > > I'm not sure whether there is a convenient way to generate an outline > based on the current master tex source file to facilitate the source > code navigation. Based on the description here [1-2], it seems

Outline based LaTeX source code navigation.

2023-05-08 Thread Hongyi Zhao
Hi here, I'm not sure whether there is a convenient way to generate an outline based on the current master tex source file to facilitate the source code navigation. Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and

Re: (Un)comment line(s) with markers at arbitrary position(s) in this/these line.

2023-05-08 Thread Hongyi Zhao
On Wed, May 3, 2023 at 6:30 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> > Really, that is the content intercepted by copyq [1] > >> > clipboard. What should I do tackling such key binding confliction? > > > > Very strange: even I've

Re: AUCTeX and "builtin latex mode" integration

2023-05-08 Thread Hongyi Zhao
On Mon, May 8, 2023 at 6:45 PM Arash Esbati wrote: > > Ikumi Keita writes: > > > I attach a tentative patch to make AUCTeX major mode names not overwrap > > built-in TeX modes. In this patch, the new mode names (value of > > `major-mode') are > > - plain-TeX-mode > > - LaTeX-mode > > -

Re: Trigger Tex file compilation with latexmk automatically when its content is changed and saved.

2023-05-06 Thread Hongyi Zhao
On Sat, May 6, 2023 at 11:14 PM Hongyi Zhao wrote: > > On Sat, May 6, 2023 at 10:31 PM Ikumi Keita wrote: > > > > >>>>> Hongyi Zhao writes: > > >> (1) Does "latexmk -pv FILENAME" work as expected when you issue the > > &

Re: LaTeX commands and packages names autocomplete.

2023-05-06 Thread Hongyi Zhao
On Sat, May 6, 2023 at 8:22 PM Hongyi Zhao wrote: > > On Sat, May 6, 2023 at 7:58 PM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > I use the following tex file to do the test, but nothing is completed: > > > > From your screenshot,

Re: Trigger Tex file compilation with latexmk automatically when its content is changed and saved.

2023-05-06 Thread Hongyi Zhao
On Sat, May 6, 2023 at 10:31 PM Ikumi Keita wrote: > > >>>>> Hongyi Zhao writes: > >> (1) Does "latexmk -pv FILENAME" work as expected when you issue the > >> command on some shell, in the directory the file is located? > > > In fac

Re: LaTeX commands and packages names autocomplete.

2023-05-06 Thread Hongyi Zhao
On Sat, May 6, 2023 at 7:58 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I use the following tex file to do the test, but nothing is completed: > > From your screenshot, you're using the built-in latex-mode provided by > Emacs. Thank you for pointing thi

Re: Trigger Tex file compilation with latexmk automatically when its content is changed and saved.

2023-05-06 Thread Hongyi Zhao
On Thu, May 4, 2023 at 9:52 PM Ikumi Keita wrote: > > Hi Hongyi, > > >>>>> Hongyi Zhao writes: > > But after the TeX file has been changed and saved, I still haven't > > observed the automatic compilation progress. Any tips/comments will be > > apprec

Re: LaTeX commands and packages names autocomplete.

2023-05-06 Thread Hongyi Zhao
On Fri, May 5, 2023 at 2:23 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > Now, I add the `:demand t` to the corfu's use-package configuration, > > but the problem still remains: > > I don't think this is a corfu/AUCTeX issue. Try: > > • emacs -Q > •

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Hongyi Zhao
On Fri, May 5, 2023 at 6:21 PM Hongyi Zhao wrote: > > On Fri, May 5, 2023 at 5:58 PM Hongyi Zhao wrote: > > > > On Fri, May 5, 2023 at 4:17 PM Arash Esbati wrote: > > > > > > Hongyi Zhao writes: > > > > > > > Perhaps the simplest

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Hongyi Zhao
On Fri, May 5, 2023 at 5:58 PM Hongyi Zhao wrote: > > On Fri, May 5, 2023 at 4:17 PM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > Perhaps the simplest solution is to use the cape to interface to > > > well-developed backends. > > >

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Hongyi Zhao
On Fri, May 5, 2023 at 4:17 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > Perhaps the simplest solution is to use the cape to interface to > > well-developed backends. > > Please feel free to try it out; maybe you report back how good it works > with

Re: LaTeX commands and packages names autocomplete.

2023-05-05 Thread Hongyi Zhao
On Fri, May 5, 2023 at 2:23 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > 2. Package names still cannot be automatically completed, as shown in > > the attached screenshot. > > Yes, in-buffer completion for package/class names and options isn't > implemented

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Hongyi Zhao
On Fri, May 5, 2023 at 7:58 AM Hongyi Zhao wrote: > > On Fri, May 5, 2023 at 2:18 AM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > I should have also uncommented the above line. But even so, I have the > > > following problems: >

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Hongyi Zhao
On Fri, May 5, 2023 at 2:18 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I should have also uncommented the above line. But even so, I have the > > following problems: > > > > 1. I must at least type 3 letters to trigger the completion. > > ,[

Re: Set the variable bibtex-completion-bibliography used by helm-bibtex to the dynamical generated bib files list corresponding to the current master tex file.

2023-05-04 Thread Hongyi Zhao
On Wed, May 3, 2023 at 8:08 AM Hongyi Zhao wrote: > > On Wed, May 3, 2023 at 1:55 AM Mandar Mitra wrote: > > > > Hongyi Zhao wrote (Tue, May 02, 2023 at 10:03:23PM +0800): > > > The example setting of this variable is as follows: > > > > > > (setq bi

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Hongyi Zhao
On Thu, May 4, 2023 at 11:40 PM Hongyi Zhao wrote: > > On Thu, May 4, 2023 at 10:54 PM Hongyi Zhao wrote: > > > > On Tue, May 2, 2023 at 1:30 PM Arash Esbati wrote: > > > > > > Hongyi Zhao writes: > > > > > > > My current configuration:

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Hongyi Zhao
On Thu, May 4, 2023 at 10:54 PM Hongyi Zhao wrote: > > On Tue, May 2, 2023 at 1:30 PM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > My current configuration: > > > > > > (use-package company-math > > > :hook > &g

Re: LaTeX commands and packages names autocomplete.

2023-05-04 Thread Hongyi Zhao
On Tue, May 2, 2023 at 1:30 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > My current configuration: > > > > (use-package company-math > > :hook > > ;; This will enable the company-math backend for LaTeX mode > > (LaTeX-mode . (lambda

Re: (Un)comment line(s) with markers at arbitrary position(s) in this/these line.

2023-05-03 Thread Hongyi Zhao
On Wed, May 3, 2023 at 4:34 PM Hongyi Zhao wrote: > > On Wed, May 3, 2023 at 4:26 PM Tassilo Horn wrote: > > > > Hongyi Zhao writes: > > > > >> That popup is not from emacs, isn't it? I guess you window manager > > >> captures th

Re: (Un)comment line(s) with markers at arbitrary position(s) in this/these line.

2023-05-03 Thread Hongyi Zhao
On Wed, May 3, 2023 at 4:26 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> That popup is not from emacs, isn't it? I guess you window manager > >> captures the key so that emacs never sees it. You can test that > >> assumption by doing C-h k C-x C

Re: (Un)comment line(s) with markers at arbitrary position(s) in this/these line.

2023-05-03 Thread Hongyi Zhao
On Wed, May 3, 2023 at 4:03 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> Use comment-line instead of comment-dwim. > > > > But when I try `C-x C-;`, the weird behavior is triggered, as shown in > > the attached file. > > That popup is not

Trigger Tex file compilation with latexmk automatically when its content is changed and saved.

2023-05-02 Thread Hongyi Zhao
Hi here, For the purpose of automatic compilation in Emacs using AUCTeX and latexmk on Ubuntu Linux, I've the following configuration: ;;; begin config here ;; https://tam5917.hatenablog.com/entry/2021/04/10/134230 ;; https://lists.gnu.org/archive/html/auctex/2021-10/msg00013.html (defvar

Re: Set the variable bibtex-completion-bibliography used by helm-bibtex to the dynamical generated bib files list corresponding to the current master tex file.

2023-05-02 Thread Hongyi Zhao
On Wed, May 3, 2023 at 1:55 AM Mandar Mitra wrote: > > Hongyi Zhao wrote (Tue, May 02, 2023 at 10:03:23PM +0800): > > The example setting of this variable is as follows: > > > > (setq bibtex-completion-bibliography (directory-files-recursively > >

Set the variable bibtex-completion-bibliography used by helm-bibtex to the dynamical generated bib files list corresponding to the current master tex file.

2023-05-02 Thread Hongyi Zhao
Hi here, I've the following use scenario: 1. Use helm-bibtex to manage and insert bib entries. 2. Use auctex to do the document creation. 3. I save the bib files used for each master tex file in a subfolder located under the same directory as it. I want to set the

Re: LaTeX commands and packages names autocomplete.

2023-05-02 Thread Hongyi Zhao
On Tue, May 2, 2023 at 1:30 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > My current configuration: > > > > (use-package company-math > > :hook > > ;; This will enable the company-math backend for LaTeX mode > > (LaTeX-mode . (lambda

(Un)comment line(s) with markers at arbitrary position(s) in this/these line.

2023-05-01 Thread Hongyi Zhao
Hi here, I want to have the feature of (Un)comment a line or several lines with markers at an arbitrary position(s) in/spanning this/these line(s). Say in the following example, `|` indicates the markers: \usepackage|[T1]{fontenc} \usepackage[utf8]{inputenc}| `C-c ;` gives the following:

Re: XeTeX/LuaTeX and inputenc package.

2023-05-01 Thread Hongyi Zhao
Thanks, I'll check it out. On Tue, May 2, 2023 at 12:01 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > BTW, if I only use the traditional LaTeX engine, does the following > > setting make sense? > > > > \usepackage[T1]{fontenc} > > Again, depends

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Hongyi Zhao
On Tue, May 2, 2023 at 12:19 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I commented out the `company-fuzzy` and `company-math` packages, now > > it works. > > > > But I really want to have the feature provided by `company-math`, and > > it seem

Re: XeTeX/LuaTeX and inputenc package.

2023-05-01 Thread Hongyi Zhao
On Mon, May 1, 2023 at 8:35 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > On Mon, May 1, 2023 at 6:14 PM Arash Esbati wrote: > >> > >> So there is no real life issue you're trying to solve, right? > > > > Yes, that's right, at least for no

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Hongyi Zhao
On Mon, May 1, 2023 at 8:47 PM Hongyi Zhao wrote: > > On Mon, May 1, 2023 at 6:20 PM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > Some time ago, it seemed that my auctex configuration was able to > > > provide autocomplete for

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Hongyi Zhao
On Mon, May 1, 2023 at 6:20 PM David Kastrup wrote: > > Hongyi Zhao writes: > > > Hi here, > > > > Some time ago, it seemed that my auctex configuration was able to > > provide autocomplete for LaTeX commands and packages names. However, > > currently, a

Re: XeTeX/LuaTeX and inputenc package.

2023-05-01 Thread Hongyi Zhao
On Mon, May 1, 2023 at 6:14 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I'm writing an academic paper now, and I noticed the example usage > > which I've posted here from an arXiv manuscript [1]. Till now, I > > haven't encountered any related troubles yet. &

Re: ERROR: LaTeX Error: \caption outside float.

2023-05-01 Thread Hongyi Zhao
On Mon, May 1, 2023 at 6:03 PM David Kastrup wrote: > > Hongyi Zhao writes: > > > Hi here, > > > > I know this is not an auctex related problem, but I would like to see > > some experience from others in solving this problem. > > > > With the at

LaTeX commands and packages names autocomplete.

2023-05-01 Thread Hongyi Zhao
Hi here, Some time ago, it seemed that my auctex configuration was able to provide autocomplete for LaTeX commands and packages names. However, currently, all of these functions are disabled. How should I enable these features again? Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory and

Re: XeTeX/LuaTeX and inputenc package.

2023-05-01 Thread Hongyi Zhao
On Mon, May 1, 2023 at 5:52 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > Just an example, I meant to say, in these Unicode based engines, how > > should we to tackle the not so good supported Unicode characters, if > > any. > > Sorry, but I still don't

ERROR: LaTeX Error: \caption outside float.

2023-05-01 Thread Hongyi Zhao
Hi here, I know this is not an auctex related problem, but I would like to see some experience from others in solving this problem. With the attached file as an example, I always encounter the following error during compiling it: ERROR: LaTeX Error: \caption outside float. --- TeX said ---

Re: XeTeX/LuaTeX and inputenc package.

2023-05-01 Thread Hongyi Zhao
On Mon, May 1, 2023 at 4:25 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > According to the documentation and specifications of certain TeX > > engines (such as XeTeX and LuaTeX), they may not use the inputenc > > package to process Unicode characters, and instea

Re: "%%% TeX-master: t" appears twice.

2023-04-30 Thread Hongyi Zhao
On Monday, May 1, 2023, Ikumi Keita wrote: > Hi Hongyi, > > >>>>> Hongyi Zhao writes: > > I noticed the following auto-generated LaTeX comment code at the end > > of my file: > > > %%% Local Variables: > > %%% mode: latex > > %%% TeX-mast

XeTeX/LuaTeX and inputenc package.

2023-04-30 Thread Hongyi Zhao
Hi here, According to the documentation and specifications of certain TeX engines (such as XeTeX and LuaTeX), they may not use the inputenc package to process Unicode characters, and instead use different methods to handle them. In these engines, the `\DeclareUnicodeCharacter` command may be

"%%% TeX-master: t" appears twice.

2023-04-30 Thread Hongyi Zhao
Hi here, I noticed the following auto-generated LaTeX comment code at the end of my file: %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% TeX-master: t %%% End: But I want to know why there are two duplicate lines, aka, "%%% TeX-master: t"? Regards, Zhao -- Assoc. Prof. Hongsheng

Question about BibLaTeX and BibTeX usage in AUCTeX.

2023-04-29 Thread Hongyi Zhao
Dear AUCTeX community, I hope this email finds you well. I am currently writing an academic paper and have been using AUCTeX for LaTeX editing. I am wondering if it is always recommended to prefer BibLaTeX over BibTeX when working in AUCTeX for academic writing. I am aware that BibLaTeX is a

Re: Use double-click in Evince instead of `Ctrl+left-click` for performing reverse search.

2023-04-28 Thread Hongyi Zhao
On Fri, Apr 28, 2023 at 2:48 AM Tassilo Horn wrote: > > Hongyi Zhao writes: > > > I want to use double-click in Evince instead of `Ctrl+left-click` for > > performing reverse search to jump to the corresponding location in the > > LaTeX source code. Any tips for achiev

Re: Use double-click in Evince instead of `Ctrl+left-click` for performing reverse search.

2023-04-27 Thread Hongyi Zhao
On Fri, Apr 28, 2023 at 2:48 AM Tassilo Horn wrote: > > Hongyi Zhao writes: > > > I want to use double-click in Evince instead of `Ctrl+left-click` for > > performing reverse search to jump to the corresponding location in the > > LaTeX source code. Any tips for achiev

Use double-click in Evince instead of `Ctrl+left-click` for performing reverse search.

2023-04-27 Thread Hongyi Zhao
Hi here, I want to use double-click in Evince instead of `Ctrl+left-click` for performing reverse search to jump to the corresponding location in the LaTeX source code. Any tips for achieving this goal? Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei

Re: font-lock-compile-keywords: Font-lock trying to use keywords before setting them up

2023-04-06 Thread Hongyi Zhao
On Thu, Apr 6, 2023 at 9:40 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I tried you above advice and opened the same .tex file, but this time > > the same error didn't occur. Below is the content shown in *Messages* > > buffer: > > > > For informa

Re: font-lock-compile-keywords: Font-lock trying to use keywords before setting them up

2023-04-06 Thread Hongyi Zhao
On Thu, Apr 6, 2023 at 8:27 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > While loading auctex, the following problem occurred: > > > > Loading > > /home/werner/.emacs.d/straight/repos/auctex/style/listings.elc...done > > font-lock-compile-key

font-lock-compile-keywords: Font-lock trying to use keywords before setting them up

2023-04-05 Thread Hongyi Zhao
Hi here, While loading auctex, the following problem occurred: Loading /home/werner/.emacs.d/straight/repos/auctex/style/listings.elc...done font-lock-compile-keywords: Font-lock trying to use keywords before setting them up How to fix it? Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory

Re: DDE support of AUCTeX.

2023-04-02 Thread Hongyi Zhao
On Sun, Apr 2, 2023 at 3:58 PM Tassilo Horn wrote: > > Tassilo Horn writes: > > >> I noticed on the wiki [1], which says that the DDE support is absent > >> in AUCTeX, as shown in the attachment. I wonder whether this is true. > >> > >> [1] https://en.wikipedia.org/wiki/Comparison_of_TeX_editors

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-22 Thread Hongyi Zhao
On Wed, Dec 22, 2021 at 9:11 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> I've just pushed a commit which makes the annotation function also > >> look into `LaTeX-math-list' and `LaTeX-math-default' if > >> `tex--prettify-symbols-alist' did not fi

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-22 Thread Hongyi Zhao
On Wed, Dec 22, 2021 at 7:06 PM Tassilo Horn wrote: > > Tassilo Horn writes: > > >> There's already LaTeX-math-default in AUCTeX which has some of > >> TeX-name -> unicode character mapping. > > > > I've just pushed a change which uses `tex--prettify-symbols-alist' for > > the translation but

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-22 Thread Hongyi Zhao
On Wed, Dec 22, 2021 at 2:03 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> I've just pushed a change which uses `tex--prettify-symbols-alist' > >> for the translation but I'll extend that to also try > >> `LaTeX-math-default' if no match is found in th

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-21 Thread Hongyi Zhao
On Tue, Dec 21, 2021 at 9:39 PM Ikumi Keita wrote: > > Hi all, > > >>>>> Tassilo Horn writes: > > Hongyi Zhao writes: > >>> I mean, if this works, maybe a lisp script can be created to complete > >>> the work in batches. > > &g

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-21 Thread Hongyi Zhao
On Tue, Dec 21, 2021 at 4:47 PM Hongyi Zhao wrote: > > On Tue, Dec 21, 2021 at 4:38 PM Hongyi Zhao wrote: > > > > On Tue, Dec 21, 2021 at 2:02 PM Tassilo Horn wrote: > > > > > > Hi again, > > > > > > sorry, attached is a patch whic

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-21 Thread Hongyi Zhao
On Tue, Dec 21, 2021 at 4:38 PM Hongyi Zhao wrote: > > On Tue, Dec 21, 2021 at 2:02 PM Tassilo Horn wrote: > > > > Hi again, > > > > sorry, attached is a patch which can actually be applied. > > Thank you. As shown in the attachment, I confirmed that your

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-20 Thread Hongyi Zhao
On Mon, Dec 20, 2021 at 8:32 PM Hongyi Zhao wrote: > > On Sun, Dec 19, 2021 at 10:29 PM Tassilo Horn wrote: > > > > Tassilo Horn writes: > > > > > Or are you asking if that will make that work for all standard AUCTeX > > > completion fun

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-20 Thread Hongyi Zhao
On Sun, Dec 19, 2021 at 10:29 PM Tassilo Horn wrote: > > Tassilo Horn writes: > > > Or are you asking if that will make that work for all standard AUCTeX > > completion functions. I guess so, although just setting > > > > (setq-local completion-extra-properties > >

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Hongyi Zhao
On Sun, Dec 19, 2021 at 10:19 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> Oh, allright. We would need to provide an :annotation-function in > >> `completion-extra-properties' which translates, e.g., \alpha to α. > > > > Only such a function will

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Hongyi Zhao
On Sun, Dec 19, 2021 at 5:18 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> What do you mean with "the actual characters corresponding to each > >> command"? Could you give an example/mockup of what you would like to > >> see in your exampl

Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-18 Thread Hongyi Zhao
When I call `TeX-insert-macro' by hitting `C-c RET', the predefined LaTeX commands are displayed in the minibuffer, so I can choose from them, as shown in the attached file. It would be better if the actual characters corresponding to each command can be displayed at the same time. Regards, HZ

Re: Completion of \boldsymbol

2021-12-09 Thread Hongyi Zhao
On Fri, Dec 10, 2021 at 11:44 AM Ikumi Keita wrote: > > >>>>> Hongyi Zhao writes: > >> Standard LaTeX doesn't provide \boldsymbol, while amsmath does. You will > >> obtain completion support for \boldsymbol in AUCTeX when you add > >> \usepackage

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

2021-12-09 Thread Hongyi Zhao
On Fri, Dec 10, 2021 at 11:10 AM Ikumi Keita wrote: > > >>>>> Hongyi Zhao writes: > >> > For \boldsymbol, it works for me when I put point inside a > >> > (inline) math environment and type \bol (i.e., $\bol*$ * being point) > >> &g

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

2021-12-09 Thread Hongyi Zhao
On Fri, Dec 10, 2021 at 8:40 AM Hongyi Zhao wrote: > > On Thu, Dec 9, 2021 at 10:16 PM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > On Ubuntu 20.04.3 LTS, I use the self-compiled git master version of > > > Emacs and installed AUCTeX, co

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

2021-12-09 Thread Hongyi Zhao
On Thu, Dec 9, 2021 at 10:16 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > 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

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

2021-12-08 Thread Hongyi Zhao
On Thu, Dec 9, 2021 at 7:39 AM Hongyi Zhao wrote: > > On Thu, Dec 9, 2021 at 4:35 AM Arash Esbati wrote: > > > > Why don't you tell Emacs about the > > > > /home/werner/.emacs.d/straight/build/auctex/doc/ > >

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

2021-12-08 Thread Hongyi Zhao
On Thu, Dec 9, 2021 at 4:35 AM Arash Esbati wrote: > > Why don't you tell Emacs about the > > /home/werner/.emacs.d/straight/build/auctex/doc/ > ^^^ > > directory? Maybe that helps finding the auctex.info file. There is >

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

2021-12-08 Thread Hongyi Zhao
On Thu, Dec 9, 2021 at 4:35 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I have also checked the variable `Info-directory-list`, and see the > > following entry in it: > > > > "/home/werner/.emacs.d/straight/build/auctex/" > > &g

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

2021-12-08 Thread Hongyi Zhao
On Wed, Dec 8, 2021 at 8:34 PM Hongyi Zhao wrote: > > On Wed, Dec 8, 2021 at 6:53 PM Jean-Jacques Rétorré > wrote: > > > > mer. 08 déc. 2021, Denis Bitouzé disait : > > > > > Le 08/12/21 à 11h34, Hongyi Zhao a écrit : > > > > > >>

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

2021-12-08 Thread Hongyi Zhao
On Wed, Dec 8, 2021 at 6:53 PM Jean-Jacques Rétorré wrote: > > mer. 08 déc. 2021, Denis Bitouzé disait : > > > 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 insta

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

2021-12-08 Thread Hongyi Zhao
On Wed, Dec 8, 2021 at 2:16 PM Denis Bitouzé wrote: > > 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 docum

  1   2   >