Skip to content

Commit

Permalink
Add file type assignment to troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Feb 9, 2025
1 parent c0db409 commit 8434e1a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Writerside/topics/Installation-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In this section we will show you how to install everything that is necessary to
![Install](install.png)
* Install the [PDF Viewer](https://plugins.jetbrains.com/plugin/14494-pdf-viewer) plugin as well, it provides a built-in pdf viewer but does not have full functionality yet. Alternatively, you can install the [SumatraPDF](https://www.sumatrapdfreader.org/download-free-pdf-viewer.html) pdf viewer.
* If you had to install LaTeX, log out and log back in. Otherwise restarting IntelliJ is sufficient.
* Click on Create New Project (in the welcome menu) or <ui-path>File | New | Project</ui-path>,
* If you don't have an open project, click on Create New Project (in the welcome menu) or <ui-path>File | New | Project</ui-path>,
select LaTeX in the left column and click next. Specify a name for your
project, and a location. A project can contain multiple LaTeX files and documents, so
for example if you make a new document for each new homework you get,
Expand Down Expand Up @@ -134,7 +134,7 @@ If you have an existing document, you can also use [texliveonfly](https://tex.st
![Install](install.png)
* Also install the PDF Viewer plugin to view the pdf within IntelliJ.
* If you had to install LaTeX, log out and log back in.
* Click on Create New Project (in the welcome menu) or <ui-path>File | New | Project</ui-path>,
* If you don't have an open project, click on Create New Project (in the welcome menu) or <ui-path>File | New | Project</ui-path>,
select LaTeX in the left column and click next. Specify a name for your
project, and a location. A project can contain multiple LaTeX files and documents, so
for example if you make a new document for each new homework you get,
Expand Down Expand Up @@ -184,7 +184,7 @@ If you have an existing document, you can also use [texliveonfly](https://tex.st
![Install](install.png)
* Install the PDF Viewer plugin as well to view the pdf inside IntelliJ.
* If you had to install LaTeX, log out and log back in. Otherwise restarting IntelliJ is sufficient.
* Click on Create New Project (in the welcome menu) or <ui-path>File | New | Project</ui-path>,
* If you don't have an open project, click on Create New Project (in the welcome menu) or <ui-path>File | New | Project</ui-path>,
select LaTeX in the left column and click next. Specify a name for your
project, and a location. A project can contain multiple LaTeX files, so
for example if you make a new document for each new homework you get,
Expand Down
8 changes: 8 additions & 0 deletions Writerside/topics/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ For any performance issue: if you do not have a favourite profiler yet, you can
* Take a Snapshot to view and save results. Note that you may have to click a few more levels open to see the actual methods.
* Now you can zip the nps file and upload it here on GitHub.

## I don't see any syntax highlighting

If you have the TeXiFy plugin installed but still don't see any syntax highlighting, you may accidentally have reassigned the `.tex` file type to plain text.
To undo this, go to <ui-path>Editor | File Types | LaTeX source file</ui-path> and make sure the `*.tex` pattern is there.
Also check that the Text file type does not have this pattern.
If the problem only occurs for one specific file, right-click the file and select 'Revert File Type Override'.
For more information, see [IntelliJ IDEA Help](https://www.jetbrains.com/help/idea/creating-and-registering-file-types.html).

## Main file is not detected correctly

If TeXiFy does not detect which file is your main/root LaTeX file, you may experience problems like package imports being placed in the wrong file, or imports not being resolved correctly.
Expand Down

0 comments on commit 8434e1a

Please sign in to comment.