Cross out words with TikZ: line opacityCross out words with overlapping to nearby wordsPGFPlots: line opacity...
Return last number in sub-sequences in a list of integers
How to prevent a single-element caster from being useless against immune foes?
Word for giving preference to the oldest child
How to derive trigonometric Cartesian equation from parametric
I don't understand functional equations. A complicated question.
Accurately recalling the key - can everyone do it?
When did J.K. Rowling decide to make Harry and Ginny a couple?
How does Asimov's second law deal with contradictory orders from different people?
Can black block with a hanging piece in a back rank mate situation?
Adjective for when skills are not improving and I'm depressed about it
Python π = 1 + (1/2) + (1/3) + (1/4) - (1/5) + (1/6) + (1/7) + (1/8) + (1/9) - (1/10) ...1748 Euler
Why should I use a big powerstone instead of smaller ones?
When did J.K. Rowling decide to make Ron and Hermione a couple?
How to compare files with diffrent extensions and delete extra files?
Security measures that could plausibly last 150+ years?
How did Biff return to 2015 from 1955 without a lightning strike?
Normally Closed Optoisolators
How to gracefully excuse yourself from a meeting due to emergencies such as a restroom break?
The grades of the students in a class
mv Command Deleted Files In Source Directory and Target Directory
Error with uppercase in titlesec's label field
Backpacking with incontinence
How to escape forward slashes?
Skipping same old introductions
Cross out words with TikZ: line opacity
Cross out words with overlapping to nearby wordsPGFPlots: line opacity gradient?How to have a cross out rectangle in tikz?TikZ picture in header with opacityTikZ intersections and opacityTikz opacity problem with rectangle splittikz picture: draw opacity vs fill opacity?Opacity of images in TikZ with beamerTikZ opacity computation going wrongfill opacity, opacity, and draw opacity commands don't work at all - tikz, tikz3dplottikz stroke opacity of line intersections
.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
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
newcommand{txtcross}[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);
}%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
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
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
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
newcommand{txtcross}[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);
}%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
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
1
You need atransparency group
. Just google of look on this site - it is simple.
– hpekristiansen
8 hours ago
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
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
newcommand{txtcross}[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);
}%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
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
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
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
newcommand{txtcross}[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);
}%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
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
tikz-pgf
edited 7 hours ago
Vince
asked 8 hours ago
VinceVince
1241 gold badge1 silver badge9 bronze badges
1241 gold badge1 silver badge9 bronze badges
1
You need atransparency group
. Just google of look on this site - it is simple.
– hpekristiansen
8 hours ago
add a comment |
1
You need atransparency group
. Just google of look on this site - it is simple.
– hpekristiansen
8 hours ago
1
1
You need a
transparency group
. Just google of look on this site - it is simple.– hpekristiansen
8 hours ago
You need a
transparency group
. Just google of look on this site - it is simple.– hpekristiansen
8 hours ago
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):
documentclass{article}
usepackage{tikz}
usetikzlibrary{shapes.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};%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest. Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
add a comment |
You can use the cross out
shape node like that:
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
usetikzlibrary{shapes.misc}
newcommand{txtcross}[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};
}
}
begin{document}
Jean-Baptiste Lully was txtcross{a French} an Italian-born French composer, instrumentalist, and dancer
end{document}
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);
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
newcommand{mycrossed}[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);
}%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
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/3.0/"u003ecc by-sa 3.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):
documentclass{article}
usepackage{tikz}
usetikzlibrary{shapes.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};%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest. Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
add a comment |
Based on @Hafid Boukhoulda answer, with some simplification (without remember picture
option, slightly different node style definition):
documentclass{article}
usepackage{tikz}
usetikzlibrary{shapes.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};%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest. Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
add a comment |
Based on @Hafid Boukhoulda answer, with some simplification (without remember picture
option, slightly different node style definition):
documentclass{article}
usepackage{tikz}
usetikzlibrary{shapes.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};%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest. Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
Based on @Hafid Boukhoulda answer, with some simplification (without remember picture
option, slightly different node style definition):
documentclass{article}
usepackage{tikz}
usetikzlibrary{shapes.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};%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest. Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
answered 7 hours ago
ZarkoZarko
141k8 gold badges78 silver badges190 bronze badges
141k8 gold badges78 silver badges190 bronze badges
add a comment |
add a comment |
You can use the cross out
shape node like that:
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
usetikzlibrary{shapes.misc}
newcommand{txtcross}[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};
}
}
begin{document}
Jean-Baptiste Lully was txtcross{a French} an Italian-born French composer, instrumentalist, and dancer
end{document}
add a comment |
You can use the cross out
shape node like that:
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
usetikzlibrary{shapes.misc}
newcommand{txtcross}[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};
}
}
begin{document}
Jean-Baptiste Lully was txtcross{a French} an Italian-born French composer, instrumentalist, and dancer
end{document}
add a comment |
You can use the cross out
shape node like that:
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
usetikzlibrary{shapes.misc}
newcommand{txtcross}[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};
}
}
begin{document}
Jean-Baptiste Lully was txtcross{a French} an Italian-born French composer, instrumentalist, and dancer
end{document}
You can use the cross out
shape node like that:
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
usetikzlibrary{shapes.misc}
newcommand{txtcross}[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};
}
}
begin{document}
Jean-Baptiste Lully was txtcross{a French} an Italian-born French composer, instrumentalist, and dancer
end{document}
edited 7 hours ago
frougon
6,5751 gold badge12 silver badges22 bronze badges
6,5751 gold badge12 silver badges22 bronze badges
answered 7 hours ago
Hafid BoukhouldaHafid Boukhoulda
5,3681 gold badge6 silver badges26 bronze badges
5,3681 gold badge6 silver badges26 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);
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
newcommand{mycrossed}[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);
}%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
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);
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
newcommand{mycrossed}[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);
}%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
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);
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
newcommand{mycrossed}[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);
}%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
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);
documentclass{article}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage{xcolor}
usepackage{tikz}
newcommand{mycrossed}[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);
}%
}
begin{document}
Antonio Vivaldi was mycrossed{an Italian} a Venitian Baroque musical composer, virtuoso violinist, teacher, and priest.
end{document}
answered 7 hours ago
AndréCAndréC
11.5k2 gold badges17 silver badges53 bronze badges
11.5k2 gold badges17 silver badges53 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
8 hours ago