-
Notifications
You must be signed in to change notification settings - Fork 535
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
Compiling files with extensions other than .tex
#4457
Comments
Compiling files other than |
It reminds me of what I implemented to support literate programming for the R and Julia languages. The first step is to closely look at the structure of a |
Yeah I’m totally fine with that 👍 |
Thanks! \documentclass{article}
\begin{document}
Here is an excerpt of using LilyPond with \LaTeX :
\begin{lilypond}
% Here goes the LilyPond code
\relative c' { c c g' g | a a g2 | f4 f e e | d d c2 \bar "||" }
\end{lilypond}
\end{document} Save the file to \documentclass{article}
\usepackage{graphics}
\begin{document}
Here is an excerpt of using LilyPond with \LaTeX :
{%
\parindent 0pt
\noindent
\ifx\preLilyPondExample \undefined
\else
\expandafter\preLilyPondExample
\fi
\def\lilypondbook{}%
\input{f2/lily-477c6dad-systems.tex}%
\ifx\postLilyPondExample \undefined
\else
\expandafter\postLilyPondExample
\fi
}
\end{document} and a bunch of other files, which include an
See more information here.
|
I have just made a PR to add a new configuration variable to enable users to declare any extension as a LaTeX extension. To deal with the current issue, other steps have to be taken
@zhengxinhao-comp what kind of syntax highlighting do you expect for the |
@zhengxinhao-comp Just a gentle reminder. What kind of syntax highlighting would you expect for |
Environment
The Issue
LaTeX Workshop refuses to compile source file with file extension other than
.tex
.Reproduction Steps
I use a music typesetter called LilyPond. The way it corporates with LaTeX is that I input the LaTeX source code with LilyPond code in the environment
\begin{lilypond}
\end{lilypond}
, and save the file with the extension.lytex
, and use the commandlilypond-book
to compile it.lilypond-book
would compile the.lytex
file to a.tex
file, then the user can use a regular LaTeX command to compile the intermediate file to PDF.I've set the following tool
and recipe
to automate the task but I can't get the compilation running when I click the recipe in LaTeX panel.
Expected Behavior
LaTeX Workshop should be able to compile source file with extensions other than ".tex". I don't know if it's possible, or it would be better to have an option in the settings defining file extensions LaTeX Workshop recognizes and is able to compile.
The text was updated successfully, but these errors were encountered: