ligenparser hinzugefügt

This commit is contained in:
Norbert
2025-09-03 14:09:15 +02:00
parent cb16d47f50
commit c4791605b1
6 changed files with 410 additions and 282 deletions

View File

@@ -67,30 +67,20 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 8,
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[]\n",
"['Pokal']\n",
"[]\n",
"['Pokal']\n",
"['Pokal']\n",
"[]\n",
"[]\n",
"[]\n",
"[]\n",
"[]\n",
"[]\n",
"[]\n",
"[]\n",
"[]\n",
"[]\n"
"ename": "NameError",
"evalue": "name 'spiele' is not defined",
"output_type": "error",
"traceback": [
"\u001b[31m---------------------------------------------------------------------------\u001b[39m",
"\u001b[31mNameError\u001b[39m Traceback (most recent call last)",
"\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[8]\u001b[39m\u001b[32m, line 104\u001b[39m\n\u001b[32m 102\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m team[y][\u001b[32m0\u001b[39m] == verein:\n\u001b[32m 103\u001b[39m verein=\u001b[33m'\u001b[39m\u001b[38;5;130;01m\\\\\u001b[39;00m\u001b[33mtextbf\u001b[39m\u001b[33m{\u001b[39m\u001b[33m'\u001b[39m+verein+\u001b[33m'\u001b[39m\u001b[33m}\u001b[39m\u001b[33m'\u001b[39m\n\u001b[32m--> \u001b[39m\u001b[32m104\u001b[39m spiele = \u001b[33m'\u001b[39m\u001b[38;5;130;01m\\\\\u001b[39;00m\u001b[33mtextbf\u001b[39m\u001b[33m{\u001b[39m\u001b[33m'\u001b[39m + \u001b[43mspiele\u001b[49m + \u001b[33m'\u001b[39m\u001b[33m}\u001b[39m\u001b[33m'\u001b[39m\n\u001b[32m 105\u001b[39m siege = \u001b[33m'\u001b[39m\u001b[38;5;130;01m\\\\\u001b[39;00m\u001b[33mtextbf\u001b[39m\u001b[33m{\u001b[39m\u001b[33m'\u001b[39m + siege + \u001b[33m'\u001b[39m\u001b[33m}\u001b[39m\u001b[33m'\u001b[39m\n\u001b[32m 106\u001b[39m unentschieden = \u001b[33m'\u001b[39m\u001b[38;5;130;01m\\\\\u001b[39;00m\u001b[33mtextbf\u001b[39m\u001b[33m{\u001b[39m\u001b[33m'\u001b[39m + unentschieden + \u001b[33m'\u001b[39m\u001b[33m}\u001b[39m\u001b[33m'\u001b[39m\n",
"\u001b[31mNameError\u001b[39m: name 'spiele' is not defined"
]
}
],
@@ -153,17 +143,19 @@
" for x in range(len(table)):\n",
" verein = Teamspielplan_kuerzen(table[x][1])\n",
" rank = table[x][0]\n",
" if len(table[x][3]) < 3:\n",
" spiele =table[x][2]\n",
" else:\n",
" spiele = '-'\n",
" try: \n",
"\n",
" if len(table[x]) > 3:\n",
" if len(table[x][3]) < 3:\n",
" siege = table[x][3]\n",
" else: \n",
" siege = '-'\n",
" except:\n",
" siege = '0'\n",
" spiele =table[x][2]\n",
" else:\n",
" spiele = '-'\n",
" try: \n",
" if len(table[x][3]) < 3:\n",
" siege = table[x][3]\n",
" else: \n",
" siege = '-'\n",
" except:\n",
" siege = '0'\n",
" if table[x][3].startswith('zur') or table[x][2].startswith('zur'):\n",
" break\n",
" if len(table[0]) > 3:\n",
@@ -361,119 +353,23 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"done.\n",
"This is pdfTeX, Version 3.141592653-2.6-1.40.28 (TeX Live 2025) (preloaded format=pdflatex)\n",
" restricted \\write18 enabled.\n",
"entering extended mode\n",
"(./tabelle.tex\n",
"LaTeX2e <2025-06-01> patch level 1\n",
"L3 programming layer <2025-08-13>\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/extsizes/extarticle.cls\n",
"Document Class: extarticle 1996/10/08 v1.0 Non Standard LaTeX document class\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/base/size12.clo)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/base/exscale.sty))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/base/fontenc.sty)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/opensans/opensans.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/fontaxes/fontaxes.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/figureversions/figureversions.sty\n",
")) (/usr/local/texlive/2025/texmf-dist/tex/generic/iftex/ifluatex.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/generic/iftex/iftex.sty))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/generic/iftex/ifxetex.sty)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/xkeyval/xkeyval.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/generic/xkeyval/xkeyval.tex\n",
"(/usr/local/texlive/2025/texmf-dist/tex/generic/xkeyval/xkvutils.tex\n",
"(/usr/local/texlive/2025/texmf-dist/tex/generic/xkeyval/keyval.tex)))))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/base/inputenc.sty)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/xcolor/xcolor.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/graphics-cfg/color.cfg)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/graphics-def/pdftex.def)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/graphics/mathcolor.ltx))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/colortbl/colortbl.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/tools/array.sty))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/geometry/geometry.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/generic/iftex/ifvtex.sty))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/arev/arev.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/arev/arevtext.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/base/fontenc.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/opensans/T1opensans-TLF.fd))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/base/textcomp.sty))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/arev/arevmath.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/amsfonts/amssymb.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/amsfonts/amsfonts.sty))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/arev/ams-mdbch.sty)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/base/ifthen.sty)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/arev/arevsymbols.tex))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/bera/beramono.sty))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/carlisle/scalefnt.sty)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/caption/caption.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/caption/caption3.sty))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/graphics/graphicx.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/graphics/graphics.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/graphics/trig.sty)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)))\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/textpos/textpos.sty\n",
"Grid set 16 x 16 = 52.81541pt x 37.34424pt\n",
"TextBlockOrigin set to 0pt x 0pt\n",
")\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/threeparttable/threeparttable.sty\n",
") (/usr/local/texlive/2025/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)\n",
"\n",
"No file tabelle.aux.\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/mathdesign/mdacmr.fd)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/context/base/mkii/supp-pdf.mkii\n",
"[Loading MPS to PDF converter (version 2006.09.02).]\n",
") (/usr/local/texlive/2025/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))\n",
"*geometry* driver: auto-detecting\n",
"*geometry* detected driver: pdftex\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/arev/ot1zavm.fd)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/arev/omlzavm.fd)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/arev/omszavm.fd)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/mathdesign/mdbch/omxmdbch.fd)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/amsfonts/umsa.fd)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/amsfonts/umsb.fd)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/mathdesign/mdbch/mdamdbch.fd)\n",
"(/usr/local/texlive/2025/texmf-dist/tex/latex/arev/uzavm.fd)\n",
"[1{/usr/local/texlive/2025/texmf-var/fonts/map/pdftex/updmap/pdftex.map}{/usr/l\n",
"ocal/texlive/2025/texmf-dist/fonts/enc/dvips/opensans/a_jg4h6q.enc} <./H1.png (\n",
"PNG copy)>]\n",
"[2 <./H2.png (PNG copy)>]\n",
"[3 <./H3.png (PNG copy)>]\n",
"[4 <./H4.png (PNG copy)>]\n",
"[5 <./D1.png (PNG copy)>]\n",
"[6 <./D2.png (PNG copy)>]\n",
"[7 <./mC.png (PNG copy)>]\n",
"[8 <./mC2.png (PNG copy)>]\n",
"[9 <./gJD.png (PNG copy)>]\n",
"[10 <./gJD2.png (PNG copy)>]\n",
"[11 <./gJE.png (PNG copy)>]\n",
"[12 <./gJE2.png (PNG copy)>]\n",
"[13 <./gJE3.png (PNG copy)>]\n",
"[14] (./tabelle.aux) )</usr/local/texlive/2025/texmf-dist/fonts/type1/ascender/\n",
"opensans/OpenSans-Bold.pfb></usr/local/texlive/2025/texmf-dist/fonts/type1/asce\n",
"nder/opensans/OpenSans-Regular.pfb>\n",
"Output written on tabelle.pdf (14 pages, 111611 bytes).\n",
"Transcript written on tabelle.log.\n"
]
},
{
"data": {
"text/plain": [
"0"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"tex_code+=r\"\"\"\n",
"\\end{document}\"\"\"\n",