mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 11:23:45 +00:00
cde541d785
The default citation capability of LaTeX is not a true numerical citation engine, rather it uses a mixture of labels/numbers. Thus we now distinguish them: "numerical" always increments the bibitem counter and uses its value as a numerical citation label, while "default" only uses the bibitem counter when no label is provided. LyX file format incremented to 471.
51 lines
909 B
C++
51 lines
909 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file Citation.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Herbert Voß
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef CITATION_H
|
|
#define CITATION_H
|
|
|
|
#include <string>
|
|
|
|
namespace lyx {
|
|
|
|
class Buffer;
|
|
|
|
|
|
enum CiteEngineType {
|
|
ENGINE_TYPE_AUTHORYEAR = 1,
|
|
ENGINE_TYPE_NUMERICAL = 2,
|
|
ENGINE_TYPE_DEFAULT = 3,
|
|
};
|
|
|
|
|
|
class CitationStyle
|
|
{
|
|
public:
|
|
///
|
|
CitationStyle() : cmd("cite"), forceUpperCase(false), fullAuthorList(false),
|
|
textAfter(false), textBefore(false) {}
|
|
|
|
/// the LaTeX command
|
|
std::string cmd;
|
|
/// upper casing author prefixes (van -> Van)
|
|
bool forceUpperCase;
|
|
/// expanding the full author list
|
|
bool fullAuthorList;
|
|
/// supports text after the citation
|
|
bool textAfter;
|
|
/// supports text before the citation
|
|
bool textBefore;
|
|
};
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|