Horizontal line without indenting
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
This is the result I want to have (I want to obtain the result that most resembles this mathematical expression):
What I have tried is this:
[
beginaligned
01: 1011 : 0110\
11: 0001 : 1101\
hline
11: 1011 : 1111\
01: 0001 : 0100\
10: 1010 : 1011
endaligned
]
Result:
I don't know how to insert the text "bitwise OR", "bitwise AND" and also to reduce the spacing between the numbers.
PD: The font color doesn't matter.
spacing line-breaking line horizontal
New contributor
add a comment |Â
up vote
3
down vote
favorite
This is the result I want to have (I want to obtain the result that most resembles this mathematical expression):
What I have tried is this:
[
beginaligned
01: 1011 : 0110\
11: 0001 : 1101\
hline
11: 1011 : 1111\
01: 0001 : 0100\
10: 1010 : 1011
endaligned
]
Result:
I don't know how to insert the text "bitwise OR", "bitwise AND" and also to reduce the spacing between the numbers.
PD: The font color doesn't matter.
spacing line-breaking line horizontal
New contributor
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
This is the result I want to have (I want to obtain the result that most resembles this mathematical expression):
What I have tried is this:
[
beginaligned
01: 1011 : 0110\
11: 0001 : 1101\
hline
11: 1011 : 1111\
01: 0001 : 0100\
10: 1010 : 1011
endaligned
]
Result:
I don't know how to insert the text "bitwise OR", "bitwise AND" and also to reduce the spacing between the numbers.
PD: The font color doesn't matter.
spacing line-breaking line horizontal
New contributor
This is the result I want to have (I want to obtain the result that most resembles this mathematical expression):
What I have tried is this:
[
beginaligned
01: 1011 : 0110\
11: 0001 : 1101\
hline
11: 1011 : 1111\
01: 0001 : 0100\
10: 1010 : 1011
endaligned
]
Result:
I don't know how to insert the text "bitwise OR", "bitwise AND" and also to reduce the spacing between the numbers.
PD: The font color doesn't matter.
spacing line-breaking line horizontal
spacing line-breaking line horizontal
New contributor
New contributor
edited 1 hour ago
Sebastiano
7,78741654
7,78741654
New contributor
asked 1 hour ago
R. Morales
182
182
New contributor
New contributor
add a comment |Â
add a comment |Â
4 Answers
4
active
oldest
votes
up vote
2
down vote
accepted
You can usa a tabular
, with booktabs
and its prettier rules.
I chose to typeset four columns, so you can decide upon the spacing as you please; I find thinspace
better. You can use hspace<length>
as you please instead. Also $:$
would do, if you prefer that space.
documentclassarticle
usepackagebooktabs,array
newcolumntypeR>$r<$ % right aligned math
begindocument
[
begintabular
@
R@thinspace
R@thinspace
R
l
@
01 & 1011 & 0110\
11 & 0001 & 1101\
cmidrule[lightrulewidth](r)1-3
11 & 1011 & 1111 & bitwise OR \
01 & 0001 & 0100 & bitwise AND \
10 & 1010 & 1011 & bitwise XOR
endtabular
]
enddocument
Interesting. The horizontal line goes a little bit outer the column on the right!
â Sigur
44 mins ago
add a comment |Â
up vote
2
down vote
Is this what you want?
begintabular@ccc@c l
01& 1011 & 0110\
11& 0001 & 1101\
cline1-3
11& 1011 & 1111 && bitwise textitOR\
01& 0001 & 0100 && bitwise textitAND \
10& 1010 & 1011 && bitwise textitXOR
endtabular
add a comment |Â
up vote
1
down vote
Of course, someone needs to show how to do this with a matrix
construct in TikZ.
documentclass[border=6pt]standalone
usepackagetikz
usetikzlibrarycalc
usetikzlibrarymatrix
begindocument
begintikzpicture
matrix (BINARY)
[matrix of nodes,
row sep=4pt,
nodes=font=sffamily,]
01 & 1011 & 0110 \
11 & 0001 & 1101 \
%% -----------------
11 & 1011 & 1111 \%% bitwise OR
01 & 0001 & 0100 \%% bitwise AND
10 & 1010 & 1011 \%% bitwise XOR
;
draw ($(BINARY-2-1.south west)!0.5!(BINARY-3-1.north west)$) --
($(BINARY-2-3.south east)!0.5!(BINARY-3-3.north east)$);
node[anchor=west,blue] at (BINARY-3-3.east) bitwise OR;
node[anchor=west,blue] at (BINARY-4-3.east) bitwise AND;
node[anchor=west,blue] at (BINARY-5-3.east) bitwise XOR;
endtikzpicture
enddocument
For the comments on last three rows you could, alternatively, use a foreach
loop as follows:
foreach myn/myop in 3/OR,4/AND,5/XOR
node[anchor=west,blue] at (BINARY-myn-3.east) bitwise myop;
add a comment |Â
up vote
0
down vote
You alse can use the alignedat
environment to have full control on the spacing:
documentclassarticle
usepackagemathtools
usepackage[svgnames, table]xcolor
usepackagebooktabs, hhline
begindocument
[ aboverulesep = -2.5exbelowrulesep = -1exarrayrulecolorSkyBlue
beginalignedat4
& 01 & : & 1011 & : & 0110\
& 11 & : & 0001 & : & 1101\
cmidrule[0.15ex]1-6
& 11 & : & 1011 & : & 1111 &qquad &textcolorSkyBluebitwise emphOR \
& 01 & : & 0001 & : & 0100 & & textcolorSkyBluebitwise emphAND\
& 10 & : & 1010 & : & 1011 & & textcolorSkyBluebitwise emphXOR
endalignedat
]
enddocument
add a comment |Â
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You can usa a tabular
, with booktabs
and its prettier rules.
I chose to typeset four columns, so you can decide upon the spacing as you please; I find thinspace
better. You can use hspace<length>
as you please instead. Also $:$
would do, if you prefer that space.
documentclassarticle
usepackagebooktabs,array
newcolumntypeR>$r<$ % right aligned math
begindocument
[
begintabular
@
R@thinspace
R@thinspace
R
l
@
01 & 1011 & 0110\
11 & 0001 & 1101\
cmidrule[lightrulewidth](r)1-3
11 & 1011 & 1111 & bitwise OR \
01 & 0001 & 0100 & bitwise AND \
10 & 1010 & 1011 & bitwise XOR
endtabular
]
enddocument
Interesting. The horizontal line goes a little bit outer the column on the right!
â Sigur
44 mins ago
add a comment |Â
up vote
2
down vote
accepted
You can usa a tabular
, with booktabs
and its prettier rules.
I chose to typeset four columns, so you can decide upon the spacing as you please; I find thinspace
better. You can use hspace<length>
as you please instead. Also $:$
would do, if you prefer that space.
documentclassarticle
usepackagebooktabs,array
newcolumntypeR>$r<$ % right aligned math
begindocument
[
begintabular
@
R@thinspace
R@thinspace
R
l
@
01 & 1011 & 0110\
11 & 0001 & 1101\
cmidrule[lightrulewidth](r)1-3
11 & 1011 & 1111 & bitwise OR \
01 & 0001 & 0100 & bitwise AND \
10 & 1010 & 1011 & bitwise XOR
endtabular
]
enddocument
Interesting. The horizontal line goes a little bit outer the column on the right!
â Sigur
44 mins ago
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You can usa a tabular
, with booktabs
and its prettier rules.
I chose to typeset four columns, so you can decide upon the spacing as you please; I find thinspace
better. You can use hspace<length>
as you please instead. Also $:$
would do, if you prefer that space.
documentclassarticle
usepackagebooktabs,array
newcolumntypeR>$r<$ % right aligned math
begindocument
[
begintabular
@
R@thinspace
R@thinspace
R
l
@
01 & 1011 & 0110\
11 & 0001 & 1101\
cmidrule[lightrulewidth](r)1-3
11 & 1011 & 1111 & bitwise OR \
01 & 0001 & 0100 & bitwise AND \
10 & 1010 & 1011 & bitwise XOR
endtabular
]
enddocument
You can usa a tabular
, with booktabs
and its prettier rules.
I chose to typeset four columns, so you can decide upon the spacing as you please; I find thinspace
better. You can use hspace<length>
as you please instead. Also $:$
would do, if you prefer that space.
documentclassarticle
usepackagebooktabs,array
newcolumntypeR>$r<$ % right aligned math
begindocument
[
begintabular
@
R@thinspace
R@thinspace
R
l
@
01 & 1011 & 0110\
11 & 0001 & 1101\
cmidrule[lightrulewidth](r)1-3
11 & 1011 & 1111 & bitwise OR \
01 & 0001 & 0100 & bitwise AND \
10 & 1010 & 1011 & bitwise XOR
endtabular
]
enddocument
answered 1 hour ago
egreg
688k8518323080
688k8518323080
Interesting. The horizontal line goes a little bit outer the column on the right!
â Sigur
44 mins ago
add a comment |Â
Interesting. The horizontal line goes a little bit outer the column on the right!
â Sigur
44 mins ago
Interesting. The horizontal line goes a little bit outer the column on the right!
â Sigur
44 mins ago
Interesting. The horizontal line goes a little bit outer the column on the right!
â Sigur
44 mins ago
add a comment |Â
up vote
2
down vote
Is this what you want?
begintabular@ccc@c l
01& 1011 & 0110\
11& 0001 & 1101\
cline1-3
11& 1011 & 1111 && bitwise textitOR\
01& 0001 & 0100 && bitwise textitAND \
10& 1010 & 1011 && bitwise textitXOR
endtabular
add a comment |Â
up vote
2
down vote
Is this what you want?
begintabular@ccc@c l
01& 1011 & 0110\
11& 0001 & 1101\
cline1-3
11& 1011 & 1111 && bitwise textitOR\
01& 0001 & 0100 && bitwise textitAND \
10& 1010 & 1011 && bitwise textitXOR
endtabular
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Is this what you want?
begintabular@ccc@c l
01& 1011 & 0110\
11& 0001 & 1101\
cline1-3
11& 1011 & 1111 && bitwise textitOR\
01& 0001 & 0100 && bitwise textitAND \
10& 1010 & 1011 && bitwise textitXOR
endtabular
Is this what you want?
begintabular@ccc@c l
01& 1011 & 0110\
11& 0001 & 1101\
cline1-3
11& 1011 & 1111 && bitwise textitOR\
01& 0001 & 0100 && bitwise textitAND \
10& 1010 & 1011 && bitwise textitXOR
endtabular
answered 1 hour ago
Sigur
22.2k350132
22.2k350132
add a comment |Â
add a comment |Â
up vote
1
down vote
Of course, someone needs to show how to do this with a matrix
construct in TikZ.
documentclass[border=6pt]standalone
usepackagetikz
usetikzlibrarycalc
usetikzlibrarymatrix
begindocument
begintikzpicture
matrix (BINARY)
[matrix of nodes,
row sep=4pt,
nodes=font=sffamily,]
01 & 1011 & 0110 \
11 & 0001 & 1101 \
%% -----------------
11 & 1011 & 1111 \%% bitwise OR
01 & 0001 & 0100 \%% bitwise AND
10 & 1010 & 1011 \%% bitwise XOR
;
draw ($(BINARY-2-1.south west)!0.5!(BINARY-3-1.north west)$) --
($(BINARY-2-3.south east)!0.5!(BINARY-3-3.north east)$);
node[anchor=west,blue] at (BINARY-3-3.east) bitwise OR;
node[anchor=west,blue] at (BINARY-4-3.east) bitwise AND;
node[anchor=west,blue] at (BINARY-5-3.east) bitwise XOR;
endtikzpicture
enddocument
For the comments on last three rows you could, alternatively, use a foreach
loop as follows:
foreach myn/myop in 3/OR,4/AND,5/XOR
node[anchor=west,blue] at (BINARY-myn-3.east) bitwise myop;
add a comment |Â
up vote
1
down vote
Of course, someone needs to show how to do this with a matrix
construct in TikZ.
documentclass[border=6pt]standalone
usepackagetikz
usetikzlibrarycalc
usetikzlibrarymatrix
begindocument
begintikzpicture
matrix (BINARY)
[matrix of nodes,
row sep=4pt,
nodes=font=sffamily,]
01 & 1011 & 0110 \
11 & 0001 & 1101 \
%% -----------------
11 & 1011 & 1111 \%% bitwise OR
01 & 0001 & 0100 \%% bitwise AND
10 & 1010 & 1011 \%% bitwise XOR
;
draw ($(BINARY-2-1.south west)!0.5!(BINARY-3-1.north west)$) --
($(BINARY-2-3.south east)!0.5!(BINARY-3-3.north east)$);
node[anchor=west,blue] at (BINARY-3-3.east) bitwise OR;
node[anchor=west,blue] at (BINARY-4-3.east) bitwise AND;
node[anchor=west,blue] at (BINARY-5-3.east) bitwise XOR;
endtikzpicture
enddocument
For the comments on last three rows you could, alternatively, use a foreach
loop as follows:
foreach myn/myop in 3/OR,4/AND,5/XOR
node[anchor=west,blue] at (BINARY-myn-3.east) bitwise myop;
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Of course, someone needs to show how to do this with a matrix
construct in TikZ.
documentclass[border=6pt]standalone
usepackagetikz
usetikzlibrarycalc
usetikzlibrarymatrix
begindocument
begintikzpicture
matrix (BINARY)
[matrix of nodes,
row sep=4pt,
nodes=font=sffamily,]
01 & 1011 & 0110 \
11 & 0001 & 1101 \
%% -----------------
11 & 1011 & 1111 \%% bitwise OR
01 & 0001 & 0100 \%% bitwise AND
10 & 1010 & 1011 \%% bitwise XOR
;
draw ($(BINARY-2-1.south west)!0.5!(BINARY-3-1.north west)$) --
($(BINARY-2-3.south east)!0.5!(BINARY-3-3.north east)$);
node[anchor=west,blue] at (BINARY-3-3.east) bitwise OR;
node[anchor=west,blue] at (BINARY-4-3.east) bitwise AND;
node[anchor=west,blue] at (BINARY-5-3.east) bitwise XOR;
endtikzpicture
enddocument
For the comments on last three rows you could, alternatively, use a foreach
loop as follows:
foreach myn/myop in 3/OR,4/AND,5/XOR
node[anchor=west,blue] at (BINARY-myn-3.east) bitwise myop;
Of course, someone needs to show how to do this with a matrix
construct in TikZ.
documentclass[border=6pt]standalone
usepackagetikz
usetikzlibrarycalc
usetikzlibrarymatrix
begindocument
begintikzpicture
matrix (BINARY)
[matrix of nodes,
row sep=4pt,
nodes=font=sffamily,]
01 & 1011 & 0110 \
11 & 0001 & 1101 \
%% -----------------
11 & 1011 & 1111 \%% bitwise OR
01 & 0001 & 0100 \%% bitwise AND
10 & 1010 & 1011 \%% bitwise XOR
;
draw ($(BINARY-2-1.south west)!0.5!(BINARY-3-1.north west)$) --
($(BINARY-2-3.south east)!0.5!(BINARY-3-3.north east)$);
node[anchor=west,blue] at (BINARY-3-3.east) bitwise OR;
node[anchor=west,blue] at (BINARY-4-3.east) bitwise AND;
node[anchor=west,blue] at (BINARY-5-3.east) bitwise XOR;
endtikzpicture
enddocument
For the comments on last three rows you could, alternatively, use a foreach
loop as follows:
foreach myn/myop in 3/OR,4/AND,5/XOR
node[anchor=west,blue] at (BINARY-myn-3.east) bitwise myop;
edited 9 mins ago
answered 34 mins ago
A.Ellett
35.5k1064164
35.5k1064164
add a comment |Â
add a comment |Â
up vote
0
down vote
You alse can use the alignedat
environment to have full control on the spacing:
documentclassarticle
usepackagemathtools
usepackage[svgnames, table]xcolor
usepackagebooktabs, hhline
begindocument
[ aboverulesep = -2.5exbelowrulesep = -1exarrayrulecolorSkyBlue
beginalignedat4
& 01 & : & 1011 & : & 0110\
& 11 & : & 0001 & : & 1101\
cmidrule[0.15ex]1-6
& 11 & : & 1011 & : & 1111 &qquad &textcolorSkyBluebitwise emphOR \
& 01 & : & 0001 & : & 0100 & & textcolorSkyBluebitwise emphAND\
& 10 & : & 1010 & : & 1011 & & textcolorSkyBluebitwise emphXOR
endalignedat
]
enddocument
add a comment |Â
up vote
0
down vote
You alse can use the alignedat
environment to have full control on the spacing:
documentclassarticle
usepackagemathtools
usepackage[svgnames, table]xcolor
usepackagebooktabs, hhline
begindocument
[ aboverulesep = -2.5exbelowrulesep = -1exarrayrulecolorSkyBlue
beginalignedat4
& 01 & : & 1011 & : & 0110\
& 11 & : & 0001 & : & 1101\
cmidrule[0.15ex]1-6
& 11 & : & 1011 & : & 1111 &qquad &textcolorSkyBluebitwise emphOR \
& 01 & : & 0001 & : & 0100 & & textcolorSkyBluebitwise emphAND\
& 10 & : & 1010 & : & 1011 & & textcolorSkyBluebitwise emphXOR
endalignedat
]
enddocument
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You alse can use the alignedat
environment to have full control on the spacing:
documentclassarticle
usepackagemathtools
usepackage[svgnames, table]xcolor
usepackagebooktabs, hhline
begindocument
[ aboverulesep = -2.5exbelowrulesep = -1exarrayrulecolorSkyBlue
beginalignedat4
& 01 & : & 1011 & : & 0110\
& 11 & : & 0001 & : & 1101\
cmidrule[0.15ex]1-6
& 11 & : & 1011 & : & 1111 &qquad &textcolorSkyBluebitwise emphOR \
& 01 & : & 0001 & : & 0100 & & textcolorSkyBluebitwise emphAND\
& 10 & : & 1010 & : & 1011 & & textcolorSkyBluebitwise emphXOR
endalignedat
]
enddocument
You alse can use the alignedat
environment to have full control on the spacing:
documentclassarticle
usepackagemathtools
usepackage[svgnames, table]xcolor
usepackagebooktabs, hhline
begindocument
[ aboverulesep = -2.5exbelowrulesep = -1exarrayrulecolorSkyBlue
beginalignedat4
& 01 & : & 1011 & : & 0110\
& 11 & : & 0001 & : & 1101\
cmidrule[0.15ex]1-6
& 11 & : & 1011 & : & 1111 &qquad &textcolorSkyBluebitwise emphOR \
& 01 & : & 0001 & : & 0100 & & textcolorSkyBluebitwise emphAND\
& 10 & : & 1010 & : & 1011 & & textcolorSkyBluebitwise emphXOR
endalignedat
]
enddocument
answered 48 mins ago
Bernard
158k764191
158k764191
add a comment |Â
add a comment |Â
R. Morales is a new contributor. Be nice, and check out our Code of Conduct.
R. Morales is a new contributor. Be nice, and check out our Code of Conduct.
R. Morales is a new contributor. Be nice, and check out our Code of Conduct.
R. Morales is a new contributor. Be nice, and check out our Code of Conduct.
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f454819%2fhorizontal-line-without-indenting%23new-answer', 'question_page');
);
Post as a guest
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
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
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