AnswerBun.com

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.

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

Add your own answers!

Related Questions

the correct order Acronyms

1  Asked on May 5, 2021 by hussein

     

Compilation error in LuaTeX, but in runs in Lua

1  Asked on May 5, 2021 by hennich

 

Margin setting for chapter title and chapter number

1  Asked on May 5, 2021 by user3089201

   

nodal analysis example

2  Asked on May 5, 2021 by gisaa

   

Alignment in latex

2  Asked on May 5, 2021 by rmp

 

Is there a fix for this LaTeX rendering artefact?

1  Asked on May 4, 2021 by georgina-davenport

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP