App-Checklist-Formatter
view release on metacpan or search on metacpan
bin/checklist-formatter view on Meta::CPAN
options:
--author 'your name' - use your name as author
--filename filename - use file filename instead of 'checklist.otl'
--help - show a short help text
--man - show the full man page
--title 'the title' - use 'the title' as title of the checklist
--workdir directory - cd to directory before doing anything else
commands:
initialize [title of checklist] - create templates for new checklist
otl2latex - convert vimoutliner to latex
=head1 OPTIONS AND ARGUMENTS
=head2 Options
=head3 --author aname
This name will be preset in the template file.
=head3 --filename fname
This filename will be used instead of 'checklist.otl'.
=head3 --title atitle
Sets 'atitle' as the title to be used. This can be amended by the arguments
following the C<< initialize >> command.
=head2 Commands
=head3 initialize [the title]
Generates a template for the checklist and a Makefile. Any argument following
this command will be concatenated and amended to the title.
=head3 otl2latex
The .otl file will be read and a LaTeX file will be generated.
=head1 AUTHOR
Mathias Weidner C<< mamawe@cpan.org >>
=head1 LICENCE AND COPYRIGHT
Copyright (c) 2010, Mathias Weidner C<< mamawe@cpan.org >>.
All rights reserved.
This software is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. See L<perlartistic>.
=cut
__DATA__
header:\documentclass[english,ngerman]{scrartcl}
header:\usepackage[T1]{fontenc}
header:\usepackage[utf8]{inputenc}
header:\usepackage{latexsym}
header:\usepackage{calc}
header:\AtBeginDocument{
header: \def\labelitemi{\Large\(\Box\)}
header: \def\labelitemii{\(\Box\)}
header: \def\labelitemiii{\Box}
header:}
header:\usepackage{babel}
header:\begin{document}
title:\title{You forgot the title in the .otl file}
title:\maketitle
footer:\end{document}
listhd:\begin{itemize}
listft:\end{itemize}
itemhd:\item %
commhd:\\
commhd:\framebox{\begin{minipage}[t]{1\columnwidth}%
commft:\end{minipage}}
Makefile:LISTNAME = %%FILENAME%%
Makefile:CLFORMAT = %%IMYSELF%%
Makefile:
Makefile:all:
Makefile:
Makefile:pdf: $(LISTNAME).pdf
Makefile:
Makefile:%.pdf: %.tex; pdflatex $<
Makefile:%.tex: %.otl; $(CLFORMAT) --filename=$< otl2latex > $@
Makefile:
Makefile:clean:
Makefile: rm -f $(LISTNAME).aux $(LISTNAME).log $(LISTNAME).tex
Makefile:
Makefile:reallyclean: clean
Makefile: rm -f $(LISTNAME).pdf
checklist.otl:; checklist: %%TITLE%%
checklist.otl:; author: %%AUTHOR%%
checklist.otl:
checklist.otl:[_] Create template and Makefile
checklist.otl: : checklist-formatter [--author 'author'] init [title]
checklist.otl:[_] Write checklist
checklist.otl: : vim checklist.otl
checklist.otl:[_] Generate PDF checklist
checklist.otl: : make pdf
( run in 2.428 seconds using v1.01-cache-2.11-cpan-ceb78f64989 )