Mobile app version of vmapp.org
Login or Join
Bryan765

: Illustrator Variables XML file specs - can I define text formatting from XML? I'm trying to generate lots of files by dynamically loading texts inside of a template. The layout I'm going for

@Bryan765

Posted in: #AdobeIllustrator #PageLayout #Text #Xml

I'm trying to generate lots of files by dynamically loading texts inside of a template. The layout I'm going for is 2 threaded textboxes for 2 columns, and the text is made of title, paragraph, title, paragraph. Like this:


The textboxes are bound to an Illustrator variable named Textbox, and my XML looks like this:

<variableSets xmlns="&ns_vars;">
<variableSet varSetName="binding1" locked="none">
<variables>
<variable varName="Textbox" category="&ns_flows;" trait="textcontent"></variable>
</variables>
<v:sampleDataSets xmlns:v="&ns_vars;" xmlns="&ns_custom;">
<v:sampleDataSet dataSetName="1">
<Textbox>
<p>Variable-length title</p>
<p>
Lorem ipsum dolor sit amet etc. etc. etc.
</p>
<p> </p>
<p>Second variable-length title</p>
<p>
Ad delectus in, consequuntur eligendi incidunt etc. etc. etc.
</p>
</Textbox>
</v:sampleDataSet>
</v:sampleDataSets>
</variableSet>
</variableSets>


When I import this the whole paragraph is the same style, as it's only using <p> tags. No differentiation for title.
I thought I could simply write <h1>Title</h1> for this but have found that Illustrator won't parse this.

How can I make this textbox have different formatting?

I would create different separate textboxes for titles, but where to place them? I never know where they will show up vertically, that's determined by the amount of paragraph text in each data set. The title itself could wrap on 2 lines as well.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan765

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme