diff options
| author | bt <bt@rctt.net> | 2026-04-21 12:31:18 +0200 |
|---|---|---|
| committer | bt <bt@rctt.net> | 2026-04-21 12:31:18 +0200 |
| commit | a491fb06a90101ce71548485b4416c994c774503 (patch) | |
| tree | 5520cd35b9f27732b93d3c6b9eb6d7c92f7ed00a | |
| download | pwr-a491fb06a90101ce71548485b4416c994c774503.tar.gz pwr-a491fb06a90101ce71548485b4416c994c774503.zip | |
Add report title latex helper
| -rw-r--r-- | .gitignore | 331 | ||||
| -rw-r--r-- | README.txt | 1 | ||||
| -rw-r--r-- | example.tex | 31 | ||||
| -rw-r--r-- | reportTitle.tex | 105 |
4 files changed, 468 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a19237 --- /dev/null +++ b/.gitignore @@ -0,0 +1,331 @@ +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +*.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bbl-SAVE-ERROR +*.bcf +*.bcf-SAVE-ERROR +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync +*.rubbercache +rubber.cache + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# attachfile2 +*.atfi + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc +*.loc + +# comment +*.cut + +# context +*.tuc +*.tui +*.tuo + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glg-abr +*.glo +*.glo-abr +*.gls +*.gls-abr +*.glsdefs +*.lzo +*.lzs +*.slg +*.slo +*.sls + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplot +*.gnuplot +*.table + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.glog +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hypdoc +*.hd + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files +# *.tikz +*-tikzDictionary + +# latexindent will create succesive backup files by default +#*.bak* + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.data.minted +*.pyg + +# morewrites +*.mw + +# newpax +*.newpax + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# spelling +*.spell.bad +*.spell.txt + +# svg +svg-inkscape/ + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# titletoc +*.ptc + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices and outlines +*.xyc +*.xyd + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# latexindent.pl +*.bak[0-9]* + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# gummi +.*.swp + +# KBibTeX +*~[0-9]* + +# TeXnicCenter +*.tps + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +# Makeindex log files +*.lpz + +# xwatermark package +*.xwm + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# option is specified. Footnotes are the stored in a file with suffix Notes.bib. +# Uncomment the next line to have this generated file ignored. +#*Notes.bib diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..c91bd10 --- /dev/null +++ b/README.txt @@ -0,0 +1 @@ +Tools for PWR
\ No newline at end of file diff --git a/example.tex b/example.tex new file mode 100644 index 0000000..7558c99 --- /dev/null +++ b/example.tex @@ -0,0 +1,31 @@ +\documentclass{proc} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{multirow} +\usepackage{tabularray} +\usepackage{xcolor} +\usepackage{xkeyval} + +\input{reportTitle} + +\begin{document} + +\reportTitle{ + spec=TEL, % 1 - Specjalizacja + name=LABORATORIUM MALARSTWA I TYNKARSTWA, % 2 - Nazwa zajęć + group=5, % 3 - Nr. grupy + exe=2, % 4 - Nr. ćwiczenia + day=Wtorek, % 5 - Dzień + week=P, % 6 - P/N + hour=7:30 – 11:00, % 7 - Godzina + exedate=25 kwietnia 2017, % 8 - Data wykonania ćwiczenia + deldate=09 maja 2017, % 9 - Data oddania sprawozdania + prof=dr. Nauk, % 10 - Prowadzący + persona=Pan/Pani X, % 11 - Osoba 1 + personb=Pan/Pani X, % 12 - Osoba 2 + personc=Pan/Pani X, % 13 - Osoba 3 + author=Pan/Pani X, % 14 - Autor sprawozdania + title=Super fajne zadanie, % 15 - Tytuł ćwiczenia +} + +\end{document} diff --git a/reportTitle.tex b/reportTitle.tex new file mode 100644 index 0000000..1c3a528 --- /dev/null +++ b/reportTitle.tex @@ -0,0 +1,105 @@ +\makeatletter +\define@cmdkey[R]{f}{spec}{} +\define@cmdkey[R]{f}{name}{} +\define@cmdkey[R]{f}{group}{} +\define@cmdkey[R]{f}{exe}{} +\define@cmdkey[R]{f}{day}{} +\define@cmdkey[R]{f}{week}{} +\define@cmdkey[R]{f}{hour}{} +\define@cmdkey[R]{f}{exedate}{} +\define@cmdkey[R]{f}{deldate}{} +\define@cmdkey[R]{f}{prof}{} +\define@cmdkey[R]{f}{persona}{} +\define@cmdkey[R]{f}{personb}{} +\define@cmdkey[R]{f}{personc}{} +\define@cmdkey[R]{f}{author}{} +\define@cmdkey[R]{f}{title}{} + +\newcommand{\reportTitle}[1]{ +\setkeys[R]{f}{#1} + +\definecolor{bg}{RGB}{255, 255, 235} +\definecolor{sp}{RGB}{141, 24, 10} + +\begin{tblr}{ + width=2\linewidth, + colspec={|X[2,l]|X[3,l]|X[1,l]|}, + hspan=minimal, + cells={m}, +} +\hline +\SetCell{l} + Specjalność: +& +\SetCell{l,bg=bg} + Nazwa zajęć: +& +\SetCell{c} + TERMIN +\\ +\SetCell{c} + \LARGE \textbf{\cmdR@f@spec} % Specjalizacja +& +\SetCell{c,bg=bg,fg=sp} + \LARGE \cmdR@f@name % Nazwa zajęć +& +\SetCell{c} +{ + \cmdR@f@day \\ % Dzień + \vspace{-5pt} + \LARGE \textbf{\cmdR@f@week} \\ % P/N + \normalsize \cmdR@f@hour % Godzina +} +\\ \hline +\SetCell[c=2]{l} + Osoby wykonujące ćwiczenie: +&& +\SetCell{c} + Nr Grupy +\\ +\SetCell[c=2]{l} +{ + \qquad \qquad 1.\cmdR@f@persona\\ + \qquad \qquad 2.\cmdR@f@personb\\ + \qquad \qquad 3.\cmdR@f@personc +} +&& +\SetCell{c} + \LARGE \textbf{\cmdR@f@group} +\\ \hline +\SetCell[c=2]{l} + Tytuł ćwiczenia: +&& +\SetCell{c} + Nr ćwiczenia +\\ +\SetCell[c=2]{c} + \cmdR@f@title +&& +\SetCell{c} + \LARGE \textbf{\cmdR@f@exe} +\\ \hline + Sprawozdanie opracował +& + {\cmdR@f@author} +& +\SetCell[r=4]{h,c,bg=bg} + OCENA +\\ \hline + Data wykonania ćwiczenia +& + \cmdR@f@exedate +\\ \hline + Data oddania sprawozdania +& + \cmdR@f@deldate +\\ \hline + Prowadzący +& + \cmdR@f@prof +\\ \hline +\SetCell[c=3]{fg=sp} + \textbf{UWAGI} (wypełnia prowadzący): +\\ \hline +\end{tblr} +} |
