Author: admin
-
Frustrating Start with Oracle
Today, as a New Year’s resolution (and for my work), I started learning how to work with Oracle. I know MySQL and MS SQL quite well, so I thought that this would be a piece of cake. How wrong I was!
Before starting, I had to download Oracle. There is a msi-file for Windows, but when you click it, it can’t finish the installation process and hangs. Well, so I thought, this might be a problem with the rights, so I started it as the administrator: same problem. After searching the internet for 15 minutes, I discovered that many had … Read the rest “Frustrating Start with Oracle”
-
Adding a new environment for code listings in LaTeX
Documentation of code in LaTeX is easy: Just use the package listings. To be able to refer to those code snippets, you can define a new environment as follows:
12\usepackage{caption}\DeclareCaptionType[placement={!ht}]{listing}[Listing][Code Listings]The name of the environment is {listing} and the name used for the caption is [Listing]. It was not necessary to add the name as the default is to take the name of the environment with the first character capitalized. … Read the rest “Adding a new environment for code listings in LaTeX”
-
LaTeX equations in sans-serif font
I write most of my text using a sans-serif font using the following code in my preamble:
1\renewcommand{\familydefault}{\sfdefault}Text looks than like this:
However, the equations are shown in a serif-font:
Although no big issue for me, I looked for a solution that produces my equations also in sans-serif format. There is a package for this called newtxsf that does exactly that:
Just add the package in your preamble:
1\usepackage{newtxsf} -
Producing stand-alone figures with TikZ in LaTeX
With TikZ (the abbreviation for This is not a drawing program in German) you can produce beautiful figures for your papers (look here for some examples). One problem that often arises is that having the TikZ-code in your LaTeX file is not very efficient when working on the figure: You don’t want to regenerate your paper every time you change something in your figure. Another problem arises when your TikZ code is very long. LaTeX might complain and will not generate the figure.
The easiest way to circumvent these problems is by using a stand-alone file that generates a pdf-file … Read the rest “Producing stand-alone figures with TikZ in LaTeX”
-
Automatic line breaks in LaTeX tables
Tables with lots of text in LaTeX often lead to tables that do not fit on a page. This post shows how to produce tables with automatic line breaks. Here is a simple example of a badly formatted table:
The tabularx package has the possibility to break lines automatically by using the column specifier X:
Posts navigation
Categories
Recent Posts
- Automatic line breaks in LaTeX tables 51 views
- Tables with footnotes in LaTeX 12 views
- Producing stand-alone figures with TikZ in LaTeX 7 views
- Ibuffer for looking at your buffers in Emacs 3 views
- How to generate nice nomenclatures in LaTeX 3 views
- GAMS mode goodies: Looking up the identifier part of a parameter, variable or set 3 views
- Indenting with Gams-mode 2 views
- Bibliography with abstracts in LaTeX 2 views
- Starting your Jupyter Notebook with a double-click 2 views
- Syntax Coloring in Gams-Mode 2 views