SCM

Forum: support

Monitor Forum | Start New Thread Start New Thread
RE: Use extitle/exname in pdf (LaTeX) [ reply ]
By: Achim Zeileis on 2016-11-09 21:33
[forum:43674]
Sigbert,

on the LaTeX side these are not defined as variables and I don't see a sufficiently simple and robust way to do this (without leading to potential conflicts etc.)

The easiest solution I see is to define the variables you want on the R side and then re-use them via \Sexpr{} both in the LaTeX question/solution environments and the metainformation.

For example:

<<echo=FALSE, results=hide>>=
extitle <- "A Very Advanced Topic in Statistics"
@

\begin{question}
\textbf{\Sexpr{extitle}:} What is...?
\end{question}

\exname{\Sexpr{extitle}}
...

Would that do the trick? If not, please keep asking :-)

Best wishes to Berlin!
Z

Use extitle/exname in pdf (LaTeX) [ reply ]
By: Sigbert Klinke on 2016-11-09 08:51
[forum:43672]
Hi,

all our exercises have names. I would like to utilize the names written %% extitle{...} or %% exname{...}. Can I access them in my template file, e.g. with \exname or \extitle or in the exercise files with \begin{question}[\extitle] ... \end{question} and \begin{solution}[\extitle] ... \end{solution}?

Thanks in advance

Sigbert

Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge