Using the Biblatex style from here and tweaking some other things I had some success but not for this thing in bibliography; I have a repeated species name, which is Helicobacter pylori, how to write a code to recognize this word, and may be some other words as well, so that Biblatext can write them in emphasized text once found in the .bib file?
P.S. That word Helicobacter pylori can appear in different forms in titles of references, they all should be emphasized as they are species names, as following:
Helicobacter pyloriHelicobacterH. pyloriH.pylori, i.e., space in between is sometimes omittedHelicobacteraceae, though rarely
Code:
\documentclass[oneside]{scrbook}
\usepackage[none]{hyphenat}%
%=====================Language, Fonts============================
\usepackage[ngerman,english]{babel}
\selectlanguage{english}
\usepackage{courier,mathptmx,amsmath,amsfonts,amssymb} %
\usepackage[utf8]{inputenc} %
\usepackage[T1]{fontenc} %
\usepackage{cmbright}
%=====================Referencing============================
\usepackage{xcolor} %
\usepackage{hyperref} %
\definecolor{dark-red}{rgb}{0.4,0.15,0.15}
\definecolor{dark-blue}{rgb}{0.15,0.15,0.4}
\definecolor{medium-blue}{rgb}{0,0,0.5}
\hypersetup{
colorlinks, linkcolor={dark-red},
citecolor={dark-blue}, urlcolor={medium-blue} %url can be magenta
}
\usepackage{filecontents} % to provide file
\begin{filecontents}{\jobname.bib}
@book{kennedy_pcr_2011,
title = {{PCR} Troubleshooting and Optimization: The Essential Guide},
isbn = {9781904455721},
shorttitle = {{PCR} Troubleshooting and Optimization},
language = {en},
pagetotal = {245},
publisher = {Horizon Scientific Press},
author = {Kennedy, Suzanne},
date = {2011-01-01},
keywords = {{PCR} troubleshooting, Polymerase Chain Reaction, {qPCR}, Science / Chemistry / General, Science / Life Sciences / Genetics \& Genomics}
}
@article{akira_role_2000,
title = {The role of {IL-18} in innate immunity},
volume = {12},
issn = {0952-7915},
url = {http://www.ncbi.nlm.nih.gov/pubmed/10679398},
issue = {1},
pages = {59-63},
journaltitle = {Current Opinion in Immunology},
shortjournal = {Curr Opin Immunol},
author = {Akira, S},
urldate = {2011-09-06},
date = {Feb 2000},
note = {{PMID:} 10679398},
keywords = {Animals, Immunity, Innate, Interferon-gamma, Interleukin-1, Interleukin-12, Interleukin-18, Interleukin-18 Receptor alpha Subunit, Killer Cells, Natural, Mice, Models, Immunological, Receptors, Interleukin, Receptors, Interleukin-18, Signal Transduction, Th1 Cells}
}
@article{vignali_il-12_2012,
title = {{IL-12} family cytokines: immunological playmakers},
volume = {13},
rights = {© 2012 Nature Publishing Group, a division of Macmillan Publishers Limited. All Rights Reserved.},
issn = {1529-2908},
url = {http://www.nature.com/ni/journal/v13/n8/full/ni.2366.html},
doi = {10.1038/ni.2366},
shorttitle = {{IL-12} family cytokines},
language = {en},
issue = {8},
pages = {722-728},
journaltitle = {Nature Immunology},
shortjournal = {Nat Immunol},
author = {Vignali, Dario A. A. and Kuchroo, Vijay K.},
urldate = {2012-11-20},
date = {2012},
keywords = {{IL-12} family, key reference, language, review},
file = {Vignali und Kuchroo - 2012 - IL-12 family cytokines immunological playmakers.pdf:D:\Documents\Zotero_Backup\storage\4WZFHV46\Vignali und Kuchroo - 2012 - IL-12 family cytokines immunological playmakers.pdf:application/pdf}
}
@software{matthias_kohl_slqpcr:_2007,
title = {{SLqPCR:} Functions for analysis of real-time quantitative {PCR} data at {SIRS-Lab} {GmbH.} R package, {SIRS-Lab} {GmbH.} Jena.},
author = {{Matthias Kohl}},
date = {2007},
note = {www.sirs-lab.com}
}
@article{lu_duodenal_2005-1,
title = {Duodenal ulcer promoting gene of Helicobacter pylori},
volume = {128},
issn = {0016-5085},
url = {http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3130061/},
issue = {4},
pages = {833-848},
journaltitle = {Gastroenterology},
shortjournal = {Gastroenterology},
author = {{LU}, {HONG} and {HSU}, {PING–I} and {GRAHAM}, {DAVID} Y. and {YAMAOKA}, {YOSHIO}},
urldate = {2012-12-19},
date = {2005-4},
note = {{PMID:} 15825067
{PMCID:} {PMC3130061}},
keywords = {{dupA}, first reference, H.pylori, {IL-8}, key reference, virulence},
file = {LU et al. - 2005 - Duodenal Ulcer Promoting Gene of Helicobacter pylo.pdf:D:\Documents\Zotero_Backup\storage\TDCZTC4F\LU et al. - 2005 - Duodenal Ulcer Promoting Gene of Helicobacter pylo.pdf:application/pdf}
}
\end{filecontents}
\usepackage[backend=biber,style=chem-acs,sorting=none,isbn=false,doi=false]{biblatex}
\addbibresource{\jobname.bib} % extension must be written
\ExecuteBibliographyOptions{%
citetracker=true,% Citation tracker enabled in order not to repeat citations, and have two lists.
sorting=none,% Don't sort, just print in the order of citation
alldates=long,% Long dates, so we can tweak them at will afterwards
dateabbrev=false,% Remove abbreviations in dates, for same reason as ``alldates=long''
articletitle=true,% To have article titles in full bibliography
maxcitenames=999% Number of names before replacing with et al. Here, everyone.
}
% No brackets around the number of each bibliography entry
\DeclareFieldFormat{labelnumberwidth}{#1\addperiod}
% Suppress article title, doi, url, etc. in citations
\AtEveryCitekey{%
\ifentrytype{article}
{\clearfield{title}}
{}%
\clearfield{doi}%
\clearfield{url}%
\clearlist{publisher}%
\clearlist{location}%
\clearfield{note}%
}
% Print year instead of date, when available; make use of urldate
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}
\renewbibmacro*{date}{% Based on date bib macro from chem-acs.bbx
\iffieldundef{year}
{\ifentrytype{online}
{\printtext[urldate]{\printurldate}}
{\printtext[date]{\printdate}}}
{\printfield[date]{year}}}
% Remove period from titles
\DeclareFieldFormat*{title}{#1}
% Make year bold for @book types
\DeclareFieldFormat[book]{date}{\textbf{#1}} % doctorate added this line
% Embed doi and url in titles, when available
\renewbibmacro*{title}{% Based on title bib macro from biblatex.def
\ifboolexpr{ test {\iffieldundef{title}}
and test {\iffieldundef{subtitle}} }
{}
{\ifboolexpr{ test {\ifhyperref}
and not test {\iffieldundef{doi}} }
{\href{http://dx.doi.org/\thefield{doi}}
{\printtext[title]{%
\printfield[titlecase]{title}%
\setunit{\subtitlepunct}%
\printfield[titlecase]{subtitle}}}}
{\ifboolexpr{ test {\ifhyperref}
and not test {\iffieldundef{url}} }
{\href{\thefield{url}}
{\printtext[title]{%
\printfield[titlecase]{title}%
\setunit{\subtitlepunct}%
\printfield[titlecase]{subtitle}}}}
{\printtext[title]{%
\printfield[titlecase]{title}%
\setunit{\subtitlepunct}%
\printfield[titlecase]{subtitle}}}}%
\newunit}%
\printfield{titleaddon}%
\clearfield{doi}%
\clearfield{url}%
\clearlist{language}% doctorate added this
\clearfield{note}% doctorate added this
\ifentrytype{article}% Delimit article and journal titles with a period
{\adddot}
{}}
\begin{document}
The book reference is here~\parencite{kennedy_pcr_2011}. This article has a bold year in the bibliographye~\parencite{vignali_il-12_2012}, whereas this one not~\parencite{akira_role_2000}. This article also with no year shown~\parencite{lu_duodenal_2005-1}, but has species name called ``\textit{Helicobacter pylori}'' that I want to be emphasized as it should be. If it is possible also to make the author name lower case, otherwise I have to hack this from within the Biblatex translator of Zotero citation manager. I am using TexStudio as \LaTeX{} IDE, while you may use a different one, but that should'nt be a problem anyway.How about using \verb|multicite| commands of the \verb|Biblatex| neat package by citing all of the above \parencites{see,}{akira_role_2000, kennedy_pcr_2011, vignali_il-12_2012, lu_duodenal_2005-1}. Did you notice that the prenote ``see'' was bold, how to change that to normal?
\printbibliography[title={References}] % change from bibliography to references
\end{document}
Result after typsetting:


terseinits. The remaining questions are not closely related. Keeping them together is unlikely to be useful to anyone but you, so I'd follow doncherry's advice. – Audrey May 14 '13 at 21:41{LU}, {HONG}) is meant to prevent tampering by uppercase-/lowercase-ing commands. I think it is adviseable to make your.bibfile conform rather than selectively break this feature on an ad hoc basis. (What is the advantage of allowing Zotero/etc. to create arbitrary database entries and then programmatically correct them on the output side? Isn't it better to have a bibliography file that conforms to the expected specification?) Regarding 'was the book correctly written?', could you elaborate on what that means? – jon May 14 '13 at 22:34