I'm still working on a Latex-template for my institution. So far everything runs fine and the former questions i asked here helped me a lot.
Now, i want to adjust the different parts of the journals footer to meet the expected layout. I have a working solution using \parbox inside my \lofoot, \cofoot etc. commands that makes the footer contents show up as wanted. The authors should appear on the left side with a linebreak if there are several, the title should appear always right of the author section, also flushedright to the right margin of the textbody, also with a linebreak if needed (see MWE below). But i figured the fitting widths out only using trial and error. That's not how it should be (I'm kind of a perfectionist ;) )
Thus, i wanted to find out which macros inside the scrlayer-scrpage package define those commands and to adjust/renew them that they fit my needs. But, so far, i wasn't able to receive these informations.
When i run latexdef -p scrlayer-scrpage lefoot inside the terminal or use \meaning\lefoot inside my document, for example, i get the phrase macro:->\sls@renewelement {even}{left}{foot}. So far, so good, but i couldn't figure out how to find the definition of the element foot (Running latexdef on foot produced only that it's undefined since foot is no command, running it on sls@renewelement didn't help either). I also searched inside the .sty file directly without a result. If i run {\tracingall\lefoot} inside the document the compilation process never ends and i can't find any informations in the log.
Therefore, my question is not only about the mentioned adjustment of the footer, but also a general one on working deeper in Latex/Tex backend: How to get these kind of informations if I need to do it again – and this will be the case for sure since I'm only getting started with the template.
Here is my MWE (I intentionnaly use the article class and no KOMA-class). I added my workaround solution only to the odd pages, so everyone can see the layout differences:
\documentclass[a4paper,12pt,
twoside,%
]{article}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{geometry}
\geometry{%
inner=20mm,
outer=60mm,
top=15mm,
bottom=20mm,
marginparwidth=45mm,
showframe % to show the margins
}
\usepackage[footwidth=textwithmarginpar,footsepline=0.4pt:text,ilines]{scrlayer-scrpage}
\clearpairofpagestyles
\ModifyLayer[addvoffset=2.5ex]{scrheadings.foot.odd}
\ModifyLayer[addvoffset=2.5ex]{scrheadings.foot.even}
\ModifyLayer[addvoffset=2.5ex]{scrheadings.foot.oneside}
\ModifyLayer[addvoffset=2.5ex]{plain.scrheadings.foot.odd}
\ModifyLayer[addvoffset=2.5ex]{plain.scrheadings.foot.even}
\ModifyLayer[addvoffset=2.5ex]{plain.scrheadings.foot.oneside}
\setkomafont{pagefoot}{\sffamily\tiny\normalshape}
\ohead*{\pagemark}
\lefoot{Journal 2000, § 1--4}
\cefoot{A List of different authors who have written the current article}
\refoot*{\bfseries The title of the current article which was written by the different authors mentioned on the left}
\lofoot{\parbox[t]{.35\textwidth}{A List of different authors who have written the current article}}
\cofoot{\hspace{.13\textwidth}\parbox[t]{.5\textwidth}{\raggedleft\bfseries The title of the current article which was written by the different authors mentioned on the left}}
\rofoot{Journal 2000, § 1--4}
\begin{document}
\section{Section Heading}
\blindtext[5]
\end{document}
I'm sure the solution can be interpreted from reading The TeXbook or TeX by Topic or something similar, but it would save me an enormous amount of time if someone has a faster answer. The KOMA-script documentation wasn't as helpful so far.
Thanks in advance for your helpful replies!
EDIT
The links provided in the comments are very helpful and I found a lot which I nedd and want to read to understand Latex even better.
But the particular question remains unsolved and i couldn't find a solution. I still adjust the footer layout by using parbox and hspace* commands inside the lefoot... commands provided by the scrlayer-scrpage package. Inside the package the \lefoot command i.e. is defined as macro:->\sls@renewelement {even}{left}{foot}.
Has anyone the concrete answer where to find the definition of these three elements, so i can redefine them to fitting my needs? Or is it generally a bad idea to change something as deep inside the package-tree/backend?
\show/latexdef. – user202729 Jun 04 '23 at 02:50\lefoot" is not going to help solve your problem. (Putting the\parboxinto the\lofootis pretty much already the correct "solution" to your layout needs; you should explain why you think that is unsatisfactory and what would be a satisfactory solution.) – Willie Wong Jun 07 '23 at 13:56parboxin\cofootof my MWE manually so it is flushedright with the right margin of the textbody. As you can see, I use\hspace*{.13\textwidth}\parbox...to push it to the wanted position. I just thought there has to be a more consistent way to align the respectively inner and centered foot contents to the left or right margin of the textbody. This is necessary since the hole footer spans through\textwidth+\marginparwidthand the outer foot box (\rofootabove) always shows the journal number. Was that clear? ;) – lukeflo Jun 07 '23 at 14:08