Tag Info

New answers tagged

0

Reset the footnote counter at every use of \section, whether it's \section or \section*: \documentclass{article} \usepackage{xparse} \let\oldsection\section \RenewDocumentCommand{\section}{s o m}{% \setcounter{footnote}{0}% Reset footnote counter \IfBooleanTF{#1} {\oldsection*{#3}% \section*[..]{...} \addcontentsline{toc}{section}{#3}} ...


0

You can try \stepcounter{section}\addtocounter{section}{-1} \documentclass[11pt,a5paper,oneside]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \makeatletter \@addtoreset{footnote}{section} \makeatother \begin{document} \section*{section A} \addcontentsline{toc}{section}{Section A} Lorem ipsum dolor sit amet.\footnote{Ut enim ad minim ...


3

The \footnoterule should occupy no vertical space. Here's a redefinition that places it at the right margin: \documentclass[a4paper]{article} \usepackage{xecolor} \usepackage{polyglossia} \usepackage{fontspec} \definergbcolor{titlecolor}{750000} \setmainlanguage{arabic} \setmainfont[Ligatures=TeX]{Amiri} ...


1

This should work (for right-to-left typing), in your preamble (of course the length is adjustable): \renewcommand\footnoterule{\rule{0.4\linewidth}{0.4pt}\hfill}


0

In some cases, you might want to suppress the number on a footnote. I looked around the web, and a few suggestions were out there, but the simplest one I could find was the following: \let\thefootnote\relax\footnotetext{put text here}


2

MWE \documentclass{article} \makeatletter \newcommand\@mytitle{} % create macro for title \newcommand\mytitle[1]{\renewcommand\@mytitle{#1}} \newcommand\@mythanks{} % create macro for thanks note \newcommand\mythanks[1]{\renewcommand\@mythanks{% \gdef\@thefnmark{*}\@footnotetext{#1}} } \newcommand\@myauthor{} % create ...


1

If I understand your question correctly, you want to refer to the same footnote from multiple colorboxes. The footnote should furthermore appear at the bottom of a page, not in a colorbox. The code below provides the answer. Apparently, all you need is footnote labeling because footnotes in tcolorboxes make use of different counters and use letters, which ...


2

\documentclass{article} \usepackage{lipsum} \makeatletter \renewcommand\@makefntext[1]{\raggedright\leftskip=2em\hskip-2em\@makefnmark#1} \makeatother \begin{document} \null\vfill% just for the example \lipsum*[1]\footnote{\lipsum[2]} \end{document} Or, using ragged2e: \documentclass{article} \usepackage{ragged2e} \usepackage{lipsum} ...


0

Here a solution with afterpage package. From the manual This package implements a command, \afterpage, that causes the commands specified in its argument to be expanded after the current page is output. \documentclass{report} \usepackage{lipsum} \usepackage{afterpage} \usepackage{graphicx} \begin{document} \chapter{chapter one} \lipsum[1-3] ...


5

This is a problem, but only in certain instances. Consider the following minimal example: \documentclass{article} \begin{document} Some text\footnote{abc} with a footnote. \par Some text \footnote{def} with a footnote. \par Some text \footnote{ghi} with a footnote. \par Some text \footnote{jkl} with a footnote. \end{document} The \footnote with a ...


2

The blank entries are from your empty footnote in the caption, twice as a caption is set twice: Using \footnotemark{} in Combination with the optional argument for \caption[]{} solves the Problem \documentclass{scrreprt} \usepackage{tablefootnote} \begin{document} \begin{figure}[!htb] \caption[Caption with Footnote] {Caption with ...


1

The package fixfoot make just that, specially thinked for footnotes that appears very often, but in a page-by-page basis. This way the reader never need to go back to read a footnote, but newer is printed more than once in the same page. Each repeated footnote must be pre-declared and invoked with their own custom command (e.g. \repnote) in the ...


0

Here is a solution with modified output routine \documentclass{article} %%%%% just for the example \newcounter{mtctr} \newcommand{\mtlipsum}[1][100]{% \setcounter{mtctr}{0}% \loop \stepcounter{mtctr}% \noindent this is line n \textbf{\themtctr}\par \ifnum\value{mtctr}<#1 \repeat} %%%%% \makeatletter \gdef \@makecol {% for normal pages ...


1

Footnotes do not work in inner boxes like \mbox, \parbox or float objects. Workarounds: \footnotemark inside the inner box and \footnotetext{...} outside. Environment minipage for local footnotes. Package threeparttable for tables with notes. ...


1

It occurred to me that you may not really want footnotes, you just want to put commentary around the poem, commentary which may not be closely tied to the page. This is most easily done putting the poem into static frames then filling the flow frames with commentary. \documentclass[a4paper,12pt]{article} \usepackage{flowfram} \usepackage{lipsum} ...


3

In terms of markup the nesting is quite easy to setup: \def\footnote#1{% \@ld@footnote{\let\footnote\footnoteA\indentfn#1}% } \def\footnoteA#1{% \@ld@footnoteA{\let\footnote\footnoteB\indentfn#1}% } where \footnote, \footnoteA, \footnoteB are three indipendent footnote macros and \@ld@footnote and \@ld@footnoteA are copies of those (respectively). ...


0

Here as font size of chapter heading is \huge, the size of footnotemark tracking it, you can reduce size of footnotemark inside a group with {\large\protect\footnote{text}} You can test it with this example \documentclass{book} \usepackage{lipsum} \makeatletter % to set the layout of the chapters header \def\@makechapterhead#1{% \vspace*{60\p@}% ...


3

You needn't to redefine \output routine, you need to redefine the \pagecontents macro only. And you must to reset the \count\footins to 500 if two columns footnotes. Replace your \output{...} by: \def\pagecontents{\ifvoid\topins\else\unvbox\topins\fi \dimen1=\dp255 \unvbox255 % open up \box255 \ifvoid\footins\else\vskip\skip\footins \footnoterule ...


0

It should be noted that \everypar is used by many packages for their own purposes, and gets set to \relax frequently. \documentclass{article} \usepackage[paperwidth=4in,paperheight=3in]{geometry} \renewcommand{\thefootnote}{\arabic{paragraph}.\arabic{footnote}} \begin{document} \everypar{\refstepcounter{paragraph}\setcounter{footnote}{0}}% must be renewed ...


2

In both of your examples, the easiest fix is to load the url package with the option hyphens, viz. \usepackage[hyphens]{url} and to encase the material the footnotes in \url{...} directives, i.e., to write Test \footnote{\url{http://www.erneuerbare-energien.de/EE/Redaktion/DE/Dossier/eeg.html?cms_docId=72462}} and ...


1

There is a less LaTeX-way solution, but it on the other hand gives you a complete flexibility: We need a footnote that has no symbols whatsoever. \usepackage{lipsum} \newcommand\blfootnote[1]{% \begingroup \renewcommand\thefootnote{}\footnote{#1}% \addtocounter{footnote}{-1}% \endgroup } See this answer for more details. Just put a ...


1

My guess from the code snippet is, that there is a clash of the entries for \fancyfoot: \documentclass{article} \usepackage{fancyhdr} \renewcommand*{\headrulewidth}{0pt} \renewcommand*{\footrulewidth}{0pt} \fancyfoot[L]{Acknowledgements reflect the views of the author and are not endorsed by committee members or Oklahoma State University.} \pagestyle{fancy} ...


0

I'm using aip-cp.cls and working off the assumption that you want the blank institution lines to go away. \documentclass{aip-cp} \usepackage[numbers]{natbib} \usepackage{rotating} \usepackage{graphicx} \title{The Big Bang theory} \author[disneyland]{J. Watson\corref{cor1}} \eaddress{watson@gmail.com} \author[disneyland]{G. House} ...


2

Don't ask more, please. ;-) But note the \strut in \footnotelayout or consecutive footnotes would be badly spaced. \documentclass{article} \usepackage{setspace} \usepackage[flushmargin, hang]{footmisc} % flush footnote mark to left margin \usepackage{regexpatch} \makeatletter % 1. remove all redefinitions about footnotes done by \maketitle % and add ...


4

The \maketitle command in the article class redefines \@makefnmark in a group to print the marker in a zero width box, so as to preserve centering. Thus it's sufficient to define it to do nothing: \documentclass{article} \usepackage{etoolbox} \makeatletter \patchcmd{\maketitle} {\def\@makefnmark} {\def\@makefnmark{}\def\useless@macro} {}{} \makeatother ...


3

You can insert the footnote manually with the appropriate identifier: \documentclass{article} \usepackage[paperheight=20\baselineskip]{geometry}% Just for this example \begin{document} \title{This is my title\footnotetext{\llap{\textsuperscript{*}}Here I thank people.}} \maketitle Here is a sentence.\footnote{Here is a footnote.} \end{document}


2

Use minipage for footnote \documentclass{article} \newcommand{\mtitem}[2]{% \item \begin{minipage}[t]{\linewidth} #1\footnotemark \end{minipage}% \footnotetext{% \begin{minipage}[t]{\linewidth} #2\strut \end{minipage}}} \newcommand{\mylipsum}{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing ...


1

You can use Beamer command \setbeamercolor{}. In this case use \setbeamercolor{footlinecolor}{fg=<color1>, bg=<color2>}. You might also want to change the \setbeamercolor{footnote}{fg=<color>, bg=<color>} and \setbeamercolor{footnote mark}{fg=<color>, bg=<color>}. As for the width have a look here: How do I adjust the ...



Top 50 recent answers are included