GNU bug report logs - #22504
2014-11-01; RefTeX fails to find \input unless it is at the beginning of the line

Previous Next

Package: auctex;

Reported by: post <at> ralfj.de

Date: Sun, 31 Jan 2016 18:41:01 UTC

Severity: normal

Tags: notabug

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <esbati <at> gmx.de>
To: 22504 <at> debbugs.gnu.org
Subject: bug#22504: 2014-11-01; RefTeX fails to find \input unless it is at the beginning of the line
Date: Mon, 01 Feb 2016 22:50:37 +0100
post <at> ralfj.de writes:

> The main file of my LaTeX document is mostly just a wrapper that
> includes the actual content:
>
>   \clearpage \input{algebra}
>   \clearpage\input{constructions}
>   \clearpage
>   \input{logic}
>   \clearpage
>   \input{model}
>   \clearpage
>   \input{derived}
>
> I would expect RefTeX to properly follow the \input commands, and find
> sections and labels in all the files. However, RefTeX only sees the
> sections and labels from logic, model and derived - the ones from
> algebra and constructions are missing. It seems that following \input
> only works if that command is right at the beginning of the file.

This is a documented feature of RefTeX:

,----
| 6.9 Problems and Work-arounds
| 
|     LaTeX commands
|     \input, \include, and \section (etc.) statements have to be first on
|     a line (except for white space).
| 
| http://www.gnu.org/software/auctex/manual/reftex.html#SEC54
`----

Move \input{algebra} and \input{constructions} into single lines and
you should be done.

Best, Arash





This bug report was last modified 5 years and 101 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.