Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PGalias to make an alias for a pdf file in HTML type modes. #235

Merged
merged 1 commit into from
Aug 26, 2015

Conversation

jwj61
Copy link
Member

@jwj61 jwj61 commented Aug 18, 2015

There are valid situations where PGalias should make an alias to a pdf file when the user is in an HTML mode, namely when the user wants to create a link to a pdf file in their templates directory. This allows it.

Below is a test pg file. You also need to have a pdf file in the same directory called mlt.pdf .

DOCUMENT(); # This should be the first executable line in the problem.

loadMacros(
"PG.pl",
"PGbasicmacros.pl",
"PGanswermacros.pl",
);

TEXT(beginproblem());

BEGIN_TEXT
Consider the pdf file
{ htmlLink( alias('mlt.pdf'), "Click on me", "TARGET='_blank'" ) }.
Type 5:
$BR$BR
Answer = {ans_rule(40)}
END_TEXT

ANS(num_cmp(5));

ENDDOCUMENT();

goehle added a commit that referenced this pull request Aug 26, 2015
Allow PGalias to make an alias for a pdf file in HTML type modes.

This works as advertised.
@goehle goehle merged commit 485830c into openwebwork:develop Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants