16 lines
376 B
Nix
16 lines
376 B
Nix
{ context, ... } @ libs:
|
|
let
|
|
getFormat
|
|
= outputFormat:
|
|
if outputFormat != null
|
|
then
|
|
outputFormat
|
|
else
|
|
"tex";
|
|
renderTex = import ./tex ( libs // { context = context ++ [ "journal" ]; });
|
|
in
|
|
outputFormat:
|
|
{
|
|
"tex" = renderTex;
|
|
}.${getFormat outputFormat}
|