# Tag Info

8

Here's an addition of an extrastuff counter, that is stepped each time \myextrafootnote is used. However, more than 26 additions aren't possible this way, since \alph{extrastuff} is used. If you need even more additions, the alphalph package for increasing the counter output is useful! \documentclass{book} \newcounter{extrastuff}[chapter] \newcommand{\...

7

The optional argument of the \footnote command expects an integer containing the number of the footnote, not the textual representation of that number. So, you should use \footnote[\value{footnote}]{#1} instead of \footnote[\thefootnote]{#1} Addition So, where does the extra “a” come from? To understand this, let us examine step by step how the ...

3

\documentclass{article} \usepackage{endnotes} \let\svthefootnote\thefootnote \newcommand\freefootnote[1]{% \let\thefootnote\relax% \footnotetext{#1}% \let\thefootnote\svthefootnote% } \textheight 2in \begin{document} This is a free footnote% \freefootnote{Here is my free footnote, unlabeled here or in text}. Now for an endnote\endnote{Here is an ...

3

You could redefined \@makefnmark as per the MWE: \documentclass{article} \makeatletter \def\@makefnmark{\hbox{[\normalfont\@thefnmark]}} \makeatother \begin{document} This is test.\footnote{Test footnote.} \end{document}

3

Neither mdframed nor tcolorbox (which I would always prefer over mdframed) can handle "global" footnotes in combination with breakable boxes. You could try something like the following to draw your background manually, but be aware that is fiddles with the output routine. This means it can clash with packages which fiddle with the output too it can break ...

3

\ding is not designed for math mode, if you use \newcommand*{\fnsymbolsingle}[1]{% \ensuremath{% \ifcase#1% \or *% \or \mbox{\ding{71}}% \else \@ctrerr \fi }% } You get a symbol not a G The Gamma in your error example is due to the fact that tex recovers from the negative char code by using ...

3

If you don't need to add a caption, it's simple with the insbox plain TeX macro package. The \InsertBoxR command takes two arguments: the number of lines not shortened at the beginning of the paragraph, and th object inserted, plus an optional argument, the number of supplementary lines to be shortened, in case TeX does not calculate the correct number of ...

2

This does not allow wrapfigure like behavior, but allows one to place text on left and image on right of the footnote. The image width can be adjusted to suit the text height, perhaps. The \hfill between them assures that the image is right-aligned to the margin. The \parbox has to be top [t] aligned to match up with the footnote marker. As a result, the ...

2

Something like this, perhaps? The norule option of footmisc does redefine \footnoterule to do nothing in general as and just applies a skip instead. I've introduced the \newif\iffootnoterule conditional, that is checked each time in \footnoterule and if true, applies the stored definition of \footnoterule (by \let\latex@@footnoterule\footnoterule). This ...

2

The bottom option essentially adds \vfill at the end of every page, so your \vfill makes TeX divide the blank space in two equal chunks. Use third order infinite glue: \documentclass[a4paper]{article} \usepackage[hang,bottom]{footmisc} \begin{document} This is my text\footnote{this is my footnote} \vspace{0pt plus 1filll} This is my bottom-of-page ...

2

Based on Measure remaining space on page and use it on another page, I formulated the \fixV macro, applied to the end-of-page comment. \documentclass[a4paper]{article} \usepackage[hang,bottom]{footmisc} \newcommand\fixV[1]{\edef\tmp{\the\parindent}\setbox0=\hbox{% \begin{minipage}{\textwidth}\hspace{\tmp}\strut#1\strut\end{minipage}}\box0% \vspace{\...

2

The correct definition of \deffootnote is \deffootnote[<mark width>]{<indent>}{<parindent>}{<definition>} (Note that the indent is set in the argument before parindent.) You have to decide how much space is needed for the footnotenumbers. I will use 1.5em in the following example \makebox[1.5em][l]{\thefootnote.} Then you can ...

2

The standard setting of xstring is \fullexpandarg; depending on how you need to use it, you can go \documentclass{article} \usepackage{xstring} \noexpandarg % don't do full expansion in `purple' arguments \begin{document} \newcommand{\lymessage}{This is my\footnote{footnote text} message.} \expandafter\IfEndWith\expandafter{\lymessage}{message}{It might ...

2

\documentclass{article} \usepackage{etex} \usepackage{xstring} \begin{document} \newcommand{\lymessage}{This is my\footnote{footnote text} message.} \begingroup \def\footnote#1{}% \IfEndWith{\lymessage}{message}{It might be true.}{It is definitely false.}% \endgroup \lymessage \end{document}

2

Since you're only mentioning multi-lined footnotes (and not multi-paragraph footnotes), the following provides what you're after: \documentclass{article} \usepackage[paperheight=20\baselineskip]{geometry}% Just for this example \usepackage{lipsum} \makeatletter \renewcommand\@makefntext[1]{% \parshape \@ne 1.25cm \dimexpr\hsize-1.25cm\relax% Set up ...

2

Are you looking for something like this? \documentclass{article} \usepackage{lipsum} \makeatletter \renewcommand\@makefntext[1]{% \@setpar{% \@@par \@tempdima=\hsize \advance\@tempdima by -1.25cm\relax \parshape \@ne 1.25cm \@tempdima }% \par \parindent=\z@ \noindent \hb@xt@ \z@{\hss \hb@xt@ 1.25cm{\@thefnmark.\hss}}% #1% } \...

2

With package url use: \footnote{\url{http://chasen.org/~taku/software/yamcha/}} and not \~, which is a command for the tilde as accent, eg \~n

2

You can use \DeclareFieldFormat for this, which allows formatting on a per-entry type. (I've changed your documentclass to article, since I don't have your class). Note: This is a temporary answer, which although it works has some problems as noted in the comments. I will update with a better solution. \documentclass[]{article} \begin{filecontents}{\...

1

Maybe this is what you want? I used ltablex, which brings the functionalities of longtable to tabularx: \documentclass[12pt]{article} \usepackage{amssymb} \usepackage{amsfonts} \usepackage[capposition=top]{floatrow} \usepackage{amsmath} \usepackage[nohead]{geometry} \usepackage[singlespacing]{setspace} \usepackage[bottom]{footmisc} \usepackage{graphicx} \...

1

Either use \makeatletter \@addtoreset{footnote}{section} \makeatother or \counterwithin*{footnote}{section} The * prevents \counterwithin from prepending the section number to the footnote number. The first version does not need a package, the second one requires the chngcntr package. \documentclass[12pt, a4paper, twoside]{article} \usepackage[...

1

LyX (even the last version 2.2.0) doesn't provide native support for BibLaTeX yet, but if you see here: https://wiki.lyx.org/BibTeX/Biblatex you'll find how to use the built-in citation manager with BibLaTeX with some little tricks. In pratice you leave the the BibTeX inset (Insert→List/TOC→BibTeX Bibliography...) in a LyX note or comment, in this way LyX ...

1

Is this what you are looking for? \documentclass{scrartcl} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand \command { m m } { \group_begin: \keyval_parse:NNn \use_none:n \jshivers_command:nn { #1 } #2 \group_end: } \cs_generate_variant:Nn \seq_set_split:Nnn { NnV } \cs_new_protected:Npn \jshivers_command:nn #1 #2 { \tl_set:Nn \...

1

My understanding now is that \insert\footins{...} will cause anything written inside the group to wind up in \box\footins but only AFTER the page is output. Also, \global\insert is not allowed. The macro \global@insert doesn't precisely mimic the \insert "migration" in that the contents show up immediately, but it seems to work good enough for footnotes. \...

1

Here's an idea, but it's not easy to understand what you're after. \documentclass{article} \begin{document} \newcommand{\lymessage}[3]{% \item \begingroup \let\par\fpar % don't really do \par \linepenalty=10000 % no page break inside a paragraph % the text #1\par #2\par #3\par #3\par #3\par #3\par #3\par #3\par #3\par #...

1

This is a nice case of short term thinking. Your solution will cause more issues than it solves. How will you mark new footnotes of a next revision? If you need to display the changes between two revisions of a document, provide a »diff« between document-version-1.tex and document-version-2.tex, the latter being the latest revision. Please have a look at ...

1

Use the footmisc package with option symbols*. IOt enables the perpage option. You can enable your own list of symbols with \DefineFNSymbols{mysymbolslist}{…}, and use it with \setfnsymbol{mysymbolslist}. See §§ 1.5–1.7 of the documentation for details.

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