Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Arash Esbati
Hongyi Zhao writes: > My current configuration: > > (use-package company-math > :hook > ;; This will enable the company-math backend for LaTeX mode > (LaTeX-mode . (lambda () > (setq-local company-backends > (append '((company-math-symbols-latex >

(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 on your use case, i.e., which glyphs do

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 seems that my following configuration seems to

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Arash Esbati
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 seems that my following configuration seems to be both chaotic and > problematic: > [...] > If anyone has

Re: XeTeX/LuaTeX and inputenc package.

2023-05-01 Thread Arash Esbati
Hongyi Zhao writes: > BTW, if I only use the traditional LaTeX engine, does the following > setting make sense? > > \usepackage[T1]{fontenc} Again, depends on your use case, i.e., which glyphs do you need to typeset your output. I suggest you read some text like this:

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 now. > > Great; so let's close the hypothetical

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 LaTeX commands and packages names. However, > > >

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, all of these functions are disabled. How

Re: XeTeX/LuaTeX and inputenc package.

2023-05-01 Thread Arash Esbati
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 now. Great; so let's close the hypothetical discussion for now. You can open a discussion again once the issue is

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. > > So there is no real life

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread David Kastrup
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, all of these functions are disabled. How should I enable > these features again? Undo whatever you did that

Re: LaTeX commands and packages names autocomplete.

2023-05-01 Thread Arash Esbati
Hongyi Zhao writes: > 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? Maybe you've changed to value of

Re: XeTeX/LuaTeX and inputenc package.

2023-05-01 Thread Arash Esbati
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. So there is no real life issue you're trying to solve, right? Best, Arash

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 attached file as an example, I always encounter the

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: ERROR: LaTeX Error: \caption outside float.

2023-05-01 Thread David Kastrup
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 attached file as an example, I always encounter the following > error during compiling it: > > ERROR: LaTeX Error: \caption

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 get it. Can you please spell out

Re: XeTeX/LuaTeX and inputenc package.

2023-05-01 Thread Arash Esbati
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 get it. Can you please spell out what you're trying to achieve, what you've tried to get there and

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 instead use different > > methods

Re: Question about BibLaTeX and BibTeX usage in AUCTeX.

2023-05-01 Thread Arash Esbati
Hongyi Zhao writes: > 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. Support for using BibLaTeX

Re: XeTeX/LuaTeX and inputenc package.

2023-05-01 Thread Arash Esbati
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 instead use different > methods to handle them. In these engines, the >