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.

2 Answers

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.

newcommandkeeppath[2]{% #1=input or include. #2=file path and name
  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] %
      ifxr[email protected] [email protected]}}%

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

Add your own answers!

Related Questions

Maketitle error

1  Asked on February 24, 2021


Smart, dynamic, automatic placement of figures in Beamer

1  Asked on February 24, 2021 by neverland-runner


Include pdf compiling with pdfLaTex+MakeIndex+BibTex

0  Asked on February 24, 2021 by user210089


Bring biblatex reference URL on standalone line

1  Asked on February 24, 2021 by mathieu-bigneault


How to integrate show on click into theorem environment?

0  Asked on February 24, 2021 by helios321


Write symbols as text

0  Asked on February 24, 2021 by leo-aebli


How to make custom section title placement and size

1  Asked on February 24, 2021 by maltebsa


How to draw such a figure?

1  Asked on February 24, 2021 by youra_p


Hatch a rectangle in TikZ

2  Asked on February 24, 2021 by sandu


Modify numbering style of PDF bookmarks

1  Asked on February 24, 2021 by frunobulax


bibliography file style not picked up by texstudio

0  Asked on February 24, 2021 by ihsan-ahmed-k


A very complicated table in latex

0  Asked on February 24, 2021


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP