Tag Info

Hot answers tagged

7

NEW VERSION to respond to revised OP requirements. It uses the syntax \problem[]{question}{answer}. At this stage, the user must invoke the footnotes in one of two ways: \showpageanswers following the final \problem on any given page; or provide anything (other than \relax) as an optional argument to the last \problem on any given page. I tried to ...


6

The following addition to your preamble - before making calls to title macros - fixes the problem: \makeatletter \renewcommand*{\thanks}[1]{% \footnotemark \protected@xdef\@thanks{\@thanks \protect\footnotetext[\arabic{footnote}]{#1}}% } \makeatother The problem is that the footnote mark is set with the \authors, but never transferred to the ...


6

This is a solution. The option hyperfootnotes is the culprit of this behavior. So, when loading beamer, pass the option hyperfootnotes=false to hyperref, in this way: \documentclass[hyperref={hyperfootnotes=false},10pt]{beamer} At this point, however, footnotes won't be printed... To avoid that, we need to add the following lines in the preamble: ...


5

In order to make hyperref work with endnotes, you could use enotez. All you have to do is load enotez instead of endnotes and use \printendnotes instead of \theendnotes: \documentclass{article} \usepackage{enotez} % <-- instead of \usepackage{endnotes} \usepackage{hyperref} \let\footnote=\endnote \begin{document} Sample text.\footnote{Sample ...


5

here you can just prevent a full page of footnotes: \documentclass{article} \dimen\footins\dimexpr\textheight-\baselineskip\relax \begin{document} Before\footnote{Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sit amet feugiat magna, vitae rutrum magna. Nam viverra lacus nec augue sodales, sed imperdiet quam egestas. Maecenas sed tellus in leo ...


5

To improve the solution we need to know what class you are using and if one side or two side printing. \documentclass{report} \usepackage{lipsum} % dummy text \makeatletter \def\fullpath{\begingroup\everyeof{\noexpand}\@sanitize \edef\x{\@@input|"find `pwd` -name \jobname.tex" }% \edef\x{\endgroup\noexpand\zap@space\x\noexpand\@empty}\x} ...


4

The document produces the warning Package multicol Warning: I moved some lines to the next page. (multicol) Footnotes on page 1 might be wrong on input line 26. multicol can detect that it has happened but can not go back to fix it. You can force a page break with the correct footnotes: \documentclass[a4paper,11pt,notitlepage]{report} ...


4

you can use \dimen\footins=\dimexpr\textheight-2\baselineskip\relax% or <num>\baselineskip or \dimen\footins=10cm code complete \documentclass{article} \dimen\footins=\dimexpr\textheight-2\baselineskip\relax \begin{document} Before\footnote{Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sit amet feugiat magna, vitae rutrum magna. ...


3

patch the portions of the \maketitle command in doc.sty that set the footnote indentation to use the values from amsart: \documentclass{amsart} \usepackage{etoolbox} \usepackage{doc} \patchcmd\maketitle {\parindent 1em}{\parindent\normalparindent}% {}{} \patchcmd\maketitle {\hbox to1.8em}{\hbox to\normalparindent}% {}{} \begin{document} ...


3

The \hfill is of no use here, but a \raggedleft will shift the rotated box to the right margin` \documentclass[12pt]{article} \usepackage{graphicx} \usepackage{enumitem} \begin{document} What is \begin{enumerate} \item 1+1? \item 1+2? \item 1+3? \item 1+4? \end{enumerate} \renewcommand{\thefootnote}{} \footnotetext{\raggedleft\rotatebox{180}{$^1$ ...


3

Use \marginnote instead of \marginpar. \marginnote accepts a vertical offset as optional argument, so you can rewrite your definition of footnote as \renewcommand{\footnote}[2][0pt]{% \refstepcounter{mynote}% \mbox{\textsuperscript{\tiny\sffamily\themynote}}% ...


3

The new version of eledmac-eledpar 1.19.0-1.13.0, now send on CTAN, fixes this issue. Basically, you must: set the vertical size allowed to the notes, with \maxhXnotes[<series>] set that you want notes only for right pages, with \onlyside[<series>]{<side} for example \maxhXnotes{0.8\textwidth} \onlyXside{R} Read ยง 4.4 of the new ...


3

Protecting \footnote is completely useless; it would work if you didn't load titlesec, but you'd get the footnote also in several places (the table of contents, for example, and page headings). There are two solutions to the issue: (best) never footnote a section title use \section[Section Name]{Section Name\footnote{Whatever}}


3

There are two problems: the marco \sepfootnotecontent saves its contents locally which means it is forgotten after the environment ends. The second problem: the macro \BODY is saved as footnote content but what you really want is it the first expansion of \BODY and not the macro itself. With the help of the etoolbox package and its \patchcmd we can easily ...


2

No need to change the internals of sepfootnotes: an \aftergroup trickery is sufficient. \documentclass{article} \usepackage{environ} \usepackage{sepfootnotes} \NewEnviron{nbp}[1]{% \xdef\nbptemp{{#1}{\unexpanded\expandafter{\BODY}}}% \aftergroup\donpb } \newcommand{\donpb}{\expandafter\sepfootnotecontent\nbptemp} \begin{document} ...


2

You could for example change the definition of \@makefntext in the definition of \maketitle by the doc package. \documentclass{amsart} \usepackage{doc} \makeatletter \def\maketitle{\par \begingroup \def\thefootnote{\fnsymbol{footnote}}% \setcounter{footnote}\z@ \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}% ...


2

With the KOMA-Script class scrartcl you have a command \setbibpreamble{...} to set a text before your bibliography starts. Please see the following MWE: \RequirePackage{filecontents} % loading package filecontents % writing file \jobname.bib, for example mb-bibtex.bib. \begin{filecontents*}{\jobname1.bib} @Book{companion, author = {Goossens, ...


2

An update of \@setthanks seems to suffice: \documentclass{amsart} \usepackage{doc} \makeatletter \def\@setthanks{\vspace{-\baselineskip}\def\thanks##1{\@par##1\@addpunct.}\thankses} \makeatother \begin{document} \title{title} \author{first author} \thanks{thanks1} \author{second author} \thanks{thanks2} \maketitle \end{document} amsart mentions ...


2

biblatex-historian has an option for suppressing the "see note" string: printnoterefs=false See p. 5 of the biblatex-historian documentation. The title option to \printbibliography lets you change the title \printbibliography[title=\bibname] The default heading for articles (and article-like classes) is "References" (stored in \refname), while for ...


2

Update: with version 0.18: Since version 0.18 (2015/02/09) which has been uploaded to CTAN on 2015/02/10 and will be available in TeX Live and MiKTeX in a few days the solution is as follows: Set the heading style for solutions to inline or inline-nr or a equivalent instance. Redefine \exsheetsprintsolution. This macro is used for every solution. It has ...


2

Add the following lines in your preamble: \renewbibmacro*{addendum+pubstate}{% \iffieldundef{addendum} {\renewcommand{\finentrypunct}{\addperiod}}% {\renewcommand{\finentrypunct}{}% \printfield{addendum}% \newunit\newblock \printfield{pubstate}}} This checks if the field addendum is defined. If yes, deletes the final period at the end of the ...


1

One way to do this is by adding a margin note. Insert: \usepackage{marginnote} in the preamble and then insert the margin note before/after the bibliography. Like so: \bibliography{file1, file2} \marginpar{* = Different reference} \bibliographystyle{plain}


1

\deffootnote{0em}{0em}{\thefootnotemark\hspace*{.5em}} in classicthesis.sty sets the parindent in footnotes to 0em. The original definition for KOMA-classes is \deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}. Here, the parindent in footnotes is set to 1em, which is dependant of the font size. More information on deffootnote can be found ...


1

The solution to the answer you linked to doesn't work due to a bug in fnpct introduced in some of the updates since I answered the other question. This bug is fixed with version 0.4c (2015/02/20) which is available now on CTAN and TeX Live.


1

The problem is that the doc package redefines \maketitle, the main purpose seems to be allowing several titles in one document: The documentation says For the same reason the \maketitle command is slightly changed to allow multiple titles in one document. So you can make one driver file reading in several articles at once. To avoid an unwanted ...


1

Many people no longer use the classes that ship with LaTeX itself, but the KOMA-script classes. They provide among a lot of other useful stuff high level commands. You can determine the layout of your document by a small number of commands. Let's have it: \documentclass[papersize]{scrartcl} \deffootnote{1.5em}{1em}{% \makebox[1.5em][l]{\thefootnotemark}} ...


1

All the answers correct the \maketitle made by doc package. Although IMO this is the logical/right approach, a solution with \makeatletter ... stuffs is not easy to remember. So my solution is make a fake thanks with a simple footnotes without marks after \maketitle. Surely someone will find this a bad practice, but far I can see this do not break anything ...



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