Search found 4 matches

by pvnotp
Thu Apr 01, 2010 10:47 pm
Forum: TeXShop
Topic: A question about Applescript Macros
Replies: 1
Views: 2752

A question about Applescript Macros

Hello,

I am trying to write a macro that helps me enter grades for students into LaTeX. Right now I enter the grades via a complicated cut and paste from an Excel spreadsheet, but I'm hoping an Applescript macros can make it easy to enter them into LaTeX directly. The problem is, I really just ...
by pvnotp
Fri Apr 17, 2009 6:35 pm
Forum: General
Topic: Problem comparing values within ifthen
Replies: 4
Views: 5342

Re: Problem comparing values within ifthen

Wonderful! Not only does it work, this is a much more economical solution for \grade. I will have to explore this etoolbox package fully. Thank you so much!
by pvnotp
Fri Apr 17, 2009 4:13 pm
Forum: General
Topic: Problem comparing values within ifthen
Replies: 4
Views: 5342

Problem comparing values within ifthen

Sorry, I'm new to the community. I hope this gives enough information.


\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage{ifthen}
\pagestyle{empty}
\begin{document}

\newcommand{\grade}[2]{
\ifthenelse{\equal{#1}{Taybra}}{
\ifthenelse{#2 = 1}{3}{
...more ifthenelse clauses for ...
by pvnotp
Fri Apr 17, 2009 2:32 am
Forum: General
Topic: Problem comparing values within ifthen
Replies: 4
Views: 5342

Problem comparing values within ifthen

Hello all,
I'm trying to create a series of macros that will automatically generate a quiz for a student based upon their past performance on similar quizzes. I've defined a command \grade{student name}{concept number} that gives out a student's grade on the given concept without problem. For ...