{"action":"created","issue":{"url":"https://api.github.com/repos/msprev/panzer/issues/17","labels_url":"https://api.github.com/repos/msprev/panzer/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/msprev/panzer/issues/17/comments","events_url":"https://api.github.com/repos/msprev/panzer/issues/17/events","html_url":"https://github.com/msprev/panzer/issues/17","id":104093554,"number":17,"title":"I can't override style settings from the document's YAML block","user":{"login":"Utsira","id":6677800,"avatar_url":"https://avatars.githubusercontent.com/u/6677800?v=3","gravatar_id":"","url":"https://api.github.com/users/Utsira","html_url":"https://github.com/Utsira","followers_url":"https://api.github.com/users/Utsira/followers","following_url":"https://api.github.com/users/Utsira/following{/other_user}","gists_url":"https://api.github.com/users/Utsira/gists{/gist_id}","starred_url":"https://api.github.com/users/Utsira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Utsira/subscriptions","organizations_url":"https://api.github.com/users/Utsira/orgs","repos_url":"https://api.github.com/users/Utsira/repos","events_url":"https://api.github.com/users/Utsira/events{/privacy}","received_events_url":"https://api.github.com/users/Utsira/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-31T17:14:04Z","updated_at":"2015-08-31T21:35:59Z","closed_at":"2015-08-31T21:35:59Z","body":"Hello, I'm trying to override some of my style settings from the markdown document's YAML data block, but it's not working. Here is my style.yaml (this all works as it should):\r\n\r\n```\r\nLetter:\r\n    parent:\r\n        - Base\r\n  #  all:\r\n      #  metadata:\r\n\r\n    latex:\r\n        template: myletter.tex\r\n        metadata:\r\n            fontsize: 12pt\r\n            geometry: margin=1in\r\n            mainfont: Minion Pro\r\n            # opening: false\r\n            fromaddress: |\r\n                    | my street\r\n                    | my town\r\n                    | my postcode\r\n                    | my email\r\n            toaddress:  |\r\n                    | Department\r\n                    | University\r\n                    | City\r\n            closing: Yours sincerely\r\n            signature: my name\r\n```\r\n\r\nI am trying to override latex: metadata: toaddress\r\n\r\nI have tried various things in the document's YAML block eg:\r\n\r\n```\r\n---\r\nstyle: Letter\r\n\r\nmetadata:\r\n    - toaddress: person I'm writing to\r\n...\r\n```\r\n\r\nand also:\r\n\r\n```\r\n---\r\nstyle: Letter\r\n\r\nlatex:\r\n    metadata:\r\n        - toaddress: person I'm writing to\r\n...\r\n```\r\n\r\nBoth of them with and without the hyphens.\r\nBut every time it just gets processed with the settings from the styles.yaml file. What am I doing wrong?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/msprev/panzer/issues/comments/136508285","html_url":"https://github.com/msprev/panzer/issues/17#issuecomment-136508285","issue_url":"https://api.github.com/repos/msprev/panzer/issues/17","id":136508285,"user":{"login":"msprev","id":3743742,"avatar_url":"https://avatars.githubusercontent.com/u/3743742?v=3","gravatar_id":"","url":"https://api.github.com/users/msprev","html_url":"https://github.com/msprev","followers_url":"https://api.github.com/users/msprev/followers","following_url":"https://api.github.com/users/msprev/following{/other_user}","gists_url":"https://api.github.com/users/msprev/gists{/gist_id}","starred_url":"https://api.github.com/users/msprev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msprev/subscriptions","organizations_url":"https://api.github.com/users/msprev/orgs","repos_url":"https://api.github.com/users/msprev/repos","events_url":"https://api.github.com/users/msprev/events{/privacy}","received_events_url":"https://api.github.com/users/msprev/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T21:35:59Z","updated_at":"2015-08-31T21:35:59Z","body":"Have you tried:\r\n\r\n```\r\n---\r\nstyle: Letter\r\ntoaddress: person I'm writing to\r\n...\r\n```\r\n\r\nLet me know if this doesn't work. \r\n\r\nMore complex overriding behaviour (e.g. having sensitivity to which writer is being used) requires a `styledef` and explicit inheritance as you describe."}}