rlatex is a ruby script for LaTeX scaffolding. It creates the directory and document hierarchy, keeping everything nice and tidy. Save time and efforts in creating LaTeX documents, use a good standard for every project.
Use the new
command to start a new project,
$ ruby rlatex.rb new --author "Edoardo Colombo" --sections my_fist_section --title "My ruby latex manager" foo
The above command will produce the following:
- a file called
main.tex
with:- author set to Edoardo Colombo
- title set to My ruby latex manager
- a folder named
contents
with inside a file namedmy_first_section.tex
$ ruby rlatex.rb new foo --sections mysection/subsection_one,subsection_two myothersection
The above command creates:
- A section called
mysection
, which contains:- a subsection called
subsection_one
- a subsection called
subsection_two
- a subsection called
- A section called
myothersection
`$ ruby rlatex.rb add-section <new-section> --before <section>
--language
, set to english as default--date
, set to \today as default--packages
allows you to add extra packages.--template
allows you to use a template to set up the project. Use thetemplates
command to show the available templates.
The --sections option allows multiple values, but it cannot preceed the project name.
To add a package after the project was created:
$ ruby rlatex.rb add-package <package>
The compile
command to compile using pdflatex
, if installed:
$ ruby rlatex.rb compile
all of the output files are stored in the output
folder, keeping the main directory clean.
Added the --template
option, which allows to use a specific template to set up the document. Templates are simple .json files
Added the --packages
option, which allows you to add extra packages. Added the add-package
command.
Kudos to spinatelli for the pull request. Even though I didn't merge the branch (didn't like the excessive nesting), the syntax to add subsections was quite lovely. Here we go:
Hooray! v 1.0 is out! Here below you can find its basic (and so far also complete) usage: