So what I'd end up with is something like this: For example, for the html backend, which is just an alias for xhtml11, I'd remove the ifdef macros, and replace them with an include1 macro to include my CSS file. Your goal is to pull out any sort of decision-making code. There might be multiples, so look for whatever "looks right".Įdit the section of your configuration file. conf file, look for the section, copy the whole section, and paste it into your configuration file. I don't know which backend you're using, but whichever it is, find its.In it, create a section (which is not a documented configuration file section, but I've noticed it in.Create a configuration file if you don't have one already.I've also only done a quick test with it, but it seems to work. A little disclaimer: I figured this out by poking around the AsciiDoc source code, and it's not documented, so it might change in a later release. Symbolic links could work, if that's an option for your situation.Īnother possibility is a little more extreme, but allows you to keep your style along with your data, if you'd prefer that. There does not seem to be a way to change it, or I just don't know it. The downside to this approach is that your theme has to exist with the other themes. and later), or -attribute theme= (pre-8.6.6). Specify the stylesheet using the theme document attribute or -theme command line option (8.6.6.With 8.6.6 and above, it's a set of directories. Pre-version 8.6.6, it's just a set of CSS files. Copy an existing theme ("flask" seems to be the default).Find the themes directory under wherever AsciiDoc is installed.The AsciiDoc User Guide has instructions on how to do this (sorta), but essentially: The simplest alternative seems to be to create your own theme. Ultimately, AsciiDoc just includes a stylesheet file into your output (after some fairly complex logic, depending on the backend). Unfortunately, there doesn't seem to be a really simple way to set custom styles with simple directives in your AsciiDoc input file. I am new at AsciiDoc myself, but this might be enough to get you going.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |