Module: Mdtex::Constant
- Defined in:
- lib/mdtex/constant.rb
Constant Summary collapse
- CWD =
Dir.pwd
- DO_BIBTEX =
config (flag)
config['bibtex'].freeze
- TEX2DVI_COMMAND =
config (command)
config['command']['tex2dvi'].freeze
- DVI2PDF_COMMAND =
config['command']['dvi2pdf'].freeze
- BIBTEX_COMMAND =
config['command']['bibtex'].freeze
- PREVIEW_COMMAND =
config['command']['preview'].freeze
- SRC_DIR =
config (file, directory)
File.join(CWD, config['src']).freeze
- TEMP_DIR =
File.join(CWD, config['temp']).freeze
- DEST_DIR =
File.join(CWD, config['dest']).freeze
- ROOT_FILE =
config['root_file'].freeze
- MD_FILES =
src files
FileList["#{SRC_DIR}/**/*.md"]
- SRC_FILES =
FileList.new("#{SRC_DIR}/**/*") do |list| list.exclude('**/*.md') list.exclude { |f| File.directory? f } end
- TEX_FILES =
generated files
MD_FILES.gsub(/^#{SRC_DIR}/, TEMP_DIR).ext('.tex')
- MISC_FILES =
SRC_FILES.gsub(/^#{SRC_DIR}/, TEMP_DIR)
- DVI_FILE =
ROOT_FILE.ext('.dvi').freeze
- AUX_FILE =
ROOT_FILE.ext('.aux').freeze
- PDF_FILE =
ROOT_FILE.ext('.pdf').freeze