Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 23: "LaTeX Warning: There were undefined references" #84

Closed
KMax opened this issue Nov 12, 2015 · 9 comments
Closed

Fedora 23: "LaTeX Warning: There were undefined references" #84

KMax opened this issue Nov 12, 2015 · 9 comments

Comments

@KMax
Copy link
Contributor

KMax commented Nov 12, 2015

Клонировал репозиторий до d2398a2 коммита включительно, установил необходимые пакеты (ОС Fedora 23 x64). Но после компиляции остаются неопределенные ссылки.

Шаги (из корня репозитория):

  1. make clean
  2. make dissertation
  3. make dissertation

Вывод обоих make dissertation вызовов: https://gist.github.com/KMax/caac58b80723070b553e

В выводе второго вызова наблюдаю проблему с 52-мя ссылками:

Latexmk: Found biber source file(s) [../biblio/othercites.bib dissertation.bcf]
Latexmk: Summary of warnings:
  Latex failed to resolve 52 citation(s)
Latexmk: All targets (dissertation.pdf) are up-to-date

Может проблема с пакетами, которые я установил для того чтобы шаблон собрался?

@KMax
Copy link
Contributor Author

KMax commented Nov 12, 2015

Попробовал собрать шаблон в Ubuntu 15.04, чтобы удостовериться, что проблема в моём окружении, а не в шаблоне. В итоге получилось, вот Dockerfile:

FROM ubuntu:15.04

RUN echo "deb http://archive.ubuntu.com/ubuntu vivid multiverse" >> /etc/apt/sources.list

RUN apt-get update -y && apt-get upgrade -y

RUN apt-get install -y texlive-xetex texlive-generic-extra latexmk biber

RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
RUN apt-get install -y ttf-mscorefonts-installer
RUN fc-cache -fv

RUN apt-get install -y git make

RUN git clone https://github.com/AndreyAkinshin/Russian-Phd-LaTeX-Dissertation-Template.git

WORKDIR /Russian-Phd-LaTeX-Dissertation-Template

Попробую под Fedora'у теперь собрать заново.

@KMax
Copy link
Contributor Author

KMax commented Nov 12, 2015

Этот варнинг о чем-то говорит? Может он быть причиной или подсказкой?

[18.18] [19.19] [20.20]) (./conclusion.tex (../common/concl.tex)) [21.21]
(./references.tex

Package biblatex Warning: Keyword 'bibliofull' not found on input line 7.

LaTeX Warning: Empty bibliography on input line 7.

@KMax KMax changed the title Не найдены определения ссылок на литературу (LaTeX Warning: There were undefined references) Fedora 23: "LaTeX Warning: There were undefined references" Nov 12, 2015
@Lenchik
Copy link
Collaborator

Lenchik commented Nov 12, 2015

Попробуйте запустить его в bibtex-режиме, хоть что-то исключим как причину.
На Windows компилируется отлично во всех трёх компиляторах.

@KMax
Copy link
Contributor Author

KMax commented Nov 12, 2015

Как я понимаю, для этого нужно в bibliopreamble.tex закомментировать все строки кроме:

\input{../biblio/predefined}

так?

Но из-за этого появилась ошибка:

! LaTeX Error: Environment refsection undefined.

Пока не понял как исправить.

@Lenchik
Copy link
Collaborator

Lenchik commented Nov 12, 2015

Не так.
Правильный способ - через настроечный файл

@KMax
Copy link
Contributor Author

KMax commented Nov 12, 2015

Собралось и ссылки заработали! Спасибо @Lenchik!

Теперь бы понять, почему с biber'ом не работает.

@Lenchik
Copy link
Collaborator

Lenchik commented Nov 12, 2015

Biber или biblatex старые слишком (в результате неверно обрабатываются или не обрабатываются вовсе команды из biblatex.tex). Biblatex обновляйте не выше версии 3.0, в 3.1 баг.

@KMax
Copy link
Contributor Author

KMax commented Nov 12, 2015

В bibliopreamble.tex файле есть такой комментарий % Встроенная реализация с загрузкой файла через движок bibtex8, хотя все равно вызывается bibtex, а не bibtex8.

Есть соответствующие пакеты texlive-bibtex8 и texlive-bibtex. Естественно, работает только с последним. Комментарий неточный или я ошибаюсь?

@Lenchik
Copy link
Collaborator

Lenchik commented Nov 12, 2015

Неточный. На windows выглядит всё, будто это один и тот же файл c разными именами для совместимости. Считается, что bibtex не умеет работать с utf8, а bibtex8 и bibtexu - умеют.

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

No branches or pull requests

2 participants