michal-h21 / ctanbib Goto Github PK
View Code? Open in Web Editor NEWMake BibTeX records for TeX packages on CTAN
Make BibTeX records for TeX packages on CTAN
We always get the entry type @Manual, whereas we get before @ctan when using the -c or -C option.
With a @ctan output it is much more easier to create a special bibliography output as for @Manual,
which is already used in a lot of bib styles in a way which is not really compatible to CTAN documents.
Hello,
it would be nice, when there is some version of curl included in TexLive 2020. I downloaded the official version from https://curl.haxx.se/windows/ to get your ctanbib working.
What would be nice too: Make the package name optional in the case when there is only a --version or --help or even without any options.
There is always an error on the command line with that.
`C:\Users\Roland>ctanbib
ctanbib - convert ctan package information to bibtex format
Usage:
ctanbib [options]
Available options:
-c,--ctan Use @ctan type instead of @Manual
-h,--help Print this message
-v,--version Print version info
C:\texlive\2019\bin\win32\runscript.tlu:911: command failed with exit code 1:
texlua c:\texlive\2019\texmf-dist\scripts\ctanbib\ctanbib`
C:\Users\Roland>ctanbib -c c:\texlive\2019\texmf-dist\scripts\ctanbib\ctanbib:38: attempt to concatenate a nil value (local 'pkgname') C:\texlive\2019\bin\win32\runscript.tlu:911: command failed with exit code 1: texlua c:\texlive\2019\texmf-dist\scripts\ctanbib\ctanbib -c
C:\Users\Roland>ctanbib -v ctanbib version 0.1d C:\texlive\2019\bin\win32\runscript.tlu:911: command failed with exit code 1: texlua c:\texlive\2019\texmf-dist\scripts\ctanbib\ctanbib -v
`C:\Users\Roland>ctanbib -h
ctanbib - convert ctan package information to bibtex format
Usage:
ctanbib [options]
Available options:
-c,--ctan Use @ctan type instead of @Manual
-h,--help Print this message
-v,--version Print version info
C:\texlive\2019\bin\win32\runscript.tlu:911: command failed with exit code 1:
texlua c:\texlive\2019\texmf-dist\scripts\ctanbib\ctanbib -h`
Regards,
Roland
The output (at least on Windows 11) seems to use a different encoding than UTF-8:
$ ctanbib coverpage
@manual{coverpage,
title = {The coverpage package},
subtitle = {Automatic cover page creation for scientific papers},
author = {Kopp, Oliver and M├╝hlich, Matthias},
url = {https://ctan.org/pkg/coverpage},
urldate = {2023-10-07},
date = {},
version = {1.01},
}
Moreover, there should be a hint if the date
field could not be filled.
Currently, ctanbib
requires wget
to work (#6).
What about curl
in addition to (or instead of) wget
? The former:
When executing
ctanbib pgf
I get:
@Manual{pgf,
title = {The Pgf package},
subtitle = {Create PostScript and PDF graphics in TeX},
author = { and and },
url = {http://www.ctan.org/pkg/pgf},
urldate = {2019-09-14},
date = {2019-08-03},
version = {3.1.4b}
}
As you see, there are no authors… same with other packages …
On the current pretest version of TeXLive is the old version 0.1a which doesn't have the -c option. You should upload your version to CTAN to be sure that it will be on the upcoming TL2019.
The documentation should list the required software(s) for ctanbib
: as reported on our French TeX StackExchange clone, a Windows user was stuck because of the lack of wget
.
Recently I get the error, that if a name contains certain letters (e.g. ó
) the scripts aborts suddenly.
This leads to entries like this (receiving information for babel
and next dtxtut
).
@manual{babel,
title = {The Babel package},
subtitle = {Multilingual support for Plain TeX or LaTeX},
author = {Bezos L@manual{dtxtut,
title = {The Dtxtut package},
subtitle = {Tutorial on writing .dtx and .ins files},
author = {Pakin, Scott},
url = {http://www.ctan.org/pkg/dtxtut},
urldate = {2018-10-27},
date = {2015-09-13},
version = {2.1}
}
or
@manual{dirtree,
title = {The Dirtree package},
subtitle = {Display trees in the style of windows explorer},
author = {Charpentier, Jean-C@manual{graphicx,
title = {The Graphicx package},
subtitle = {Enhanced support for graphics},
author = {The LaTeX Team and Carlisle, David},
url = {http://www.ctan.org/pkg/graphicx},
urldate = {2018-10-27},
date = {2017-06-01},
version = {1.1a}
}
or
@manual{markdown,
title = {The Markdown package},
subtitle = {A package for converting and rendering markdown documents inside TeX},
author = {Novotn
I was wondering if one could also get the package’s name in lowercase?
But local titleformat = string.lower("%s")
wouldn’t work?!
Any suggestions, @michal-h21 ?
consider this package information
@manual{marginnote,
title = {The Marginnote package},
subtitle = {Notes in the margin, even where \marginpar fails},
author = {Kohm, Markus},
url = {https://komascript.de/marginnote},
urldate = {2018-09-09},
date = {2018-08-09},
version = {1.4b}
}
It is probably not the default of your code, but is there a possibility to mask such code parts (\marginpar
)? It leads to a strange appearance in the bibliography.
I know I could do that manually but I keep getting the updated list from CTAN every time so it would be overwritten then.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.