Re: Eglot Failed to completion for commands defined in specified loaded packages for auctex.

2021-06-16 Thread Hongyi Zhao
On Wed, Jun 16, 2021 at 1:05 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > > Then I open the following tex document in Emacs > > > > ``` > > \documentclass{paper} > > \usepackage{braket} > > \begin{document} > >Some testing comes here.

Tooltip and incremental drop-down menus of automatic completion.

2021-06-14 Thread Hongyi Zhao
On Ubuntu 20.04, I use the latest git master Emacs and auctex compiled from source. When I typeset LaTeX source file in Emacs with auctex enabled, I want to know if the features like tooltip and incremental drop-down menus of automatic completion are available. Regards -- Assoc. Prof. Hongyi

Re: Forward and inverse search integration with latex-preview-pane.

2021-07-07 Thread Hongyi Zhao
On Mon, Jul 5, 2021 at 10:02 PM Hongyi Zhao wrote: > > On Mon, Jul 5, 2021 at 8:31 PM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > On Mon, Jul 5, 2021 at 7:27 PM Arash Esbati wrote: > > >> > > >> Can you please try: &g

Re: On the usage and function of TeX-auto-generate-global and TeX-auto-global.

2021-07-04 Thread Hongyi Zhao
On Sun, Jul 4, 2021 at 9:42 PM Colin Baxter wrote: > > >>>>> Hongyi Zhao writes: > > > On Sun, Jul 4, 2021 at 9:19 PM Colin Baxter wrote: > >> > >> Hello Hongyi > >> > >> I'm curious - what's your setting f

Let auctex run pdflatex command on the tex source when it has been changed.

2021-07-04 Thread Hongyi Zhao
TeX-view-program-selection)) "Okular") '(setcar (cdr (assoc 'output-pdf TeX-view-program-selection)) "Evince") ) But I want to know how to automatically trigger auctex compilation on the tex source file with pdflatex every time I've changed and saved the Tex so

Re: Let auctex run pdflatex command on the tex source when it has been changed.

2021-07-05 Thread Hongyi Zhao
On Mon, Jul 5, 2021 at 4:02 PM Ikumi Keita wrote: > > Hi Hongyi, > > >>>>> Hongyi Zhao writes: > > But I want to know how to automatically trigger auctex compilation on > > the tex source file with pdflatex every time I've changed and saved > > t

Re: Forward and inverse search integration with latex-preview-pane.

2021-07-05 Thread Hongyi Zhao
On Mon, Jul 5, 2021 at 4:57 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I'm currently using auctex and latex-preview-pane, > > <https://github.com/jsinglet/latex-preview-pane>, with the following > > initialization configuration: > > > >

On the usage and function of TeX-auto-generate-global and TeX-auto-global.

2021-07-03 Thread Hongyi Zhao
el/issues/802#issuecomment-863726482>, but considering that here is the appropriate list for such issues, so I repost it here. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China

dwim as the value of TeX-master

2021-07-08 Thread Hongyi Zhao
orithm denoted by “do what I mean”. Any hints will be highly appreciated. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-11 Thread Hongyi Zhao
On Sun, Jul 11, 2021 at 2:28 PM Ikumi Keita wrote: > > Hi Hongyi, > > > Hongyi Zhao wrote (Sun, Jul 11, 2021 at 01:50:41PM +0800): > >> But, how to let auctex do this trivial job for me automatically? > > I recommend you to consult the relevant manual: > https://w

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-11 Thread Hongyi Zhao
On Sun, Jul 11, 2021 at 9:29 PM Ikumi Keita wrote: > > Hi Hongyi, > > >>>>> Hongyi Zhao writes: > >> N.B. The web manual falls behind the recent revise of the document and > >> contains obsolete sentence "If AUCTeX finds the line indicating the e

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-11 Thread Hongyi Zhao
s between these two commands. Below is the description for TeX-normal-mode: ``` TeX-normal-mode is an interactive compiled Lisp function in ‘tex.el’. (TeX-normal-mode ARG) Remove all information about this buffer, and apply the style hooks again. Save buffer first including style infor

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-10 Thread Hongyi Zhao
On Sun, Jul 11, 2021 at 1:32 PM Mandar Mitra wrote: > > Hongyi Zhao wrote (Sun, Jul 11, 2021 at 08:09:32AM +0800): > > > %%% Local Variables: > > %%% mode: latex > > %%% TeX-master: ../thesis > > %%% End: > > I have my TeX-master filenames in quotes, like

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-12 Thread Hongyi Zhao
On Mon, Jul 12, 2021 at 6:31 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> (delq nil '(nil 1 nil)) ;=> (1) > >> (delq nil '(nil nil nil)) ;=> nil, aka, the empty list () > >> (eq nil '()) ;=> t > > > > Got it. The `

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-11 Thread Hongyi Zhao
On Mon, Jul 12, 2021 at 1:08 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> > Or as a first step, you could also find the master file and all chapter > >> > files and eval the following in *stratch* and post the output: > >&g

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-12 Thread Hongyi Zhao
On Mon, Jul 12, 2021 at 8:25 AM Hongyi Zhao wrote: > > On Mon, Jul 12, 2021 at 8:21 AM Hongyi Zhao wrote: > > > > On Mon, Jul 12, 2021 at 3:19 AM Tassilo Horn wrote: > > > > > > Hongyi Zhao writes: > > > > > > >> > ``` > > &g

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-12 Thread Hongyi Zhao
On Mon, Jul 12, 2021 at 3:46 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > >> (delq nil (mapcar (lambda (buf) > >> (with-current-buffer buf > >> (when (eq major-mode 'LaTeX-mode) > >>

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-12 Thread Hongyi Zhao
On Mon, Jul 12, 2021 at 2:10 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > > Sorry for my misunderstanding. Really, it can pinpoint the problem: > > > > (delq nil (mapcar (lambda (buf) > > (with-current-buffer buf > >

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-11 Thread Hongyi Zhao
On Mon, Jul 12, 2021 at 3:19 AM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> > ``` > >> > epdfinfo: Error opening > >> > /home/werner/Public/hpc/tools/thesis/gitlab.kwant-project.org/jbweston/thesis.git/content/conclusion.pdf:No >

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-11 Thread Hongyi Zhao
On Mon, Jul 12, 2021 at 8:21 AM Hongyi Zhao wrote: > > On Mon, Jul 12, 2021 at 3:19 AM Tassilo Horn wrote: > > > > Hongyi Zhao writes: > > > > >> > ``` > > >> > epdfinfo: Error opening > > >> > /home/werner/Public/

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-12 Thread Hongyi Zhao
On Mon, Jul 12, 2021 at 7:15 PM David Kastrup wrote: > > Hongyi Zhao writes: > > > On Mon, Jul 12, 2021 at 6:31 PM Tassilo Horn wrote: > >> > >> Hongyi Zhao writes: > >> > >> >> (delq nil '(nil 1 nil)) ;=> (1) > >> >>

Re: Forward and inverse search integration with latex-preview-pane.

2021-07-05 Thread Hongyi Zhao
On Mon, Jul 5, 2021 at 6:33 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > On Mon, Jul 5, 2021 at 4:57 PM Arash Esbati wrote: > >> > >> I think pdf-tools is more appropriate for your requirements. > >> > >> https://github.com/pol

Re: Forward and inverse search integration with latex-preview-pane.

2021-07-05 Thread Hongyi Zhao
On Mon, Jul 5, 2021 at 7:27 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I tried the following configuration: > > > > ;; Update PDF buffers after successful LaTeX runs > > (add-hook 'TeX-after-compilation-finished-hook > >#'TeX-rever

Re: Forward and inverse search integration with latex-preview-pane.

2021-07-05 Thread Hongyi Zhao
On Mon, Jul 5, 2021 at 8:31 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > On Mon, Jul 5, 2021 at 7:27 PM Arash Esbati wrote: > >> > >> Can you please try: > >> > >> (add-hook 'TeX-after-compilation-finished-functi

Re: dwim as the value of TeX-master

2021-07-09 Thread Hongyi Zhao
On Sat, Jul 10, 2021 at 5:01 AM Tassilo Horn wrote: > > Hongyi Zhao writes: > > > The AUCTeX document on > > <https://www.gnu.org/software/auctex/manual/auctex/Multifile.html> > > says the following: > > > > If the variable is dwim, AUCTeX will try to

Failed to skip from chapter tex file to master pdf file.

2021-07-10 Thread Hongyi Zhao
olving this problem? Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-10 Thread Hongyi Zhao
On Sun, Jul 11, 2021 at 4:19 AM Tassilo Horn wrote: > > Hongyi Zhao writes: > > > On Ubuntu 20.04, I compiled this project: > > <https://gitlab.kwant-project.org/jbweston/thesis>, with xelatex + > > xdvipdfmx via latexmk. When I open the tex master file in Ema

Re: On the usage and function of TeX-auto-generate-global and TeX-auto-global.

2021-07-04 Thread Hongyi Zhao
o" Original value was "auto" You can customize this variable. Directory containing automatically generated TeX information. This correspond to TeX macros found in the current directory, and must be relative to that. HY > > Best wishes, > > Colin Baxter. -- Assoc.

Forward and inverse search integration with latex-preview-pane.

2021-07-04 Thread Hongyi Zhao
orward and inverse search between the preview window of latex-preview-pane and tex source code window. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China

Re: On the usage and function of TeX-auto-generate-global and TeX-auto-global.

2021-07-04 Thread Hongyi Zhao
On Sun, Jul 4, 2021 at 1:58 PM Mandar Mitra wrote: > > Hongyi Zhao wrote (Sun, Jul 04, 2021 at 11:10:55AM +0800): > > This way, the above command won't need root privilege. But based on my > > later tries, it seems that there is no need to run the above command > > at all

Re: On the usage and function of TeX-auto-generate-global and TeX-auto-global.

2021-07-04 Thread Hongyi Zhao
On Sun, Jul 4, 2021 at 3:42 PM Ikumi Keita wrote: > > Hi Hongyi, > > >>>>> Hongyi Zhao writes: > > According to my understanding, the `TeX-auto-global' variable setting > > is intending to set the file's store location of the comprehensive > > macro

Re: Failed to install auctex from within Emacs with straight.

2021-08-17 Thread Hongyi Zhao
On Tue, Aug 17, 2021 at 4:14 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > >> Then I'd try something like > >> > >> (let ((default-directory "~/auctex-checkout")) > >> (call-process "~/auctex-checkout/configure&q

Re: Failed to install auctex from within Emacs with straight.

2021-08-17 Thread Hongyi Zhao
On Tue, Aug 17, 2021 at 2:48 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > Hi, > > > I'm on Ubuntu 20.04.2 LTS, and use straight [1] as the Emacs package > > manager. Now, I try to install auctex from within Emacs with straight, > > but it always freezes at

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-12 Thread Hongyi Zhao
On Fri, Aug 13, 2021 at 8:17 AM Vladimir Lomov wrote: > > Hello, > ** Arash Esbati [2021-08-12 21:45:21 +0200]: > > > Hongyi Zhao writes: > > >> On Thu, Aug 12, 2021 at 8:41 PM Vladimir Lomov wrote: > >> [...] > >>> The advice is simple

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-12 Thread Hongyi Zhao
On Fri, Aug 13, 2021 at 3:59 AM Arash Esbati wrote: [...] > I won't push this change to RefTeX/Emacs repo since I think it is a hack > and a clear solution is already there: The simple advice above and > `reftex-bibpath-environment-variables'. Thank you for showing one possible technical path,

Re: Failed to install auctex from within Emacs with straight.

2021-08-17 Thread Hongyi Zhao
On Tue, Aug 17, 2021 at 2:48 PM Tassilo Horn wrote: > > Hongyi Zhao writes: > > Hi, > > > I'm on Ubuntu 20.04.2 LTS, and use straight [1] as the Emacs package > > manager. Now, I try to install auctex from within Emacs with straight, > > but it always freezes at

Failed to install auctex from within Emacs with straight.

2021-08-16 Thread Hongyi Zhao
nt-buffer (url-retrieve-synchronously (concat "https://raw.githubusercontent.com/; "raxod502/straight.el/develop/install.el") 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) (condition-case nil (message "Test run with version: %s" (straight-version)) (error nil)) (unwind-protect (progn (setq debug-on-quit t) (straight-use-package '(auctex :type git :host nil :repo "https://git.savannah.gnu.org/git/auctex.git; :pre-build ... :files ...))) (message "Packages:\n%s\n" (straight-bug-report--format-package-info (straight-bug-report-package-info)) t) command-line-1(("--eval" "(with-demoted-errors \"Error: %S\"\n (let\n ((st...")) command-line() normal-top-level() The Emacs version info given by `M-x emacs-version RET' is as follows: GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-08-15 I've discussed the problem here [2] but still can't solve it. [1] https://github.com/raxod502/straight.el [2] https://github.com/raxod502/straight.el/issues/836 Any hints will be highly appreciated. -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province

Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-02 Thread Hongyi Zhao
entries into a \cite command. Any hints will be highly appreciated. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-08 Thread Hongyi Zhao
On Mon, Aug 9, 2021 at 2:07 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > I noticed that the \cite command operation using reftex supports the > > following options: > > > > ### > > n / p Go to next/previous entry (Cursor motion wor

ispell-accept-output: No Ispell process to read output from!

2021-08-10 Thread Hongyi Zhao
-- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-10 Thread Hongyi Zhao
On Wed, Aug 11, 2021 at 12:40 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > On Mon, Aug 9, 2021 at 6:03 PM Arash Esbati wrote: > >> > >> Replace > >> > >> > >> \bibliography{\string~/Documents/bibliograph/better-bibtex/refer

Re: ispell-accept-output: No Ispell process to read output from!

2021-08-10 Thread Hongyi Zhao
On Tue, Aug 10, 2021 at 10:48 PM macleod wrote: > > Hi Hongyi, > > Have you installed ispell? I usually have to do this separately from the TeX > install. $ which ispell /usr/bin/ispell > Cheers, > Rob > > > > On Aug 10, 2021, at 8:44 AM, Hongyi

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-12 Thread Hongyi Zhao
On Thu, Aug 12, 2021 at 8:41 PM Vladimir Lomov wrote: > > Hello, > ** Hongyi Zhao [2021-08-12 17:48:21 +0800]: > > > No. Your above conclusion is partially right. See my following testing > > results: > > > --- > > \documentclass{article} > > \usep

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-12 Thread Hongyi Zhao
On Thu, Aug 12, 2021 at 5:48 PM Hongyi Zhao wrote: [...] > To conclude: > > 1. If you use helm-bibtex, the following example works smoothly: > > --- > \documentclass{article} > \usepackage{natbib} > > \begin{document} > > \begin{verbatim} > (insert &q

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-12 Thread Hongyi Zhao
On Thu, Aug 12, 2021 at 8:41 PM Vladimir Lomov wrote: [...] > The advice is simple: don't use full path, try to put your bibtex files into > $HOME/texmf/bibtex/bib/hongyi/ This will work by just using the bibliography file name, but it still can't let the `C-c [' find the bib file:

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-12 Thread Hongyi Zhao
On Thu, Aug 12, 2021 at 3:21 PM Vladimir Lomov wrote: > > Hello, > ** Hongyi Zhao [2021-08-12 12:40:24 +0800]: > > [...] > > > What do you mean by saying ``"big" output''? The original description > > given by Arash is as follows: > > > (bib &quo

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-12 Thread Hongyi Zhao
On Thu, Aug 12, 2021 at 5:48 PM Hongyi Zhao wrote: > > On Thu, Aug 12, 2021 at 3:21 PM Vladimir Lomov wrote: > > > > Hello, > > ** Hongyi Zhao [2021-08-12 12:40:24 +0800]: > > > > [...] > > > > > What do you mean by saying ``"big&

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-12 Thread Hongyi Zhao
On Fri, Aug 13, 2021 at 3:59 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > On Thu, Aug 12, 2021 at 8:41 PM Vladimir Lomov wrote: > > [...] > >> The advice is simple: don't use full path, try to put your bibtex files > >> into > >> $HOME

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-12 Thread Hongyi Zhao
On Fri, Aug 13, 2021 at 9:35 AM Hongyi Zhao wrote: > > On Fri, Aug 13, 2021 at 3:59 AM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > On Thu, Aug 12, 2021 at 8:41 PM Vladimir Lomov wrote: > > > [...] > > >> The advice is sim

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-11 Thread Hongyi Zhao
On Thu, Aug 12, 2021 at 9:16 AM Vladimir Lomov wrote: > > Hello, > ** Arash Esbati [2021-08-11 12:13:30 +0200]: > > > Hi Vladimir, > > > Vladimir Lomov writes: > > [...] > > >> The necessary information is written to .rel file. > > > This is not RefTeX default, I suppose you set

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-11 Thread Hongyi Zhao
On Wed, Aug 11, 2021 at 12:42 PM Hongyi Zhao wrote: > > On Wed, Aug 11, 2021 at 10:43 AM Vladimir Lomov wrote: > > > > Hello, > > ** Hongyi Zhao [2021-08-11 07:47:33 +0800]: > > > > > On Wed, Aug 11, 2021 at 12:40 AM Arash Esbati wrote: > > [...]

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-11 Thread Hongyi Zhao
On Thu, Aug 12, 2021 at 10:23 AM Vladimir Lomov wrote: > > Hello, > ** Hongyi Zhao [2021-08-12 09:35:55 +0800]: > > [...] > > >> Yes, it WAS, from now on it is removed from my configuration (according to > >> advice in RefTeX documentation). > > >

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-11 Thread Hongyi Zhao
On Thu, Aug 12, 2021 at 11:48 AM Vladimir Lomov wrote: > > Hello, > ** Hongyi Zhao [2021-08-12 11:07:00 +0800]: > > >> Do this in the buffer with open document. > > > Running "C-x C-e" on the line from within the opened document still > > gi

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-11 Thread Hongyi Zhao
On Thu, Aug 12, 2021 at 10:20 AM Vladimir Lomov wrote: > > Hello, > ** Hongyi Zhao [2021-08-11 12:42:28 +0800]: > > Okay, let's try to clarify situation and to sort out different errors. > > > On Wed, Aug 11, 2021 at 10:43 AM Vladimir Lomov wrote: [...] > >>

Re: Select and insert multiple bibliography entries into one \cite command with regexp search.

2021-08-11 Thread Hongyi Zhao
On Thu, Aug 12, 2021 at 12:07 PM Hongyi Zhao wrote: > > On Thu, Aug 12, 2021 at 11:48 AM Vladimir Lomov wrote: > > > > Hello, > > ** Hongyi Zhao [2021-08-12 11:07:00 +0800]: > > > > >> Do this in the buffer with open document. > > > >

Re: Detect latexmk is running on currently buffer.

2021-10-13 Thread Hongyi Zhao
On Wed, Oct 13, 2021 at 5:19 PM Ikumi Keita wrote: > > Hi Hongyi, > > >>>>> Hongyi Zhao writes: > > > Though the above method works, I meet a problem when the project LaTeX > > files are large to some extent. To be more specific, when the project > &g

Re: Detect latexmk is running on currently buffer.

2021-10-13 Thread Hongyi Zhao
On Wed, Oct 13, 2021 at 8:11 PM Hongyi Zhao wrote: > > On Wed, Oct 13, 2021 at 5:19 PM Ikumi Keita wrote: > > > > Hi Hongyi, > > > > >>>>> Hongyi Zhao writes: > > > > > Though the above method works, I meet a problem when the pr

Re: Detect latexmk is running on currently buffer.

2021-10-13 Thread Hongyi Zhao
On Thu, Oct 14, 2021 at 12:18 AM Ikumi Keita wrote: > > >>>>> Hongyi Zhao writes: > >> Thank you very much for your improvement, I'll test and feedback. > > > I've tested with this project [1]. It seems that the background > > latexmk process failed

Re: Detect latexmk is running on currently buffer.

2021-10-13 Thread Hongyi Zhao
On Thu, Oct 14, 2021 at 12:18 AM Ikumi Keita wrote: > > >>>>> Hongyi Zhao writes: > >> Thank you very much for your improvement, I'll test and feedback. > > > I've tested with this project [1]. It seems that the background > > latexmk process failed

Re: Detect latexmk is running on currently buffer.

2021-10-14 Thread Hongyi Zhao
On Thu, Oct 14, 2021 at 2:54 PM Ikumi Keita wrote: > > >>>>> Hongyi Zhao writes: > > When the buffer is saved, the following error will be triggered: > > > let: Wrong number of arguments: erase-buffer, 1 > > Oops, sorry. Replace (erase-buffer buf)

Detect latexmk is running on currently buffer.

2021-10-11 Thread Hongyi Zhao
relatively long, which may lead to the following race condition: When the previous latexmk process has not ended, the subsequent latexmk process is launched again. Any hints for fixing this problem? Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University

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: 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

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-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-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-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-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-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 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-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

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

2021-12-07 Thread Hongyi Zhao
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 and \hspace, which can't completed automatically

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

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: 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 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-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-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 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 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: Convert the svg files to pdf/eps for a project automatically.

2021-07-18 Thread Hongyi Zhao
On Mon, Jul 19, 2021 at 2:11 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > Currently, the latexmk can't automatically convert graphics formats > > for files located under the subfolders of a project due to the > > graphics package limitation of not logging

Re: Convert the svg files to pdf/eps for a project automatically.

2021-07-19 Thread Hongyi Zhao
On Mon, Jul 19, 2021 at 2:11 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > Currently, the latexmk can't automatically convert graphics formats > > for files located under the subfolders of a project due to the > > graphics package limitation of not logging

Re: Convert the svg files to pdf/eps for a project automatically.

2021-07-19 Thread Hongyi Zhao
On Mon, Jul 19, 2021 at 4:22 PM Arash Esbati wrote: > > Hongyi Zhao writes: > > > On Mon, Jul 19, 2021 at 2:11 AM Arash Esbati wrote: > >> > >> I'm not sure if AUCTeX needs this feature. There is a LaTeX package > >> called svg[1] which exact

Re: Convert the svg files to pdf/eps for a project automatically.

2021-07-19 Thread Hongyi Zhao
On Tue, Jul 20, 2021 at 2:18 AM Arash Esbati wrote: > > Hongyi Zhao writes: > > > On Mon, Jul 19, 2021 at 4:22 PM Arash Esbati wrote: > >> > >> 2. Usage of package svg > >> > >> The purpose of this package is to include sta

Re: Convert the svg files to pdf/eps for a project automatically.

2021-07-19 Thread Hongyi Zhao
On Tue, Jul 20, 2021 at 8:39 AM Hongyi Zhao wrote: > > On Tue, Jul 20, 2021 at 2:18 AM Arash Esbati wrote: > > > > Hongyi Zhao writes: > > > > > On Mon, Jul 19, 2021 at 4:22 PM Arash Esbati wrote: > > >> > > >> 2. Usage of

Re: Convert the svg files to pdf/eps for a project automatically.

2021-07-20 Thread Hongyi Zhao
On Tue, Jul 20, 2021 at 8:57 AM Hongyi Zhao wrote: > > On Tue, Jul 20, 2021 at 8:39 AM Hongyi Zhao wrote: > > > > On Tue, Jul 20, 2021 at 2:18 AM Arash Esbati wrote: > > > > > > Hongyi Zhao writes: > > > > > > > On Mon, Jul 19, 202

Convert the svg files to pdf/eps for a project automatically.

2021-07-16 Thread Hongyi Zhao
for files automatically, if necessary. Especially when they are located under a project's subfolders. Any hints for this job will be highly appreciated. Regards, -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473

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 > >>

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: 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

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

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

"%%% 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

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

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 ---

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 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

  1   2   >