Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Support for bibtex #7

Open
borablanca opened this issue Dec 28, 2016 · 6 comments
Open

Support for bibtex #7

borablanca opened this issue Dec 28, 2016 · 6 comments

Comments

@borablanca
Copy link

Can bibtex support be integrated or I dont know if it can be done with "latex-preview.command"?

@ajshort
Copy link
Owner

ajshort commented Dec 28, 2016 via email

@borablanca
Copy link
Author

I tried but latexmk is not working. I think its related with bibtex it gives an error for the temp directory on windows as "Forbidden to open for writing". Any clue for how to fix this?

@ajshort
Copy link
Owner

ajshort commented Jan 8, 2017

Do you have Perl installed? You need to separately install Perl to use latexmk on Windows.

@tdaff
Copy link

tdaff commented Mar 7, 2017

texify in MiKTeX does a bibtex on Windows without needing perl. Any chance that could be added as a build option? I think it needs some different --arguments but I think most of them are similar, just requiring double-- instead.

@JakubPetriska
Copy link

JakubPetriska commented Mar 29, 2018

Hi, I would like to +1 this. Setting the latex-preview.command to latexmk unfortunatelly does not work for me. Runnig the latexmk -pdf with my tex file from command line in the project folder works, however running the same command as latex-preview runs fails. I'm on Linux.

The error from preview rendering is following (the same error is occuring while running the latex-preview latexmk command from command line):

latexmk -jobname=preview -synctex=1 -interaction=nonstopmode -file-line-error -pdf -output-directory="/tmp/tmp-28485pmSHQJE7T6U4" "/home/jakub/Projects/dp/jakub_petriska-diploma_thesis.tex"
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(/home/jakub/Projects/dp/jakub_petriska-diploma_thesis.tex
LaTeX2e <2017-04-15>
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
(./ctuthesis.cls
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/l3pdfmode.def))
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
 (/usr/local/texlive/2017/texmf-dist/tex/latex/environ/environ.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/trimspaces/trimspaces.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/utf8.def
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/omsenc.dfu)))
Document Class: ctuthesis 2016/06/15 v0.1 t1606152353 Class for typesetting CTU
 theses and alike
(./ctuth-core.tex) (/usr/local/texlive/2017/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/bk11.clo))
(./ctuth-names.tex)) (./ctuth-pkg.tex
(/usr/local/texlive/2017/texmf-dist/tex/latex/lm/lmodern.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/microtype.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/microtype-pdftex.def)
(/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/microtype.cfg))
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(/usr/local/texlive/2017/texmf-dist/tex/latex/pdfpages/pdfpages.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/eso-pic/eso-pic.sty
(/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/atbegshi.sty
(/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/ifpdf.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg)))
(/usr/local/texlive/2017/texmf-dist/tex/latex/pdfpages/pppdftex.def))
(/usr/local/texlive/2017/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2017/texmf-dist/tex/generic/babel/switch.def)
(/usr/local/texlive/2017/texmf-dist/tex/generic/babel-english/english.ldf
(/usr/local/texlive/2017/texmf-dist/tex/generic/babel/babel.def
(/usr/local/texlive/2017/texmf-dist/tex/generic/babel/txtbabel.def)))
(/usr/local/texlive/2017/texmf-dist/tex/generic/babel-english/english.ldf)
(/usr/local/texlive/2017/texmf-dist/tex/generic/babel-czech/czech.ldf)
(/usr/local/texlive/2017/texmf-dist/tex/generic/babel-english/english.ldf))
(/usr/local/texlive/2017/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/titlesec/titlesec.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/lm/t1lmss.fd)
(/usr/local/texlive/2017/texmf-dist/tex/latex/float/float.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/caption/caption.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/caption/caption3.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/booktabs/booktabs.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/amscls/amsthm.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/makeidx.sty)
Writing index file preview.idx
(/usr/local/texlive/2017/texmf-dist/tex/latex/tools/multicol.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2017/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2017/texmf-dist/tex/latex/url/url.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))

Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\ctuthesis_field_use:nn' on input line 958.



Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\ctuthesis_field_use:n' on input line 958.

) (./ctuth-templates.tex)
(/usr/local/texlive/2017/texmf-dist/tex/latex/lineno/lineno.sty)
(/tmp/tmp-28485pmSHQJE7T6U4/preview.aux)
(/usr/local/texlive/2017/texmf-dist/tex/latex/lm/t1lmr.fd)
(/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-cmr.cfg)
(/usr/local/texlive/2017/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/grfext.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(/usr/local/texlive/2017/texmf-dist/tex/latex/oberdiek/pdflscape.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/lscape.sty))
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/local/texlive/2017/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2017/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(/usr/local/texlive/2017/texmf-dist/tex/latex/lm/ot1lmr.fd)
(/usr/local/texlive/2017/texmf-dist/tex/latex/lm/omllmm.fd)
(/usr/local/texlive/2017/texmf-dist/tex/latex/lm/omslmsy.fd)
(/usr/local/texlive/2017/texmf-dist/tex/latex/lm/omxlmex.fd)
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-msa.cfg)
(/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-msb.cfg)
Overfull \hbox (5.0pt too wide) in paragraph at lines 129--129
[]|| [][][] 
[1{/usr/local/texlive/2017/texmf-var/fonts/map/pdftex/updmap/pdftex.map} <./ctu
_logo_blue.pdf>] (/usr/local/texlive/2017/texmf-dist/tex/latex/lm/t1lmtt.fd)
[2] [3]

LaTeX Warning: Citation `cite:10' on page iv undefined on input line 129.

(/usr/local/texlive/2017/texmf-dist/tex/latex/amsfonts/ueuf.fd)
(/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-euf.cfg)

LaTeX Warning: Citation `cite:20' on page iv undefined on input line 129.


LaTeX Warning: Citation `cite:30' on page iv undefined on input line 129.

[4] [5] [6]
Chapter 1.
No file preview.ind.
No file preview.bbl.
[1] [2] [3 <./jakub_petriska-diploma_thesis-zadani.pdf>] [4 <./jakub_petriska-d
iploma_thesis-zadani.pdf>] (/tmp/tmp-28485pmSHQJE7T6U4/preview.aux)

Package rerunfilecheck Warning: File `preview.out' has changed.
(rerunfilecheck)                Rerun to get outlines right
(rerunfilecheck)                or use package `bookmark'.


LaTeX Warning: There were undefined references.

 )
(see the transcript file for additional information){/usr/local/texlive/2017/te
xmf-dist/fonts/enc/dvips/lm/lm-mathsy.enc}{/usr/local/texlive/2017/texmf-dist/f
onts/enc/dvips/lm/lm-mathit.enc}{/usr/local/texlive/2017/texmf-dist/fonts/enc/d
vips/lm/lm-rm.enc}{/usr/local/texlive/2017/texmf-dist/fonts/enc/dvips/lm/lm-ec.
enc}</usr/local/texlive/2017/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.p
fb></usr/local/texlive/2017/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb
></usr/local/texlive/2017/texmf-dist/fonts/type1/public/amsfonts/cm/cmss10.pfb>
</usr/local/texlive/2017/texmf-dist/fonts/type1/public/amsfonts/cm/cmss12.pfb><
/usr/local/texlive/2017/texmf-dist/fonts/type1/public/amsfonts/euler/eufm10.pfb
></usr/local/texlive/2017/texmf-dist/fonts/type1/public/lm/lmbx10.pfb></usr/loc
al/texlive/2017/texmf-dist/fonts/type1/public/lm/lmmi10.pfb></usr/local/texlive
/2017/texmf-dist/fonts/type1/public/lm/lmmi8.pfb></usr/local/texlive/2017/texmf
-dist/fonts/type1/public/lm/lmr10.pfb></usr/local/texlive/2017/texmf-dist/fonts
/type1/public/lm/lmssbx10.pfb></usr/local/texlive/2017/texmf-dist/fonts/type1/p
ublic/lm/lmsy10.pfb></usr/local/texlive/2017/texmf-dist/fonts/type1/public/lm/l
msy8.pfb>
Output written on /tmp/tmp-28485pmSHQJE7T6U4/preview.pdf (10 pages, 166894 byte
s).
SyncTeX written on /tmp/tmp-28485pmSHQJE7T6U4/preview.synctex.gz.
Transcript written on /tmp/tmp-28485pmSHQJE7T6U4/preview.log.
=== TeX engine is 'pdfTeX'
Latexmk: applying rule 'makeindex /tmp/tmp-28485pmSHQJE7T6U4/preview.idx'...
Latexmk: Errors, so I did not complete making targets
Latexmk: This is Latexmk, John Collins, 17 Jan. 2018, version: 4.55.
Latexmk: making output directory '/tmp/tmp-28485pmSHQJE7T6U4'
Rule 'pdflatex': Rules & subrules not known to be previously run:
   pdflatex
Rule 'pdflatex': The following rules & subrules became out-of-date:
      'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -synctex=1 -interaction=nonstopmode -file-line-error -recorder -output-directory="/tmp/tmp-28485pmSHQJE7T6U4" --jobname="preview"  "/home/jakub/Projects/dp/jakub_petriska-diploma_thesis.tex"'
------------
Latexmk: Index file '/tmp/tmp-28485pmSHQJE7T6U4/preview.idx' was written
===========Latexmk: Missing input file: 'preview.ind' from line
  'No file preview.ind.'
Latexmk: Missing input file: 'preview.ind' from line
  'No file preview.ind.'
Latexmk: Non-existent bbl file '/tmp/tmp-28485pmSHQJE7T6U4/preview.bbl'
 No file preview.bbl.
Latexmk: References changed.
Latexmk: Log file says output to '/tmp/tmp-28485pmSHQJE7T6U4/preview.pdf'
Latexmk: Log file says output to '/tmp/tmp-28485pmSHQJE7T6U4/preview.pdf'
Latexmk: List of undefined refs and citations:
  Citation `cite:10' on page iv undefined on input line 129
  Citation `cite:20' on page iv undefined on input line 129
  Citation `cite:30' on page iv undefined on input line 129
Latexmk: Found bibliography file(s) [jakub_petriska-diploma_thesis.bib]
Latexmk: Summary of warnings:
  Latex failed to resolve 3 citation(s)
Rule 'makeindex /tmp/tmp-28485pmSHQJE7T6U4/preview.idx': File changes, etc:
   Changed files, or newly in use since previous run(s):
      '/tmp/tmp-28485pmSHQJE7T6U4/preview.idx'
   Non-existent destination files:
      '/tmp/tmp-28485pmSHQJE7T6U4/preview.ind'
------------
Run number 1 of rule 'makeindex /tmp/tmp-28485pmSHQJE7T6U4/preview.idx'
------------
------------
Running 'makeindex  -o "/tmp/tmp-28485pmSHQJE7T6U4/preview.ind" "/tmp/tmp-28485pmSHQJE7T6U4/preview.idx"'
------------

makeindex: Not writing to /tmp/tmp-28485pmSHQJE7T6U4/preview.ind (openout_any = p).
Can't create output index file /tmp/tmp-28485pmSHQJE7T6U4/preview.ind.
Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]
Collected error summary (may duplicate other messages):
  makeindex /tmp/tmp-28485pmSHQJE7T6U4/preview.idx: Command for 'makeindex /tmp/tmp-28485pmSHQJE7T6U4/preview.idx' gave return code 1
      Refer to '/tmp/tmp-28485pmSHQJE7T6U4/preview.ilg' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs of latex/pdflatex.

Using the -f options does not help.

@JakubPetriska
Copy link

JakubPetriska commented Mar 29, 2018

I found that creating empty preview.ind file in the output directory solves the problem when running the same latexmk command that this extension runs in the terminal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants