Code Monkey home page Code Monkey logo

Comments (3)

AndyClifton avatar AndyClifton commented on August 23, 2024

Thanks for reporting this.

One solution at this point is to assume that Beamer got there first and then rename the \alt command in accessibility to something more suitable, such as \alternative or \accalt. The problem here is that we usually refer to alternative text for images, etc. in PDFs as "alt text".

I'll look to see if latex has ways to work around this. I think though that commands get clobbered, so whichever package gets loaded last, wins.

Suggested actions

I'd like to use this issue as the basis for a new project (see https://github.com/AndyClifton/accessibility/projects/2).

  1. @jimbotyson: please feel free to add a minimal beamer example to the tests directory. If you'd like to fork the code, add your code to the "tests" directory, and then raise a pull request, I can include it that way. Alternatively if that's too much, feel free to add the MWE as a comment below. (I'm also going to rename this issue to "Create Beamer MWE" to reflect this.)
  2. @anyone reading: Suggest new names for the \alt command in issue #39

from accessibility.

ChrisLeary avatar ChrisLeary commented on August 23, 2024

I'm nowhere close to having a MWE for this, but once I got past the \alt problem, the next thing that I had to deal with was having a lot of commands that accessibility was looking for not being defined. My hack for that was just to add the following \newcommand's to my .tex file before the \usepackage{accessibility} call:

\newcommand{\paragraph}{}
\newcommand{\subparagraph}{}
\makeatletter
\newcommand{\@opargbegintheorem}{}
\newcommand{\@makecaption}{}
\newcommand{\@idxitem}{}
\makeatother
\newcommand{\labelitemi}{}
\newcommand{\labelitemii}{}
\newcommand{\labelitemiii}{}
\newcommand{\labelitemiv}{}
\newcommand{\labelenumi}{}
\newcommand{\labelenumii}{}
\newcommand{\labelenumiii}{}
\newcommand{\labelenumiv}{}
\newcommand{\descriptionlabel}{}
\newcommand{\hyperpage}{}
\newcommand{\theindex}{}

Then the thing complained about trying to write \pdfminorversion after writing to the pdf file--I sidestepped that by commenting out line 136 of accessibility.sty--so I have

%\pdfminorversion=6% Bestimmt die PDF - Version der Ausgabe

Now I am stymied by the error message:

Argument of \XC@col@rlet has an extra }. <inserted text> \par l.213 \end{frame}

which, although I can't figure out how to fix (I think it's in beamer), at least my TeXShop will let me "ignore all", and then compile the file.

Sorry for the clunky code and the possibly stupid fixes--I hope you can find something cleaner! Do let me know if I'm doing something stupid/dangerous! :)

TeXShop v. 4.44
accessibility.sty v. 2.0.3

from accessibility.

AndyClifton avatar AndyClifton commented on August 23, 2024

@ChrisLeary your solution is basically what I would have done as well, so no need to apologise for clunky code! Anything that helps is welcome.

I noticed it’s a couple of weeks since you filed this update. Did you have any more luck

from accessibility.

Related Issues (20)

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.