1. Go to this page and download the library: Download dagstuhl/latex library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dagstuhl / latex example snippets
$latexFile = new LatexFile('/resources/latex-examples/lipics-authors-v2021.1.3/lipics-v2021-sample-article.tex');
\author{John Q. Public}{Dummy University Computing Laboratory, [optional: Address], Country \and My second affiliation, Country \and \url{http://www.myhomepage.edu} }{[email protected]}{https://orcid.org/0000-0002-1825-0097}{(Optional) author-specific funding acknowledgements}
$reader = $latexFile->getMetadataReader();
$metadata = $reader->getMetadata();
// array of metadata - structured and converted as specified in the StyleDescription file
return [
'paths' => [
'bin' => env('LATEX_USER_BIN'), // PATH variable used in default build environment
'home' => env('LATEX_USER_HOME'), // HOME variable used in default build environment
'pdf-info-bin' => env('PDF_INFO_BIN'), // path to your pdf-info binary
'resources' => env('LATEX_RESOURCES_FOLDER'), // resources folder (in case you want to use your own resources)
],
'styles' => [
'registry' => \Your\Local\StylesRegistry::class // in case you want to use a custom styles registry
]
];