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

Latest version does not compile with Tectonic/Pdflatex/Latexmk #4

Open
dario-loi opened this issue Mar 12, 2024 · 3 comments
Open

Latest version does not compile with Tectonic/Pdflatex/Latexmk #4

dario-loi opened this issue Mar 12, 2024 · 3 comments

Comments

@dario-loi
Copy link

Terminal log/steps to reproduce:

❯ git clone https://github.com/ElBi21/NoTeX.git
Cloning into 'NoTeX'...
remote: Enumerating objects: 176, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 176 (delta 18), reused 6 (delta 6), pack-reused 154
Receiving objects: 100% (176/176), 207.12 KiB | 991.00 KiB/s, done.
Resolving deltas: 100% (72/72), done.
❯ cd NoTeX/
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$   dario-loi ~ git version 2.44.0
$$$            $$$$$$$      $$$$$     $$   ------------------------------
$$  $$$$  $$$$  $$$$$$$$$  $$$$$$$ $$$$$   Project: NoTeX (1 branch)
$$ $$$$$  $$$$$ $$$$$$$$$$  $$$$$ $$$$$$   HEAD: 3b6c3b1 (main, origin/main)
$$ $$$$$  $$$          $$$$  $$$ $$$$$$$   Created: a year ago
$$ $$$$$  $$$$$  $$$$$  $$$$  $ $$$$$$$$   Languages:                           
$$$$$$$$  $$$$$  $$$$$$ $$$$$  $$$$$$$$$              ● TeX (97.0 %) ● Python (3.0 %)
$$$$$$$$  $$$$$  $$$$$$ $$$$$  $$$$$$$$$   Authors: 91% Leonardo Biason 40
$$$$$$$$  $$$$$  $$$$$$$$$$$$   $$$$$$$$             7% ElBi21 3
$$$$$$$$  $$$$$  $$$ $$$$$$$ $$  $$$$$$$             2% ElBi21 1
$$$$$$$$  $$$$$      $$$$$$ $$$$  $$$$$$   Last change: 2 months ago
$$$$$$$$  $$$$$  $$$ $$$$$ $$$$$$  $$$$$   URL: https://github.com/ElBi21/NoTeX.git
$$$$$$$$  $$$$$  $$$$$$$$ $$$$$$$$  $$$$   Commits: 44
$$$$$        $$  $$$$$     $$$$$$     $$   Churn (6): README.md 4
$$$$$$$$$$$$$$$  $$$$$$$ $$$$$$$$$$$$$$$              …/preamble/section_styles.tex 1
$$$$$$$$$$$$$$$  $$$$$$ $$$$$$$$$$$$$$$$              …/preamble/packages.tex 1
$$$$$$$$$$$$$           $$$$$$$$$$$$$$$$   Lines of code: 708
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$   Size: 108.15 KiB (25 files)
                                           License: GPL-3.0-only

                                                                   

❯ tectonic main.tex
Running TeX ...
warning: anyfontsize.sty:3: 
Invalid UTF-8 byte or sequence at line 3 replaced by U+FFFD.
warning: anyfontsize.sty:3: Invalid UTF-8 byte or sequence at line 3 replaced by U+FFFD.
warning: contour.sty:11: 
Invalid UTF-8 byte or sequence at line 11 replaced by U+FFFD.
error: fouriernc.sty:13: LaTeX Error: Unknown option `default' for package `fouriernc'.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help
error: halted on potentially-recoverable error as specified

Removing the faulty package leads to another bug:

❯ tectonic main.tex
Running TeX ...
warning: anyfontsize.sty:3: 
Invalid UTF-8 byte or sequence at line 3 replaced by U+FFFD.
warning: anyfontsize.sty:3: Invalid UTF-8 byte or sequence at line 3 replaced by U+FFFD.
warning: contour.sty:11: 
Invalid UTF-8 byte or sequence at line 11 replaced by U+FFFD.
error: main.tex:25: LaTeX Error: There's no line here to end.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help
error: halted on potentially-recoverable error as specified

Which seems to be triggered by a misplaced \\, but I can't locate where this comes from.

@ElBi21
Copy link
Owner

ElBi21 commented Mar 12, 2024

It's not the first time that \\ led to some errors. Up until now I got able to compile with one of the following commands:

  • with tectonic: tectonic main.tex -Z continue-on-errors
  • with pdflatex: pdflatex -interaction=nonstopmode main.tex

I'll look into that

@dario-loi
Copy link
Author

I confirm that compilation is possible with the reported commands, however, this is possibly causing tectonic to perform multiple compilation passes, which would make the template hard to use in a live note-taking workflow.

I await further notice

@ElBi21
Copy link
Owner

ElBi21 commented Mar 18, 2024

I'm studying how styling with .sty files works in LaTeX, so I'm pushing towards a more class-oriented approach.
Any help is more than welcome, I don't have too much free time and I'd love if someone could contribute.

EDIT: Started working on the .cls file! The aim of the project is to make a functioning, working class with 0 errors. Can be found in the dev branch, under the folder new. Link here

EDIT 2: Now the main branch contains the new (uncomplete yet) class. The old class can be found in the old folder

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