BibTeX, biblatex and biberUse \inparencite to add text like "vgl."/"c.f." before year

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
proxxi
Posts: 3
Joined: Mon Aug 18, 2014 9:58 pm

Use \inparencite to add text like "vgl."/"c.f." before year

Post by proxxi »

Hello,

i have a question regarding the \inparencite command. I use it to integrate citations into the text. Generally it works fine, but for indirect citations I would need a "vgl." (it's the german equivalent for "c.f.") before the date. However, the command does not exactly what I expect it to do. Example:

I use the command like this:

"As \inparencite[vgl.][S. 15]{Someone1990} stated, blablabla."

The output is:
"As vgl. Someone (1990, S. 15) stated, blablabla."

What I want it to look like:
"As Someone (vgl. 1990, S. 15) stated, blablabla."

Does anyone know how to change this?

My main.tex looks like this:

Code: Select all

\RequirePackage[ngerman = ngerman-x-latest]{hyphsubst}

% Seitenlayout:
\documentclass{scrbook}

% load packages:
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[babel,german=quotes]{csquotes}

\usepackage[backend=biber, style=authoryear-luh-ipw]{biblatex}
\addbibresource{literature.bib}

\title{test}

\begin{document}

As \inparencite[vgl.][S. 10]{test1} stated, blabla

\printbibliography

\end{document}
My literature.bib

Code: Select all

@book{test1,
  title = {This is a title},
  author = {Mister Someone},
  year = {1990}
  }

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Use \inparencite to add text like "vgl."/"c.f." before y

Post by Johannes_B »

I wouldn't do that. When you are starting a sentence with as, you don't need the c.f. Read the sentences out aloud:
Wie Irgendwer (1990, vergleiche Seite 15) schrieb.
Wie Irgendwer (vergleiche 1990, Seite 15) schrieb.
Grüne Schuhe sind gelber als Blaue, vergleiche Irgendwer (1990, S. 15).
Wie Irgendwer (1990, Seite 15) schrieb.

I would go for the last one, to be honest.

Changing the behaviour is possible, LaTeX is a macro language. But it will require some knowledge of the biblatex internals.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply