New answers tagged

2

LaTeX defines \author as \DeclareRobustCommand*\author[1]{\gdef\@author{#1}} You can define \school and \department in the same way: \DeclareRobustCommand*\School[1]{\gdef\@School{#1}} \DeclareRobustCommand*\Department[1]{\gdef\@Department{#1}} @ may not occur in the name of a macro on user level, so you have either to enclose the definitions between \...


1

This can be done for example with expl3's property lists – I changed the syntax a little bit requiring some author ID instead of implying an incremented number (which could be realised as well, of course): \documentclass{article} \ExplSyntaxOn \tl_new:N \l__innisfree_author_tl \cs_new_protected:Npn \innisfree_add_author:nn #1#2 { \prop_if_exist:cF {...


1

I propose two solutions based on datatool. The first requires an external database1.csv file (in the mwe below it is produced by the filecontents environment). The second solution creates the database (named database2) directly in the .tex file through the commands: \DTLnewdb{database2} \newcommand{\addauthor}[5]{ \DTLnewrow{database2}% \DTLnewdbentry{...


1

In your particular example, without fiddling too much with the input and manually specifying the footnotemark will give you the desired result. I would say may be the code is not so elegant, but the result is as you wish: \documentclass[12pt, a4paper]{article} \usepackage[english]{babel} \begin{document} \title{\sc This is a title \thanks{Thanks to ...}} \...


0

Is this what you expect ? Only one page More than one page, Contact info only in the last page. You requested a template and gave some guidelines, with a graphic example. That means it will be used multiple times, with different content. Therefore, the designer must allow changes to the content data provided, in addition to some minor changes to the ...


1

Something similar can be achieved in at least two ways. -1- Since the document is single page, there is no need for a headers or footers. \documentclass[a4paper]{article} \usepackage[left=0.5in,right=0.5in,top=0.5cm,bottom=1cm]{geometry} \usepackage[demo]{graphicx} \usepackage{adjustbox} \usepackage{tikz} \usepackage{lipsum} \begin{document} % In a ...


1

There is a confusion in the order of brackets. Although there are some exceptions, the most usual syntax for a command (aka control sequence) with an optional argument is: \command[<optional argument>]{<mandatory argument>} % in this order Examples of use: \command{whatever} % the mandatory argument is "whatever" \command[whatsoever]{...


1

There are two things that makes this a little more difficult. Not only do you want to mix them, but you may be interested in a specific layout of the \thanks notes in the footnote; perhaps all the affiliations (numbers) first and then the rest (symbols). I suggest inserting the \thanks notes with \author manually so you can arrange them in whichever way you ...


2

ConTeXt inserts a strut by default. You have to disable it using strut=no \showframe \setuppapersize[S33] \setuphead [title] [strut=no,style=\bfd] \starttext \starttitle[title=Foobar] \stoptitle \stoptext


3

Thanks to DavidCarlisle and Bernard. \documentclass{book} \usepackage{iftex} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{url} \usepackage[svgnames]{xcolor} \ifpdf \usepackage{pdfcolmk} \fi %% check if using xelatex rather than pdflatex \ifxetex \usepackage{fontspec} \fi \usepackage{graphicx} %%\usepackage{hyperref} %% drawing package \...


Top 50 recent answers are included