bibtex not running automatically

47 views
Skip to first unread message

Daniel Krenn

unread,
Dec 20, 2016, 12:28:50 PM12/20/16
to sage-...@googlegroups.com
In our course we create a LaTeX document, but it seems that bibtex is
not running. To be precise, when I work on a .tex (and have created a
.bib already), then an output of the tex is generated, but it does not
run bibtex to get the citations.
How to enable automatically running this? How to enforce this (except
using command line) manually?

Daniel

William Stein

unread,
Dec 20, 2016, 12:47:22 PM12/20/16
to sage-cloud
Quick answer before somebody looks into this further:

- If you click on Build, there is a "Bibtex" button -- click it to
run bibtex.

- You can always modify the build command line to run anything you
want, e.g., change

pdflatex -synctex=1 -interact=nonstopmode 'file.tex'

to

pdflatex -sy[omitted...] ...file.tex' ; bibtex file # or whatever

All that said, bibtex should run if it is needed, as determined by
output messages in the log -- maybe that is now broken by some change
in tex, or something special in your file.

>
> Daniel
>
> --
> You received this message because you are subscribed to the Google Groups "sage-cloud" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cloud/d16fe015-6ff6-de3e-3dcf-fd19106538d8%40aon.at.
> For more options, visit https://groups.google.com/d/optout.



--

Best Regards,
William Stein

CEO, SageMath, Inc.

Harald Schilly

unread,
Dec 20, 2016, 12:47:24 PM12/20/16
to sage-cloud
Can you send us a link to your .tex file to he...@sagemath.com please?
Then we can have a look.

Besides that, on the right on top of the preview, is a build button.
When you click there, you can run bibtex directly or customize the
build command. I usually set this to be based on latexmk, e.g.

latexmk -xelatex -pdf -synctex=1 -interaction=nonstopmode '[INSERT
FILENAME.tex]>'

(press return after typing in the command, it will be recorded at the
very bottom of the .tex file)

-- harald

Daniel Krenn

unread,
Dec 20, 2016, 1:00:48 PM12/20/16
to sage-...@googlegroups.com
On 2016-12-20 18:47, William Stein wrote:
> Quick answer before somebody looks into this further:
>
> - If you click on Build, there is a "Bibtex" button -- click it to
> run bibtex.

Didn't see this before, thank you for the hint.

> - You can always modify the build command line to run anything you
> want, e.g., change
>
> pdflatex -synctex=1 -interact=nonstopmode 'file.tex'

This is exactly the default, thus bibtex is not running automatically.

> All that said, bibtex should run if it is needed, as determined by
> output messages in the log -- maybe that is now broken by some change
> in tex, or something special in your file.

The tex-file is quite a simple MWE...

Link to tex-file sent to help@...

Daniel

Daniel Krenn

unread,
Dec 20, 2016, 1:00:56 PM12/20/16
to sage-...@googlegroups.com
On 2016-12-20 18:46, Harald Schilly wrote:
> Can you send us a link to your .tex file to he...@sagemath.com please?
> Then we can have a look.

Done.

> Besides that, on the right on top of the preview, is a build button.
> When you click there, you can run bibtex directly or customize the
> build command.

I didn't see this before. Thank you.

> I usually set this to be based on latexmk, e.g.
>
> latexmk -xelatex -pdf -synctex=1 -interaction=nonstopmode '[INSERT
> FILENAME.tex]>'

Ok, it is clear now how to customize this.

> (press return after typing in the command, it will be recorded at the
> very bottom of the .tex file)

Thanks.

Daniel

William Stein

unread,
Dec 20, 2016, 1:13:50 PM12/20/16
to sage-cloud
On Tue, Dec 20, 2016 at 10:00 AM, Daniel Krenn <kr...@aon.at> wrote:
> On 2016-12-20 18:47, William Stein wrote:
>> Quick answer before somebody looks into this further:
>>
>> - If you click on Build, there is a "Bibtex" button -- click it to
>> run bibtex.
>
> Didn't see this before, thank you for the hint.
>
>> - You can always modify the build command line to run anything you
>> want, e.g., change
>>
>> pdflatex -synctex=1 -interact=nonstopmode 'file.tex'
>
> This is exactly the default, thus bibtex is not running automatically.

It should still run, since in addition to that build line, there is
some other stuff that gets run based on the output of pdflatex (e.g.,
running sage, bibtex, etc.). There may be a bug.

>> latexmk -xelatex -pdf -synctex=1 -interaction=nonstopmode '[INSERT
>> FILENAME.tex]>'

> Ok, it is clear now how to customize this.

And just to say how awesome SMC is, you can put code to do *absolutely
anything* you want here as part of the build cycle....

Harald Schilly

unread,
Dec 20, 2016, 1:15:28 PM12/20/16
to sage-cloud
I tried clicking "bibtex", but it still wasn't working. I'm betting,
that the heuristic is broken and the one from latexmk is much better
^^

-- h

Daniel Krenn

unread,
Dec 20, 2016, 1:30:20 PM12/20/16
to sage-...@googlegroups.com
On 2016-12-20 19:13, William Stein wrote:
> And just to say how awesome SMC is, you can put code to do *absolutely
> anything* you want here as part of the build cycle....

:))
Reply all
Reply to author
Forward
0 new messages