# AUCTeX/RefTeX with import package in emacs, known problem from 2013 but is there a fix now?

TeX - LaTeX Asked by Umut Tabak on October 30, 2020

I realized this issue with import in AUCTeX/RefTeX mode today which was also mentioned in the below thread from some years ago:

AUCTeX/RefTeX, the import package and cross reference

RefTeX apparently can not resolve the nice equation/section labels as a list to select from after a C-c-) if I would like to refer to these labels, which is extremely handy.

Since it has been some time now, I was wondering if this issue was solved with RefTeX or not.

I suspect the editor recognition of file names used for subimport is hopeless, because the leading portion of the path is implicit. Some different input syntax for import and includefrom might allow the editor to recognize files.

makeatletter
newcommandkeeppath[2]{% #1=input or include. #2=file path and name
begingroup
ifxinput#1relax def7{noexpandimport}else
ifxinclude#1relax def7{noexpandincludefrom}else
def7{noexpand#1}fifi % probably should be error
[email protected]{#2}% get [email protected], [email protected], [email protected]
edef8{7{[email protected]}{[email protected] %
[email protected] [email protected]}}%
expandafterendgroup8}


Then use keeppathinput{foo/bar} instead of import{foo/}{bar} and use keeppathinclude{foo/bar} instead of includefrom{foo/}{bar}.

Maybe I should add this alternate syntax to import.sty. Test it well, and if it is good, I will add it.

Answered by Donald Arseneau on October 30, 2020

I'm afraid the situation hasn't changed since then.

Answered by Arash Esbati on October 30, 2020

## Related Questions

### New line in column environment

1  Asked on May 5, 2021

### Hyperref from a glossary leads to wrong page after using /setcounter

1  Asked on May 5, 2021 by sam_n

### the correct order Acronyms

1  Asked on May 5, 2021 by hussein

### Use of @xfootnote doesn’t match its definition

0  Asked on May 5, 2021

### How do I update Circuitikz (or another package) on Mac using texlive?

1  Asked on May 5, 2021 by jonathan-wheeler

### small problem in cite for bibliography

1  Asked on May 5, 2021

### Numbering on the paper does not follow from the abstract page

1  Asked on May 5, 2021

### Compilation error in LuaTeX, but in runs in Lua

1  Asked on May 5, 2021 by hennich

### How to put the first word of the following page in a footer? Latex/LuaLatex

1  Asked on May 5, 2021 by rowsail

### How to cite more than one equation in align environment

1  Asked on May 5, 2021

### Margin setting for chapter title and chapter number

1  Asked on May 5, 2021 by user3089201

### Inside of a newtcbinputlisting how can I change the color of the line number as well as specify line numbers from an existing script?

1  Asked on May 5, 2021

### nodal analysis example

2  Asked on May 5, 2021 by gisaa

### Background with logo and text infant of the logo

1  Asked on May 5, 2021

### Glossaries: Can I have counters on a per glossary basis?

2  Asked on May 5, 2021 by melchisedech

### Bibtex. How can I input the term “to appear in” between the journal title and publisher name

0  Asked on May 5, 2021

### Alignment in latex

2  Asked on May 5, 2021 by rmp

### Cut Copy and Delete not working in Edit Menu (grey color) or by using CTRL+X

0  Asked on May 5, 2021 by fred-cooper

### How to combine the top unite (signature) and the table itself into one block so that they don’t appear on different pages after compilation?

0  Asked on May 5, 2021 by mrjustsergei

### Is there a fix for this LaTeX rendering artefact?

1  Asked on May 4, 2021 by georgina-davenport