diff --git a/.gitignore b/.gitignore index 3b742fd0363afefb127de8ae76cacce08a738f5c..aaecd3eb7db9ce41c4f1c097ac5645f4cf18b862 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,3 @@ -*.synctex.* -*.aux -*.lof -*.log -*.toc + build/ -img/logos-fakultäten.svg +.vscode/ diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 5f9c3f4ebc63d089cb5bb094dfd84d61cd8c6d1a..0000000000000000000000000000000000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "latex-workshop.latex.outDir": "%DIR%/build", - "latex-workshop.latex.tools": [ - { - "name": "pdflatex", - "command": "pdflatex", - "args": [ - "-synctex=1", - "-interaction=nonstopmode", - "-file-line-error", - "--output-directory=build", - "%DOC%" - ], - "env": { - "TEXINPUTS": "%DIR%/src" - } - } - ] -} \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..ee40d4ece2e43ea35a9d0734f636e5cc513f5ca4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2020 Jan Wille + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/Makefile b/Makefile index 4b47d26219ed51c73850ad27d7fcc566c5699895..49c75d02ffb21553f908e638409c613939cc19d1 100644 --- a/Makefile +++ b/Makefile @@ -1,45 +1,47 @@ # Makefile for Latex project +NAME = project +LATEX = pdflatex +BIBTEX = biber -NAME = test -PDF = pdflatex -BIB = biber +SUBDIRS = crc plt svg +OUTDIR = build +TEX_FLAGS = -file-line-error -interaction=nonstopmode +COM_FLAGS = -output-directory=$(OUTDIR) -quiet +GARBAGE_PATTERNS = *.aux *.bbl *.bcf *.blg *.idx *.ind *.lof *.lot *.log *.xml *.toc -OUTDIR = .\build +SUB_TEX_FILES = $(foreach D,$(SUBDIRS),$(wildcard $(D)/*.tex)) +SUB_PDF_FILES = $(join $(dir $(SUB_TEX_FILES)),$(addprefix $(OUTDIR)/,$(notdir $(SUB_TEX_FILES:tex=pdf)))) +SUB_SVG_FILES = $(foreach D,$(SUBDIRS),$(wildcard $(D)/*.svg)) +SUB_PDF_TEX_FILES = $(join $(dir $(SUB_SVG_FILES)),$(addprefix $(OUTDIR)/,$(notdir $(SUB_SVG_FILES:svg=pdf)))) +GARBAGE = $(foreach D,. $(SUBDIRS), $(wildcard $(addprefix $(D)/$(OUTDIR)/,$(GARBAGE_PATTERNS)))) -export TEXINPUTS:=.\src +export TEXINPUTS:=$(CURDIR)\src -pdf: $(NAME).tex - $(PDF) -synctex=1 -interaction=nonstopmode -file-line-error --output-directory=$(OUTDIR) $(NAME).tex +all: bib + $(LATEX) $(TEX_FLAGS) $(COM_FLAGS) $(NAME).tex + $(LATEX) -synctex=1 $(TEX_FLAGS) $(COM_FLAGS) $(NAME).tex + copy /Y $(OUTDIR)\$(NAME).pdf .\ + +std: all tidy + +bib: pdf $(OUTDIR)\$(NAME).bcf + $(BIBTEX) $(COM_FLAGS) $(NAME) + +pdf: $(SUB_PDF_FILES) $(SUB_PDF_TEX_FILES) + $(LATEX) -synctex=1 $(TEX_FLAGS) $(COM_FLAGS) $(NAME).tex + +$(SUB_PDF_FILES): $(SUB_TEX_FILES) + cd $(subst $(OUTDIR)/,,$(dir $@)) && $(LATEX) $(TEX_FLAGS) $(COM_FLAGS) $(notdir $(@:pdf=tex)) + +$(SUB_PDF_TEX_FILES): $(SUB_SVG_FILES) + cd $(subst $(OUTDIR)/,,$(dir $@)) && inkscape -C --export-latex $(notdir $(@:pdf=svg)) -o $(and $(OUTDIR),$(OUTDIR)\)$(notdir $@) clean: tidy - if exist $(OUTDIR)\$(NAME).pdf del $(OUTDIR)\$(NAME).pdf - if exist $(OUTDIR) rmdir $(OUTDIR) + for %%a in ($(foreach D,$(subst /,\,$(SUB_PDF_FILES) $(SUB_PDF_TEX_FILES)) $(subst pdf,synctex.gz,$(subst /,\,$(SUB_PDF_FILES))) $(subst pdf,pdf_tex,$(subst /,\,$(SUB_PDF_TEX_FILES))) $(OUTDIR)\$(NAME).pdf $(OUTDIR)\$(NAME).synctex.gz, "$(D)")) do if exist %%~a del /q %%~a + for %%a in ($(foreach D,. $(SUBDIRS),"$(D)\$(if $(subst .,,$(OUTDIR)),$(OUTDIR),build)")) do if exist %%~a rmdir /q %%~a +# if exist $(NAME).pdf del $(NAME).pdf tidy: - if exist $(OUTDIR)\$(NAME).aux del $(OUTDIR)\$(NAME).aux - if exist $(OUTDIR)\$(NAME).bbl del $(OUTDIR)\$(NAME).bbl - if exist $(OUTDIR)\$(NAME).bcf del $(OUTDIR)\$(NAME).bcf - if exist $(OUTDIR)\$(NAME).blg del $(OUTDIR)\$(NAME).blg - if exist $(OUTDIR)\$(NAME).idx del $(OUTDIR)\$(NAME).idx - if exist $(OUTDIR)\$(NAME).ind del $(OUTDIR)\$(NAME).ind - if exist $(OUTDIR)\$(NAME).lof del $(OUTDIR)\$(NAME).lof - if exist $(OUTDIR)\$(NAME).lot del $(OUTDIR)\$(NAME).lot - if exist $(OUTDIR)\$(NAME).out del $(OUTDIR)\$(NAME).out - if exist $(OUTDIR)\$(NAME).toc del $(OUTDIR)\$(NAME).toc - if exist $(OUTDIR)\$(NAME).acn del $(OUTDIR)\$(NAME).acn - if exist $(OUTDIR)\$(NAME).acr del $(OUTDIR)\$(NAME).acr - if exist $(OUTDIR)\$(NAME).alg del $(OUTDIR)\$(NAME).alg - if exist $(OUTDIR)\$(NAME).glg del $(OUTDIR)\$(NAME).glg - if exist $(OUTDIR)\$(NAME).glo del $(OUTDIR)\$(NAME).glo - if exist $(OUTDIR)\$(NAME).gls del $(OUTDIR)\$(NAME).gls - if exist $(OUTDIR)\$(NAME).ist del $(OUTDIR)\$(NAME).ist - if exist $(OUTDIR)\$(NAME).fls del $(OUTDIR)\$(NAME).fls - if exist $(OUTDIR)\$(NAME).log del $(OUTDIR)\$(NAME).log - if exist $(OUTDIR)\$(NAME).nav del $(OUTDIR)\$(NAME).nav - if exist $(OUTDIR)\$(NAME).snm del $(OUTDIR)\$(NAME).snm - if exist $(OUTDIR)\$(NAME).fdb_latexmk del $(OUTDIR)\$(NAME).fdb_latexmk - if exist $(OUTDIR)\$(NAME).synctex.gz del $(OUTDIR)\$(NAME).synctex.gz - if exist $(OUTDIR)\$(NAME).run.xml del $(OUTDIR)\$(NAME).run.xml - if exist $(OUTDIR)\$(NAME).bc del $(OUTDIR)\$(NAME).bc \ No newline at end of file + if exist $(or $(word 1, $(subst /,\,$(GARBAGE))), false) del /q $(subst /,\,$(GARBAGE)) diff --git a/README.md b/README.md index 3ef3a706028261aa9a9f83f25e1ecca2f92988df..1fef9469e5fde3d7ebb1735740b7828bfd2d1cb4 100644 --- a/README.md +++ b/README.md @@ -1,81 +1,32 @@ # What this is -This is a template designed to ease the workflow when wrighting documents for the Hochschule Hannover. It is intendet to be used in all sufisticated -works, from lab-reporst to masters thesisies. -The project provieds custom document-classes cariing the `HsH-` prefix as well as support files. These classes extend the well known KOMA-script classes and customise them -them with specifig configurations and presets as well as providing comonly needed features. +This is a template designed to ease the workflow when writing documents for the Hochschule Hannover. It is intended to be used in all sophisticated +works, from lab-reports to masters thesis's. +The project provides custom document-classes caring the `HsH-` prefix as well as support files. These classes extend the well known KOMA-script classes and customize them +them with specifig configurations and presets as well as providing commonly needed features. **Provides classes are:** HsH-article (planed) HsH-report HsH-book (planed) + HsH-standalone + +**Version:** BETA 0.1, 25.10.2020 # Quick start guide: +Use the wiki (here)[https://lab.it.hs-hannover.de/qxx-tul-u1/latex-template-hsh/-/wikis/home] + ## Quick and dirty To get started, create a new folder for your project somewhere on your PC and create your `.tex` file. Copy the classfile (`.cls`) you want to use and -the `HsH-logo.pdf` from the src folder to your projectfolder. You can optionaly copy the `config.tex` and the `personal.tex`, but you can also -configre everything in your preamble. +the `HsH-logo.pdf` from the src folder to your projectfolder. You can optionally copy the `config.tex` and the `personal.tex`, but you can also +configure everything in your preamble. ## using a proper subfolder structure -The projects also provieds a recomondation for a subfolder structure, to keep things organised. Cloning the complete projekt into your projectfolder -will allow you to use it easiely. - -## writing your document - -Write your Latexdocument as usual, starting with: `\documentclass{HsH-report}` -You may provide all usuall classoptions as well as specifying your fakultie (f1 to f5), so the correct logo can be picked. Here is a recomendation: - - \documentclass[11pt,a4paper,twoside,f1]{HsH-report} - - -# What are the presonal.tex and config.tex? - -These files are a easy way to configre your project in a single central location, so it can be used over multiple documents in the same project as -well as allowing easy reuse of configs for other projects. -The provied classes automaticly check for thes files and use them, if they are present. But they are completly optional, so you can just ditch them if -you want to. Keep in mind that the `config.tex` will be includet rigth befor the `\begin{document}`, so it overides all settings you may have put in -your preamble. - -The `personal.tex` is intednet for presonal information displayed on the titlepage and elsewhere. For example the definitions of `\autor{}` and -`\title{}` are here. - -The `config.tex` is intendet for configurations. For example new- or redefinitions of commands should be put here. Also pakages specifig configs are -loadet here. The `\@ifpackageloaded{pakagename}{true}{false}` Makro allows to check for the existans of a pakage, so that you can reuse config files, -even if you dont use all the same pakeges. - -# Creating a titlepage - -The `\maketitel` command has bin changed from the standart implementation. It now provides a titlepage containing the HsH-logo as well as allowing for -some more stuff. -Standart KOMA commands (read also [KOMA-documentation](https://golatex.de//wiki/Titelseite_mit_KOMA-Script)): -`\titlehead{}` -`\subject{}` -`\title{}` -`\subtitle{}` -`\date{}` - -Custom Commands: -`\author{A,B,C}` needs to be a comma seperated list, to make the declaration of autorship work properly, `\thanks{}` may still be used -`\publishers{}` has no effect - -It is very importand, that the HsH-logo file can be found when using this command. The standart config looks on the enviroment path, but if you whant to -customise it, you can use `\HsHlogoPath{path/to/logo}` to provide the path yourself. Note that the `\HsHlogoPage{num}` must also be set to point to the -correct page inside the providet file (standart is 1). - -# Declation of autorship - -TODO - - \declarationAuthorship - - -# other providet commands - -`\abs{}` sets vertical lines left and right of the contained expression to mark an absolout value. Only works in mathmode - -# Für Beamer gibt es das schon: - -https://lab.it.hs-hannover.de/hit/latex-template-service \ No newline at end of file +The projects also provides a recommendation for a subfolder structure, to keep things organized. Cloning the complete projekt into your projectfolder +will allow you to use it easily. +This has the downside of storing classfiles and other needed files in the *.\src* folder, which means it needs to be added to the path searched when +running your latex command. How to do that is explained in the wiki. +The provided Makefile demonstrates how to run a successful build, you might want to check it out. diff --git a/chap/README.md b/chap/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1cf1ae9597e49a3f88709ee14efbbb8552128f3f --- /dev/null +++ b/chap/README.md @@ -0,0 +1,4 @@ +# Chapters folder + +For bigger projects it can be usefull to have separate files for chapters. +These separate files should be stored here and can be included into the main document via `\input{chap/one.tex}`. \ No newline at end of file diff --git a/crc/README.md b/crc/README.md new file mode 100644 index 0000000000000000000000000000000000000000..901c0ba214d4860e4aa7b1032f3bd7af84fe9614 --- /dev/null +++ b/crc/README.md @@ -0,0 +1,4 @@ +# Circuit-diagramms folder + +This folder is for circuit diagramms. +The `circuitkz` pakage is recomendet for creating these. diff --git a/crc/exampleCircuit.tex b/crc/exampleCircuit.tex new file mode 100644 index 0000000000000000000000000000000000000000..2aee0c9e33249871ce4f7fbbbc92eb99a08d5683 --- /dev/null +++ b/crc/exampleCircuit.tex @@ -0,0 +1,39 @@ +\documentclass[11pt,ngerman]{HsH-standalone} + +\usepackage{siunitx} % kennt SI einheiten +\usepackage{amsmath} % schöne Formeln +\usepackage{circuitikz} % zeichnen von Schaltplänen + +\begin{document} %----------------------Inhalt---------------------------------------------------% + +\begin{circuitikz} \draw + (0,0) to[V, v<=$U_q$, i=$I_q$] ++(0,2) + -- ++(2,0) + to[R, i^=$I_R$] ++(0,-2) + to[rmeter, t=A] ++(-2,0) + ; +\end{circuitikz} + +\begin{circuitikz} \draw + (0,0) to[I, v^<=$U_q$, i=$I_q$] ++(0,2) + -- ++(2,0) coordinate(a) + to[R, *-*, v^=$U_R$] ++(0,-2) coordinate(b) + -- ++(-2,0) + (a) -- ++(1.5,0) + to[rmeterwa, t=V] ++(0,-2) + -- (b) + ; +\end{circuitikz} + +\begin{circuitikz} \draw + (0,-2) coordinate(home) + to[V, v<=$U_q$] ++(0,2) + ; + \foreach \i in {0,...,3} \draw + (0,0) -- ++(1.5+\i,0) + to[R, *-*,l=$R_\i$] ++(0,-2) + -- (home) + ; +\end{circuitikz} + +\end{document} diff --git a/csv/README.md b/csv/README.md index e42037b19facdbbbd64258dadf859c52279a51b6..a1e3464905c846ec5a1a1d129a7301b7bc445165 100644 --- a/csv/README.md +++ b/csv/README.md @@ -1,5 +1,10 @@ -# Der CSV-Ordner (Comma Seperatet Values) +# CSV folder (Comma Seperatet Values) -Dieser Ordner ist für für Messwerte und andere arten der Datenerfassung gedacht. -Der Name lautet zwar *csv*, ist aber nicht auf diese beschränkt. Eine gute Möglichkeit ist z.B. die erstellung einer Excel Tabelle, deren einzelne -Sheets bei bedarf als CSV exporttiert werden. Dazu existiert auch ein VBA Makro. +This folder is for measurement readings and other kinds of data collection. +It is named *csv*, but you could also use different filetypes, even though the `.csv` type is the easiest to include in LaTex. + +# Export Excel to CSV + +Excel ist a gerate tool for collecting and doing calculation on measured data, but is not so good for using that data in other tools. Thats why there +is a VBA macro, that makes it super easy to export excel-sheets into separate CSV documents, which can be used in Latex and easily reexported on +changes in the excel file. \ No newline at end of file diff --git a/csv/bsp.csv b/csv/bsp.csv new file mode 100644 index 0000000000000000000000000000000000000000..a6a28d55b1aabbd5c4a16f55e6581c3eb68f15b1 --- /dev/null +++ b/csv/bsp.csv @@ -0,0 +1,6 @@ +A;B;C;D +1;0;3,1;0,2 +2;0;7,2;0,5 +3;0;8,3;0,3 +4;0;2,4;0,1 +5;0;4,5;0,2 diff --git a/img/HSH-Logo.pdf b/img/HSH-Logo.pdf deleted file mode 100644 index f6ddc0fa82f4999a70cbe8ca9834745f4a8a2108..0000000000000000000000000000000000000000 Binary files a/img/HSH-Logo.pdf and /dev/null differ diff --git a/img/README.md b/img/README.md index d2e73d49e6babc834fd8cb66f54bd0836f19c82e..7e12ea1356e40c7345e7865496a5a7d7e5b7be11 100644 --- a/img/README.md +++ b/img/README.md @@ -1,8 +1,10 @@ -# Der Images-Ordner (Bilder) +# Images folder (pictures) -Dieser Ordner ist für Bilder, sowohl Fotos als auch selbst erstellte Schaubilder und Skizzen. Grundsätzlich sollte mit .png oder .pdf gearbeitet -werden, jedoch können hier auch die Dateine der jeweiligen Editoren abgelegt werden. +This folder is for images, this can be pictures,created graphs, sketches or circuit diagramms. It is recommended to work with `.png` and `.pdf` filetypes for inclusion +in the main document, but files needed by the respective editors may also be stored here. -# Schaubilder erstellen mit Inkscape +# Image creation with Inkscape -soll hier ein Beispiel dafür rein oder ist das zu Komplex?? \ No newline at end of file +Inkscape is a amazing vectorgraphics tool with an export to LaTex feature. I highly recommend it for creating complex images like sketches of +experimental setup. +Check oute their website: [Inkscape.org](https://inkscape.org/) \ No newline at end of file diff --git a/img/bild.png b/img/bild.png deleted file mode 100644 index 3bd7ffc0879f3e5e0a6b6122b493de9a70868ef0..0000000000000000000000000000000000000000 Binary files a/img/bild.png and /dev/null differ diff --git a/img/lorem-ipsum.jpg b/img/lorem-ipsum.jpg new file mode 100644 index 0000000000000000000000000000000000000000..04a14b8c7a35b4550a3fb737ca8eb9175ede8496 Binary files /dev/null and b/img/lorem-ipsum.jpg differ diff --git a/plt/README.md b/plt/README.md index b20c692b34755d91ee1e46b600397467499f2c19..d740a03b55dea0e3b634a73f07a6fd04b28ee6c9 100644 --- a/plt/README.md +++ b/plt/README.md @@ -1,5 +1,5 @@ -# Der Plots-Ordner +# Plots-folder -Ein Ordner für alle Plots und Graphen. Dieser Existiert vor allem, da die Erstellung mit PGF-Plots empfohlen wird. Dies erfordert eine eigene .tex -Datei für jeden Plot, spart aber Compilezeit, da nicht jedes mal alle Plots neu erstellt werden. Dadurch ist es aber möglich, direkt auch .csv Daten -zuzugreifen. \ No newline at end of file +This folder is for plots and graphs. It exists mostly because it is recommended to use the `pgf-plots` package. This huge and powerful package also +brings up the compiletime of a `.tex` file by a lot. Thats why it is recommended to create separate files for every plot an just import the resulting +`.pdf` file into the final document, recompiling the graph itself only when needed. \ No newline at end of file diff --git a/plt/examplePlot.tex b/plt/examplePlot.tex new file mode 100644 index 0000000000000000000000000000000000000000..9a8adbe6c788e9c3e5c5864eee7ddd9f5ed55a54 --- /dev/null +++ b/plt/examplePlot.tex @@ -0,0 +1,34 @@ +\documentclass[11pt,ngerman]{HsH-standalone} + +%__________Formeln und Mathe________________ +\usepackage{siunitx} % kennt SI einheiten +\usepackage{amsmath} % schöne Formeln + +%__________Daten Import_____________________ +\usepackage{pgfplots,pgfplotstable} % plots und bilder, enthält tikz und graphix + +\begin{document} %----------------------Inhalt---------------------------------------------------% + +\begin{tikzpicture} + \begin{axis}[MyPlots] + \addplot[FM1,domain=-1:1, name path=A]{x^2}; + \addplot[FM2,mark=none,domain=-1:1, name path=B]{0.5*x^2-1}; + \addplot[pattern color=gray!40, pattern=dots] fill between[of=A and B]; + \end{axis} +\end{tikzpicture} + +\begin{tikzpicture} +\pgfplotstableread{../csv/bsp.csv}\data + \begin{axis}[MyPlots, + xlabel=X Achse, ylabel=$\percent$, + ] + \addplot[FM1,errBars] table [x=A,y=C,y error=D] {\data}; + \addlegendentry{Messdaten} + \addplot[FM2,smooth] table [x=A,y=C] {\data}; + \addlegendentry{theroretische Werte} + \addplot[FM4] table [x=A,y={create col/linear regression={y=C}}] {\data}; + \addlegendentry{lineariesiert zu: $y=\num\pgfplotstableregressiona*x+\num\pgfplotstableregressionb$} + \end{axis} +\end{tikzpicture} + +\end{document} diff --git a/project.pdf b/project.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3f0f4633beac77f026fb0df634392eeb6d5fd50f Binary files /dev/null and b/project.pdf differ diff --git a/project.tex b/project.tex new file mode 100644 index 0000000000000000000000000000000000000000..3276a70d8a907623a8a705bd62e69ef5ddac2097 --- /dev/null +++ b/project.tex @@ -0,0 +1,181 @@ +\documentclass[ %----------------------Preamble---------------------------------------------------% + 11pt,a4paper, % fontsize and papersize + twoside, % double sided layout + english, % document language (also numberingsystem) + f1 % HsH facultie + ]{HsH-report} % documentclass + +\usepackage{color} % for coloring stuff +\usepackage{siunitx} % units +\usepackage{listings} +\usepackage{csvsimple} +\usepackage{biblatex} % bibiography +\addbibresource{src/localBibliography.bib} + +\usepackage{lipsum} % dummy text +\begin{document} + +\pagenumbering{Roman} % duÃfferent numbering until first chapter +\maketitle % using personal.tex +\declarationAuthorship + +\begin{abstract} + \lipsum[5-8] +\end{abstract} + +\tableofcontents + +\cleardoublepage % importand when using double sided layout +\pagenumbering{arabic} % numbering in normal numbers + +\chapter{Examples} + \label{chap: one} + {\color{red}red text} and {\color{blue}blue text} \\ + different subscripts: \normalsubscripts$R_t$ \upsubscripts$R_t$ \\ + using Units: $R=200\,\milli\ohm + \SI{0.34567453}{\volt\per\metre} - 5\,\si{\second\per\metre\squared}$ \\ + some information\cite{laboranleitung:physik}\\ + german number: $3,5$ english number: $3.5$\\ % note changes when using ngerman document option + + \section{using images} + Images can just be imported and used in a float enviroment with a caption and a lable to reference it. + \begin{figure} + \includegraphics[width=.6\textwidth]{img/lorem-ipsum.jpg} + \caption{just a random image} + \end{figure} + + Plots can be created direktly with latex. It is recomendet to do this in subfiles and just import the finished PDF pages. This speed us + compiletimes by a lot. You should not change the size of precompiled images to keep fontsizes consistent. + \pagebreak + \begin{figure} + \includegraphics[page=2]{plt/build/examplePlot.pdf} + \caption[centering]{a nice plot} + \label{fig: plot1} + \end{figure} + \begin{figure} + \includegraphics[page=1]{plt/build/examplePlot.pdf} + \caption{a area plot} + \label{fig: area} + \end{figure} + + Circuit diagramms can also be created using a package called \lstinline{circuitikz}. It is also recomendet to get formiliar with Inkscape which + has a very good export to latex feature. + \begin{figure} + \graphicspath{{svg/build/}} % double curly brackets needet for unknown reason + \subfigure[a circuit diagramm]{\includegraphics{crc/build/exampleCircuit.pdf}} + \hspace{2cm} + \subfigure[made via Inkscape]{\input{svg/build/exampleSVG.pdf_tex}} + \caption{using two figures} + \end{figure} + +\section{demo nested listing} + \begin{itemize} + \item hallo + \begin{itemize} + \item temp + \begin{itemize} + \item temp + \begin{itemize} + \item temp + \end{itemize} + \end{itemize} + \end{itemize} + \end{itemize} + +\section{using Units} + For this the \lstinline{siunitx} package is used. It provides Macros for all units. + \begin{equation} + 200\,\ohm + \end{equation} + The space betwen a number and it's unit shoud be a protected half-space, which can be created in latex using \lstinline{\,} In the classfile + siunits is set up to use a seperate macro for each subunit, even for size-modifiers: + \begin{equation} + 200\,\milli\metre \cdot 2\,\mega\volt + \end{equation} + Siunits also allows for reformating of numbers as well as units. Use the \lstinline{\SI} and \lstinline{\si} macros for that: + \begin{equation} + e = \SI{1.602176634E-19}{\coulomb} % formats number + units, autospacing, transform to gernam comma + \end{equation} + \begin{equation} + 124\,\si[per-mode=fraction]{\kilo\metre\per\second\squared} % only units + \end{equation} + \begin{equation} + \num{0.0004}\,\lumen % only numbers, \per and \squared do not work + \end{equation} + +\section{Using formulas} + \label{sec: formula} + a numberd formula: + \begin{equation} + \label{eq: einhalb} % always lable your stuff + 0,5=\frac{1}{3} + \end{equation} + \autoref{eq: einhalb} is nice, but how about multiple lines: + \begin{equation} + \begin{split} % you need do nest this + x &= x^2+3 \\ + \Leftrightarrow 0 &= x^2-x+3 \\ + \end{split} + \end{equation} + and how could you align formulas? + \begin{align} + x_1 &= 6 &&|\;\mbox{mit } x \in \mathbb{N} \\ + x_2 &= 33+\abs{\frac{1}{4}} &&|\;x_1+3 \\ + &= 33,25 &&\mbox{| don't number everything} \notag \\ + x_3 &= 10^{22} + \end{align} + +\section{formating code} + \label{sec: code} + use the listings package: + % how to skip fist tab?? + \begin{lstlisting}[language=c] + #include <stdlib.h> + #include <sdtio.h> + + int main(void) { + printf("Hello World"); + return 0; + } + \end{lstlisting} + % or input from external file: + %\lstinputlisting[language=c]{main.c} + +\section{CSV files} + \label{sec: messwerte} + import a csv as table:\\ + \csvautotabular{csv/bsp.csv}\\ + or do it manualy to get more controll: + \begin{table} + \caption{a nice list of numbers} + \begin{tabular}{c|c} + first row & second row \\\hline\hline + \csvreader[ + late after line=\\\hline, + late after last line=\\\hline + ]{csv/bsp.csv}{}{number: $\csvcoli\,\metre$ & is not \csvcoliii} + \end{tabular} + \end{table} + +\clearpage +\KOMAoptions{paper=landscape,pagesize} % rotate page to landscape mode (because why not XD) +\recalctypearea +\chapter{attachment} +% manually include a PDF as not numbered section +\textbf{\Large{Messprotokoll oder so}} % just so it'S not empty +\phantomsection % Anker für den Hyperlink +\addcontentsline{toc}{section}{Messprotokoll} % add to table of content +\chaptermark{Messprotokoll} % change headmark +%\includepdf[pages=-,pagecommand={},width=\paperwidth]{temp.pdf} % comment in to include pdf + +As you can see its also posible to have some pages sideways. Just keep in mind you might need to adapt the margins + +\newpage +\KOMAoptions{paper=portrait,pagesize} % and back +\recalctypearea + +\printbibliography +\noindent\begin{minipage}{\textwidth} % prevent automatic pagebreaks + \listoffigures + \listoftables +\end{minipage} +\end{document} diff --git a/src/HSH-Logo.pdf b/src/HsH-Logo.pdf similarity index 100% rename from src/HSH-Logo.pdf rename to src/HsH-Logo.pdf diff --git a/src/HsH-report.cls b/src/HsH-report.cls index eab5c048c49c0825b785ca46a2f1c665fa75d737..61e1f7ec9182d570d063b5bfbf920655b09de84e 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -11,7 +11,12 @@ \providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro für Betragsstriche \newif\if@german% - +\DeclareOption{german}{% + \PassOptionsToPackage{ngerman}{babel} + \renewcaptionname{ngerman}{\figurename}{Abb.} %Figure + \renewcaptionname{ngerman}{\tablename}{Tab.} %Table + \@germantrue +} \DeclareOption{ngerman}{% \PassOptionsToPackage{\CurrentOption}{babel} \renewcaptionname{ngerman}{\figurename}{Abb.} %Figure @@ -53,9 +58,11 @@ \PassOptionsToPackage{utf8}{inputenc} \PassOptionsToPackage{T1}{fontenc} \PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry} -\PassOptionsToPackage{babel, german=quotes}{csquotes} \PassOptionsToPackage{headsepline}{scrlayer-scrpage} + +\PassOptionsToPackage{backend=biber,style=alphabetic,sorting=nyt}{biblatex} \PassOptionsToPackage{free-standing-units}{siunitx} +\PassOptionsToPackage{babel, german=quotes}{csquotes} \PassOptionsToPackage{european,EFvoltages,straightvoltages}{circuitikz} %used packages: @@ -71,11 +78,14 @@ \if@german\RequirePackage{ziffer}\fi % german dezimal numbers % should these be in? +\RequirePackage{amsmath} +\RequirePackage{amssymb} \RequirePackage{subfigure} \RequirePackage{pdfpages} \RequirePackage{hyperref} \RequirePackage{bookmark} \RequirePackage{csquotes} +\RequirePackage{soul} % config for header and footer \pagestyle{scrheadings} @@ -94,11 +104,18 @@ \newcommand\normalsubscripts{\catcode`\_=8 } % the toggle for italic subscripts \upsubscripts % setting upright as default +% styling for itemize +\renewcommand{\labelitemi}{$\bullet$} +\renewcommand{\labelitemii}{$\circ$} +\renewcommand{\labelitemiii}{$-$} +\renewcommand{\labelitemiv}{$\cdot$} + % do stuff \setlength\parindent{0pt} % indentation of new paragraphs \raggedbottom \renewcommand{\fps@figure}{h!t} % positioning of figures \renewcommand{\fps@table}{h!t} % Positonierung of tables +\renewcommand{\layercontentsmeasure}{\empty} % rulers when using draft disabled \newcommand\declarationAuthorship{ \thispagestyle{plain} @@ -106,7 +123,7 @@ {\rule{\textwidth}{0.1pt}} \vspace{0.5cm} - \renewcommand{\thanks}{\empty} + \renewcommand{\thanks}{\sbox0} \newcommand{\tempA}{ich} \newcommand{\tempB}{} \foreach \x [count=\i] in \@author{ @@ -244,18 +261,13 @@ \vskip 1em {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}% \vskip 2em - {% - \usekomafont{author}{% - \lineskip 0.75em - \begin{tabular}[t]{c} - \parbox{\linewidth}{\centering\@author} - \end{tabular}\par - }% - }% + % Customised: ----------------------------------------------------------- + {\if\@author\@empty\else\usekomafont{author}{\parbox{\dimexpr\linewidth}{\centering\@author}}\fi}% + % end Customised: -------------------------------------------------------- \vskip 1.5em {\usekomafont{date}{\@date \par}}% \vskip \z@ \@plus3fill - {\usekomafont{publishers}{\@publishers \par}}% + %{\usekomafont{publishers}{\@publishers \par}}% \vskip 3em \end{center}\par \@thanks\global\let\@thanks\@empty @@ -446,18 +458,13 @@ \vskip .5em {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}% \vskip 1em - {% - \usekomafont{author}{% - \lineskip .5em% - \begin{tabular}[t]{c} - \@author - \end{tabular}\par - }% - }% + % Customised: ----------------------------------------------------------- + {\if\@author\@empty\else\usekomafont{author}{\parbox{\dimexpr\linewidth}{\centering\@author}}\fi}% + % end Customised: -------------------------------------------------------- \vskip 1em% {\usekomafont{date}{\@date \par}}% \vskip \z@ \@plus 1em - {\usekomafont{publishers}{\@publishers \par}}% + %{\usekomafont{publishers}{\@publishers \par}}% \ifx\@dedication\@empty \else \vskip 2em {\usekomafont{dedication}{\@dedication \par}}% diff --git a/src/HsH-standalone.cls b/src/HsH-standalone.cls new file mode 100644 index 0000000000000000000000000000000000000000..c18f927009b5eb8ad1b5a50051353c2c3b1227ca --- /dev/null +++ b/src/HsH-standalone.cls @@ -0,0 +1,92 @@ +\typeout{Adapted from KOMA script for use in Hochschule Hannover <2020-08-21> Jan Wille} +\NeedsTeXFormat{LaTeX2e} + +\newcommand{\myClassName}{HsH-standalone} +\ProvidesClass{\myClassName}[2020/09/21 HsH Report based on KOMA] +\LoadClass[multi=tikzpicture,multi=circuitikz]{standalone} + +\newcommand{\HsHlogoPath}{HSH-Logo.pdf} +\newcommand{\HsHlogoPage}{1} +\newcommand{\includeHsHlogohere}{\includegraphics[width=5cm,page=\HsHlogoPage]{\HsHlogoPath}} +\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro für Betragsstriche + + +\newif\if@german% +\DeclareOption{german}{% + \PassOptionsToPackage{ngerman}{babel} + \@germantrue +} +\DeclareOption{ngerman}{% + \PassOptionsToPackage{\CurrentOption}{babel} + \@germantrue +} +\DeclareOption{english}{% + \PassOptionsToPackage{\CurrentOption}{babel} +} +\DeclareOption{f1}{% + \renewcommand{\HsHlogoPage}{2} +} +\DeclareOption{f2}{% + \renewcommand{\HsHlogoPage}{3} +} +\DeclareOption{f3}{% + \renewcommand{\HsHlogoPage}{4} +} +\DeclareOption{f4}{% + \renewcommand{\HsHlogoPage}{5} +} +\DeclareOption{f5}{% + \renewcommand{\HsHlogoPage}{6} +} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{standalone}} +\ProcessOptions\relax + +\newcommand*{\@titlehead}{}% +\newcommand{\titlehead}[1]{\gdef\@titlehead{#1}}% +\newcommand*{\@subject}{}% +\newcommand*{\subject}[1]{\gdef\@subject{#1}}% +\newcommand*{\@subtitle}{}% +\newcommand*{\subtitle}[1]{\gdef\@subtitle{#1}}% +\newcommand*{\@publishers}{}% +\newcommand{\publishers}[1]{\gdef\@publishers{#1}}% +\InputIfFileExists{personal.tex}{ + \ClassInfo{\myClassName}{personal.tex was found. Using it...} +}{ + \ClassInfo{\myClassName}{no personal.tex! Configre the titlepage yourselfe} +} + +% enforced options for packages +\PassOptionsToPackage{utf8}{inputenc} +\PassOptionsToPackage{T1}{fontenc} +\PassOptionsToPackage{babel, german=quotes}{csquotes} +\PassOptionsToPackage{free-standing-units}{siunitx} +\PassOptionsToPackage{european,EFvoltages,straightvoltages}{circuitikz} + +%used packages: +\RequirePackage{inputenc} % inputencoding, utf8 recomendet +\RequirePackage{fontenc} % outputencoding, T1 recomendet +\RequirePackage{lmodern} % font +\RequirePackage{graphicx} % required for importing images +\RequirePackage{babel} % required for german names +\if@german\RequirePackage{ziffer}\fi % german dezimal numbers + +% typesetting indexes upright or standart +\def\subinrm#1{\sb{\textnormal{#1}}} +{\catcode`\_=13 \global\let_=\subinrm} +\mathcode`_="8000 +\newcommand\upsubscripts{\catcode`\_=12 } % the toggle for upright subscripts +\newcommand\normalsubscripts{\catcode`\_=8 } % the toggle for italic subscripts +\upsubscripts % setting upright as default + +% keep compatible +\providecommand{\renewcaptionname}[3]{} + +\AtBeginDocument { + \makeatletter + \InputIfFileExists{config.tex}{ + \ClassInfo{\myClassName}{config.tex was found. Using it...} + }{ + \ClassInfo{\myClassName}{no config.tex!! I hope you configered it yourself.} + } + \makeatother +} diff --git a/src/README.md b/src/README.md index 75df13ba88312f3d840bc1da731709b86eebfab4..86a20f0fc96c2d6cd975ea39eaf88b5d1d5b5977 100644 --- a/src/README.md +++ b/src/README.md @@ -1,3 +1,4 @@ # Der Sources Ordner -Hier kommen alle Verwendeten Quelldateien hinein. Angefangen bei den eigenen Klassen über Bibliogrphien bis hin zu Versuchsanleitungen. \ No newline at end of file +This folder is for additional source files. It provides the custom classes and support files as well as being good for storing your assignments or +documents you need for information. \ No newline at end of file diff --git a/src/config.tex b/src/config.tex index 98423800d5412c5be5d9d82e26ed4fe536727399..e9dcc6619224a3e067038f0dfe7be8c0dbf08da1 100644 --- a/src/config.tex +++ b/src/config.tex @@ -1,21 +1,28 @@ -\renewcaptionname{ngerman}{\abstractname}{Abstract} %Abstract +\renewcommand{\abstractname}{Abstract} %Abstract + +\ifx\KOMAScriptVersion\undefined\else % check if KOMA is used + \g@addto@macro\@floatboxreset\centering % center all floats + \setcapwidth[c]{0.8\textwidth} % center all captions + %\setcapwidth[c]{0.8\textwidth} % leftalign all captions +\fi \@ifpackageloaded{biblatex}{ \ExecuteBibliographyOptions{ - sorting=nyt, bibwarn=true, isbn=false, - url=true + url=false } }{}% \@ifpackageloaded{csquotes}{ \MakeOuterQuote{"} }{}% \@ifpackageloaded{siunitx}{ + \if@german + \sisetup{output-decimal-marker={,}} + \fi \sisetup{ free-standing-units, tight-spacing=true, per-mode=symbol, - output-decimal-marker={,}, scientific-notation=engineering, round-mode = places, round-precision = 3, @@ -28,10 +35,14 @@ stringstyle=\color{blue}, showstringspaces=false, basicstyle=\footnotesize, + tabsize=4, literate={Ö}{{\"O}}1{Ä}{{\"A}}1{Ãœ}{{\"U}}1{ß}{{\ss}}1{ü}{{\"u}}1{ä}{{\"a}}1{ö}{{\"o}}1, escapeinside={(*@}{@*)}, } }{}% +\@ifpackageloaded{csvsimple}{ + \csvstyle{every csv}{separator=semicolon} +}{}% \@ifpackageloaded{circuitikz}{ \ctikzset{ font=\footnotesize, @@ -42,11 +53,13 @@ } }{}% \@ifpackageloaded{pgfplots}{ - \usepackage{pgfplotstable} \usepgfplotslibrary{fillbetween} % mark areas under or between graphs + \usetikzlibrary{patterns} % for using pattern in plots + \if@german + \pgfplotsset{/pgf/number format/use comma} + \fi \pgfplotsset{ compat=1.16, - /pgf/number format/use comma, /pgf/number format/read comma as period, every tick label/.append style={font=\tiny}, every axis legend/.append style={font=\footnotesize}, @@ -64,6 +77,8 @@ error mark options={mark size=1pt,rotate=90}}, } } +}{}% +\@ifpackageloaded{pgfplotstable}{ \pgfplotstableset{ col sep=semicolon, % global seperator for csv files } diff --git a/src/help_clsguide.pdf b/src/help_clsguide.pdf deleted file mode 100644 index 767f8aa0274f89faa51f8c837cef7ea011305bf0..0000000000000000000000000000000000000000 Binary files a/src/help_clsguide.pdf and /dev/null differ diff --git a/src/help_hefferon.pdf b/src/help_hefferon.pdf deleted file mode 100644 index 2a9853fe23af353c82d3a682b0ea7f89190ed433..0000000000000000000000000000000000000000 Binary files a/src/help_hefferon.pdf and /dev/null differ diff --git a/src/localBibliography.bib b/src/localBibliography.bib new file mode 100644 index 0000000000000000000000000000000000000000..ff61b9e8eb9d7f086266caa8103f3afc9d047436 --- /dev/null +++ b/src/localBibliography.bib @@ -0,0 +1,116 @@ +@book{westermann:tabellenbuch, + author = {Dr. Michael Dzieia and Heinrich Hübscher and Dieter Jagla and Jürgen Klaue and Hans-Joachim Petersen and Harald Wickert}, + title = {Elektronik Tabellen: Betriebs- und Automatiesierungstechnik}, + year = {2016}, + edition = {2}, + publisher = {Westermann}, + isbn = {9-783142-450353}, + language = {GER}, +} +@manual{laboranleitung:physik, + author = {Fachschaft Physik}, + editor = {}, + title = {Laboranleitung für das Physiklabor}, + date = {2020-03-01}, + url = {https://docs.f1.hs-hannover.de/dl_fachgebiete/labore.php?id_fachgebiet=4}, + urldate = {2020-03-23}, + language = {GER} +} +@manual{laboranleitung:elektrotechnik, + author = {Fachschaft Grundlagen Elektrotechnik}, + title = {Laboranleitung für das Labor Elektrotechnische Grundlagen}, + date = {2016-06-07}, + url = {https://docs.f1.hs-hannover.de/dl_fachgebiete/labore.php?id_fachgebiet=3}, + urldate = {2020-03-30}, + language = {GER} +} +@manual{laboranleitung:messtechnik1, + author = {Prof. Dr.-Ing. S. Beißner and Prof. Dr.-Ing. M. Koch and Prof. Dr.-Ing. M. Kesting and + Prof. Dr.-Ing. M. Lassahn and Prof. Dr.-Ing. D. Hisseine and M.Sc. Brech and + M.Eng. Schwarze and Prof. Dr.-Ing. D. Stolle}, + title = {Laboranleitung für das Labor Grundlagen Messtechnik}, + date = {2019-08-12}, + url = {https://moodle.hs-hannover.de/pluginfile.php/359636/course/section/183463/LGM-Laboranleitung_EIT_20190812.pdf}, + urldate = {2019-08-11}, + language = {GER} +} +%-----------------------Templates-------------------------------------------------------- +% A single-volume book with one or more authors +@book{1, + author = {}, + title = {}, + date = {}, + year = {}, + edition = {}, + publisher = {}, + isbn = {}, + language = {}, + location = {}, + series = {}, + abstract = {}, + pagetotal = {}, + url = {}, + urldate = {} +} +% article in a journal, magazine, newspaper, or other periodical +@article{2, + author = {}, + title = {}, + journaltitle= {}, + date = {}, + year = {}, + journalsubtitle= {}, + issuetitle = {}, + series = {}, + language = {}, + origlanguage= {}, + translator = {}, + pages = {}, + url = {}, + urldate = {} +} +% technical report/paper, published by a university +@report{3, + author = {}, + title = {}, + type = {}, + institution = {}, + date = {}, + year = {}, + url = {}, + urldate = {}, + version = {}, + language = {} +} +% Technical or other documentation, not necessarily in printed form +@manual{4, + author = {}, + editor = {}, + title = {}, + date = {}, + year = {}, + url = {}, + urldate = {}, + language = {} +} +% web sites which are intrinsically online resources +@online{5, + author = {}, + title = {}, + date = {}, + year = {}, + url = {}, + urldate = {}, + language = {} +} +% a Thesis +@phdthesis{6, + author = {}, + title = {}, + school = {}, + date = {}, + year = {}, + address = {}, + month = {}, + note = {}, +} \ No newline at end of file diff --git a/src/personal.tex b/src/personal.tex index c49f78a9baeb094702df896d90dc06d5dba34743..196aa7cf888c0623637d78afb36164e0cfe3d6f8 100644 --- a/src/personal.tex +++ b/src/personal.tex @@ -1,13 +1,9 @@ \author{ - Max Mustermann\thanks{test}, - Mira Musterfrau\thanks{temp}, Max Mustermann, - Mira Musterfrau, - Max Mustermann + Mira Musterfrau } -\titlehead{Fachbereich} -\subject{Grund der Arbeit} -\title{Mustertitel} -\subtitle{Untertitle} -\date{\today} -\publishers{HERAUSGEBER} +\titlehead{titlehead} +\subject{Subject} +\title{Title} +\subtitle{Subtitle} +\date{\st{01.10.2020}\\\today} diff --git a/svg/README.md b/svg/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c2f6bb463cc10f1a98a38b88c2f44add0016862a --- /dev/null +++ b/svg/README.md @@ -0,0 +1,3 @@ +# SVG-images folder + +using Inkscape you can create pretty much every image you need and export it for use inside a Latex document \ No newline at end of file diff --git a/svg/exampleSVG.svg b/svg/exampleSVG.svg new file mode 100644 index 0000000000000000000000000000000000000000..c9220145dbeaadda2264a3c0336fe83979e51e6e --- /dev/null +++ b/svg/exampleSVG.svg @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + sodipodi:docname="exampleSVG.svg" + inkscape:version="1.0 (4035a4fb49, 2020-05-01)" + id="svg8" + version="1.1" + viewBox="0 0 24.368297 12.207536" + height="12.207536mm" + width="24.368298mm"> + <defs + id="defs2" /> + <sodipodi:namedview + inkscape:document-rotation="0" + inkscape:object-nodes="true" + inkscape:snap-midpoints="false" + inkscape:snap-smooth-nodes="true" + inkscape:snap-intersection-paths="true" + inkscape:object-paths="true" + inkscape:window-maximized="1" + inkscape:window-y="-8" + inkscape:window-x="1912" + inkscape:window-height="1017" + inkscape:window-width="1920" + showgrid="false" + inkscape:current-layer="layer2" + inkscape:document-units="mm" + inkscape:cy="-49.651496" + inkscape:cx="307.94677" + inkscape:zoom="1.4142136" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + borderopacity="1.0" + bordercolor="#666666" + pagecolor="#ffffff" + id="base" /> + <metadata + id="metadata5"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + style="display:inline" + transform="translate(113.63294,-60.18729)" + id="layer1" + inkscape:groupmode="layer" + inkscape:label="Ebene 1" /> + <g + transform="translate(-6.3142424,-29.850761)" + inkscape:label="Objekt 2" + id="layer2" + inkscape:groupmode="layer"> + <path + inkscape:connector-curvature="0" + id="path825" + d="M 18.123958,36.987063 V 37.8082 38.628824 L 19.546094,37.8082 Z m -8.465633,0.68833 v 0.265617 h 8.4646 v -0.265617 z" + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ff0000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" /> + <path + inkscape:connector-curvature="0" + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#0000ff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" + d="m 16.512805,32.882051 0.410569,0.711125 0.410311,0.710681 0.821294,-1.421749 z m -6.987289,4.828927 0.132809,0.230032 7.330559,-4.2323 -0.132809,-0.230032 z" + id="path834" /> + <path + sodipodi:nodetypes="ccccccccccc" + id="path836" + d="m 26.544685,34.280017 -0.212525,0.793157 -0.212394,0.792661 1.586071,-0.424585 z m -8.355326,-1.526192 -0.03438,0.128283 -0.03438,0.128284 8.176176,2.1908 0.06875,-0.256568 z" + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#005500;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" + inkscape:connector-curvature="0" /> + <text + id="text840" + y="32.97942" + x="21.067448" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:3.175px;line-height:1.25;font-family:Arial;-inkscape-font-specification:'Arial Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial;stroke-width:0.264583" + y="32.97942" + x="21.067448" + id="tspan838" + sodipodi:role="line">$Z_1$</tspan></text> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:3.175px;line-height:1.25;font-family:Arial;-inkscape-font-specification:'Arial Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583" + x="13.295312" + y="40.984444" + id="text844"><tspan + sodipodi:role="line" + id="tspan842" + x="13.295312" + y="40.984444" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial;stroke-width:0.264583">$Z_{1.1}$</tspan></text> + <text + id="text848" + y="34.599991" + x="13.730747" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:3.175px;line-height:1.25;font-family:Arial;-inkscape-font-specification:'Arial Bold';text-align:end;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Arial;-inkscape-font-specification:Arial;text-align:end;text-anchor:end;stroke-width:0.264583" + y="34.599991" + x="13.730747" + id="tspan846" + sodipodi:role="line">$Z_{1.2}$</tspan></text> + </g> + <g + transform="translate(-11.131775,-31.878105)" + style="display:inline" + inkscape:label="Objekt" + id="layer3" + inkscape:groupmode="layer" /> +</svg> diff --git a/test.tex b/test.tex deleted file mode 100644 index c64ab0509b13e6ed202d605302415e7c317c0836..0000000000000000000000000000000000000000 --- a/test.tex +++ /dev/null @@ -1,39 +0,0 @@ -\documentclass[11pt,a4paper,twoside,f1,ngerman]{HsH-report} - -\usepackage{color} -\usepackage{lipsum} -\usepackage{siunitx} - -\begin{document} - -\pagenumbering{Roman} -\maketitle -\declarationAuthorship - -\begin{abstract} - \lipsum[5-8] -\end{abstract} - -\tableofcontents - -\cleardoublepage % unbedingt erforderlich bei Doppelseitigem layout vor neuer Seitennummerreirung! -\pagenumbering{arabic} % Seitennummerierung normale zahlen - -\chapter{one} - \label{chap: one} - {\color{red}test} und stuff - \begin{figure} - \centering - \includegraphics[width=.15\textwidth]{img/bild} - \caption{test} - \end{figure} - - noch ein test \normalsubscripts$R_t$ \upsubscripts$R_t$ - - mit einheit: $R=200\,\milli\ohm+ \SI{0.34567453}{\volt\per\metre}$ - \vspace{2cm}\\\pagebreak - eine zahl: $3,5+3.5$\\ - - -\listoffigures -\end{document}