Posts Tagged ‘size’

Struct sizes in C++

Posted: 24th March 2012 by Tim in C++
Tags: , , , , , , , , , , ,

Consider the following program: #include <iostream> struct A {     char a;     long b;     char c; }; struct B {     char a;     char c;     long b; }; int main() {     A a;     B b;     std::cout << “sizeof(a): ” << sizeof(a) << std::endl;     std::cout << “sizeof(b): ” << sizeof(b) << std::endl;     return 0; } To summarize, it […]

LaTeX length units

Posted: 26th May 2010 by Tim in LaTeX
Tags: , , , , , , , , , , ,

There are many configurations and commands in LaTeX which require lengths to be set. The following length units can be used: in – imperial inch pt – point (1/72 of an inch) cm – metric centimeter mm – metric millimeter em – width of a capital “M” in the current font settings ex – width […]

Changing font sizes in LaTeX

Posted: 1st October 2009 by Tim in LaTeX
Tags: , , , , ,

Changing the font sizes in LaTeX can be done quite easily without having to specify the size in pixels, points or other measurements. There are ten relative sizes which may be used (ranked from smallest to largest): \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge There are two ways to specify the size. […]