I am wanting to write my thesis with LaTeX. My problem is, that my university demands a certain citation style, which they provide as a .csl
or .ccs
file.
Is there some way to use that in LaTeX / BibTeX?
bibtex
I am wanting to write my thesis with LaTeX. My problem is, that my university demands a certain citation style, which they provide as a .csl
or .ccs
file.
Is there some way to use that in LaTeX / BibTeX?
It's always the best using a tool to create the bibliography. The standard mechanism for LaTeX is
bib
. biblatex
/biber
to create the bibliography. The complete steps and the interaction are well explained in most common introductions.
Using the standard compilation BibTeX you can use a predefined style. A collection of available styles and their results can be found here: BibTeX and bibliography
If you don't find a suitable style and you want to use BibTeX you can create your own style by using custom-bib
which is also compatible with natbib
.
The second and most recommend method is the usage of biblatex
. You can use a style provided by the package itself or you use a contributed style. The question/answer of
Guidelines for customizing biblatex styles helps you for the first step.
previews.json
Eventually, the conversion process taught an interesting lesson:
@INBOOK
entries should not be used. Use @INCOLLECTION
instead.
Furthermore, a CSL style bug could be corrected.
Happy CSL testing!
input.md
test file[@Sambrook.2001; @Kotter.1993; @Pear.2008; @patent; @Hogue.2001]
previews.bib
% Encoding: UTF8
@INCOLLECTION{Hogue.2001,
author = {Hogue, Christopher W. V.},
title = {Structure Databases},
booktitle = {Bioinformatics},
publisher = {Wiley-Interscience},
year = {2001},
editor = {Baxevanis, Andreas D. and Ouellette, B. F. Francis},
series = {Life Sciences Series},
pages = {83--109},
address = {New York, {NY}},
edition = {2},
isbn = {0471383910}
}
@ARTICLE{Kotter.1993,
author = {Kötter, Peter and Ciriacy, Michael},
title = {Xylose fermentation by Saccharomyces cerevisiae},
journal = {Applied Microbiology and Biotechnology},
year = {1993},
volume = {38},
pages = {776--783},
number = {6},
month = {March},
abstract = {We have performed a comparative study of xylose utilization in Saccharomyces
cerevisiae transformants expressing two key enzymes in xylose metabolism,
xylose reductase ({XR)} and xylitol dehydrogenase ({XDH)}, and in
a prototypic xylose-utilizing yeast, Pichia stipitis. In the absence
of respiration (see text), baker's yeast cells convert half of the
xylose to xylitol and ethanol, whereas P. stipilis cells display
rather a homofermentative conversion of xylose to ethanol. Xylitol
production by baker's yeast is interpreted as a result of the dual
cofactor dependence of the {XR} and the generation of {NADPH} by
the pentose phosphate pathway. Further limitations of xylose utilization
in S. cerevisiae cells are very likely caused by an insufficient
capacity of the non-oxidative pentose phosphate pathway, as indicated
by accumulation of sedoheptulose-7-phosphate and the absence of fructose-1,6-bisphosphate
and pyruvate accumulation. By contrast, uptake at high substrate
concentrations probably does not limit xylose conversion in S. cerevisiae
{XYL1/XYL2} transformants.},
doi = {10.1007/BF00167144},
timestamp = {2008.10.04},
url = {http://dx.doi.org/10.1007/BF00167144}
}
@ARTICLE{Pear.2008,
author = {Pear, Robert},
title = {Crisis Puts Tax Moves Into Play},
journal = {The New York Times},
year = {2008},
month = {October},
chapter = {Business},
timestamp = {2008.10.04},
url = {http://www.nytimes.com/2008/10/02/business/02tax.html}
}
@BOOK{Sambrook.2001,
title = {Molecular Cloning: A Laboratory Manual},
publisher = {{CSHL} Press},
year = {2001},
author = {Sambrook, Joe and Russell, David William},
address = {Cold Spring Harbor, {NY}},
edition = {3},
month = {January},
isbn = {0879695773},
shorttitle = {Molecular Cloning}
}
@PATENT{patent,
nationality = {US},
number = {5960411},
year = {1999},
yearfiled = {1997},
title = {Method and system for placing a purchase order via a communications
network},
day = {28},
month = {September},
url = {http://www.google.com/patents/US5960411},
abstract = {A method and system for placing an order to purchase an item via the
Internet. The order is placed by a purchaser at a client system and
received by a server system. The server system receives purchaser
information including identification of the purchaser, payment information,
and shipment information from the client system. The server system
then assigns a client identifier to the client system and associates
the assigned client identifier with the received purchaser information.
The server system sends to the client system the assigned client
identifier and an {HTML} document identifying the item and including
an order button. The client system receives and stores the assigned
client identifier and receives and displays the {HTML} document.
In response to the selection of the order button, the client system
sends to the server system a request to purchase the identified item.
The server system receives the request and combines the purchaser
information associated with the client identifier of the client system
to generate an order to purchase the item in accordance with the
billing and shipment information whereby the purchaser effects the
ordering of the product by selection of the order button.},
timestamp = {2008.10.04},
}
Best Answer
Pandoc can read and write
tex
files and usecsl
files to generate citations and bibliography. So, you can try something like:pandoc File.tex --bibliography=Bibfile.bib --csl=Mycsl.csl -o FileWithBib.tex
and then latexFileWithBib.tex
.If you use this, you must write the preamble in
FileWithBib.tex