-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with inputs and includes #81
Comments
Hello, in addition it seems TeXtidote can't find items in subfolders. For exemple if the Path given is .\Part1\Part1.tex it returns "not found". |
The last comment is related to #64 |
I still have an issue:
with
|
Notice that I also have the issue with I use |
Ah, I think I see. Is the |
It is relative to the root file, it does not work otherwise. |
OK, so this is why it doesn't work. I'll fix this shortly. |
I've just pushed a fix. Could someone please check that it has the intended behavior (I checked on my side and it seems to be OK). Then I'll re-re-close the issue. |
How can I try it ? I am on macOS so I need the |
Here is a Dropbox link to a compiled JAR: https://www.dropbox.com/s/amgcn61dwvzpnk2/textidote.jar?dl=0 |
It works fine on my phd thesis 👍 |
Actually there is something. The last update fixed the case where someone call textidote on the main file. The issue is that the file may be too big to read so that he wants to call textidote on a subfile using the option Taking my example, one cannot call textidote directly on
|
One thing that could help is that in multi-file project, usually we use magic comment such as So that you could use it to fix the path given in |
Magic comments such as |
I just wanted to note that the 0.8 release fixed issues I experienced with includes before. Thank you @sylvainhalle! |
I've actually noticed some weird behavior as far as includes go. My folder structure is a main.tex file with multiple Am I missing something, or is the Edit: this is run with v0.8.1 |
@hassec: this is a bug; the |
@PierreMarchand20: I'd prefer a command line switch you could pass to TeXtidote. I am a bit afraid if I need to start supporting the features of another software. And as I can see, there are lots of other magic commands, so once you start supporting one, somebody else will ask for another... |
My point was that actually it is not specific to a software. It is a convention widely used in my opinion, it worked like that in all the “softwares”/plugins of editor I used so far (texstudio, texshop, Plugins for atom and now VSCode). Actually in the second answer of https://tex.stackexchange.com/questions/78101/when-and-why-should-i-use-tex-ts-program-and-tex-encoding you can see that all the presented softwares support magic comment for root. Besides, magic comments give information to the compiler, so that the other magic comments should not be relevant for TeXidote. (See first answer of https://tex.stackexchange.com/questions/78101/when-and-why-should-i-use-tex-ts-program-and-tex-encoding for most of the magic comments) That being said, a command line like |
I'm wondering, does it also work when using subfiles? Seems like it picks up all of my include/input, but not my files included from the subfile package, which allows to specify a sub document with it's begin/end clauses and everything, kind of like this \chapter{Introduction}
\label{chap:introduction}
\begin{filecontents}{bibfiles/intro.bib}
@online{wiki_neuron,
author = "BruceBlaus",
title = "Neuron",
year = "2019",
% urlseen = "03-02-13",
url = "https://commons.wikimedia.org/wiki/File:Blausen_0657_MultipolarNeuron.png",
keywords = {wiki},
note = "https://creativecommons.org/licenses/by-sa/3.0/legalcode",
}
\end{filecontents}
\begin{refsection}
\subfile{chapters/intro/intro.tex}
\pageclear
\printbibliography
\end{refsection}
\begin{refsection}[bibfiles/intro.bib]
\nocite{*}
\printbibliography[title={Additional attributions},heading=subbibliography]
\pageclear
\end{refsection} Here my file intro.tex is pretty much a standalone document, so it may just be a case of allowing these files in addition to the input/include command. Perfect when you are lazy and just adding in entirely the content of an old document you did previously. |
Currently it only works for |
It depends if you also look explicitly for \begin and \end document. A subfile will always be of class subfiles and refers to the file calling it, just like this \documentclass[../intro.tex]{subfiles}
\begin{document}
stuff here
\end{document} The main use is to have very large documents which are self contained, like chapters in a thesis that are built using your old manuscripts. In my previous snippet, the subfile part refers to this file here, that is \subfile{chapters/intro/intro.tex} is part of my main document using include and intro.tex (in a barebone version) is what I posted here. If it's not super clear, the package documention is about 5 pages long https://ctan.org/pkg/subfiles |
OK, will mark it as enhancement, but I'll have to look at the doc in detail to make sure it is not a case of #56. |
May I suggest we move this discussion to #131 |
I noticed that textidote does not find subfiles with
\input
if the name of the file does not contain.tex
. But it should since LaTex works either way.Even worse, using
\include
with.tex
at the end of the filename does not work in LaTeX but it seems necessary for textidote to find the subfilesThe text was updated successfully, but these errors were encountered: