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

5
votes
2answers
272 views

Simpler way to type Derivative[1, 0][u][0, x]

Though not unbearable, I always feel a little nervous when typing partial derivatives at a specified place e.g. $u^{(1,0)}(0,x)$, which happens a lot when setting initial/boundary conditions for PDEs. ...
1
vote
0answers
25 views

Why does TemplateApply create two identical notebook objects?

If you start a fresh Mathematica session (front end and all), and run the following ...
0
votes
0answers
65 views

Mathematica 10.3 with repeating block [duplicate]

I've written a template notebook that include repeating blocks with Mathematica 10.2.0.0. Everything work well, but after updating Mathematica to the last version (10.3.1.0) I get an error when I try ...
10
votes
5answers
240 views

Backquote in string template?

I need to have backquotes in a StringTemplate. For example StringTemplate["``1``"][2] Returns ...
1
vote
0answers
74 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 ...
16
votes
1answer
349 views

What has changed in the Template system in 10.3?

Bug introduced in 10.3 and persisting through 10.4.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 ...
0
votes
1answer
69 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
34 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
65 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
62 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
125 views

What is the difference between GenerateDocument and TemplateApply[NotebookTemplate[

Bug introduced in V10.0 and persisting through V10.4 Since V10.3 the bug still remains but additionally the Genarate and ...
4
votes
1answer
85 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
274 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 ...
25
votes
0answers
580 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 ...
22
votes
3answers
586 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 ...