Skip to content

Conversation

@jdemonasterio
Copy link
Owner

@jdemonasterio jdemonasterio commented Jul 28, 2018

So i'm still scratching my head over at what actually happened here. Given both of you guys' comments i'm opening up this PR.

Minor context

I've moven most of the .tex work from one repository to this actual repository under the /tex folder. In the manual movement i've forgotten to upload the appendi.tex file (thus this PR.)

You see the "out" commit here (removing files from the old repo ). And the "in" (adding files to this repo) commit here.

Actual behavior

At the same time Pedro has mentioned to me that the bibliography is not part of the the university's pdf is that right? I've might have missed some other files too doing the in/out movement.

Expected behavior

Have a working appendix and bibliography pdf and hopefully, have it compile in Arxiv's automatic tex compiler as we are trying to have that approved/uploaded.

@petobens
Copy link
Collaborator

This is compiling just fine for me. Do you want me to add the PDF here? Otherwise paste the stack trace and I might be able to help

@petobens
Copy link
Collaborator

I didn't try the arxiv format I mereley compiled it as it now. If you want me to try the arxiv format please give some pointers.

@jdemonasterio jdemonasterio requested a review from petobens July 28, 2018 22:12
@jdemonasterio
Copy link
Owner Author

@petobens i'm attaching the Arxiv traceback which uses a docker image (i suppose) to compile the .tex

I seem to understand that it fails to compile preamble.tex due to a clash in hyperref options maybe?

arXiv_TeX_log.txt

@petobens
Copy link
Collaborator

Ok. Following this SO answer you should be able to avoid the option clash by passing the hyperref options before the begin document like:

\PassOptionsToPackage{hyperfootnotes=false}{hyperref}

\documentclass[
...

@jdemonasterio
Copy link
Owner Author

Does it actually work for you locally? plz do commit if so, it doesn't for me (check last commit)

@jdemonasterio
Copy link
Owner Author

And from what I can understand there's only 1 call of \usepackage{hyperref} or maybe other packages are doing this themselves?

tex/preamble.tex Outdated
% Hyperlinks, bookmarks, theorems and cross-references |
%------------------------------------------------------+
\usepackage[hyperfootnotes=false]{hyperref}
\usepackage{hyperref}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mybibformat.sty also does his own '\usepackage{hyperref}

  429  %---------------+
  430: % Load hyperref |
  431  %---------------+
  432  % We need to do this here after patching
  433  \makeatletter
  434: %  FIXME: This doesn't always work and we need to manually load hyperref when
  435  % there are errors stating that it was not loaded
  436: \AtEndPreamble{\@ifpackageloaded{hyperref}{}{\usepackage{hyperref}}}
  437  \makeatother
  438  ```

Copy link
Owner Author

@jdemonasterio jdemonasterio Jul 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed that line. Retry compile and... Undefined control sequence. \hypersetup

Which makes sense to me as it is imported and then setup.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. The following works (at least locally):

\PassOptionsToPackage{hyperfootnotes=false, colorlinks=true, allcolors=blue,
linktoc=page,
pdfstartview={xyz null null 1}, pdfcreator={vim latex},
pdfsubject={machine learning},
pdftitle={tesis para la carrera de licenciatura en matematica aplicada},
pdfauthor={juan mateo de monasterio},
pdfcreator={juan mateo de monasterio},
pdfkeywords={machine learning}
}{hyperref}

@petobens
Copy link
Collaborator

Remove the extra hyperref call. Mmm how are you compiling locally? I thought (from a quick search) that I needed to do an arxiv submit to actually reproduce the errors.

@jdemonasterio
Copy link
Owner Author

I compile with texstudio. But I can start using cmdline if you prefer just for the sake of reproducibility. Also, maybe it's better if you can submit your working version if it makes more sense to you.

@petobens
Copy link
Collaborator

I'll be AFK until the night. Regarding compilation I use tool called arara (which you can install with texlive) and the followig config file: https://github.com/petobens/dotfiles/blob/master/arararc.yaml (it basically calls pdflatex and biber the necessary number of times)

@jdemonasterio
Copy link
Owner Author

after dumping the contents of the arararc.yaml link you provided in to a file in ~/araraconfig.yaml as per arara documentation in ch.6 i've had this error and I'll call it a day :(

invalid, that is, it has invalid or missing YAML entries.
Unfortunately, arara cannot proceed until the error is fixed. I
tried my best to dump the error message, so here it is:

Problem: Can't construct a java object for
tag:yaml.org,2002:com.github.arara.model.AraraConfiguration;
exception=Cannot create property=preambles for
JavaBean=com.github.arara.model.AraraConfiguration@159f197;
Unable to find property 'preambles' on class:
com.github.arara.model.AraraConfiguration
Error found in line 6, column 0.

@jdemonasterio
Copy link
Owner Author

@petobens thanks to @cs4rraute i've proceeded to copy his changes to update split the preface into 3 parts and stop using biblatex/biber but rather use natbib.

See last changs reflecting that plz.

@jdemonasterio
Copy link
Owner Author

any last comments @petobens ? The preamble is also split into 3 sub-files and other minor changes were made.

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

Successfully merging this pull request may close these issues.

3 participants