Hello!
Two Problems on the Latex bundle.
I have a project structure like this:
-Projectfolder projectmain.tex (master file) -- subfolder1 -- file_1_1.tex -- file_1_2.tex -- subfolder 2 -- file_2_1.tex When I now drag file file_1_2.tex into file_2_1.tex, I get
\include{../subfolder1/file_1_2.tex}
The problem is, that I´get an error, because the file can not be found. The file path has to be
\include{subfolder1/file_1_2.tex}
because it depends on the master file. But when I then invoke the command "Show outline", the file file_1_2.tex is not found, because it expects the path as the first statement.
Another problem is, that latex does not typeset the files, that where included. Why does the drag command produce a include command?
Helge
On Mar 22, 2007, at 3:17 PM, Helge Hartmann wrote:
Hello!
Two Problems on the Latex bundle.
[snipped example]
When I now drag file file_1_2.tex into file_2_1.tex, I get
\include{../subfolder1/file_1_2.tex}
The problem is, that I´get an error, because the file can not be found. The file path has to be
\include{subfolder1/file_1_2.tex}
because it depends on the master file. But when I then invoke the command "Show outline", the file file_1_2.tex is not found, because it expects the path as the first statement.
Hm, that's an interesting case, I'll have to think about that, though keep in mind that \include's can't be nested: http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/ latex2e-html/ltx-245.html (look towards the end)
Another problem is, that latex does not typeset the files, that where included.
That's LaTeX's fault ;)
Why does the drag command produce a include command?
I just thought it would be nice touch ;) What would you want it to do? Paste the entire file contents?
Helge
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Mar 22, 2007, at 9:21 PM, Helge Hartmann wrote:
What would you want it to do? Paste the entire file contents?
I usually use
\input{file}
as has been said before, \include{} can't be nested. in contrast to \input{} \include{} starts a new page and files referenced by this command can be selected using \includeonly{} which is extremely useful when working on large volumes ...
i'd prefer if the drag operation pasted the entire file contents.
christoph
On Mar 22, 2007, at 4:46 PM, Christoph Eyrich wrote:
On Mar 22, 2007, at 9:21 PM, Helge Hartmann wrote:
What would you want it to do? Paste the entire file contents?
I usually use
\input{file}
I could probably easily change the command so that it does \input when you option-drag the file.
as has been said before, \include{} can't be nested. in contrast to \input{} \include{} starts a new page and files referenced by this command can be selected using \includeonly{} which is extremely useful when working on large volumes ...
i'd prefer if the drag operation pasted the entire file contents.
Then you can simply delete the corresponding drag command from the bundle, in the bundle editor.
christoph
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On 2007-03-22 20:35:19 +0100, Charilaos Skiadas skiadas@hanover.edu said:
On Mar 22, 2007, at 3:17 PM, Helge Hartmann wrote:
Hello!
Two Problems on the Latex bundle.
[snipped example]
When I now drag file file_1_2.tex into file_2_1.tex, I get
\include{../subfolder1/file_1_2.tex}
The problem is, that I´get an error, because the file can not be found. The file path has to be
\include{subfolder1/file_1_2.tex}
because it depends on the master file. But when I then invoke the command "Show outline", the file file_1_2.tex is not found, because it expects the path as the first statement.
Hm, that's an interesting case, I'll have to think about that, though keep in mind that \include's can't be nested: http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/ latex2e-html/ltx-245.html (look towards the end)
Ok, in my document I use input instead of include. And the inputs are nested. Maybe this is the problem.
Helge
On Mar 22, 2007, at 5:07 PM, Helge Hartmann wrote:
Ok, in my document I use input instead of include. And the inputs are nested. Maybe this is the problem.
You should be able to nest \inputs just fine. So you have a file that uses nested \inputs and does not compile? Could you send it to me?
Helge
Haris Skiadas Department of Mathematics and Computer Science Hanover College
To sort of close this thread to an extend:
It seems that LaTeX requires the file paths appearing in the \input or \include commands to be relative to the master file (anyone knows if there is a command in LaTeX to change this behavior?), regardless of which file they are included in (this really only applies to nested inputed files).
The drag command in the bundle now attempts to locate this master file and create such a relative path.
Further, if you keep the option button pressed when dragging, \input is inserted instead of \include.
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On 2007-03-25 04:06:35 +0200, Charilaos Skiadas skiadas@hanover.edu said:
(this really only applies to nested inputed files).
I had this problem with included graphics files too. Perhaps you could change the drag command for graphics as well.
Helge