Skip to content

Commit

Permalink
test: Simplfiy basic latex file.
Browse files Browse the repository at this point in the history
Drop use of packages not germaine to the basic goal of these tests,
which is not to test the completeness of the existing TeX installation,
but to check that tartex works if the tex file is basically compilable.
  • Loading branch information
badshah400 committed Feb 10, 2024
1 parent 171d91c commit 9c4e320
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions tests/test_basic_latex/basic_latex.tex
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
\documentclass{article}

\usepackage{fancyhdr}
\usepackage{lipsum}% just to generate text for the example
% https://tex.stackexchange.com/questions/13387/how-to-get-part-name-in-latex
\let\Oldpart\part
\newcommand{\parttitle}{}
\renewcommand{\part}[1]{\Oldpart{#1}\renewcommand{\parttitle}{#1}}
\pagestyle{fancy}
\fancyhf{}
% Set \parttitle for top left corner of each page
\fancyhead[L]{\parttitle}
% Right top corner for page number
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}

\begin{document}
\part{2024}
\section{Dec}

\lipsum[1-10]

\part{2023}
\section{Dec}
\lipsum[1-10]

\section{Test document section}
This is a test document.
\end{document}


0 comments on commit 9c4e320

Please sign in to comment.