Skip to content

Commit

Permalink
Add latexindent config and .editorconfig, reformat all tex files
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Jan 18, 2018
1 parent 38ac0f4 commit ad80a9b
Show file tree
Hide file tree
Showing 12 changed files with 559 additions and 510 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
main-*.pdf
graphics/*.pdf_tex

# latexindent
*.bak
*.bak?
*.bak??

# tex4ht
*.4ct
*.4tc
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ We are aware that the University of Stuttgart [recommends to use the Hardvard st
However, this style is not common in natural sciences and information science.


### Q: How can I reformat my .tex files?

Execute `latexindent -l -s -sl -w main-english.tex`


### Q: How I want to obey the one-sentence-per-line rule.

Execute `latexindent -m -l -s -sl -w main-english.tex`


### Q: Aren't there other templates?

Sure. The [Hagenberg Thesis Document Collection](https://github.com/Digital-Media/HagenbergThesis) seems to be the most promising.
Expand Down
Loading

0 comments on commit ad80a9b

Please sign in to comment.