run kpsewhich Īnd you should get a location like /home/user/texmf/tex/latex/./. You can confirm that by searching for the style file, e.g. In any case, all files like *.sty and *.cls in that directory will be picked up when you load that package. to open this path in CoCalc’s file explorer and use it to upload the style files there. from CRAN and extract it via tar xf or unzip. Change your current directory to this one via cd /home/user/texmf/tex/latex/webquiz.if the package is called webquiz, run mkdir -p /home/user/texmf/tex/latex/webquiz. Create the target directory based on the name of the package.Check by running kpsewhich -var-value TEXMFHOME where you can install packages locally.
You can install LaTeX packages in your project: Let’s suppose your LaTeX project is composed of one master.tex file and several chapter-1.tex, chapter-2.tex, etc.ĬoCalc’s LaTeX editor only knows about the currently opened file,Īnd using \import for each subfile in master.tex’s document environment (i.e. The same example is also available at cloud-examples/latex/multiple-files. Then select Multiple source files in CoCalc in the LaTeX templates section. There is an extended example demonstrating how this works in the CoCalc Library.Ĭlick “Files” and open the Library. What’s the problem?īefore direct support for multi-file documents was available, the best way was to use the subfiles package as described here.
Turn off automatic build and PDF preview.Enable shell-escape to plot using Gnuplot.
How to work with Knitr, SageTeX or PythonTeX?.Built-in Support for Multi-File Documents (preferred).How to deal with large documents across multiple source files?.What to do if the preview does not update.How to insert a backslash or dollar sign?.