Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Is there a Strikethrough and/or Paragraph Rules angle tweak?

Return to Member Forum

  • Author
    Posts
    • #54660
      luism1978
      Member

      I'm working on a project where currently there is set text in a table that needs to have a strikethrough at a -45° angle. However, the previous designers placed a line with that angle hovering above the text without it being attached as a paragraph style or even within the table cells (see screen snapshot). The danger in this workflow in that at times if either text or the column widths change, the lines simply sit above unmoved and could potentially sit hidden behind the table itself.

      I'm looking for options to have this angled rule be attached to the paragraph style so that it can remain as part of the text within the cells and cover the prices (text) when they change. Not affraid to dive into using a script or plugins so any help on this will be appreciated.

    • #54661
      Anonymous
      Inactive

      Would going to Celll Options and choosing Diagnol Stroke be an option? it goes from corner to corner of the cell though

    • #54663
      luism1978
      Member

      I tried that already, my client's not happy with that one. Has to be within the bounds of the text only. Plus, sometimes there's space below that is left blank when the row's text elsewhere goes 2 lines and the prices remain top aligned in the cell.

    • #54665
      Anonymous
      Inactive

      The only thing I can think of as options is to cut and paste the lines into the table and use anchored object options to anchor the line with the text.

      You could then make an object style for that line, and copy and paste it to each cell.

      When you cut the line into the cell, right click or cmd click the line. Go to Anchored Object>options

      Ciustom

      Select “From Anchor Marker” in one of the drop menus

      Set your settings so the line is accurate.

      Then give the line an object style, and copy and paste it into each cell.

    • #54689

      I agree with Eugene totally. The only solution I can think of is anchoring that rule.

    • #54716
      luism1978
      Member

      Thank you two for the quick response but for a book containing ballpark 200 pages with at least an average of 2 to 4 tables with average of 6 rows and 10 columns seems like too much work to do. Plus, the text is dynamic as the prices change at least twice a month. Creating an angle on a strikethrough or a rule is the best answer for me because of the text, I may have to learn how to create a script to change this in a global paragraph style.

      Thanks

    • #54724

      Good luck, luism1978. I don't know of any way to have a paragraph style create a diagonal strikethrough, or a script to do what can't be done.

      I don't know of any way that a paragraph or character style will do what you want. An anchored diagonal rule will work, and while I realize you don't like that solution, I don't see anything else that you can do. And I'm sorry that your client doesn't like the other option.

      And, if InDesign doesn't support those diagonal rules, I can't see how a script is going to override that.

      I think you need to tell your client that what they want can't be automated and that what you are going to charge them is going to be more.

      Anyway–good luck with your script. And if it works somehow, please share with us here.

    • #54733
      Tim Hughes
      Member

      With you 100% Docbud.

      An anchored line is the solution, with an object style. Life is like that sometimes.

    • #54734
      Anonymous
      Inactive

      Even if there was an easy button to put a strikethrough at an angle, you'd still have to go and apply that style to the text, it appears to be in random places, so you'd have to do it by hand anyway.

      So pasting in an object into the cell would just be nearly the same thing.

      If the numbers with the strikethrough have a commonality – like size, colour, different char or para style than other text etc. you could use a GREP find and replace and include the diagnol line in the Replace.

      But as for doing 200 pages, you'll just have to roll up your sleeves and get cracking. Unless a very clever scripter can get this to work.

      I'm out of ideas.

    • #54736
      luism1978
      Member

      Right, the deadline is extremely tight and on top of these 200+ pages I have to go back three years worth of documents and implement the revised styles because often there's a need to do pick-ups in new materials. The price already has a paragraph style, my intention was to make an edit that will globally add a striketrough/rule and give it an angle.

      I've tried to wrap my head around scripting and it's been quite a challenge, GREP has potential I just hoped to have something a bit easier. I've done the work cell by cell for now but will need something more automated going forward. Will do some more research regarding scripting.

      Again, thank you all for the help.

    • #54743
      Anonymous
      Inactive

      Ok – so firstly get the diagnol red rule in position in a cell with the text and get it postioned and anchored correctly. Then make an object style for the diagnol red rule (for the Grep to work you have to put the red rule before the text and anchored correctly)

      What you do with the GREP is

      Find:

      .+

      Change to:

      ~C$0

      (actually can't remember if it's ~c or ~C?)

      Find Format:

      <insert the paragraph style that should be Strikethrough)

      Change Format:

      (leave blank)

      I think that should do it – sorry can't test it right now.

    • #54756
      Tim Hughes
      Member

      That is very cool Eugene.

    • #54773
      James Fritz
      Member

      There is kind of a work around, but you probably won't like it.

      1. Select your text and put a strike through on it.

      2. Edit the strikethrough options and change the type to the slashes \

      3. Increase the size dramatically until only 1 shows up.

      This will give you 1 big 45degree strikethrough.

      It is probably not want you want, but it is something.

    • #54793
      luism1978
      Member

      James, I think you're on to something. Now I'm wondering if I can create a custom stroke that behaves like a solid type stroke but with an angle… gotta do more research. Thanks for the help.

    • #54803
      Anonymous
      Inactive

      I thought about the slanted dash, but it doesn't work, the line is way too thick on normal type and won't work for every instance.

      The other thought I had was to use a “/” and then increase the horizontal width. With a lot of adjustment in the kerning between the “/” and the first character, you can get the “/” over the type.

      Then colour it red and give it a character style.

    • #60816
      Anonymous
      Inactive
    • #60861
      Gfx-Dzine
      Member

      Great reference from bujika. The page is in Russian and on it's turn refers to the website of Frans van de Geest – he's also roaming here but don't know if he saw this post. Anyway I found his post on this subject on his website – it's in Dutch (including the dialogs) and, as far as I understood in a glance, puts a scaled slash, that's put in front of the amount, through the amount. It tests the number of positions of the amount (10ths, 100rds, 1000s).

      If prefered I can translate the post (including English dialogs).

Viewing 16 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads