# Tag Info

6

If I see given "user environment" (last twelve lines in your code) and desired output, then I can say: it is very simple to do it at TeX primitive level: \def\alist{}\def\plist{} \def\Aa#1{\edef\alist{\alist,\detokenize{#1}}} \def\Af{\edef\plist{\ifx\plist\empty\else\plist, \fi (\ifx\alist\empty\else\expandafter\applyand\alist,,\fi)}% ...

5

The following example patches the \frametitle command to update the length \titlelen that gives the length of the title under the current theme's font: \documentclass{beamer} \let\Tiny\tiny% http://tex.stackexchange.com/a/94159/5764 \usepackage{etoolbox} \makeatletter \newlength{\titlelen} \tracingpatches \patchcmd{\beamer@@frametitle}% <cmd> ...

5

First, why not just use \insertframetitle? Second, I don't think \beamer@frametitle is defined outside of a frame. That's why you probably get the error message. Third, you should also consider the font (shape, size, ...) in your calculations. Have a look at this example. \documentclass{beamer} \newlength\myframetitlelength \begin{document} ...

4

I now see from your other questions that, despite your comments concerning how easy it is to do this in modern programming languages, you are determined to compare those languages with TeX, rejecting the modern interfaces which build upon it. Little wonder, then, that the TeX case seems more difficult. For a fair comparison, you need to compare other ...

4

The answer is quite simple if you know where to look for it. \renewcommand{\lastandname}{\unskip,}

4

The template already fiddles with the title, so, you are not doing any harm by adding few more lines as in \title{ \normalfont \LARGE \textsc{University of Example - School of Management, Economics, Law, Social Sciences and International Affairs} \\ [25pt] % Your university, school and/or department name(s) \horrule{1pt} \\[0.4cm] % Thin top horizontal rule ...

3

The important thing in the application you seem to have in mind is not forcing a too rigid setting. Thus I store each authors' list as itself, but as the argument to another command, which can be set at usage time in a variety of ways. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\addauthors}{m} { \mapo_addauthors:n { ...

3

Better late than never. Redefining a bit of stuff should get you what you want. \documentclass{article} \usepackage{blindtext} \usepackage{titling} \usepackage{array} \preauthor{\begin{center} \large \lineskip .75em% \begin{tabular}[t]{>{\centering\arraybackslash}p{.45\textwidth}}} \postauthor{\end{tabular}\par\end{center}} ...

3

A 'traditional' way with the \@elt splitting feature: Counter reset lists use the \@elt splitting, i.e. the counters that should be reset by foo counter are stored this way: foobar\@elt otherfoobar\@elt. The list is named cl@foo and is called each time in stepping command, whereas \@elt is a 'volatile' macro, being defined to do some action. The same ...

2

Because some times we like to reinvent the wheel. Here is a an approach that allows you to alter the format on the fly among other things. \documentclass{article} \usepackage{etoolbox} \usepackage[T1]{fontenc} \usepackage{lmodern} \makeatletter %% ----------------------- %% %% --- Defining a list --- %% ...

2

\author is an special command which could not accept all kind of contents. In you particular case I'd suggest to define a customized title page template where you can insert what you want. I've taken \defbeamertemplate*{title page}... from beamerinnerthemedefault.sty (change it according your theme) and copied it into your preamble. \defbeamertemplate has ...

2

To make the code compile, we need to remove \maketitle and the bibliography from the example and integrate the code fragments provided in the question. Having done that, we can redefine the chapter style within the appendices environment to include the \appendixname in the chapter label which precedes the title. For example: \documentclass[a4paper, 12pt, ...

1

You gotta use paragraphs, not line breaks. They guy who invented that dreadful rule business put that on wikibooks and it lives on. Better use no lines at all. \documentclass{article} \usepackage{showframe} \begin{document} \hrule height 0,1cm \leavevmode \\[0,5cm] {\Huge\textbf{ The incredible journey of Walter Wombat }}\\[0,5cm] \hrule height 0,1cm ...

1

While you've adjusted the page size and left margin, you haven't adjusted any of the other text block dimensions or margins. If you add \geometry{showframe} to the preamble, you'll see the various dimensions outlined. The text blocks extend beyond the right edge of the paper. The problem that you're noticing isn't an issue with line-breaking, but rather that ...

1

Just replace the extravagant \vspace{200cm} with \vfill:

1

In the KOMA classes you have alredy have an enhanced meta data interface, i.e. there is \subtitle to add a subtitle. For the rest I recommend to use a series of patches to get in the additional information and keep the macros gathering the meta data clean of any sort of formatting command. Specifically I would prefer to write \title{European Competition ...

1

It's a question of changing center for the title into flushleft and \centering for the author field into \raggedright. \documentclass[11pt,a4paper,reqno,english]{amsart} \usepackage{babel} \usepackage{graphicx,url,etoolbox} \usepackage{lipsum} \makeatletter \patchcmd{\@settitle}{center}{flushleft}{}{} \patchcmd{\@settitle}{center}{flushleft}{}{} ...

1

Maybe something like this would work, using the titlesec package. \documentclass{article} \usepackage[explicit]{titlesec} \titleformat{\section}% {\Large\sffamily\bfseries}% format {Lecture \thesection{} (#1)}% {0pt}% horizontal sep {}% before \begin{document} \section{May 10} Here is the lesson material. ...

1

The key here is using the pass feature of the geometry package that will preserve the underlying page setup of the memoir document class, while providing access to geometry routines. Thus, I save the memoir page setup initially using a \savegeometry. I then create a \newgeometry with no margins and do what needs to be done on that page. Finally, I restore ...

1

As David pointed out, the style file requires the color package. Once I added \usepackage{color} to the preamble, \maketitle worked fine.

1

By replacing \insertsubtitle with \visible<2>{\insertsubtitle} in the default definition of the titlepage, the subtitle gets only visible on the second slide, but its space is already reserved on the first slide. For more information, I recommend the the section about overlays in the beameruserguide. \documentclass{beamer} \usetheme{default} ...

1

I love templates, i don't hate them. I really do. Templates are the best thing in the world. Always a reason for anger and amusement. \documentclass{scrreprt}% \usepackage{cleanthesis} \usepackage{fontspec} \setmainfont{TeX Gyre Heros} %\addtokomafont{chapter}{\fontspec{TeX Gyre Heros}} \renewcommand{\helv}{\fontspec{TeX Gyre ...

1

The easiest way is to simply use \date[Today: ]{\today} The text within the square bracket replaces the "Dated" in revtex4-1 class. Enjoy!

1

Here's my usual trick. (My coauthor taught me this; I've met at least one person who really hates it based on semantic markup reasons, but I like it.) \documentclass{article} \title{Foo} \author{Author One\and Author Two} \date{Affiliation} \begin{document} \maketitle \end{document}

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