chemobabel icon indicating copy to clipboard operation
chemobabel copied to clipboard

TODO

Open aminophen opened this issue 3 years ago • 5 comments

  • Windows does not have "rm"
  • Documentation: can "chemobabelimgdir" be changed via \renewcommand ? → No! (If "chemobabelimgdir" can be changed or user-defined "Prefix" is allowed, extra hacks on LuaTeX will be required. Twitter)
  • Documentation: mention GitHub in the dtx/pdf also → Done (2022-09-19)

aminophen avatar Sep 17 '22 04:09 aminophen

  • Syntax of \chemobabel/\smilesobabel command: some people complains about the second optional argument, so adding \chemobabel*/\smilesobabel* variant with only one argument → Done (https://github.com/aminophen/chemobabel/commit/462f9a8df8c7e8d0abdf67f6a362ac2c0c4277f2)
  • Warn if a user need to run another latex (Note: running without -shell-escape after removing [extract] should not issue a warning) → An idea of writing the number of images by \chemobabel/\smilesobabel into .aux file, and read it on the second run to see if the number changed ? → Done in https://github.com/aminophen/chemobabel/commit/9fea08b00b07578311acc4877db3506ff67b02bf and https://github.com/aminophen/chemobabel/commit/4f00bf6416df07b07a968185d3eaad97d23dfe46

aminophen avatar Sep 19 '22 04:09 aminophen

  • Handle options in the order they are given → Done in https://github.com/aminophen/chemobabel/commit/667b2efe52a9eec95ac30296ed2781e7f591b676 and https://github.com/aminophen/chemobabel/commit/2dd5ed640bf39c40fbd66cad0a38a060845e20d0
  • Safety check of \jobname before opening ChemFigFile.tex on [extract] → Done (https://github.com/aminophen/chemobabel/commit/e448147743448c8b6c99a9d8ad46ce07587a3aae)
  • Pass the original package options into extracted ChemFigFile.tex → Done (https://github.com/aminophen/chemobabel/commit/d69604d8ffba002f30d3a2af83908af94cd91ad4)

aminophen avatar Oct 08 '22 13:10 aminophen

  • Default image format EPS when the engine/driver does not support PDF, by detecting graphicx driver (e.g. latex+dvips) → Done (https://github.com/aminophen/chemobabel/commit/f934c918a49d031e100ba69a497175b3e4c9f4df)

aminophen avatar Oct 08 '22 16:10 aminophen

Documentations → All done (https://github.com/aminophen/chemobabel/commit/61a67865cd8cc7713f0e0a5b8a8840f18c35bfe4)

  • Restriction: when using -output-directory, the extracted code "ChemFigFile.tex" goes there but chemobabelimgdir and generated images stay in the current directory. (Note: the .aux file goes to given output directory, but the engine reads .aux in the output directory first, so it's fine)
  • A bit more documentation for default cropping, including:
    • pdfcrop or ps2eps should be found on PATH
    • \includegraphics option [clip] is useful for proper EPS cropping
  • Documentation for automatic default PDF/EPS selection of https://github.com/aminophen/chemobabel/commit/f934c918a49d031e100ba69a497175b3e4c9f4df for next release

aminophen avatar Oct 12 '22 14:10 aminophen

Remainings:

  • Windows does not have "rm"; what is the best way of removing a file on Windows?
  • Recent version(s) of "rsvg-convert" generates PDF-1.7 by default, which is higher than what TeX world expects so raises warnings:
pdfTeX warning: pdflatex (file ./chemobabelimgdir/smilesobabelimg1-crop.pdf): PDF inclusion: found PDF version <1.7>, but at most version <1.5> allowed
dvipdfmx:warning: Trying to include PDF file with version (1.7), which is newer than current output PDF setting (1.5).

aminophen avatar Feb 14 '23 13:02 aminophen