Questions on working with templates in Mathematica, File/String/Notebook/Expression Templates and the functions used for manipulations like TemplateApply.

learn more… | top users | synonyms

10
votes
5answers
226 views

Backquote in string template?

I need to have backquotes in a StringTemplate. For example StringTemplate["``1``"][2] Returns ...
1
vote
0answers
45 views

In a Template Notebook how to make a Repeating Block loop over a local variable

I have a template notebook that takes in some parameters to get raw data and then process it. In this processing a few subsets of data are calculated. However, I don't know how many subsets will be ...
11
votes
1answer
230 views

What has changed in the Template system in 10.3?

Bug introduced in 10.3 Bug persists in 10.3.1 There are couple of issues that are breaking my code after upgrading to 10.3. I wasn't able to narrow all of them down but this is what I've found. ...
0
votes
1answer
49 views

How can I make a new slide show template? [closed]

Mathematica comes with some built-in slide show templates. If you select File / New / Slide Show, the choices pop up. How can I make my own template?
1
vote
0answers
32 views

Problem of FileEncoding of the output file of FileTemplateApply

Problem of FileTemplateApply FileTemplateApply will change a file-encoding[UTF8] into a file-encoding[WindowsANSI], it seems it doen't accept CharacterEncoding ...
2
votes
2answers
62 views

How can I pass values to a NamedSlot in TemplateApply

str="``;`v`;`v`;``"; template=StringTemplate@str; TemplateApply[template,CharacterRange["A","Z"]] (*"A;;;D"*) I want to get the result as: ...
1
vote
0answers
55 views

generate a category bar with TemplateApply

Consider we are generating a category bar with 2 levels. This is an example about the XMLTemplate ...
6
votes
0answers
102 views

What is the difference between GenerateDocument and TemplateApply[NotebookTemplate[

Edit 5. X 2015 I don't see any reason why that cell is evaluated. And I don't see how my opinion may change with small update of docs like suggested by support: I have not heard back from the ...
4
votes
1answer
81 views

Is the use of StringTemplate with a styled string documented behavior?

I was pleasantly surprised to find out that StringTemplate appears to work with styled (formatted) strings, with the style of the slots applied to the inserted ...
8
votes
3answers
263 views

Disable templates for user defined functions with usages

It appears that fixing the template system is low on Wolfram Research's priority list. For my package, I have defined Usage info for my functions involving lots of ...
22
votes
0answers
511 views

What is the status of `::usage` and Templates in Mathematica v10.1?

In Mathematica 9, a number of issues concerning the ::usage and templates were raised. In 9.0, there was a bug first reported here and better diagnosed here, where ...
21
votes
3answers
512 views

Are there any tutorials on version 10 notebook templating and report generation? Are there missing docs?

Bug introduced in 10.0 and persisting through 10.2 or later I am trying to understand the new templating in version 10. While there is a general documentation page with links to docs for each new ...