TransWikia.com

How to remove indentation in footnote?

TeX - LaTeX Asked by TeXIQ on June 7, 2021

On the first page, I put “corresponding author” in a footnote. However, there is unwanted indentation before * (see the picture below).

enter image description here

I tried noindent but didn’t work. MWE is at below. Thank you!

documentclass[twocolumn, twoside]{article}

usepackage{authblk}    
usepackage{multicol}
usepackage{fancyhdr}   

begin{document}

begin{multicols}{1} 
title{fontsize{24pt}{10pt}selectfonttextbf{The Title Here}vspace{1ex}} 

    author[1,*]{Author One}
    affil[1]{small University of California;}     

date{}

end{multicols}

twocolumn[ 
  maketitle
  thispagestyle{fancy} 
        begin{abstract}
         {fontfamily{pnc}selectfont 

         textbf{} Following the first case series of Hodgkin lymphomas  
}
    end{abstract}
]

renewcommand{thefootnote}{*}
    footnotetext{noindent  Correspondence: John Doe, 1234 Main Street, City Name, CA 00000. Tel: 123-456-6666; Fax: 123-456-4545; Email: [email protected]}

section{Introduction}
Although Pathology is as ancient as 17th century BC Egyptian medicine, Hematopathology can only be historically traced back to 1832 AD when Thomas 

end{document}

3 Answers

Never use manual mark up in commands like title. I'd suggest using something like titling here. I'm not sure if you really want what you seem to - it seems strange. But you can no doubt adapt:

documentclass[twocolumn, twoside]{article}
usepackage{fancyhdr}
usepackage{titling}
pretitle{begin{center}fontsize{24pt}{10pt}selectfontbfseries}
posttitle{parend{center}vskip 1ex}
preauthor{begin{center}
    large lineskip 0.5em}
postauthor{parend{center}}
thanksheadextra{1,}{}
setlengththanksmarkwidth{.5em}
setlengththanksmargin{-thanksmarkwidth}
begin{document}
title{The Title Here}
author{Author One thanks{Correspondence: John Doe, 1234 Main Street, City Name, CA 00000. Tel: 123-456-6666; Fax: 123-456-4545; Email: [email protected]}}
date{}
renewcommandmaketitlehookd{%
  begin{abstract}
    fontfamily{pnc}selectfont% This seems most unwise.
    textbf{} Following the first case series of Hodgkin lymphomas
  end{abstract}}
renewcommandmaketitlehookc{%
  begin{center}
    textsuperscript{1}{small University of California;}
  end{center}}
maketitle
thispagestyle{fancy}% really? Are you sure you want this?

section{Introduction}
Although Pathology is as ancient as 17th century BC Egyptian medicine, Hematopathology can only be historically traced back to 1832 AD when Thomas

end{document}

Note that normally you should select fonts for the whole document by loading the relevant package, if you wish to change the defaults. It is not wise to have an abstract in a different font, for example....

sample

Answered by cfr on June 7, 2021

cfr's solution clearly works. For people without much experience like myself, I found a simpler solution from stackoverflow and would like to share here:

Use footmisc package:

usepackage[hang,flushmargin]{footmisc}

Answered by TeXIQ on June 7, 2021

By meho_r on Latex.org/forum

documentclass{book}

makeatletter

renewcommand@makefntext[1]{%
setlengthparindent{1em}%
noindent
mbox{@thefnmark.~}{#1}}

makeatother

usepackage{lipsum}% just to generate dummy text

begin{document}
Testfootnote{lipsum[1]}.
end{document}

Redefines makefnttext, setting the paraindent length and removing the indent with noindent.

Answered by PLG on June 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP