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;
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.
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
add a comment
|
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.
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
1
You need atransparency group
. Just google of look on this site - it is simple.
– hpekristiansen
Aug 2 at 20:21
add a comment
|
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.
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
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.
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
tikz-pgf transparency
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 atransparency group
. Just google of look on this site - it is simple.
– hpekristiansen
Aug 2 at 20:21
add a comment
|
1
You need atransparency 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
add a comment
|
3 Answers
3
active
oldest
votes
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
add a comment
|
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);
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
1
Voting down deserves an explanation. Without explanation this has no meaning other than gratuitous hostility.
– AndréC
Aug 3 at 6:12
add a comment
|
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
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment
|
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
add a comment
|
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
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
answered Aug 2 at 21:48
ZarkoZarko
152k8 gold badges87 silver badges199 bronze badges
152k8 gold badges87 silver badges199 bronze badges
add a comment
|
add a comment
|
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);
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
1
Voting down deserves an explanation. Without explanation this has no meaning other than gratuitous hostility.
– AndréC
Aug 3 at 6:12
add a comment
|
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);
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
1
Voting down deserves an explanation. Without explanation this has no meaning other than gratuitous hostility.
– AndréC
Aug 3 at 6:12
add a comment
|
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);
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
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);
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
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
add a comment
|
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
add a comment
|
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
add a comment
|
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
add a comment
|
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
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
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
add a comment
|
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
You need a
transparency group
. Just google of look on this site - it is simple.– hpekristiansen
Aug 2 at 20:21