Tag Info

Hot answers tagged

12

\AtBeginDocument is the wrong hook for typeset material. This hook is still executed in the preamble. Package etoolbox provides \AfterEndPreamble, which is executed at the very end of \begin{document}, thus document material is allowed here: \documentclass[twocolumn]{scrartcl} \usepackage{geometry} \usepackage{etoolbox} \usepackage{lipsum} \title{Title} ...


6

One way is to use \xapptocmd from xpatch package to append some command after \begin{document} (short form \document) \AtBeginDocument is not meant for typesetting material stuff since it expands code before \begin{document} comes into action Another approach is shown in the answer by Heiko Oberdiek. \documentclass[twocolumn]{scrartcl} ...


4

\documentclass[11pt,x11names]{report} \usepackage[left=2.5cm,right=1cm,top=2.5cm,bottom=0cm]{geometry} \usepackage[dutch]{babel} \usepackage{graphicx} \usepackage{tabularx} \usepackage{tikz} \renewcommand{\familydefault}{\sfdefault} \usepackage[scaled=0.92]{helvet} \begin{document} \definecolor{blueXIIdark}{cmyk}{1,.8,.30,.05} ...


3

You can use eso-pic (or similar for ex, tikz) and put the text. \usepackage{eso-pic} \newcommand\AtPageUpperMyright[1]{\AtPageUpperLeft{% \put(\LenToUnit{0.5\paperwidth},\LenToUnit{-1cm}){% \parbox{0.5\textwidth}{\raggedleft\fontsize{9}{11}\selectfont #1}}% }}% \newcommand{\conf}[1]{% \AddToShipoutPictureBG*{% \AtPageUpperMyright{#1} } } and then ...


3

Set the empty page style - typically called when you issue \maketitle - to be equivalent to the plain page style: \documentclass{report} \title{I want a 1 to appear at the bottom of this page [works fine]} \begin{document} \begingroup \makeatletter \let\ps@empty\ps@plain % 'empty' page style = 'plain' page style \maketitle \endgroup \begin{abstract} ...


3

It took me time to write good code to generate a title page for a UNAM thesis and I think this could be very useful for somebody that is writing his/her thesis work in latex The key to resolve the problem was to use the minipage environment. To use it correctly I found very useful Wikipedia's documentation : Latex/Boxes . The trick was to use this ...


3

Just take the elements from the title page an arrange them to your needs \documentclass{beamer} \usetheme{Warsaw} \title{Very interesting science} \author{A.\,Einstein} \date{31. April 1592} \institute{My Institut} \begin{document} \begin{frame}[plain] \titlepage \end{frame} \begin{frame}[plain] \vfill \centering ...


2

Hat-tip to username mvkorpel, who suggested that I try class option superscript address. Code below, with \\ removed: \documentclass[twocolumn, prl, superscriptaddress]{revtex4} \makeindex %-------------------------------------------------------- \begin{document} \title{My title} \author{Name1} \email{email1@email.com} \affiliation{University name, ...


2

As described in section 3.3 of the beamer documentation, \title, \author, etc. accept optional short arguments in square brackets. This short version will be placed into the footline. \documentclass{beamer} \usetheme{CambridgeUS} \usepackage[T1]{fontenc} % european characters \usepackage{amssymb,amsmath} % use mathematical symbols ...


2

The stackengine package is versatile in this regard. EDITED to use so-called long stacks, to avoid any stacking variances in the presence of letter descenders. \documentclass[10pt,a4paper]{article} \usepackage{titling} \usepackage{authblk} \usepackage{marvosym} % letter symbol \usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry} ...


1

Fixed: \begin{titlepage} \definecolor{blueXIIdark}{cmyk}{1,.8,.30,.05} \definecolor{blueXIIlight}{cmyk}{.0,.30,1,.00} \vspace{0cm} \noindent\hspace{-2.6cm} \begin{tikzpicture} \draw (0, 0) node[inner sep=0] {\includegraphics[width=\paperwidth]{logobalk}}; % \draw (5.9,0) node (example-tabular) { %\begin{tabular}{rr} %\LARGE\color{white}\bfseries ...


1

If there are only one author and one class (i.e., without using \and), some like this could be enough: \documentclass[11pt]{article} \makeatletter \def\class#1{\gdef\@class{#1}} \def\@class{\@latex@warning@no@line{Hey you, no \noexpand\class given}} \def\@maketitle{% \newpage \null \vskip 2em% \begin{flushright}% \let\footnote\thanks ...


1

Do that with the titling package: it defines a \droptitle length which you can choose at will. Example of use: \documentclass[a4paper,oneside,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} % \usepackage{lmodern} % \usepackage[top=33mm, bottom=38mm, left=26mm, right=20mm, showframe]{geometry} % \usepackage[x11names]{xcolor} ...


1

I would set the abstract as an adjustwidth block (from changepage) which allows you to set the left/right indent as needed: \documentclass{article} \usepackage{lipsum}% Just for this example \usepackage{changepage} \renewenvironment{abstract} {\setlength{\parindent}{0pt}% No paragraph indent \begin{adjustwidth}{12.7mm}{12.7mm} {\centering ...



Only top voted, non community-wiki answers of a minimum length are eligible