It’s a new year, so I was spending a bit of time revising my defaults before the semester gets rolling. I hadn’t realized until recently that a lot of outdated crud (wrong instrument ranges, old fonts, etc.) had been carried around in my main default file, so I am trying to streamline and do as much with the Library Manager, by exporting libraries, and/or using doricolib files as possible. Ideally, it would be great if File/New could basically start with all my defaults but I’m not sure how possible it is to get close to that.
One hang up is with Page Templates. There’s no way to save a Page Template as default is there? Importing Page Templates isn’t really desirable as it duplicates a whole bunch of Paragraph Styles, so I’d like to avoid that if possible. I tried exporting a Page Template, then adding the code from pagePairDefinitionSets to my userlibrary.xml, and tried adding the code to DefaultLibraryAdditions, but neither of those seemed to work.
Is there anyway to modify the default Page Templates, and then always have them start from the modified defaults?
For what it’s worth, I have recently done some work on importing page template sets that should eliminate or at least greatly reduce the likelihood of ending up with duplicate paragraph styles. That improvement will be included in the next major version of the software.
Would knowing the entityIDs of the default page templates allow the user to set the default templates with a doricolib file? I obviously have no idea if the default templates work that way, or if they are simply hardwired in somehow, but if that would possibly work and is something you’re comfortable disclosing, I’d love to try it!
You could take the page templates you have exported from one project and put that .doricolib file into the DefaultLibraryAdditions folder, then use the appropriate pageset.user… ID in the layoutOptions_scores.xml and layoutOptions_parts.xml files that contain your saved layout options.
For anyone who wants to attempt this, it’s actually really easy. Since we are only modifying doricolib files and not system files, it seems pretty “safe” too. It depends slightly if you want to add your sets as additional options, or simply have your sets be the new defaults. Instructions for having your sets as defaults are below as that’s the easiest, although you can modify these to add additional sets too.
Take a file containing Page Templates that you are satisfied with, then export both the Full Score and Part Template Sets as doricolib files.
Open your Full Score doricolib file, scroll down to pagePairDefinitionSets, and change the entryID from “pageset.user.xxxxxxxxxxxxx” to “pageset.fullscore”
Do the same for the Part doricolib file, but change the entryID to “pageset.part”
In Windows, copy the doricolib files to Users\yournamehere\AppData\Roaming\Steinberg\Dorico 4\DefaultLibraryAdditions
That’s basically it! The catch is that there may now be duplicate Paragraph Styles. You can correct for these manually in the doricolib file by editing the paragraphStyleID and have it match the correct entityID as found in your userlibrary.xml, but honestly I found it easier to just stick to the main Paragraph Styles that ship with Dorico and then modify size, style, as needed in the template. A list of the shipping Paragraph Styles can be found here. All those modifications easily save in the doricolib file and then there’s no additional editing needed, and no duplicate styles.
@FredGUnn
I made an addition to my fullscore page template set and tried this process to again make it the default (in the Dorico 5 DefaultLibraryAdditions folder), but unlike my experience doing the same, I am not getting the desired result. Any thoughts where I might be going wrong?
I would highly appreciate to have different page template sets, i.e. my own and the default one at startup of a new document. I guess it’s not possible, right?
I’m quite confident you should be able to do that, using the DefaultLibraryAdditions (but I still need to try it to confirm). Or creating a file template with all those page templates in it.
One other thing that is really useful is to take advantage of the Library Manager. If you know which file has all the templates that you want, it’s easy to import them thanks to the library manager.
[Edit] I’ve just read Todd’s post before and, well, he must be right, so I assume I was too much confident on my first thought! But the Library manager is still working
Yeah, as of 5.0.2 you don’t seem to be able to add additional sets other than pageset.fullscore and pageset.part. Obviously the ability to additional sets would be a cool feature have in the future, but as I don’t really have much need for the factory default sets, and just use my own, I’m ok with the current situation too.
Some sort of template set management could be quite useful too, so the user could by default already have sets for different clients/situations loaded and switch with just a click, rather than importing them.