Skip to content
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

Improve subfiles support #1462

Merged
merged 29 commits into from Oct 17, 2020
Merged

Improve subfiles support #1462

merged 29 commits into from Oct 17, 2020

Conversation

slideclimb
Copy link
Collaborator

@slideclimb slideclimb commented Jun 8, 2020

  • Autocompletion of command in reguired file path argument

Summary of additions and changes

  • Expand commands in filenames (once)
    • in autocompletion of file name
    • in file not found inspection
    • resolving input file references

How to test this pull request

main.tex

\providecommand{\main}{.}
\documentclass[11pt]{article}

\usepackage{subfiles}

\begin{document}
    \subfile{nest/sub.tex}
    \subfile{\main/nest/sub.tex}
\end{document} 

nest/sub.tex

\providecommand{\main}{..}
\documentclass[\main/main.tex]{subfiles}

\begin{document}
    \includegraphics{\main/nest/sub2.tex}
\end{document}

nest/sub2.tex can be empty.

See also the test resources completion/path/commandexpansion, completion/path/relativetoroot and inspections/latex/filenotfound/commandexpansion

Wiki

  • Updated the wiki:

@PHPirates PHPirates added this to the b0.7.1 milestone Aug 26, 2020
@PHPirates PHPirates marked this pull request as ready for review October 17, 2020 08:36
# Conflicts:
#	build.gradle
#	src/nl/hannahsten/texifyidea/inspections/latex/LatexFileNotFoundInspection.kt
#	src/nl/hannahsten/texifyidea/reference/InputFileReference.kt
#	src/nl/hannahsten/texifyidea/util/files/RootFile.kt
#	test/nl/hannahsten/texifyidea/inspections/latex/LatexFileNotFoundInspectionTest.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants