Tag Info

New answers tagged

4

The biblatex mla cite style provides formatting specifications for the titles depending on the entry type. However, there is no definition for bookinbook entry type. The suitable definition is \DeclareFieldFormat{citetitle:bookinbook}{\mkbibemph{#1}} With the above definition, the output as expected.


1

From this source, I got a solution to my problem: \usepackage{etoolbox} \usepackage{refcount} \newcommand{\mypageref}[2]{ \ifnumequal{\getpagerefnumber{#1}}{\getpagerefnumber{#2}} {S. \pageref{#1}} {S. \pageref{#1}\ --\ \pageref{#2}} }


2

Thanks Ulrike for sending me on the right path. I found another article which led me closer to the final solution, but which also did not work, but with a little fiddling I finally got it to work as follows: First I added to my LyX document (Book) preamble, at the end of my earlier existing LyX preamble the following two lines of code: \usepackage{url} ...


2

Define with \urldef a command for the problematic url: \documentclass{article} \usepackage{hyperref} \begin{document} \urldef\mydangerousurl\url{http://www.livius.org/cg-cm/chronicles/abc1/abc1_col_ii.html#column_ii} abc\footnote{\mydangerousurl} \end{document}


2

There is only a name:andothers defined. However, this may help: \documentclass{article} \usepackage{biblatex} \renewcommand*{\finalnamedelim}{% \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}% \addspace\bibstring[\emph]{and}\space} \addbibresource{\jobname.bib} [...]


1

I solved this problem by inserting '(reftex-use-external-file-finders t) into my emacs init file. It makes RefTeX use the appropriate command from reftex-external-file-finders to find the file. In my case that is kpsewhich -format=.bib %f. The default is looking in the folders specified in the environment variables BIBINPUT and TEXINPUT. I prefer this ...


1

The error is caused by an outdated version of biblatex and biber. An update to TeX Live 2014 (on Mac OS X it's MacTeX 2014) should solve the issue.


1

Using Natbib Considering the comments to my question, the fastest way was to hack the dinat.bst file changing the following: German to english words Authors name font Volume/number/year format Removed urldate field Removed unnecessary dashes Modify spacing between label and reference Final output: Using BibLateX \usepackage[american]{babel}% ...


1

You can add entries to Mendeley manually by File > Add Entry Manually. This opens a pop-up, where you can choose the entry type (e.g. Web Page, Generic, Bill, Journal Article, etc.). Once you have typed in what information you want, click Save. The entry will now figure as any other Mendeley entry, and will also be present in your generated .bib file. ...


2

You can use \DeclareNameFormat to only use the last name. The finalandcomma only appears if applicable. For example, if ngerman is loaded, not comma is set. You can remove the comma by using package etoolbox. % arara: pdflatex % arara: biber % arara: pdflatex \documentclass{article} \usepackage[ backend = biber, style = authoryear-comp, ...


0

In Windows 7 and MikTex(basic-miktex-2.9.5105)+TexMaker4.3+bibtex file, I found that if I use command like these: \bibliographystyle{bst file name} \bibliography {bib file name} then \cite will not auto-complete. yet however if I use command like these: \bibliographystyle{bst file name} \bibliography{bib file name} then \cite will auto-complete the ...


4

You can abuse the infrastructure of ucs; here's a set of tricks that read the files you need in the ucs distribution, but under utf8 which is compatible with biblatex. \documentclass[]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \input{binhex} \makeatletter \def\uc@dclc#1#2#3{% \ifnum\pdfstrcmp{#2}{mathletters}=\z@ ...


1

cfr, I had a look into the links and also at some documentaries. At the moment I do not have the time to fully work out the problem, as i have to write some papers... At least I figuired out a (more or less good) workaround and want to let you know what I'm doing. I do not use any cite commands, but type in my references "manually". Getting entries to the ...


0

I resolved the problem, it was the fault of my use of the apalike package \usepackage{apalike}, once I've removed it, it works very well.


2

The following works: \documentclass{elsarticle} \bibliographystyle{model1-num-names} \usepackage{filecontents} \begin{filecontents*}{mybib.bib} @article{PGW-2010, author = {A.Padmanabhan and S.Ghosh and S.Wang}, journal = {J Grid Computing}, pages = {365-389}, publisher = {Springer}, title = {A Self-Organized grouping SOG ...


1

The simplest solution (given that the apa biblatex style is used) is to store the translation in the titleaddon field (which is one of the standard biblatex fields).


0

Here's how I did it: \nocite{reid1806analysis} Thomas Reid (1806, p.~91) pointed out the same problem and reprimanded Aristotle severely for this and other errors. Yes, this introduces redundancy and a chance of error if I change the Reid citation. But it generates the correct output, it required no debugging of LaTeX/BibTeX arcana, and I have a Ph.D. to ...


1

You can achieve the same result by using a \DeclareSourcemap for each specific document. Just include \DeclareSourcemap{ \maps[datatype=bibtex]{ \map[overwrite]{ \step[fieldsource=entrykey, match=\regexp{lennon1970}, fieldset=options, fieldvalue={skipbib=true}] } } } to dynamically load the options="skipbib=true" for the desired bibtex ...


4

You can anchor regexp searches to the beginning of a string by \A and to the end by \Z, see http://perldoc.perl.org/perlre.html#Regular-Expressions . If your input was encoded as author = {[Lennon, John]} then you simply add a first test \step[fieldsource = author, notmatch = \regexp{\A\[.+\]\Z}, final] to skip fields entirely contained brackets. ...


1

Try setup a style: \usepackage[style=alphabetic]{biblatex} or \usepackage[style=authoryear]{biblatex} See the biblatex documentation to see the styles avaiable. another suggestion not related to the question. You can replace notes=show to shownotes to avoid a warning.


1

This was an OSX related thing: I had Biber 1.8 and after updating the whole Tex Live with "Tex Live Utility" things started to work. It was not enough to update to the newest Mactex! You have to also update things with the Graphical tool in OSX! I thank Adam Liter for finding the solution in the chat: I'm on a Mac right now, and I get the same error ...


0

Probably, it is not the answer to your question, but it is too long to put it in the comment. What kind of advantage you want from using bib bibliography in presentation? Presentations usually mean few (three maximum) references per slide and the usual machinery (track order, etc) is just distracting here. For my presentations I use the following ...


2

If you want something like this: Then just modify the style of the footmark as described in the memoir manual (235-36): \footmarkstyle{#1.\,} And put it somewhere in the preamble of your document: \documentclass[12pt,a4paper]{memoir} \usepackage[utf8]{inputenc} \usepackage{lipsum} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} ...


2

Sorry guys, the realisation came to me the second I posted this question! :-) \map without [overwrite] will not overwrite any fields, therefore one can just say \DeclareSourcemap{ \maps[datatype=bibtex]{ \map{ \step[fieldset=hyphenation,fieldvalue=british] } } } and not worry about overwriting anything. However, I do wonder if this ...


4

Use year instead of date if the field is not in yyyy-mm-dd format. See biblatex manual p. 35, sec. 2.3.8. If you are writing in English, consider using "n.d." for "no date" (this is the Chicago Manual of Style's recommendation). PS - WorldCat tells me this book was published in 2011, but perhaps you were just using it as an example.


1

The problem is that the bibmacro cite saves the hash (unique for each author name) and year of the last used citation in a variable (actually a command). The current definition of \cite does not ensure that the values stored in the variable are cleared. The bibmacro to reset these variable is cite:init. That macro has to be executed for every cite command, ...


1

biblatex is the package used to style your bibliography. apa is an available style to change the visual apprearance of the bibliography (and the intext cites). You can get the documentation of the style by typing texdoc biblatex-apa into a terminal. csquotes on the other hand is a package to get control over quotations. It was developed by the same author ...


1

Just removed the following two lines from the code: \usepackage{xpatch} \xapptobibmacro{date+extrayear}{\nopunct}{}{} Looked here: Colon (:) instead of period (.) after author with biblatex, alphabetic and here: Replace period with colon after year with biblatex to approximate ametsoc guidelines It didn't work for me in the first place but.. finally ...


3

Long dates for Spanish are not implemented in biblatex-apa [Update: now they are; see below]. The following example modifies the appropriate definitions first appearing in spanish-apa.lbx to workaround a bug in the package which made the nodate label to appear instead of the actual localised string. It makes the Oxford comma to go away, the ampersand to be ...


1

Well, a more erudite answer will, as always, be appreciated - but for the time being, I got to a workaround, producing this (which includes the middle name initials): It is not really straightforward, as the name formats 'first-last' etc have to be looked up in biblatex.def (they are not present in the manual), and a hack has to be used to control ...


3

The apa biblatex sytle defines its own directives for name formats. In particular it defined apaauthor (which is the default format), thus, to achieve the desired effect one has to change apaauthor, namely: \DeclareNameAlias{apaauthor}{last-first/first-last}


3

This is caused by an error in oscola's driver for the thesis types. The code contains a straight \printnames{author} instead of \usebibmacro{author}. The latter macro does checks etc. that in particular print a dash instead of the author name when required. The easiest way to fix this is to use the xpatch package which provides a patching command for such ...


1

As @moewe said: citepages=omit will print the cited pages if needed and print the pages-entry from the .bib-File if left out.


3

You can define you own cite command (or redefine an existing one) with \DeclareCiteCommand. It takes 4 mandatory argument, the first is for how the pre-note is formatted, the second is for looping over the citations (and actually print the citation), the third one is for the separator between citations, and the last one if for the post-note. Inside the ...


1

This redefines the @incollection formatting. It only addresses points 1 and 2 because, unlike Bernard, I wasn't confident enough to address 3. (I'm worried my solution will have unwanted side-effects in other entries.) Bernard's is probably better but I'd already worked this out so I'm posting anyway: \begin{filecontents}{\jobname.bib} ...


2

Here is a solution using the xpatch package and its \xpatchbibdriver command. If you want use the incollection entry type, you should patch the ìncollection` bib driver in an analog way. \documentclass[11pt, a4paper]{scrreprt} %Inhaltsverzeichnis andere Schrift.. bei report normal \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...


4

In biblatex you can group references using @set in a bib file or you can dynamically create an entry set with \definebibentryset. Thus you can obtain the desired effect by \defbibentryset{set1}{Ref1:2008,Ref2:2009} Adding the above line to the provided MWE produces:


1

You can place multiple identifiers in the \nocite command. \documentclass{article} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @Article{Ref1:2008, author = {Author A}, title = {Title A}, journal = {A Journal}, year = {2008}, } @Article{Ref2:2009, author = {Author B}, ...


2

When you use \forcsvfield{<handler>}{<field>} each element in <field> is passed as parameter to the <handler>, thus you need to define your handler that consumes the parameter. In your case the definition looks like: \newcommand{\mydo}[1]{\addtocounter{refcounter}{1}} After that, you can modify the finentry bib macro as follows: ...


4

You are apparently using biblatex, so you can simply use \printbibliography[heading=bibnumbered]


1

That is because you are inconsistent in your naming convention: you use once Geck, Meinolf and once M. Geck Just stick to one naming and your references will be sorted as you want. If you want to print only the first letter of the first name, just add firstinits=true to the options of biblatex.


3

I have updated \rangelen in the development version of biblatex (3.0) on Sourceforge with a re-write by Joseph Wright which addresses this. In addition, there is a new macro \frangelen which takes instead a range field (like pages) name and returns the range so that you can do: \ifnumequal{2}{\frangelen{pages}}{f.}{something has gone wrong.} This macro ...


1

In my very particular case (in which the OSCOLA BibLaTeX style is used) the problem could be solved by changing \footcite[7B]{sale} to \DNI\footcite[7B]{sale} \index[tableg]{Sale of Goods Act1979@\citeinindex {sale}!8@ s 7B} (the \DNI command inhibits the citation, which is later introduced manually through the \index command; by the way, this appears ...


1

This is not a direct answer to your question, more a means of tracking down the problem. I have also had problems with undefined Unicode characters, so I add the following to my preambles: \usepackage{newunicodechar} \DeclareUnicodeCharacter{FFFD}{?????} The character FFFD is the Unicode replacement character. It enables a document to compile to ...


1

Here I also found a perfect one: \documentclass{article} \usepackage[pagebackref]{hyperref} \renewcommand*{\backref}[1]{} \renewcommand*{\backrefalt}[4]{ \ifcase #1 No cited. \or page #2. \else pages #2. \fi } \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @book {jost1995riemannian, AUTHOR = ...


0

A not so perfect solution is: \documentclass{article} \usepackage[backref=true, backend=bibtex,% or biber style=alphabetic, citestyle=authoryear, sortlocale=de_DE, natbib=true, doi=false, isbn=false, url=false]{biblatex} \usepackage{hyperref} %\DefineBibliographyStrings{english}{% % backrefpage = {page},% originally ...


3

Take my answer to Adding an [AuthorYear] block at the beginning of bibliography entries and replace my redefinition of the begentry bibmacro with the following redefinition: \renewbibmacro*{begentry}{% \printtext{% \begingroup \defcounter{maxnames}{\value{mymaxcitenames}}% \printnames{labelname}% \setunit{\nameyeardelim}% ...


3

The standard biblatex directives to format names use some auxiliary bibmacro: name:first-last name:last-first name:last For predefined name formats. Each of these take four arguments: the first is for the family name, the second is for the given name, the third for the "von" part, and the fourth for the "junior" part. Thus, one can use of the auxiliary ...


5

The first step is to identify the bibtex records where the specific name occurs. Given that the list of name is truncated to 2 we cannot use the implicit loop in the format name directive to discover if it occurs after the second name (the processing is terminated before). Accordingly, for this task we can define a source map, namely: \DeclareSourcemap{ ...


1

Check your bib file for the line which google, or journal, often add when you export a citation. language={english} delete it, then delte the .bbl and the .aux, then recompile



Top 50 recent answers are included