Apple computers are awesome: they are fancy machines which make your daily life easier. But every developer knows that there are a lot of things to install and configure before you can actually start programming. This guide is an overview of how I configure my Mac for development. I’m sure everyone has his own habits […]
Tag Archives: latex
Syntax highlighting in LaTeX with lstlisting
When adding code snippets to my LaTeX documents, I use lstlisting. It is a syntax highlighting environment that can easily be tweaked to match your own styling. To do this you need to use the package listings: \usepackage{listings}. Code snippets are added like this: \begin{lstlisting} Some super cool code snippet… \end{lstlisting} Adding a code snippet from file […]
LaTeX and Fuzzy Logics
Fuzzy logics (especially fuzzy numbers and fuzzy intervals) can be beautifully plotted on a graph, …. aaaand of course, you can also do this using LaTeX and pgfplots! \begin{tikzpicture} \begin{axis}[ height=3.5cm, width=\textwidth/2, ytick={0,1}, xtick={4,6}, area style, xlabel={$$}, xmin=0,xmax=10, axis x line=bottom, axis y line=left, %ylabel={$$}, enlarge x limits=false ] \addplot[fill, red, opacity=0.2] coordinates {(2.5,0)(4,1)(6,1)(7.5,0)} \closedcycle; […]
LaTeX: graphs with coordinates input
In one of my previous posts I wrote about plotting LaTeX function graphs using pgfplots. But sometimes you don’t have a function rule, but just a set of data points. Using pgfplots you can easily plot a function using those coordinates. The following Tex code will draw a line through each of the data points. \begin{tikzpicture}[>=stealth] \begin{axis}[ […]
LaTeX grafieken tekenen
LaTeX is een opmaaktaal die vaak door wetenschappers gebruikt wordt. TeX is nogal handig om wiskundige formules e.d. in te voegen. Daarnaast is het plotten van functie grafieken iets dat elke wetenschapper al wel eens moet doen. Door gebruik te maken van het pgfplots pakket, kan je mooie grafieken genereren. Een eenvoudig voorbeeld van een grafiek ziet […]