Skip to content

Instantly share code, notes, and snippets.

@moewew
Created June 18, 2020 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moewew/348f8601e2988d76228dbe665dc89a58 to your computer and use it in GitHub Desktop.
Save moewew/348f8601e2988d76228dbe665dc89a58 to your computer and use it in GitHub Desktop.
\documentclass[11pt,english]{scrbook}
\usepackage{fontspec}
\usepackage[paperwidth=16cm,paperheight=24cm]{geometry}
\geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2cm,rmargin=2cm}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setmainfont{Gentium Plus}
% !BIB program = biber
\usepackage[para]{footmisc}
\usepackage{perpage}
\MakePerPage{footnote}
\usepackage[
backend=biber,
style=philosophy-modern,
publocformat=loccolonpub,
inbeforejournal=true]{biblatex}
\begin{filecontents}{\jobname.bib}
@book{amara_namalinganus!asana_1914,
author = {Amarasiṃha},
location = {Trivandrum},
title = {The Nâmaliṅgânus(!)âsana of Amarasimha. With the
Commentary T(!)îkâsarvaswa of
Vandyaghat(!)îya-Sarvânanda. Parts I and {IV}},
editor = {Sâstrî, T. Gaṇapati},
series = {Trivandruṃ Sanskrit Series},
number = {{XXXVIII}, {LII}},
date = 1914,
}
@book{amara_namalinganus!asana_1915,
author = {Amarasiṃha},
location = {Trivandrum},
title = {The Nâmalingânus(!)âsana of Amarasimha. With the two
commentaries Amarakosodghâṭana of Kshîrasvâmin and
T(!)îkâsarvasva of
Vandyaghat(!)îya-Sarvânanda. Parts {II} and {III}},
editor = {Sâstrî, T. Gaṇapati},
series = {Trivandrum Sanskrit Series},
number = {{XLIII}, {LI}},
date = 1915,
}
@book{oka_namalinganusasana_1913,
author = {Amarasiṃha},
location = {Poona},
title = {The Nâmalingânuśâsana: (Amarakosha) of Amarasimha
with the Commentary (Amarakoshodghâtana) of
Kshîrasvâmin},
editor = {Oka, K. G.},
date = 1913,
}
@book{amara_namalinganusasana_1929,
author = {Amarasiṃha},
location = {Bombay},
edition = {Fifth edition},
title = {The Nâmalingânuśâsana (Amarakosha) of
Amarasimha. With the Commentary (Vyâkhyâsudhâ or
Ramâśramî) of Bhânuji Dîkshit. Edited with Notes},
reviser = {Paṇśīkar, Wāsudev Laxmaṇ Śāstrī},
date = 1929,
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Lorem \autocite{oka_namalinganusasana_1913}
ipsum\footcite{amara_namalinganusasana_1929}
dolor\footcite{amara_namalinganus!asana_1915}
\clearpage
sit\footcite{amara_namalinganus!asana_1914}
amet\footcite{amara_namalinganusasana_1929}
\nocite{*}
\printbibliography
\end{document}
@latamahesh
Copy link

latamahesh commented Jun 18, 2020

Screenshot 2020-06-18 14 54 11

@latamahesh
Copy link

@moewe, as you can see from the screenshot, the name Amarasiṃha appears twice. This happens with other authors as well.

@moewew
Copy link
Author

moewew commented Jun 18, 2020

@latamahesh I'm probably being extremely thick, but I can only see Amarasiṃha once in the name position. Maybe you can draw some circles on the image to show what you mean?

@latamahesh
Copy link

Screenshot 2020-06-18 17 47 04

@latamahesh
Copy link

latamahesh commented Jun 18, 2020

@moewew, here is the second image. it had disappeared mysteriously.

@moewew
Copy link
Author

moewew commented Jun 18, 2020

@latamahesh Is that at the top of a new page? biblatex-philosophy will explicitly repeat the name on a new page so your readers don't have to flick back to find out the author. This is a feature.

But if you must disable it, you can try

\newbibmacro*{bbx:dashcheck}[2]{%
  \ifboolexpr{
    test {\iffieldequals{fullhash}{\bbx@lasthash}}
    and
    (
       not bool {bbx@inset}
       or
       test {\iffieldequalstr{entrysetcount}{1}}
    )
  }
    {#1}
    {#2}}

I wouldn't do that, though.

@latamahesh
Copy link

latamahesh commented Jun 18, 2020 via email

@moewew
Copy link
Author

moewew commented Jun 18, 2020

@latamahesh Yes, biblatex's page tracker has different settings and can take into account double-sided printing (in which case it will only force repetition of the name on even/left pages). You can read a bit more about this in the biblatex documentation. Look for pagetracker.

@latamahesh
Copy link

latamahesh commented Jun 18, 2020 via email

@latamahesh
Copy link

latamahesh commented Jun 30, 2020 via email

@moewew
Copy link
Author

moewew commented Jun 30, 2020

@latamahesh I can't see a screenshot, it appears to have gone missing when you sent the mail.

Is this about the code above or about your other question on TeX.SX https://tex.stackexchange.com/q/551308/35864?

Unfortunately, this looks like an issue that I won't be able to diagnose without seeing code that replicates the problem. It is possible that this is a very elusive problem where building an MWE is complex and takes quite long, but I'm afraid it is the only good way forward, if you want people to be able to help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment