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

18
votes
1answer
263 views

The character sequence “\\. d” triggers line break in strings

Bug introduced in 7.0 or earlier and persists through 10.4.1 Bug isn't present in version 5.2 Update: Sjoerd pointed out that this happens with any string and it is not related to StringForm. Just ...
0
votes
1answer
39 views

How to generate a series of iterable slots in a template notebook?

How can I generate a seires of iterable slots in template notebook I can later loop over and assign values to? For example: I could generate this manually by typing out each one. However, it gets ...
5
votes
2answers
280 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
26 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
66 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
261 views

Backquote in string template?

I need to have backquotes in a StringTemplate. For example StringTemplate["``1``"][2] Returns ...
1
vote
0answers
88 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
368 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
77 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
36 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
66 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
63 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
134 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
90 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
281 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 ...
29
votes
0answers
641 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
617 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 ...