24 August, 2015

LaTeX/LyX positioning floating text on top of a page

To publish preprint versions of papers, you often need to add a remark on top of the first page. If you do not want to mess around with the final PDF, there is are several ways to add floating text, with absolute positioning.

Here is my current solution.

% optional box and link packages (LyX adds them automatically)

% import textpos in LaTeX preamble

% set default positioning parameters
\textblockorigin{0mm}{0mm} % start content at the top-left corner

\definecolor{shadecolor}{rgb}{1, 0.80078125, 0}

\textbf{\textcolor{blue}{Preprint version for self-archiving.}}\\
The final publication is available at [Name of Publisher] via
\textbf{\href{}{[DOI Number]}.} 

The output looks as follows.

No comments: