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

2021-08-14 Thread Arash Esbati
Vladimir Lomov writes: > P.S. We didn't even suggest to use symlink! Neither relative path like \bibliography{../../texmf/bibtex/bib/bib-file} We should let those cans closed :-) Best, Arash

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: 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: don't use full path, try to put your bibtex files > >>>

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 simple: don't use full path, try to put your bibtex files > >

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/texmf/bibtex/bib/hongyi/ > > > > This will work by

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

2021-08-12 Thread Vladimir Lomov
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: don't use full path, try to put your bibtex files into >>> $HOME/texmf/bibtex/bib/hongyi/ >> >> This will work by just using

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

2021-08-12 Thread Arash Esbati
Vladimir Lomov writes: > The advice is simple: don't use full path, try to put your bibtex files into > $HOME/texmf/bibtex/bib/hongyi/ I agree. Besides, we could teach RefTeX to ignore the \string macro in the argument of \bibliography by patching the function

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

2021-08-12 Thread Arash Esbati
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/texmf/bibtex/bib/hongyi/ > > This will work by just using the bibliography file name, but it still > can't let the `C-c ['

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 "\n" (format "%S" (symbol-value

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 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} > > \usepackage{natbib} > >

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

2021-08-12 Thread Vladimir Lomov
Hello, ** Hongyi Zhao [2021-08-12 17:48:21 +0800]: > No. Your above conclusion is partially right. See my following testing > results: > --- > \documentclass{article} > \usepackage{natbib} > \bibliography{/home/werner/Documents/bibliograph/better-bibtex/references-bibtex.bib} >

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" output''? The original description > > > given by Arash is as

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 "z:/path/to/test-bib-file.bib") > > The output length

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

2021-08-12 Thread Vladimir Lomov
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 "z:/path/to/test-bib-file.bib") The output length is bigger than 80 symbols (cf. what Arash shown). [...] > But even so, I

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. > > > > > Running "C-x C-e" on the line from within the opened

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 > > give me the following result: > > > (insert "\n" > >

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

2021-08-11 Thread Vladimir Lomov
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 > give me the following result: > (insert "\n" > (format "%S" (symbol-value reftex-docstruct-symbol))) > nil I think it

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: [...] > >> > >> I open the document in Emacs

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). > > > Where is the advice? I only see the following

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

2021-08-11 Thread Vladimir Lomov
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). > Where is the advice? I only see the following advice [1]: > As a summary, here are the settings I recommend for heavy

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

2021-08-11 Thread Vladimir Lomov
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: [...] >> Besides, this in NOT an ERROR! This is a WARNING! You should look into >> reftex-docstruct-symbol.blg

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: > > [...] > > >> > > >> For me, it works with a simple

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 Vladimir Lomov
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 `reftex-save-parse-info' > to t somewhere. Yes, it WAS, from now on it is removed from my

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

2021-08-11 Thread Arash Esbati
Hi Vladimir, Vladimir Lomov writes: > --- NOTES --- > > [1] To be honest when I open document first time in Emacs I got 'nil'. To get > correct result I had to run either 'Ref -> Parse Document -> Entire Document' > or to try insert citation using 'C-u C-c [' which forces document > parsing.

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

2021-08-10 Thread Vladimir Lomov
Hello, ** Hongyi Zhao [2021-08-11 07:47:33 +0800]: > On Wed, Aug 11, 2021 at 12:40 AM Arash Esbati wrote: [...] >> >> For me, it works with a simple file like this on my Windows box: >> >> \documentclass{article} >> >> \usepackage{natbib} >> \bibliography{z:/path/to/test-bib-file}

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/references-bibtex} > >> > >> with > >> > >> > >>

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

2021-08-10 Thread Arash Esbati
Hongyi Zhao writes: > On Mon, Aug 9, 2021 at 6:03 PM Arash Esbati wrote: >> >> Replace >> >> >> \bibliography{\string~/Documents/bibliograph/better-bibtex/references-bibtex} >> >> with >> >> >> \bibliography{/home/werner/Documents/bibliograph/better-bibtex/references-bibtex.bib} >> >> in

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

2021-08-09 Thread Arash Esbati
Hongyi Zhao writes: > On Mon, Aug 9, 2021 at 2:07 AM Arash Esbati wrote: >> >> Once you have the regexp, just mark the entries you want with 'm' in >> that order and hit 'a'. Does this fit the bill? > > Thank you very much for telling me these manipulation details buried > deep in a huge

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 works as well). > > g / r Start over with

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

2021-08-08 Thread Arash Esbati
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 works as well). > g / r Start over with new regexp / Refine with additional regexp. > SPCShow full

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

2021-08-02 Thread Hongyi Zhao
I noticed that the \cite command operation using reftex supports the following options: ### n / p Go to next/previous entry (Cursor motion works as well). g / r Start over with new regexp / Refine with additional regexp. SPCShow full database entry in other window. f