Ask Your Question

Build command for LaTeX project

asked 2015-02-06 10:43:29 -0500

Guuk gravatar image

updated 2015-02-08 08:28:02 -0500

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 flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-02-08 11:10:54 -0500

updated 2015-02-08 11:11:37 -0500

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

edit flag offensive delete link 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.

Guuk gravatar imageGuuk ( 2015-02-09 02:31:22 -0500 )edit

answered 2015-02-06 11:31:52 -0500

updated 2015-02-06 11:32:06 -0500

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

edit flag offensive delete link 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.

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-02-06 10:43:29 -0500

Seen: 279 times

Last updated: Feb 08 '15