From 06d8cf715cc9f050996718b9556bf3211acad5d9 Mon Sep 17 00:00:00 2001 From: Yoan Tournade Date: Wed, 3 Aug 2022 14:09:07 +0200 Subject: [PATCH] Add problematic compilation from Y. Barsamian --- tests/samples/pstricks/barsamian-test3.json | 9 +++++ tests/samples/pstricks/barsamian-test3.tex | 37 +++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 tests/samples/pstricks/barsamian-test3.json create mode 100644 tests/samples/pstricks/barsamian-test3.tex diff --git a/tests/samples/pstricks/barsamian-test3.json b/tests/samples/pstricks/barsamian-test3.json new file mode 100644 index 0000000..603d8e6 --- /dev/null +++ b/tests/samples/pstricks/barsamian-test3.json @@ -0,0 +1,9 @@ +{ + "compiler": "xelatex", + "resources": [ + { + "main": true, + "url": "http://www.barsamian.am/Php/Exos/test3.tex" + } + ] +} diff --git a/tests/samples/pstricks/barsamian-test3.tex b/tests/samples/pstricks/barsamian-test3.tex new file mode 100644 index 0000000..90c4b15 --- /dev/null +++ b/tests/samples/pstricks/barsamian-test3.tex @@ -0,0 +1,37 @@ +% Run with +% curl -v -X POST http://localhost:9898/builds/sync -H "Content-Type:application/json" -d "$(cat tests/samples/pstricks/barsamian-test3.json)" --output test3.pdf +\documentclass[a4paper]{article} + +\setlength{\textwidth} {17cm} +\setlength{\textheight} {26cm} +\addtolength{\topmargin} {-2.5cm} +\setlength{\oddsidemargin} {-1cm} +\setlength{\evensidemargin} {-1cm} + +\usepackage[T1]{fontenc} %T1 needed for true type. +\usepackage[utf8]{inputenc} %utf8 is usually the standard for Unix +\usepackage{babel} +\usepackage{amsfonts, amsmath} %dfrac +\usepackage{graphicx} %includegraphics +\usepackage{enumitem} %to customize enumerations +\usepackage{tabularx} %Redefinition of arraybackslash +\usepackage{textcomp} %For unicode symbols like ° +\usepackage{multicol} %multicols environment +\usepackage{pstricks,pst-plot,pst-text,pst-tree,pst-eucl} + +\begin{document} + +\noindent Chapitre 4 --- Exercices d'annale \hfill Éléments de correction + +\bigskip + +\psset{unit=1cm} +\def\xMin{0} +\def\xMax{9} +\def\yMin{0} +\def\yMax{7} +\begin{pspicture}(\xMin,\yMin)(\xMax,\yMax) +\psgrid[gridlabels=0pt,subgriddiv=10,gridwidth=1pt,subgridwidth=0.2pt,gridcolor=orange,subgridcolor=orange](\xMin,\yMin)(\xMax,\yMax) +\end{pspicture} + +\end{document}