![]() +?, which matches an tag up to and including the next tag. Then, in the To Text field, enter the regular expression. Select the italic style in the Apply Style dropdown. In the paragraph style’s Paragraph Style Options dialogue, go to the GREP Style tab, and click New GREP Style. With these two character styles in place, we define two GREP styles in the paragraph style used for our running header style. It’s common practice also to set the hiding character style’s colour to None-just in case. So it still has some width but it’s negligible. In our example of ‘The future of Homo sapiens’, when we compare the tagged title formatted with a GREP style and the same title without tags (and italic applied manually) the difference in width of the whole title is 0.002 points (or 0.0007 mm type set in 10 pts). This makes the text to which it is applied invisible and virtually zero-width. Set its size to 0.1 points and its horizontal scale to 1%-these are the smallest possible values in InDesign.Create a new character style and call it (for example) ‘hide’.In InDesign we can do that by using a very old trick which dates back to the days of early WordPerfect and Wordstar-set the text to the smallest possible type size and further reduce its width by scaling it down.Ī ‘hiding’ character style can be created in InDesign as follows: You can’t delete text with a GREP style but what we can do is make text invisible, or hide it. The style to get rid of the tags is perhaps less straightforward. Create a new style, call it (for example) ‘Italics’, and set its font style to italic. The character style to apply italics is straightforward. We’ll do that with two character styles in InDesign, which are applied by GREP styles defined in the paragraph style used for the running headers. Apply italics to the text in between the text tags and.When the document is paginated, we need to do two things: The text tags are plain text and will therefore end up just like that in the InDesign document. The format of the tags doesn’t matter: it could be %0 and %1 or any other consistent and transparent scheme. The first step is to use some text tags in the field content in the source document: The future of Homo sapiens. Suppose we have a running header ‘The future of Homo sapiens’, and we want it to appear as ‘The future of Homo sapiens‘. ![]() Say we use Typefi section fields to populate running headers, and we want to be able to apply italics to words in a title. Let’s illustrate this with adding some formatting to instances of a Typefi field. ![]() However, this limitation can be overcome by including some rudimentary, HTML-like text tags in the field content and one or more GREP styles in the InDesign paragraph styles applied to the fields. Typefi field content can contain only plain text: no formatting is possible. This method of text formatting can’t be used in Typefi fields, because the composition engine doesn’t see that content. In a Typefi workflow, if you want some text to automatically appear in a certain format in InDesign, you can apply that formatting as a local override or with a character style in your Word document, or encode it in an XML file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |