mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-20 17:41:55 +02:00
Migrate LaTeX to XeTeX
This commit is contained in:
BIN
apps/treasury/static/img/Finalist_bg.jpg
Normal file
BIN
apps/treasury/static/img/Finalist_bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
BIN
apps/treasury/static/img/Kataclist_bg.jpg
Normal file
BIN
apps/treasury/static/img/Kataclist_bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
BIN
apps/treasury/static/img/Listorique_bg.jpg
Normal file
BIN
apps/treasury/static/img/Listorique_bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
BIN
apps/treasury/static/img/Monopolist_bg.jpg
Normal file
BIN
apps/treasury/static/img/Monopolist_bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
BIN
apps/treasury/static/img/Saperlistpopette_bg.jpg
Normal file
BIN
apps/treasury/static/img/Saperlistpopette_bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
BIN
apps/treasury/static/img/Satellist_bg.jpg
Normal file
BIN
apps/treasury/static/img/Satellist_bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
@ -1,22 +1,14 @@
|
||||
{% load escape_tex %}
|
||||
\documentclass[a4paper,11pt]{article}
|
||||
|
||||
\nonstopmode
|
||||
\documentclass[11pt]{article}
|
||||
|
||||
\usepackage[french]{babel}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[a4paper]{geometry}
|
||||
%\usepackage{bera}
|
||||
\usepackage{fontspec}
|
||||
\usepackage{geometry}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{fancyhdr}
|
||||
\usepackage{fp}
|
||||
\usepackage{transparent}
|
||||
\usepackage{eso-pic}
|
||||
\usepackage{ifthen}
|
||||
|
||||
\DeclareUnicodeCharacter{00B0}{$^\circ$}
|
||||
|
||||
\def\TVA{0} % Taux de la TVA
|
||||
|
||||
\def\TotalHT{0}
|
||||
@ -60,7 +52,8 @@
|
||||
\parbox[b][\paperheight]{\paperwidth}{%
|
||||
\vfill
|
||||
\centering
|
||||
{\transparent{0.1}\includegraphics[width=\textwidth]{../../apps/treasury/static/img/{{ obj.bde }}}}%
|
||||
%FIXME remove ".png" on obj.bde
|
||||
%\includegraphics[width=\textwidth]{../../apps/treasury/static/img/{{ obj.bde }}_bg.jpg};
|
||||
\vfill
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
from unittest import skip
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.exceptions import ValidationError
|
||||
@ -143,7 +142,6 @@ class TestInvoices(TestCase):
|
||||
self.assertRedirects(response, reverse("treasury:invoice_list"), 302, 200)
|
||||
self.assertFalse(Invoice.objects.filter(pk=self.invoice.id).exists())
|
||||
|
||||
@skip("LaTeX is buggy in the CI")
|
||||
def test_invoice_render_pdf(self):
|
||||
"""
|
||||
Generate the PDF file of an invoice.
|
||||
|
@ -209,7 +209,7 @@ class InvoiceRenderView(LoginRequiredMixin, View):
|
||||
# The file has to be rendered twice
|
||||
for ignored in range(2):
|
||||
error = subprocess.Popen(
|
||||
["pdflatex", "-interaction=nonstopmode", "invoice-{}.tex".format(pk)],
|
||||
["xelatex", "-interaction=nonstopmode", "invoice-{}.tex".format(pk)],
|
||||
cwd=tmp_dir,
|
||||
stdin=open(os.devnull, "r"),
|
||||
stderr=open(os.devnull, "wb"),
|
||||
|
@ -1,15 +1,11 @@
|
||||
\documentclass[landscape,10pt]{article}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[french]{babel}
|
||||
\documentclass[a4paper,landscape,10pt]{article}
|
||||
|
||||
\usepackage{fontspec}
|
||||
\usepackage[margin=1.5cm]{geometry}
|
||||
\usepackage{lmodern}
|
||||
|
||||
\begin{document}
|
||||
\begin{center}
|
||||
\huge{Liste des inscrits \og {{ wei.name }} \fg{}}
|
||||
\huge{Liste des inscrits « {{ wei.name }} »}
|
||||
|
||||
{% if bus %}
|
||||
\LARGE{Bus {{ bus.name|safe }}}
|
||||
|
@ -690,7 +690,7 @@ class TestWEIRegistration(TestCase):
|
||||
"""
|
||||
with open("/dev/null", "wb") as devnull:
|
||||
return subprocess.call(
|
||||
["which", "pdflatex"],
|
||||
["which", "xelatex"],
|
||||
stdout=devnull,
|
||||
stderr=devnull,
|
||||
) == 0
|
||||
|
@ -1103,7 +1103,7 @@ class MemberListRenderView(LoginRequiredMixin, View):
|
||||
|
||||
with open(os.devnull, "wb") as devnull:
|
||||
error = subprocess.Popen(
|
||||
["pdflatex", "-interaction=nonstopmode", "{}/wei-list.tex".format(tmp_dir)],
|
||||
["xelatex", "-interaction=nonstopmode", "{}/wei-list.tex".format(tmp_dir)],
|
||||
cwd=tmp_dir,
|
||||
stderr=devnull,
|
||||
stdout=devnull,
|
||||
|
Reference in New Issue
Block a user