Compile LaTeX, knitr, literate Agda, literate Haskell and Pweave documents using DiCy.
Use the Atom package manager and search for "dicy" or run
apm install dicy
from the command line.
In order to use this package you must have an up-to-date TeX distribution such
as TeX Live or MiKTeX installed. The binaries of your TeX distribution
must be available in the executable search path. This search path can be
customized via the
$PATH setting or via DiCy environment variables.
The various commands provided by this package depend upon the document grammar type being detected by Atom. In order for the correct grammar to be detected you will need to have the appropriate language syntax package installed. The table below lists the required language package for each document type.
|Document Type||Required Language Packages|
|knitr||language-r and language-knitr|
Busy status during document compilation and log messages reported by DiCy are displayed in Atom using the Atom IDE package. Therefore the Atom IDE package must also be installed in order to for this information to be displayed.
While editing a document various DiCy commands can issued via the commands
listed in the table below. Only one command is allowed to be active at a time,
but commands such as
dicy:build can run concurrently on different files. All
commands can be run from the main root document or from sub-document provided
that the sub-document has a TeX magic root statement such as
%!TeX root=foo.tex at the beginning of the file.
||ctrl-alt-b||Build DiCy document and open results.|
||ctrl-alt-c||Cleanup intermediate files after a build.|
||None||Cleanup all files after a build.|
||None||Terminate build associated with current file.|
||None||Terminate all builds in progress.|
||ctrl-alt-o||Open build results and sync.|
||None||Open build results and sync without loading from DiCy file cache.|
||None||Initialize file openers, etc.|
There are three types of configuration settings available on the settings page of Atom-DiCy. These settings are described in the following sections.
Various events can be configured to automatically trigger a building or opening
results via the
Event settings section. Enabling
Build after Save will cause
dicy:build to automatically be run when a compatible document is saved. To
automatically open any resulting output targets via the configured opener
Open after Build should be enabled. Lastly, automatic cursor position
synchronization via the
dicy:sync command can be enabled with
Sync after Cursor Change.
Open settings section
Opener controls which opener is used to open
build results such as PDF, PS or DVI files. The default setting of
will attempt to select whichever opener available on the user's platform that
supports features requested by the user. For instance, if
SyncTeX is enabled
Build settings section then openers that support SyncTex will have a
higher priority. Selecting a specific opener will override this automatic
selection. The table below lists the currently supported openers and the
features of each opener.
The remaining settings in the
Open section are
Open In Background and
pdf-view Split Direction.
Open In Background will attempt to keep the
cursor focus in Atom when using an opener.
pdf-view Split Direction specifies
where to add an extra pane when using the
A limited selection of the build settings that DiCy uses can be configured via
Build setting section. These settings will be written to the user's
configuration file. The location of this file is described at
DiCy configuration. The build settings of DiCy, including the ones available
from the settings page are described at DiCy options.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.