Text FormattingCustomize footnote mark (footnoteA)

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
lorloz
Posts: 3
Joined: Tue Feb 10, 2015 12:49 am

Customize footnote mark (footnoteA)

Post by lorloz »

Hello,

I would like to know if it is possible to customize the footnote marker of a new layer of footnotes (footnoteA).

I would like the footnoteA marker to be just like the footnote marker (not superscript, followed by a dot), but I am not able to do it by myself: can anybody help me please?

Thank you.



This is a minimal working example:

Code: Select all

\documentclass[a5paper]{book}
\usepackage[no-sscript]{xltxtra}
\setmainfont [Ligatures=TeX, Numbers=OldStyle]{EB Garamond}
\usepackage[para]{manyfoot}
\DeclareNewFootnote[para]{A}
\usepackage[para, norule]{footmisc}

\makeatletter
\renewcommand\@makefntext{\@thefnmark.\hskip.5em}
\makeatother

\begin{document} 
Some text\footnote{The footnote.}. Some more text\footnoteA{The A footnote.}
\end{document}
Last edited by Stefan Kottwitz on Tue Feb 10, 2015 1:16 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Customize footnote mark (footnoteA)

Post by Johannes_B »

Hi and welcome,

i am not quite sure what you want yet, can you elaborate a bit?

Here is a first suggestion. It defines alph but hardcodes the dot in there. Not very practicale. As a KOMA-user myself, i am used to deffootnote to alter the visual appearance of footnotes.

Maybe you could define the special one as the standard, and redefine the normal one as a new footnote type. Hence no fiddeling around with the original code.

It will be a bit clearer after some explanations.

Code: Select all

\documentclass[a5paper]{book}
\usepackage[para]{manyfoot}
\usepackage[norule]{footmisc}
\usepackage{scrextend}

\makeatletter
%\renewcommand\@makefntext{\@thefnmark.\hskip.5em}
\def\MFL@declare#1#2[#3]{%
  \newfootnote[#1]{#2}%
  \edef\@tempa{\noexpand\newcounter{footnote#2}%
    \noexpand\renewcommand
    \expandafter\noexpand\csname thefootnote#2\endcsname{%
      \expandafter\noexpand\csname @#3\endcsname
      \expandafter\noexpand\csname c@footnote#2\endcsname.%<- here is the dot
    }%
    \ifMFL@perpage \noexpand\MakePerPage{footnote#2}\fi
    \noexpand\newcommand
    \expandafter\noexpand\csname footnote#2\endcsname{%
      \noexpand\MFL@makemark{footnote#2}{\noexpand\stepcounter}{%
        \noexpand\@footnotemark
        \noexpand\let\noexpand\@tempb\noexpand\@thefnmark
        \expandafter\noexpand\csname Footnotetext#2\endcsname{%
          \noexpand\@tempb
        }%
      }%
    }%
    \noexpand\newcommand
    \expandafter\noexpand\csname footnotemark#2\endcsname{%
      \noexpand\MFL@makemark{footnote#2}{\noexpand\stepcounter}{%
        \noexpand\@footnotemark
      }%
    }%
    \noexpand\newcommand
    \expandafter\noexpand\csname footnotetext#2\endcsname{%
      \noexpand\MFL@makemark{footnote#2}{\noexpand\@gobble}{%
        \noexpand\let\noexpand\@tempb\noexpand\@thefnmark
        \expandafter\noexpand\csname Footnotetext#2\endcsname{%
          \noexpand\@tempb
        }%
      }%
    }%
    \noexpand\newcommand
    \expandafter\noexpand\csname Footnotemark#2\endcsname{%
      \noexpand\Footnotemark
    }%
    \noexpand\newcommand
    \expandafter\noexpand\csname Footnote#2\endcsname[1]{%
      \noexpand\Footnotemark{####1}%
      \expandafter\noexpand\csname Footnotetext#2\endcsname{####1}%
    }%
  }%
  \@tempa
}
\makeatother

\DeclareNewFootnote[para]{A}[alph]
\deffootnote[1em]{1.5em}{1em}{\thefootnotemark}
\begin{document}
Some text\footnote{The footnote.}. Some more
text\footnoteA{The A footnote.}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
lorloz
Posts: 3
Joined: Tue Feb 10, 2015 12:49 am

Re: Customize footnote mark (footnoteA)

Post by lorloz »

Hello, and first of all thank you for your reply and your help: you have been very kind.

I am sorry if I expressed myself badly: I am afraid that I was not able to show clearly what my problem was about.

I have two levels of footnotes and I would like the footnoteA marker to be followed by a dot and not superscript, but only in the footer, just like the footnote marker of the first level. In the text the marker should be just like as usual.

I managed to edit the first level footnotemarker (in the footer) in order to appear just like I want it, but I am not able to do the same with the footnoteA marker.

I am sorry if I explained badly my problem and thank you for your help
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Customize footnote mark (footnoteA)

Post by Johannes_B »

Maybe i should go home and look into this tomorrow as i still don't understand the issue. Can you make some sort of visual help? A scanned drawing, something done with paint or a Word screenshot?
Maybe a bit on the use might be helpful.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
lorloz
Posts: 3
Joined: Tue Feb 10, 2015 12:49 am

Re: Customize footnote mark (footnoteA)

Post by lorloz »

Thank you: I attached a pdf file, showing the effect I would like to get.

I hope it will help,

thanks again.
Attachments
footnotemarkA.pdf
(61.65 KiB) Downloaded 442 times
Post Reply