1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
|
% arara: pdflatex
% arara: biber
% arara: pdflatex
% arara: pdflatex
% --------------------------------------------------------------------------
% the FNPCT package
%
% footnote kerning
%
% --------------------------------------------------------------------------
% Clemens Niederberger
% Web: https://bitbucket.org/cgnieder/fnpct/
% E-Mail: contact@mychemistry.eu
% --------------------------------------------------------------------------
% Copyright 2012 Clemens Niederberger
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Clemens Niederberger.
% --------------------------------------------------------------------------
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
% the package is inspired by the following question on TeX.SE:
% http://tex.stackexchange.com/q/56094/5049
% --------------------------------------------------------------------------
% if you want to compile this documentation you'll need the document class
% `cnpkgdoc' which you can get here:
% https://bitbucket.org/cgnieder/cnpkgdoc/
% the class is licensed LPPL 1.3 or later
\RequirePackage{sepfootnotes}
\documentclass[toc=index,toc=bib]{cnpkgdoc}
\docsetup{
pkg = fnpct ,
code-box = {
backgroundcolor = gray!3!white ,
skipbelow = .5\baselineskip ,
skipabove = .5\baselineskip ,
roundcorner = 3pt
}
}
\usepackage[biblatex]{embrac}[2012/06/29] % v0.1a
\ChangeEmph{[}[,.02em]{]}[.055em,-.08em]
\ChangeEmph{(}[-.01em,.04em]{)}[.04em,-.05em]
\usepackage{libertinehologopatch}
\usepackage{array,booktabs}
\cnpkgcolors{
main => cnpkgred ,
key => yellow!40!brown ,
module => cnpkgblue ,
link => black!90
}
\renewcommand*\othersectionlevelsformat[3]{%
\textcolor{main}{#3\autodot}\enskip}
\renewcommand*\partformat{%
\textcolor{main}{\partname~\thepart\autodot}}
\setkomafont{caption}{\normalfont\footnotesize\sffamily}
\setkomafont{captionlabel}{\normalfont\footnotesize\sffamily\scshape}
\addcmds{
AdaptNote,
AdaptNoteMark,
anote,
anotecontent,
arabic,
DeclareNewFootnote,
endnote,
footnoteB,
kfc,
kfp,
multendnote,
multfootcite,
multfootnote,
multparnote,
multsidenote,
myfn,
newfootnotes,
parnote,
parnotes,
setfnpct,
sidenote,
theendnotes,
thempfootnote,
writeinnernotes
}
\setfnpct{multiple,add-punct-marks=:[0pt][-.05em]}
\usepackage{endnotes}
\usepackage{parnotes}
\newfootnotes{a}
\renewcommand\thempfootnote{\arabic{mpfootnote}}
\usepackage[backend=biber,style=alphabetic]{biblatex}
\addbibresource{/data/texlive/2012/texmf-dist/doc/latex/biblatex/examples/biblatex-examples.bib}
\addbibresource{\jobname.bib}
% rudimentary solution for a `maintainer' field:
\DeclareFieldFormat{authortype}{\mkbibparens{#1}}
\renewbibmacro*{author}{%
\ifboolexpr{
test \ifuseauthor
and
not test {\ifnameundef{author}}
}
{\printnames{author}%
\iffieldundef{authortype}
{}
{\setunit{\space}%
\usebibmacro{authorstrg}}}
{}}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{bringhurst04,
title = {The Elements of Typographic Style},
author = {Robert Bringhurst},
year = {2004},
version = {3.2},
isbn = {978-0-88179-205-5},
publisher = {Hartley \&\ Marks, Canada}
}
@package{bigfoot,
title = {bigfoot},
author = {David Kastrup},
date = {2006-07-15},
version = {1.25},
url = {http://mirror.ctan.org/macros/latex/contrib/bigfoot}
}
@package{endnotes,
title = {endnotes},
author = {Robin Fairbairns},
authortype = {current maintainer},
date = {2012-01-15},
url = {http://mirror.ctan.org/macros/latex/contrib/endnotes}
}
@package{enotez,
title = {enotez},
author = {Clemens Niederberger},
version = {0.4},
date = {2012-12-30},
url = {http://mirror.ctan.org/macros/latex/contrib/enotez}
}
@package{fixfoot,
title = {fixfoot},
author = {Robin Fairbairns},
date = {2007-12-12},
version = {0.3a} ,
url = {http://mirror.ctan.org/macros/latex/contrib/fixfoot}
}
@package{footmisc,
title = {footmisc},
author = {Robin Fairbairns},
date = {2011-06-06},
version = {5.5b},
url = {http://mirror.ctan.org/macros/latex/contrib/footmisc}
}
@package{footnote,
title = {footnote},
author = {Mark Wooding},
date = {1997-01-28},
version = {1.13},
url = {http://mirror.ctan.org/macros/latex/contrib/footnote}
}
@package{manyfoot,
title = {manyfoot},
author = {Alexander I. Rozhenko},
date = {2005-09-11},
version = {1.10},
url = {http://mirror.ctan.org/macros/latex/contrib/manyfoot}
}
@package{parnotes,
title = {parnotes},
author = {Micheal Hughes},
date = {2012-03-01},
version = {1},
url = {http://mirror.ctan.org/macros/latex/contrib/parnotes}
}
@package{pagenote,
title = {pagenote},
author = {Will Robertson},
authortype = {current maintainer},
date = {2009-09-03},
version = {1.1a},
url = {http://mirror.ctan.org/macros/latex/contrib/pagenote}
}
@package{sepfootnotes,
title = {sepfootnotes},
author = {Eduardo C. Louren\c{c}o de Lima},
date = {2013-01-17},
version = {0.2},
url = {http://mirror.ctan.org/macros/latex/contrib/sepfootnotes}
}
@package{sidenotes,
title = {sidenotes},
author = {Andy Thomas},
date = {2011-11-10},
version = {0.80},
url = {http://mirror.ctan.org/macros/latex/contrib/sidenotes}
}
@package{snotez,
title = {snotez},
author = {Clemens Niederberger},
version = {0.2},
date = {2013-04-04},
url = {https://www.bitbucket.org/cgnieder/snotez}
}
@package{tablefootnote,
title = {tablefootnote},
author = {H.-Martin M\"{u}nch},
date = {2012-01-14},
version = {1.0g},
url = {http://mirror.ctan.org/macros/latex/contrib/tablefootnote}
}
@package{yafoot,
title = {yafoot},
author = {Hiroshi Nakashima},
date = {1999-07-14},
version = {1.0},
url = {http://mirror.ctan.org/macros/latex/contrib/yafoot}
}
\end{filecontents}
\AdaptNoteOpt\footcite\multfootcite
\usepackage{imakeidx}
\begin{filecontents*}{\jobname.ist}
heading_prefix "{\\bfseries "
heading_suffix "\\hfil}\\nopagebreak\n"
headings_flag 1
delim_0 "\\dotfill\\hyperpage{"
delim_1 "\\dotfill\\hyperpage{"
delim_2 "\\dotfill\\hyperpage{"
delim_r "}\\textendash\\hyperpage{"
delim_t "}"
suffix_2p "\\nohyperpage{\\,f.}"
suffix_3p "\\nohyperpage{\\,ff.}"
\end{filecontents*}
\indexsetup{othercode=\footnotesize}
\makeindex[options={-s \jobname.ist},intoc,columns=3]
\newcommand\setapart[1]{%
\begin{quote}
#1
\end{quote}}
\let\verb\lstinline
\TitlePicture{\parbox{.75\textwidth}{The \fnpct package basically does two things
to footnotes: if footnote marks are followed by a punctuation mark the order
of footnote and punctuation mark is reversed and the kerning gets adjusted. As a
side effect a new method of creating multiple footnotes and some other features are
provided.}}
\newcommand*\Default[1]{%
\hfill\llap
{%
\ifblank{#1}%
{(initially~empty)}%
{Default:~\code{#1}}%
}%
\newline
}
\begin{document}
\section{License and Requirements}
Permission is granted to copy, distribute and/or modify this software under the
terms of the \LaTeX\ Project Public License, version 1.3 or later
(\url{http://www.latex-project.org/lppl.txt}). The package has the status
``maintained.''
\fnpct depends on the packages \paket*{l3kernel}, \paket*{xparse}, \paket*{l3keys2e}
and \paket*{scrlfile}.
\section{What's it all about?}
\subsection{Introduction}
The purpose of this package is to offer kerning for footnote marks, \ie the
superscripts. This is not appropriate for all superscripts. Symbols must be
handled differently than numbers. And of course the amount depends on the chosen
font. Robert Bringhurst says in \citetitle{bringhurst04}:
\begin{zitat}[\emph{\citetitle{bringhurst04}} \cite{bringhurst04}]
Superscripts frequently come at the ends of phrases or sentences. If they are
high above the line, they can be kerned over a comma or period, but this may
endanger readability, especially if the text is set in a modest size.
\end{zitat}
\fnpct can not make this decisions for you. It sets some initial values for the
comma and the full stop which looked good to me with the tested fonts.
Additionally it kerns the superscripts away from words when it follows directly.
The amounts of the kerning can be changed using an option.
As a side effect \fnpct switches the order of the superscript and the following
comma or full stop. Additional punctuation marks can be added to the switching
behaviour and the amount of kerning can be set for each punctuation mark individually.
\subsection{Basics}\secidx{basics}
The \fnpct package basically does two things to footnotes: if footnote marks are
followed by a comma or a full stop\footnote{More punctuation marks can be added
through a package option.} the order of footnote and punctuation mark is
reversed and the kerning gets adjusted. As a side effect a new method of creating
multiple footnotes\footnote{like;this} is provided, see section~\ref{sec:multiple}
for details.
In what way is the kerning adjusted? After being placed behind the punctuation
mark the footnote mark is moved a little bit back, namely by the amount specified
with the option \key{after-punct-space} (see section~\ref{sec:options}). If the
footnote mark follows a word \emph{without} being followed by a punctuation%
\footnote{Well, it does not necessarily have to follow a \emph{word}. The important
point is \emph{not being followed} by a punctuation mark.}, there (obviously) is
no order switching and a little space is inserted before the footnote mark, namely
the amount specified by the option \key{before-footnote-space} (see section~\ref{sec:options}).
All examples in this documentation use
\setapart{\cmd{renewcommand}\cmd{thempfootnote}{\cmd{arabic}{mpfootnote}}.}
Now, let's see some action:
\begin{beispiel}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}.
\end{minipage}
\end{beispiel}
To ensure that the kerning is set the right way the footnote \emph{must} be placed
\emph{before} the full stop or the comma. \emph{The command can look ahead but not look back}.
This means if you place the \cmd{footnote} command after a full stop or a comma it is
treated as if following a word, \ie a thin space is inserted: effectively the opposite
of the desired behaviour.
The order-switching can be prevented using a package option since not all countries
and languages have the same typographic conventions. In this case the full stop
and the comma are moved a bit back.
\begin{figure}[ht]
\centering
\begin{tabular}{>{\setfnpct{dont-mess-around}}ll}
without \fnpct & with \fnpct \\
\strut\quad text.\footnotemark[1] & \strut\quad text\footnotemark[1]. \\
\strut\quad text\footnotemark[1]. & \setfnpct{punct-after}\strut\quad text\footnotemark[1].
\end{tabular}
\caption{The effect of \fnpct.}
\end{figure}
\begin{beschreibung}
\Option{punct-after}{\default{true}|false}\Default{false}
When \code{true} the punctuation sign will be placed \emph{after} the footnote.
\end{beschreibung}
Like all options it can also be set using the setup command.
\begin{beschreibung}
\Befehl{setfnpct}{<options>}
Set up options. Can be used anywhere in the document. Some options can only
be set in the preamble, though.
\end{beschreibung}
\begin{beispiel}
\setfnpct{punct-after}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}.
\end{minipage}
\end{beispiel}
\secidx*{basics}
\subsection{Temporarily disable or enable switching}\secidx{disable switching}
One maybe want to put some footnote marks \emph{before} the punctuation and some
after, for example because the first one describes a single word but the second
one a whole sentence. For this purpose \fnpct adds a \code{*} argument to \cmd{footnote}
and \cmd{footnotemark}. The complete new syntax now is as follows:
\begin{beschreibung}
\Befehl{footnote}*[<num>]{<footnote text>}\code{<tpunct>}\newline
new \code{*} argument added. \code{<tpunct>} is the optional trailing
punctuation mark.
\Befehl{footnotemark}*[<num>]\code{<tpunct>}\newline
new \code{*} argument added. \code{<tpunct>} is the optional trailing
punctuation mark.
\end{beschreibung}
The \code{*} argument temporarily turns off the punctuation/footnote switching.
In case you set \key{punct-after}{true} the \code{*} argument temporarily
\emph{enables} the switching.
\begin{beispiel}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote*{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}.
\end{minipage}\hfil
\setfnpct{punct-after}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote*{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}.
\end{minipage}
\end{beispiel}
\secidx*{disable switching}
\section{Options}\secidx{options}\label{sec:options}
Most package options are listed below. They all can be set as a package option or
with the \cmd{setfnpct} command. Most of them are for adjusting the kerning.
\default{Underlined} values are set if the option is used without value.
\begin{beschreibung}
\Option{add-punct-marks}{<mark>[<space after>][<space before>]}\newline
add another punctuation mark for the position switching and spacify kerning
if necessary. An existing entry will be overwritten. This option accepts a
list of marks.
%
\Option{remove-punct-marks}{<mark>}\newline
remove punctuation mark from the kerning/position switching behaviour. This
option accepts a list of marks.
%
\Option{after-dot-space}{<dim>}\Default{-.06em}
space to be inserted after a footnote mark and before the full stop
(``footnote \emph{after} dot''). A negative space will move the full stop
further to the footnote mark.
%
\Option{after-comma-space}{<dim>}\Default{-.06em}
space to be inserted after a footnote mark and before the comma
(``footnote \emph{after} comma''). A negative space will move the comma further
to the footnote mark.
%
\Option{after-punct-space}{<dim>}\newline
set \emph{all} spaces, \ie also the ones for marks you've added with
\key{add-punct-marks}.
%
\Option{punct-after}{\default{true}|false}\Default{false}
when \code{true} the punctuation sign will be placed \emph{after} the footnote.
%
\Option{before-dot-space}{<dim>}\Default{-.16em}
space to be inserted after a footnote mark and before the full stop (``footnote
\emph{before} dot''), \ie with \key{punct-after}{true}.
%
\Option{before-comma-space}{<dim>}\Default{-.16em}
space to be inserted after a footnote mark and before the comma (``footnote
\emph{before} comma''), \ie with \key{punct-after}{true}.
%
\Option{before-punct-space}{<dim>}\newline
set \emph{all} spaces, \ie also the ones for marks you've added with
\key{add-punct-marks}.
%
\Option{before-footnote-space}{<dim>}\Default{.06em}
space to be inserted between a word and the following footnote mark.
%
\Option{dont-mess-around}{\default{true}|false}\Default{false}
sets all mentioned lengths to \code{0pt} and \key{punct-after}{true}. Basically
this seems as if you hadn't loaded \fnpct except the multiple footnote commands
and \cmd{innernote} are still available, see sections~\ref{sec:multiple}
and~\ref{sec:nested}, respectively.
%
\Option{multiple}{\default{true}|false}\Default{false}
lets \cmd{footnote} be equal to \cmd{multfootnote}.
%
\Option{mult-fn-delim}{<delimiter>}\Default{;}
sets the delimiter for the \cmd{multfootnote} command.
%
\Option{mult-fn-sep}{<separator>}\Default{,}
sets the separator between multiple footnote marks.
%
\Option{normal-marks}{\default{true}|false}\Default{false}
sets the footnote marks in the foot not as superscripts but as normal font. If
you're not using a \paket[koma-script]{KOMA-Script} class this option will load
the package \paket*{scrextend}. See section~\ref{sec:normal} for more information.
\emph{This option can only be set in the preamble}.
\end{beschreibung}
So if you want to extend the punctuation switching and kerning to other punctuation
marks you can do something like this:
\begin{beispiel}
\setfnpct{add-punct-marks=!?}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay}?
Sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}!
\end{minipage}
\end{beispiel}
Or with some additional spacing:
\begin{beispiel}
\setfnpct{add-punct-marks=![.03em]?[.03em]}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay}?
Sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}!
\end{minipage}
\end{beispiel}
Let's take a look at an example with some ridiculous settings:
\begin{beispiel}
% some ridiculous settings:
\setfnpct{after-punct-space=2pt,before-footnote-space=2pt}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}.
\end{minipage}
\end{beispiel}
And now the same with switched order:
\begin{beispiel}
% some ridiculous settings:
\setfnpct{punct-after,before-punct-space=2pt,before-footnote-space=2pt}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}.
\end{minipage}
\end{beispiel}
In case the automatic kerning doesn't work for whatever reason the spaces are
available as user commands as well:
\begin{beschreibung}
\Befehl{kfp}\newline
insert the \key{after-dot-space} or (if \key{punct-after}{true}) the
\key{before-dot-space}.
\Befehl{kfc}\newline
insert the \key{after-comma-space} or (if \key{punct-after}{true}) the
\key{before-comma-space}.
\end{beschreibung}
Some of the options are explained in a bit more detail in the next sections.
\secidx*{options}
\section{Multiple footnotes}\secidx{multiple footnotes}\label{sec:multiple}
\subsection{Basics}\secidx[basics]{multiple footnotes}
Since multiple footnotes have to be treated differently\footnote{see these footnotes;%
for an example}, \fnpct provides an extra command for that:
\begin{beschreibung}
\Befehl{multfootnote}*{<list>;<of>;<footnotes>}\code{<tpunct>}\newline
different footnotes are separated with a semicolon. The \code{*} turns the
footnote/punctuation switching temporarily off.
\end{beschreibung}
\begin{beispiel}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\multfootnote{probably fired clay bricks;or
something else}.
\end{minipage}
\end{beispiel}
Every of the items of the list has an optional argument equivalent to the optional
argument of \cmd{footnotetext}:
\begin{beschreibung}
\Befehl{multfootnote}{*[<mark>]<footnote text>;...}
\end{beschreibung}
\begin{beispiel}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\multfootnote{probably fired clay bricks;[5]or
something else}.
\end{minipage}
\end{beispiel}
Additionally every item has an optional \code{*} which only invokes \cmd{footnotetext}.
This enables for example to set nested footnotes\secidx[nested footnotes]{multiple footnotes}
without disrupting the multiple setting. The following example is shown in
figure~\ref{fig:nested:mult}:
\begin{beispiel}[code only]
\documentclass{article}
\usepackage[
paperwidth=.5\textwidth,
paperheight=12\baselineskip,
margin=5pt,
bottom=1.5cm]{geometry}
\usepackage{fnpct}
\begin{document}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\multfootnote{probably fired clay bricks%
\footnotemark;*or something else;what do I know}.
\end{document}
\end{beispiel}
\begin{figure}[h]
\centering
\fbox{\includegraphics{nested_ex.pdf}}
\caption{nested footnotes}\label{fig:nested:mult}
\end{figure}
\subsection{The delimiter and separator}\secidx[delimiter]{multiple footnotes}\secidx[separator]{multiple footnotes}
Since the semicolon might be part of the footnote text you might have some trouble.
But there are ways around. Maybe try enclosing it in braces:
\begin{beispiel}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\multfootnote{probably fired clay bricks{;}
or something else;what do I know}.
\end{minipage}
\end{beispiel}
There also are options which lets you choose the (input) delimiter and the (output)
separator:
\begin{beschreibung}
\Option{mult-fn-delim}{<delimiter>}\Default{;}
choose delimiter for the \cmd{multfootnote}.
\Option{mult-fn-sep}{<separator>}\Default{,}
choose the separator that is put between footnote marks.
\end{beschreibung}
\begin{beispiel}
\setfnpct{mult-fn-delim=//,mult-fn-sep=;}
\begin{minipage}[t]{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\multfootnote{probably fired clay bricks;
or something else//what do I know}.
\end{minipage}\hfil
\setfnpct{mult-fn-delim=;,mult-fn-sep=}
\renewcommand*\thempfootnote{\fnsymbol{mpfootnote}}
\begin{minipage}[t]{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\multfootnote{probably fired clay bricks;
or something else}.
\end{minipage}
\end{beispiel}
\subsection{Automagic}\secidx[automagic]{multiple footnotes}
If you want you can turn all footnotes into \cmd{multfootnote}s.
\begin{beschreibung}
\Option{multiple}{\default{true}|false}\Default{false}
let \cmd{footnote} behave like \cmd{multfootnote}. \emph{This option can only
be set in the preamble}.
\end{beschreibung}
\begin{beispiel}
% in preamble: \setfnpct{multiple}
% or \usepackage[multiple]{fnpct}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks;or
something else}.
\end{minipage}
\end{beispiel}
\secidx*{multiple footnotes}
\section{Nested Footnotes}\secidx{nested footnotes}\label{sec:nested}
\fnpct provides preliminary support for nested footnotes. There are some restrictions,
though. The command below can be used inside \cmd{footnote} and \cmd{multfootnote},
but not inside another \cmd{innernote}. \cmd{innernote} really is a ``inner
footnote'', it doesn't work with endnotes, for example.
\begin{beschreibung}
\Befehl{innernote}*[<mark>]{<text>}\code{<tpunct>}\newline
a nested footnote.
\end{beschreibung}
The inner node uses a \cmd{footnotemark} internally and the mark will be set with
the definition it has at begin document.
The output of the following code can be seen in figure~\ref{fig:nested:a}.
\begin{beispiel}[code only]
\documentclass{article}
\usepackage[
paperwidth=.5\textwidth,
paperheight=12\baselineskip,
margin=5pt,
bottom=1.5cm]{geometry}
\usepackage{fnpct}
\begin{document}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks%
\innernote{or not}}.
\end{document}
\end{beispiel}
\begin{figure}[h]
\centering
\fbox{\includegraphics{nested_ex_a.pdf}}
\caption{\cmd{innernote} example (a)}
\label{fig:nested:a}
\end{figure}
This is especially useful if you have more than one additional footnote inside a
footnote, a case that can't be solved in a satisfying (\ie automatic) way with the
method mentioned in section~\ref{sec:multiple}. See figure~\ref{fig:nested:b} for
the output of this code:
\begin{beispiel}[code only]
\documentclass{article}
\usepackage[
paperwidth=.5\textwidth,
paperheight=12\baselineskip,
margin=5pt,
bottom=1.5cm]{geometry}
\usepackage{fnpct}
\begin{document}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably\innernote{just guessing}
fired clay bricks\innernote{or not}}.
\end{document}
\end{beispiel}
\begin{figure}[h]
\centering
\fbox{\includegraphics{nested_ex_b.pdf}}
\caption{\cmd{innernote} example (b)}
\label{fig:nested:b}
\end{figure}
\cmd{innernote} can also be used to escape minipages. In this case use
\cmd{innernote} as a replacement for \cmd{footnote} and call this command
later:
\begin{beschreibung}
\Befehl{writeinnernotes}\newline
writes all \cmd{footnotetext}s to the inner footnotes when invoked. This is
usually done automatically by the \cmd{footnote} command but there are
possible needs for it.
\end{beschreibung}
See figure~\ref{fig:nested:c} for the output of the following code:
\begin{beispiel}[code only]
\documentclass{article}
\usepackage[
paperwidth=.5\textwidth,
paperheight=12\baselineskip,
margin=5pt,
bottom=1.5cm]{geometry}
\usepackage{fnpct}
\begin{document}
\noindent\fbox{%
\begin{minipage}{.9\linewidth}
The three little pigs built their houses
out of straw\innernote{not to be confused with hay},
sticks\innernote{or lumber according to some sources}
and bricks\innernote{probably}.
\end{minipage}}\writeinnernotes
\end{document}
\end{beispiel}
\begin{figure}[h]
\centering
\fbox{\includegraphics{nested_ex_c.pdf}}
\caption{\cmd{innernote} example (c)}
\label{fig:nested:c}
\end{figure}
\secidx*{nested footnotes}
\section{Normal notes}\secidx{normal notes}\label{sec:normal}
The package option \key{normal-marks} (see p.\,\pageref{key:normal-marks}) changes
the layout of the footnote marks in the foot by using \paket[koma-script]{KOMA-Script}'s
\setapart{\cmd{deffootnote}[<mark indent>]{<indent>}\ma{<par indent>}\ma{<format code>}.}
The following code is shown in figure~\ref{fig:normal}.
\begin{beispiel}[code only]
\documentclass{article}
\usepackage[
paperwidth=.5\textwidth,
paperheight=12\baselineskip,
margin=5pt,
bottom=1.5cm]{geometry}
\usepackage[normal-marks]{fnpct}
\begin{document}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}.
\end{document}
\end{beispiel}
\begin{figure}[h]
\centering
\fbox{\includegraphics{normal_ex.pdf}}
\caption{Demonstration of the \key{normal-marks} option.}
\label{fig:normal}
\end{figure}
The three indent values used by \fnpct can be changed with the following options:
\begin{beschreibung}
\Option{normal-mark-width}{<dim>}\Default{1em}
The width of the box within which the marks are set.
\Option{normal-indent}{<dim>}\Default{1.5em}
The indent of each footnote line \emph{except} the first.
\Option{normal-par-indent}{<dim>}\Default{1em}
Additional indent of a new paragraph inside the footnote text.
\end{beschreibung}
\secidx*{normal notes}
\section{Other packages}\secidx{other packages}\label{sec:other:packages}
\fnpct tries its best to support other footnote and related packages\footnote{If
you find some package missing please let me know.}. Each of the following subsections
is dedicated to one of these packages and if and how they work together with \fnpct.
Fortunately most of them do quite well.
\subsection{bigfoot}\label{ssec:bigfoot}\secidx[bigfoot]{other packages}
The \paket{bigfoot}~\cite{bigfoot} package extends the possibilities of the
\paket{manyfoot} package~\cite{manyfoot} (see section~\ref{ssec:manyfoot}). The
main visible feature is to use different classes of footnotes which are typeset
in different apparatus on the bottom of the page.
\fnpct is compatible with \paket{bigfoot}. You need to be a bit cautious, though.
You need to
\setapart{declare footnotes with \cmd{DeclareNewFootnote} \emph{after} loading \fnpct
but in the document \emph{preamble}.}
\emph{Also verbatim material won't work inside footnotes anymore}. But you can of
course use Bruno Le Floch's \paket{cprotect} if you really need verbatim material
in footnotes \emph{and} want to use \fnpct. Since \fnpct does not redefine any
\cmd{footnotetext} like command it will still work inside one of them.
For every footnote class defined with \cmd{DeclareNewFootnote} the commands
\cmd{footnote<class>} and \cmd{footnotemark<class>} are redefined with the starred
variant and a \cmd{multfootnote<class>} is defined. The \key{multiple} option
will turn all \cmd{footnote<class>} commands into the corresponding
\cmd{multfootnote<class>}.
\fnpct has an additional package option which \emph{cannot} be set with \cmd{setfnpct}
and only has any effects if \paket{bigfoot} has been loaded:
\begin{beschreibung}
\option{bigfoot-default-top}{\default{true}|false} sets the \code{default} footnote
class as top layer. Default = \code{false}
\end{beschreibung}
Since this document cannot easily combine \emph{every} footnote package at the same
time for demonstration purposes the following code is shown in figure~\ref{fig:bigfoot}:
\begin{beispiel}[code only]
\documentclass{article}
\usepackage[
paperwidth=.5\textwidth,
paperheight=12\baselineskip,
margin=5pt,
bottom=1.5cm]{geometry}
\usepackage{bigfoot}
\usepackage[bigfoot-default-top]{fnpct}
\setfnpct{multiple}
\DeclareNewFootnote[para]{B}[alph]
\begin{document}
\noindent The three little pigs built their houses
out of straw\footnote*{not to be confused with hay%
\footnoteB{let alone grass}}, sticks\footnote{or
lumber according to some sources} and bricks%
\footnote{probably fired clay bricks;or something}.
\end{document}
\end{beispiel}
\begin{figure}[h]
\centering
\fbox{\includegraphics{bigfoot_ex.pdf}}
\caption{\paket*{bigfoot} example}
\label{fig:bigfoot}
\end{figure}
\subsection{endnotes}\secidx[endnotes]{other packages}
The \paket{endnotes}~\cite{endnotes} package povides the commands \cmd{endnote}
and \cmd{endnotemark} which can be used to output all notes at the end of a chapter,
say.
If the package is loaded both commands are adapted\footnote*{see section~\ref{sec:adapt}
on manual adaption}:
\begin{beispiel}[code only]
% `fnpct' does this for you:
\AdaptNote\endnote\multendnote
\AdaptNoteMark\endnotemark
\end{beispiel}
Everything else stays the same:
\begin{beispiel}
\begin{minipage}[t]{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\endnote{not to be confused with hay},
sticks\endnote{or lumber according to some sources}
and bricks\endnote{probably fired clay bricks}.
\theendnotes
\end{minipage}\hfil
\begin{minipage}[t]{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\endnote*{not to be confused with hay},
sticks\endnote{or lumber according to some sources}
and bricks\multendnote{probably fired clay bricks;or
something else}.
\theendnotes
\end{minipage}
\end{beispiel}
\subsection{enotez}\secidx[enotez]{other packages}
The \paket{enotez}~\cite{enotez} package povides the command \cmd{endnote}
which can be used to output all notes at the end of a chapter, say.
If the package is loaded the command is adapted\footnote*{see section~\ref{sec:adapt}
on manual adaption}:
\begin{beispiel}[code only]
% `fnpct' does this for you:
\AdaptNote\endnote\multendnote
\end{beispiel}
\subsection{fixfoot}\secidx[fixfoot]{other packages}
The \paket{fixfoot}~\cite{fixfoot} package provides a possibility to create repeating
footnotes. \fnpct supports this package provided you take care of the following:
\setapart{Use \cmd{DeclareFixedFootnote} only in the preamble but \emph{after} loading
\fnpct.}
\cmd{DeclareFixedFootnote}{\cmd{cs}}\ma{<footnote text>} is used to store the
\ma{<footnote text>} in \cmd{cs} which in turn creates a footnote mark for it but
doesn't repeat the footnote text on the same page in the bottom. The document needs
several runs to get all the numbers and footnotes right.
Every fixed footnote declared with \cmd{DeclareFixedFootnote} gets an optional
\code{*} to prevent the punctuation switching. \emph{There is \emph{no} mult-variant
of the fixed notes!}
Since this document cannot easily combine \emph{every} footnote package at the same
time for demonstration purposes the following code is shown in figure~\ref{fig:fixfoot}:
\begin{beispiel}[code only]
\documentclass{article}
\usepackage[
paperwidth=.55\textwidth,
paperheight=12\baselineskip,
margin=5pt,
bottom=1.5cm]{geometry}
\usepackage{fixfoot}
\usepackage{fnpct}
\DeclareFixedFootnote{\myfn}{I'm confused: what do I want to say?}
\begin{document}
\noindent The three little pigs\myfn\ built their houses
out of straw\myfn*, sticks\footnote{or lumber according
to some sources} and bricks\footnote{probably fired clay
bricks}.
\end{document}
\end{beispiel}
\begin{figure}[h]
\centering
\fbox{\includegraphics{fixfoot_ex.pdf}}
\caption{\paket*{fixfoot} example}
\label{fig:fixfoot}
\end{figure}
\subsection{footmisc}\label{ssec:manyfoot}\secidx[footmisc]{other packages}
The \paket{footmisc} package~\cite{footmisc} provides a range of options to customize
footnotes, for example output them as margin notes or count footnotes per page.
Testing showed no incompatibilities with \paket{footmisc}. The only thing is that
you won't have to (and shouldn't) use its \code{multiple} option.
\subsection{footnote}\secidx[footnote]{other packages}
Unfortunately \fnpct is not compatible with the \paket{footnote} package~\cite{footnote}.
Or more precisely it is not compatible if the command pair \cmd{savenotes}/\cmd{spewnotes}
is invoked. This disables \paket{footnote}'s environments as well as its environment
escaping mechanism through \cmd{makesavenoteenv}.
\subsection{manyfoot}\secidx[manyfoot]{other packages}
The \paket{manyfoot} package~\cite{manyfoot} is not and will not directly be
supported. It is loaded by \paket{bigfoot} (see section~\ref{ssec:bigfoot}), anyway.
And since the latter states in its documentation
\begin{zitat}[David Kastrup~\textup{\cite{bigfoot}}]
Purpose of this package is to provide a one-stop solution to almost all problems
related to footnotes. You can use it as a drop-in replacement of the `\paket{manyfoot}'
package, but without many of its shortcomings, and quite a few features of its
own.
\end{zitat}
you should probably prefer it anyway.
If it is \emph{really} wanted by users I might change my opinion, though \ldots
\subsection{pagenote}\secidx[pagenote]{other packages}
The package \paket{pagenote}~\cite{pagenote} is supported and its \cmd{pagenote}
command is treated the same way as all other note commands: it got an optional
\code{*} argument and an additional \cmd{multpagenote} is defined.
\subsection{parnotes}\secidx[parnotes]{other packages}
The function of the package \paket{parnotes}~\cite{parnotes} is similar to the
\paket{endnotes} package. basically it allows to output the footnote text after
a paragraph, either by using a special environment or by invoking \cmd{parnotes}.
If \paket{parnotes} is loaded \fnpct extends its functionality analogous
to the one of \paket{endnotes}.
Again the \key{multiple} option turns all \cmd{parnote}s into \cmd{multparnote}s.
\begin{beispiel}
\begin{minipage}[t]{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\parnote{not to be confused with hay},
sticks\parnote{or lumber according to some sources}
and bricks\parnote{probably fired clay bricks}.
\parnotes
\end{minipage}\hfil
\begin{minipage}[t]{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\parnote*{not to be confused with hay},
sticks\parnote{or lumber according to some sources}
and bricks\multparnote{probably fired clay bricks;or
something else}.
\parnotes
\end{minipage}
\end{beispiel}
\subsection{sepfootnotes}\secidx[sepfootnotes]{other packages}
\fnpct supports the \paket{sepfootnotes} package~\cite{sepfootnotes}. Each note
type you have created with with one of the commands
\begin{description}
\item \cmd{newfootnotes}{<prefix>},
\item \cmd{newendnotes}{<prefix>} or
\item \cmd{newsymbolfootnotes}{<prefix>}
\end{description}
gets the additional optional \code{*} to prevent punctuation switching. Also the
corresponding mult-variant \cmd{<prefix>multnote} is defined. The option \key{multiple}
again turns all note commands into their mult-variant.
You have to use the \cmd{newfootnotes} commands in the document preamble after
loading \fnpct.
\begin{beispiel}
% preamble \newfootnotes{a}
\anotecontent{first}{not to be confused with hay}
\anotecontent{second}{or lumber according to some sources}
\anotecontent{third}{probably fired clay bricks}
\begin{minipage}{.4\linewidth}
\noindent The three little pigs built their houses
out of straw\anote{first}, sticks\anote{second} and
bricks\anote{third}.
\end{minipage}
\end{beispiel}
\subsection{sidenotes}\secidx[sidenotes]{other packages}
The package \paket{sidenotes}~\cite{sidenotes} is supported and its commands
\cmd{sidenote} and \cmd{sidenotemark} are treated the same way as footnotes:
they got an optional \code{*} argument and the additional \cmd{multsidenote}
is created. The option \key{multiple} turns all note commands into their
mult-variant.
\subsection{snotez}\secidx[snotez]{other packages}
The package \paket{snotez}~\cite{snotez} is supported and its commands
\cmd{sidenote} and \cmd{sidenotemark} are treated the same way as footnotes:
they got an optional \code{*} argument and the additional \cmd{multsidenote}
is created. The option \key{multiple} turns all note commands into their
mult-variant.
\subsection{tablefootnote}\secidx[tablefootnote]{other packages}
The package \paket{tablefootnote}~\cite{tablefootnote} is supported and its
\cmd{tablefootnote} command is treated the same way as all other note commands:
it got an optional \code{*} argument and an additional \cmd{multtablefootnote}
is defined. The option \key{multiple} turns all note commands into their mult-variant.
\subsection{yafoot}\secidx[yafoot bundle]{other packages}
Currently no issues are known when using \fnpct with one or all of the packages
of the \paket{yafoot}~\cite{yafoot} bundle. Just for reference: these packages are
\paket*{pfnote}, \paket*{fnpos} and \paket*{dblfnote}.
\secidx*{other packages}
\section{Adapting note commands}\secidx{adapting notes}\label{sec:adapt}
If a package is not natively supported you can try and adapt commands yourself.
You'll need to use one of the following commands. Please be aware that if the
adapted command does not match the required syntax it will get the required syntax
afterwards. This can result in dummy arguments or an overwritten \code{*} argument.
\begin{beschreibung}
% \AdaptNote
\Befehl{AdaptNote}{\cmd{cs}}\ma{\cmd{multcs}} \cnpkgdocarrow\ this lets \cmd{cs} adapt to
the kerning behaviour and adds an optional \code{*}. It also creates a
corresponding mult-variant. The package option \key{multiple} will now turn
\cmd{cs} into its mult-variant. Required syntax: \cmd{cs}[<oarg>]{<marg>}
% \AdaptNoteNoMult
\Befehl{AdaptNoteNoMult}{\cmd{cs}} \cnpkgdocarrow\ like \cmd{AdaptNote} but doesn't create a
mult-variant and thus there is no change in behaviour when the option \key{multiple}
is used. Required syntax: \cmd{cs}[<oarg>]{<marg>}
% \AdaptNoteOpt
\Befehl{AdaptNoteOpt}{\cmd{cs}}\ma{\cmd{multcs}} \cnpkgdocarrow\ this lets \cmd{cs}
adapt to the kerning behaviour and adds an optional \code{*}. It also creates a
corresponding mult-variant. The package option \key{multiple} will now turn
\cmd{cs} into its mult-variant. Required syntax: \cmd{cs}[<oarg>]\oa{<oarg>}\ma{<marg>}
% \AdaptNoteOptNoMult
\Befehl{AdaptNoteOptNoMult}{\cmd{cs}} \cnpkgdocarrow\ like \cmd{AdaptNoteOpt} but
doesn't create a mult-variant and thus there is no change in behaviour when the
option \key{multiple} is used. Required syntax: \cmd{cs}[<oarg>]\oa{<oarg>}\ma{<marg>}
% \AdaptNoteMark
\Befehl{AdaptNoteMark}{\cmd{cs}} \cnpkgdocarrow\ this lets \cmd{cs} adapt to the
kerning behaviour and adds an optional \code{*}. Required syntax: \cmd{cs}[<oarg>]
% strict
\option{strict}{\default{true}|false} when \code{true} \cmd{AdaptNote} (and the
others) will issue errors if the note command in question has already been
adapted. Default = \code{false}
\end{beschreibung}
\subsection{tufte-latex's side notes}\secidx[tufte-latex]{adapting notes}
For example using the \cmd{sidenote} command from the \paket[tufte-latex]{tufte-handout}
class is easily possible, see also figure~\ref{fig:tufte}:
\begin{beispiel}[code only]
\documentclass{tufte-handout}
\usepackage[multiple]{fnpct}
\AdaptNote\sidenote\multsidenote
\begin{document}
Some text in the document body\sidenote{Some
text in a sidenote.;A second sidenote.}.
\end{document}
\end{beispiel}
\begin{figure}[h]
\centering
\fbox{\includegraphics[trim=2.5cm 24.5cm 2cm 1cm,scale=.65]{tufte_ex.pdf}}
\caption{Adapt {tufte-latex}.}
\label{fig:tufte}
\end{figure}
\subsection{Adapting \cmd*{footcite} and siblings}
\secidx[biblatex]{adapting notes}\label{ssec:adapt:footcite}
If you're willing to sacrifice \cmd{footcite}'s \code{*} argument (which it has
in some styles) you can adapt the commands provided by \paket{biblatex} as well:
\begin{beispiel}
% used in preamble: \AdaptNoteOpt\footcite\multfootcite
\begin{minipage}{.5\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}. The
companion has nothing on this topic\multfootcite{[see]
[but there's nothing there]companion;[or see][but there's
also nothing]knuth:ct:a}.
\end{minipage}
\end{beispiel}
The option \key{multiple} turns all \cmd{footcite}s into \cmd{multfootcite}s now.
Remember that the optional arguments then are inside the braces!
\begin{beispiel}
% used in preamble: \AdaptNoteOpt\footcite\multfootcite
% with option `multiple':
\begin{minipage}{.5\linewidth}
\noindent The three little pigs built their houses
out of straw\footnote{not to be confused with hay},
sticks\footnote{or lumber according to some sources}
and bricks\footnote{probably fired clay bricks}. The
companion has nothing on this topic\footcite{[see][but
there's nothing there]companion;[or see][but there's also
nothing]knuth:ct:a}.
\end{minipage}
\end{beispiel}
\secidx*{adapting notes}
\appendix
\printbibliography
\setindexpreamble{Section titles are indicated \textbf{bold}, packages
\textsf{sans serif}, commands \code{\textbackslash\textcolor{code}{brown}}
and options \textcolor{key}{\code{yellow}}.\par\bigskip}
\printindex
\end{document}
|