Code Monkey home page Code Monkey logo

csas-latex's People

Contributors

andrew-edwards avatar

Watchers

 avatar  avatar  avatar

csas-latex's Issues

Add \eb and \ee back into style file

Just noticed that \eb and \ee are not in Chris's latest (that I'm using for POP, maybe it's in the MWE one). I use these all the time, so suggest adding them back into .sty:

%% For equation arrays
\newcommand{\eb}{\begin{eqnarray}}
\newcommand{\ee}{\end{eqnarray}}

\sum has been redefined but needs tweaking

So in the header for Redbanded and Yelloweye .tex assessments (not give here), I redefined

\usepackage{relsize}
\renewcommand{\sum}{{\mathlarger{\mathlarger{\mathlarger{\mathlarger{\mathlarger{\Sigma}}}}}}}
% Crude fix to \sum encoding issues. Get:
% LaTeX Font Warning: Size substitutions
% with differences (Font) up to
% 1.6414pt have occurred.
% Use \Sigma in inline mode $\Sigma $

because the web accessibility check on the .pdf gives encoding errors. I presume this is because it is encoded as \sum not as \Sigma, doing the renewcommand above fixes this. However, the \Sigma is not centered around the centerline for fractions, so it doesn't look as good as the default \sum (i.e. \sum does it sensibly).
Also, with \sum_{i=1}^n you now get subscripts and superscripts (after the Sigma), rather than below and above like you properly get with the default. Again, Latex knows what it's doing.
I didn't fix this for current assessments but it would be good. Maybe it involves delving into the original \sum definition, rather than my crude \Sigma fix.

Alternate text

One of the requirements for web accessibility is 'alternate text' for .pdf readers.

Could try looking at the last comment of

http://tex.stackexchange.com/questions/75102/need-alt-text-for-images-in-pdf-for-screen-readers

which says:

" You can use PDF tooltips with the pdfcomment package. Then the 'alt' text (aka tooltip) is read!

\documentclass{article}
\usepackage{graphicx}
\usepackage{pdfcomment}
\pagestyle{empty}

\begin{document}
one two three

\pdftooltip{\includegraphics{img.png}}{This is the ALT text}%

four five six
\end{document}
"

Would be good to create a wrapper so that we can still use dvips and ghostview on the .ps file, in case this command doesn't work in .ps. Have to investigate.

Just noticed that the top of resDocSty.sty says to use eq: for equation numbering

In the comments it says:

%% Use the following codes for references within the document:
%% chap: appendix
%% sec: section
%% subsec: subsection
%% fig: figure
%% tab: table
%% eq: equation

but you shouldn't do this for equations, since they're done automatically (as the default label). Best to stick with this I think in the guidelines? Or at least mention it, as it is the standard.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.