Advertisement
Guest User

Untitled

a guest
May 21st, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. The s3/ directory is built automatically from the resources contained in content/ via the build script build-s3.sh.
  2.  
  3. All images should be put in the corresponding directories. The directory structure is:
  4.  
  5. content/ monthX/ weekY/ day-problems.docx day-images/ SVG and resulting PNG files for Day X Challenge exam.html (problems and solutions) exam-images/ SVG and resulting PNG files for Weekly practice
  6.  
  7. Naming conventions for the images should be:
  8.  
  9. MXWY-day-.(svg|png) MXWY-exam-.(svg|png)
  10.  
  11. The original SVG version of the image file should be in the corresponding directory. Copy the PNG export to the s3 bucket. Only put 3000x3000 PNG files in the s3 bucket. SVG does not render consistently, especially if fonts do not match. All images should have square aspect ratio. PNG is preferred over JPG because it is sharper for line drawings, but use JPG if you have an photo-style image.
  12.  
  13. The build-s3.sh script will find all PNG files in the exam-images/ directories, and first verify that the naming conventions have been followed. If there are no issues at all, it will copy all PNG files into the s3/ bucket.
  14.  
  15. After this, it is safe to sync the S3 bucket with the bucket at poshenloh.dailyimg using sync-s3.sh.
  16.  
  17. LaTeX can be rendered to SVG by installing MathJax Node on your machine:
  18.  
  19. npm install --global mathjax-node-cli
  20.  
  21. And also installing inkscape.
  22.  
  23. Save the actual LaTeX code in the exam-images/ directory as well. To render to SVG and PNG, use the script tex2svgpng.pl in this repository, by invoking it within the directory which contains the .tex file, where you want SVG and PNG files to output:
  24.  
  25. tex2svgpng.pl M1W2-choose-100-98-multiply (Call this only with the prefix of the .tex file)
  26.  
  27. The tag will be sent to standard output, and also copied to the clipboard if xclip is installed.
  28.  
  29. Formatting style guide:
  30.  
  31. Set line wrap at 80 columns.
  32.  
  33. Leave exactly one space after each period.
  34.  
  35. Image style guide:
  36.  
  37. Use Inkscape to generate images. All Brillium images should be squares, and should have consistent line weight. Copy an old SVG file to use as a template for new SVG files. Also, use Gotham Light as the font.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement