Build command for LaTeX project

I am currently using SageMath Cloud for writing some Latex's documents. My question is very simple. My project is composed by one master main.tex file that I need to use for building the project but the master file calls many other .tex files that I edited.

How can I specify only one command for building LaTeX project when I edit any other .tex file? Currently, SageMath Cloud try to compile only the opened file but not the main file.

EDIT: I want to do the same with Preview function: when I edit one files of my LaTeX document, I want to preview only the result of the main file...

edit retag close merge delete

Sort by » oldest newest most voted

A properly configured latexmk command should work, if latexmkis installed on SageMath Cloud. See https://bitbucket.org/ddrake/sagetex/... for some configuration instructions, but you might need more to compile all of the various TeX documents involved.

more

I am currently using latexmk. I see that SageMath Cloud store the building command for each file in the .<file.tex>.sage-history(at the end). Thank you for your answer I will try to change my settings.

( 2015-02-09 02:31:22 -0500 )edit

as a last resort, open the terminal, run latex or pdflatex there...

more

Currently I am doing this but I am trying to specify a building command that stays active for the project. Maybe a configuration file for the project can be written but I don't know how and where I can put it.

( 2015-02-06 12:13:47 -0500 )edit