Cross out words with TikZ: line opacityCross out words with overlapping to nearby wordsTikz mindmap with opacity, a different approach to venn diagramsPGFPlots: line opacity gradient?TikZ picture in header with opacitytikz picture: draw opacity vs fill opacity?TikZ calendar shading opacityOpacity of images in TikZ with beamersvg package interfers with opacityFaulty opacity coloring in TikZProblems with shading and opacity

Why was the DC-9-80 so successful despite being obsolete almost from birth?

Is it possible to get reverse life insurance?

Offensive/negative meaning of 雑草

Shabbos morning amidah - wrong biblical text - what to do?

Is policy routing bad?

Where is a warlock's soul?

How to implement bus sharing / DMA on a 6502 system

What precisely is scarcity?

If Space Shuttle flies "like a brick", why does it need the wings?

Greatsword with light and thrown?? (New wild barbarian)

Do familiars reproduce? If 'yes', what kinds of offspring result?

Does the Antonov An-225 have an Auxiliary Power Unit (APU)?

When the direction of a movement changes, is the object at rest at some time?

Flats (b's) in chord progressions

Is it possible to use gases instead of liquids as fuel in a rocket engine?

Are "No more healthy than" and "No more big than" both OK?

Should I report a security vulnerability?

How do I experimentally measure the surface area of a rock?

A randomized encryption program

Equality operator does not get defined for a custom spaceship operator implementation in C++20

Why use Fourier series instead of Taylor?

Bo Derek in texbook.tex?

What are the colours of Lisa's jewelry in portrait room?

Counterpart of cyclotomic polynomials for elliptic divisibility sequences



Cross out words with TikZ: line opacity


Cross out words with overlapping to nearby wordsTikz mindmap with opacity, a different approach to venn diagramsPGFPlots: line opacity gradient?TikZ picture in header with opacitytikz picture: draw opacity vs fill opacity?TikZ calendar shading opacityOpacity of images in TikZ with beamersvg package interfers with opacityFaulty opacity coloring in TikZProblems with shading and opacity






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









6

















I would like to cross out some words in a presentation and I prefer to have semitransparent lines to facilitate reading.



The MWE hereafter is based on: https://tex.stackexchange.com/a/478560/19788



documentclassarticle
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagexcolor
usepackagetikz

newcommandtxtcross[1]%
tikz[remember picture, baseline=(A.base)]
node[inner sep=0pt](A)#1;
%
tikz[overlay, remember picture]
draw[red, draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east);
draw[red, draw opacity=0.5, line width=1.5pt] (A.south west) -- (A.north east);
%


begindocument

Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.

enddocument


The result seems good but, in fact, the part where the lines overlap is (logically) darker than the other parts.



Result of the compilation with a zoom on the crossed out words



Should I modify the code to obtain a cross uniformly colored with an opacity value lower than 1?



Or should I try drawing the cross by another means?










share|improve this question























  • 1





    You need a transparency group. Just google of look on this site - it is simple.

    – hpekristiansen
    Aug 2 at 20:21

















6

















I would like to cross out some words in a presentation and I prefer to have semitransparent lines to facilitate reading.



The MWE hereafter is based on: https://tex.stackexchange.com/a/478560/19788



documentclassarticle
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagexcolor
usepackagetikz

newcommandtxtcross[1]%
tikz[remember picture, baseline=(A.base)]
node[inner sep=0pt](A)#1;
%
tikz[overlay, remember picture]
draw[red, draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east);
draw[red, draw opacity=0.5, line width=1.5pt] (A.south west) -- (A.north east);
%


begindocument

Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.

enddocument


The result seems good but, in fact, the part where the lines overlap is (logically) darker than the other parts.



Result of the compilation with a zoom on the crossed out words



Should I modify the code to obtain a cross uniformly colored with an opacity value lower than 1?



Or should I try drawing the cross by another means?










share|improve this question























  • 1





    You need a transparency group. Just google of look on this site - it is simple.

    – hpekristiansen
    Aug 2 at 20:21













6












6








6


1






I would like to cross out some words in a presentation and I prefer to have semitransparent lines to facilitate reading.



The MWE hereafter is based on: https://tex.stackexchange.com/a/478560/19788



documentclassarticle
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagexcolor
usepackagetikz

newcommandtxtcross[1]%
tikz[remember picture, baseline=(A.base)]
node[inner sep=0pt](A)#1;
%
tikz[overlay, remember picture]
draw[red, draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east);
draw[red, draw opacity=0.5, line width=1.5pt] (A.south west) -- (A.north east);
%


begindocument

Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.

enddocument


The result seems good but, in fact, the part where the lines overlap is (logically) darker than the other parts.



Result of the compilation with a zoom on the crossed out words



Should I modify the code to obtain a cross uniformly colored with an opacity value lower than 1?



Or should I try drawing the cross by another means?










share|improve this question

















I would like to cross out some words in a presentation and I prefer to have semitransparent lines to facilitate reading.



The MWE hereafter is based on: https://tex.stackexchange.com/a/478560/19788



documentclassarticle
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagexcolor
usepackagetikz

newcommandtxtcross[1]%
tikz[remember picture, baseline=(A.base)]
node[inner sep=0pt](A)#1;
%
tikz[overlay, remember picture]
draw[red, draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east);
draw[red, draw opacity=0.5, line width=1.5pt] (A.south west) -- (A.north east);
%


begindocument

Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.

enddocument


The result seems good but, in fact, the part where the lines overlap is (logically) darker than the other parts.



Result of the compilation with a zoom on the crossed out words



Should I modify the code to obtain a cross uniformly colored with an opacity value lower than 1?



Or should I try drawing the cross by another means?







tikz-pgf transparency






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Aug 31 at 8:28









AndréC

13.8k2 gold badges18 silver badges59 bronze badges




13.8k2 gold badges18 silver badges59 bronze badges










asked Aug 2 at 20:07









VinceVince

1491 gold badge2 silver badges9 bronze badges




1491 gold badge2 silver badges9 bronze badges










  • 1





    You need a transparency group. Just google of look on this site - it is simple.

    – hpekristiansen
    Aug 2 at 20:21












  • 1





    You need a transparency group. Just google of look on this site - it is simple.

    – hpekristiansen
    Aug 2 at 20:21







1




1





You need a transparency group. Just google of look on this site - it is simple.

– hpekristiansen
Aug 2 at 20:21





You need a transparency group. Just google of look on this site - it is simple.

– hpekristiansen
Aug 2 at 20:21










3 Answers
3






active

oldest

votes


















6


















Based on @Hafid Boukhoulda answer, with some simplification (without remember picture option, slightly different node style definition):



documentclassarticle
usepackagetikz
usetikzlibraryshapes.misc

newcommandmycrossed[1]tikz[baseline=(A.base)]
node[cross out, draw= red, draw opacity=0.5, line width=1.5pt,
inner sep=0pt, outer sep=0pt] (A) #1;%


begindocument
Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest. Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
enddocument


enter image description here






share|improve this answer

































    8


















    It is enough to draw the cross in a single path instead of two:



    draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east);


    screenshot



    screenshot-2



    documentclassarticle
    usepackage[T1]fontenc
    usepackage[utf8]inputenc
    usepackagexcolor
    usepackagetikz

    newcommandmycrossed[1]%
    tikz[remember picture, baseline=(A.base)]
    node[inner sep=0pt](A)#1;
    %
    tikz[overlay, remember picture]
    draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east);
    %


    begindocument

    Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.

    enddocument





    share|improve this answer





















    • 1





      Voting down deserves an explanation. Without explanation this has no meaning other than gratuitous hostility.

      – AndréC
      Aug 3 at 6:12


















    7


















    You can use the cross out shape node like that:



    documentclassarticle
    usepackage[T1]fontenc
    usepackage[utf8]inputenc
    usepackagexcolor
    usepackagetikz
    usetikzlibraryshapes.misc

    newcommandtxtcross[1]%
    tikz[remember picture, baseline=(A.base)]
    node[cross out,
    draw= red,
    line width=1.5pt,
    draw opacity=0.5,
    inner sep=0pt](A)#1;



    begindocument

    Jean-Baptiste Lully was txtcrossa French an Italian-born French composer, instrumentalist, and dancer

    enddocument


    enter image description here






    share|improve this answer





























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "85"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );














      draft saved

      draft discarded
















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f502590%2fcross-out-words-with-tikz-line-opacity%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown


























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6


















      Based on @Hafid Boukhoulda answer, with some simplification (without remember picture option, slightly different node style definition):



      documentclassarticle
      usepackagetikz
      usetikzlibraryshapes.misc

      newcommandmycrossed[1]tikz[baseline=(A.base)]
      node[cross out, draw= red, draw opacity=0.5, line width=1.5pt,
      inner sep=0pt, outer sep=0pt] (A) #1;%


      begindocument
      Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest. Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
      enddocument


      enter image description here






      share|improve this answer






























        6


















        Based on @Hafid Boukhoulda answer, with some simplification (without remember picture option, slightly different node style definition):



        documentclassarticle
        usepackagetikz
        usetikzlibraryshapes.misc

        newcommandmycrossed[1]tikz[baseline=(A.base)]
        node[cross out, draw= red, draw opacity=0.5, line width=1.5pt,
        inner sep=0pt, outer sep=0pt] (A) #1;%


        begindocument
        Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest. Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
        enddocument


        enter image description here






        share|improve this answer




























          6














          6










          6









          Based on @Hafid Boukhoulda answer, with some simplification (without remember picture option, slightly different node style definition):



          documentclassarticle
          usepackagetikz
          usetikzlibraryshapes.misc

          newcommandmycrossed[1]tikz[baseline=(A.base)]
          node[cross out, draw= red, draw opacity=0.5, line width=1.5pt,
          inner sep=0pt, outer sep=0pt] (A) #1;%


          begindocument
          Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest. Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
          enddocument


          enter image description here






          share|improve this answer














          Based on @Hafid Boukhoulda answer, with some simplification (without remember picture option, slightly different node style definition):



          documentclassarticle
          usepackagetikz
          usetikzlibraryshapes.misc

          newcommandmycrossed[1]tikz[baseline=(A.base)]
          node[cross out, draw= red, draw opacity=0.5, line width=1.5pt,
          inner sep=0pt, outer sep=0pt] (A) #1;%


          begindocument
          Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest. Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
          enddocument


          enter image description here







          share|improve this answer













          share|improve this answer




          share|improve this answer










          answered Aug 2 at 21:48









          ZarkoZarko

          152k8 gold badges87 silver badges199 bronze badges




          152k8 gold badges87 silver badges199 bronze badges


























              8


















              It is enough to draw the cross in a single path instead of two:



              draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east);


              screenshot



              screenshot-2



              documentclassarticle
              usepackage[T1]fontenc
              usepackage[utf8]inputenc
              usepackagexcolor
              usepackagetikz

              newcommandmycrossed[1]%
              tikz[remember picture, baseline=(A.base)]
              node[inner sep=0pt](A)#1;
              %
              tikz[overlay, remember picture]
              draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east);
              %


              begindocument

              Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.

              enddocument





              share|improve this answer





















              • 1





                Voting down deserves an explanation. Without explanation this has no meaning other than gratuitous hostility.

                – AndréC
                Aug 3 at 6:12















              8


















              It is enough to draw the cross in a single path instead of two:



              draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east);


              screenshot



              screenshot-2



              documentclassarticle
              usepackage[T1]fontenc
              usepackage[utf8]inputenc
              usepackagexcolor
              usepackagetikz

              newcommandmycrossed[1]%
              tikz[remember picture, baseline=(A.base)]
              node[inner sep=0pt](A)#1;
              %
              tikz[overlay, remember picture]
              draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east);
              %


              begindocument

              Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.

              enddocument





              share|improve this answer





















              • 1





                Voting down deserves an explanation. Without explanation this has no meaning other than gratuitous hostility.

                – AndréC
                Aug 3 at 6:12













              8














              8










              8









              It is enough to draw the cross in a single path instead of two:



              draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east);


              screenshot



              screenshot-2



              documentclassarticle
              usepackage[T1]fontenc
              usepackage[utf8]inputenc
              usepackagexcolor
              usepackagetikz

              newcommandmycrossed[1]%
              tikz[remember picture, baseline=(A.base)]
              node[inner sep=0pt](A)#1;
              %
              tikz[overlay, remember picture]
              draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east);
              %


              begindocument

              Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.

              enddocument





              share|improve this answer














              It is enough to draw the cross in a single path instead of two:



              draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east);


              screenshot



              screenshot-2



              documentclassarticle
              usepackage[T1]fontenc
              usepackage[utf8]inputenc
              usepackagexcolor
              usepackagetikz

              newcommandmycrossed[1]%
              tikz[remember picture, baseline=(A.base)]
              node[inner sep=0pt](A)#1;
              %
              tikz[overlay, remember picture]
              draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east);
              %


              begindocument

              Antonio Vivaldi was mycrossedan Italian a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.

              enddocument






              share|improve this answer













              share|improve this answer




              share|improve this answer










              answered Aug 2 at 21:14









              AndréCAndréC

              13.8k2 gold badges18 silver badges59 bronze badges




              13.8k2 gold badges18 silver badges59 bronze badges










              • 1





                Voting down deserves an explanation. Without explanation this has no meaning other than gratuitous hostility.

                – AndréC
                Aug 3 at 6:12












              • 1





                Voting down deserves an explanation. Without explanation this has no meaning other than gratuitous hostility.

                – AndréC
                Aug 3 at 6:12







              1




              1





              Voting down deserves an explanation. Without explanation this has no meaning other than gratuitous hostility.

              – AndréC
              Aug 3 at 6:12





              Voting down deserves an explanation. Without explanation this has no meaning other than gratuitous hostility.

              – AndréC
              Aug 3 at 6:12











              7


















              You can use the cross out shape node like that:



              documentclassarticle
              usepackage[T1]fontenc
              usepackage[utf8]inputenc
              usepackagexcolor
              usepackagetikz
              usetikzlibraryshapes.misc

              newcommandtxtcross[1]%
              tikz[remember picture, baseline=(A.base)]
              node[cross out,
              draw= red,
              line width=1.5pt,
              draw opacity=0.5,
              inner sep=0pt](A)#1;



              begindocument

              Jean-Baptiste Lully was txtcrossa French an Italian-born French composer, instrumentalist, and dancer

              enddocument


              enter image description here






              share|improve this answer
































                7


















                You can use the cross out shape node like that:



                documentclassarticle
                usepackage[T1]fontenc
                usepackage[utf8]inputenc
                usepackagexcolor
                usepackagetikz
                usetikzlibraryshapes.misc

                newcommandtxtcross[1]%
                tikz[remember picture, baseline=(A.base)]
                node[cross out,
                draw= red,
                line width=1.5pt,
                draw opacity=0.5,
                inner sep=0pt](A)#1;



                begindocument

                Jean-Baptiste Lully was txtcrossa French an Italian-born French composer, instrumentalist, and dancer

                enddocument


                enter image description here






                share|improve this answer






























                  7














                  7










                  7









                  You can use the cross out shape node like that:



                  documentclassarticle
                  usepackage[T1]fontenc
                  usepackage[utf8]inputenc
                  usepackagexcolor
                  usepackagetikz
                  usetikzlibraryshapes.misc

                  newcommandtxtcross[1]%
                  tikz[remember picture, baseline=(A.base)]
                  node[cross out,
                  draw= red,
                  line width=1.5pt,
                  draw opacity=0.5,
                  inner sep=0pt](A)#1;



                  begindocument

                  Jean-Baptiste Lully was txtcrossa French an Italian-born French composer, instrumentalist, and dancer

                  enddocument


                  enter image description here






                  share|improve this answer
















                  You can use the cross out shape node like that:



                  documentclassarticle
                  usepackage[T1]fontenc
                  usepackage[utf8]inputenc
                  usepackagexcolor
                  usepackagetikz
                  usetikzlibraryshapes.misc

                  newcommandtxtcross[1]%
                  tikz[remember picture, baseline=(A.base)]
                  node[cross out,
                  draw= red,
                  line width=1.5pt,
                  draw opacity=0.5,
                  inner sep=0pt](A)#1;



                  begindocument

                  Jean-Baptiste Lully was txtcrossa French an Italian-born French composer, instrumentalist, and dancer

                  enddocument


                  enter image description here







                  share|improve this answer















                  share|improve this answer




                  share|improve this answer








                  edited Aug 2 at 21:42









                  frougon

                  8,7201 gold badge14 silver badges27 bronze badges




                  8,7201 gold badge14 silver badges27 bronze badges










                  answered Aug 2 at 21:26









                  Hafid BoukhouldaHafid Boukhoulda

                  5,5171 gold badge7 silver badges28 bronze badges




                  5,5171 gold badge7 silver badges28 bronze badges































                      draft saved

                      draft discarded















































                      Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f502590%2fcross-out-words-with-tikz-line-opacity%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown









                      Popular posts from this blog

                      Tamil (spriik) Luke uk diar | Nawigatjuun

                      Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                      Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?