oBook‎ > ‎

Latex Tips

IEEE Trans Lastname, First Init or First Init, Lastname

posted Sep 21, 2015, 6:14 PM by Javad Taghia   [ updated Sep 21, 2015, 6:15 PM ]

To change to order of the last name and the first name init in IEEE. The original one is FirstName Init, Last name. 
In the Miktex installation folder
~\portable_latex\bibtex\bst\ieeetran
change the IEEEtran.bst to have the format as, you may use the files already edited in https://drive.google.com/file/d/0BxxliwIPgBT3NmJQZ2cza0xES2s/view?usp=sharing
FUNCTION {default.name.format.string}{ "{vv~}{ll}{, jj, }{~f.}" }

Thanks to Lili for figuring it out :)

Abbreviation Generator

posted Sep 20, 2015, 7:43 PM by Javad Taghia

Journal abbreviations source 
Journal names should be abbreviated according to the List of Title Word Abbreviations: 
http://www.issn.org/services/online-services/access-to-the-ltwa/."

Use this online tool:
http://biochemistri.es/AbbrevJ

Use this file: (https://drive.google.com/file/d/0BxxliwIPgBT3TDVuSkRqMGRnY3c/view?usp=sharing)
or http://www.ams.org/msnhtml/serials.pdf




Math symbols Latex \varrho \epsilon

posted Sep 20, 2015, 4:15 AM by Javad Taghia

Some fonts change not only the text font, but also the math font. This is the case with mathptmx. It is possible to grab a single symbol from another font though:

enter image description here

\documentclass{article}

\usepackage{mathptmx}

\DeclareSymbolFont{newfont}{OML}{cmm}{m}{it}% Computer Modern math font
\DeclareMathSymbol{\Epsilon}{3}{newfont}{15}% Symbol 15
\DeclareMathSymbol{\Varrho}{3}{newfont}{37}% Symbol 37

\begin{document}

\begin{tabular}{ll}
  $\Epsilon$ & epsilon \\
  $\varepsilon$ & varepsilon \\
  $\rho$ & rho \\
  $\Varrho$ & varrho
\end{tabular}

\end{document}

If you want to find out where symbols reside within the font, see How do I know what symbols/characters are available in a font package?.

Writing in red in latex

posted Aug 6, 2015, 2:11 AM by Javad Taghia

Add it before \begin{docmumnt}: \newcommand*\red{\color{red}}
Use it as: {\red text}

http://tex.stackexchange.com/questions/22796/how-to-define-macro-for-colored-text

Brackets and Parentheses Controlling types and sizes

posted Jun 22, 2015, 5:29 AM by Javad Taghia

LATEX markupRenders as
\big( \Big( \bigg( \Bigg(\big( \Big( \bigg( \Bigg( \big.
\big] \Big] \bigg] \Bigg]\big] \Big] \bigg] \Bigg]
\big\{ \Big\{ \bigg\{ \Bigg\{\big\{ \Big\{ \bigg\{ \Bigg\{
\big \langle \Big \langle \bigg \langle \Bigg \langle\big \langle \Big \langle \bigg \langle \Bigg \langle
\big \rangle \Big \rangle \bigg \rangle \Bigg \rangle\big \rangle \Big \rangle \bigg \rangle \Bigg \rangle

Nomenclature

posted Jun 14, 2015, 10:46 PM by Javad Taghia

I have used the package nomencl. In my code I have incorporated the \nomenclature as well. But when I compile, it is not showing me any results. My code is :

\documentclass[pdftex,12pt,a4paper]{report}
\usepackage{nomencl}
\makenomenclature
\begin{document}
---page numbering and other things included-----
\include{symbols}
-----others---
\end{document}

symbols.tex

\chapter*{NOTATIONS}
\addcontentsline{toc}{chapter}{Notations}
\nomenclature{$G_e$}{Equivalent Shear Modulus}
\printnomenclature

Shall I use \nomenclature while explaining the chapter. Will It give me the same results? like

\documentclass[pdftex,12pt,a4paper]{report}
\usepackage{nomencl}
\makenomenclature
\begin{document}
---page numbering and other things included-----
\include{symbols}
\include{chap3-calculate_w}
-----others---
\end{document}

symbols.tex

\chapter*{NOTATIONS}
\addcontentsline{toc}{chapter}{Notations}
\printnomenclature

chap3-calculate_w.tex

\chapter{SETTLEMENT RESPONSE OF GEOSYNTHETIC REINFORCED GRANULAR FILL SOFT SOIL}
\label{chap:W}
\section{INTRODUCTION}
In this thesis, the methodology to determine an  Equivalent single layer shear modulus \nomenclature{$G_e$}{Equivalent Shear Modulus},$G_e$ value for a...etc

I am not getting the output in both these. Can someone help me with this?

asked Sep 8 '11 at 3:16
   
Please edit your MWE and format the code block by selecting it and clicking on the {} symbol. Thanks. Also, review your earlier questions and accept any answers that were helpful to you. – Peter Grill Sep 8 '11 at 3:23 
   
After running LaTeX, did you run makeindex <filename>.nlo -s nomencl.ist -o <filename>.els, and then rerun LaTeX? –  Peter Grill Sep 8 '11 at 3:43
   
Since you are using TeXMaker you need to define the sequence of commands used by the Quick Build command via the Configure Texmaker dialog to include the above mentioned options tomakeindex. –  Peter Grill Sep 8 '11 at 5:50 
   
I'd just like to add that I had a similar issue, and it turned out to be a problem caused by using \pagenumbering{gobble} - a command that "eated up" the nomenclature section in the compiled document. –  arbolitoloco Mar 5 at 22:27

arara has a predefined nomencl rule, so you can use (from the nomencl documentation) the following directives:

% arara: pdflatex
% arara: nomencl
% arara: pdflatex
\documentclass{article}

\usepackage{nomencl}
\makenomenclature

\begin{document}

\section*{Main equations}

\begin{equation}
a=\frac{N}{A}
\end{equation}%

\nomenclature{$a$}{The number of angels per unit area}%
\nomenclature{$N$}{The number of angels per needle point}%
\nomenclature{$A$}{The area of the needle point}%

The equation $\sigma = m a$%
\nomenclature{$\sigma$}{The total mass of angels per unit area}%
\nomenclature{$m$}{The mass of one angel}
follows easily.

\printnomenclature

\end{document}

Running arara:

$ arara mydoc.tex
  __ _ _ __ __ _ _ __ __ _
 / _` | '__/ _` | '__/ _` |
| (_| | | | (_| | | | (_| |
 \__,_|_|  \__,_|_|  \__,_|

Running PDFLaTeX... SUCCESS
Running Nomencl... SUCCESS
Running PDFLaTeX... SUCCESS

The output:

Output

answered Feb 3 '13 at 14:15
Paulo Cereda
25.7k693166

The nomencl package documentation explicitly states the compile sequence in order to use the package:

latex <filename>.tex
makeindex <filename>.nlo -s nomencl.ist -o <filename>.nls
latex <filename>.tex

If you're using pdflatex, the same sequence holds. After following this sequence, your nomenclature chapter is printed, as expected:

Nomenclature

answered Sep 8 '11 at 3:44
Werner
255k23500843
   
I'm sorry I can't get it. I compiled using pdflat and then quick builded it. But I am not getting the results. –  Reshma B Sep 8 '11 at 4:06
   
You need to compile using pdflatex, then run makeindex, then run pdflatex again. What doesquick build mean? –  Werner Sep 8 '11 at 4:22
   
Kind of annoying - but I guess one can build this into your compile commands. –  Forkrul AssailAug 29 '12 at 16:59
1 
@ForkrulAssail arara aside, this can be integrated with latexmk –  mlt May 20 '14 at 23:21

Using kile, I have configured the QuikBuild command as follows:

go to: Settings -> Configure Kile... -> Build

create a new tool:

  • Name: "MakeIndexNomencl"
  • Command: makeindex
  • Options: '%S.nlo' -s nomencl.ist -o '%S.nls'

add MakeIndexNomencl and a second PDFLaTeX to the QuickBuild tool:

  • PDFLaTeX
  • MakeIndexNomencl
  • PDFLaTeX
answered Feb 3 '13 at 13:43
sergej
1,389318

This may have been answered sufficiently elsewhere, but I configured TeXmaker to do this automatically by adding the flowing line of code to the makeindex. I imagine it maybe possible to do something similar in other editors.

Go to;

options,

Configure TeXmaker,

then in the makeindex box add

%.nlo -s nomencl.ist -o %.els

I THINK .nls IS WORKING !!!

to the end of whatever is already in the box, separated by a space.

I am using TeXmaker under windows 7 and this worked for me, hopefully its helpful.

answered Oct 3 '14 at 9:40

Latex type MS-Word document

posted Nov 30, 2014, 8:09 PM by Javad Taghia

http://www.jchl.co.uk/computing/wordlatex.htm

It is impossible to completely imitate (La)TeX in Word. If you just want the font, then there is an OpenType version of Computer Modern, the default font of TeX. If you want the margins, just measure them on a LaTeX document and then set them in Word accordingly (I would recommend that you use KOMA Script or memoir as a base, not the default LaTeX classes, as the look imo better on A4 and letter paper.)

There is also a LaTeX template for Word. Since I don't own Word, I can't tell how good it looks.

PSfrag

posted Jul 22, 2014, 6:52 PM by Javad Taghia   [ updated Jul 22, 2014, 6:52 PM ]

One easy way to create figures with latex formula is using PSfrag. For this purpose we need three things to do: 
1. Have a eps figure ready and put text boxes with tags on the figure. Then in the latex file we will substitute the tags with proper mathematical symbols. 
Eps files can be created and tagged by: Inkscape; GIMP or WinFig
2. We need to add \usepackage{psfragand \usepackage{graphicx,color} to our latex file. 
3. Using the following code arrangement:
\begin{figure}[h]
\centering
\psfrag{I1}[][]{$I_1$}
\includegraphics[scale=0.5]{efigs/testfig.eps}
\caption{}
\end{figure}
The following is other ways for using PSfrag:
 \psfrag{tag}[position][psposition][scale][rotation]{LaTeX construction}
\psfrag{Zfn}[Bc][Bc][0.9]{$f(n)$}
\psfrag{ZfnR}[Br][Br][0.9]{$f(n)$}
\psfrag{Za}[Bc][Bc][0.9]{$a$}
\psfrag{Zfnb}[Bc][Bc][0.9]{$f(n/b)$}
\psfrag{Zfnb2}[Bc][Bc][0.9]{$f(n/b^2)$}
\psfrag{ZafnbR}[Br][Br][0.9]{$a f(n/b)$}
\psfrag{Za2fnb2R}[Br][Br][0.9]{$a^2 f(n/b^2)$}
\psfrag{Zlogbn}[Bc][Bc][0.9]{$\log_b n$}
\psfrag{Znlogba}[Bc][Bc][0.9]{$n^{\log_b a}$}
\psfrag{ZT1}[Bc][Bc][0.9]{$\Theta(1)$}
\psfrag{ZTnlogbaR}[Br][Br][0.9]{$\Theta(n^{\log_b a})$}
\psfrag{ZTotalR}[Br][Br][0.9]{Total: $\displaystyle\Theta(n^{\log_b a}) +
\sum_{j=0}^{\log_b n-1} a^j f(n/b^j)$}

Enumerate

posted May 18, 2014, 1:44 PM by Javad Taghia   [ updated May 18, 2014, 1:44 PM ]

\usepackage{enumerate}
\begin {enumerate} [i] % use I for capital Greek
\item ...
\item ...
\end {enumerate}

General tips

posted May 18, 2014, 2:35 AM by Javad Taghia   [ updated May 18, 2014, 2:35 AM ]


soruce: http://www.bgu.ac.il/~sgabriel/latextips.html
Contents:
  • Math
  • Page Settings
  • Slides
  • Tables
  • Figures
  • Algorithms
  • Bibliography
  • PDF
  • Fonts

Math

Compound math symbols

To produce a compound math symbold, e.g., a right arrow with, e.g., the text 'Lemma 1.2' on top, use:
$\stackrel{\mbox{\tiny Lemma 1.2}}{\Rightarrow}$
Another example:
$\stackrel{def}{\equiv}$

Overbrace/Underbrace

To have math with overbrace or underbrace, use:
$\overbrace{x+y}^{sum}=\underbrace{x \cdot y}_{\mbox{product}}$

Multi-valued Functions

To state a multi valued function, use:
$$
z = \left\{
\begin{array}{ll}
1 & x >0 \\
0 & \mbox{otherwise}
\end{array}
\right.
$$

Equation arrays with (some) equation numbers

The eqnarray environment produces a math-mode environment with an array of 3 columns aligned {rcl}. E.g.
\begin{eqnarray}
|O| & \leq & |O \setminus A| + |A| \leq \label{eq:start} \\
& \leq & |A| + |A| \leq \nonumber \\
& \leq & 2|A|
\end{eqnarray}
Notice the \nonumber on the second line which omits the number. If all lines should be number-less, you can use\begin{eqnarray*} instead of \begin{eqnarray}.

Page Settings

Fullpage

In order to have text written on entire page, consider using the fullpage package, with the additional
\addtolength{\voffset}{-1.0cm}
\addtolength{\textheight}{3.5cm}

Explicitly Determining Page Margins

Consider using the geometric package, e.g.
\usepackage[hmargin=2.5cm,vmargin=4cm]{geometry}
produces 2.5cm left/right margins, and 4cm top/bottom margins (no need to manipulate any other offsets or heights).

Headers and Footers

Use the fancyhdr package, e.g.
\usepackage{fancyhdr}
\pagestyle{fancy} % sets the pagestyle to use fancy headers
\fancyhead{} % clear header
\fancyfoot{} % clear footer
\fancyfoot[CO,CE]{\thepage} % replaces the page number to the [C]enter of the footer, in both [O]dd and [E]ven pages
\fancyhead[LO,LE]{ABC} % puts 'ABC' on the header's [L]eft side, on both [O]dd and [E]ven pages
\fancyhead[CO,CE]{DEF} % puts 'DEF' on the header's [C]enter, on both [O]dd and [E]ven pages
\fancyhead[RO,RE]{GHI} % puts 'GHI' on the header's [R]ight side, on both [O]dd and [E]ven pages
One can of course distinguish between the header/footer that appears on odd and even pages.

Line Numbers

In order to have line numbers on the output, consider using the (somewhat buggy, but pretty straightforward) linenopackage.

Put \linenumbers to have linenumbers run through the entire document, or \pagewiselinenumbers to have linenumbers reset to 1 at every page. Put either of these commands where you want the linenumbers to begin.

Watermarks and 'draft' version

In order to have a watermark sentence (e.g. ''Draft''), use the draftcopy package, with the additional parameters:
\usepackage[...]{draftcopy}
Where instead of [...] use a comma-separated list of parameters taken from the following:
none    Dont print DRAFT across any page
first    Print DRAFT across first page only
firsttwo    Print DRAFT across two first pages only
all    print DRAFT across all pages
bottom    print DRAFT on the bottom of all pages
bottomafter    print DRAFT on the bottom of all pages following the ones who have DRAFT across
light    print DRAFT in light gray
dark    print DRAFT in dark gray
In order to choose the sentence printed (instead of DRAFT), use the command
\draftcopyName{...}{...}
where the first argument is the sentence to be printed, and the second argument is the scaling factor (start from about 50). This command should appear before the \begin{document} command.

Slides

printing slides k-up

To print slides in k-up, use the unix command
psnup -r -k presentation.ps presentation_k.ps

Tables

vertical spacing - space between rows

To adjust the vertical space between rows, i.e. - increase the space between the text and the top/bottom \hlinecommands, put the following in the preamble:
% Adds a space between the text and the [T]op \hline
\newcommand\T{\rule{0pt}{3.1ex}}

% Adds a space between the text and the [B]ottom \hline
\newcommand\B{\rule[-1.7ex]{0pt}{0pt}}
one can then use \T and/or \B inside a cell in the row, i.e. after some text in the row, to get extra space between the text and the \hline. These commands will not work if placed between rows. E.g.
\begin{tabular}{ll}
\hline
% \T and \B would not work if it is placed here (needs to go inside cell)
Col1 \T \B & Col2 \\
\hline
$\sqrt{\frac{1}{2}}$ \T & more space from top \verb+\hline+ \\
$\sqrt{\frac{1}{2}}$ & no added space \\
$\sqrt{\frac{1}{2}}$ \B & more space from bottom \verb+\hline+ \\
\hline
\end{tabular}
and
\begin{tabular}{ll}
\hline
Col1 & Col2 \\
\hline
$\sqrt{\frac{1}{2}}$ & no extra space from top \verb+\hline+ \\
$\sqrt{\frac{1}{2}}$ & no added space \\
$\sqrt{\frac{1}{2}}$ & no extra space from bottom \verb+\hline+ \\
\hline
\end{tabular}

Fixed width columns

To have fixed width columns, the simplest way is to use the 'p' alignment argument (instead of r/c/l). E.g.
\begin{tabular}{p{1in}p{2in}}

Figures

Images with math (via xfig)

To create images using xfig with math text, do the following:

In xfig:
  • Choose text, and make sure the following settings are set:
    • Under Text Flags in the bottom, make sure the Special Flag is Special (and not Normal). This can be automated by using the flag
      -specialtext -latexfonts -startlatexFont default
      when invoking xfig.
    • In Pen Color, make sure the color is Default (and not Black which is usually the case when you start xfig).
  • Write the text you like. If you want to write in math mode, make sure to write things between \$'s.
  • Save the image as .fig file.
  • Export the image to both .pstex and .pstex_t. In new versions of xfig this is done automatically by choosingCombined PS/LaTeX (both parts).
Afterwards:
  • Make sure the two generated files are in your working directory.
  • Use the graphics package.
  • Use the following code to insert a figure named fig.pstex_t, with a scaling factor 0.5
    	\begin{figure}[h]
    	\begin{center}
    	\scalebox{0.5}{\input{fig1.pstex_t}}
    	\caption{This is figure 1}
    	\label{fig:fig1}
    	\end{center}
    	\end{figure}
    	

Inserting an .eps figure

\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{epsfig}
\begin{document}
\begin{figure}[h]
\centerline{
\epsfig{file=epsfig.eps, scale=0.5}
}
\caption{Some EPS figure}
\label{fig:fig1}
\end{figure}
\end{document} 

Converting PStricks/pstex_t to EPS

Assuing the pstricks-figure/pstex_t is in file figfile, use a latex file (say, texfigfile.tex) containing:
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{epsfig}
\begin{document}
\thispagestyle{empty} % omits page numbers.
\input{figfile}
\end{document}
The \thispagestyle{empty} is necessary for the bounding box to be defined properly by dvips. Then do
latex texfigfile.tex
dvips texfigfile.dvi -E
Note: the generated file might be a .ps file. However, one can still insert it like any other .eps figure.

Images with pdflatex

Converting images to .pdf
When using pdflatex, images should be converted to .pdf.
  • Converting .eps to .pdf:
    use epstopdf.
    Note that you might need to adjust the bounding box of the .eps file before performing the epstopdf. This can be done manually by opening the .eps file in GhostView, checking the coordinates of the lower-left and upper-right boundries of the actual figure, opening the .eps file in any text editor, and changing the bounding box to the correct coordinates.
  • Converting .pstex_t and .pstex directly to .pdf:
    use the UNIX script pstex2pdf defined by:
    	#!/bin/csh
    	echo "epstopdf $1.pstex"
    	epstopdf $1.pstex
    	perl -p -i -e "s/.pstex//;" $1.pstex_t 
    	
Inserting an image
One should add to the preamble
\usepackage{epsfig}
\usepackage{graphics}
To insert an image, named e.g. pdffig.pdf, use:
\begin{figure}[h]
\centerline{
\includegraphics[scale=0.5]{pdffig}
}
\caption{Some caption}
\label{fig:pdffig1}
\end{figure}
Note that the 'original' files, i.e., the .pstex_t|.pstex|.eps files, should be present in the working directory as well.

pstex missing

When using the Combined PS/LaTeX format in exporting from xfig, two files are generated:

[figname].pstex - contains the graphical information. This is basically an .eps file.

[figname].pstex_t - contains the latex text information.

The [figname].pstex_t file uses \includegraphics{[figname].pstex} to include the graphical info. When compiling from different directories, it is important to make sure that right path appears in the \includegraphics command, namely, that it has the form \includegraphics{PATH/[figname].pstex}

Inserting .jpg images

To insert an image, named e.g. image.jpg, use:
\begin{figure}[h]
\centerline{
\includegraphics[width=120mm]{image.jpg}
}
\caption{Some caption}
\label{fig:image1}
\end{figure}
Remember to specify the 'width' argument.

Drawing Circuits and Logic Diagrams

Use Circuit_macros: Download: dpic

Converting PDF figures to EPS

Download XPDF (for windows), and use the command:
[xpdf-path]\epstopdf.exe -eps input.pdf output.eps

Algorithms

General use

To use the algorithm environment, use the packages
\usepackage{algorithm}
\usepackage{algpseudocode}
An example of an algorithm is given by:
\begin{algorithm}{}
\caption{MyAlgorithmName (...arguments...)}
\label{alg:myalgorithmname}
\begin{algorithmic}[1]
    \For{all ...}
        \State do ...
    \EndFor
    \State return ...
\end{algorithmic}
\end{algorithm}

Changing the type of caption

Sometimes one wants to use the algorithm environment so that instead of Algorithm, one has a different caption, e.g.ProtocolHeuristic, etc. To do this, use the line
\floatname{algorithm}{[New Name]}
just before the algorithm code. E.g., to produce a Protocol, use
\floatname{algorithm}{Protocol}
\begin{algorithm}{}
\caption{MyProtocolName (...arguments...)}
\label{alg:myprotocolname}
\begin{algorithmic}[1]
...
\end{algorithmic}
\end{algorithm}

Bibliography

Using a BibTeX file

To insert the bibliography from a .bib file (e.g. mybib.bib), add the commands
\bibliographystyle{plain}
\bibliography{mybib}
For different styles, see http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html

Producing all entries in the .bib file

To produce the list of all entries in the .bib file, add the command
\nocite{*}
just before the \bibliography{mybib} command, where the bibliography file is mybib.bib.

Contorling bibliography paramaters

The natbib package provides multiple functionalities. E.g.
\setlength{\bibsep}{2pt}
determines the space between bib entries.
\renewcommand{\bibfont}{\small}
determines the font used for bib entries.

Contorling bibliography section header

To change the text in the bibliography section header (e.g., to produce 'Bibliography', instead of 'References'), use
\renewcommand\refname{Bibliography}
just before the bibliography section.

PDF

From .tex to A4 .pdf

To produce a pdf for paper size A4, make sure the \documentclass command is defined properly, e.g.,
\documentclass[a4paper,11pt]{article}
Use dvips with the switch
-G0 -Ppdf -t A4Size
followed by ps2pdf with the switch
-sPAPERSIZE=a4
This solves the problem of having incorrect header/footer margins.

Converting .eps to .pdf with embedded fonts

Sometimes, when compiling with pdflatex, one uses .pdf figures that don't have the fonts embedded. To transform the figures to have fonts embedded, one must do the following (in windows), given IN.eps as the eps input file of a figure.
epstopdf  --outfile="TEMP_OUT.pdf" IN.eps
followed by
"[ghostscript\bin path]\gswin32c" -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile="OUT.pdf" -f TEMP_OUT.pdf
One can then compile the source with the new figures using pdflatex, as usual.

Note: Sometimes discoloration appears in B/W figures. This can be remedied (not elegantly, but it works) by printing the resulting pdf to a new pdf using B/W only. The fonts remain embedded in the resulting .pdf as well.

Converting .eps to .pdf with embedded fonts

Some journals require figures in .eps format. To convert a .pdf figure to .eps, use (be sure to verify the output is in order):
gs -dNOPAUSE -dNOCACHE -dBATCH -sDEVICE=epswrite -sOutputFile=[output-file-name].eps [input-file-name].pdf 

Fonts

Highlighting text

To produce highlighted text use the soul package, and put the highlighted text in an \hl{...} environment (the default is yellow highlighting). I.e., use
\usepackage{color,soul}
...
This text would be \hl{highlighted} now.
If one omits the color package, the \hl{...} environment produces an underline.

User Defined Font Size

Sometimes, the predefined \normalsize\small\huge, etc., font sizes do not suffice. To produce a userdefined font size one can use the command:
\newcommand{\myfontsize}{\fontsize{9}{11}\selectfont}
where the first argument gives the height of the font (in pt), and the second argument gives the height of the line (in pt).
E.g., the above \myfontsize produces a fontsize that is between \small and \tiny.

1-10 of 11