401 reputation
110
bio website dbrgn.ch
location Switzerland
age 22
visits member for 1 year, 2 months
seen 15 hours ago
stats profile views 34

I'm a computer science student and software developer from Switzerland. I especially enjoy working with Python and Django.

I usually post my OSS Code at https://github.com/gwrtheyrn.


Mar
27
comment TikZ: Diagram of a perceptron
Thanks, this helped!
Mar
26
comment TikZ: Diagram of a perceptron
Thanks for this answer, very appreciated :) The lines between the inputs and the sum function are not straight, but it looks fine the way it is!
Mar
26
comment TikZ: Diagram of a perceptron
@percusse ok, i'll do that next time :)
Mar
26
comment TikZ: Diagram of a perceptron
@percusse The problem is that I don't know what approach/tikzlibrary/layout to use. Therefore a MWE would be just a "base skeleton" with the standalone documentclass. PeterGrill: Ok, I could split it up into different questions (e.g. how to align the inputs around the sum function). But maybe there's a layout or library well suited for this problem, that's why I'm asking.
Feb
20
comment Flexible vspace
Thanks, I just saw your edit when I wanted to post a minimal example :) Works now.
Feb
20
comment Flexible vspace
Is there a way to prevent the items showing up in the table of contents?
Feb
10
comment Flexible vspace
thanks, it was an error on my side :) It works great now (although I use 7mm as space before, instead of \topsep.
Feb
10
comment Flexible vspace
Thanks for the extensive answer. What I don't understand: Why do you define a diarymark command, but never use it? Also, pdflatex complains about "Illegal parameter number in definition of \diarydate". If I add a [1] parameter count, another error message pops up: "LaTeX Error: Something's wrong--perhaps a missing \item"
Feb
10
comment Flexible vspace
@DavidCarlisle Thanks, but in this case I don't want the maximum. Rather, I want the diarydate not to add any space at all when following a heading.
Jan
21
comment Making a shorter minus
Simple macro for this: \newcommand{\unaryminus}{\scalebox{0.75}[1.0]{\( - \)}}. Then you can insert a unary minus with \unaryminus.
Jan
16
comment Changing the working directory when including files in a subdirectory
Same issue as @JamesFennell here. Would be great if Stephan could fix that in the answer.
Jan
13
comment Read authors from file
Parbox had some problems with alignment, the varwidth package and \author{\begin{varwidth}{\linewidth}\centering\authors@final@list\end{varwidth}‌​} worked perfectly though.
Jan
13
comment Read authors from file
This is awesome, thanks! :) By the way, an easier solution than overwriting maketitle would be \author{\parbox{\linewidth}{\centering\authors@final@list}}%, right? Bonus is, this works with scrartcl too. The adjusted version (which also supports fallback value as a 2nd argument) is here: github.com/dbrgn/texutils/blob/master/authorsfromfile.tex
Jan
13
comment Read authors from file
Thanks for your effort, I'll accept your answer :) Two details I noted: It doesn't cut off the part inside the parentheses (but that wasn't strictly required) and if the author list is too long, it gets cut off. I worked around that by using \\ as a separator, but a generic approach that would work with commas too would be nicer. Also, I think it would probably be cleaner to simply "return" the text to be used inside \author, so that the user could still process it, don't you think?
Jan
13
comment Read authors from file
This looks nice, but the requirement of LaTeX3 is a disadvantage, as many people still use Texlive2009 (which afaik doesn't ship LaTeX packages).
Jan
13
comment Read authors from file
Thanks for the answer, this looks interesting. I guess this wouldn't work if the contributors have middle names (like John Michael Doe (jmdoe), right? Would there be a fix for that? (Sorry for not clarifying that from the beginning...)
Jan
13
comment Read authors from file
@EthanBolker Thanks, that's a very good point that I totally forgot about :) Still, if there is a native TeX solution that would be nice.
Jan
12
comment Distribute LaTeX Package with Document
@Herbert oh, it worked by putting the *.sty files (there were two of them) directly in my project root. But as far as I know, a package can also contain other files besides *.sty, is that right? Is there a way to keep package files together in a directory, instead of adding all of them to the current directory? In any case, if you put this information in a proper answer, I'll accept it :)
Jan
12
comment Distribute LaTeX Package with Document
@Herbert that sounds like the perfect solution, but it doesn't seem to work. I added a "texmf" folder to the project folder that looks like this: hastebin.com/xeciramafe.txt Any clue about why it isn't working? (It works if I place that folder in my homedir)
Dec
30
comment Table right of TikZ image
Looks great now, thanks all for your help! :) tmp.dbrgn.ch/screenshots/20121230_151437.png