Yeni alıntı komutu noktalama işaretlerini yutar

Aug 17 2020

- kombinasyonu shorttitleyerine gösterilecek yeni bir alıntı komutu tanımladım . Sorun, onu takip eden noktalama işaretini yutmasıdır.authoryear

Kullanmayı denedim \DeclareCitePunctuationPositionama işe yaramadı.

Bunu nasıl düzeltebilirim?

\documentclass{article}
\usepackage{biblatex-chicago}

\DeclareCiteCommand{\citeabbr}
{\usebibmacro{cite:init}%
  \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \printtext[bibhyperref]{\textit{\printfield{shorttitle}}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}
  
\DeclareCitePunctuationPosition{\citeabbr}{r} % doesn't work

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{Howlett1975,
  title = {Dictionary of Medieval Latin from British Sources},
  shorttitle = {DMLBS},
  editor = {Howlett, D.R.},
  date = {1975/2013},
  publisher = {Oxford University Press},
  location = {Oxford},
  addendum = {DMLBS},
}
\end{filecontents}

\addbibresource{\jobname.bib}
\usepackage{hyperref}    

\begin{document}
  \citeabbr[s.v.]{Howlett1975}; this cite command has swallowed my semicolon.
\end{document}

Yanıtlar

5 moewe Aug 17 2020 at 12:08

biblatex istenmeyen çift noktalama veya noktalama işaretlerini önlemek için çok gelişmiş bir sisteme sahiptir.

Özellikle biblatexbir cümle bitiminden (tam nokta) sonra herhangi bir noktalama işaretini bastıracaktır. Yani '.;' sadece "." olur. 'Sorun', kısaltmayı belirten bir noktadan sonra virgül veya noktalı virgülü gizlemek istememenizdir, bu nedenle 'sv'; tamamen iyidir ve "sv" ye indirgenmesi gerekmez. Beri '.' temelde iki işlevi vardır, yazarken biblatexne demek istediğinizi anlatmanız ve ona yardımcı olmanız gerekir .. Varsayılan olarak biblatexa'nın .nokta olduğunu varsayar . Bir kısaltma noktası girmek istiyorsanız, \adddotya da sadece diyebilirsiniz .\isdot.

Bu nedenle, aşağıdaki 'sv;' gayet iyi.

\documentclass{article}
\usepackage{biblatex-chicago}

\DeclareCiteCommand{\citeabbr}
  {\usebibmacro{cite:init}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \printtext[bibhyperref]{\printfield[emph]{shorttitle}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}


\begin{filecontents}{\jobname.bib}
@book{Howlett1975,
  title = {Dictionary of Medieval Latin from British Sources},
  shorttitle = {DMLBS},
  editor = {Howlett, D.R.},
  date = {1975/2013},
  publisher = {Oxford University Press},
  location = {Oxford},
  addendum = {DMLBS},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\usepackage{hyperref}

\begin{document}
  \citeabbr[s.v.\isdot]{Howlett1975}; this cite command has swallowed my semicolon.
\end{document}


.Postnotlarınızı sonlandıran tüm e-postalar kısaltma noktaları ise, postnotealan formatını değiştirerek bunu otomatikleştirebilirsiniz (orijinal tanım şurada bulunabilir chicago-notes.cbx)

\DeclareFieldFormat{postnote}{% Changed for page compression option
  \ifboolexpr{%
    togl {cms@comprange}%
    and
    test {\ifpages{#1}}%
  }%
  {\iffieldundef{pagination}%
    {\mkcomprange{#1}}%
    {\mkcomprange[{\mkpageprefix[pagination]}]{#1}}}%
  {\iffieldundef{pagination}%
    {#1}%
    {\mkpageprefix[pagination]{#1}}%
   \isdot}}%

O \isdotzaman s.v.bir posta notunda her kullandığınızda yazmak zorunda kalmazsınız. Ama elbette bu ., son notun sonunda cümle bitirme dönemi olması gereken a'nın bu şekilde tanınmayacağı anlamına gelir.


s.v.Çok sık kullanıyorsanız , bunun için ihtiyacı ortadan kaldıran kullanışlı bir komut tanımlamak isteyebilirsiniz \isdot.

\documentclass{article}
\usepackage{biblatex-chicago}

\DeclareCiteCommand{\citeabbr}
  {\usebibmacro{cite:init}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \printtext[bibhyperref]{\printfield[emph]{shorttitle}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

\NewBibliographyString{sv}
\DefineBibliographyStrings{english}{
  sv = {s\adddot v\adddot},
}
\newcommand*{\sv}{\bibstring{sv}}

\begin{filecontents}{\jobname.bib}
@book{Howlett1975,
  title = {Dictionary of Medieval Latin from British Sources},
  shorttitle = {DMLBS},
  editor = {Howlett, D.R.},
  date = {1975/2013},
  publisher = {Oxford University Press},
  location = {Oxford},
  addendum = {DMLBS},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\usepackage{hyperref}


\begin{document}
  \citeabbr[\sv]{Howlett1975}; this cite command has swallowed my semicolon.
\end{document}